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.
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.
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
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!
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.
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.
easy, download some auto clicker or typer, auto click w(forward step) then s(backward step)...afk hack, LOL
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 .
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.
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
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
1cec0ld Finished the plugin! If you don't like it or you want something changed let me know and I will do it Download here : http://dev.bukkit.org/server-mods/afkcoords/files/1-afkcoords/
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
Or you can hold W, hit Alt, let go of W, then click in-game. Invisible context menu trick works well for that :O