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.
@wiinick
Search pages are already in the works.
SUGGESTION
Make a limit for search results, or even show oldest to newest not newest to oldest, because oldest is then at the bottom while newest is already out of sight.
in the config what is splits, i cant even see who greifed because it scrolls so fast it shows the very first time it was interacted with. The actual grief flies by on the chat bar.
awesome plugin, I liked also that of xray :D
@Sanzennin
No problem, I'm glad you found a way to fix it! :D Nice work! (as usual)
@AnotherP
Yes, 1.05 that I will release in few days, will fix this. Sorry for the wait, but its not ready yet. :/
@Sanzennin
No, it is called Nova_MainLands
@re4397
Umm, that seems to be an error caused by "plugman" I don't see hows that related to swatchdog... wrong pastebin?
(That, and are you using tekkit? SwatchdogT.jar is for tekkit.)
@newboyhun
Yeah, coming as option in the future. :)
Nice plugin,but would be cool if you could add chest-transaction logging.
error on loading SWatchdogT.jar http://pastebin.com/McqJf1FR on minecraft 1.2.3
@Dudescast
Hmm, there is, but it adds an extra check... Well, its easy to do, so I'll just make a tekkit version of SWatchdog that ignores the player "buildcraft".
is "buildcraft" the _exact_ name of the player?
So not "BuildCraft" for example?
Knowing this will make it require a bit less resources.
Well, the file is now waiting for approval. Tell me if it works. (For example, use /wtrack buildcraft <server time, few minutes after uploading SWatchdogT.jar>)
Also, make sure to delete SWatchdog.jar when you switch to tekkit version.
Hey, nice plugin!
But we are trying to use this on a Tekkit server. And if you don't know what that is, it is basically a pack of mods that makes all kind of machines possible. Anyways, some of those machines breaks blocks, and they show up nicely in the archive. But because the machines are breaking blocks none stop and making huge quarries the log files get really large really quickly. So I was thinking maybe we can make swatchsdog stop recording certain players. Since the machines are recognized as the player named "buildcraft".
So yeah, is there a way to make it so that the player buildcraft doesn't get recorded?
@Brock_Blocking
If you place a block, and look at it while using /sws l, will it tell you just placed that block? If so, it is working, if not, I'll come take a look, if you don't have any error at console? Also, as Hoot215 said, use supersniff (if the entry is slightly older)
@antagonistxx
The node for all the permissions is Sanzennin.Watchdog.*
We use group manager too, and its working great with SWatchdog :)
@AnotherP
Ah, thank you for this valuable information. I think I know whats going on, your main world, its not named "world" is it? seems I may have a small bug in there.
@AnotherP
Im not sure why the things are getting squished so here is a link to a picture of the same thing...sorry.
http://i.imgur.com/ZHu82.png
I'm having a problem. When I try /wxray [player name] This happens:
(Direct copy/paste from my config)
Server: /wxray Blade1212 SWatchdog]Sniffing: the caves for Blade1212... !: Watchdog couldn't read the lastIDbroke.world.txt. Attempting to fix SWatchdog]Stone:: 0.0% 0.0 Blocks SWatchdog]Gold:: 0.0% 0.0 Blocks SWatchdog]Diamond:: 0.0% 0.0 Blocks SWatchdog]Redstone:: 0.0% 0.0 Blocks SWatchdog]Lapis:: 0.0% 0.0 Blocks SWatchdog]Dirt:: 0.0% 0.0 Blocks SWatchdog]Iron:: 0.0% 0.0 Blocks SWatchdog]Coal:: 0.0% 0.0 Blocks Server: /wxray HappyGrenades SWatchdog]Sniffing: the caves for HappyGrenades... !: Watchdog couldn't read the lastIDbroke.world.txt. Attempting to fix SWatchdog]Stone:: 0.0% 0.0 Blocks SWatchdog]Gold:: 0.0% 0.0 Blocks SWatchdog]Diamond:: 0.0% 0.0 Blocks SWatchdog]Redstone:: 0.0% 0.0 Blocks SWatchdog]Lapis:: 0.0% 0.0 Blocks SWatchdog]Dirt:: 0.0% 0.0 Blocks SWatchdog]Iron:: 0.0% 0.0 Blocks SWatchdog]Coal:: 0.0% 0.0 Blocks
In game or in console, the same thing happens. I have the setting to allow it set to true, the file is there, so I'm confused. Also, the file only has one thing in it:
0
Thats it, just zero...please help me, thank you!
p.s. the rest of this plugin is amazing and has helped me out so much, thank you and keep up the good work! :D
@antagonistxx
I dont think "Sanzennin.*" is an actual permission that you can give. Try giving your refs the individual nodes. You're probably an OP, which would be why it works for you
I seem to be having a problem.
When using - Sanzennin.* for my refs and above, they still dont have access to the commands. I use group manager. It works fine for me though. Any idea whats up?
@Brock_Blocking
Try using /supersniff instead.
@Sanzennin
Its letting me into all the commands only when I do something like /sniff look, it will give me a blank report.
[SWatchdog] history of given block:
even though I know players have done edits to the block/area.
@Sanzennin
No problem :)
Since I'm subscribed to new comments via email and I'm on the computer quite often anyway, I figured I might as well help out.