[ADMN/SEC] iWatch - Log/Block item usage - Prevent fire and greifing [740]

Discussion in 'Inactive/Unsupported Plugins' started by DeathCradle, Feb 10, 2011.

  1. Offline

    DeathCradle

    iWatch - Log/Block item usage - Prevent fire and greifing.
    Version: 0.6
    Tested Bukkit Version: 740

    iWatch is a plugin that can help prevent certain item usages & their effect, Such as fire, Lava flooding, Stopping Tnt (Even placement), whilst also logging each time these occur.
    iWatch can help you catch people mis-treating your server (greifing) or even prevent some of it in the first place.

    Usage:
    Simply download and run it once, it will generate it's nessisary files.
    It comes standard with blocked items of:
    • 51,259,11,10,46,327
    And Logs 7 (Adminium)


    (Blocked items are also logged).

    To use the Alert System, configure 'Playerstomessage' in the properties file to have the player names you wish, E.g:
    Playerstomessage=DeathCradle,Sovereign79
    or For all players
    Playerstomessage=*

    Config Locations:
    • plugins/iWatch/iWatch.properties (config)
    • plugins/iWatch/iWatch.log (Log)
    • plugins/iWatch/PlayerLogs/<playername>.log
    How does iWatch Log?


    iWatch Stores player information such as their name, Item they were holding , the block they placed, the block they placed it on to even the exact location it happened! All stored at 'plugins/iWatch/iWatch.log' or 'plugins/iWatch/PlayerLogs/<playername>.log'.

    Want to see this Plugin in Action?
    Since this plugin was made for Olympus Minecraft you can come over and join the community and check out this plugin!
    IP Address: login.olympus-mc.net

    Features:
    • Ability to prevent fires started by item usage.
    • Ability to prevent block placeage.
    • Ability to prevent some item usage/placage.
    • Logs each infraction to the log file so the OP can tae nessisary actions!
    • Ability Alert players upon Blocking or Logging (or Both).
    Download?


    Code:
    http://downloads.craftmin.com/iWatch.jar
    Changelog:
    Code:
    Version 0.5
        Updated to newest Bukkit changes
    
    Version 0.4
        Updated to newest Bukkit changes
        Found a bug upon inistalization, Fixed :D
    
    Version 0.3
        Made logging toggable
        Logging/Blocking of Block destruction (Still some TO-DO's)
        Added in IgnoreOps' until i add in permissions support.
    
    Version 0.2
        Added Alerts
        Added Ability to use singe or multiple logs (player names)
        Added BlockedMessage, WatchedMessage, SeparateLogs, removebucketlava, Playerstomessage for properties.
    
    Version 0.1
        Initial Release!
    
     
    Steve Cole likes this.
  2. Offline

    DeathCradle

    I just updated to 456, Give er' a go now ;)
     
  3. Offline

    Mydnyte

    I just want to say thanks for this plugin.
    It's by far the best one I've used to stop griefing on my server.

    This with Towny is better than sliced bread. :)

    Edit: CraftBukkit 456 w/ Permissions 2.4 / Essentials
    This error on start:

    13:06:45 [SEVERE] Could not load plugins/iWatch.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:65)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:114)
    at java.util.jar.JarFile.<init>(JarFile.java:135)
    at java.util.jar.JarFile.<init>(JarFile.java:99)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:52)
    ... 8 more
     
  4. Offline

    SunShe

    It's normal with #456+ almost every plugins gona not work without changes, it's the case for Permissions ans Essentials and others. At this time the #440 is recommended. depend what dev-Bukkit used at compilation. ( it's just the command event who have changed )
     
  5. Offline

    TerraPlay

    It's not logging for some reason.
    EDIT: Working now, but what about logging built blocks or something? Another thing that would be nice is an option to enable shorter action-logs, the log for one action is kinda long, what about something like this:
    Code:
    [<date>] <name> <action> <id> at <location> [<reaction>]
    For Example:
    Code:
    [Fri Mar 04 16:48:32 CET 2011] TerraPlay placed 44 at -70 69 64 [LOGGED]
    Would make it much easier and you would have a better overview over the actions.
     
  6. Offline

    DeathCradle

    Yeh i should, I was mean to change it a while back while porting from hMod, Managed to forget ;).
     
  7. Offline

    niallmcfc

    Not getting anything... When testing my server as an Admin in permissions and an Op in the .txt file, TNT still places and still causes and explosion. This is my properties file:

    Code:
    #Tue Mar 08 22:02:33 GMT 2011
    BlockedMessage=true
    WatchedItems=7
    SeparateLogs=true
    BlockedItems=10,11,46,51,259,327
    messageOnBreakage=true
    LogBlockBreaks=true
    Logging=true
    removebucketlava=true
    Playerstomessage=*
    WatchedMessage=true
    Disabletntexplosion=true
    StopBlockBreaks=false
    IgnoreOps=true
    
    EDIT:

    IgnoreOps=true

    *facepalm*
     
  8. Offline

    sza22

    permissions support?
     
    AS1LV3RN1NJA likes this.
  9. Offline

    ffrogman

    For some reason this plugin just started spamming these errors.

    Show Spoiler
    21:20:02 [SEVERE] Could not pass event BLOCK_PLACED to iWatch
    java.lang.NullPointerException
    at org.visualadmin.DeathCradle.iWatch.Processor.ProcessBlock(Processor
    ava:33)
    at org.visualadmin.DeathCradle.iWatch.iWatchBlockListener.onBlockPlace
    WatchBlockListener.java:22)
    at org.bukkit.plugin.java.JavaPluginLoader$22.execute(JavaPluginLoader
    ava:232)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.j
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager
    ava:225)
    at net.minecraft.server.ItemBlock.a(ItemBlock.java:107)
    at net.minecraft.server.ItemStack.a(ItemStack.java:56)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:1
    )
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:512)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)


    Version:
    21:23:30 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-471-
    gbd27aca-b454jnks (MC: 1.3)
    21:23:30 [INFO] This server is also sporting some funky dev build of Bukkit!
     
  10. Offline

    PirateEggs

    Would it be possible to have an enable and disable command? So if you type /iwatch on / off it will turn it on or off, so if you want to use a disabled item for a couple minutes then you can.
     
    AS1LV3RN1NJA likes this.
  11. Offline

    gomgc

    OH MY GOD!!!!!! THATS THE BEST PLUGIN EVER!!!!

    Now griefers cant destory my world muahaha
     
  12. Offline

    ScottSpittle

    2011-03-22 18:19:08 [SEVERE] Could not pass event PLAYER_ITEM to iWatch
    java.lang.NullPointerException
    at org.visualadmin.DeathCradle.iWatch.Work.LogPlayer(Work.java:80)
    at org.visualadmin.DeathCradle.iWatch.iWatchPlayerListener.onPlayerItem(iWatchPlayerListener.java:32)
    at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:175)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:469)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
     
  13. Offline

    iPhysX

    Deathcradle, you have any intentions what-so-ever of doing anything like this again?
     
  14. Offline

    DeathCradle

    I have an update already, I mainly do this for Olympus (Server). And it's worked up until now :p
    I will check it over now..
     
  15. Offline

    stewie1million

    Any way you could implement right clicking with a stick & part of the log would show up?
    (The name of who edited it last) Thanks

    -Stewie
     
  16. Offline

    Steve Cole

    can't wait till this gets permissions support.
     
  17. Offline

    Nieksas

    how to look who destroyed a block?
     
  18. Offline

    corron34

    can you make it so they cant pick up water in a bukkit please
     
  19. can you add something so that you can decide which player can place what item, so that if I want to place lava i can but others can't, while I still can't place all of them.
     
  20. Offline

    L24D

    Alright, i'm on a roll today... Posting like a madman :/. Anyways, that's not why i'm here, ah, i'm almost getting the same error as one of the above fellows:

    Code:
    2011-04-18 22:40:24 [SEVERE] Could not pass event BLOCK_PLACE to iWatch
    java.lang.NullPointerException
        at org.visualadmin.DeathCradle.iWatch.Processor.ProcessBlock(Processor.java:29)
        at org.visualadmin.DeathCradle.iWatch.iWatchBlockListener.onBlockPlace(iWatchBlockListener.java:22)
        at org.bukkit.plugin.java.JavaPluginLoader$24.execute(JavaPluginLoader.java:344)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:84)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:68)
        at net.minecraft.server.ItemBlock.a(ItemBlock.java:75)
        at net.minecraft.server.ItemStack.a(ItemStack.java:56)
        at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:218)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:447)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    
    But yeah, it was working fine for a while, then it just stopped, and then i got that ^^^
    for EVERY block placed/changed/added. (On both cb 670/677)

    [EDIT]: Mind me for saying this but, I'm kinda relying on you, this is the only logging based plugin i've found that actually works (worked). I love how it works, even if it didn't work for long :)
     
  21. Offline

    DeathCradle

    Ill see what i can do for an update this arvy/tonight. I will be releasing a new plugin & updating my others.

    Edit
    Or i may be waiting on 1.5...Only just seen it released.
     
  22. Offline

    Steve Cole

    can you see about adding permissions or groupmanager support to this. This is by far the best plugin i've used to stop people from placing blocks but i would like the ability to let certain player place some blocked blocks that way they dont have to ask me to build lava pools or lava falls for them
     
  23. Offline

    Atticusmas

    I FREAKING NEED THIS TO BE ON MINECRAFT 1.5 PLOX
     
  24. Requesting above and Permissions integration, if you could.
    Edit: Multiworld support would be amazing.
     
  25. Offline

    Plague

    considered inactive
     
  26. Offline

    DeathCradle

    I'll see what i can do for Multiworld/Permissions.
    Planning on upgrade today/tomorrow
     
  27. Offline

    jamietech

    Would you be able to add permissions support?

    *EDIT: Durp just read what you said :p
     
  28. Offline

    JDD

    Would this work if I wanted to simply log every time a player broke a diamond ore block?
     
  29. Any news?
     
  30. Offline

    DeathCradle

    Starting on a recode now :3
     
    Bmwsu and AS1LV3RN1NJA like this.
  31. Offline

    Aerial

    My only suggestion would be to create a item, say its configurable at default a Golden Sword that when right clicked, creates a log of changes on that specific block, So lets say, someone griefs your house, how would you know? You pull out your golden sword and right click the block that was changed, and BOOM! "Jan192:50pm aerialfate destroyed wood and placed cobblestone" something like that without needed MySQL would be unbelieveable :) Thanks for reading this, Hopefully you'll consider it!
     

Share This Page