[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

    GmK

    @phaed

    Quick question: Whatever happened to the guardog mode?
     
  3. Offline

    vlado2portos

    Heya your mod looks great but I'm getting lots of errors like:

    Code:
    19:27:41 [SEVERE] Could not pass event PLAYER_MOVE to PreciousStones
    java.lang.NullPointerException
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.SnitchManager.recordSnitchEntry(SnitchManager.java:64)
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.EntryManager.enterField(EntryManager.java:229)
            at net.sacredlabyrinth.Phaed.PreciousStones.listeners.PSPlayerListener.onPlayerMove(PSPlayerListener.java:279)
            at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:163)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    19:27:41 [WARNING] Task of 'PreciousStones' generated an exception
    java.lang.NullPointerException
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.EntryManager$1.run(EntryManager.java:76)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    19:27:46 [SEVERE] Could not pass event PLAYER_INTERACT to PreciousStones
    java.lang.NullPointerException
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.ForceFieldManager.getSnitchFields(ForceFieldManager.java:878)
            at net.sacredlabyrinth.Phaed.PreciousStones.managers.SnitchManager.recordSnitchUsed(SnitchManager.java:127)
            at net.sacredlabyrinth.Phaed.PreciousStones.listeners.PSPlayerListener.onPlayerInteract(PSPlayerListener.java:87)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:552)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Only think I did was removed glowstone as healing stone but I'm not sure if it was doing it before also, I gues it ir related to snitch block.. any help ?
     
  4. Offline

    mikeclark1234

    i am having a similar problem as vlado2portos i have bukkit version 953i only have the player move problem though
     
  5. Offline

    vlado2portos

    Well the [SEVERE] Could not pass event PLAYER_MOVE to PreciousStones
    is repeating by far the most...
     
  6. Offline

    Shalobee

    I have just updated from 860 to 953 and I have 2 chunks that all the signs and all the chests get wiped. I have narrowed it down to PS causing it. If I remove PS it doesn't happen and it is the same if it is PS 4.2.5 or the 2 newest ones 4.3 and 4.31. As far as I can tell its just these 2 chunks but I have no way of knowing for sure as my map is rather large. Its a problem for me though cause its in my vault my house and our mob arena wiping our mob arena signs :( meaning i have to redo all the signs every restart which is time consuming. I'm not sure what has changed in bukkit other than the 1.7 update but it seems to be when the problem started. Luckily I have map backups for those chunks but gotta figure out why its wiping them before replacing the map files will do any good. Can you think of anything that may cause this? Has anyone else noticed anything like this? :/
     
  7. Offline

    Haha71687

    Hey does anyone know if theres a way to make a city protection block that locks down ALL edits, even by the placer? I want to make people able to lock down their areas but to keep them from doing cheap stuff like temporarily blocking doorways and such. Thank you in advance.
     
  8. Offline

    phaed

    This usually happens if you deleted field types from your config and you still have fields using those block types in your config. Next version will have an automatic deletion for these. For now you can just delete them from your database. For example if the block type you removed was 99 then you would run:

    Code:
    delete from ps_fields where type_id = '99'
    
    Hmmmmmmm... no idea. Very odd. And it happens on load? Do the signs and chests go away or do they just get emptied? Do you have any pstones fields in the area? Is anything cloaked?

    You can have your mods do "/ps setowner noone" then nobody (or only a player named noone) will be able to edit.

    http://forums.bukkit.org/threads/se...grief-protection-953.1034/page-27#post-437026

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

    Ratchet

    I had this same issue on my server. two players chest rooms had their chests completely emptied that were protected by forcefield sponges from PS. the signs were also wiped of text.

    @phaed I believe it's the same issue with the PS fields turning blocks to "Air" which I reported some weeks ago that you dismissed.
     
  10. Offline

    vlado2portos

    Thanks, looks like removing it from DB ( as I removed the glow stone from setting ) helped
     
  11. Offline

    GmK

    I have reports of emptied chests on my server as well - didnt think it would be linked to PS. But seeing how there are no edits on the chests by players (bb checked) and seeing how others report the same problem here - there seems to be something off.

    The only PS blocks I have on my server are the entry-bouncer, with the following settings:

    Code:
          title: "Entry Bouncer"
          block: 21
          radius: 3
          prevent-entry: true
          prevent-fire: true
          prevent-place: true
          prevent-destroy: true
          prevent-explosions: true
          prevent-unprotectable: true
          prevent-flow: true
    PS always worked splendid for us, never a problem. Only since 1.7 we get this chest emptying. Could LWC be involved too?
     
  12. Offline

    Ratchet

    LWC wouldn't explain why, for me anyway, other blocks aswell as chests in the area were turning to 'Air', and signs were being wiped of text.
     
  13. Offline

    phaed

    So both of you guys are running LWC? Might be a conflict between LWC and PS. When you say turning to "Air", what do you mean? I've seen ascreenshots of some plugin saying something like "This block is Air" or something like that, but the actual block is not air. So it must be that whatever that plugin is that is displaying that "this is air" dialog is not reading the blocks correctly because of PS. Was that plugin LWC?
     
  14. Offline

    GmK

    I made a questionaire on our forums, asking for the people this happened to to answer if a) the chests were near precious stones and b) were protected with LWC.

    For us they didnt disappear, but simply got emptied from one moment to the other.
     
  15. Offline

    Shalobee

    the chest and signs remain they are just blank/empty and Yes I have anti build and anti explosion fields but all my blocks are custom so they aren't the same as default. I am using LWC as well but I believe when I did my testing I never got to enabling the LWC plugin. I will test it now with only PS to see if it does it with PS as the only plugin.'


    **edit:
    Ok did some testing and LWC and PS seem fine together as I had them both on and nothing else and my chests were ok. When I put PS with Falsebook thats when the problem happens. I first put PS as the only plugin and chests/signs were fine. So I added LWC and started it and chests/signs were still fine. I then removed LWC and added FalseBook and that seemed to trigger it. Not sure what is special about these spots but I think the conflict is between Falsebook and PS. anyone else using falsebook that this is happening to?
     
  16. Offline

    GmK

    We're using CraftBook, which is the same underlying idea as FalseBook.

    We also ran some tests, and it doesnt seem to be linked to LWC, as none of the wiped chests and signs were protected.

    But also not all of them were in forcefields of PS, so it might after all not be linked to PS? But then - the only thing I updated recently was PS to the new version.
     
  17. Offline

    mrgreaper

    we use
    ps
    falsebook ic
    falsebook extra
    flasebook core
    lwc
    instead of falsebook blocks we use commandblock (much better for making secret doors etc)
    instead of the cart part of it we use minecartmania (the full suite, cant say its better then false bookss one as i have never tried falsebooks one)
    instead of falsebooks chat thing we use ichat (again never tried falsebooks one)
    we get no errors at all like you describe so i figure ure problem lies in the block, chat or the cart part of false book

    hope that helps chap
     
  18. Offline

    Haha71687

    Is there no way to make a block that has no owner on place or one where the owner isn't included in the permissions list? I realize i can change each one manually but I want it to be automatic when a diamondblock is placed. Thank you for your time.
     
  19. Offline

    Shalobee

    Ok so taking what you have suggested I actually discovered that the problem is in the FalsebookIC.jar. If i just remove that one the problem goes away so not sure whats causing it but at least that narrows down which part of falsebook. Im curious to know if the guys using Craftbook if thy remove the IC jar if that fixes it for them too. Anyway hope this helps Phaed and anything I can do to help just let me know.

    edit** So a little further testing shows that when i have my other plugins it appears to be the FalseBookBlock.jar and/or the FalseBookIC.jar that triggers it. I'll keep testing but FalseBook hasn't been updated I wonder if its something out of date on it that is conflicting with PS.
     
  20. Offline

    phaed

    ill make a noowner flag for next version

    Thanks that narrows it down quite a bit

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

    Shalobee

    I edited my post its also has something to do with the FalseBookBlock.jar so it seems It didn't happen on my test server but when i put it on my main server with other plugins it popped up. So it may be both the Block and IC jars.

    Edit* just did my tests again and i think its just the FalseBookBlock.jar I now have all the falsebook jars except FalseBookBlock.jar and it seems to be ok not sure why it was failing on the IC earlier but its not now.
     
  22. Offline

    Haha71687

    If there was a way to make certain fields work for everyone as well that'd be awesome. I basically want fields to not be owned, but place their limits and benefits on everyone in them, so that heal fields healed everyone and launch pads worked for everyone.
     
  23. Offline

    Buckethead

    i dont know if this sounds ridiculous or not. if we are lazy/dumb/dont feel like using a sql server would it be possible to make a default to oponly option. PLEASE!!!!! not that im begging
     
  24. Offline

    phaed

    Change log
    Version 5
    • Simplified DB structure (Now supports SQLite!)
    • Pstones now save to db immediately on place and delete (other data still saves on interval)
    • New: awesome player-only field visualization (/ps visualize)
    • New: forester flag, grows a forest in the field and disappears, has no-owner flag so once its placed it cant be removed til its done
    • New: no-owner flag, places down a pstone without an owner (only bypass permission players can modify)
    • Fixed: Long load time
    • Fixed: Random data not saving to DB
    • Fixed: No more DB corruption when changing field block types or deleting fields from config
    • Fixed: /ps delete
    • Fixed: Player names no longer case sensitive
    • Fixed: Fields are now checked on player teleport (fixes players keeping field effects on teleport)
    • Fixed: Optimized recursive call used for finding overlapped fields (/ps who, /ps setname. /ps setallowed, /ps removeallowed)
    • Removed cloaking (will make it a separate plugin)
    • Removed the requirement of the "nameable" flag to add farewell and welcome messages.
    • config.yml file automatically generated on load (adds any new properties with default value)
    • Improved /ps fields listing
     
    GmK and NEO like this.
  25. Offline

    GmK

    I will test v 5, if it still does 'conflict' with Craftbook ICs.

    @phaed any chance to get a pre 4.3 version? As in the last one before you officially took back over? As we didnt have the problem when we run that version I'd like to see if it really seems to be linked to PS or if this is wild speculation.
     
  26. Offline

    phaed

    http://sacredlabyrinth.net/releases/

    Edit: Ok found a couple, adding them in there 4.2.4 / 4.2.5
     
  27. Offline

    GmK

    Thank you!

    The smart person that I am I updated to v5 and deleted the old tables after moving the data to the new ones :D So reverting wont happen that soon anyways, only if the problem persists.

    Btw, did the guarddog mode get scratched due to being too glitchy?
     
  28. Offline

    Haha71687

    With this no-owner tag, is there any way to make it so ALL players can break the no-owner blocks, instead of the way it is now, where nobody can break them?

    EDIT: Figured it out, I just have to add the breakable tag.]
    EDIT: Found another problem, players cannot name their bases with the no-owner tag. How hard would it be to make it so the owner is excluded from the build/destroy list, instead of having no owner? Basically, I'm trying to make a base protection block that locks down everything to everyone, including the owner, with the block itself being destructable.
     
  29. Offline

    Bronski

    I swapped in the new .jar, ran the server, ran the sql, and reloaded. My CPU % on java hits 100% and swapping the new .jar back out fixes it. Swap in... 100%. Might be a conflict but I wanted to report it.

    My config after running v5:

    Show Spoiler
    bypass-blocks:
    - 39
    - 40
    - 51
    - 59
    unbreakable-blocks:
    - 56
    unprotectable-blocks:
    - 54
    - 58
    - 61
    - 62
    tool-items:
    - 269
    - 270
    - 271
    - 273
    - 274
    - 275
    - 277
    - 278
    - 279
    - 284
    - 285
    - 286
    - 290
    - 291
    - 292
    - 293
    - 294
    cloak:
    cloakable-blocks:
    - 54
    - 58
    - 61
    cloak-blocks:
    - 1
    - 2
    - 3
    - 4
    - 5
    - 7
    - 17
    - 20
    - 43
    - 45
    - 49
    - 60
    - 78
    - 80
    - 82
    - 87
    - 88
    viewing-radius:
    min: 5
    max: 20
    default: 7
    force-field-blocks:
    - title: Creature Repeller
    block: 30
    radius: 10
    prevent-mob-spawn: true
    prevent-animal-spawn: true
    no-conflict: true
    - title: Glow of Life
    block: 89
    radius: 5
    slow-heal: true
    no-conflict: true
    - title: Large Protection Zone
    block: 57
    radius: 40
    custom-height: 40
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: true
    nameable: true
    welcome-message: true
    farewell-message: true
    - title: Medium Protection Zone
    block: 41
    radius: 20
    custom-height: 40
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: true
    nameable: true
    welcome-message: true
    farewell-message: true
    - title: Small Protection Zone
    block: 42
    radius: 10
    custom-height: 20
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: false
    nameable: true
    welcome-message: true
    farewell-message: true
    - title: Low Wide Protection Zone
    block: 21
    radius: 10
    custom-height: 15
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: true
    nameable: true
    welcome-message: true
    farewell-message: true
    - title: Mini Protection Zone
    block: 73
    radius: 3
    custom-height: 10
    prevent-fire: false
    prevent-place: true
    prevent-destroy: true
    prevent-explosions: true
    prevent-unprotectable: false
    prevent-flow: true
    nameable: true
    welcome-message: true
    farewell-message: true
    log:
    entry: false
    fire: true
    pvp: false
    place: false
    destroy: false
    destroy-area: false
    unprotectable: true
    bypass-pvp: true
    bypass-delete: true
    bypass-destroy: true
    bypass-unprotectable: true
    conflict-place: true
    bypass-place: false
    notify:
    place: true
    destroy: true
    bypass-place: true
    bypass-destroy: true
    bypass-unprotectable: true
    bypass-pvp: false
    warn:
    entry: true
    fire: true
    pvp: true
    place: true
    destroy: true
    destroy-area: true
    unprotectable: true
    instant-heal: true
    slow-heal: true
    slow-damage: true
    give-air: true
    launch: true
    cannon: true
    mine: true
    fast-damage: false
    settings:
    public-block-details: true
    allowed-can-break-pstones: true
    sneaking-bypasses-damage: true
    drop-on-delete: true
    disable-alerts-for-admins: false
    disable-bypass-alerts-for-admins: true
    off-by-default: false
    lines-per-page: 12
    saving-frequency-minutes: 1
    forester-interval-secs: 0.5
    visualization:
    block-type: 20
    seconds: 15
    end-on-player-move: true


    My plugins:

    Show Spoiler
    -rw-r--r-- 1 bronski bronski 256272 Jul 3 01:38 BigBrother.jar
    -rw-r--r-- 1 bronski bronski 10883 Jul 4 01:26 BorderGuard.jar
    -rw-r--r-- 1 bronski bronski 121741 Jul 3 01:38 BukkitContrib.jar
    -rw-r--r-- 1 bronski bronski 709153 Jul 3 01:38 Essentials.jar
    -rw-r--r-- 1 bronski bronski 6359 Jul 3 01:38 EssentialsChat.jar
    -rw-r--r-- 1 bronski bronski 257566 Jul 3 01:38 EssentialsGeoIP.jar
    -rw-r--r-- 1 bronski bronski 69455 Jul 3 01:38 EssentialsGroupBridge.jar
    -rw-r--r-- 1 bronski bronski 154144 Jul 3 01:38 EssentialsGroupManager.jar
    -rw-r--r-- 1 bronski bronski 7202 Jul 3 01:38 EssentialsSpawn.jar
    -rw-r--r-- 1 bronski bronski 79428 Jul 3 01:38 FalseBookBlock.jar
    -rw-r--r-- 1 bronski bronski 13752 Jul 3 01:38 FalseBookChat.jar
    -rw-r--r-- 1 bronski bronski 18377 Jul 3 01:38 FalseBookCore.jar
    -rw-r--r-- 1 bronski bronski 10115 Jul 3 01:38 FalseBookExtra.jar
    -rw-r--r-- 1 bronski bronski 188691 Jul 3 01:38 FalseBookIC.jar
    -rw-r--r-- 1 bronski bronski 13026 Jul 3 01:38 FoundDiamonds.jar
    -rw-r--r-- 1 bronski bronski 21477 Jul 3 01:38 GuestPrev.jar
    -rw-r--r-- 1 bronski bronski 33573 Jul 3 01:38 HeroicDeath.jar
    -rw-r--r-- 1 bronski bronski 200264 Jul 3 01:38 LWC.jar
    -rw-r--r-- 1 bronski bronski 17964 Jul 3 01:38 Lottery.jar
    -rw-r--r-- 1 bronski bronski 102304 Jul 3 06:47 MinecartManiaAdminControls.jar
    -rw-r--r-- 1 bronski bronski 23428 Jul 3 06:47 MinecartManiaAutocart.jar
    -rw-r--r-- 1 bronski bronski 82286 Jul 3 06:47 MinecartManiaChestControl.jar
    -rw-r--r-- 1 bronski bronski 397975 Jul 3 06:47 MinecartManiaCore.jar
    -rw-r--r-- 1 bronski bronski 165886 Jul 3 06:47 MinecartManiaSignCommands.jar
    -rw-r--r-- 1 bronski bronski 94766 Jul 3 06:47 MinecartManiaStation.jar
    -rw-r--r-- 1 bronski bronski 72667 Jul 3 01:38 MyHome-rc1.jar
    -rw-r--r-- 1 bronski bronski 24203 Jul 3 01:38 NSCommand.jar
    -rw-r--r-- 1 bronski bronski 19459 Jul 3 01:38 Nethrar.jar
    -rw-r--r-- 1 bronski bronski 88968 Jul 3 23:17 NoCheat.jar
    -rw-r--r-- 1 bronski bronski 5706 Jul 3 01:38 PlgDisableCmd_op.jar
    -rw-r--r-- 1 bronski bronski 752340 Jul 4 05:14 PreciousStones4.jar
    -rw-r--r-- 1 bronski bronski 14405 Jul 3 01:38 SimpleSignEdit.jar
    -rw-r--r-- 1 bronski bronski 10914 Jul 3 01:38 SuperJump.jar
    -rw-r--r-- 1 bronski bronski 38346 Jul 3 01:38 Tombstone.jar
    -rw-r--r-- 1 bronski bronski 23892 Jul 3 01:38 VoxelDoop.jar
    -rw-r--r-- 1 bronski bronski 546915 Jul 3 01:39 VoxelSniper.jar
    -rw-r--r-- 1 bronski bronski 18018 Jul 3 01:39 WeatherRestrictions.jar
    -rw-r--r-- 1 bronski bronski 468070 Jul 3 01:39 WorldEdit.jar
    -rw-r--r-- 1 bronski bronski 219958 Jul 3 01:39 WorldGuard.jar
    -rw-r--r-- 1 bronski bronski 174371 Jul 3 01:38 iConomy.jar
    -rw-r--r-- 1 bronski bronski 75280 Jul 3 01:38 iConomyChestShop.jar
    -rw-r--r-- 1 bronski bronski 90546 Jul 3 04:14 mcbans.jar
    -rw-r--r-- 1 bronski bronski 133637 Jul 3 01:38 namespace.jar
    -rw-r--r-- 1 bronski bronski 18389 Jul 3 01:38 pvptoggle.jar


    It didn't seem to do this on my windows box, but it has a slightly different plugin set. I'll post if I figure out anything else.

    Edit: After sync'ing the plugins, my windows box is also lagging. I'll start pulling them out now. Bwahahaahaha!
     
  30. Offline

    GmK

    Sort of same happens here, I do have a sudden very high CPU usage I didnt have before v5. (nothing else changed on server, only updated PS)
     
  31. Offline

    Bronski

    Ok the windows box spit this out after like 3 minutes. I only feed it 768 (which is why it might have been quick):

    I don't know if that is the cause of the problem or a symptom but... if it matters, h'ere's my ebean.properties, which lives with the craftbukkit.jar:

    I pulled out falsebook, started the server and it was ok. Then I copied the .jars back and /reload on the console and it's still ok :/ Then I stopped and started with everything in place and it's still ok. Maybe PS just needed some alone time before it could put up with FB again.

    I'll post back if I discover something more meaningful.

    EDIT: I pulled falsebook out on the linux box and it was still doing it. Balls.
     
Thread Status:
Not open for further replies.

Share This Page