Configuring Motels
The Motels plugin offers two primary methods for configuring and managing motels: direct editing of the motel.yml
file and using MotelAdmin commands. Both methods are powerful and can be used based on your preference and specific needs.
Using MotelAdmin Commands
The plugin provides several administrative commands that allow you to manage motels without directly editing the configuration file. These commands are particularly useful for in-game management and quick changes.
Key MotelAdmin Commands for Motel Configuration:
Adding a New Motel:
This command creates a new motel with the specified WorldGuard region ID, price, and display name.
Setting Motel Location:
Sets the teleport location for the specified motel to your current position.
Changing Motel Type:
Changes the type of the motel (rent or permanent).
Setting Expiration Date:
Manually sets the expiration date for a rented motel.
Changing Display Name:
Changes the display name of an existing motel.
Removing a Motel:
Removes an existing motel from the system.
These commands automatically update the motel.yml
file, ensuring consistency between in-game changes and the configuration file.
Manual Configuration in motel.yml
While the MotelAdmin commands are convenient, you can also manually edit the motel.yml
file for more detailed configurations or batch edits.
Basic Structure of motel.yml:
Adding a New Motel Manually:
To add a new motel room in motel.yml
:
Choose a unique
[motel-id]
(e.g.,motel-1-101
).Add the new motel section with all necessary properties.
Save the file and reload the plugin using
/moteladmin reload
.
Best Practices
Use MotelAdmin Commands for quick, in-game changes and management.
Edit motel.yml Directly for bulk changes or detailed configurations.
Always reload the plugin after manual edits to
motel.yml
.Maintain a consistent naming convention for motel IDs.
Use color codes in display names for attractive presentation.
Be cautious with action commands; they run with console permissions.
By combining both MotelAdmin commands and manual configuration, you can efficiently manage and customize your server's motel system to fit your specific needs.
Last updated