[FORMATTED] AFK Coordinate revealer

Discussion in 'Plugin Requests' started by 1cec0ld, Jul 31, 2012.

  1. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Plugin category: [Mech]

    Suggested name: AFKCoords

    What I want: Its almost exactly like Essentials AFK system, where you can type /afk and it will prefix your name with &7[AFK] and make you un-afk by moving or typing a new command, or typing. Also possible to do this by standing idle for #{config} seconds. In fact, if you can hook into essentials afk system exactly, I'd be perfectly happy.

    The DIFFERENCE: When it does make you go AFK, it will broadcast to the server: {player} has gone AFK at: {Coord_x, Coord_y, Coord_z} making them the perfect target, and totally screwing up their ability to go afk on my server.
    Of course, the usual server message will appear if they go un-afk, just like essentials does, and tell all the hunters that the person is no longer there.

    I just don't want people going Idle, and I don't think a kick is a good enough motivator anymore.

    Ideas for commands: /afk

    Ideas for permissions:
    afk.timed (so it will trigger after X seconds)
    afk.command (so they can use the command, I don't want default because trolls will lure hunters if they get the hint too fast)
    afk.timed.exempt (so people cant find admins)

    When I'd like it by: A week? I heard its pretty simple to do, if I knew bukkit programming and more java I'd do it myself.
    Bukkit 1.2.5 R4.0
    PEX Compatible

    Thank you for your time, and any response.
  2. Offline

    mbonachea

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Working on it :)
  3. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    Thank you for the fast reply, sorry I couldn't get back sooner. If you have any questions, I'll keep watching the thread, or PM me with them.
    Thanks for your effort as well.
  4. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    5 days later.... Hows it going?
  5. Offline

    mbonachea

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Almost done, I'm kinda stuck on the part with the time thing. I have an idea of how to do it though, I'll test it tonight :)
  6. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ah ok, just making sure it wasn't forgotten, I've browsed too many threads that were taken and ignored, didn't want to take that chance with mine as well.
    Thank you for continuing!
    mbonachea likes this.
  7. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    Um... Get the paddles!! It's not breathing!

    Clear!
    Ka-Chunk.

    Does it have a pulse?

    :rolleyes:

    This post has been edited 1 time. It was last edited by 1cec0ld Aug 14, 2012.
  8. Offline

    The_Coder

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I can do it for you it is easy
  9. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well I don't want to say I wasted @mbonachea 's time... But it has been a while since the last sign... Maybe give it a day for the new quote alert, and if still nothing, I'll contact you? Thanks for the interest by the way.
  10. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Well, that's that... If you'd be willing to write this one, please do?
  11. Offline

    The_Coder

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I would love to write this give me 3-4 days. I have most Of the code figured out in my head. If this is ok instead of having so people type afk it will make them afk if they are standing still to long. The reason why I would do this instead is because people wouldn't type afk if they knew it would broadcast their cords.
  12. Offline

    ConanEdogawa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    easy, download some auto clicker or typer, auto click w(forward step) then s(backward step)...afk hack, LOL
  13. Offline

    dillyg10

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not deving this, but @nbonachea if your having trouble with timers, it's pretty simple.

    For every player, put them in a HashMap, with an integer of how many seconds it was since the last time they moved, if they move it again, reset the timer. Simple :p.
  14. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    If my server gets so popular that people WANT to do that to STAY online, I'll be happy.
    There's a way around any block anyone can put around anything, I'm just trying to catch and annoy the few that I can.
  15. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    Good point, that's fine. And thank you again for this.
  16. Offline

    mbonachea

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Sorry for not doing this, I've been quite busy.

    @The_Coder : If you want i can give you the code that I've started. An you can just finish it.

    @dillyg10 : Thanks, I was thinking this but didn't exactly know if it would work. Thanks :)
  17. Offline

    The_Coder

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @mbonachea
    Thanks I have some of the code but it hasn't been tested yet... I would like to see how you are coding it to see if I am on the right track

    The Coder
  18. Offline

    The_Coder

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    This post has been edited 1 time. It was last edited by The_Coder Aug 18, 2012.
  19. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    First test:
    I'll keep an eye out if you fix it!
    Code:
    2012-08-17 22:19:58 [INFO] This server is running CraftBukkit version git-Bukkit-1.3.1-R1.0-b2320jnks (MC: 1.3.1) (Implementing API version 1.3.1-R1.0)
    2012-08-17 22:19:59 [SEVERE] Could not load 'plugins/AFKCoords.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: me.The_Coder.CordsBroadcast.CordsBroadcast
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
        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:222)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198)
        at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50)
        at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
        at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:380)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.ClassNotFoundException: me.The_Coder.CordsBroadcast.CordsBroadcast
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        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:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
        ... 9 more
    
  20. Offline

    The_Coder

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)

    This post has been edited 1 time. It was last edited by The_Coder Aug 18, 2012.
  21. Offline

    1cec0ld

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Works like a charm, thank you so much!
  22. Offline

    The_Coder

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  23. Offline

    Barinade

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Or you can hold W, hit Alt, let go of W, then click in-game.
    Invisible context menu trick works well for that :O

Share This Page