X-Ray Block Percentage
X-Ray Block Percentage Version: 1.9.2 Alpha
X-Ray Block Percentage, or XBP is a plugin that adds a command to automatically search logger plugin databases (currently supports Hawkeye, LogBlock, and CoreProtect, more plugins coming) for blocks that typical X-Ray hackers will attempt to mine and displays a percentage value of total blocks broken for each type of block.
Current Features
- Displays percentages on any type of block defined in config file (defaults are Iron Ore, Gold Ore, Lapis Ore, Mossy Cobblestone, Emerald Ore, and Diamond Ore).
- Displays total number of blocks broken and amounts of each ore broken.
- Searches across time defined in config file (default is the previous 48 hours) starting from when the command is executed.
- Searches across all worlds by default, can be configured to exclude worlds.
- Displays a warning when a player breaks any type of block defined in config file (default is Diamond Ore) with parameters defined in config file (default is 1.5% and 8 blocks).
- Modification and reloading of config file is available via command.
- Searching is multithreaded to prevent server lag.
Commands
- /xbp [playername] - Performs an XBP search.
- /xbp reload - Reloads settings from config file.
- /xbp config - See here for full usage.
Permissions Nodes
- xbp.*: All permissions
- xbp.xbp: Allows running /xbp [playername] command and viewing of update alerts.
- xbp.warning: Allows viewing of XBP diamond alerts.
- xbp.bypass: Allows for player bypassing of warning checking.
- xbp.config: Allows for player to modify configs via command.
Upcoming Features
- Support for other logging plugins:
- HawkEye/HawkEye Reloaded - Released Version update in progress
- LogBlock - Released Version update in progress
- CoreProtect - Released Version update in progress
- SWatchdog - In Progress
- LogEx - Planned
- Prism - Planned
- HawkEye/HawkEye Reloaded - Released Version update in progress
- Searching for players with top break percentages
Supports
- Plugin managers such as GroupManager or PermissionsBukkit
- Multiple worlds
- Hawkeye v1.0.7b HawkEye Reloaded update in progress
- LogBlock v1.58 Version update in progress
- CoreProtect v1.54 Version update in progress
Special thanks goes to the TCNations server for providing a server with HawkEye to test on and to Vettexl for putting up with my shenanigans. Thanks a ton!
Is it possible for you to make this plugin work without a logging plugin?
Could you please add an option in the config file to make it only calculate the block break percentages from the blocks that are being logged. Currently the percentage is worked out from all blocks broken. So if someone x-rayed and found loads of diamonds they may not be suspected because their diamond percentage is really low compared to the large amounts of blocks they have broken.
Also if you have silk touch and place the diamond ore back down (or any block) it keeps counting it, could you add an option in the config which lets you specify certain blocks that won't be recorded if they were placed by a player?
Hope you can do this, thanks. :)
@NotYetRated
Unfortunately, you can't specify which logger plugin it selects. What you might be able to do is open HawkEye and XBP up in 7-Zip, modify the XBP plugin.yml softdepend to remove HawkEye and do the same to HawkEye, but add an XBP softdepend. That way, XBP will wait until CoreProtect is loaded and will detect CoreProtect, then HawkEye will load.
EDIT: I'll see what I can do about adding a way to switch, though.
@Klosjaarrr
I like hawkeye's webui for searching logins/ips/teleports/chat/commands etc etc.
I like CoreProtect for its system of logging/rolling back edits.
There is no additional data, as each plugin is logging different things, and both to a mysql database.
Why the hack should you use two protections at the same time? That is a load of unwanted data :o
How do I tell this plugin which logging system to use?
I have hawkeye, which logs player chat/logins/and other misc things, but not block breaks/placements.
I use CoreProtect for block edits.... I get the feeling the plugin is searching my hawkeye database, when I need it to search CP.
@skippyaut
Thank you! :) Hm. I haven't done testing on players with huge block break amounts. I imagine it would cause some pretty heavy lag, though. I'll check and see if it's a bug somewhere, but it may just be a size issue. Are you using MySQL, or flat file storage? If you're not using MySQL and are running a large server, or servers that have players breaking that many blocks, I would suggest switching to MySQL. Flat file is only faster for smaller amounts of data.
Hi, nice plugin i like it :) I use CoreProtect, but with /xbp [user] there is a huge lagg, and sometimes all users have disconnect. The lagg is wen the user have more than 150k - 200k Blocks broken/24h. So, my question: Is this a bug, or simply to much Blocks. sorry for my simple English :)
Thank you for the explanation.
@Xarc34
Make sure that you have the same number of items in the warning parameters column as the number of warning block ids. Each item in "warning-block-ids" should have a corresponding item in "warning-parameters"
@Xarc34
Ah, right. I forgot people could do that. D: Well, you've been seeing all my submits and deletes then. :C I don't iterate the file that XBP version checks against until BukkitDev approves my uploads, mostly to avoid confusion. Can you download the most recent submit of 1.8.1 and see if it still throws that error?
That error is gone.
from subscriptions feed :)
at command "/xbp config warningblockids add 129" I get this warning
[WARNING] Number of warning block IDs and warning parameters do not match!
@Xarc34
Whoops. D: Forgot to accommodate for different OSes. Fix submitted.
EDIT: Are you getting those first three messages when you start up? What version of XBP are you running? 1.8.1 hasn't been approved. O.o
[WARNING] [XBP] XBP is out of date!
[WARNING] [XBP] Version installed: 1.8.1
[WARNING] [XBP] Latest version: 1.8.0
at any config command give this error : http://pastebin.com/NkMj1muY but is still working and modify the config.
@xKoKSii
Pooossibly. I need to clean up my code first, decide on a licence, and add comments, but it's something I'll consider. (Also, someone took my username on GitHub already D:)
@Pyho
Heyho :)
U gonna release the Source? :)
@zOxigen00
Yep. I'm currently in communication with the CoreProtect dev on this, since CoreProtect doesn't have any actual API for other plugins. If nothing pans out, I'll attempt to add support by directly accessing the CoreProtect database, however, an API is preferred.
Can u support the CoreProtect plugin? That would be great
@Pyho Thx it works now.
@Dutchoner
Did you follow the URL that accompanied that error? You need to have either LogBlock or HawkEye installed in order for this plugin to do anything.
@fletch_to_99
Sure, will do.
@Dinastya
Hm... I'm not sure yet how to deal with this. Either it will list pages, or removal can be done.