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
-
View User Profile
-
Send Message
Posted Jun 19, 2012permissions?
-
View User Profile
-
Send Message
Posted Jun 19, 2012lol, now i'm getting this error:
-
View User Profile
-
Send Message
Posted Jun 19, 2012@Amsek
New version should be fine.
-
View User Profile
-
Send Message
Posted Jun 18, 2012hello! i like your plugin, but i have some errors in console sometimes:
-
View User Profile
-
Send Message
Posted Jun 18, 2012Awesome, 1005 downloads, thanks :)
-
View User Profile
-
Send Message
Posted May 30, 2012@limdingwen
No, I think, you just downloaded wrong file. You have jre6 on your machine, so download this file - AFK v2.0.2b.
-
View User Profile
-
Send Message
Posted May 29, 2012Sorry but, I think this has to do with the 'b' in your plugin.yml....
11:17:07 [SEVERE] Could not load 'plugins/AFK.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException java.lang.UnsupportedClassVersionError com/github/alesvojta/AFK/AFK : Unsupported major.minor version 51.0
   at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:151)
   at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
   at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
   at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213)
   at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:550)
   at org.bukkit.Bukkit.reload(Bukkit.java:182)
   at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
   at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
   at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
   at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:475)
   at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:612)
   at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:581)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
   at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.UnsupportedClassVersionError com/github/alesvojta/AFK/AFK : Unsupported major.minor version 51.0
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
   at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
   at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:264)
   at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140)
   ... 13 more
-
View User Profile
-
Send Message
Posted May 21, 2012add the option for godmode while afk please? thanks =]
-
View User Profile
-
Send Message
Posted May 18, 2012@WhiteNightFury
Thank you very much. (fixed in 2.0.2)
@LuckythePig
I'll try it, but I don't know how long it takes.
-
View User Profile
-
Send Message
Posted May 17, 2012The Plugin sounds great. Can you please add support for Java 6? I cant upgrade yet.
-
View User Profile
-
Send Message
Posted May 17, 2012bug: offline players get auto AFK
-
View User Profile
-
Send Message
Posted May 13, 2012@WhiteNightFury
That's not so easy but anyway thanks, it helps. I know that and I'm trying to solve this.
-
View User Profile
-
Send Message
Posted May 12, 2012Idle timer - planing (I am sorry but I don't know how so far)
if you can figure out when someone is moving, you could set a timer that starts x amount of time after he stopped moving, the timer would be reset if he started moving again. but if the timer reached its configured amount it auto afk's the person.
could this help you script that part? :)
-
View User Profile
-
Send Message
Posted May 11, 2012Thanks for having implemented the color in the playlist
-
View User Profile
-
Send Message
Posted May 10, 2012Please do the Idle Timer :D
-
View User Profile
-
Send Message
Posted May 9, 2012@daom100
You can't, I'll make config options. (v1.3.1)
-
View User Profile
-
Send Message
Posted May 7, 2012Hello, how can I change the color in the playerlist from gray to another color?
-
View User Profile
-
Send Message
Posted May 2, 2012@tmad40blue
Sure I can. You will find the feature in the next update. (1.3)
-
View User Profile
-
Send Message
Posted Apr 29, 2012Could you make it a config option, the part where if you move you become no longer AFK? I don't want that function but the others are fine.
-
View User Profile
-
Send Message
Posted Apr 26, 2012@Jaycerulz
Ou, i don't know, we will see :)