Inactive [SEC] GriefLogger v0.4 - Log what really matters [1185]

Discussion in 'Inactive/Unsupported Plugins' started by Vikom Media, Jul 21, 2011.

  1. Offline

    Vikom Media

    GriefLogger - Log what Really Matters, without sacrificing performance!:
    Version: v0.4
    <font color="rgb(0, 0, 0)">Conventional Logging plugins are bulky and log hundreds useless events. GriefLogger however only logs what really matters! Griefers are quickly discouraged by a global message that alerts server members of potentially disastrous actions that would otherwise go un-noted. It also logs events to a simple text file.</font>

    Features:
    * Detects Use of Common griefer tools:
    * Flint and steel
    * Lava Buckets
    * TNT
    * Track irresponible moderators:
    * Hacked Lava ID 10, 11
    * Hacked Water ID 8, 9
    * Hacked Fire ID 51
    * Displays Username, Tool, and Location to do with the event
    * Logs to simple txt files
    * Server members can report the locations of griefs

    Commands:

    Op only
    * /gllast - Teleport to the location of the last logged event
    * /glc X Y Z - Teleport to the specified coordinate

    Everyone
    * /glreport - Allows people to report griefings, these are logged to a seperate txt file

    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>

    Changelog:
    Version 0.4
    * Added Silent logging of op only items
    * Added the /glreport command!
    * Further Improved announcements!

    Version 0.3
    * Fixed lava buckets (thanks to help from ppl on another other thread)
    * Improved announcements!

    Version 0.2

    * Minor Changes
    * Added detection of Lava Buckets <-- not working :( help?

    Version 0.1

    * First Release


    could i get any feedback on the code?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 13, 2016
  2. Offline

    Vikom Media

    ? say again
     
  3. Offline

    toxicgaming11

    i still get the same error
     
  4. Offline

    Vikom Media

    try it without any of your other plugins and see if it works for you then, it should but something could be terribly wrong.
     
  5. Offline

    toxicgaming11

    i get this error with only using this plugin, get it when i right click :(

    12:57:13 [ALLVARLIG] Could not pass event PLAYER_INTERACT to GriefLogger
    java.lang.NullPointerException
    at com.vikommedia.GriefLogger.GLPlayerListener.onPlayerInteract(GLPlayer
    Listener.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    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:85)
    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)
     
  6. Offline

    sddddgjd

    The OP isn't on right now,and i hope he doesn't mind me doing this,but here you go,a fixed version:
    http://dl.dropbox.com/u/13921141/GriefLog.jar
    This should no longer give you the nullpointerexception error! ^^
     
  7. Offline

    toxicgaming11

    im sry, but i stil lget the same error :(
     
  8. Offline

    sddddgjd

    At this line:
    at com.vikommedia.GriefLogger.GLPlayerListener.onPlayerInteract(GLPlayer
    Listener.java:71)

    71 must have changed...what's the new number?
     
  9. Offline

    toxicgaming11

    nope it still says 71

    15:28:53 [ALLVARLIG] Could not pass event PLAYER_INTERACT to GriefLogger
    java.lang.NullPointerException
    at com.vikommedia.GriefLogger.GLPlayerListener.onPlayerInteract(GLPlayer
    Listener.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.j
    ava:307)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:332)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:168)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:210)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
    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:85)
    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)
     
  10. Offline

    sddddgjd

    Alright,temporary fix until the OP gets back! :D
    http://dl.dropbox.com/u/13921141/GriefLogger.jar
    This doesn't have the silent event logging (for administrators) which is causing the crashes!
     
  11. Offline

    toxicgaming11

    so this will work with permission now then :)?
     
  12. Offline

    sddddgjd

    if it worked before,it will still work...i just completely deleted the part that logged lava and water (not the buckets,the element itself)
     
  13. Offline

    toxicgaming11

    it have never worke for me with op or permission :(
     
  14. Offline

    Vikom Media

    The plugin was designed for bukkit build 1000 and works perfectly fine, Thanks everyone that tried to help out :).
    Redownload bukkit and try again, if it doesn't work without any other plugins installed then i guess you have a corrupted jar.
     
  15. Offline

    toxicgaming11

    okey thx
     
  16. Offline

    Vikom Media

    did it work??
     
  17. Offline

    John!

    love this plugin, but it keeps giving me:


    Code:
    15:11:01 [SEVERE] Could not pass event PLAYER_INTERACT to GriefLogger
    java.lang.NullPointerException
            at com.vikommedia.GriefLogger.GLPlayerListener.onPlayerInteract(GLPlayerListener.java:71)
            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:332)
            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:553)
            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:85)
            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)
    
    still functional, but spamming my log with this block several times a minute. 7 players online, though some are ~10,000 blocks from spawn.
     
  18. Offline

    Vikom Media

    Please try getting a new bukkit jar seeing as that fixed issues for someone else, if that doesnt fix the problem plz list your other plugins
     
  19. Offline

    jedimaster0

    First of all, great plugin! I love the fact that it tells me only what I want to know. That being said I have a small request. Would it be possible to include a config file? I would like to change what objects trigger the grief message. Also a permission node that stops the message for certain objects when used by a group with the node. That way my moderators and citizens won't get accused of griefing when it is allowed for their group. Again, great plugin.
     
  20. Offline

    Vikom Media

    sounds good and thanks!!
    I'll add the stuff in 0.5
     
  21. Offline

    leiger

    Hey Vikom,

    I continually get GriefLogger throwing NullPointerExceptions. Was planning to post the stack trace but it's identical to the ones posted already (same line numbers as well).

    Bukkit: 1000
    Plugins: BedHome, ChestShop, BorderGuard, WorldGuard, HeroicDeath, WelcomeMe, CommandBook, GriefLogger, Lockette, WorldEdit, BOSEconomy, dynmap

    I'll upgrade Bukkit to 1060 later, but I really think you should be catching these exceptions anyway. Put a few try-catch blocks in and show a one or two line custom error message instead of just letting Java throw these. At least that way they won't fill up the console. Please? :)
     
  22. Offline

    Vikom Media

    I will when i have more time, it'll be in 0.5 though :)
     
  23. Offline

    leiger

    Okay, no problem :) Glad that it's being implemented, and am willing to wait until you have some more free time for this.
     
  24. Offline

    leiger

    Hey Vikom,

    I've been doing a bit of testing and have narrowed down exactly when these NullPointerExceptions occur.

    Right-click on any block, whilst not holding anything in your hand. It only occurs if your hand is empty, and only for right-clicking.

    As you can see from the stack trace, it occurs on line 71 of GLPlayerListener.java:

    Code:
    14:10:47 [SEVERE] Could not pass event PLAYER_INTERACT to GriefLogger
    java.lang.NullPointerException        at com.vikommedia.GriefLogger.GLPlayerListener.onPlayerInteract(GLPlayerListener.java:71)
    
    Looking at the source code, and playing around with it a bit, I can't seem to pinpoint what is causing the problem. So I've just modified the class to show a one-line error message instead, and have uploaded it to this post in case you'd like to use it for your next release. :)

    Thanks for an awesome plug-in!

    Cheers,
    Shane
     

    Attached Files:

  25. Offline

    Vikom Media

    Thanks!
     
  26. Offline

    ONeill

    Really nice Plugin! I miss a feature (like an yml file) where u can add additional things, where u can add some more blogs u want to check, so that you can create log files for some special things (for example u disallow gold / diamond blocks on your server but you have a building or a block of diamonds - and someone will take it)
     
    ZacTheDead likes this.
  27. Offline

    NazzyDragon

    MySQL support?
     
  28. Offline

    ZacTheDead

    Why is this plugin So good?? (Best plugin EVER!)
     
  29. Offline

    MRI

    can you add a permission system?
     
  30. Offline

    PwnThaMan

    Hello i'm getting an error the version of your plugin is 0.4




    >13:59:10 [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to GriefLogger
    java.lang.NullPointerException
    at com.vikommedia.GriefLogger.GLPlayerListener.onPlayerInteract(GLPlayerListener.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:284)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    >13:59:10 [SEVERE] Could not pass event org.bukkit.event.player.PlayerInteractEvent to GriefLogger
    java.lang.NullPointerException
    at com.vikommedia.GriefLogger.GLPlayerListener.onPlayerInteract(GLPlayerListener.java:71)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:284)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
    at net.minecraft.server.Packet15Place.handle(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  31. Offline

    bumsnik_united

    This is cool, but how do i access the files that show who griefed?
     

Share This Page