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:
@Brettflan
Do you have a Jenkins page ? I like RSS Feedback for update my plugin ;)
Thx for your plugins !
wow, no need for that. I am running the latest release.
@Mace_3000_99
For fuck's sake, update to the newest release.
Everything seems to work for me except the /wb fill command, says "could not find any region files".
Has anyone else experienced that?
works fine for me on 1.2.3-R0.1
@mobilephone2003
What version of WorldBorder are you running?
EDIT: Just tested the CraftBukkit 1.2.3-R0.1 Beta release with WorldBorder 1.5.2, and as expected it works fine. I crossed a border in a boat and it moved me back inside the border as expected.
I wish people would make sure they were using the latest versions of everything, particularly before trying to report a bug.
People can get past the border, cb 1.2.3b:
04.03 17:40:49 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 04.03 17:40:49 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:504) 04.03 17:40:49 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:586) 04.03 17:40:49 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126) 04.03 17:40:49 [Server] INFO at com.wimbli.WorldBorder.BorderCheckTask.run(BorderCheckTask.java:29) 04.03 17:40:49 [Server] INFO at com.wimbli.WorldBorder.BorderCheckTask.checkPlayer(BorderCheckTask.java:68) 04.03 17:40:49 [Server] INFO java.lang.NoSuchMethodError: org.bukkit.entity.Player.getVehicle()Lorg/bukkit/entity/Vehicle; 04.03 17:40:49 [Server] WARNING Task of 'WorldBorder' generated an exception
@Brettflan
I am probably blind. Sorry for bugging you about this =) Thank you for the update!
@bitWolfy
You're probably confused at not seeing it to the right of the main page here or on the Files page; that's because new file uploads don't show there until the BukkitDev moderators approve them, which can sometimes take a while. It's not something I or other plugin authors can directly control.
The file is linked in my previous post below, though, and is downloadable.
Am I missing something? I don't see the v.1.5.3 among the downloads =/ Great news, though! I was waiting for this plugin to be updated =)
Released v1.5.3
Known caveat:
This is not a problem with WorldBorder, but CraftBukkit 1.2 dev builds might have some world generation problems which they've yet to address. Remember that if you're running a CraftBukkit 1.2 dev build, it's just that; it's not a stable recommended release build.
@rtcabooservb
See this message a short distance below. The Bukkit team are still working on compatibility with the new world region file format, so until they're mostly done with that I can't really do much.
@Brettflan
:( Wish you were updated for 1.2 so I can pregen a 4000 border map.
@selfservice0
There's no reason it should lag on any release of CraftBukkit basically no matter what might change on their end of things, due to the way the plugin is designed. I'm not sure what you're seeing.
Used to use this plugin, was fine. Updated it recently and it lagged horribly. Removed it and all is well.
@CoffeeOD
The fill and trim features will need to be modified to work in 1.2 and above, since they're using a new world region file format.
The thing is, I'm also not sure what they'll be changing in CraftBukkit in regards to the new file format since there are now smaller 16x16x16 chunk sections, so... I'm waiting a bit before I try to make WorldBorder compatible with the new file format.
Not sure if this cause of 1.2, but I tried fil command and received error "[INFO] [WorldBorder] [WorldData] Could not find any region files. Looked in: ./world/region [INFO] The world map generation task failed to start."
Same message came when I tried /trim for test if it worked. Region files are indeed in /world folder (example file: r.-2.0.mca). Any idea whats up?
Release v1.5.2
@Brettflan
Thanks for the reply, not trying to rush you in anyway was just looking for confirmation. thanks, awesome plugin. Funk
@funk1983
Already handled in the source and I will be making another release soon enough. Patience.
@dexyh1234
Well, I've already explained the reason and your choices. I should add that it appears you have a really small border if the region -1,-1 is completely outside your border including padding. That, or the center of your border is a long distance from the usual world center area. If your world's spawn location is in or very close to the region in question, it will be kept loaded by Minecraft as well (preventing deletion while running), FYI.