Time untill blocks can be broken (afk detection to strict)
blablubbabcDEV opened this issue ยท 5 comments
Migrated from: https://dev.bukkit.org/projects/anti-x-ray/issues/14
Originally posted by MithrandirMage (Jun 23, 2015):
What steps will reproduce the problem?
- Use this AntiXray configuration (appropiate worlds): http://hastebin.com/uteqakatow.vbs
- Start Mining pure diamonds using Xrays whith a normal Xray restricted player name.
- Reach the mining speed limit. You get a message saying you must wait 3 minutes.
- Wait 5 minutes.
- Try to mine the last diamond block you couldn't mine.What is the expected output? What do you see instead?After 3 minutes I should be capable of mining the block, according to the message, but I obviously can't because I don't have enough points yet. The timing calculation seems to be wrong, and I get the same 3 minutes message every time I try breaking the block.What version of the product are you using?Anti X-Ray: 1.8.4Do you have an error log of what happened?No errors con console/logs
Originally commented by blablubbabc (Jun 24, 2015):
Check out v1.8.5:
I changed the afk handling behavior to only consider players being AFK if they are away for at least 5 minutes.
I also added a debug setting to the config, and detailed debug information whenever points are delivered. This should help you to verify that everything works fine.
Originally commented by MithrandirMage (Jun 24, 2015):
<<reply 2591877>>
I see, Sorry for not documenting myself in order to find out about the point regain block when AFK.
I wouldn't have imagined that was how the plugin actually worked.
Still, the remaining time left counter is wrong and missleading, I should really specify that players should go and do something else in order to get that remaining time down...
I'ts just really strange that the actual time left is just a relation between time left and time untill points are recieved, and adding the fact that it is necesary to be doing something for that time to actually be applied it makes it even more strange.
But If I can just explain that effectively to players, there shouldn't be any more complaints. (Well, complaints will appear anyway.)
Originally commented by blablubbabc (Jun 24, 2015):
(at)MasterMithrandir:
Quote:Still, the remaining time left counter is wrong and missleading
The displayed remaining time should be correct, under the assumption that the player does actually receive the points (and is not afk idling).
However, I agree that the afk condition of idling 1 minute was quite strict, and players can easily reach that during normal playing. It should work better now, after rising that back to 5 minutes.
Quote:and adding the fact that it is necesary to be doing something for that time to actually be applied it makes it even more strange
This is to prevent that players stand around afk idling only for getting the required points. Otherwise cheaters might just stand around on the server until their mining limit is filled up to the max limit again, doing something completely else in the background, and only coming back to 'steal' a bunch of ores from the ground and then going back into idleing again. They are no benefit to the server by doing so.
They shall be encouraged to actually do something else on the server in that waiting time.
Quote:I should really specify that players should go and do something else in order to get that remaining time down...
You could modify the message that is printed to the players, to make that more clear.
Originally commented by blablubbabc (Jun 23, 2015):
If you think that there is something wrong with the delivery of mining points, then please monitor the points you get every minute by periodically checking with the '/ax check' command.
Quote:Wait 5 minutes.
Note that you don't get mining points if you don't move or drive a minecart (if it thinks that you are either afk, or trying to circumvent afk detection by driving minecarts etc.).
So if it considers you to be afk in 2 of those 5 minutes of waiting, then the result you get should be correct.
I think the afk detection was a bit less strict in the past, when the points where given to players every 5 minutes instead of every minute, because afk detection is done in the same interval currently. I could look into making it less strict again, to only stop giving the player points if he is afk for like 3-5 minutes in a row.
Edit: In the next update players will only not get points anymore if they are already afk for at least 5 minutes. This hopefully results in more predictable behavior of the points delivery.