[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

    mightyb

    What does Breakable by anyone do? Does it turn the area into a guest area where anyone can break the blocks? If not, it would be great to be able to make a guest building area.
     
  3. Offline

    phaed

    Actually it makes the block breakable, meaning anyone can pick it up as opposed to the default for pstones which is unbreakable where only the owner can pickit up.
     
  4. Offline

    talbot

    i'm really unhappy to see that this plugin disables itself now if i don't have permissions installed. but what choice do i have? everyone uses this now, i can't just turn it off. but now i have to go and deal with the huge additional headache that is permissions. i just had to get this off my chest. this day, i install permissions, and die a little inside.
     
  5. Offline

    Josch

    I get only errors :(
    Code:
    31-Jan-2011 19:16:41 org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to PreciousStones
    java.lang.NullPointerException
            at com.bukkit.Phaed.PreciousStones.PSPlayerListener.onPlayerCommand(PSPlayerListener.java:286)
            at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.java:133)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:590)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:563)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:276)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
     
  6. Offline

    phaed

    I will fix this tonight.
     
  7. Offline

    Josch

    Cool :D Thank you!
    Here are more errors:
    Code:
    31-Jan-2011 20:13:29 org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
            at com.bukkit.Phaed.PreciousStones.PSPlayerListener.onPlayerMove(PSPlayerListener.java:117)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:143)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:101)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:276)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    31-Jan-2011 20:13:30 org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
            at com.bukkit.Phaed.PreciousStones.PSPlayerListener.onPlayerMove(PSPlayerListener.java:117)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:143)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:101)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:276)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    31-Jan-2011 20:13:30 org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
            at com.bukkit.Phaed.PreciousStones.PSPlayerListener.onPlayerMove(PSPlayerListener.java:117)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:143)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:101)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:276)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    31-Jan-2011 20:13:30 org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
            at com.bukkit.Phaed.PreciousStones.PSPlayerListener.onPlayerMove(PSPlayerListener.java:117)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:143)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:101)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:276)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    31-Jan-2011 20:13:30 org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
            at com.bukkit.Phaed.PreciousStones.PSPlayerListener.onPlayerMove(PSPlayerListener.java:117)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:143)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:101)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:276)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
    The Plugin works when setting blocks and showing information, but it doesn't reset destroyed blocks!
     
  8. Offline

    kovk

    I've been thinking a lot about how to do the name notification given that you can have many overlapping fields from different people and I have a thought to avoid a lot of confusing spam.

    Perhaps it it should only do the 'Welcome to Town" message if the area has build/destroy protection on as that is the only thing that 'really' claims an area for a given person. Also transitioning to a area of the same name should not result in the name notification popping up again.
    --- merged: Jan 31, 2011 11:44 PM ---
    I'm getting this error when tying to place blocks on 1.4.3 and serverport-craftbukkit-186

    SEVERE: Could not pass event BLOCK_PLACED to PreciousStones
    java.lang.NullPointerException
    at com.bukkit.Phaed.PreciousStones.PSBlockListener.onBlockPlace(PSBlockListener.java:201)
    at org.bukkit.plugin.java.JavaPluginLoader$16.execute(JavaPluginLoader.java:200)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
    at net.minecraft.server.ItemBlock.a(ItemBlock.java:101)
    at net.minecraft.server.ItemStack.a(ItemStack.java:56)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:472)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:276)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:202)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  9. Offline

    Darren Farr

    Hi i cant wait to use this plugin but i have a problem

    in console i get this error

    2011-01-31 17:24:37 [INFO] [PreciousStones] version [1.4.3] loaded
    2011-01-31 17:24:37 [INFO] [PreciousStones] Permission system not enabled. Disabling plugin.

    i have the current permission plugin installed

    this is how my plugins/permissions/config looks


    # Supports "Default" and "GroupUsers"
    plugin:
    permissions:
    system: default
    ##
    # Groups can contain inheritance.
    # To make a group inherit the permissions from another
    # group simply place the groups name in the "inheritance:"
    # field seperated by commas.
    #
    # Example: inheritance: Default,Admins,
    ##
    # All permissions including the asterisks must be placed in single quotes.
    # like so:
    #
    # - 'general.spawn'
    #
    # Otherwise errors will happen!
    ##
    # Globalized Permission settings:
    #
    # If a permission contains periods (.) you can denote a globalized parameter:
    #
    # - 'general.*'
    #
    # This will allow you to use all general commands.
    #
    ##
    #
    # Single Asterisk denotes all commands:
    #
    # - '*'
    ##
    groups:
    Default:
    default: true
    info:
    prefix:'&1[&3Player&1]&2'
    suffix:'&4'
    build: true
    inheritance:
    permissions:
    - 'general.spawn'
    - 'myhome.home.*'
    - 'lwc.protect'
    - 'iConomy.payment'
    - 'iConomy.rank'
    - 'iConomy.list'
    - 'iConomy.withdraw'
    - 'iConomy.deposit'
    - 'preciousstones.benefit.*'
    - 'preciousstones.whitelist.*'
    - 'preciousstones.bypass.*'
    - 'preciousstones.admin.*'
     
     
     
     
    Moderator:
    default: false
    info:
    prefix:'&1[&3Op&1]&2'
    suffix:'&4'
    build: true
    inheritance:
    - Default
    permissions:
    - 'general.time'
    - 'general.teleport'
    - 'general.teleport.here'
    - 'general.player-info'
    - 'myhome.*'
    - 'preciousstones.bypass.*'
    - 'preciousstones.admin.*'
    Admins:
    default: false
    info:
    prefix:'&1[&3Admin&1]&2'
    suffix:'&4'
    build: true
    inheritance:
    - Moderator
    permissions:
    - '*'
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
    dazza098:
    group: Admins
    permissions:'*'
    LordFlames97:
    group: Admins
    permissions:
    Solidsnake916:
    group: Admins
    permissions:'*'
    :
    group: Default
    permissions:
    - 'general.time'
    - - 'general.spawn'
    - 'myhome.home.*'
    - 'lwc.protect'
    - 'iConomy.payment'
    - 'iConomy.rank'
    - 'iConomy.list'
    - 'iConomy.withdraw'
    - 'iConomy.deposit'
    - 'preciousstones.benefit.*'
    - 'preciousstones.whitelist.*'
     
     
     
    please someone tell me where i am going wrong !! thanks !!

    any ideas ?

    thanks
     
  10. Offline

    phaed

    This did not happen, it's bit more involved than I originally though, but soon..
     
  11. This is probably the best plugin I have seen. It's almost exactly what I was looking for in terms of a protection system. Thanks a ton, you did a really good job.
     
  12. Offline

    Josch

  13. Offline

    kovk

    Any luck on getting this updated? :D I'm holding back my server updates till it works cause this is way too epic to be without.
     
  14. Offline

    phaed

    I am going to release 1.5 soon. Will refactor the code a bit also fix some other issues. Also gonna do a full QA of every feature and combination to make sure eveythign is ok before relasing.
     
  15. Offline

    xXFreeekXx

    Hey i was wondering if you could please fix the download for v 1.4.1 As i'm pretty sure that's the version i need on my craftbukkit # =P

    Cheers
     
  16. Offline

    Dreadreaver

    great news, was just about to give this plugin a shot when I realized it wouldnt work on my current CB-Build :D
     
  17. Offline

    phaed

    Oh damn, didnt notice it was missing. :( Dont have that file anymore.
     
  18. Offline

    xXFreeekXx

    :O, dammit. Does anyone else have that version of preciousstones, and if so, could you please upload it? ^_^ (if it's allright with phaed)
     
  19. Offline

    maxsteele

    I'm looking to upgrade CraftBukkit tonight to Build #238.

    Is there anyone using PreciousStones 1.4.3 with build 238 successfully?
     
  20. Offline

    phaed

    I am currently working on refactoring this, and using sqllite rather than java serialization. It wil be out by this weekend.
     
  21. Offline

    mokapang

    glasses are not protected in protection area.
     
  22. Offline

    Beatkidz

    looking for a ETA for the 210+ Build update. this is the last plug-in i'm waiting for before i do a CraftBukkit update on our server.
     
  23. Offline

    NotYetRated

    Yeah! We are ANXIOUSLY awaiting this plug in!
     
  24. Offline

    ProfessorMudkip

    Would it be possible to prevent mob spawns in the radius as well?
     
  25. Offline

    Mattdk

    Very anxiously looking forward to this plugin!
     
  26. Offline

    kovk

    While we anxiously wait for the next revision I wanted to post the settings I'm planning on using and the config file as it currently is. It may have some errors as I can't really test until the update.

    This is the MCDocs info file I've made for the players that describes the function of each block.

    protection.txt
    &eCertain Blocks provide protection to player who placed them
    &cIronBlock - restrict build/destroy in 16x16 cube
    &cGoldBlock - restrict build/destroy in 32x32 cube
    &cDiamondBlock - restrict build/destroy in 64x64 cube
    &bObsidian - disable creeper/tnt explosions in 64x64 cube
    &bLightstone - disable fire in 64x64 cube
    &bBookshelf - disable PVP in 64x64 cube
    &bCake - Slowly heal players in 4x4 cube
    &cMobSpawner - build/destroy/fire/explosion/pvp in 32x32
    &eAll protection blocks can be destroyed by other players
    &eunless they are hidden behind protected blocks

    This is the PreciousStones config
    Show Spoiler

    public-block-details: true
    bypass-players: []
    bypass-blocks: [68,37,38,39,40,59]
    unbreakable-blocks: [45,71]
    protection:
    -
    block: 42
    radius: 8
    breakable: true
    custom-height: 0
    prevent-fire: false
    prevent-entry: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: false
    prevent-pvp: false
    instant-heal: false
    slow-heal: false
    slow-damage: false
    fast-damage: false
    -
    block: 41 # Gold Block
    radius: 16
    breakable: true
    custom-height: 0
    prevent-fire: false
    prevent-entry: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: false
    prevent-pvp: false
    instant-heal: false
    slow-heal: false
    slow-damage: false
    fast-damage: false
    -
    block: 57 # Diamond Block
    radius: 32
    breakable: true
    custom-height: 0
    prevent-fire: false
    prevent-entry: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-pvp: false
    instant-heal: false
    slow-heal: false
    slow-damage: false
    fast-damage: false
    -
    block: 15 # Iron Ore
    radius: 64
    breakable: true
    custom-height: 0
    prevent-fire: true
    prevent-entry: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-pvp: false
    instant-heal: false
    slow-heal: false
    slow-damage: false
    fast-damage: false
    -
    block: 52 # Mob Spawner
    radius: 16
    breakable: true
    custom-height: 0
    prevent-fire: true
    prevent-entry: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-pvp: true
    instant-heal: false
    slow-heal: false
    slow-damage: false
    fast-damage: false
    -
    block: 49 # Obsidian
    radius: 32
    breakable: true
    custom-height: 0
    prevent-fire: false
    prevent-entry: false
    prevent-place: false
    prevent-destroy: false
    prevent-explosions: true
    prevent-pvp: false
    instant-heal: false
    slow-heal: false
    slow-damage: false
    fast-damage: false
    -
    block: 89 # Lightstone
    radius: 32
    breakable: true
    custom-height: 0
    prevent-fire: true
    prevent-entry: false
    prevent-place: false
    prevent-destroy: false
    prevent-explosions: false
    prevent-pvp: false
    instant-heal: false
    slow-heal: false
    slow-damage: false
    fast-damage: false
    -
    block: 47 # Bookshelf
    radius: 32
    breakable: true
    custom-height: 0
    prevent-fire: true
    prevent-entry: false
    prevent-place: false
    prevent-destroy: false
    prevent-explosions: false
    prevent-pvp: true
    instant-heal: false
    slow-heal: false
    slow-damage: false
    fast-damage: false
    -
    block: 92 # Cake
    radius: 2
    breakable: true
    custom-height: 0
    prevent-fire: false
    prevent-entry: false
    prevent-place: false
    prevent-destroy: false
    prevent-explosions: false
    prevent-pvp: false
    instant-heal: false
    slow-heal: true
    slow-damage: false
    fast-damage: false
    log:
    place: false
    destroy: true
    bypass-delete: true
    bypass-destroy: true
    notify:
    place: true
    destroy: true
    bypass-destroy: true
    warn:
    instant-heal: false
    slow-heal: false
    slow-damage: true
    fire: true
    entry: true
    place: true
    destroy: true
    destroy-area: true
    pvp: true

     
  27. Offline

    Dreadreaver

    PreciousStone 1.4.3 and CB#238:
    prevent-entry is broken! it "kinda" works and pushes the player a little bit out and gives a message, but it pushes the player out a little bit to weak so if a player desperatly tries to go through he will be able to - it just takes some time
     
  28. Offline

    Beatkidz

    You got this to work on build 210+?
     
  29. Offline

    Dreadreaver

    Uh yeah, healing(both) works and protections works too, permissions working too.
    Havent tried anything else except for the prevent-entry though(which is working but not preventing entry :()

    edit: just tried protections again with my 2nd minecraft account(that is just guest on my server): working just fine!

    =)
     
  30. Offline

    Survivorman

    I second this, my server is still running it on CraftBukkit 23x (I don't remember the exact version) but it gives some console spam (could not pass event, being out of date of course.), along with a minor bug; when you remove a protection block that is listed as unbreakable the field doesn't get removed.
    I fear though that the almost constant erroring may be causing lag. Today I'm patching everything to the lastest Bukkit praying this still works with it. *Crosses fingers*
    [EDIT] Will not work with b271.
     
  31. Offline

    Calvin

    I second that [EDIT]: It works with b271, but it spams like candy at a parade. Please fix, ty.
     
Thread Status:
Not open for further replies.

Share This Page