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 20, 2013@Puseidr
i think i found the problem.. maybe its the kernel, on my other (small) server its runnig fine (Linux 2.6.36.4-vs2.3.0.36.39-nc) but on my bigger machine (Linux 2.6.32-042stab075.2) i got this error :(
-
View User Profile
-
Send Message
Posted Apr 20, 2013i tested it on another linux server (debian lenny) and it works, but on my actual server (debian squeeze) it doens't work, don't know why maybe its the hardware or the distribution?
-
View User Profile
-
Send Message
Posted Apr 19, 2013Works great, Thanks for amazing plugin.
-
View User Profile
-
Send Message
Posted Apr 19, 2013@McGalaxyServer
It's primarily limited by the speed which the Minecraft+Bukkit server can generate chunks. So having a faster processor and faster storage (RAMdisk, SSD, whatever) of course helps. Also running it on an empty server which therefore has nothing else going on helps as well.
-
View User Profile
-
Send Message
Posted Apr 19, 2013How can you speed up the time for it to "FILL"?
-
View User Profile
-
Send Message
Posted Apr 18, 2013the same problem... :( typed: /wb trim confirm and baam, disconnect: "Internal exception: java,net,SocketTimeoutException: Read timed out"
-
View User Profile
-
Send Message
Posted Apr 18, 2013@Puseidr
You might try only the WorldBorder plugin. Beyond that, sorry, but again I don't know what might be wrong on your system.
-
View User Profile
-
Send Message
Posted Apr 18, 2013i restarted the server a lot but the problem still exist :( I've tried to disable all plugins except WorldEdit and WorldBorder but the server still crashes at the trimming command
-
View User Profile
-
Send Message
Posted Apr 18, 2013@Puseidr
So it looks like it's hanging while trying to mark a chunk as nonexistent. This shouldn't normally be possible as it should either succeed and continue, or fail and immediately spit out an error, rather than hanging. This is a problem on your system you'll need to figure out, but the simple first thing to try would be to restart the server and try running it again.
I use Linux for CraftBukkit server testing myself.
-
View User Profile
-
Send Message
Posted Apr 18, 2013when i try to trim a map on my linux server i always get this warnings: and the server crashes:
using: Craftbukkit: 1.5.1 R 0.2 (2754) WorldEdit 5.5.5 WorldBorder: 1.7.1
Java: 1.7.0.21 on my windows server your plugin trim maps without trouble
-
View User Profile
-
Send Message
Posted Apr 16, 2013@Brettflan
Ah, that's sad :P. My problem would be that I'm using a plugin which automatically creates worlds for people on the run, and I don't want them getting too big ;) I can't set a border everytime. However I saw you have the sourcecode up so I'll just make use of that :)
-
View User Profile
-
Send Message
Posted Apr 16, 2013@CreepCraft
There isn't, but it's simple enough to set a border.
@DevElitum
Sorry, but integration with WorldGuard/WorldEdit is definitely not happening.
-
View User Profile
-
Send Message
Posted Apr 16, 2013@Brettflan
Perhaps make the WorldBorder itself a WorldGuard region, then?
-
View User Profile
-
Send Message
Posted Apr 16, 2013@Brettflan
Ok all it's good now it was a problem with dynmap with your plugin and itwas that dynmap no support mcpc with the same version of bukkit version.
Thank for your attention and you are doing a great job with this plugin. I hope this plugin follow like now for a long time.
-
View User Profile
-
Send Message
Posted Apr 16, 2013@Brettflan
I'm using the last 1.6 for 1.5.1
-
View User Profile
-
Send Message
Posted Apr 16, 2013Wow, the wrap feature is awesome! Great job :)
I'm wondering, is there a way to auto-create borders for new worlds? Like whenever a new world is created, it auto-creates a border from spawn on a X radius.
-
View User Profile
-
Send Message
Posted Apr 16, 2013@Min3Wood
I asked for the dynmap version you're using, for starters. It should indicate that in your server startup log.
-
View User Profile
-
Send Message
Posted Apr 16, 2013@Brettflan
Yes i have dynmap and i'm using a mcpc but in 1.4.7 worldborder work correctly without problems in mcpc if you want something in particular say to me.
-
View User Profile
-
Send Message
Posted Apr 16, 2013@Min3Wood
Do you have dynmap? What version of it? What build of CraftBukkit are you using (also is it MCPC or Tekkit or other custom build)?
The "(Unknown Source)" in your stack trace in several places is very unhelpful as well; if you're using a JRE release of Java, which is one thing that can result in that less-helpful output, you might consider installing a full JDK release.
-
View User Profile
-
Send Message
Posted Apr 16, 2013Can you help me saying me why it crash me? I only install it i dont change anything in the config here is what the plugin put in the console.
19:46:04 [INFO] [WorldBorder] Enabling WorldBorder v1.7.1 19:46:04 [INFO] [WorldBorder] [CONFIG] Using elliptic/round border, knockback of 3.0 blocks, and timer delay of 5. 19:46:04 [INFO] [WorldBorder] [CONFIG] Border-checking timed task started. 19:46:04 [SEVERE] Error occurred while enabling WorldBorder v1.7.1 (Is it up todate?) java.lang.NullPointerException at com.wimbli.WorldBorder.DynMapFeatures.setup(Unknown Source) at com.wimbli.WorldBorder.WorldBorder.onEnable(Unknown Source) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:396) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugin(CraftServer.java:292) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.enablePlugins(CraftServer.java:274) at net.minecraft.server.MinecraftServer.func_71243_i(MinecraftServer.java:572) at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:538) at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:417) at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:217) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:694) at net.minecraft.server.ThreadMinecraftServer.run(Unknown Source)