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:


-
View User Profile
-
Send Message
Posted Jul 7, 2014Before I post a ticket, perhaps some one can help me here. We set our WB at 5 mill, and it is capping at 3.5 mil, Here is my config: http://pastie.org/9365780
Thoughts? Thank you!
-
View User Profile
-
Send Message
Posted Jul 7, 2014@HappyBivouac
WorldBorder itself won't automatically set any borders, but if you have a way to monitor world creation you could set it up to issue a console command in order to set a border for the new world.
Example console command for a 1000 block radius centered on the world's spawn point:
wb NewWorldName set 1000 spawn
-
View User Profile
-
Send Message
Posted Jul 7, 2014Before I implement this, is there a way to have borders automatically generate for all worlds? For example, I've got mystcraft on my small server, and I'd like each mystcraft age to automatically have a border of a specified size and shape when the age is created, without me having to manually go into each age and set the border. Thanks in advance!
-
View User Profile
-
Send Message
Posted Jul 6, 2014@LegndPowerdNube
You can see officially on the file list.
http://dev.bukkit.org/bukkit-plugins/worldborder/files/
Though up to 1.7.9 might possibly be backwards compatible, it's entirely untested.
-
View User Profile
-
Send Message
Posted Jul 6, 2014What version is the latest one compatible with 1.6.4?
-
View User Profile
-
Send Message
Posted Jul 6, 2014@aussie1579
Neither support for multiple borders per world or the ability to allow bypass for specific borders only is planned, sorry.
-
View User Profile
-
Send Message
Posted Jul 5, 2014So I have an idea for this plugin, it may be too much work but its a thought.
Would it be possible to "name" borders so that only certain players could bypass certain borders.
Two concentric Borders one at 1k the other at 2k, Player 1 having no permissions would not be able to pass any borders, where player 2 having bypass.1k could go through the 1k border with no drama but would not be able to pass the second border.
This technically can work with 1.8 in theory with a gimmicky setup, setting WB border at 1k and having bypass permissions, then setting MCs wordborder at 2k.
sorry for the paragraph, rather go with a tried and tested system over gimmicky core MC features.
-
View User Profile
-
Send Message
Posted Jul 3, 2014@thwang81338
Sounds like the same error you just posted which was in CraftBukkit core code, but you didn't post a stack trace this time so I can't say for sure.
-
View User Profile
-
Send Message
Posted Jul 3, 2014@Brettflan
Now I'm only getting in CB 1.7.9
WorldBorder v1.8.0 generated an exception java.lang.ArrayIndexOutOfBoundsException
-
View User Profile
-
Send Message
Posted Jul 3, 2014@thwang81338
That's likewise another error happening in core CraftBukkit code. Nothing directly to do with WorldBorder, so I can't help you there.
Also, based on your stack trace, that's not CraftBukkt 1.7.9, it's still 1.7.2: "craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks"
-
View User Profile
-
Send Message
Posted Jul 3, 2014@Brettflan
I just tried WorldBorder 1.7.9 right now and it is still not working
[14:08:28 WARN]: [WorldBorder] Task #55 for WorldBorder v1.7.9 generated an exception java.lang.ArrayIndexOutOfBoundsException: -4530331 at java.util.ArrayList.elementData(ArrayList.java:403) [?:1.8.0_05] at java.util.ArrayList.set(ArrayList.java:431) [?:1.8.0_05] at net.minecraft.server.v1_7_R1.RegionFile.<init>(RegionFile.java:76) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.RegionFileCache.a(SourceFile:60) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ChunkRegionLoader.chunkExists(ChunkRegionLoader.java:43) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:102) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:89) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.CraftWorld.loadChunk(CraftWorld.java:242) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at com.wimbli.WorldBorder.WorldFillTask.run(WorldFillTask.java:198) [?:?] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftTask.run(CraftTask.java:53) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at org.bukkit.craftbukkit.v1_7_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:587) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
-
View User Profile
-
Send Message
Posted Jul 3, 2014@thwang81338
It worked up to 57% because the particular chunk it got to at that point is where CraftBukkit had a problem generating. If you want to know what specifically might cause that error, feel free to google it ("Already decorating"), though you probably won't find anything useful.
Yes, you can of course update to CraftBukkit 1.7.9. That might fix your error as well.
-
View User Profile
-
Send Message
Posted Jul 3, 2014@Brettflan
But then why did it work up to 57%?
And can I update to CraftBukkit 1.7.9 and keep WorldBorder 1.8.0?
-
View User Profile
-
Send Message
Posted Jul 3, 2014@thwang81338
The error is occurring in core CraftBukkit code, so look to CraftBukkit for a fix:
Unrelated to your error, but WorldBorder 1.8.0 doesn't officially support CraftBukkit 1.7.2 as I haven't tested for any potential compatibility problems. WorldBorder 1.7.9 is definitely fully compatible with CraftBukkit 1.7.2.
-
View User Profile
-
Send Message
Posted Jul 3, 2014I'm getting an error always at 57%, even when cancelling and reloading. The whole system is running but no chunks are being filled. I'm using Craftbukkit 1.7.2_R0.3, build 3020
https://www.dropbox.com/s/37ykilvg6m96pyc/Untitled.txt
-
View User Profile
-
Send Message
Posted Jul 1, 2014@NeroTNT
CraftBukkit it is, then.
-
View User Profile
-
Send Message
Posted Jul 1, 2014@Brettflan
I was using Craftbukkit 1.7.9-R0.2 Beta Build
-
View User Profile
-
Send Message
Posted Jul 1, 2014@NeroTNT
Generally those seem to occur due to problems in world generator plugins, but in your case the stack trace indicates it happened in core CraftBukkit code. Look to CraftBukkit (or whatever custom build you might be using) for an update to fix it.
-
View User Profile
-
Send Message
Posted Jul 1, 2014I got a crash report when i was running a filling command. World border was 10000: http://pastebin.com/TmWP2H6a
-
View User Profile
-
Send Message
Posted Jun 29, 2014@Seadrakon
World chunks are generated through Bukkit. If you're using a Bukkit world generator plugin, that will work as expected. If you're using a mod which doesn't register through Bukkit, all bets are off. If you're using some other tool to generate terrain, then you remove that terrain and have it recreated without that tool, it of course will not generate the modified terrain your separate tool generated.