[MECH] BorderGuard v4.40: #1, Most Efficient Map Limiter [1.7.8]

Discussion in 'Archived: Plugin Releases' started by Intelli, Jan 31, 2011.

  1. Offline


    BorderGuard 4.40

    BorderGuard is the MOST efficient Border plugin available!
    100,000+ downloads! Thank you for your support!

    This plugin prevents people from exploring beyond a defined border. This plugin checks for all movement, including vehicle movement, and will keep you within the border even if you remain within a vehicle.

    http://minerealm.com/plugins/borderguard/BorderGuard.jar (v4.40)
    (If you appreciate this plugin, please feel free to leave a comment below. =])

    To set an invisible border:
    /setborder <distance> <square|round> - Set the border, and the distance of the border from your current point. Optionally, also specify if the border is to be square or round.

    To disable the border:
    /disableborder - Remove the border.


    Only the person who first uses the /setborder command can use it again, or remove the border.

    The plugin has multi-world support. When setting a border, you're only setting the border for the world you're presently situated in. You'll need to set a border for each separate world.


    Version History:
    V4.40 - Fixed vehicle teleportation & added Material data support.
    V4.31 - Added a quick fix so that it'll work with the CraftBukkit development build.
    V4.30 - Updated to work with the new Bukkit API (#1846) R5+
    Older Versions (open)

    V4.20 - Fixed it so the save-file no longer becomes corrupted with multiple worlds. Code cleanup.
    V4.11 - Changed getDisplayName() checks to getName().
    V4.10 - Major performance enhancements. Using version 4 is highly discouraged.
    V4.00 - Modified to work with the latest craftbukkit version (953). Older versions no longer work.
    V3.10 - Removed the multi-threading, was causing accuracy issues.
    V3.00 - BorderGuard Turbo! Now works with bukkit 670, and has completely overhauled the base BorderGuard "engine", resulting in a huge performance boost.
    V2.40 - Updated to work with the latest version of bukkit. (602)
    V2.30 - Resolved multi-world issues. Now properly handles multiple worlds.
    V2.20 - Updated to work with the latest version of bukkit. Existing configuration files will no longer work. (Borders must be re-defined).
    V2.10 - Updated to work with the latest version of bukkit. Fixed movement issues with the "round" version.
    V2.00 - Multi-world support, better teleporting, no duplicate warning messages, configuration file now within folder.
    V1.00 - Released plugin.

    1. Using, for example, "/setborder 5", will set the border 5 blocks away from the location you are standing. This would create a border that is 10x10 in size.
    2. For the full plugin, with physical borders and more, take a look here: http://forums.bukkit.org/threads/mech-borderguard-v2-00-limit-your-map.656/

    Let me know if you have any questions, or find any problems.
    AviciiPL, MrMag518, MiRROW and 23 others like this.
  2. Offline



    name: BorderGuard Lite (Square)
    main: com.minerealm.borderguard.BorderGuard
    version: 2.40
  3. Offline


    Lol you mean I don't get the fix without using the fixed jar?!?

    In all seriousness though, thank you for the fix. I discovered the original jar was locked and not actually deleted when I first "deleted" it.
  4. Offline


    lol i thought you were trolling me :D
  5. Offline


    Update for Build 670 please? :)
  6. Offline


    BorderGuard Turbo (v3) is now here!

    As of version 3, BorderGuard now runs in a dedicated thread! This prevents this ultra-lightweight plugin from having any performance impact on your server.

    The entire core system has been re-written, resulting in a huge performance boost. Additionally, minor bugs in the old versions, such as being teleported back to spawn, have been fixed.

    The square/round border option is now combined in a single plugin. You can specify a round border by typing "/setborder <size> round" in-game.

    For round borders, it now uses a vastly improved method for performing checks. Round borders are now nearly just as efficient as square borders!

    Do note, when updating to version 3, please ensure you re-specify your border, as border information is now stored in plugins/BorderGuard/BorderGuard.properties

  7. Offline


    Great work on your plugin. Thanks !
    CB670, BorderGuard 3.00.
    Got this one after reaching the border :
    08:50:56 [ATTENTION] Failed to handle packet: java.lang.IllegalStateException: F
    ailed to add player. [email protected](TheRec at 55.26720536
    6798116,68.0,1072.0023024948844) already is in chunk -7, 77
    java.lang.IllegalStateException: Failed to add player. net.minecraft.server.Enti
    [email protected](TheRec at 55.267205366798116,68.0,1072.0023024948844) already is in
     chunk -7, 77
            at net.minecraft.server.PlayerInstance.a(PlayerInstance.java:38)
            at net.minecraft.server.PlayerManager.c(PlayerManager.java:141)
            at net.minecraft.server.ServerConfigurationManager.b(ServerConfiguration
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:268)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Maybe it's due to me trying to use WorldEdit compass to teleport outside the border, that did not work, I got pushed back to the source point of teleportation. Then I went back on my steps and tried to move around in the authorized part of the world (not restricted by the border). At this point I had no error but when teleporting it went in a loop saying I was outside the border... so I used /spawn, went back to the border and tied to pass it by walking and this error happened. And I lost connection to server (which didn't crash) with the following message: "Internal error"

    Unfortunately I can't reproduce this right now... so it would be hard to give more details :S
  8. Offline


    Very strange. Does the error display again when you try to go past the border again? And does it prevent you from passing the border still? Ahah, I'm blind. Didn't see that you can't reproduce it.

    Edit: Also, were you using a round border or a square border?
  9. Offline


    When I reconnected, the border was working again... without having to restart the server. Indeed, pretty strange.

    I'm using a square border, 1000 blocks from spawn point (so the map size is 2000x2000).
    Freshly created after installing your new version :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 8, 2016
  10. Offline


    I'd love multiple borders (More than one per world/map) for this. As in Borderland. I don't even need different permissions, just make admins able to cross over the border (Bordercross mode, so that one can test the borders..)

    Otherwise I like it. But will use Borderguard lite as for now.
  11. Offline


    What's a typical Boarder size you'd recommend?

  12. Offline


    BorderGuard Turbo (v3.00) still has multi-world support like BorderGuard Lite.

    I personally don't really recommend over 5000x5000. (As that is really a fairly large map)
    So /setborder 2500
  13. Offline


    Thank you for making a rounded feature. I will switch over from Epiczones :)
    Good job, peace :D
  14. Offline


    I got a problem ...
    I'm from BorderGuardLite and I used "rm" command on BorderGuardLite/ folder instead BorderGuardLite.jar for the conversion to BorderGuard v3.0 ... In game, the border still exists and I don't remove it, I'd like to enlarge it.

    Idea ? Thanks a lot for your job :)
  15. Offline


    Thanks dude!
  16. Offline


    any reasoning for your 5000x5000 total
  17. Offline


    5000x5000 is nothing. Some of us have maaaaajor maps. Mine is twice that size, and 60% of it active.
  18. Offline


    Did you restart the bukkit server process? Border data is now stored within the /BorderGuard/ folder.
  19. Offline


    That wasn't what I meant.
    "BorderLand", a plugin that was for hMod originaly, had multiple borders.
    So you can be within this border, and within border number two. But not between them?
    (Awesome illustration maed with online editor lolz)
    Red is border
    Blue is space you can't access.
    You would need to be teleported between them.
  20. Offline


    Ah, alright. =]
  21. Offline


    @Intelli You're welcome, for the vehicle handling method from WorldBorder's code. ;) However, you should also include the vertical location offset as well; a vehicle's Y location will actually above that of the passenger for some reason. With the example of boats, the Y location will be 1.0 higher than the player. So, again using boats as an example, they will end up moved temporarily underwater or, if the water is only 1 block deep, the player can potentially get stuck in the ground below. Not good. This is based on my testing when I was working on that feature for WorldBorder.

    Also, for running your own thread to check for people outside of borders, you should probably be using Bukkit's scheduler, specifically the getServer().getScheduler().scheduleSyncRepeatingTask() method to initiate it. There are supposedly problems caused by running a separate Thread inside a plugin, which scheduleSyncRepeatingTask() is supposed to take care of; that's admittedly just what I've heard, though.
  22. Offline


    Thanks for the update. Any chance of the full version getting updated? Or will 3.00 Turbo ever be updated to include a physical wall?
  23. Offline


    I'm considering it. The old version that had the physical wall option was pretty buggy, so I would need to re-write the base code for that. Mainly in regards to saving the original block data.
  24. Offline


    Yes I restarted it, I tested without any border plugin and it's like if BorderGuardLite wrote on my world folder ...
    I'm very bored by this because my players want to go out to find new place for their city.
  25. Offline


    Do you think that would be possible to implement? :rolleyes:
  26. Offline


    Just a thought Exone, you could achieve the sort of thing your after right now with two worlds, each with a border.
  27. Offline


    how do i go about installing this plugin now?
  28. Offline


  29. Offline


    there is no .jar in there
  30. Offline


    In where? BorderGuard.jar is the .jar file.
  31. Offline


    How about an option that prevents chunks from being generated outside of the border?
    That would act as a pretty good barrier(since players with fly mods would be unable to place blocks outside the border anyway).
    It would prevent border guard from having to do a check every time the player moves, It would only have to check during the chunk generating process, thus increasing performance.(not that I'm entirely sure it works that way)

Share This Page