[SEC/MECH/FUN] PreciousStones - Block Area Proteciton System [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by phaed, Jan 18, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    phaed

  2. Offline

    staniboy

    Hello, does it works fine with a latest bukkit (dev build) and mysql? Thank You
     
  3. Offline

    Freezy


    Yep, tested on RB and 1137 here.

    Also note: you can always test it locally on your system, which you should do before updating a live server ;-) as you will always encounter a plugin with a problem. Best to check for yourself, then wait for RB's and updated plug-ins ;-)

    @phaed I added repair field flag and stuff for it, pull request is on git. I'm new to git so it merged the pull request with the remove-mob field code. I hope you find the code useful.

    I was thinking of a panic button, that removes all monsters in a certain radius when the player activates the block (via either punch and/or redstone) this could also allow for manually activated fields: instant heal but only when you activate it, kick players out of a no-entry field that is use activated (maybe check for redstone stuff and their output).
     
  4. Offline

    Donny

    When a city protection block (diamond block) is removed the protection stays.
    Using mysql
    What is wrong? I checked config for something that would change it, no success.
     
  5. Offline

    Donald Scott

    Code:
    2011-09-18 14:53:56 [SEVERE] Error occurred while enabling PreciousStones v6.1 (Is it up to date?): null
    java.lang.NullPointerException
    	at net.sacredlabyrinth.Phaed.PreciousStones.FieldSettings.<init>(FieldSettings.java:38)
    	at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.addForceFieldStones(SettingsManager.java:315)
    	at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.load(SettingsManager.java:207)
    	at net.sacredlabyrinth.Phaed.PreciousStones.managers.SettingsManager.<init>(SettingsManager.java:109)
    	at net.sacredlabyrinth.Phaed.PreciousStones.PreciousStones.onEnable(PreciousStones.java:97)
    	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:892)
    	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    	at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    	at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
    	at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    	at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    Any ideas? Here is my config:

    Code:
    bypass-blocks: [39,40,51,59]             # mushrooms, fire, crops
    unbreakable-blocks: []                   # place here the block types you want to be unbreakable by anyone but the owner
    unprotectable-blocks: [54,58,61,62]      # chest, workbench, furnaces
    tool-items: [269,270,271,273,274,275,277,278,279,284,285,286,290,291,292,293,294]   # tools
    force-field-blocks:
        -
          title: "Small Protection"
          block: 16
          radius: 5
          prevent-explosions: true
          rollback-explosions: true
          visualize-on-place: true
          prevent-place: true
          prevent-destroy: true
        -
          title: "Medium Protection"
          block: 21
          radius: 10
          prevent-explosions: true
          rollback-explosions: true
          visualize-on-place: true
          prevent-place: true
          prevent-destroy: true
        -
          title: "Large Protection1"
          block: 73
          radius: 20
          prevent-explosions: true
          rollback-explosions: true
          visualize-on-place: true
          prevent-place: true
          prevent-destroy: true
        -
          title: "Large Protection2"
          block: 74
          radius: 20
          prevent-explosions: true
          rollback-explosions: true
          visualize-on-place: true
          prevent-place: true
          prevent-destroy: true
        -
    log:
        entry: false
        fire: true
        pvp: false
        place: false
        use: true
        destroy: false
        destroy-area: false
        unprotectable: true
        bypass-pvp: true
        bypass-delete: true
        bypass-place: false
        bypass-destroy: true
        bypass-unprotectable: true
        conflict-place: true
    notify:
        place: true
        destroy: true
        bypass-pvp: true
        bypass-unprotectable: true
        bypass-destroy: true
        bypass-place: true
    warn:
        entry: true
        fire: true
        pvp: true
        place: true
        use: true
        destroy: true
        destroy-area: true
        unprotectable: true
        instant-heal: true
        slow-heal: true
        slow-damage: true
        fast-damage: true
        give-air: true
        launch: true
        cannon: true
        mine: true
    forester:
        forester-trees: 60
        interval-seconds: 1
        fertile-blocks:
        - 2
        - 3
        - 13
        - 87
    grief-undo:
        interval-seconds: 300
        black-list:
        - 8
        - 9
        - 10
        - 11
        - 92
    visualization:
        block-type: 20
        seconds: 30
        end-on-player-move: true
        admin-chunk-radius: 10
        mark-block-type: 20
        mark-chunk-radius: 10
    settings:
        public-block-details: true
        allowed-can-break-pstones: true
        sneaking-bypasses-damage: true
        drop-on-delete: true
        disable-alerts-for-admins: true
        disable-bypass-alerts-for-admins: false
        off-by-default: false
        lines-per-page: 12
        inactivity-purge-days: 45
        blacklisted-worlds: []
        log-to-hawkeye: true
    saving:
        frequency-seconds: 15
        max-records-per-snitch: 50
    cleanup:
        player-inactivity-purge-days: 45
        snitch-unused-purge-days: 30
    mysql:
        enable: true
        username: 'PreciousStones***'
        host: localhost
        password: '******'
        database: minecraft    
    The yaml is valid, but I really am stupped as to what the issue may be. ANy help would be great
     
  6. Offline

    phaed

    This is fixed on next version.
     
    Mosh Mage likes this.
  7. Offline

    1born2kill

    Dam I got some major ass problem dude... This is what I'm guessing...

    Spawn is protected by a plugin called Regios and also this plugin, but someone place Launch Pad even though they cant. The Launch Pad Wont stay because of the Protection, but maybe the server registered it as there.

    SO anyway, Ik the kid who did it, and I banned him. i tried /ps delete [name] and it just wont work

    I typed /ps counts [name] and it shows that he had 70 Launch Pad, but I cant seem to delete any of them with the command /ps delete [name]

    Please help :D
     
  8. Offline

    Donald Scott

    Do you have an ideas on the exception I am getting? I have 100 players wanting this.
     
  9. Offline

    Donny

    Thanx for the fix/response, will keep an eye out for its release.
     
  10. Offline

    phaed

    At the end of the "Large Protection2" before "log:" you have an extra "-". Remove it and you should be good.
     
  11. Offline

    Donald Scott

    Thanks. With so many players residences was getting a bit too hard to explain...
     
  12. Offline

    Freezy

    If the launchpads are removed already, but act like they are still there: /ps clean

    You could delete them form the database manually and see what happens
    - stop server
    - make backup of the database
    - delete launchpad entries

    Also check to see if your launcher field entry has no-conflict set to true, either set it to false or delete the line.
    It allows for fields to be placed inside other fields, even though the player placing is not the owner.
     
  13. Offline

    Jacob Honoré

    Could you follow the standard of every other plugin and generate the config folder with the .jar itself?
    Thank you.
     
  14. Offline

    Donald Scott

    Apparently when a block is destroyed the protection is not removed properly. Is this a known bug?
     
  15. Offline

    phaed

  16. Offline

    slimpyman

  17. Offline

    phaed

    They all work with the past few hundred builds.
     
  18. Offline

    chAosmAx

    Im not sure where to put that. So I try here.

    I like anarchy servers. 2b2t.net is a good example that this game style works and is fun. The only problem is: traps to protect the area when you are not there do not work. With X-Ray mod you can understand how the trap works and defuse it. Your mod solves this partially, since you can prevent people from diging through the wall or remove the pressure plate. But your mod does not allow to place anything valuable inside the protected area because the owner could simply wall the area off compleetly.

    May I suggest a new kind of Protection which would make it possible to let the treasure inside the protected area but would still allow theft.

    It would be a block which disallows block removal for everyone including the owner. The Protection block itself is mineable for everyone so it has to be protected by walls. Since the owner can not mine the walls he must leave some way to enter the Protected area. The owner could now choose to protect the door with a combination lock or some kind of trap. So if somebody knows the code (spying, betrayal) or knows how to get around the trap he still could enter and loot+kill.

    The protection block would only protect the area if it is connected to an active redstone wire. This way the owner could still build in the area by temporarily disabling the protection.

    The Protection block would also consume some kind of fuel (maybe redstone or diamonds), so that an abondened site could be reclaimed after a while if the owner does not refuel it. This would also allow the Fortification to be besiged. The timer would be checked everytime a player tries to mine a protected block.

    This would make anarchy servers much more interessting. You could build some prestige buildings in the open and defend them. You had to think about supply routes, siege techniques and x-ray proof traps/code mechanisms.

    What do you think about that? Would that be to much work? I would do it myself but I don't have enough time to maintain that thing after I coded it. Also your mod is already used and well known. If you want I could assist with coding.
     
  19. Offline

    Tanite

    What do you think about a block flag that restores the hunger bar?
     
  20. Offline

    dfdgsdfg

    Would you think about integrated with the dynmap(using JSON) for Protection Fields(like City Protection)? It's gonna be amazing!!
     
  21. Offline

    phaed

    I like it. Ill look into doing this.
     
  22. Offline

    Donny

    Sorry, not meaning to pester. Was curious when the next update is. Not sure if I want to downgrade or just wait =P.
     
  23. Offline

    po5

    Anyone else got problems with forcefields suddenly resetting? I am using mysql, PS 6.1 and admittedly one of the dev builds of CB for 1.8. But sometimes the forcefields will just disappear, specifcally the city-protection one.
     
  24. Offline

    phaed

    Downgrade to build 5.9 for now.
     
  25. Offline

    Rocky_143

    hey I'm having some issues with the fields some times even thou there are no fields in some area ppl can't build but if I give the server a restart it works fine after that any idea what the problem there?

    I'm using mysql ps 6.1 on 1.8 server.

    Thanks in advance!
     
  26. Offline

    phaed

    Read the post right above yours.
     
  27. Offline

    Justink

    [SEVERE] Could not pass event PLUGIN_ENABLE to PreciousStones
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at net.sacredlabyrinth.register.payment.methods.iCo4.isCompatible(iCo4.java:54)
    at net.sacredlabyrinth.register.payment.Methods.createMethod(Methods.java:58)
    at net.sacredlabyrinth.register.payment.Methods.setMethod(Methods.java:90)
    at net.sacredlabyrinth.Phaed.PreciousStones.listeners.PSServerListener.onPluginEnable(PSServerListener.java:56)
    at org.bukkit.plugin.java.JavaPluginLoader$46.execute(JavaPluginLoader.java:562)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:927)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 16 more

    Would this be your fault or the guy who makes iconomys fault?
    This is a blank server with only those 2 plugins running on the new recommended build
     
  28. Offline

    Nananea

    @Justink iConomy 6 compatibility is coming in the next version, Phaed posted about it earlier today.
     
  29. Offline

    Justink

    THANK YOU
     
  30. Offline

    Rocky_143

    where do i find 5.9 its no where to be found?
     
  31. Offline

    phaed

Thread Status:
Not open for further replies.

Share This Page