[INACTIVE][MISC] AFK v0.5 - Toggle [AFK] in your name [452+]

Discussion in 'Inactive/Unsupported Plugins' started by AaronLLF, Feb 21, 2011.

  1. Offline

    AaronLLF

    AFK
    Version: v0.5

    AFK let's you toggle [AFK] in the beginning of your display name (chat & above your head) to notify other users you are AFK.

    Features:
    * Toggle [AFK] with /afk
    * Check [AFK] status with /afkstatus
    * Upon moving, you will lose AFK status.

    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>

    Changelog:
    Version 0.5
    * Compatible with CraftBukkit build 452+
    * Upon moving, you will no longer have AFK status.

    Version 0.4
    * Updated plugin.yml (Silly me! =P)
    * Added /afkstatus

    Version 0.3
    * Made it work... again...
    * Forgot to edit plugin.yml, still says 0.2! Haha!

    Version 0.2
    * Made it work. lol.

    Version 0.1
    * Initial release
     
    Last edited by a moderator: Dec 15, 2016
  2. Offline

    Wulfspider

    I like this idea. Perhaps you should name it AFK Tag or AFK Prefix?

    Does this also modify your AFK status or just the prefix?
     
  3. Offline

    ace3df

    Yes try and make it so AFK shows up if you down move in around 30-60secs something like that.
    Nice plug-in btw !
    6/10
     
  4. Offline

    Wulfspider

    I would say just make it an option... 30-60 seconds seems like a very short amount of time. Either have a server-wide AFK timer default or allow the player to change their AFK idle timer with /afk setidle <seconds> or somthing similar to that.
     
  5. Offline

    ace3df

    Yes. and there should be, so it comes up on chat saying something like "Am AFK" or "BRB" or make it so you can pick. It's endless of what you can do :)
     
  6. Offline

    Jandalf

    afk above ur head would be very nice and an automatic remove when ur bakc and moving.
     
  7. Offline

    Juze

    This seems nice, but does it work with HeroChat?
     
  8. Offline

    Archelaus

    Please list the build number in the plugin title.
     
  9. Offline

    AaronLLF

    Added build number.
     
  10. Offline

    Jandalf

    i think he means the CB build number on which u based the plugin and with wich it is working fine...
     
  11. Offline

    Daniel Heppner

    May we please have the source code? I don't want to have to decompile it.
     
  12. Offline

    AaronLLF

    Added source code by request of Daniel Heppner.

    EDIT/PS: 47 downloads, thank you all who downloaded! =) Also, can I go on a server that uses this? I'd like to see it in action! =D
    --- merged: Feb 25, 2011 3:15 AM ---
    double post

    Added 0.2!
     
  13. Offline

    Jandalf

    first thing: nagging cause of the long constructor...

    second: i cant really use it cause when i type /afk i get
    "you have gone afk"
    "you are no longer afk"
    "you are currently marked as away"

    and i havnt a afk above my had nor in the chat (but this could be cause of iChat, dont know...)

    using CB456 AFK0.2
     
  14. Offline

    AaronLLF

    Finally made it work...
    Thanks to everyone who reported bugs and supported =)
     
  15. Offline

    Jandalf

    download link is broken:(

    EDIT: now it works:)
     
  16. Offline

    CloudNineCo

    Everything worked perfect for me :)
    Request: Could you make it so that if a player was to use /list it would show the AFK prefix? Or even use your own command (/afklist?) to check who's listed as afk or not.
     
  17. Offline

    Jandalf

    getting this error (CB453, AFK0.4):
    Code:
    2011-02-26 19:53:08 [INFO] Preparing start region
    2011-02-26 19:53:09 [SEVERE] Could not load plugins\AFK.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.aaronllf.afk.AFK.<init>()
        at java.lang.Class.getConstructor0(Unknown Source)
        at java.lang.Class.getConstructor(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
        ... 8 more
     
  18. Offline

    AaronLLF

    =
    It does =) (I think... lol)
    Working on it!
    I don't know, it works fine for me.
    EDIT: Wow, 200+ downloads! (since 0.1) Thank you guys!!! =D
     
  19. Offline

    Jandalf

    i removed all other plugins and the error remains:( did u test it with an actual CB-built (453+)?
     
  20. Offline

    seriosbrad

    I've requested this before for another plugin, but nobody seems to have been able to do it yet:

    - Auto god mode (invincibility) when the player becomes AFK
    and
    - Auto disable AFK when the player starts walking

    That way they won't get hurt when they go AFK in the middle of nowhere, but invincibility cannot be abused because it will auto disable.

    please :D
     
  21. Offline

    AaronLLF

    Planned for v0.5:
    • Remove excess code. ✓
    • Auto-disable AFK upon walking. ✓
     
  22. Offline

    RTRD

    @AaronLLF I get this error when i start the server:
    Code:
    2011-02-26 23:45:49 [SEVERE] Could not load plugins\AFK.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.aaronllf.afk.AFK.<init>()
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
    ... 8 more
     
  23. Offline

    Sir Ducksworth

    Code:
    [WARNING] Using the stupidly long constructor com.aaronllf.afk.AFK
    (PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer
    recommended. Go nag the plugin author of AFK to remove it!
    (Nothing is broken, we just like to keep code clean.)
    So I'm nagging you.:p
     
  24. Offline

    AaronLLF

    Don't worry, I'm working on it =P I just haven't gotten a chance to test it because MCnet is down.

    EDIT: 300+ downloads! Holy shizola! I honestly have no idea of how to thank you guys because this is just so awesome!
    =D
    --- merged: Feb 27, 2011 4:16 AM ---
    double post
    Now v0.5! Auto-disable AFK upon walking, fixed these two things:
    Code:
    2011-02-26 23:45:49 [SEVERE] Could not load plugins\AFK.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.aaronllf.afk.AFK.<init>()
    at java.lang.Class.getConstructor0(Unknown Source)
    at java.lang.Class.getConstructor(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
    ... 8 more
    
    and
    Code:
    [WARNING] Using the stupidly long constructor com.aaronllf.afk.AFK
    (PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer
    recommended. Go nag the plugin author of AFK to remove it! (Nothing is broken, we just like to keep code clean.)
    --- merged: Feb 27, 2011 5:06 AM ---
    triple post!? D=
    400+ downloads.
    O...
    M...
    G...

    :D
     
  25. Offline

    Jandalf

  26. Offline

    CloudNineCo

    Currently for me using /list does not display the afk prefix in a players name. So if a player was to use /afk the only way for others to see the player is afk is to walk up to them and see it in their name.

    However you said you're working on a /afklist type function, so I'm happy! :)
     
  27. Offline

    _Savior_

    Is there any way to make the plugin automatically make you afk if you go so long withh not moving the cursor in Minecraft?
     
  28. Offline

    gdscei

    I think that would require a client-side mod
     
  29. Offline

    _Savior_

    O.k. thanks, that would be cool thought
     
  30. Offline

    gdscei

    The only thing that might work server-side is if you do any action like move,build or destroy. But again, that would lag servers.
     

Share This Page