Cuberite Forum
AFK (Abandoned) - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+---- Forum: Archived Plugins (https://forum.cuberite.org/forum-18.html)
+---- Thread: AFK (Abandoned) (/thread-808.html)

Pages: 1 2 3


AFK (Abandoned) - NiLSPACE - 02-18-2013

This project is abandoned!
AFK
is a plugins that sets your status to afk.

Commands
  • /afk
  • sets your status to afk
    /afk (player)
  • allows you to see how long someone is afk

Permission
  • Afk.use
  • the player who has this permission is able to change to afk status

Configuration
  • AutoAfk = true
  • if AutoAfk = true a player wil be set to afk status if he hasn't moved for a certain amout of time. only works with players who have the Afk.use permission

    AutoKick = true
  • if AutoKick is true a player will be kicked by a certain amout of time

    TimeUntilAfk = 300
  • the time a player must not move in order to automaticly change status to afk. Time is in seconds

    TimeUntilKick = 600
  • the time a player must not move in order to be kicked from the server. Time is in seconds
Other Features
Detects if
  • Player moves. if he moves while he is afk his status changes back to normal. BUT if he doesn't move for a while his status changes to afk.
  • Player Digs. if he digs while he is afk his status changes back to normal.
  • Player Places blocks. if he place blocks while he is afk his status changes back to normal.
  • Player drops items. if he drops items while he is afk his status changes back to normal.

Bugs
  • A Client-side player stays if someone turned to afk status.
  • if a player is afk while the server reloads, the player's name will be [AFK] Player



RE: AFK - xoft - 02-18-2013

This looks nice.

Now I'm just wondering, who'd start minecraft and walk away from the computer? Smile


RE: AFK - NiLSPACE - 02-18-2013

Perhaps if you played minecraft for about one hour and you are hungry so you have to eat Smile


RE: AFK - bearbin - 02-18-2013

Also, can you add a feature to kick somebody if they are afk too long? Also, a lookup command maybe? Or maybe if you mention their name it sends you a message warning you the player is afk.


RE: AFK - NiLSPACE - 02-18-2013

i now added a kick feature. Default is 10 minutes. you can also enable/disable it.
you can now also use /afk (player) to see how long somebody is afk.


RE: AFK - xoft - 02-18-2013

So the time units are in seconds? Maybe worth mentioning Wink


RE: AFK - NiLSPACE - 02-18-2013

yes they are in seconds. thanks for pointing that out Smile


RE: AFK - bearbin - 02-19-2013

Great new features!


RE: AFK - NiLSPACE - 02-21-2013

Quote:A Client-side player stays if someone turned to afk status.

i think this is a bug in the API but i'm not sure. i use Player:SetName( "[Afk] " .. Player:GetName() ) to make people afk and Player:SetName( Name[Player:GetName()] )( <-- variable) to make people return normal.


RE: AFK - ThuGie - 02-21-2013

(02-21-2013, 03:47 AM)STR_Warrior Wrote:
Quote:A Client-side player stays if someone turned to afk status.

i think this is a bug in the API but i'm not sure. i use Player:SetName( "[Afk] " .. Player:GetName() ) to make people afk and Player:SetName( Name[Player:GetName()] )( <-- variable) to make people return normal.

Im pretty sure its a problem with the server yeah.
As i used it for my auth plugin.
When i did setname from guest to normal name.
The Guest name would remain although if im right the char/sprite itself did disapear.