[FORMATTED] AFK Coordinate revealer

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

  1. Offline

    1cec0ld

    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

    Working on it :)
     
  3. Offline

    1cec0ld


    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

    5 days later.... Hows it going?
     
  5. Offline

    mbonachea

    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

    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


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

    Clear!
    Ka-Chunk.

    Does it have a pulse?

    :rolleyes:
     
  8. Offline

    The_Coder

    I can do it for you it is easy
     
  9. Offline

    1cec0ld

    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

    Well, that's that... If you'd be willing to write this one, please do?
     
  11. Offline

    The_Coder

    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

    easy, download some auto clicker or typer, auto click w(forward step) then s(backward step)...afk hack, LOL
     
  13. Offline

    dillyg10

    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

    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.


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

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  15. Offline

    mbonachea

    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 :)
     
  16. Offline

    The_Coder

    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
     
  17. Offline

    The_Coder

  18. Offline

    1cec0ld

    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
    
     
  19. Offline

    The_Coder

  20. Offline

    1cec0ld

    Works like a charm, thank you so much!
     
  21. Offline

    The_Coder

    Welcome
     
  22. Offline

    Barinade

    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