[INACTIVE] [SEC/FUN] Gallows v0.13 Hang those heathens! (Tag: Jail) [1337]

Discussion in 'Inactive/Unsupported Plugins' started by kjhf, Aug 19, 2011.

  1. Offline

    joker305420

    hey i keep getting
    could not pass event block_break to gallows java.lang.nullpointerexception

    any idea?
     
  2. Please see If you have an issue, please include: in OP.
     
  3. Upped to 0.08. Thanks everyone for supporting.
    Time for new messages file and config.
     
  4. Offline

    ariola

    2011-09-01 07:57:34 [SEVERE] Could not pass event BLOCK_BREAK to Gallows
    java.lang.NullPointerException
    at kjhf.gallows.GallowsProtection.onBlockBreak(GallowsProtection.java:104)
    at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-09-01 07:57:37 [SEVERE] Could not pass event BLOCK_BREAK to Gallows
    java.lang.NullPointerException
    at kjhf.gallows.GallowsProtection.onBlockBreak(GallowsProtection.java:104)
    at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-09-01 07:57:38 [SEVERE] Could not pass event BLOCK_BREAK to Gallows
    java.lang.NullPointerException
    at kjhf.gallows.GallowsProtection.onBlockBreak(GallowsProtection.java:104)
    at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  5. Offline

    Slash1987

    To prevent the player from moving out of the gallow, just add his name to a var when he was moved to the gallow, and then add a listener to onPlayerMove and, if it's in the gallow, set the event cancelled
     
  6. Thanks for the trace, hopefully fixed the NPE in next update.

    Cancelling onMove events is extremely buggy and often result in the player shaking violently (like the world-hole effect).
     
  7. Offline

    Slash1987

    you could take the location on the gallow and teleport the player back to it, instead of cancelling the event. And i've noticed that if you have Fly-allow on your server properties setted to false, cancelling the event could cause the autokick of the player
     
  8. Updated to 0.09 :)
    (Redownload if you already did)
     
  9. Offline

    Elitedude

    CraftBukkit Version: 1060
    Permissions System: PermissionsEx
    Version of Gallows: 0.09
    Console Message:
    Show Spoiler
    17:09:02 [SEVERE] Could not pass event BLOCK_BREAK to Gallows
    java.lang.ArrayIndexOutOfBoundsException: 1
    at kjhf.gallows.GallowsProtection.onBlockBreak(GallowsProtection.java:105)
    at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    Tried restarting or rebooting server: Yes.
    Error appear to others: No, only on console.
     
  10. Congrats on being the first to file an error report properly :p
    I've changed one character. literally, a 1-> a 0. That is all.
    Updated the plugin (haven't changed the version.) Please redownload :)
     
  11. Offline

    Elitedude

    Ok, no more errors on console after redownloading. Thanks! Looking forward to more awesome features from this plugin! :)
     
  12. Updated to 0.10! Wow!
    Now includes a tp behvaiour override, specified after /g release playername, and a burn behaviour (as if the lava wasn't enough).

    If you guys want any new behaviours, or have any more suggestions, feel free to ask ^.^
     
  13. Offline

    Elitedude

    Another error, showed up on my console. It only happens when something breaks in the nether.
    CraftBukkit Version: 1060
    Permissions System: PermissionsEx
    Version of Gallows: 0.10
    Console Message:
    Show Spoiler
    [SEVERE] Could not pass event BLOCK_BREAK to Gallows
    java.lang.IllegalArgumentException: Cannot measure distance between worlds or to null
    at org.bukkit.Location.distance(Location.java:327)
    at kjhf.gallows.Gallows.getNearbyGallows(Gallows.java:175)
    at kjhf.gallows.GallowsProtection.onBlockBreak(GallowsProtection.java:103)
    at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:481)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:140)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:478)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    Tried restarting or rebooting server: Yes.
    Error appear to others: No, only on console.
    Kinda like the error I had before, only this time in the Nether. Thanks in advance! :)
     
  14. Ah yes. Gallows doesn't support multi-world yet. I'll do my best ;)
     
  15. Offline

    Elitedude

    Alright, no big deal. I rarely even use multi-world, so don't feel rushed. :D
     
  16. Off you go ;P
    0.11 out
     
  17. Offline

    Elitedude

    Woot, no more errors (for now)! Thanks, very nice update and plugin!
     
    kjhf likes this.
  18. Offline

    nmc94

    Based on the video, this is actually a torture device discussed as a gallow. :p

    But seriously, nice plugin :)
     
  19. Offline

    Tomskied

    Very nice :)
     
  20. Offline

    whatabagel

    hey, srry to be a noob. but how do you delete gallows?
    I can't seem to...I tried uninstalling the mod so I could break the gallows, and I couldn't break any blocks at all.
    so even after reinstalling the mod I can not break any blocks...any ideas?
     
  21. If you uninstalled the mod and still couldn't break blocks, surely logic suggests that it's not Gallows' fault?
    It's probably a permissions error. Run your permissions users and groups ymls through a parser to check for errors.
     
  22. Offline

    whatabagel

    how would I go about doing that? (sorry im new to bukkit)
     
  23. whatabagel likes this.
  24. Offline

    Misoa

    could you make it where people cant use the commands /warp /home and /spawn?
     
  25. Offline

    ti07shadow

    I found only 1 flaw to this. the flaw I found is if the player waits long enough they can escape, I decided to attempt to do it by sending myself to the gallows and as soon as I got there when i finally slid all the way to the trap door I was able to jump out.
     
  26. Already part of the plugin. See allowed commands in config if you want to enable them. By default, they are off. -- Unless of course you mean everyone, in which case I may include a feature to hang players on certain commands.

    If the web works correctly, you shouldn't be able to jump out at all. However, you won't be able to get far and it will teleport you back if you do escape.


    Thanks for your feedback guys.
     
  27. Offline

    xXChaosXx

    I have tested it with Bukkit 1150 . It works fine!
     
  28. Offline

    alexmack929

    Really nice plugin, a much less harsh alternative to ban!
     
  29. Offline

    Aricus

    Can you please make it that if they die to lava in the gallows they respawn back at the gallows. Or have an option for it. I want to use these instead of Jails. Or even make it that when we send them there we can specify a time limit and they will be teleported to spawn when that time is up. If they die during that time, they are respawned at the gallows.
     
  30. Added ability to rehang on death in .12
     

Share This Page