Sueta

RequiredPlugins

1.1

Stop players from joining when not all of your essential plugins are loaded!

·Plugin

Made in Germany with love (and beer)

This plugin will let you configure a list of other plugins that are required for your server to work properly and not let players join when they aren't all loaded and enabled. (and kick them when the plugin gets disabled)

This lets you avoid issues that happen when for example your chest protection plugin didn't correctly load due to some bug or crashed database server.

Commands

Aliases: /requiredplugins, /reqplugins, /reqplugs

/reqplugs list - List all required plugins and their state
/reqplugs reload - Reload the config

Permissions

Players with operator status have all permissions by default.

requiredplugins.command - Use the plugin command
requiredplugins.command.list - List required plugins state with /reqplugs list
requiredplugins.command.reload - Reload the plugin config and the plugin state
requiredplugins.bypassblock - Allow a player to join even when not all required plugins are enabled, shows the text.join message on join.
requiredplugins.bypasskick - Stops a player from getting kicked when a required plugin is disabled. Sends the text.disabled message instead.

Config

# The plugins that need to be loaded before players can join
required-plugins:
- WorldGuard
- LWC
- LogBlock
# - ...

# Whether or not to kick all players when a required plugin gets disabled
# (only players without the requiredplugins.bypasskick permission, these get send the disabled text)
kick-on-disable: true

# Text message config
# Available placeholders:
# %plugins%
# %missing%
# %missingsize%
# %requiredsize%
texts:
  # Message shown for players that get kicked on join:
  kick: "&cNot all required plugins are loaded!"
  # Message shown to players that have the bypass permission and can login:
  join: "&eThe following required plugins are not loaded: %missing%"
  # Message shown ingame to everyone with the requiredplugins.bypasskick permission
  # when a required plugin gets disabled
  disabled: "&cThe required plugin &e%plugin%&c got disabled!"

Development

Source code: https://github.com/Minebench/RequiredPlugins/
Development builds can be downloaded here: https://ci.minebench.de/job/RequiredPlugins/

Donations

Programming is time intensive and I would really appreciate your support!
So if you can afford it or make commercially use of this plugin feel free to buy me a beer.
Patreon with rewards: Patreon
Paypal: https://s.moep.tv/donate
Ðoge: D7G4Svo7GTNHpuhjwUBj2k7qANnZHwYD4p
BTC: 1EXMFRknc7kLwCmM1zf5LXNnPD4ihVCEhQ


Other Resources


This resource is distributed under the terms of the GPLv3.

Similar projects

Plugin →