AFK Safe Zone
AFK Safe Zone - Now for 1.7.X!
This plugin is simple enough. A Moderator sets up an AFK spawn point, and when people type in /afk they are teleported to that point. You can choose whether or not the players will be able move once they go AFK and many other things in the config file. The only permission this uses is for the /setafkspawn and you must have the permission node "afk.setafkspawn". The commands are below. The plugin is pretty self explanatory.
Tutorial Videos
Features
- After a set amount of time, or after the player types /afk, the player will be teleported to a designated location, or if no spot is set, the world's spawn
- Fully compatible with Essentials' afk feature
- Ability to restrict movement while afk (they must type /afk again to return from being afk)
- Ability to disable a player from taking damage while afk
- Ability to restrict a player from dealing damage while afk
- Ability to disable a player from building while afk
- Configurable cool-down period to restrict the use of going afk with a command
Usage
- /setafkspawn This is used to set the location of where to go when typing /afk. Requires permissions "afk.setafkspawn"
- /afk Toggles AFK on or off for the player who uses it. Requires permission "afk.allow"
- /afk list This is used to show who all is AFK at the moment
Config
AFK: #allow players to take damage while afk allow-take-damage: false #allow players to deal damage while afk allow-deal-damage: false #allow players to place or remove blocks while afk allow-build: false #amount of time in seconds between being able to use /afk to go afk cooldown-time: 60 #DO NOT USE THESE SETTINGS IF YOU USE ESSENTIALS, USE THE ESSENTIALS config.yml INSTEAD only-use-these-settings-if-you-dont-have-Essentials: auto-afk: 180 allow-movement: false #Don't alter anything below this line #It is here to save the previous location of AFK people Player-returns:
Next update will be out shortly. Currently just working out some bugs. Look for v1.2 within a week.
@Tstop
Take ur time bro(fist)! ;-)
@Tstop
I like the sound of preventing damage taking and dealing O.O I was gonna suggest something like that O.O Though your ideas a bit better than what i had in mind. Take as much time as you need man ;)
Ok so I said I would release it this weekend but I'm hitting a few snags trying to make the auto-afk compatible with people who use Essentials. An update will be released just not for a few more days. I plan on adding a few more options similar to restricting the movement of a player such as preventing them from taking damage or dealing damage. All configurable of course.
@Tstop
Excellent! Looking forward to the future releases :)
@Atspulgs
I was actually working on permissions last night. I will release this sometime this weekend. And /afk is already a toggle, just not in the released version yet. And also, it doesn't hook into Essentials I'm just trying to make to compatible with Essentials' auto-afk feature. But you don't have to have Essentials.
First, Nice plugin and good job with it. Id like to ask if permissions are coming out with this since i dont like having OP's on the server. Also, id like to ask you to place some flexibility for those who dont use essentials. I think the handiest way would have been /afk simply as a toggle, just as ThisUserNameIsMine suggested. So either a check for essentials plugin being installed or having a config bit for it would suffice in case you want to somehow let it work with the essentials plugin.
As for PVP, id prefer a cooldown just as commodore suggested. As for the economy, sounds interesting. Makes me think of making the afk spot to be a motel or something haha :D I personally suggest hooking it in Vault as it would cover most of the major economies out there. Even for those who use Item based economies like Gringotts.
@CommodoreAlpha
Hmm I've never thought to add a warm-up/cool-down period. I can diffidently do that. As for the cost I assume you want it to hook in well with an economy plugin then? Cuz that is also doable but not as easy. I will look into it and eventually implement that for sure.
Could you add a warmup, cooldown, and perhaps a configurable cost for going AFK? (The cost might sound crazy, but it's not crazy when it costs a miniscule amount.)
The warmup and cooldown would prevent people from AFKing in the midst of combat in PvP servers. Also, if the player gets damaged, the warmup for AFKing would automatically reset.
This is a nice plugin, since it's got a feature that I've never thought to implement in my server. Works nice when people keeping surrounding you in bedrock while AFK.
@ThisUsernameIsMine
Yes. Actually in my latest build i have enabled this but I have not posted it yet because I was looking into an Essentials bridge for the automatic AFK. But if you guys feel that it is worth it to post it now with that I can. I Just didn't want to release a bunch of versions with only minor tweaks to it. I feel that would be annoying to the people who already have it downloaded.
Nice plugin :)
Is it possible to let players simply type /afk to toggle their status, instead of /afk on or /afk off?
Most afk mods work this way and it saves us typing 3 to 4 additional chars ;-)
Thanks!
@soshowcanihelp
I am looking into it. Probably doable but no promises just yet.
Like it. Would you be able to link this into essentials AFK so when the auto AFK kicks in it teleports you to the /setafkspawn position?