NoSpawnerForAfk promotes active players, instead of having them idling AFK at spawners for mob drops.
This plugin blocks any spawner from spawning when all of the nearby players are AFK but does not interfere when a nearby player is active.
This facility is not available natively in Essentials, hence this plugin. The plugin is simple and lightweight, sticking to its one job, which isn't overly complex.
Installation
Move the downloaded NoSpawnerForAfk jar file to the server's plugins folder.
Dependencies
NoSpawnerForAfk reads the AFK status from Essentials. NoSpawnerForAfk will not work without the Essentials plugin also being installed. This plugin was built with the EssentialsX fork of Essentials. I expect that it would work with other forks but this is not tested.
NoSpawnerForAfk blocks spawns from natural/vanilla spawners, EpicSpawners, SilkSpawners and MineableSpawners.
Commands
/nospawnerforafk off
Turn off the plugin and let spawners act normally.
/nospawnerforafk on
Turn on the plugin and block spawners with no active players nearby.
/nospawnerforafk range <range>
Set the range to check for players.
/nospawnerforafk log on
Turn on diagnostic logging to your console window.
/nospawnerforafk log off
Turn off diagnostic logging to your console window.
Diagnostic logging is off by default on server restart.
Configuration
NoSpawnerForAfk will create a config.yml. Inside you can set the detection range to look for active players. The default range is 16 blocks.
check-range: 16
Permissions
- nospawnerforafk.enable
Allow the user to use the on/off commands. Granted by default to OP players.
- nospawnerforafk.setrange
Players with this permission can use the range command. Granted by default to OP players.
- nospawnerforafk.bypass
Players with this permission can still get spawns from spawners when AFK. This permission must be granted specifically. It is not granted by default even to OP players.
- nospawnerforafk.log
Players with this permission can turn the diagnostic logging to the console ON or OFF. Granted by default to OP players.
- nospawnerforafk.*
Players with this permission get all of the above permissions. This permission must be granted specifically. It is not granted by default even to OP players.
Logo by
Cool Text: Logo and Graphics Generator