Sueta

AdminSwitch

1.0.1

Switch between being an admin and a regular player on your server! Great for testing player perms.

·Plugin

Admin Switch is a simple yet powerful plugin that allows you to switch from Admin-mode (lots of permissions) to Player-mode (regular player permissions) with one simple command! No longer do you have to mess with your permissions plugin, just type /admin <on/off> and you're all set!

Admin Switch is perfect for server owners who need to test out player permissions, setup prefixes, etc.

Commands

  • /admin on
    Switches the executer to Admin mode. This will execute any commands under to-admin in the config.

  • /admin off
    Switches the executer to Player mode. This will execute any commands under to-player in the config.

  • /admin reload
    Reloads the config.yml file.

Permissions

  • adminswitch.use - one simple permission that allows access to all three commands.
    Please note that OPs do not automatically have this permission. You will need to manually add it using your permission plugin.

Configuration

config.yml

The variable %player% will be replaced with the player's name when executing commands.

commands:
  to-admin: ## Commands to be executed when a player performs /admin on
    - 'pex user %player% group set Owner'
  to-player: ## Commands to be executed when a player performs /admin on
    - 'pex user %player% group set Player'
 
messages: ## Self-explanatory messages
  no-permission: '&cYou do not have access to that command.'
  to-player: '&aYou are now a regular player.'
  to-admin: '&cYou are now an admin.'

Please leave any feedback you have for this plugin in the discussion thread!

Icon provided by Smashicons on flaticon.com.
All of my plugins utilize the All Rights Reserved license. This means that you may not modify or redistribute without my permission.

Enjoy :)

Similar projects

Plugin →