WorldBorder
Further releases for Spigot 1.13+ are now being posted on the Spigot site. I do not plan to release any further updates here on BukkitDev.
- Full list of Commands and Permissions
- Changelog
- Further Miscellaneous Information
- Source available on GitHub
- Old discussion on main Bukkit forum
If you appreciate this plugin and actually want to see it developed further by me rather than only receiving compatibility updates, you are welcome to .
Thanks to the following people who have been kind enough to donate: jonDatz, xrobau, Gussi, Dizzy, R. Meijer, FoundationCraft, T. Bronner, R. Thompson, The Pokemon Server, legitplay.net, D. Senff, Vik1395, TagCraftMC, D. Strickner, M. Wilson, Rhythmatic, W. Downey, P. V. Gretener, MiniCraft Server, Cosmic Craft, ScarcityFree.com, polaris_iv (Forge port), matagin, T. Ahokas.
Also thanks to IMathe172I (Lang Lukas) for contributing code to support elliptic and rectangular border shapes, and Indiv0 for contributing code to support border wrapping.
Description
This plugin is intended to efficiently provide a border for each of your worlds, which only people granted special bypass access are allowed beyond. These borders can be round/elliptic or square/rectangular. As the plugin has been written with performance as the most important goal, it should have no performance impact on your server. Additional world trimming and filling commands are available as well.
Older plugins which originally inspired the creation of this one: rBorder and BorderGuard.
Features
- You can set up a separate border for each world, but only one border per world.
- You can have either round/elliptic or square/rectangular borders. Square/rectangular borders are slightly higher performance, round/elliptic borders make for nicer display maps. Different worlds can have different border shapes if you so choose.
- Configuration and border setup is done completely using commands in-game or through the server console. No need to ever edit the config file directly.
- Support for all permission plugins which interface with Bukkit's built-in "superperms" permission system.
- You can fully generate (fill) your world all the way to the border, filling in any missing chunks, including a configurable buffer zone just outside your border.
- You can trim off any world chunks beyond the border, getting rid of extraneous parts, with a configurable buffer zone left just outside your border.
- You can use a bypass command to allow specific players to go beyond all borders.
- Borders can be automatically displayed in DynMap if you use that plugin.
- All plugin data is automatically saved whenever any borders or settings are changed.
- If a player crosses a border while in a vehicle, the momentum of the vehicle is stopped and it is moved back inside the border with the player.
- When a player is moved back inside a border, they will be moved to a safe vertical location if needed.
- Borders for specific worlds can be set to wrap around instead of just knocking back players who cross the border, instead sending them to the opposite edge of the border.
English Tutorial:
Spanish Tutorial:
Of special interest are the Fill command and the Trim command features:
Borders are also displayed automatically by default in DynMap if you have it:
I have light issues after filling a world. Is there anything to do about that, or do I have to live with it? Cause there's a lot of them, unfortunately. :/
@iaXedu
Yes, Spigot bug. See here:
https://hub.spigotmc.org/jira/browse/SPIGOT-1903
https://hub.spigotmc.org/jira/browse/SPIGOT-1807
There is a major bug on 1.9 when you go to the nether. It says that you've reached the end of the world while the border is set at 8000 on location x0 and y0. The location of the portal is in this case at x-1237 y118 z764. When entering it from the normal world you will be teleported to the actual border at x-6813 y113 z4187. Teleporting with essentials for example does not set you back when you goto those coordinates.
Using latest version.
@19jojo93
Make sure you're running WorldBorder 1.8.5, which is compatible with Spigot 1.9.
@1337Zero
Either branch will work; that branch was created when I thought an update would actually be required for 1.9 compatibility based on user reports here. No update ended up being necessary, they were running an older version of WorldBorder.
i have build it myself for 1.9 https://github.com/Brettflan/WorldBorder/tree/Pre-MC-1.9 doit urself :D, in my test it worked
Always nice to know that some plugins wont die when i mayor update of MC comes out :)
With the update to 1.9, the plugin no longer stops players from moving through the border
@dfdgsdfg
It's a bug in Spigot to do with the PlayerTeleportEvent not always reporting the correct getTo() location in relation to nether portal teleportation. Take it up with them.
Specifically, getTo() is returning the location coordinates they're coming from in the overworld rather than their destination location coordinates.
If I try to teleport form world to world_nether through a vanilla portal, it teleport me to somewhere else not in front of the nether portal with WorldBorder's message which is configured.
Here is my plugin list and WorldBorder's config file.
https://github.com/semaulhq/plugins.
It appear every spigot build after 1.9.
@chsedv
Not needed.
pls update to spigot 1.9
@pookshuman
Of course it happens only with the plugin, the plugin is what provides the border and knockback. How would it happen with the plugin removed, exactly?
From what you're reporting the problem looks like it would be in the PlayerTeleportEvent's getTo() method, which is reporting the wrong location.
As a Spigot bug rather than a bug in this plugin, I can't help you.
@Brettflan
Tried the build you sent and had the same issue.
1. The problem does NOT occur with spigot alone (i.e. with no plugins installed, there is no issue.)
2. Adding worldborder as a plugin immediately brings the problem back.
Spigot version is version git-Spigot-3104eb1-5d90f97 (MC: 1.9) (Implementing API version 1.9-R0.1-SNAPSHOT) compiled about 3 hours ago.
I suspect if I report the list of symptoms to the spigot team, they will say it is a plugin issue (since the issue is resolved when the plugin is removed.) I am not a coder or serious tech person so what should I report to them as the issue?
I am a big fan of the plugin and really don't want to use anything else :(
@pookshuman
So it does sound like there is a bug in Spigot. On the off chance that it's some really odd incompatibility, I'm going to PM you a test build of 1.8.5 compiled against Spigot 1.9-R0.1. I highly doubt it will make a difference, but that at least should rule out everything other than a bug in Spigot.
@brettflan
Hello :)
I am having the same issue with nether portals that wonderdave reported in this thread. In other words, travelling through a nether portal to the overworld works fine, but travelling to the nether FROM the overworld causes the player to teleport either very far away or to the spawn point of the nether.
I confirmed worldborder is the cause by removing all other plugins and running with only WB This is the log http://pastebin.com/qYbzVZGL I dont see any obvious errors
This is the debug error that comes up when I went through a nether portal http://pastebin.com/bCbgGJ55
For the sake of simplicity, the portals are at 200,200 in the nether and 1600,1600 overworld. The border of the nether is at 750 so it may be trying to teleport players to the overworld distance, which would be beyond the border in the nether, but not the overworld.
Please let me know if there is any other info you need and please keep up the good work :) Can't run my server well without your hard work :)
@Aangiix3
How are you determining that they're not trimmed? If it's Dynmap or another such mapping plugin, you first need to restart the server (otherwise the chunks will be seen as still there no matter what) and then likely do a full refresh of the map.
Trim isn't working in Spigot 1.8.8, why not?
It says it's trimming, but it's not doing anything. No Errors in the console.. :(
I have set a rectangular border and did /wb trim 5000 1 so it would cut everything 1 block away from the border but it stayed the same (and no, those chunks weren't re-generated because they were modified and stayed modified)
@sexyrussian
Default border shape is round/elliptic.
so I'm running world boarder with mc 1.8 worldboarder version 1.8.5
heres my config
worlds: world: x: 1 z: 1 radiusX: 10000 radiusZ: 10000 wrapping: false world_nether: x: 1 z: 1 radiusX: 10000 radiusZ: 10000 wrapping: false world_the_end: x: 1 z: 1 radiusX: 10000 radiusZ: 10000 wrapping: false
yet world boarder trips at 7k 7k
@Puremin0rez
Yeah, I did notice that when I was testing. I will see about fixing it when I have some free time.
EDIT:
I've just checked and it seems that those sound effects are not yet corrected in Spigot, so I can't fix it now, and possibly might not need to once they do fix it on Spigot's end.