SWatchdog
SWatchdog is now Abandonware, how cool is that?
Version: 1.19
Tekkit version 1.13Tekkit - Optimized for Tekkit, not recording machines.
This plugin will record all the broken and placed blocks, with their subtypes, person who broke/placed them & time and date when this happened. Also options for chest access logging as well as animal slaughter logging. There is also functionality to rollback said actions, re-place broken blocks, remove placed blocks ect. Its aimed to be lightweight, since bigbrother, while good, lagged any server I could see it used on. And while there are other block-logging plugins, most of them had sides that didn't appeal to the servers (where I work) owner. Like require the admin to setup the SQL database, the plugin connects to an external database the whole time, or the plugin is way outdated. And other problems like that, so I made SWatchdog. To keep it simple and efficient. We've been using/testing SWatchdog for some time now, and it seems to be a success. No lag whatsoever.
How to reach me
If you have any questions what so ever, have any problems with SWatchdog or want to give feedback / make a suggestion, you can either:
Send me PM here. Thats the most certain way to reach me, since I'm checking my PM's here every once in a while. (Note, a PM at BukkitDev, not a convo at Bukkit.)
Or you can try to reach me at -Server not public yet- ( - or the website ) for the most immediate and clear conversation. ( 0Given that I am online. ^_^ )
Recent changes
- Full control of what you want to record. (Though I doubt anyone would want to log only decaying leaves, even that is possible.)
- Rollback specified players, or blocks, or specified blocks placed by specified players. In the specified area after specified time. Yes, you can now be just about as specific as you want.
- Added automated log-cleaning as an option
- Added a powerful tool for checking the files integrity, option to do this automatically on server restart (and plugin reload) and to repair it (automatically)
- Entering incorrect parameters for a command now automatically shows relevant help to that command.
- Added chest access -logging as an option. Its defaulted to false, so if you want it, just enable it in the config.
- Added chest access -logging results to /sniff look and /supersniff look
- Added /wutil repairintegrity to easily make sure everything is as it should be.
- Added a method to change configs ingame. Yay!
- Added the stick. As an option. You need to enable it and give yourself the perm.
- Rolling stuff back now recognizes failed rollbacks (0 blocks) and suggests what might've gone wrong. (Like giving too specific criteria for example.)
- Added animal slaughter logging
- option to preview rollback before rolling back.
- Improved /WTrack
- Optimized single block sniffing, now faster than ever.
- Optimized WXRay
- ADDED PlayerUndo /WUndoP and PlayerClean /WCleanP to easily rollback spesific players.
- Major optimization, commands run in threads now.
Please note
- Please use uptodate permission plugin. Outdated permission plugins may be unable to handle the latest bukkit permission format. So please make sure your permission plugin is updated to latest R#. If there is no update, just notify the author of the permission plugin to update.
Video Tutorials
These awesome videos came from InstitutionAwesome. Many thanks!
Config
Features
- Everything runs in threads for improved stability
- Option to preview rollbacks.
- Rollback areas on single players
- Records broken and placed blocks on the map
- Records exploded, burned and decayed blocks on the map
- Records water and lava
- Records players accessing chests
- Records endermen breaking blocks, blocks forming and spreading naturally, trees growing, ect.
- Config options for different kinds of events to log. Log what you want!
- Aims to be as light and nonlagging as possible
- Has a powerful indexing system, so it doesn't matter if you have 200 000 or 20 000 000 blocks recorded when you do rollbacks.
- Allows you to rollback ALL the actions of a specific player, with proper security clearance.
- Has automated log-cleaning, as well as manual. Both optional.
- Allows to rollback placed/broken blocks on specified area
- Allows you to rollback specified block type, placed/broken by specified player, on specified area.
- Allows to check single blocks or multiple blocks at a time
- Allows you to track activities of a specific player
- Allows you to check entries by a blocktype
- Allows you to estimate how well it is working on your server, this may also reflect lag caused by other plugins
- Allows to check % of valuable minerals mined by a person below 30Y
- Allows to check slaughtered animals.
- Records all your worlds, commands are relative to the world you are in.
- Failsafe. If SWatchdog encounters an error while running, it will attempt to fix most of the errors. If the error is severe, and it cannot fix it, it will disable it self. (If you find an error it doesn't understand, let me know. I will add it to the list)
- Option for automated log integrity check, and further option for automated log-repair, so even if you managed to blow up your database, it should be no problem.
Enabling wand
- Do /whelp 10 ingame, then follow the instructions. And yes, you can do everything from ingame.
Planned features
- Some sort of super-rollback feature to determine what an area looked like at given point in time, and then remake it
- Make WXRay better, show example locations ect
- Give an option to sort the results of sniffing to a file, so you can go through them (enterrandomamounthere) at a time.
- Add an option to notify admins when certain blocks are being placed.
- Add a thread for warning about possible xrayers
- Dragon egg teleport logging, as an option for creative servers.
- Logging only certain worlds
- WorldEdit logging. Purely as an option, disabled by default.
- Fixing few minor bugs in 1.18
- Suggestions?
Currently working on
- Option to warn when diamonds are being mined
- Option to warn when gold blocks are being mined.
Permissions & commands
Guide to time, rollbacks and some other examples
Can now be found here.
The config file
Installation
Place SWatchod.jar in plugins folder. Enjoy!
In case of a bug-attack
If you encounter a bug, unexpected behaviour or believe something is wrong, please:
- Look at console while running a command, if it fails to run it, it should report there with possibly the reason for what happened.
- Tell the contents of /plugins/swatchdog/ to me via PM or post a message below.
- Tell the latest ID from /plugins/swatchdog/util/ lastIDbroke.world and lastIDplaced.world (or the ID's for a different world, if thats where the problem occurs.)
- Describe your world, is it the default world? Whats its name?
- Post the content of config file, in the util folder
- SWatchdog version you are using, and bukkit version you are using. I have a deep interest in solving any and all bugs you might encounter, so please, just tell about them.
Known problems
- Doors do not rollback correctly. (Only the half that was broken/placed is rolled back.)
- /sniff look is not a waterproof command, so don't use it underwater.
Requirements
Please use the (craft)bukkit version mentioned in the file.
I am having this error whenever I try to undo griefing: 13.10 13:25:45 [Server] INFO ... 15 more 13.10 13:25:45 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 13.10 13:25:45 [Server] INFO at me.Sanzennin.SWatchdog.SWatchdog.onCommand(SWatchdog.java:750) 13.10 13:25:45 [Server] INFO at java.lang.Integer.parseInt(Unknown Source) 13.10 13:25:45 [Server] INFO at java.lang.Integer.parseInt(Unknown Source) 13.10 13:25:45 [Server] INFO at java.lang.NumberFormatException.forInputString(Unknown Source) 13.10 13:25:45 [Server] INFO Caused by: java.lang.NumberFormatException: For input string: "BloodStorm3" 13.10 13:25:45 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) 13.10 13:25:45 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:418) 13.10 13:25:45 [Server] INFO at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:500) 13.10 13:25:45 [Server] INFO at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:245) 13.10 13:25:45 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:604) 13.10 13:25:45 [Server] INFO at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) 13.10 13:25:45 [Server] INFO at net.minecraft.server.ServerConnection.b(SourceFile:35) 13.10 13:25:45 [Server] INFO at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) 13.10 13:25:45 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:282) 13.10 13:25:45 [Server] INFO at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) 13.10 13:25:45 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:808) 13.10 13:25:45 [Server] INFO at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:826) 13.10 13:25:45 [Server] INFO at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:880) 13.10 13:25:45 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:607) 13.10 13:25:45 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) 13.10 13:25:45 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) 13.10 13:25:45 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'wundo' in plugin SWatchdog v1.14 13.10 13:25:45 [Server] SEVERE null
Could you help me please?
@Hoot215
Thanks for the offer, but I like to work on the code alone. :)
@Sanzennin
If you need anything implemented, I have a lot of free time :)
@Luwiego
My SSD just blew up, so I'm kinda busy fixing my computer and getting everything back on track. But don't worry, I still continue to listen to feedback and do whatever reasonable changes are required to make SWatchdog better. :)
Im still waiting for the complete rollback feature :c When i ban a player, i want to rollback everything that he has done from when he joined the server with one command.
@Sanzennin
Yes I don't have that error any more! Thx so much!:)
@Starzz1820
The error comes from function onBlockPlace, which is called when someone places something.
I guess the newest bukkit versions have made passing events somewhat more unstable, since this is one of the original functions that have worked perfectly so far and has not been modified. (That, or some other plugin influences this event.)
Anyways, I made a modified version of SWatchdog v116, try it and tell if the error still occurs.
(Also with full error message from the console.)
@Hoot215
19:22:12 [INFO] [!] Watchdog skipped a blockPlacementEvent writing for some rais in. Making sure everything is OK... 19:22:12 [SEVERE] Could not pass event BlockPlaceEvent to SWatchdog org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callBlockPlaceEvent(Cr aftEventFactory.java:99) at net.minecraft.server.ItemBlock.interactWith(ItemBlock.java:76) at net.minecraft.server.ItemStack.placeItem(ItemStack.java:84) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j ava:371) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:650) at net.minecraft.server.Packet15Place.handle(SourceFile:58) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:578) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at me.Sanzennin.SWatchdog.Watcher.onBlockPlace(Watcher.java:35) at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:330) ... 18 more
@Starzz1820
Can you actually post the error, please? Otherwise we can't help you.
@Sanzennin
I have WatchLava and WatchLavaWater both set to false in the config. This error happens in the console. It doesnt happen when someone places something
@Hoot215
@El000n
There is a "In case of a bug-attack" title on the SWatchdog bukkitDev page. (This page). Under it is a short checklist of things you should do while reporting bugs. Its not there just for fun. Its generic guide for efficient error reporting. Makes solving problems that much faster.
@tcadonau
That is not SWatchdog. And its quite hard to tell which plugin it is from.
@Starzz1820
Hmm... do you have WatchLavaWater and WatchLava both set to true in config? Or does the error only happen when you place something? Could you give some more info.
@El000n
By "gm" I assume you mean the creative gamemode? This works perfectly with creative, so I'm not sure what you mean by that. Just so you know, saying "it wont work" doesn't really provide any information that will help get your problem fixed. Please describe exactly what doesn't work, and post any error messages you get in the console. Also post the version numbers of Craftbukkit and SWatchdog (don't say "latest") as well as any possible conflicting plugins you have installed on your server.
@Hoot215
Well hmm does it work with gm cause i need it but it wont work
@tcadonau
If literally all that it's saying is "[INFO] Problem!" then it is likely not SWatchdog (although I'd have to check the source to be sure). Is that the exact and entire error message?
I keep getting a spam on my server log. all it says is the time [info] Problem! over and over agian. has anyone else seen this on their servers?
@Starzz1820
It would really help if you actually posted the error.
@El000n
Yes.
Yo bro does this work for 1.3.2 i need it
I keep getting an error about blockplacementevent for swatchdog?
@Sanzennin
They can, and I would assume they do. However, MultiVerse isn't guaranteed to load after them, since they would both be loading on startup, which is why MultiVerse has to load post-world. That's the problem.
@Hoot215
Hmm, didn't think about that. But why can't the custom generators load on startup?