[Request] "Lot" Protection.

Discussion in 'Archived: Plugin Requests' started by dbizzzle, Aug 4, 2011.

  1. Offline

    dbizzzle

    Hello everybody, I just want a basic protection plugin without all the extra stuff. Here is a possibly easy to understand description of what I need :)

    - Ability to make "lots" they will be called by typing "/lpos1" and "lpos2" then typing "/lcreate [owner]" all lots would go from bedrock to max height so "lpos1" and "lpos2" should only detect the x and z axis's

    - (optional) Ability to type /lot [player] and see how many lots the person has just so admins/mods don't need to check everytime they give somebody a lot as on my server the higher your rank the more lots you are allowed. Nodes for the amount of lots a group is allowed would be preferred.

    - When in a lot you can type "/lot" to see the details of the lot (lotid, members, flags, size, owner) in a format like this:
    Lotid:
    Owner:
    Members:
    Flags:
    This lot is [width]x[length] from pos1, pos2 Area:

    - Lotid's as I mentioned earlier would be automatically assigned going up numerically

    - a "/gotolot" command which can either go the the lotid (mentioned above) or the users name, as many users will end up with more than one lot it would be "/gotolot [owner] [lotnumber (not id)]"

    - ability to "/lotallow [lotid] [player]" and "/lotdeny [lotid] [player]" players to allow them to build and help but remove their powers at anytime (lotid not required if within the lot)

    - a command that gives the ability to give lots flags that only admins can give such as PvP, or that users can add such as freebuild with a “/setflag [lotid] [flag]” command.

    - Permissions nodes for flags and making lots would be great.

    - Wilderness with a permissions node to build meaning that any users without a permissions node (say wild.build) will only be able to build on their lots/lotallowed lots and nowhere else.

    - Must have multiworld support to have lots in different worlds.

    - Finally a "/mylot [lotnumber]" to go to your own lots

    Thank you for reading this. I will be able to provide a help although I am not an experienced dev so I will not be able to do more complicated stuff. (If I could I would make this myself)
     
  2. Offline

    dbizzzle

    could somebody please give this a try?
     
  3. Offline

    codename_B

    BananaRegion - even simpler than this. Try it.
     
  4. Offline

    dbizzzle

    Hey, thanks for your input, but that isn't quite what I am looking for, I don't want users to be able to rent lots, I just want mods/admins to be able to assign lots to people, I also do not want our lotareas covered in fences, you can go to game.legendcraft.net(ip) and warp to a lotarea(1, 2, or 3) to see what I mean.
     
  5. Offline

    MiracleManS

    Couldn't you use permissions to apply the commands to only certain user groups?
     
  6. Offline

    dbizzzle

    Yes, but that is still not what I am looking for, with fences and renting.
     
  7. Offline

    (infected)

    Hmmmmmm...
     
  8. Offline

    Warpdrive

    I am having a go at this at the moment, I have however come across an annoying problem. I would like to store Player object in a file yet the Player object is not serializable. So I am at a dead end with the saving and loading part...
     
  9. Offline

    (infected)

    You cant store the player object. I'm not sure what your trying to do. It causes mad problems down the road.
     
  10. Offline

    Warpdrive

    Well, when exiting the plugin, I am looking for a way to reference all the players and their locations. The only problem is if I use the name or ID, when I come to reload the lot's (on plugin startup) it will attempt to match the stored name to a player that is not on the server...
     
  11. Offline

    (infected)

    Just save their location to config if you dont know how to do either of those things i can link a tutorial that has both.
     
  12. Offline

    dbizzzle

    Wow, this post got a lot of activity all of a sudden, thank you very much for trying it @Warpdrive if you have a github I could help you out a bit.
     
  13. Offline

    stoneLeaf

    Set up WorldGuard, just don't use "all the extra stuff".
     
  14. Offline

    dbizzzle

    I am currently using worldguard, it is not what I want.
     
  15. Offline

    stoneLeaf

    Well coding a region protection plugin without any experience is not the really the way to go...
    My advice would be to build an interface on top of WorldGuard, that's the best thing you can do.

    Edit: sk89q (WorldGuard's dev) has recently added an API to WorldGuard and plans to improve it furthermore.
     
  16. Offline

    dbizzzle

    I know that, that is why I made a request rather than attempt to make it on my own and explain what you mean by build an interface on top of worldguard
     
  17. Offline

    Taylor Grimes

    im creating a plugin simmilar to what you want. It sets up areas that can be bought but they go for an x and a z coord all the way up and down on the y coord. I could probably help you out but there are a few issues. First what whould happen if a mod or admin set up a lot in a place that a lot already existed would you allow two ppl to modify the crossover lot or would priority go to the last person. Also would all non lot areas be free game or would that be protected. There are many other questions like this. Skype me at t.grimes13 and we can discuss this
     
  18. Offline

    Daniel Heppner

    write it yourself.
     
  19. Offline

    dbizzzle

    Did you not read me saying that I am not an experienced dev and therefore cannot make it myself otherwise I would.
     
  20. Offline

    Daniel Heppner

    Nope. Sorry.
     
  21. Offline

    dbizzzle

    Its cool.
     
  22. Offline

    Warpdrive

    My code is largely incomplete and for the most part, probably unreadable... Also I have little knowledge on how to use github but have uploaded a repository anyway... https://github.com/Warpdrive/LotsofLots
     
  23. Offline

    dbizzzle

    Thank you! Testing now

    EDIT: I can tell it still has a little way to go (Commands not finished) and as soon as I define pos1 and pos2 I can no longer define them again. Also internal errors with /lot and if i do /lcreate [playername] i get an internal error (can still make lot for myself without a playername). Also, you dont have to finish it if you don't want to, I have decided to do this myself (with some help) and I am making good progress (plus I kinda want this to be unique to my server). Thanks!
     
  24. Offline

    Warpdrive

    I know a lot of the bugs are yet to be ironed out and commands are yet to be finished. I am happy to work on it still if you require my help or I can sit back and you could query sections of my code that you needed help understanding. Either way I will probably chip away at it in my own time. That is if my damn pesky school work doesn't get in the way.
     
  25. Offline

    dbizzzle

    Yeah school is a brutal distraction, I may just take snippets of your code and put it into mine (I am doing it a slightly different way than you) And if you want to do it great :D but, I have to ask you not to release it, I want it to be unique to my server. Hope you understand
     
  26. Offline

    Warpdrive

    No problems man, I think I will just continue on with my little one, it won't escape my hard drive. Promise :p.

    EDIT: Also just a suggestion, this is how I think the create process should go:
    Player types /lcreate [<playername>]
    Player gets prompted for first position. Player places block.
    Player gets prompted for second position. Player places block.
    Lot is created.

    IMO it is a lot more simple than the three commands you suggested...
     
  27. Offline

    dbizzzle

    @Warpdrive I see your point but the way I will have it is it takes the x and z axis's from your location so /lpos1 saves where you are standing, or I may use Worldedit pos1 pos2 the same way you suggested. And thank you very much for understanding :), you have skype btw?
     
  28. Offline

    Warpdrive

    Sure do.
     

Share This Page