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:
Hello,
I am having a strange issue. I'm using WorldBorder 1.8.6 on Spigot 1.10.2, and I have set a border in The End with radius 3,500, centered on X 0, Y 0. When I enter the End portal, I immediately get a message "You have reached the edge of this world." even though the obsidian platform is well within the border. After getting the message, it teleports me to 0, 0, right where the portal to exit The End is located. I don't think it's a configuration error on my part. Has anyone seen this and know of a fix?
@ShadyVADER
You're welcome. :)
@Brettflan
The fill was finally completed. After deleting the "r.20.13.mca" file - and after having a few more hiccups with files - it ran smoothly to completion.
Thank you for your help. Sorry if I was a pain.
@ShadyVADER
Then you clearly haven't found the damaged file yet. It was right at 16.5% before as well, if you check. Based on those chunk coordinates mentioned in the error, it looks like that would be the "r.20.13.mca" file.
@Brettflan
I went through the region files and deleted the most recent one that had 0 Bytes. It still lead to the same thing.
I went through it again and deleted all of the files that were 0 Bytes - 1.99 MB. It was running good, and then once it got to 16.5% complete, it did the same thing.
I keep seeing these two lines appear before it stops the process, and they keep appearing regardless of removing the files:
"[18:51:15] [Server thread/ERROR]: Chunk file at 655,439 is in the wrong location; relocating. (Expected 655, 439, got 655, 440) [18:51:16] [Server thread/ERROR]: Chunk file at 655,429 is in the wrong location; relocating. (Expected 655, 429, got 656, 428)"
Here is the log where it transitions into stopping again:
http://paste.md-5.net/raw/xepovobobo
@ShadyVADER
It means one of the world's region files is damaged/partial since the disk being full prevented it from being fully written. Stop the server, then look in the world's region folder for one of the .mca files with the latest "date modified" times which seems abnormally small, and remove it from the folder (backing it up just in case is always recommended). Then try running Fill again.
@Brettflan
So I finally got the server started, and I tried to continue with the filling. However, this keeps popping up and ending the process:
http://paste.md-5.net/raw/cicadepixo
Can you tell me what it means and/or how to fix it?
@WildWolfy777
I don't know, maybe you can figure out some way to do that which would be safe, but I doubt it.
@Brettflan
Hmm.. May be we have some other ways to make that? May be.. Some way to give to players bypass to border, but only if they were teleported by portal or command, and we will take that bypass back when they will be inside border again, so they can't pass that by just walking to it. Whats about that?
@ShadyVADER
[File IO Thread/WARN]: java.io.IOException: No space left on device
Above is the relevant line. Looks like your hard drive is full.
@Brettflan
The server log doesn't say anything. It doesn't give messages about plugins shutting down at all.
These are the lines in the log where it switched from filling to not having enough memory. The lines that say it has no memory continue to repeat for 10 hours.
http://paste.md-5.net/raw/qisoqexaki
@ShadyVADER
The memory available depends entirely on how much memory you have the Spigot/CraftBukkit server configured to use. When it automatically pauses, it tries to force garbage collection on the server to free up memory; this normally helps reclaim memory still in use from generated chunks that have since been unloaded, with the memory still not freed. It then waits and checks available memory every few seconds and continues when enough free memory is available. If for some reason sufficient memory is never freed up, it can indeed end up never starting back again.
Part of your problem is likely that you don't have the server configured to use enough of the memory you have available.
Memory usage while running the Fill process also depends on what plugins or mods you have that change the world generation process.
If your server is failing to start, the server log should have some indication of what the problem is.
I have a serious issue with the newest version of WorldBorder.
I attempted to do a /wb fill on my main world yesterday. It was running fine and it got to about 17.5%, and then said there wasn't enough RAM even though there was 3000 Mb left. 10 hours went by and it still refused to continue. I restarted my server because the website says that it would pause and continue when the server was back online. However, my server does not start anymore. At all.
I tried uninstalling the plugin and then starting the server, but it made no difference.
Please help :/
thanks alot for updating this awesome plugin! <3
@WildWolfy777
All people who make it beyond the border are handled the same, the method they use to get past it aren't even considered.
What you're asking for would require multiple borders per world, which this plugin does not support. It would add a great deal of complexity to the plugin, both in user control (being able to address each border in commands when more than one per world is possible) as well as the internal code of the plugin.
If you absolutely need multiple "borders" per world, WorldGuard can handle something like that, though you should be aware that using that kind of functionality in WorldGuard will absolutely take a performance toll on your server.
Hey man.. Can you please make way to go over the border with tp? If it is possible, it will be really useful for me. Cuz I wanted to place some small location over the border, then players can't reach that by just exploring the map, only by portals.
Thanks for update :)
@GyllieGyllie
Yeah, while the changelog is quite short, I suppose it's been long enough that I might as well make another release. Done.
Hey,
Any idea when you guys will put a new version online. Last version is from the 2nd of January but i'm really interested in some methods already shown on the GitHub but not in the real versions yet.
Thanks
(solved at bottom)
Hello! Great plugin.
I have an 8 core 8 gb ram server. Installed the plugin with no issues and have been using dynmap (2.3) without issue. I did a
/wb border 2500 spawn
/wb fill
/wb confirm
took about 25m, completed. Checked dyn map and it was maybe 30% filled, let it sit a bit and ran it again.
/wb fill
/wb confirm
ran about 2m and finished.
still have most of map missing,
stopped the server and relaunched and it has a little more (maybe 35%)
am I just not waiting long enough for dynmap to catch up?
Nevermind, Dynmaps is catching up. Thanks man, this is really cool.
Cheers
had a couple people popping on server map to check it out, if you want an invite message me here,