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 Apr 26, 2015@Brettflan
Many thanks :)
-
View User Profile
-
Send Message
Posted Apr 8, 2015Example code for getting the Border data for a specific world:
-
View User Profile
-
Send Message
Posted Apr 7, 2015Do you have some kind of API or method to do a simple check to see if a chunk or location is outside the world border. Looking into coding a custom method to block 'factions claim' so people cant claim land a chunk ouside/beyond/overlapping the world border.
-
View User Profile
-
Send Message
Posted Apr 4, 2015@mrchasez
Yeah, as always seems to be the case in such crashes, the fault is not with WorldBorder. Based on the stack trace, it looks most likely to me to be a bug in Spigot's world generation code (quite possibly passed on from the vanilla Minecraft server code, as is often the case), but TerrainControl is also indicated in there as a possible cultprit as well.
-
View User Profile
-
Send Message
Posted Apr 4, 2015@Brettflan
The fill command keeps crashing WorldBorder every few %'s it goes and requires a server restart. It will get to about 2% and crash, then 4% and crash etc. Using any version of Spigot 1.8 + Terraincontrol = https://paste.ee/p/SfcFQ
Looks like it's originating from TC, but I'm not certain.
-
View User Profile
-
Send Message
Posted Apr 3, 2015@andrewkm
The root command is still /wborder, so you can use that. /wb is actually added as an alias since it's more likely to conflict with another plugin.
-
View User Profile
-
Send Message
Posted Apr 3, 2015I used to use the command /worldborder and /wb is taken up by a workbench plugin. Can you give us a new alias now that you removed /worldborder. Perhaps /worldb
Or perhaps config option to have /worldborder override the vanilla one.
Or perhaps let worldborder work in console.
PS: For now just added worldborder2 as an alias to plugin.yml
-
View User Profile
-
Send Message
Posted Mar 21, 2015@Max633
Doesn't look like it, no.
-
View User Profile
-
Send Message
Posted Mar 21, 2015hi
Is it possible to put the effects of vanilla border in the plugin?
Thanks
-
View User Profile
-
Send Message
Posted Mar 8, 2015@Daunay
Wrong version of WorldBorder, then. In the file list for this project, look to the "Game version" column for the list of Bukkit/CraftBukkit versions officially supported by each version of WorldBorder:
http://dev.bukkit.org/bukkit-plugins/worldborder/files/
As you can see there, WorldBorder 1.7.2b is what you'd want for version 1.5.2 of Bukkit.
-
View User Profile
-
Send Message
Posted Mar 8, 2015Is it : http://pastebin.com/CZc843Aw The region folder contain .mca files.
-
View User Profile
-
Send Message
Posted Mar 8, 2015@Daunay
Are you using a version of WorldBorder compatible with the version of Bukkit you're running? Post your full server startup log with the CraftBukkit version/offshoot and WorldBorder version listed.
-
View User Profile
-
Send Message
Posted Mar 8, 2015I have an error with MC bukkit 1.5.2: http://cpc.cx/bCw
Any idea ?
-
View User Profile
-
Send Message
Posted Mar 7, 2015@Sonickyle27 /minecraft:worldborder should work just fine.
-
View User Profile
-
Send Message
Posted Mar 7, 2015WorldBorder 1.8.3 is now available as a quick fix with the /worldborder command alias now removed from the plugin, so that the newer vanilla /worldborder command isn't overridden. That leaves /wb and /wborder pointing to this plugin.
-
View User Profile
-
Send Message
Posted Mar 7, 2015@Sonickyle27
Hmm, good point, I see I hadn't removed that command alias from the plugin. Quick fix if you're able to open and modify the contents of JAR files (I use 7-Zip) is to open worldborder.jar and edit the plugin.yml file. Find this line:
and change it to:
I'll see about releasing a quick update for that later today. Though, there probably is some command alias available to run the vanilla /worldborder command as well.
@Karoom123
I'm not sure how you're getting a "red screen" from anything, especially not from this plugin. Maybe that's something from being outside the vanilla worldborder rather than this plugin? You'd need to be a lot more specific about what's happening.
@Relicum
The main thing I'd be interested in would be manipulating the new visible vanilla border walls to conform to custom shapes (rectangle, round/elliptic even if with jaggy block-following edges); I doubt that's really feasible, but I don't currently have time to look into it.
Separating out the Fill and Trim is one thing I'd considered, though more likely for Sponge as a bit of a rewrite would be needed there anyway.
-
View User Profile
-
Send Message
Posted Mar 7, 2015After installing this plugin, how can I use Minecraft's internal /worldborder command?
-
View User Profile
-
Send Message
Posted Mar 7, 2015that world border made my screen red pls help i want to remove it and it still working help
need to disable it
-
View User Profile
-
Send Message
Posted Mar 6, 2015@Brettflan
Just curious what do you feel Spigot or Sponge have actually missed out, they have both implemented every vanilla worldborder feature that mojang have coded. Granted it doesn't provide half of what you plugin does but that's not their fault they can only implement what mojang provide. The rest is down to great devs like yourself but from knowing the source NMS there is no magic methods to hook into to make it better. You'd need to use asm and override a load of classes and that wouldn't be pretty to watch.
Any how thanks for the great plugin over the years. I personally would love to see the following added.
Being able to do on demand fills to render specific areas nothing related to a border. If it was used in game a player could say /wb fill 200 and it would populate all chunks in a 200 block radius. Or say /wb fill 200 0 0 to fill a radius from x=0,z=0.
As a developer myself I'd be most interested in being able to hook into the same feature so I can pre gen spawn points for UHC games where its a brand new map every reload, currently I just set up a Hacky way and just move the border to different areas render it and move it again till its all complete. The reason I use you plugin is it is exceptional well coded.
Be interested to hear that you think of my idea, regards
-
View User Profile
-
Send Message
Posted Mar 2, 2015@zizitt
Fill generates any chunks inside the border which don't exist yet or aren't fully generated (from loading adjacent chunks, to create snow and strongholds and various final details). If all chunks inside the border are already fully generated, the process naturally finishes very quickly.
If you want to generate the map in Dynmap, that's something to do within Dynmap.