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.
-
View User Profile
-
Send Message
Posted Apr 11, 2012Bug or not, decided to report. When I give too little parametres for rollbacking Example: /wundo p:weja 5 5 1
It gives me this:
2012-04-12 09:56:13 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'wundo' in plugin SWatchdog v1.09 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:624) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:103) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:85) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:622) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:506) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.ArrayIndexOutOfBoundsException: 4 at me.Sanzennin.SWatchdog.SWatchdog.onCommand(SWatchdog.java:500) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 14 more
Thanks!
-
View User Profile
-
Send Message
Posted Apr 10, 2012@x0pk1n
Hmm, I can understand it might seem a bit hard to find out the culprit... Tho, you can actually use /wtrack FIRE to see who has been placing fire lately. OR do /sniff placed radius 20 10 to see who placed fire. It actually goes to 'placed' as it counts as placing blocks. And thus its actually rather easy :P
As for /wxray, to keep it objective to mining, it only counts the things happening below 30Y, so if you're building a huge city and place/remove alot of stone for example, it won't count that. To test if its working, go to 20Y or something, mine around a bit and then test.
-
View User Profile
-
Send Message
Posted Apr 10, 2012I run a server and have Swatchdog installed. I thought it was easy to use and step up, i was impressed with the plugin; till i had a griefier come one! I was using my invisible plugin and was standing behind this person, they set alight a statue! The protection seemed to fail which i have now fixed, i banned the person. But if i was not their i wouldn't have found out who it was as Watchdog has no way of seeing who started the fire! I love this plugin and i would wish you could add it so i dont have to go looking for another plugin. Also i seemed to have diffuculty with /wxray as eveyones xray stat was blank when i was mining stone just before that to test it!
Many thanks- x0pk1n
-
View User Profile
-
Send Message
Posted Apr 10, 2012@Rebecca9596
Pretty much all the last 10 versions work with 1.2.4. Take a pick and enjoy :D
-
View User Profile
-
Send Message
Posted Apr 10, 2012I have 1.2.4 running. Will any of your versions work with that? Many plugins I like seem to be skipping straight from 3 to 5.
-
View User Profile
-
Send Message
Posted Apr 8, 2012Great Plugin !
-
View User Profile
-
Send Message
Posted Apr 6, 2012Oh wait just saw the upcoming features...
-
View User Profile
-
Send Message
Posted Apr 6, 2012Could you add a chest opening recorder kinda thing?
-
View User Profile
-
Send Message
Posted Apr 3, 2012@Bushhead97
Are you using tekkit?
Also, use /supersniff if /sniff wont show results. if /supersniff wont show results, there either are no results or you need to run an integrity check. (go to config: "integrityOnStart=true" and "autoRepair=true") If after an integrity check and repair there are no results. Well, then there are no. Have you enabled autoCleanDays=? ?
-
View User Profile
-
Send Message
Posted Apr 3, 2012I have the newest bukkit and the new watchdog. i use sniff.
and yes, some blocks dont seem to be logged at all also.
It also does this with the XRAY.
-
View User Profile
-
Send Message
Posted Apr 3, 2012@Bushhead97
Umm, what do you mean, exactly? Like, if you place a block, it tells that the block was placed, but when you restart, it doesnt?
What command are you using? sniff or supersniff? What swatchdog version do you have? What bukkit version do you have?
-
View User Profile
-
Send Message
Posted Apr 2, 2012It seems everytime my server restarts, some blocks arnt logged?
All it says is History of given block:
and then nothing.
-
View User Profile
-
Send Message
Posted Apr 1, 2012@extrea
Yeah, I recently noticed that problem myself too. I am fixing it in a future release, not sure if the next, or one after that.
@viktorjanpaulis
I'll make some video tutorials as soon as I have some free time. Did you look at the rollback guide?
-
View User Profile
-
Send Message
Posted Mar 31, 2012Can someone make a video tutorial about this, I cant get it to rollback for some reason and i need help!
-
View User Profile
-
Send Message
Posted Mar 31, 2012Hey, I get these error messages in the console. http://pastebin.com/SMzJHXxY
When I type /sws l under water it says
An internal error occurred while attempting to perform this command
I'm on 1.2.4, 2126 of Craftbukkit and ver 1.08 of Swatchdog
Thanks :)
-
View User Profile
-
Send Message
Posted Mar 30, 2012@darkcloud784
All SWatchdog versions work with bukkit,
but the SWatchdog versions ending with T are aimed for Tekkit, as I had such a request.
(I am currently making a new version thats aimed for Tekkit, 1.08T, not to confuse with 1.08.)
If it only worked with Tekkit, I'd probly list Tekkit under dependencies, eh?
-
View User Profile
-
Send Message
Posted Mar 29, 2012You Sir Are A Genius Keep Up The Good Work!
-
View User Profile
-
Send Message
Posted Mar 27, 2012so this only works with tekkit or does it work for all bukkit servers?
-
View User Profile
-
Send Message
Posted Mar 25, 2012@Miniahobbies
Thank you for the suggestion, however... Umm, why not just use /ban for the banning part? Its not like having to type one additional command would take that much time.
However, I like users contributing, and tend to try to make things happen. (Well, sorry, this suggestion I will probably not) But keep them coming! :)
-
View User Profile
-
Send Message
Posted Mar 25, 2012@Sanzennin
Hey I have used your plugin before and I really like it, but I was wondering if you could make a command that bans a player that greifed and rollsback aswell all-in-one command. This would be perfect thank you