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:
Worldborder is working with Multiverse Core ?
@Brettflan
Is it fixed now?
@JD_Mortal
Hey, I don't know what other plugins you use, but what you want is pretty easy to arrange with WorldGuard, with that plugin you can make a region inside your worldborder that only certain groups can enter. Have you tried that?
@advenbest
It builds the world, at the present state of the command. It still must update the clients as they enter/see the chunks. It only reduces some server-side "thinking", initially.
Since the world is not "static", (unchanging), there is no real long-term bonus other than the initial creation process. Trees grow, vines grow, fires burn-down forests, enderman move blocks, creepers blow-up terrain, and people build...
One day the core may only broadcast "changes", but that isn't the case with the game, as it stands today. Thus, no real gains for the client or the server, from doing this. (With the exception of the above stated initial world-chunk drawing. Also, for map updates.)
There would be another advantage to this, if you ever wish to compare the existing world with the "drawn world" at that initial state, for detecting changes. (However, it will detect player and non-player changes, which includes growth and other block-updates, which do not happen until someone actually "sees" the area, and is within that 256 block range.)
I have two big wishes for this plugin...
1: Reverse permissions. The ability to restrict people from ENTERING the center of the world, instead of restricting EXITING. Thus, noobs and lower levels can play outside, but not ENTER the designated "veteran" zone.
2: Leveled permissions. With a set "world border", as this is already setup to be. With inner permissions to allow HIGHER or LOWER restrictions per area. EG, World border stops ALL, except those with set permissions. (Small group). With inner levels restricted to isolate groups (X,Y,Z) as... (X,Y,Z)-(Y,Z)-(Z)... or (X)-(Y)-(Z)... or (X)-(X,Y)-(Y)-(Y,Z)-(Z)... etc. (I think three groups would not be that much of a burden, up to 8 levels, with 0 being "No-one pass", hard world limit, even to admins and the owner.)
@aikar looked into the bug with teleporting between worlds and submitted a pull request to the Spigot project a couple of days ago which should fix it.
Since they still haven't pulled it yet, anyone wanting the fix right now can get it by running the Paper fork of Spigot:
https://paper.emc.gs/
@MinePuppeh
Spigot bug. The player's location data isn't properly updated immediately when they teleport between worlds, such that the world reference is pointing to the new world but the coordinates are still the coordinates they were at in the previous world before they teleported. For the period of time which these are out of sync (and therefore wrong) shortly after teleporting between worlds, it can lead to problems in plugins like WorldBorder that need to check that data. Hopefully they'll get that fixed soon.
@advenbest
The Fill command makes the server generate those chunks of the world, which can then be saved to disk and also be available to mapping plugins/mods. Later when a player actually visits the area, the chunks can be quickly be loaded from disk rather than the server needing to run through all of the calculations and work required to initially generate them.
about the fill command. does this command force render the entire space of the world border permanently so the server won't ever have to load these chunks later on?
I'm noticing on 1.9 people who go through portals, no matter where they end up, are thought to be past the border.
When revisiting the locations of the portals, without using them, there is no detection for being outside of the border.
Yes it works in 1.9.2, also specifically on spigot, just tested it.
err is this works on 1.9.2 server?
@Brettflan
Oh strupid me! xD i am using this https://www.spigotmc.org/resources/epicworldgenerator-1-7-10-1-9-2.8067/ i will contact the developer right away :)
@kroko1992
There is no separate CraftBukkit release for Minecraft 1.8+, AFAIK. The only other thing would be if you're using plugins or mods which change world generation, one of them might be responsible.
@Brettflan
I Just downloaded everything again and double checked that it was the newest and the same thing happens. it dont want to fill :( do you think it might make a defrience if i change spigot and use craftbukkit instead?
@kroko1992
All I can recommend is to make sure you have the latest Spigot build, then. That sounds like a memory leak or something similar since the garbage collection isn't succeeding in clearing up memory. I did see a Spigot update reference to do with a memory leak, and a few updates with something else chunk related, so it might already be fixed or at least improved.
@Brettflan
I also tried setting the frequency to 10. It gave me the same result :S
@PhanaticD
I've been keeping loose track of Spigot progress and haven't noticed any fixes posted by them that might relate to this bug or had anyone else tell me that they'd fixed it yet, so no, I don't think so.
any fix yet for the reached edge of world on switching worlds
@kroko1992
If you set the frequency higher than the default of 20, I'd recommend not doing that in 1.9.
i just put the latest version of spigot on my server but it wont fill my world :(
it says:
i have dedicated 10gb of ram to the server and both with the default "fill-memory-tolerance" and it set to 4000 gives this msg. it dose never free any memory and dose not startup again. is this currently a known issue? i am on spigot 1.9 latest version as of now.