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 Feb 19, 2016Can I use worldborder to regenerate chunks within a world that has been generated with Terrain Control?
-
View User Profile
-
Send Message
Posted Feb 19, 2016I can set the spawn point. But that do not fix the problem. The Players died nevertheless.
-
View User Profile
-
Send Message
Posted Feb 19, 2016@Cha0sPudd1ng
You couldn't just set the spawn point for your Nether and End worlds?
-
View User Profile
-
Send Message
Posted Feb 19, 2016K. I have fixed the problem.
I have make a 4 chunk width flat border around the world.
To do that, i have change the 'level.dat' every fill.
1. Fill world to border
2. Change the 'level.dat' and fill the world outside the border you want.
But i think it's easier to add this in the Plugin.
What do you think about this?
-
View User Profile
-
Send Message
Posted Feb 5, 2016@Cha0sPudd1ng
If there is no safe vertical spot to put you in the target X/Z coordinates when it is knocking a player back from the border, it will teleport them to the spawn point for the world they're in. In the Nether this can be due to solid stone from top to bottom, or lava being at the bottom of any open space. In the End, obviously there can potentially be just empty space from top to bottom.
I'm not sure how your End and Nether don't have appropriate spawn points set, but you should be able to handle that.
-
View User Profile
-
Send Message
Posted Feb 5, 2016@Brettflan:
The Knockback in the Nether and End teleport me random to the X: 0 Y: 1 Z: 0 position. And then i fall out of the world and die. (v. 1.8.5)
-
View User Profile
-
Send Message
Posted Feb 5, 2016@slayermarth101
That would be something on your end, yes. Look to your plugins and mods that make changes to world-gen.
-
View User Profile
-
Send Message
Posted Feb 5, 2016Could you explain the fill function to me? Like, give me some advice on how to use it efficiently? I've tried to use it to pre-generate some of my worlds to make the lag on players generating chunks somewhat manageable. But, each and every time I've tried to pre-gen, I end up with corrupted chunks. Is this something on my end? How would I keep that from happening?
-
View User Profile
-
Send Message
Posted Jan 30, 2016@ZombieHDGaming
Yes.
-
View User Profile
-
Send Message
Posted Jan 30, 2016Hi there, I was wondering if WorldBorder had the ability to work with custom world gen? I'd prefer not to install and use this before I am sure of it.
-
View User Profile
-
Send Message
Posted Jan 27, 2016@EveriiaL
The only things I can see strange in that thread dump are the large number of duplicate UUID rabbit reports at the top and the large number of chat threads, though the number of chat threads may well be due to the server being unresponsive and people spamming chat since they're not seeing their chat go through.
The top thread in the dump just happened to be WordBorder checking to make sure its border-checking timed task was still running (so players are kept inside your borders as needed), which it does very quickly each time a new world chunk is loaded.
The fact that it was the topmost thread is pure coincidence and not the cause of your crash.
Good luck tracking down the problem.
EDIT:
For reference, the WB code it points to:
https://github.com/Brettflan/WorldBorder/blob/master/src/main/java/com/wimbli/WorldBorder/Config.java#L451
https://github.com/Brettflan/WorldBorder/blob/master/src/main/java/com/wimbli/WorldBorder/WBListener.java#L67
-
View User Profile
-
Send Message
Posted Jan 27, 2016@Brettflan
Hello, I have a crash-report with PaperSpigot 1.8.8 Latest version : http://pastebin.com/6WffxPGb Can you help me please ? :s Best regards
-
View User Profile
-
Send Message
Posted Jan 18, 2016@iluvcookies199810
Multiple borders per world is not possible with this plugin. It sounds like you have another plugin running which provides some sort of border.
-
View User Profile
-
Send Message
Posted Jan 18, 2016@Brettflan
I tried both, when i did the clear all command the first one is still there but the second one was removed, and when i tried to make it bigger it made two borders.
-
View User Profile
-
Send Message
Posted Jan 17, 2016@iluvcookies199810
There's one border per world, so set the border where you want it and it will move there. Or use the 'clear' command to remove the border.
-
View User Profile
-
Send Message
Posted Jan 17, 2016I just download the plugin and i made a border where i didn't want one by accident and now i cant get rid of it. Help please!
-
View User Profile
-
Send Message
Posted Jan 5, 2016I've been using this plugin for years.. It's never failed me :D
-
View User Profile
-
Send Message
Posted Jan 3, 2016@Brettflan
World Edit, MCEdit and single player it is then for fixing the light issue.
At least World Edit works in-game, on the fly for smaller areas without having to take the world offline.
-
View User Profile
-
Send Message
Posted Jan 3, 2016@Braleth
From what I remember of looking into it before, it requires a nasty modification of NMS (Native Minecraft Server) code, which would result in the plugin constantly breaking with new CraftBukkit releases.
-
View User Profile
-
Send Message
Posted Jan 3, 2016There should be a way to add forced light update into WorldBorder. There's been other plugins/code that have done this. The old NoLagg plugin had a relight option. As well, I stumbled on this old/outdated NBToolKit that could calculate lighting on chunks.
The only reliable sources I've found to relight a chunk are: 1) World Edit using the /regen option. This, however, has some side affects in potentially changing the terrain. 2) MCEdit, select chunks and then relight option. Not viable for large areas. (A 20K x 20K world was going to take 60+ days to relight the chunks. 3) Load your world in single player (share on LAN for extra help) and fly everywhere, forcing all chunks to load and then save the world. This fixes the light/dark shadow issues.
As it stands now, forcing a world to load in using the WB fill option just causes more work. You're better off to just load the chunks in manually, either in single player or multiplayer, and have them save properly to avoid the light issue.
It would be amazing if the WB fill option had the ability to re-calculate light levels as it went.