DarkTrace
DarkTrace (DTService) will monitor mined blocks and maybe later mining patters and similar.
The intention is to track cheating better, for instance transparency cheats such as xray.
Maintenance Phase
Due to timing constraints i might not add much to this plugin, but can keep it updated.
Currently DarkTrace records what blocks players mine and how dark it is there, with the following features:
- Logs number of blocks mined for certain block types, as well as the max. surrounding light level.
- Checking ratios such as stone versus diamond, gold, iron.
- Simple udgement if a player is "suspicious" and display of those that might be (colourful for better orientation if displayed in chat), based on thresholds for ratios and light levels, also taking into account a minimum number of blocks mined.
- Page-wise browsing through report of suspicious entries, command shortcuts.
- Showing the stats (digest) for a player (also colourful if displayed in chat), also showing average values.
- Showing info about configuration
- Saving and loading from a data file, both on demand and periodically (if changed).
- Removing players from data, erasing all data, keep a log of removed entries.
- Configuration file with almost everything configurable, reloadable at runtime.
- No real time notification, just on demand checking (uppdates following).
...DOCUMENTATION UNDER REVISION...
Some hints on configuration and use: see Documentation
Upcoming additions: see Implementation/Process
Future (partly brainstorming):
- Notifications for players becoming suspicious, block breaks for certain types and similar.
- Automatic data removal for useless entries.
- Tracking mining style and mining phases to get a more precise impression of possible cheating (gets rit of all time stats).
Alternatives/Complementary:
- "Heavy" approaches such as modifying chunks and hiding ores until they really are discovered (Orebfuscator). These approaches can very well be combined with DarkTrace if you want a lighter way of checking for a certan range of users.
- Database/logging based approaches, such as logging ores, plus processing of ratios or similar.
- Notification based approaches, just telling when players find something (FoundDiamonds, WorldGuard+blacklist-use).
Motivation:
- I want a real time approach that also works on servers that do not use databases as infrastructure and do not have extensive resources for that.
- Providing a comparably lightweight solution for bigger servers as well that allows for quick browing through suspicious or whatever entries.
[For bigger servers maybe plan on the next version with separate player files or even db- support, or clear the data before it becomes too big. ]
About:
- I am not sure how far i will bring this, but the minimum features and further support for those (and small feature-requests) are guaranteed. Actually i will use this on my server, as long as i have one.
- Feel free to suggest changes or features or pose questions or discuss just anything.
-
View User Profile
-
Send Message
Posted Mar 13, 2012It like you to know that mining without light doesn't have to be an indicator for XRay; when it's evening and my room is dark, I mine without torches since I got a fairly bright screen and have the brightness set to 100%. Works perfectly.
-
View User Profile
-
Send Message
Posted Mar 7, 2012@asofold
Now that's a response!
Thank you for the info... my light level is now L[15]!
-
View User Profile
-
Send Message
Posted Mar 7, 2012@Junrall
Good point - i might have to put on more explanations...
Inside the [..] brackets you have the involved blocks, you can use the command '/dtd bn' (short for '/dt display bn') to always display the block names instead of the block ids. If you use block ids you can always check with '/dti <id>' (short for '/dt item <id>') what the name of the block is.
(It counts the maximally found light level next to a mined block, it is an average value).
R[1/15] is the ratio of 1 vs 15, i.e. stone versus iron ore: N[1]/N[15] .
The "suspicious" output for /su (short for /dt su) will contain only those entries of players that fail a check versus the threshold that is given in the configuration.
The default values might need adjustment, usually a suspicious entry is something to look further into or to adapt the configuration, like setting the min-frequ entry to a higher value for a specific block, so people need to mine some more before they can appear in the suspicious list.
In this case the suspicious output "L[15]=.0 R[1/15]=1.31" states that the player has mined all iron ore at an average light level of 0, i.e. total darkness (15 would be more like sunlight). In addition the player has mined only 1.31 stone blocks per iron ore block, which is a pretty good ratio, it is hard to tell if it is too good, for you can find iron in surface near caves. Judgement of light levels is a matter of taste, often people turn up brightness, but in most cases mining in darkness would be xrayers or light-cheaters. In such case they would also mine other blocks in darkness, that is why more kinds are included in the configuration, but you can fully customize those.
However... in this case you see both coal and iron ore are mined in darkness, but in such small numbers, that one can not reliably tell what would be the case here - the player probably just took a night out (or a cave) to find some stuff and did not place torches. So in this case you could adjust or add to a higher number for min-frequ for iron and coal in the configuration, like 50 or even 100. Still you could keep an eye on that player to see if the next suspicious entry will be diamond for instance.
You can use '/st <number>' to quickly see the stats for a player listed in the /su page which has entries like '1 dagobert R[1/56]=0.0' then '/st 1' shows the stats of dagobert.
In addition i would recommend to remove the entries now and then, just to be able to track their current behavior better (mining vs. construction of mob-traps or subways). Often the "early stats" can give a good hint about (careless) xrayers, if you use ore-break notification and maybe admins sneaking up on players, then checking stats on breaking (many) ores can help and quickly decide to directly check out what he player is doing. If you want less work for admins you can let them do a little xray and just check those with really bad ratios - or you use an obfuscation plugin like Orebfuscator, if your server is powerful enough and if it is compatible with your setup.
If you remove a single player like '/dt remove dagobert' then his stats will be added to the removed players log. Later DarkTrace might allow comparing those entries, but currently it would involve some moe work.
You can remove all entries with /dt erase all, which is recommendable from time to time - suspicious entries get lost, so this should currently be done, if there are no entries that need special interpretation.
In any case one should not be too fast to ban players just because their ratio is too good or because they mined some blocks in darkness. One should consider how many blocks have been mined (if necessary: adapt the configuration for min-freq!), and depending on what material it is, also if they have mined other blocks in darkness too. Good cave miners can now and then reach a ratio below 16 for stone/diamond, if you just started counting - if you have mcmmo you might even have people one of which will mine all the diamond while the other just helps discovering those.
-
View User Profile
-
Send Message
Posted Mar 6, 2012I'm not sure of what I'm looking at.
I use /dt su and this is what I get for one of my players:
L[15]=.0 R[1/15]=1.31
And if I use /dt stats playername I get this
N[1]=17 N[2]=78 N[3]=6 N[12]=4 N[15]=13 N[16]=17 N[17]=16 L[1]=4.53 L[2]=12.42
L[3]=9.33 L[12]=10.75 L[15]=.0 L[16]=1.35 L[17]=11.88 R[1/15]=1.31
So, what do all the letters mean and what tells me that this player is "suspicious"?
Thanks
-
View User Profile
-
Send Message
Posted Mar 3, 2012really nice plugin keep this up :D
-
View User Profile
-
Send Message
Posted Feb 1, 2012@Endimmion Thank s for notice ...
I am running it on the latest dev builds usually, currently: 1847.
-
View User Profile
-
Send Message
Posted Feb 1, 2012Will you release soon a version for 1.1-R3?
-
View User Profile
-
Send Message
Posted Jan 12, 2012sorry my bad, I have totally forgot this option
-
View User Profile
-
Send Message
Posted Jan 12, 2012@Endimmion
Did you set the configuration entry under 'use-permissions' for 'bukkit-perms' to true? Permissions should work...
Then it should work. Otherwise you could your add the player names to one of the lists for the configuration section 'permissions', preferably to 'all' or 'mod' for the easiest way to add people.
/dt reload should do it then.
-
View User Profile
-
Send Message
Posted Jan 12, 2012I will test it.
permissions don't work since I'm using the last version of bPermissions (2.7) I have to set me as op to use it
-
View User Profile
-
Send Message
Posted Jan 11, 2012@Endimmion
I just made a quick addition, to allow for display of block names (0.2.1), it does not work on the console, because the display configuration for the console is fixed and can not yet be changed, neither saved.
In-game you can switch to block names with /d bn or to ids with /d id ...
It is possible to set that individually for sats, suspicious and info (try just /d for reference).
(If /d is used by another plugin , then: /dtd ... or /dt d ...)
-
View User Profile
-
Send Message
Posted Jan 10, 2012Thanks :) If you need help for something... ;)
We have also a freebuild world on our server, so if you need a server to test thing.
-
View User Profile
-
Send Message
Posted Jan 10, 2012@Endimmion
That would be easy to program, though it would make some display really crowded if you use more blocks.
So if i add this, i will have to make it configurable where exactly names are used (everywhere, on stats display, on suspicious display).
I will create a ticket for it and most probably add it to the next version.
Till then you might have /dti <item> to show bukkit-name and id for a given ... id or bukkit-name for the item.
-
View User Profile
-
Send Message
Posted Jan 10, 2012Hello, I've just installed it on our server. Look very promising :-)
Do you planned on giving the stats output something more readable, like block name insted of their ID?
-
View User Profile
-
Send Message
Posted Oct 14, 2011@ctharvey
Ok, i guess i will upload a new version in a couple of hours, which then will be available this weekend, hopefully.
It will contain a bugfix for the light level configuration values not being applied correctly (sorry for that invconvenience...), few command shortcuts and some options to not display everything at once.
Edit: Decided to add a report-view, for faster result iteration/checking.
-
View User Profile
-
Send Message
Posted Oct 13, 2011Hey,
Nah not time critical just been waiting for someone to come up with this type of a plugin so I don't have to run queries against our LogBlock Database by hand. So whenever its ready we'll grab it.
-
View User Profile
-
Send Message
Posted Oct 13, 2011@ctharvey
Allright, i will first add options for displaying the data / selecting which to display rather than disabling using lightlevels.
Actually i thought of smaller servers at first, but certainly the idea where this should be going would clearly fit bigger servers as well.
So i will add "something" tomorrow for adjusting the display (focus on LL/R/IN , some report-like view with pages of a certain size, writing reports for players with a certain prefix or so.).
This will take another day (so far for quick) due to being held up today and my intention to sleep this night. Let me know if it is time critical (The Bukkit team occasionally is very fast but not always - on approving files for download...), i might send an updated version slightly faster than it will be available here - or if you can fall back to the console - on "/dt suspicious" only the "suspicious" values are shown anyway, though the chat output might somewhat better readable.
-
View User Profile
-
Send Message
Posted Oct 13, 2011The main concern is trying to view the output in game which you assumed. If there was a way to not necessarily disable the check but manipulate the settings so that it doesn't put Light levels on the suspicious check that would be ideal.
-
View User Profile
-
Send Message
Posted Oct 12, 2011@TheDarthNix
Oh ok :)
That will probably be a quick update then.
-
View User Profile
-
Send Message
Posted Oct 12, 2011@asofold To expedite answers to you asofold for ctharvey. We have currently 2386 registered users on our forums, and average 10 online at the slowest times an can hit 70 on the peak times. These are rough numbers of course.