AFK
Change Log
Check all changes which have been done so far.
Known Bugs
Animals/Players can cancel your AFK status by pushing you.
Using
Write /afk and server will broadcast "player_name is now AFK" message. If you move, type this command again, or type something into chat, server broadcasts opposite message "player_name is no longer AFK". If player is AFK, his name is gray in a player list.
Have outher plugin with /afk command?
then use /afk:afk
If you want to use Afk Time you must add {TIME} key.
ForEx: noAfk: '{DISPLAYNAME} is back after {TIME}!'
Config
# Events: def. true # Colors: def. gray [black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue, green, aqua, red, light_purple, yellow, white] # IdleTimer: def. true, 60 sec # Messages: def. true (keys: {DISPLAYNAME}, {TIME}) Events: move: true chat: true Colors: message: gray player: gray IdleTimer: enabled: true period: 60 Messages: enabled: true nicknames: false +afk: "{DISPLAYNAME} is now AFK" -afk: "{DISPLAYNAME} is no longer AFK"
TO DO
Java 7 | V4.5 | 100 % | done |
Minecraft 1.10 | V4.5.1 | 100 % | done |
Minecraft 1.9 | V4.5 | 100 % | done |
Reason option | V4.5.1 | 100 % | done |
Permissions | 0 % | allmost | |
AFK commands support | 2 % | allmost | |
Reload command | 0 % | none | |
Idle Timer v2 | v4.0.0 | 100 % | done |
AFK Time | v2.1.0 | 100 % | done |
Java 6 | v2.0.2b | 100 % | done |
Idle Timer | v2.0.0 | 100 % | done |
Config | v1.3.0 | 100 % | done |
source code V4.3 & higher | source code V4.2.1 & lower.
Quote:Now that you got an /afk command, would you like an antiswearing plugin? try BSwear
But its nice to see on an Playerlist. And an option to disable "go off afk" when chatting would be nice. Like SimpleAfk :D
@HeavenMc
You go off afk when you chat anyway.
Request: Add an [Afk]prefix to the displayname, when afk. :D Great Plugin
@ryvix
Gonna second this request - I'm currently maintaining a few plugins that all need to know whether a player is AFK or not at any given moment, and it generates unnecessary load on the server when they're all running their own checks. Having a centralized API to take care of it would be greatly preferable.
Hi there,
This is really a great plugin, thank you! I have only one request. Are you able to make some sort of API or make the afkTimeMap public static or something of the sort so I can read it from another plugin? This way I can determine if certain things should happen or not based on whether the player is afk or not, all because of your wonderful plugin =)
Thank you!
@apoisonedgift @apoisonedgift
Cool :] Thank you!
Also... just letting you know, in the config you list "dark grey" as a possible colour, but that returns an error. It has to be "dark gray" :)
Got a solution... Though it could present issues depending on your other plugins.
CommandBook has a setting int he config.yml that is as following:
low-priority-command-registration: false
Change that to true... To explain what it does (quoted from the config file)...
"When this setting is enabled, CommandBook's commands will be registered AFTER every other plugin's commands. If any other plugin registers a command that conflicts with one of CommandBook's commands, the CommandBook command will be accessible with /commandbook:<command>, and the other plugin's command will be accessible with /<command>"
Not sure its the best fix... but it'll do fine for my server.
same problem as apoisonedgift.
With commandbook it takes the default afk without allowing for this plugin? anyway to force it?
Would love to use this one... but unfortunately I'm using commandbook and everytime a user goes to use /afk it just says permission denied because of disallowing the commandbook afk :( Any way to force the command to take this one?
@tkeckler09
Not everybody uses essentials...
Proč tady na tebe mluvim anglicky, když umíš česky ? :)
Sorry for post in other language :)
@Sadragos
I dunno, maybe. We will see.
Could you add a sort of time-variable so that i could use something like "Payer is back from afk after xxx Minutes"? That would be really cool!
@boboman13
No god mod in my plugin, sorry. If you wanna be safe while afk you have to go to the safe place.
i like colors of Essentials :
'&b|| Mine&8Lance || {DISPLAYNAME} se vrátil.'
&a
&b
&1 - 9 .....
Please create it :)
Maybe you could add an option for god status on AFK players? So while we are away, a creeper doesn't take my pork chops? It would be just negating a damage event while AFK.
Help me pls, if i reload the server ; the console say this; What to do? I use "craftbukkit-1.3.2-R0.1"
2012-08-30 01:31:38 [SEVERE] Could not pass event PlayerQuitEvent to AFK org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.ServerConfigurationManagerAbstract.disconnect(ServerConfigurationManagerAbstract.java:206) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:712) at net.minecraft.server.NetworkManager.b(NetworkManager.java:281) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at org.getspout.spout.SpoutNetServerHandler.d(SpoutNetServerHandler.java:173) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:578) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at com.github.alesvojta.AFK.AFKEvents.onPlayerQuit(AFKEvents.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 15 more
i have next idea:
/afk (reason)
/afk i go on toilet
What you think ? :)
I'm sorry but no compatibility with other plugins in near future, because I'm just very busy in my work and I don't know how.