[Lantejoula-Skript] Maintenance
Description
This skript allows you to put the server into maintenance preventing players from entering. Only players with bypass permissions or whitelisted players are allowed to access the server.
This skript uses easy-to-configure technology. There’s no need to modify the code, as the script automatically generates a ‘config.yml’ file, similar to what plugins do.
Commands
- /maintenance add <nick> - Adds a player to the whitelist
- /maintenance delete <nick> - Deletes a player to the whitelist
- /maintenance list - List of whitelisted players
- /maintenance enable - Enable maintenance
- /maintenance disable - Disable maintenance
- /maintenance help - Available commands
Instalation
1. Install the plugins:
- [Required]
Skript
- [Required]
Skript-yaml
- [Required]
SkQuery
2. Place the skript
“Maintenance.sk” in the folder
“/plugins/Skript/scripts/”
3. Run the command
“/skript reload scripts” or restart the server
4. Configure the skript in the
“config.yml” file in the folder:
“/plugins/Lantejoula/Maintenance/config.yml”
5. Give staff permission to edit whitelist and bypass access
(Permissions are in config.yml file)
Note: Skript tested in Minecraft Paper 1.21.4
Contact me
If you have any problems with the script, you can contact me via discord: lantejoula
