WorldProtection, Self claim protection plugin

  • WorldProtection


    Version 0

    • Added the ability to claim Areas ATM use the (B)Key this is temporary
    • Added points system, This gives 1 point for every minute of playtime, this will be used as a way to acquire the right to claim a unclaimed plot.
    • Added a way to view your claimed area when joining a game and when claiming a new plot, you can view the area, the view lasts for 60sec then the areas are hidden,
    • Added points and area owner labels, they are onscreen left bottom side

    Version 1

    • To claim an Area now costs points, for every minute the player earns 1 point, you need 10 points to claim an area
    • Added permissions to stop players from doing anything outside there own areas, ATM the whole world is protected, (you can only build or do anything in your own areas) - because it takes ten minutes to get enough points to claim a area, most users who grief your sever will simply give up and will leave, but this could also cause some players who want to build and stay to also leave, unfortunately.

    Version 1.1

    • Fixed the problem with Construction getting placed or smashed due to no cancel event for Construction
    • Fixed the cost deduction for plots been only 2 points when it should have been 10 Points

    Version 1.2

    • Started work on the User settings UI, to open it up type (/wp) in the chat, to exit, click the exit icon top right corner
    • added area names and a way to name each area in the settings UI panel -- you need to be inside the area you want to name, then open the settings UI enter the name next to Area name and click the Area Name button to update the area with its new name. Note this needs a database delete to work
    • Added a delete option in the Settings UI, again open the UI when inside the area you want to Delete and click the Delete button

    Version 1.3

    • Bug fix
    • Added Show and Hide Areas Button to the User Settings Menu, when you click show areas, your own areas are green and everyone else's will show in red

    Version 1.4

    • Added both add and remove friends option, the friend needs to be logged in ATM to add or remove them, this will change
    • Added compatibility with the current built in protection, these areas are called Admin areas, all admin areas override WP permissions, this means you can set areas using the built in protection with what ever permissions you wish, example, you could make a community area where any user can do anything you set the permissions for.

    Version 1.5

    • Bug fix's - should be more stable now.


    Version 1.6

    • Admin's can now delete any claimed area.
    • The cost of plots increases each time the player buys an area.

    Version 1.7

    • Fixed some typo's
    • Added Area Creation Date to the main panel
    • Added Last Player Online Date to the main panel
    • Fixed the Area count not updating when deleting an Area


    Version 1.8

    • Added user off line number of days flag, in the panel, this information change's color, 0 to 30 days is green, 30 to 60 days is blue, 60 + days should be red
    • Updated the panel look
    • Fixed a small bug with the points system, it was still giving points to users off line oO
    • Updated the user information Order - makes more sense now -- user points at top - area info below

    Version 1.9

    • Added Town Areas, Town Areas are nonprotected areas that are also the same size as player areas, Only admins can place town areas, Use the (N) Key to place the area, but be warned if a town area is hard up to a players area, a player maybe able to reach into the protected area and do damage if anything is built too close to the Unprotected Town area, When clicking Show Areas, Town Areas are Shown all in white.

    Version 2.0

    • Added lock or unlock option for area, locked = owner and friends only (default), Unlocked = This area fully unlocked
    • Added Doors locked or unlocked, all Doors in a given area become unlocked or locked
    • Added Chest locked or unlocked, all Chests in a given area become unlocked or locked
    • All town Areas also now have locked or unlock, Admins can set Any area locked or unlocked including Player areas, the default for all town and player areas is locked

    Version 2.1

    • Players can now send points to each other
    • Admins can send unlimited points to other players

    Version 2.2

    • Players can now preview areas, to preview areas click the view areas button in the main panel, then start walking around, each preview area will show up with a white border, once finished go back to the main panel and click hide areas.
    • All players can now take food from all non claimed area's, this includes Apples and such from trees, but they cannot cut trees down.

    Version 2.3

    • Admins can now rename any area, including town areas

    Version 2.4

    • PVP on or Off now added to the main user Panel, default is off, to know if areas are PVP areas the area name shows RED, if the PVP is off the name is GREEN for pvp on, Note: The server may need to turn on PVP for this to work.

    Version 2.5

    • GUI Improvements

    Version 2.6

    • More GUI Improvements




    About sending points

    To send points to another player first both players must be online, then open the /wp panel, enter the name of the player in the name here text area, then you can change the amount from 10 to what ever in the amount entry text area, you must have the points to send, if you don't have enough points you cannot send the points, points can take upto 1 minute to update, when sending points you will receive the friends total of points, this allows you to see there points increase




    Notes : ATM the API is broken for getting the areas and names of the areas, so as a patch i have added a way where the player has been logged if they are in a area or not, this means if you install this on your server you need to add a Admin area where your spawn area is, this way new users are spawned into a Admin area and when they leave the area detection is set, if you install this plugin on a old server, all players who have already been on the server will be set as inside a Admin area even when they are not so they need to find a Admin area, walk inside it, then back out, this unsets the default of been set inside a area allowing them to once more build as normal. this will change once red51 fix's the getAreas bug in the API






    TODO

    • setup user permissions for protected claimed areas, (stop others other than the owner doing anything inside there area)
    • Set the points system to stop users claiming plots if they do not have any points (points will be removed each time the player uses some)
    • Start work on a Admin control Panel (Admins will be able to remove any plot or anything inside a plot, and all other settings)
    • Start work on a user Control panel (Owners will be able to add and remove friends, change the name of each plot)
    • Plot name label, and a way to name each plot
    • Add view areas and hide areas option
    • Add options for PVP or PVE if possible.
    • Add a way to toggle on and off the screen information.
    • Allow players to trade points - Also Admins to give points to any player.
    • add the date to each area when it was claimed --- to help Admins --- also add last time player was online --- maybe red flag type warnings ---
    • Add Town Naming Area option for Admins town areas
    • Add preview option


    Ok Guys i have some free time while i wait for the API to get updated, so i can do more stuff needed to my other plugins, so on request by another player, i have decided to start redoing my WorldProtection plugin for Unity,

    ill be doing this plugin from scratch,


    So does any of you want to see any type of changes or requests for this new version ?

    feel free to comment now before its too late :-P



  • Hi yahgiggle,


    Is there any chance the WorldProtection plugin you are working on for Unity would work in single player mode also? If so, it would be very cool to have protected areas I could designate/name along with ability to optionally not allow the terrain to be modified in some areas (but still allow construction to take place). Thanks for all the cool plugins that you are already working on!

  • Hi yahgiggle,


    Is there any chance the WorldProtection plugin you are working on for Unity would work in single player mode also? If so, it would be very cool to have protected areas I could designate/name along with ability to optionally not allow the terrain to be modified in some areas (but still allow construction to take place). Thanks for all the cool plugins that you are already working on!

    • All my plugins work in single player mode, its where i test them :-)
    • I can indeed add naming options for each area,
    • Each area could have its own setting for permissions, so the ability to optionally not allow the terrain to be modified in some areas (but still allow construction to take place). could be set by the area owner, in some type of menu, i think this would indeed be handy if you have guests added to your areas
  • I tried this out and it's looking very good so far yahgiggle!!! 8) I like how the whole world is protected at first and then you have to buy sections of land. Are you planning for an option to sell the land too -- (aside from the admin)?...the default size of the land plot is nice, but wondering if there would be a way to configure the size if desired? (or have an option to purchase a larger plot of land for a higher cost?)


    I was also wondering how (in single player mode) to buy land as someone other than the admin (hoping this is possible)? I imagine/hope additional player names could be set up somehow for that type of functionality? Thanks again for all your awesome work! :)

  • yes you are right, but by setting the damage too zero and the id to -1 it gets around this, but of cause once cancel event has been added for construction i will change my code to use that.


  • I tried this out and it's looking very good so far yahgiggle!!! 8) I like how the whole world is protected at first and then you have to buy sections of land. Are you planning for an option to sell the land too -- (aside from the admin)?...the default size of the land plot is nice, but wondering if there would be a way to configure the size if desired? (or have an option to purchase a larger plot of land for a higher cost?)


    I was also wondering how (in single player mode) to buy land as someone other than the admin (hoping this is possible)? I imagine/hope additional player names could be set up somehow for that type of functionality? Thanks again for all your awesome work! :)

    ATM you earn points by been in the game, so each minute of playtime = 1 point, ATM you need 10 points to buy a plot but they only cost 2 points, ive made it cost also ten for this next update, so what this means is as you spend more time on a server you get to buy more area, so you just buy the plot next to the one you already own, for the shape its set this way so no plot can ever overlap anyone else's plot, for single player, it does not matter about the game you use to play with others, as soon as another player joins a single player game, the script will use there name and info and they will have there own areas and stuff, there is really no difference to single player or a server.

  • That sounds good for the cost of land plots. Is it possible to set up other "players" (beyond just being the admin) in single player mode? I'd like to play around with defining other protected areas (in effect simulating what it would look like if you had other players that had joined on a server) -- It's purely for my own sandbox fun that I'd be doing this, but just wondering if it's possible?

  • That sounds good for the cost of land plots. Is it possible to set up other "players" (beyond just being the admin) in single player mode? I'd like to play around with defining other protected areas (in effect simulating what it would look like if you had other players that had joined on a server) -- It's purely for my own sandbox fun that I'd be doing this, but just wondering if it's possible?

    if you are playing without other users joining, then yes its possible to change other areas to fake user areas, this can be done by changing the Names and UID in the database, you can use a tool called DB Browser DownLoad Here  use this tool to open the plugin's database thats in the folder in the plugins folder, then just edit some names and UIDs and click (write changes)

    the table you need to edit is the Areas one, its in the drop down menu called Table


    BTW this is how i test the plugin, also you will notice when reloading the game, the areas are now showing green and red areas, the green areas are yours and red ones are other players

  • but by setting the damage too zero and the id to -1 it gets around this, but of cause once cancel event has been added for construction i will change my code to use that.


    That's a great workaround yahgiggle :D:thumbup:


    My MR plugin (v1) is all but finished except it was missing these construction event cancel methods so I delayed the released until next RW update... but... now it looks like I may be able to implement the same workaround as you've mentioned. :party::thumbup::thumbup:

  • That's a great workaround yahgiggle :D:thumbup:


    My MR plugin (v1) is all but finished except it was missing these construction event cancel methods so I delayed the released until next RW update... but... now it looks like I may be able to implement the same workaround as you've mentioned. :party::thumbup::thumbup:

    that is awesome, and happy to help BTW :-)

  • if you are playing without other users joining, then yes its possible to change other areas to fake user areas, this can be done by changing the Names and UID in the database, you can use a tool called DB Browser DownLoad Here  use this tool to open the plugin's database thats in the folder in the plugins folder, then just edit some names and UIDs and click (write changes)

    the table you need to edit is the Areas one, its in the drop down menu called Table


    BTW this is how i test the plugin, also you will notice when reloading the game, the areas are now showing green and red areas, the green areas are yours and red ones are other players

    Thanks for the above information, I did get that to work and create fake user areas. One more question, how do I in single player mode change to become one of the fake user names I set up to test out the plugin as though I was playing as them? I tried to do some searching for a command or something but didn't turn up anything. Hoping you can help again...appreciate all you do! :)

  • Thanks for the above information, I did get that to work and create fake user areas. One more question, how do I in single player mode change to become one of the fake user names I set up to test out the plugin as though I was playing as them? I tried to do some searching for a command or something but didn't turn up anything. Hoping you can help again...appreciate all you do! :)

    Unfortunately I don't know of a way to do such things, if you could do this I think some people would use that to steel the game, as you could just download the game and use any fake name to play it oO so you can only use one user id per account, how ever you could keep the areas uid as yours but change only the owners name I guess, the script really does not use the players name so it should still work no matter the name you use.

  • Hi yahgiggle, when I said player name I was referring to the field called AreaOwnerName (I updated a few to different names) -- so maybe I just used the wrong terminology since these are all under the same PlayerUID. I was looking at utilizing this for setting up different nature reserve areas (and eventually label it "nature reserve" or whatever special name I want) I'd turn terrain modification off for those protected areas when I play in single player mode. This would keep certain areas guaranteed to respawn wildlife and I suppose bandits if too if desired once they become available in the unity version. :)

Participate now!

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