Request: I am looking for a very simple plugin to track specific blocks placed and broken (without all the other intensive database logging features). Reasons: I cannot prevent grief from BuildCraft's Quarry, even with areas protected using WorldGuard or Grief Prevention. Since I do not want to ban quarries and still allow their use, I want to keep track of people who place/remove quarries, as well as where and what time. This way, should a region/claim be griefed via quarry, I can at least know who placed the block as well as what time and where. This also allows me to see who is repeatedly breaking TNT, most likely using the vanilla piston-TNT-x-ray trick. Specifics: Simply checks blocks placed and broken against a config file. Should a block match the config file, it is reported and/or logged. This plugin should be compatible with 1.4.7 as it will be run on a Tekkit Lite/MCPC+ server. It would be helpful if block IDs higher than 4096 can be used in the loggedBlocks list, but I can work around this by re-mapping block IDs. (I will be happy to test this.) There should be a plugin reload command so that the server doesn't need to be restarted. Sample Configuration: notifyGlobal: false #announces to server that a block was placed/brokennotifyAdmin: true #announces to Admin group that a block was placed/brokennotifyConsole: true #announces to the console that a block was placed/brokensaveToLogFile: true #records a block placed/broken, along with the player, time/date, and x,y,z locationloggedBlocks:#this would list the blocks to keep track of, all other blocks are not logged (shows TNT and BC quarry blocks below) - 46:*:TNT - 153:*:Quarry Sample Log File: [pluginName] 06-03-13 16:34 - Playername broke TNT (46) at -35, 72, 6[pluginName] 06-03-13 16:36 - Playername placed Quarry (153) at -37, 71, 9 Thanks for looking. Your help is very much appreciated!
I am not asking for a plugin to support mods. I am asking for a plugin that is supported under CraftBukkit 1.4.7.
That means yes No big deal Will make an quick start, the notify admin part will be implemented later though
That's fine. It is mainly in case of griefing. I have two CommandHelper commands to promote/demote myself so I can play legit on my server, so I would rarely see the reports anyways. (I was thinking for others that might value such a plugin.)
File logger is also working, Couple of questions, does the file logger needs to have an time prefix? Does the broadcast message needs to have an prefix?
I would like the file logging to go like this: [pluginName] 06-03-13 16:34 - Playername broke TNT (46) at -35, 72, 6[pluginName] 06-03-13 16:36 - Playername placed Quarry (153) at -37, 71, 9 This way I know the time and place as well as the block name and number (pulled from the plugin's config.yml).
You want the plugin name in the log file of the tracker plugin? You know that it will be an seperate log?
Haha, no it's okay. I copy-pasted that from above, it was more geared towards the in-game and console reporting. So just like this: 06-03-13 16:34 - Playername broke TNT (46) at -35, 72, 606-03-13 16:36 - Playername placed Quarry (153) at -37, 71, 9Also, please don't use the block ID's in-game name. Some of the Tekkit Lite blocks are oddly named and so I would rather name them myself in the configuration file. The star should report any block under that ID, where the damage value would only report that specific block. - 46:*:TNT- 153:*:Quarry- 194:8:Brass Block <--example using damage valueThanks again!
Nuinbot Block name will be taken from the block itself, much easier for me ( hope that this works for you ) Location is looking good, added an world name, console won't be spammed by broadcast for the players, file logging has everything it needs to have Code: 2013/06/05 07:55:46 timtower placed TNT at world -18, 63, 236 2013/06/05 07:55:47 timtower placed TNT at world -18, 63, 237 2013/06/05 07:55:48 timtower placed TNT at world -18, 63, 238 2013/06/05 07:55:49 timtower placed TNT at world -18, 63, 239 Console: Code: 07:55:46 [INFO] [BlockTrackerLikeMe] timtower placed TNT at world -18, 63, 236 07:55:47 [INFO] [BlockTrackerLikeMe] timtower placed TNT at world -18, 63, 237 07:55:48 [INFO] [BlockTrackerLikeMe] timtower placed TNT at world -18, 63, 238 07:55:49 [INFO] [BlockTrackerLikeMe] timtower placed TNT at world -18, 63, 239 EDIT: Link removed to change stuff
I'm going to try out a way to prevent the Vanilla TNT x-ray trick. Just something fun for me to do and learn while I go. Would it be of any use or should I not upload it?
Nuinbot https://www.dropbox.com/s/bjzerlk0a0y50fh/BlockTrackerLikeMe.jar Check config for explanation
Well, you might want to make your own thread, as this is slightly off-topic. However, now that you mention it, this is how it should go... Create a block placement sequence detection Sequence: piston or sticky piston TNT lever or redstone torch If these three happen consecutively, give the player a one-time warning "X-ray is forbidden on this server! Stop now!" (and possibly break the TNT block at the player's head) If they do it again, ban the player with the reason "Banned for using vanilla x-ray!" Thanks much! I will check this out tomorrow morning as I have to get up early.