[INACTIVE][SEC] GriefAlertr 0.3 - Logs & Record Block Interaction [210+]

Discussion in 'Inactive/Unsupported Plugins' started by djdclarke, Feb 6, 2011.

  1. Offline

    djdclarke

    [​IMG]GreifAlert was a fantastic plugin created by the rather jolly smart fellow Relliktsohg, however it seems after a while waiting that Relliktsohg may not have time himself to port it so I have started that process, and will be inject some of my own flavor as well. Parts of the code in GriefAlertr are from GriefAlert so all credit goes to Relliktsohg whom of which you can donate to via his hMod topic, never the less here is the information!

    GriefAlertr reports and logs when certain blocks are destroyed, interacted with or used. To do this it takes a list of what to monitor (watchedBlocks.txt) and then decides if it should just log, report in game, or do both.

    Features:
    • - Fully compatable with the Original hMod GriefAlert watchedBlocks.txt
    • - Low memory footprint
    • - Does not spam up chat. (Only 1 report per block user at a time)
    • - Logging and in game reporting
    • - Permissions plugin enabled
    • - Set users or groups to not trigger GriefAlerts (such as staff, or even VIP)
    Changelog:
    • - Version 0.1: First release
    • - Version 0.2: Now correct manages onUse, added onPlace
    • - Version 0.3:
        • - Fixed the watchedblock file not creating itself! Silly mistake by me there
        • - Fixed onUse not showing correctly.
        • - Added Stealth in from Original GA.
        • - Added in deny which stops the event from happening, eg block TNT. (griefalertr.avoidblock added)
    Plans:
    • - Read the originals /gcheck functionality [urgent]
    • - Frontend Log Viewer
    • - More Checking Hooks
    Installation

    Copy the GriefAlertr.jar to your plugins folder then reload. The plugin should have now created a new directory called GriefAlertr within the plugins folder, and inside that directory one called logs. You will need to setup permissions before the plugin works, to do this you need the permissions plugin. The permissions nodes are:
    • griefalertr.view [Shows the Alerts to players with this permission]
    • griefalertr.ignore [People with this permission won't trigger alerts]
    • griefalertr.avoidblock added [Will be able to place blocked blocks!]
    Notes:
    • This is the first version and while I've done some testing (thanks to AGMC members Spataan and for helping me by allow me to bug them to place TNT Postman1300) it's not going to be perfect. There will be issues, all I can say is I will solve them as soon as you let me know.
    • If enough people need it I will make a permissions free version, but I'm not in favour of doing that.
    • I really would love it if you posted if you are going to use this plugin, or even why you're not so I can judge if it's worth going on with it's creation.
    • OnPlace covers all blocks
    • OnDestory covers all blocks
    • onRightClick covers all blocks
    • OnUse covers items such as:
      1. 325 = Bucket (Empty)
      2. 327 = Lava Bucket
      3. 259 = Lighter
      4. 261 = Bow {See Wiki For All Weopons)
      5. 319 = Pork
      6. 320 = Cooked Porkchop
      7. 321 = Painting
      8. 324 = Door
    Download:

    Am I talking to much? No. Now we have that out of the way, lets link to the download

    http://dl.dropbox.com/u/19039339/GriefAlertr.jar
     
  2. Offline

    ShaDooM

    Yes Sir !!! Nice work
    Been waiting for this all the time >.< I Loved GriefAlert in Hmod

    Imma try this one on my Server and will report later :) Thanks

    edit:

    Destroying Block Report = Works
    Ignoring Selected Groups = Works after restarting the server instead of just /pr

    The only thing I've found in this short time is the same thing which GriefAlert also had, when the block is actually protected and they "try" to break it but it doesnt actually break, GA still reports it as broken. I'm not a professional but I guess it has something to do with how bukkit handles the onBreak thing or so, since thats not really the plugins fault

    yeah, great plugin ^^

    I'm excited to see the future updates of this plugin <3


     
  3. Offline

    djdclarke

    That is somewhat intentional, the idea is that if someone is attempting to grief you can still catch it, however I will make that a togglable option. That is to say, I will after I play l4d2!
     
  4. Offline

    ShaDooM

    Ah, okay sorry didn't know that was intentional but yeah that makes sense.
    More urgent than toggling that is probably the griefalertr.ignore option/permission
    since it still somehow triggers it even the group has that permission

    edit: it seems that i also cant allow my moderators to view the reports :S
     
  5. Offline

    djdclarke

    Could you should me your permissions file?
     
  6. Offline

    ShaDooM

    http://pastebin.com/md7c7P95
    ignore some redundant permissions ^^

    addition to your reply:

    no hurries :)
    your plugin already helped me banning like 10 griefers in that short time...

    your plugin saves us a lot of time already :)
     
  7. Offline

    djdclarke

    Ok, give me a few moments - looking into this now. Works on both my dev & main server so not sure what's wrong quite yet, sorry! I will try to get it done ASAP!
     
  8. Offline

    ShaDooM

    Hmm which craftbukkit are you using ? I'm not on the latest one but I'm probably at 248
     
  9. Offline

    djdclarke

    I'm using the latest, about to test others (I tested 210 so presumed 210+)
    --- merged: Feb 6, 2011 7:04 PM ---
    Sorry to be a pain but could I see your watched blocks? It's just I've tested with 248 and it still works fine :\

    Also, just in case we're not getting confused here - when you tested it with your mods did you break the same block and was it the same person? It will only warn once per a block of the same ID by the same person (so not just chat spam).
     
  10. Offline

    ShaDooM

    Edit: It seems like just reloading the plugin and permissions wasnt enough
    After a server reboot all permissions are set fine. Sorry for annoying you :\

    yes i did /pr
    and /plugin load enable disable reload ^^
     
  11. Offline

    djdclarke

    Ok thanks for letting me know. I'll try to solve that - and also thanks for letting me know as it was also bugging me on my server!

    Editing: Don't be silly, you wasn't annoying me!
     
  12. Offline

    zergilng

    allow but alert for admins lighter example please..
    not working.. T.T my house is gone
     
  13. Offline

    ShaDooM

    You want to trigger an alert when somebody uses the lighter?
     
  14. Offline

    djdclarke

    Released Update 0.2

    Changes introduce better onUse giving lighters etc a much easier to understand ID (samples given in top post) and OnBlockPlace added. Working on more updates, just been busy with real work sorry!
     
  15. Offline

    zergilng

    maybe download link seems to be broken..
     
  16. Offline

    djdclarke

    Link fixed.
     
  17. Offline

    MrYaah

    i think i love you sir
    on a more serious note good work :), we have all been waiting for this plugin to be working like it used to

    I cant seem to get onUse to alert, here are the settings im using

    OnUse:323:Sign:c:allow:stealth
    OnUse:326:Water Bucket:9:allow
    OnUse:327:Lava Bucket:4:allow

    onbreak and onplace work just fine, tho i would like to see the message colors be more customizeable (i dont really like the way they are curently set up)
     
  18. Offline

    Moo Master

    When i run it on bukkit (300), it will NOT generate watched blocks.txt anywhere in my directorys, not in the minecraft one, nor in plugins or griefalertr folder. I can easily make one, i just need to know where to put it >_>.

    Edit: NEverMind, found it, it was hiding :0
     
  19. Offline

    AmazingHayman

    Great idea. But I have some questions. I read the text and I think, that this plugin can be a good anti-griefer plugin without disallowing to build (like cuboids).

    When I only want to log actions, what will be logged? I think the position will be logged.
    But will the plugins also log the player who placed/destroyed a block?

    If not, are you interested in integrating that? I think that would be great, because it would be a little bit like the BigBrother Plugin. I wanted to install that Plugin, but my server hoster isn't able to install a MySQL DB on my server (I think he is, but he dont want to :D).

    I want to add, that I would be very thankful if you are able to release a Permissions free version. That would be great. :)
     
  20. Offline

    MeMan

    I was griefed in the past on my private server by my friend's brother, and it didn't show up on the log. this will be useful!
     
  21. Offline

    phaed

    How about ability to limit certain groups only
     
  22. Offline

    monir

    hi i wonder how do i know witch bukkit im using where can i see that?
     
  23. Offline

    Daveyo

    Code:
     GriefAlertr has detected Permissions and can proceed
     Attempting Creation of the GriefAlertr Example File
     Could Not Create The Writer for GriefAlertr
     java.io.FileNotFoundException: plugins\GriefAlertr\watchedBlocks.txt (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(Unknown Source)
         at java.util.Scanner.<init>(Unknown Source)
         at com.bukkit.djdclarke.GriefAlertr.fm.scanner(fm.java:126)
         at com.bukkit.djdclarke.GriefAlertr.GriefAlertr.onEnable(GriefAlertr.java:66)
         at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
         at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:425)
         at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
         at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:74)
         at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)
         at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:171)
         at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:158)
         at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:110)
         at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
         at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    
    My permission is '*'. cb 323
    --- merged: Feb 15, 2011 7:25 AM ---
    2nd load loaded the example file and fixed it
     
  24. Offline

    ShaDooM

    type /version
    ingame:
    [​IMG]
     
  25. Offline

    monir

    ok nice thnx i have version 1.2_01 how do i uppdate to latest or if i dont uppdate to make general work properlly do i need to down load general version 1.2?
     
  26. Offline

    ShaDooM

    uhm no 1.2_01 is your minecraft version not your craftbukkit version
    the line which says:
    git-bukkit-0.0.0-405-gf77e79e-b323 ....... B323 is my version of craftbukkit
    And I think you should open up another thread if u have further questions, so we dont spam this plugins thread :)
     
  27. Offline

    Daveyo

    i love the idea of this mod and i have it installed, just cant figure out how to use it
     
  28. Offline

    Kane

    @djdclarke So to confirm this is griefalert and blocklog was it or logblock combined sort of? Does it log every block so we can go back and check who broke something?
     
  29. Offline

    djdclarke

    @Kane it logs the blocks you set, you could set every single block, but yeah not really intended for that

    @Daveyo what excactly can you not work out? In terms of it not creating the file, looking into that!

    @phaed , it does that already unless I misunderstand?

    I will have a new version out today that improves and fixes a lot of the bugs!
    --- merged: Feb 16, 2011 12:31 PM ---
    Version 0.3 added, fixes and adds a couple of features.
     
  30. Offline

    ewanm89

    0.3 doesn't create the watched Blocks.txt file until the second run as it attempts to do it before the directory to put it in (so first run creates directory, second creates watched blocks).
     

Share This Page