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 Nov 11, 2012@Baba43
Square or round, those are your options.
@aphilosopher
Looks like a CraftBukkit/NMS problem based on the stack trace. Wait for them to fix it, or try running the fill process on an empty server and possibly try running at a lower fill frequency.
-
View User Profile
-
Send Message
Posted Nov 11, 2012@Brettflan
recieved an error upon using command /wb fill
http://pastie.org/5361473
i get that error almost everytime i try and use the fill function
is it the plugin just not generating land to meet with the new terrain code of 1.4?
-
View User Profile
-
Send Message
Posted Nov 11, 2012Hey, I love WorldBorder !
But it is still not possible to use a non-squared border?
-
View User Profile
-
Send Message
Posted Nov 11, 2012@raom
Regarding the bypass permission: it is checked just like all other permissions, so I'm not sure why it isn't working for you.
Bypass mode is not automatically turned on for anyone, as per the release notes. That would cause no end of problems for people who weren't expecting it, and by extension no end of trouble for me from people reporting it. Bypass mode has to be enabled by using the command.
-
View User Profile
-
Send Message
Posted Nov 11, 2012@raom
Sounds like the synced task thread which WorldBorder runs to enforce the border for people walking around was not running as it should have been. Something else on your server presumably killed the task for whatever reason.
I should probably add in a method to occasionally check and make sure the border monitoring task is still running so that it can be restarted if necessary.
EDIT: I'm going to go ahead and add in just such a check which will be run whenever a chunk is loaded on the server. That will be in the next release.
-
View User Profile
-
Send Message
Posted Nov 10, 2012Somehow updating to 1.6.0 from 1.5.4 made the plugin stop to function. I didn't change anything other than updating the jar, but now everyone can walk outside the border.
Interestingly, if I teleport outside the border, it then works and teleports me inside the border. But not if I walk or fly through it.
I tried setting the worldborder.bypass false, but nothing changed. I didn't have any worldborder related permissions set beforehand.
Using CraftBukkit 1.4.2-R0.2
[EDIT] adding it to a pristine craftbukkit installation all seems to work fine. And looking at the config made (against the one on my main server) I see no discernible differences. I have to test things more tomorrow.
[EDIT] Now deleting the old config and letting it recreate it, it seems to work on main server too. I don't know what went wrong earlier. With the bypass-command I can set people individually as I should. But when I add the "worldborder.bypass: true" for a player or group, nothing happens. And even tho I'm opped it isn't automatically enabled (the bypass). I thought it was supposed to be enabled for ops?
-
View User Profile
-
Send Message
Posted Nov 10, 2012@aviator1014
Bah, that figures, I guess. The thing is, I can't think of a sensible option to add in that would be useful for anything other than this particular case of a customized nether world which has stuff added above the normal nether world height. Hmm.
-
View User Profile
-
Send Message
Posted Nov 10, 2012Can the new height limit for the nether be disabled? Not all worlds with a nether environment necessarily have a bedrock roof at y127. I just checked your source and it looks like that is applied to all worlds. So can it be optional in general?
-
View User Profile
-
Send Message
Posted Nov 7, 2012@Javatech
No idea. The permissions work the same as they always have. I haven't tested PEx specifically, only GroupManager lately, but any non-ancient permission plugin which interfaces with Bukkit Superperms should work.
-
View User Profile
-
Send Message
Posted Nov 7, 2012I have given myself (Group Admins) all the permissions included above along with worldborder.* for extra coverage. Anytime I try to set the border I get "You do not have access to that command"
Latest version of WorldBorder. latest version of PermissionsEx. I am not opped. I have reloaded my permissions, reloaded all plugins, and reconnected. I have yet to figure out how to resolve this.
PermissionsEx WorldGuard WorldEdit Lockette Essentials Factions iConomy NoCheatPlus
-
View User Profile
-
Send Message
Posted Nov 7, 2012Thanks again brett for keeping this up and working great for ages.
-
View User Profile
-
Send Message
Posted Nov 6, 2012@NemesiS_ITA
CraftBukkit bug. I know they fixed some chunk related bugs recently too; make sure you're running their latest Beta release at least.
EDIT: also WorldBorder 1.5.4 is outdated now that 1.6.0 is out.
-
View User Profile
-
Send Message
Posted Nov 6, 2012@Brettflan
I think (if i could undderstand in the log file)that theese are the errors..
[INFO] NemesiS_ITA issued server command: /wb fill 40 2012-11-06 14:10:16 [INFO] NemesiS_ITA issued server command: /wb fill confirm 2012-11-06 14:10:16 [INFO] [WorldBorder] Filling out world to border at the command of player "NemesiS_ITA". 2012-11-06 14:10:20 [WARNING] [WorldBorder] Task #22 for WorldBorder v1.5.4 generated an exception java.lang.NullPointerException at org.bukkit.event.world.ChunkEvent.<init>(ChunkEvent.java:12) at org.bukkit.event.world.ChunkPopulateEvent.<init>(ChunkPopulateEvent.java:16) at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:211) at net.minecraft.server.Chunk.a(Chunk.java:799) at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:117) at org.bukkit.craftbukkit.CraftWorld.loadChunk(CraftWorld.java:230) at com.wimbli.WorldBorder.WorldFillTask.run(WorldFillTask.java:180) at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:522) at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:486) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
-
View User Profile
-
Send Message
Posted Nov 6, 2012@Enrux
Not possible AFAIK.
@NemesiS_ITA
They work perfectly for me, so without the actual error stack trace I have no way of knowing what went wrong for you.
-
View User Profile
-
Send Message
Posted Nov 6, 2012@Brettflan
Trim and fill comannds aren't working anymore on 1.6.0 they were usefull! can you fix that? :) When i try to fill or to trim it gives me errors that i can't remember, and i don't want to try animore trim and fill to say what are the errors unless you fix it, because it may corrupt my map.. (i think)
-
View User Profile
-
Send Message
Posted Nov 6, 2012How can I make dynmap render only up to worldborder's limit?
-
View User Profile
-
Send Message
Posted Nov 6, 2012@XeonG8
AFAIK there are two problems with that:
-
View User Profile
-
Send Message
Posted Nov 5, 2012there was a plugin that prevented new chunks from being generated on a map that has been explored etc ...posted on here a while back... could you incorporate that into worldborder aswel? so like an option to have on a world without a worldborder, or on a world with a worldborder aswel?
-
View User Profile
-
Send Message
Posted Nov 5, 20121.6.0 is now available
New command:
/wb bypass [player] [on/off] - enable bypass mode for a player to let them move beyond the border
New permission:
worldborder.bypass (Op): Can use the bypass command to allow specified players beyond the border
-
View User Profile
-
Send Message
Posted Nov 5, 2012I agree, it is amazing :). Using it for over a year now.