AFKSigns
AFK Signs
Beta 1.2.3
Description
AFKSigns is a automated feature that after a certain amount of time you are not playing, it lets everyone know you've gone AFK. As soon as your character goes AFK, a sign is placed at your location with information such as your AFK time and your AFK reason. You can preset your AFK reason and people can see the reason by looking at the signs created below you when you are AFK. They can also know how long you have been AFK and your reason by using the command /afk where <player> .
Commands
Command | Description |
---|---|
/AFK | Toggle AFK status. |
/AFK help | Shows the help menu for the plugin. |
/AFK where <player> | Shows if the player is AFK, if so, how long and if specified, the reason so. |
/AFK message get | Shows your AFK message. |
/AFK message delete | Deletes your AFK message. |
/AFK message set <message> | Sets your AFK reason. |
/AFK message others <player> get | Shows another player's AFK message. |
/AFK message others <player> delete | Deletes another player's AFK message. |
/AFK message others <player> set <message> | Sets another player's AFK message. |
/AFK god <true/false> | Sets god-mode when you are AFK. |
/AFK god current | Shows if you will be in god-mode when you are AFK. |
/AFK god <player> <true/false> | Sets god-mode for the player when AFK. |
/AFK god <player> current | Shows if the player will be in god-mode when AFK. |
Permissions
Permission | Description |
---|---|
afksigns.message.others | Allows the player to edit other players message. |
afksigns.message.personal | Allows the player to edit his/her own message. |
afksigns.god.others | Sets god-mode for other players when AFK. |
afksigns.god.personal | Sets god-mode for yourself when AFK. |
afksigns.update-notification | Allows player to receive updates notification. |
Change log
Version | Changes |
---|---|
1.2.3 | New way of replacing blocks. |
1.2.1 | Fixed signs being breakable. |
Fixed misplaced help info. | |
Added god mode. | |
1.2 | Recoded entire plugin. |
Added self reseting idle timer. | |
Tidied up codes for easier future reference. |
To-do
Add god-mode for players.Add self-resetting timer for every single action taken.Recode entire plugin.- Add API.
- Add auto-updater.
I like this a lot but whenever someone destroys the afk-sign, the console is spammed with:
[WARNING] [AFK Signs] Task #120 for AFK Signs v1.1.5 generated an exception
java.lang.ClassCastException: org.bukkit.craftbukkit.v1_4_R1.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
at com.gmail.chloepika.plugins.afksigns.UpdateSign.run(UpdateSign.java:97)
at org.bukkit.craftbukkit.v1_4_R1.scheduler.CraftTask.run(CraftTask.java:53)
at org.bukkit.craftbukkit.v1_4_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:344)
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:530)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
until the afk player does /afk again ;)
@ObsceneNameHere
The new file is up. Sorry for the bug. ><
awsome cant wait, I have noticed it was throwing up i think entity errors so i removed it
New update coming soon, found a major error in the code of saving the messages. Pretty sorry, this update WILL have to break the same files. Sorry ! >< If you want to know why, have a peek at the save file, it is pretty corrupted, hence it is basically useless. If you can remember who have what messages, do a backup, and put them back on the new file.
Also, please delete the save files, (and the old config if you haven't already), so the plugin can be started up properly.
@ThisUsernameIsMine
Glad you liked, and thanks for directing Redstorm. Also, thanks PHLegacy for the idea.
Awsome Thanks!
@ObsceneNameHere
I suspect that it lies in the chest hit box. My plugin makes a sign on the block where the player legs are. I guess due to that, the block would be the chest as the chest hit box is not a complete full block and the player is standing in the chest block. I guess I will fix it by making the sign above the chest. Thanks for informing me of that bug.
Yes it completely removes the chest with no trace of it (even when unafking) Hawkeye logs the placement and what not but doesnt even log it disappearing
@ObsceneNameHere
Did it really remove the chest ? I will fix that soon if so.
If you go AFK ontop of a chest (who knows what else) it removes the chest. Not instantly but apx. 2-5mins later. I was able to reproduce this after a report had been filed on it.
@ObsceneNameHere
It already have a idle timer so you don't have to /afk if you don't want to.
Would it be possible to integrate into Essentials Auto AFK? to place a sign after just sitting there without typing /afk :D
@KevnPoohBear
Adfly is not allowed.
@ObsceneNameHere
Awaiting approval. Mean time : [removed]
DownLoad link?