Provide simple maintenance utility at the press of a single button (or multiple, if desired).
Start by using the `/getmaintenancebutton <ID>` command, in order to receive the Maintenance Mode button.
Use the command `/getrestorebutton <ID>` in order to receive the button that exits the Maintenance Mode.
The configuration allows you the following:
- Op/Deop the player
- Switch the gamemode from survival to creative
- Retain the survival gamemode in order to keep your survival experience intact
- Execute additional commands from the console using the `%player%` placeholder, which replaces that string with the name of the player pressing the button
If you want to add commands to be executed when the buttons are being pressed, simply add them to the respective button list in the config, like this:
Code (Text):
Maintenance commands:
- "give %player% minecraft:wooden_axe 1"
- "any"
- "other"
- "commands"
If you want to remove buttons, use the commands `/unregistermaintenancebutton <ID>` and `/unregisterrestorebutton <ID>`, and the buttons will be destroyed automagically.
This plugin was made as a free commission, and so I haven't invested the time into testing every single dot and comma. If you find any bugs, or have any suggestions at all, please use the `Discussions` tab, and I'll honour them.