AFKCheck
This plugin gives the ability to ops to check any player if they're AFK avoiding unfair kicks. Basically this plugin asks the player to type given number, thus proving that he's not AFK. This is my first plugin, released on bukkit.org, so don't blame me much, although any remarks are appreciated!
Commands:
- /afkcheck - the main AFKCheck's command. Available arguments: reload, config.
- /isafk [player] - check if the player is AFK (only ops can use this command).
- /isafkall - check all players if they are AFK (only ops can use this command).
- /notafk [answer] - answer the given question to prove being not AFK (only players, who are being checked, can use this command).
Locales:
- English (lang_en) - by me
- Lithuanian (lang_lt) - by me
- It would be very nice if you PM'ed me with other locales, you can use this English locale template to translate it to other languages.
Configuration:
In "config.yml" file there are 2 settings:
- time - time limit in seconds (default - 15), in which the player must answer the question, if not, he's kicked.
- language - language file (default - lang_en), in which is the locale, used by the plugin (without extention ".yml").
Instalation:
- Download AFKCheck.zip file.
- Extract all files to plugins folder.
- Reload/restart server and type /afkcheck for more details.
-
View User Profile
-
Send Message
Posted Sep 11, 2013and File file = new File(path); if(!file.exists()) create file
you should never make a user copy a settings folder along with your jar, the point and the standard is to drop the jar and be done
-
View User Profile
-
Send Message
Posted Sep 11, 2013just do saveDefaultConfig();