Away Message
Description:
This is a plugin inspired by AFKSigns. It does not have afk god mode though and I may not add it. Added my Full Server AFK Relief plugin features to it as well.
How to Install:
Just put the .jar file in your server's plugin folder and it should work!
Commands:
/away [message] -Sets your away status with optional message. Message saved for later use if specified
/whereis <player name> -Displays the player's away status
Permissions:
away.autoexempt -Makes the player or group with this node exempt from auto AFK mode
Configuration:
config.yml defaults:
- broadcast: true -Sets the broadcaster
- autoafk: true -Automatically sets players to AFK mode
- usesigns: true -Allows signs to be placed at the player's feet when away
- fullserverafkrelief: true -Allows the server to auto kick away players when the server is full
- defaultmessage: Player is marked as away
- afkrange: 3 -Range of movement the player must travel to remove AFK mode
- awaylimit: 120 -Time allowed to be away before going into AFK mode automatically
Details:
Should be pretty light while running. Uses unix time instead of minecraft server ticks when checking for afk timeouts. Hardcoded to repeat the AFK timeout check every 200 ticks (10 seconds on a lagless server) unless the autoafk node is set to false in the config.
-
View User Profile
-
Send Message
Posted Feb 11, 2013Hey, Great plugin, except when players go afk, the afk sign sometimes is placed to the side, which deletes the block that is there. When they come back to the game, the sign disappears the block is gone. It would be great if you could fix this in the next update
-
View User Profile
-
Send Message
Posted Jan 11, 2013@Idlehumor
It's pretty easy. You must have a Runnable updater first, and then make it update faster than a second (if you want the scroll to be faster than the time update). Then add a default integer that is 0 when first called, and adds one every time it is called. Add a method to check if it exceeds the message character limit, and if so, sets it to 0. When updating the message, make a substring at the integer increasing and the integer + 15. If the integer + 15 is more than the message characters, use message characters and add spaces behind it. If you are confused, here is my code.
-
View User Profile
-
Send Message
Posted Jan 11, 2013No, the message scroll thing is friggen awesome though! I think I'll leave it out of this one unless it's requested. I don't think this plugin will be used often, but ya never know.
-
View User Profile
-
Send Message
Posted Jan 11, 2013Lol, inspired by my mod ? I got inspired by PHLegacy. So, thank him ? Hahaha. Also, did you add a message scroll, in case the message exceeds 15 characters limit ?