Inactive [SEC/ECON] Plotzy V0.3.1 - The easiest self-service block protection system out there [1000]

Discussion in 'Inactive/Unsupported Plugins' started by AlbireoX, Jul 4, 2011.

  1. Offline

    AlbireoX

    PLOTZY - Planet to the People!
    Version: 0.3.1 Download: Link Source: Github Documentation: Link


    Finally, a protection plugin that anyone can figure out! (Excuse the crappy tagline)

    I used to use Residences. For some reason, it didn't work on my server. Also, cuboids annoyed the crap out of me. That's why I decided to create Plotzy.

    Plotzy is a self-service protection system. All you need to type to buy land is /pz create. When you do that, the plugin automatically buys a sphere of land for you with a radius of 10. Easy and simple. You can then expand or shrink these spheres as you please.

    Installation, Usage, and the Like:
    It is crucial that you see the documentation. Note: it requires MySQL. Not SQLite or H2. No, I'm not adding support. Maybe you could ask a friendly dev if they'd like to code it in for me. I'll give them credit.

    EDIT: I hardcoded a boolean -- mysql enabled? Since plots are now based on hashmaps, it would be relatively easy to make this flat-file. Plus, I already reduced database calls. If you want to help me with this please fork me.

    Changelog:
    Version 0.3.1
    • Fix for a NullPointerException. Pesky little critters.
    • Fixed a little bug where I accidentally put a variable name in quotes. Seriously, I need testers.
    Version 0.3
    • Reduced number of database queries by a LOT
    • Added a max plot size setting
    • Added a max plots allowed setting
    • Internal: Made plots objects as opposed to just getting queries from a database; made things MUCH faster
    Version 0.2
    • Permissions support
    • Money in the config file
    Version 0.1
    • Initial release

    Time to bump!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
    brzavr likes this.
  2. Offline

    RazorFlint

    Wow, i dont see how this hasn’t been flooded with comments but....
    When you say "makes a radius of 10" what if you have a protected area with worldguard etc...?
     
  3. Offline

    AlbireoX

    I honestly don't know, but I'm meaning to use this plugin completely alone. Probably WorldGuard will override it.

    It's funny how this plugin which took me about 5 days to make has way less comments than ZombieDeaths which took me 5 minutes... Heh. Probably because of MySQL.
     
  4. Offline

    RazorFlint

    Yeah probs flatfile would be nice thow...
     
  5. Offline

    makeme

    u should add a utube vid then i might download
     
  6. Offline

    SneakyToe

    "An internal error occurred while attempting to perform this command"
    Lol, seems quite not-working. (I got all my files right, it's not my stuff that's wrong)
     
  7. Offline

    AlbireoX

    What was the error? I tested it; maybe you weren't connected to MySQL?
     
  8. Offline

    darkcloud784

    anyway you can add permissions support for overriding and such?
     
  9. Offline

    AlbireoX

    There's OP support right now.
     
  10. Offline

    Deleted user

    Looks very simple. That's just what I'm looking for. I already have WorldGuard for my main protection but I want something else that's very basic that way my regular players can protect their areas. (of course I'll need to add permissions support first)

    What is the land bought for? It says 1,000 in the wiki but 1,000 what?
    At the top it says it supports all plugins that are supported by "Nijikokun's Register API".

    I have no idea what that is.
    Would iConomy work with this?
     
  11. Offline

    AlbireoX

    1000 iConomy dollars. I'm going to make a configuration thingamajig soon. And what permissions should I make exactly?
     
  12. Offline

    AlbireoX

    Permissions added! :D
     
  13. Offline

    dbizzzle

    This would be great if it didn't require MySQL
     
  14. Offline

    brzavr

    Code:
    [SEVERE] Could not load 'plugins\Plotzy.jar' in folder 'plugins':
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:173)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:199)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:122)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:51)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijikokun.register.payment.Methods.<
    init>(Ljava/lang/String;)V
            at com.simplyian.mc.plotzy.PlotzySL.<init>(PlotzySL.java:49)
            at com.simplyian.mc.plotzy.Plotzy.<init>(Plotzy.java:67)
            ... 13 more
    Super plugin!
    pliz make argument '10' (radius) is variable !
    Code:
    createPlot(plotName, 10, player.getLocation());
    expample /pz create <Plot name> <radius>


    and fix error (my message top)
    CB 953

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

    AlbireoX

    I fixed your error in my code (it seems I misunderstood how Register works) and what economy are you using? I'll work on the custom create radius thing.

    Also, the plot name was made to possibly have spaces. Would "/pz create My Plot Name:40" where the 40 is an optional radius be fine?
     
  16. Offline

    DreadKyller

    I don't think anyone would have problems with that, that's exactly the way default commands does damage values on the give command.
     
  17. Offline

    brzavr

    iConomy 5

    Thanx!
    Yes, it is fine!
     
  18. Offline

    AlbireoX

    By the way, you could always just expand or shrink the plot after buying it, couldn't you?
     
  19. Offline

    brzavr

    Hmm, yes true, may be

    what about fix error
    when update jar-file?
     
  20. Offline

    bradgillap

    Sold! My users are so fed up with having to redo their residences and just today the plugin decided to take a dump again. Nothing even changed on the server this time and it clunked out.

    I'm fascinated by your use of mysql for speed I would assume and hope this works out for my people. Thanks for your efforts!

    Feature request: Set max area of sphere expansion and max number spheres users can create.

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

    AlbireoX

    I'll include that into 0.3. Thanks for using my plugin!
     
  22. Offline

    brzavr

    may need to add
    /plz addmember <plotname> <playername> ?
     
  23. Offline

    AlbireoX

    0.3 Released; if you are using 0.2 please contact me. Or you can just delete the pl_founder field from your pl_plotzy_plots table. Founder is now a flag.

    I'll help you set up your server if you don't know how to do this.

    Including it in 0.4! You will stand in the plot and do /pz add owner playername or /pz add builder playername. Builders can build anything and owners can put the plot up for sale, etc. Looking forward to the next release!
     
    brzavr likes this.
  24. Offline

    bradgillap

    Can players still use the "use" command while in someone elses plot? Hard to test that as admin lol

    I see the flags for founder but I don't see the pl_founder field in phpmyadmin. Did you fix that automatically?

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

    AlbireoX

    Hmm... I must have deleted that in 0.2, lol. To your previous question -- it just allows plot members to use features in the plot. IMHO it's an unnecessary permission, but people may want it.
     
  26. Offline

    bradgillap

    Ever since the update to .03 the protection hasn't worked. It notifies the user when they enter the area and exit the area but they can still build and do everything.

    I have an angry girlfriend over this and a few upset users who entered the princess's land.

    I don't have any errors to give you. Should I just try reinstalling the plugin and remaking the database?
     
  27. Offline

    AlbireoX

    Are you sure you didn't get any errors? It may be your Permissions. Check the wiki, I changed the admin nodes a little bit. (But those really shouldn't affect anything) Make sure your players aren't OP, either.

    I did fix one error (that should have popped up in the console), though. Please redownload. I don't think the database has anything to do with your error, though. I'm very sorry for not testing thoroughly... my testers are rather imbecilic, if that is a word... :p

    Did you get the new version?

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

    bradgillap

    I ended up just dropping the table, we only had two users create plots at that point in time. They have yet to report if it is working now.

    I'm in for a total server rebuild tomorrow though as I get away from essentials in favor of commandbook. I like essentials but I want finer grain control over my environment.
     
  29. Offline

    Moe041991

    I have some feedback for you. Its a great plugin. But player on my server would prefer a Square instead of an sphere. Thats al :)
     
  30. Offline

    sleite

    Afraid so. I saw the title, checked it out .. saw the "requires SQL" part, and closed it (right after writing this) :) Not interested in running a huge database for something like this. It needs to be justified. I prefer flatfiles, or at least something that hides the complexity (like the sql-connector.jar thingy that I've seen other plug-in's use).

    Please re-consider flat-file support.

    Cheers.
     

Share This Page