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 May 6, 2012@Hoot215
I'm on it. ^^
-
View User Profile
-
Send Message
Posted May 6, 2012@Jaminb2030
@Sanzennin
There is already a wand tool...
In the config.txt, set "UseTools=false" to "UseTools=true". Then use a stick as the tool. Left click to see broken records, and right click to see placed records. You will need the permission "Sanzennin.mod.WToolUse".
Also Sanzennin, I forgot to mention, the page for the config file is a little bit out of date. There is no "UseTools" setting on it. Also, "integrityOnStart" and "autoRepair" seem to be missing as well.
-
View User Profile
-
Send Message
Posted May 6, 2012Add a wand-tool as an option instead of /sws l
For God sakes PLZ!
-
View User Profile
-
Send Message
Posted May 6, 2012@Hoot215
Actually, he doesn't need to change the radius in the config if he gives himself the perm to bypass it: Sanzennin.admin.RadBypass
And the idea about -1 for radius is pure gold. I'll add it.
-
View User Profile
-
Send Message
Posted May 5, 2012@Luwiego
@Sanzennin
I would have to agree with Luwiego here. The ability to rollback the entire world is very much needed. Maybe you could use a radius of -1 for the entire world?
Also Luwiego, you would currently have to set your maximum radius very high in the config file, and use that same radius to rollback. For the height, fly up to the top of the world (Approximately Y = 270) and use -300 or so as your height.
-
View User Profile
-
Send Message
Posted May 5, 2012How to rollback something over the world ? What to use in the radius ? /wundo p:grifer1 5000 -5000(or 5000) 0 0 ?
-
View User Profile
-
Send Message
Posted May 5, 2012@EpicMinecraftBuilds
Well, is it? You get relevant helpmessages when the rollback function notices that 0 blocks were rolled back. The help-messages are not always 100% accurate (hard to say what exactly went wrong without wasting a bunch of resources) but they should give a general idea.
Could you paste here the exact command with the arguments you're using?
Have you tried to rollback without specifying the player name?
-
View User Profile
-
Send Message
Posted May 3, 2012Everytime I try to rollback griefing, I get " Is this PlayerNameExact correct: [name]? Any help?
-
View User Profile
-
Send Message
Posted Apr 26, 2012@Luwiego
Stand at the location of the block in question, and use "/sws <broken/placed> feet" (for only recent logs) or "/swss <broken/placed> feet" (for all logs).
-
View User Profile
-
Send Message
Posted Apr 26, 2012@Sanzennin
How to check if a block is broken, if theres nothing to click on ? Just place another block and check ?
-
View User Profile
-
Send Message
Posted Apr 26, 2012@Dustinduse
Yeah, all the logging plugins tend to require some resources, as they are working non-stop. SWatchdog just aims to require as little resources as possible.
-
View User Profile
-
Send Message
Posted Apr 26, 2012@Luwiego
You know, stick atm works as: left click for broken, right click for placed.
To use stick, enable it in config, and give yourself the permission for it. (Sanzennin.mod.WToolUse)
@teenspirit7
Hmm... have you touched the config file? What parameters are you giving for /wundo? Have you ever cleaned your logs (By setting up the autoclean or by cleaning them manually)? If you use /wutil repairintegrity and try again, does it work? What do you see in console before the crash?
-
View User Profile
-
Send Message
Posted Apr 25, 2012@Sanzennin
Yeah. i dont have anything but the defaults set. i tested out Blocklog and i think ima stick with your plugin. as blocklog actually cuases mass server lag when it saves to file.
-
View User Profile
-
Send Message
Posted Apr 25, 2012@Sanzennin
How to check a broken block with a stick ? Couldnt you just add a log, if left-click, check placed, if right-click checks broken.
-
View User Profile
-
Send Message
Posted Apr 25, 2012It just crashes when I do /wundo
Every single time, i'm doing a small radius and height....
What's going on?
Nothing comes up on the log?
-
View User Profile
-
Send Message
Posted Apr 24, 2012@Luwiego
Its because bukkit staff is taking their time inspecting 1.10 before they approve it for public use. Its standard procedure. If you look at server mods tab, do you really think nobody has done anything for the past 15 hours? No, the updates are just not showing up, because Bukkit staff has not inspected those files yet.
-
View User Profile
-
Send Message
Posted Apr 24, 2012Add the top it says version 1.10, while the newest version to download is 1.09
-
View User Profile
-
Send Message
Posted Apr 23, 2012@Sanzennin
Great, I understand now. Thanks a bunch! :) Keep making your awesome plugin :D
-
View User Profile
-
Send Message
Posted Apr 23, 2012@EpicMinecraftBuilds
Well, currently seeing as chests are frequently accessed, they create alot of logs for a single block. So, instead of adding chests to radius commands, they are only in commands such as /sniff look that checks a single block. I am working on finding a solution to this. Like not showing identical chest accesses. ("Player a opened chest" 135000 times is a bit too much information for you, eh? Maybe make it "Player a opened a chest (x135000)" would be better)
@Dustinduse
If you enabled to log everything, that might be the case, or then you just don't have many heavy plugins. Especially if you enabled to log physics. You really shouldn't log physics... On our server, nolagg gives citizens and WG as laggier than SWatchdog. Even though we gave members perms to use standard /sniff.
-
View User Profile
-
Send Message
Posted Apr 22, 2012@Hoot215
Thanks for your help ill try that out next time. but. anyone have any info of the efficiency of this plugin? i did a nolagg exam on my server. and swatchdog is the laggyest plugin i have.