Advanced AFK
This is Advanced AFK
an highly customizable AFK Detector with integration of AFKTerminator and a small API which provides
other plugins a method to get if a player is marked as AFK.
Now lets talk about how it works:
Every action a player does is logged until a maximum of MAX_LOGGED_ACTIONS (see config)
If a player does the same actions to often without doing something else, then he will get warned and later kicked.
You may ask, what if I start building a big building without doing something else then placing blocks ?
Normaly you would walk if you build something, don't you ?
Thats it, you can configure how many blocks a player can build/break without walking a block.
Players that build normaly, meaning not just standing around and placing/breaking one block over and over again, will not get AFK-flagged.
I knew it would be hard to find the right configuration and algorythm to calculate if a player is afk and
I don't think my settings are perfect, but it has been tested on my sever for some time and didn't cause to many false positives.
At the moment I changed my complicated logging to an easy to understand system, which provides normal security.
It will not prevent players from using modifications that e.g. place one block move one block left, move back, break the block and
do this over and over again.
But its probably atm the best AFK-Plugin out there, because it uses its own AND AFKTerminators detectors to find players afking.
If you find better config-settings please let me know in a ticket, I may change the defaults.
Do I need something to make it work ?:
A bukkit server should work, but if you wan't to take full advantage of my plugin download AFKTerminator and install it, too.
With AFKTerminator installed my plugin will also warn/kick players that use AFKMachines.
Read his Bukkit page for more informations.
For plugin developer:
How to use:
It now uses Vault for permissions, please install it.
(It works without Vault thought)
The maker of Vote tries to add my plugin as feature, so check it out sometime !
Vote
1. Please install the plugin (drop the jar into plugins folder)
2. Start the server
3. Let the server run and go ingame
4. Try if the settings work for you
If NOT
5. Go into YourServer/plugins/Advanced AFK/config.yml <= open it with editor/notepad
6. Change settings how you wish (see How to Configurate)
7. type /AFK reload to reload settings
How to Configurate:
Todo:
1. If a player sets himself afk by using command /afk
he will be invulnerable/godmode (If he has permissions advancedafk.afk.god)
PS: He will be kicked if he stays afk for to long (different setting in config then MAX_AFK_TIME_KICK)
Feel free to suggest new features or mods I should make it compatible with.
Permissions:
I hope I did not forget to tell you something, if I did, please let me know.
Please comment and write tickets if you find something not working or something I should add/change.
Donation
If you wanna thank me, help me buy tea or toast
You can donate which will force me to update my plugins guilty conscience and such :D
Spenden(Euro), Donate(USD), Donate(Pound)
Or be a patron: http://www.patreon.com/TZed
My source is completely commented for beginners in plugin development and its an eclipse project ready for import in your workspace.
@ThePvp_er
Did you even read the Description ? Under "Permissions:" there is a link. You might wanna click that.
see i would get this plugin but i dont know the permissions? if i did i would get this
I do not plan to update this one. @matt123777 try jaaakees alternative or something else. I may update if bukkit development really starts again.
Is this working for anyone else? It stopped working for me today. /afk does nothing Any chance of an update?
@godgodgodgo
http://dev.bukkit.org/bukkit-plugins/afkplus/
@shadvalentine
I would also like this, admins can set a spawn point that people are sent to.
godmode isnt implemented yet and will not be in comin future because i havent got much time. I'm studying games programming and have to use my time on other things then minecraft atm :(
I will come back to it afterwards. You may just download the source and try to fix it by yourself until i have time for it.
I install your plugin for the first time today, The players are not in godmode. I would like the messages on the screen to let player know they are in afk mode or not in different color. I'm running a 1.6.4 dev bukkit server using Premissionsbukkit.
@shadvalentine
Hm, I have to check that.
I can't just create a room somewhere,
the Admin would have to do that.
Is there any chance you can add an option to teleport you to a "safe room" when you go afk and then teleport you back when you are no longer afk?
@DjBuRnOuTQc
No problem, Advanced AFK just tries to ask AFKTerminator if someone is AFK,
if it can not find AFKTerminator it ignores it.
Its the same with Vault, if you don't like it, use Bukkit Permissions or other Permission Plugins without Vault.
Does Advanced AFK work as a standalone or it require AFKTerminator
@TheBlackBeltPanda
New Update coming ! Thanks to phrstbrn "improving performance about 10000%" ! (You can feel it ingame)
Was something I always wanted to do, but didn't get the time for it :P
What plugin do you use for testing this timings ? (is it a plugin?)
Super laggy, I'll have to look for an alternative. Not sure if this will help you in coding your plugin, but here's the timing over about 4 hours:
I will try to update it, please be patient. I'm sorry if you have to wait. I might have to recode alot of stuff to make it saver.
clever plugin :D .. been have trouble with people using afk machines -.- so this is great
@TanveerGT5
If there is a problem/compatiblity error with new Minecraft Versions please tell me. If not, you can always try the newest version of the plugin with every version of Minecraft.
If you read the text above you can find "Repository" which is the source code. And you can find:
"My source is completely commented for beginners in plugin development and its an eclipse project ready for import in your workspace."
Just use GitHub software to fork my source and go on :P Have fun. I'll maybe take a look soon on the mods, haven't found the time yet.
any update? and source code for learning purposes?!?
@Beeperdp
Are there problems with new Minecraft versions ?
Nice, could you update?