[Plugin]WorldProtection (Auto area protection script)

  • Will there be support for MySQL in the Auto area protection plug-in? Will the source code be opened?

    What do you meanby MySQL support? do you want the plugin to use a MySQL database to save the areas or you want the plugin to be usable on a server running on a MySQL World database?


    The latter should already be possible.

  • i second Scruffy's input, also, an auto-decay feature would be nice, where you set either in-game hours or RL hours (i think the latter might make more sense, but both would work) of players being offline, their AP would automatically be deleted - this would prevent people to come on, AP a bunch of stuff and then call it quits, with those areas lingering around for no good reason. i'd recommend default decay hours of 7 days = 24 * 7 = 168 hours.

  • i second Scruffy's input, also, an auto-decay feature would be nice, where you set either in-game hours or RL hours (i think the latter might make more sense, but both would work) of players being offline, their AP would automatically be deleted - this would prevent people to come on, AP a bunch of stuff and then call it quits, with those areas lingering around for no good reason. i'd recommend default decay hours of 7 days = 24 * 7 = 168 hours.

    I think you'll find 7 days is a bit short. You will catch out legitimate players who don't log in every day.


    To the developer:


    But some sort of warning system would be a good idea. Perhaps allow admin to enable/disable auto-decay such that it will either:

    • Auto-remove protected areas for players who have not logged in for X days or
    • Alert Admin in game when player has not been on for X days, and write it to a log along with all the areas they own. (Admin can then choose to remove the areas)

    Perhaps you could extend this decay feature to work per 'group' of protected areas. This would ensures players are only protecting the areas they USE. Random little areas they forget about will be removed, without removing the active areas. The system may work like this:

    • Record the 'last used' date of all protected areas
    • Updated the last used date when owner or any 'friend' enters the area

      • which then updates all 'connected' areas, such that the group of areas connected by a side all have same last used date.
    • Whenever an area reaches the admin defined decay period since 'last used', the area is flagged or deleted (depending on how admin have this enabled).

    You could then extend this to give players a warning a day or two before an area will be removed.

    • Plugin checks areas when player logs in, or runs the command to list areas.
    • Areas X days from being removed are highlighted red with a warning beside them when listing areas
    • Player gets a warning when they log in "You have protected areas that will be removed in X days. You must use an area to stop it being removed." or some such.
  • Where do i report bugs?


    I noticed that trying to use a protected area from outside the protected area, or over the border of another protected area, the game would not let do the action.


    EG. I have 2 protected areas touching each other. I stand inside one protected area, and try to place a sapling inside the other protected area, the game doesn't let me. Same thing for trying to mine terrain, place plants, or open a crafting table. I found this is most evident with vertically touching areas. <- I own all the protected areas, both the one i'm in, and the one i'm trying to do an action in.

  • hi all.


    Ive noticed a line of red text under the world saying text demo comeing soon


    Process of elimination its definitly from this plugin. Any ideas?


    Thanks.
    Devyn.

  • Only see one issue with this plugin:


    When someone replanting trees after they have cutted it down, it auto claims the area..


    And are chest protected as well?

  • I need some help with this. I downloaded the file in the first post of this thread and it is only a jar file. I have tried the plugin but it does not respond. Should there be other folders / files in that download? I am adding it into the plugin folder but not sure if that is the right place or not.

  • So I have been having issues with the server crashing the past few days. After discussing things with players it seems to be related to this plugin. What I found is that a player is / was using a /wpp command to teleport to areas around the playfield. The resulting errors are what I am linking in a pastebin attachment. Once he stopped using this command the errors also stopped. I am not sure if it is a conflict with the /gps plugin but it might be related. If this is the case, can I disable the teleport option in this plugin as we don't need two options or is there something else I should be looking for?


    https://pastebin.com/hSpKgzYZ




    I also wanted to ask regarding this... Is there a way to protect the serverspawn from land claims. I am having to go to that location daily to remove landclaims accidentally set but new players. I would just like that area available to all players but unable to set their own claims in the "unprotected" server spawn.

  • Dear @yahgiggle,


    First of all, thanks for creating this plugin! It is very handy!


    I have some small things to report. It is possible that these things have already been reported.


    1. A red text appears on the World at location: X:0 Y:0 Z:0. It would be handy if it were removed.


    2. The 'M' button for the Map seems to be bugging, gets stuck and makes it impossible to close the Map.


    3. Suggestion: It would be handy if options such as 'Main Panel On' and 'Auto Areas On' were saved after leaving the server.


    I hope that you make some time to look at these things. Thanks in advance! :thumbsup:


    With kind regards,


    Maarten.

  • First of all, this is a great plugin. Thank you for that.


    However, I've found some bugs:


    1. When the plugin auto-claims an area, it is not possible to remove it right away by using the "R"-key. I have to quit to the main menu and reconnect to the server before I can remove the area.


    2. When the plugin auto-claims an area, I can not manipulate the adjacent area while I'm still standing in the auto-claimed area. I first have to hide areas. This often happens when I'm attaching a torch to a tunnel wall and then continue digging.


    3. The command "/wpp delete all username" does not work for me. My username consist of two words. Maybe the plugin stops parsing the command after the first part of my username.


    I'm not running my own server, just playing on public ones that run the plugin, so I can't play around with the plugin configuration.

  • Has anyone had issues with the plugin database getting too large and causing issues?


    On my server some players have started noticing phantom claims that are linked to a real claim elsewhere in the world. So if an admin removes the phantom claim, it removes the other claim too. I noticed the issue a while back, but there have been more reports of it recently. Our theory is that maybe the database has gotten too big and is messing up.

    Green Valleys - PvE Survival - Land Claims/Portals/SetHome - discord.gg/EQ6a9mb

  • BUMP

    ATTENTION PVP ZONES NOW NEED TESTING

    I have got PVP Zones working - but need some users to test it out, the file is the new added one and should work with the old DB, but backup your old DB just in case

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Server @ ip 139.99.136.76:4255 Name (The Federation of territory) Unity :thumbsup:

    If at first your code does not work call it version 0.1 with the odd bug :thinking:

    My Own Website




    31245-logo-png

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!