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.
@EroOu
Well, I'm afraid the problem is caused by PeX being outdated. The latest update to PeX was on R1. So I am guessing it cannot handle the uptodate bukkit permission format that SWatchdog uses.
@Sanzennin
Good to hear you're working on it.
I decided to contact the author of PeX to sort out whats the problem with the permissions for users using PeX. Hopefully its gonna get sorted out.
@wwraver
Seems that PeX doesn't maybe support the new Bukkit permission format that I am using? Other than that, I can not think of another reason.
@vman411gamer
That is an upcoming feature. Oh, seems its not listed in the "planned features"... That might be the reason everyone is suggesting it.
I have the same issue with the permission nodes as dkhrmn. I'm using Pex and I've setting the permissions in all possible ways, it simply doesn't work.
Make it so you can roll back players?
@Sanzennin
No i have tried to do 1 at a time but it didnt work so i did the give all but that doesnt work either :/ Im using Pex btw
@dkhrmn
Hmm... that is odd, does it allow them to use commands when you give them one by one? What permission plugin are you using?
I give the - Sanzennin.Watchdog.* to my mods but it doesnt let them use it?
@DerekZil
Yes, that is indeed a planned functionality. Just haven't finished it yet. I think it might make it to the next update.
@ottoman25
I think its something like /pt <command> ? Oh wait, thats powertool, not sure if thats separate from worldedit...?
So how would I use worldedit to assign it?
Add roll back only to a player not a radius. Also if you can add the (Time) (Day) (Month) (Year) again. (Ex. /wundo (Player) (Radius) (Height) " " " ".) And just all together, everything they did within the time you put in with no Radius/Height. I <3 you. :D
If you can do this I will love you because I want to roll back this piece of crap Admin on my server that abuses and brakes player's homes. Cannot ban him because it is the Owner's brother... >:(
@Kekler
Yes, this is a good way to go about it, seen as WorldEdit is running the toolchecks anyways, so it wont waste any additional resources. Or keeps it minimal anyways.
@ottoman25
The reason watchdog doesn't have tools assigned is that, well, as it aims to be light and nonlagging, running a bunch of if() checks per minute hardly achieves this goal. Typing /sws l or /sws rad should bring up all the info you need anyways.
(Lets assume that a person fighting with a spider spams 10 clicks per second. 600 per minute. Lets assume you got 5 people fighting mobs. The click event is triggered 3000 times and 3000 if() checks are run in one minute. I might have exaggerated a bit, but you get my point.)
@ottoman25
If you have... WorldEdit I believe that does this? Anyways
Hold the wooden axe (I would do something other than the worldedit tool) and type in /pt sniff
Is there a way to asign /sniff look to a item like a wooden axe?
Oh, btw, there is an update that fixes TNT and redstone amounts in /wxray, also adds iron and coal to /wxray.
Just takes long for them to view it, as always.
@Hoot215
Yes, thats why liquid spreadlogging is optional in Swatchdog. The default is it only records the seed. (Aka, one entry per one bucket placed.) But if you want, you can log the spread too. (Which is defaulted to false) So it shouldn't clog your logs unless you willingly take that risk :)
@jaredlivingstone I usually tend to reply fast :)
@Sanzennin I managed to get it working. Maybe I was not using the correct time parameters. Anyway thanks for your quick response!
@Sanzennin
Well I'm not positive about this plugin, but I'm sure that when I used LogBlock, and my creative world got griefed with lava, it filled up hundreds of pages (Each page with a full list of entries... probably around 10 or so). Fluid logging can definitely clog your logs when it is placed in certain spots, like at the top of skyscrapers or something (And also consider that's only ONE bucket of lava, and griefers are likely to have many more).
EDIT: And also water would actually be even more so, because it spreads faster and farther.
@jaredlivingstone
Ummm, I am guessing you are using wrong command? Since, /wundo does repair houses that are destroyed. /wredo does place blocks again that were placed.
Can you tell the command(s) you were using, with all the parameters?
@Hoot215 Hmm, does water spread clog your logs? I know it makes pretty damn many entries, but not over 100k. Unless the whole server is like full of water. (Thats why its disabled by default.)
@xdeathoreox As Hoot said, it does record buckets you empty and fill. Aka, waterplacement. Make sure you got the latest version though.