HomeJavaMods[1.11.x] Captcha AFK [NOW WITH CUSTOM PERMISSIONSEX / KICK COMMAND]
[1.11.x] Captcha AFK [NOW WITH CUSTOM PERMISSIONSEX / KICK COMMAND]
ModsJava

[1.11.x] Captcha AFK [NOW WITH CUSTOM PERMISSIONSEX / KICK COMMAND]

⬇ Download on Spigot
[​IMG]


Hello! Are you tired of players AFKing and when they are about to be kicked, they just jump? Well, if that is the case, then this is the plugin for you! It comes complete with customizing the kick message to the kick time. You can use chat-side warning, minecraft join title warning, sound warning, or all three! The choice is yours!

Summary:

Features

AFK comes complete with its own GUI! This feature uses Minecraft titles, which can be enabled/disabled at any time!

[​IMG]


Once the player has been AFK for the set time (Default is 15 minutes), the player will have 15 seconds to type in the capatcha for that player. The capatcha is randomly generated from all 52 characters plus various other special characters on your keyboard.

You may also have the feature of seeing the warning in the player chat!

[​IMG]

What about the commands? Well, there are NONE! (Except /cap reload) All you do is when the warning starts, you type in chat and if the word the player provided matched the capatcha generated for them, it will restart the afk timer! As an added bonus, until they get their capatcha right, nobody will see what they are typing (thus no random words in chat!).

Config (default)
The config is simple! Generated in folder, called "config.yml"
Code (Text):

# Default Config File for AFK Capatcha
#WARNING! If all warning are disabled, they still will be kicked!
#Reminder! If you are using Essentials, make sure to set afk kick to -1 or else this plugin will not work!
# Time is in Mins (Whole integers only, please!)
TIME: 15
Warning_Time: 15
Title_Warning_Message: '&cYou will be kicked in &b%time%&c. &cType in chat &6%cap%' //Title Warning message to player
Announcement: '&c%player% &r&bHas been kicked for ideling for too long!' //Message to all players
Kick_Reason: '&4Kicked for AFKing more than 15 mins!' //Kick message sent to player
Warning_End_Message: '&9Thanks for verifying that you were playing fairly.' //Title message player gets for getting the capatcha correct
Chat: true //Enable Chat messages?
Title: true //Enable Title messages?
Sound: true //Enable sound affects?
Message_All: true //Send message when play is kicked (To everyone?)?
Use_PermissionsEx: true //Enable/Disable PermissionsEx Support
Use_Custom_Command: false //Enables/disables custom command to be executed when player's AFK time runs out
Custom_Command: 'kick %player%' //The command to be executed. NO SLASH NEEDED.
 
PermissionsEx Config
This is generated in the folder, called "Groups.yml"
Code (Text):

Groups:
  default: 15
  Admin: 30
  VIP: 59
 
This does not need to be edited by you! Simply use the command /cap add GROUP TIME to add the PermissionsEx group's time. To remove the group, simply do /cap remove GROUP
PermissionsEx (NEW)
How custom times/group works

First, please make sure you have the latest version of PermissionsEx installed on your server. Next, after the plugin has ran for the first time, in the config you will see " Use_PermissionsEx " set to false, please change false to true and save the file. Then either restart the server or do /cap reload to refresh the config. Now, PermissionsEx should be used! It is very simply to use, simply add the PermissionsEx group to the plugin along with the time that group will have to wait with /cap add GROUP TIME . Please note that the GROUP must be the same spelling/capitalization as it is in PermissionsEx and that TIME is a number . Finally, if the user is part of several groups, it will take the time of the group with the HIGHEST time . If the user is part of a group that has not been added to CapAFK, they will get the default time set in the regular config.

***If the users is moved to a new PermissionsEx group, the plugin will NOT RECOGNIZE this change until either the user RE-LOGS into the server OR the plugin is reloaded . This has to be this way because of how PermissionsEx is made, NOT ME. ***
Permissions:
Commands:
New in Version 1.4.1:

New in Version 1.4 :

TODO:
*Permissions will be added in very shortly (In a day or two)
*More customizing for the user
*Color codes in the kick message
*Custom kick announcement to the server

*Fix Bugs
Tell me what to add next!

Servers that use this:

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

[1.11.x] Captcha AFK [NOW WITH CUSTOM PERMISSIONSEX / KICK COMMAND] is a free Minecraft Java mod. Compatible with Minecraft 1.11. Downloaded 2,574 times (via Spigot). Download it and open it directly in the game.

Explore more