# Commands

### Admin Commands

All admin commands start with `/moteladmin`.

General Management:

* `/moteladmin check` (Permission: anotherlevel.motels.admin.check) Verifies if motel bookings have expired.
* `/moteladmin reload` (Permission: anotherlevel.motels.admin.reload) Reloads all plugin configurations.
* `/moteladmin menu` (Permission: anotherlevel.motels.admin.menu) Opens the motel administration menu.
* `/moteladmin help` (Permission: anotherlevel.motels.admin.help) Displays help information for admin commands.
* `/moteladmin bugreport` (Permission: anotherlevel.motels.admin.bugreport) Generates a bug report for the plugin.

Motel Management:

* `/moteladmin add <regionId> <price> <displayName>` (Permission: anotherlevel.motels.admin.add) Creates a new motel with specified region ID, price, and display name.
* `/moteladmin remove <motelRegionId>` (Permission: anotherlevel.motels.admin.remove) Deletes an existing motel.
* `/moteladmin set-location <motelRegionId>` (Permission: anotherlevel.motels.admin.set-location) Sets the location of a motel.
* `/moteladmin change-type <motelId> <type>` (Permission: anotherlevel.motels.admin.change-type) Changes the type of a motel.
* `/moteladmin set-expiration-date <motelId> <day> <month> <year>` (Permission: anotherlevel.motels.admin.set-expiration-date) Sets the expiration date for a motel.
* `/moteladmin set-displayname <motelId> <displayName>` (Permission: anotherlevel.motels.admin.set-displayname) Sets or changes the display name of a motel.

Player Management:

* `/moteladmin vault <playerName> <motelName>` (Permission: anotherlevel.motels.admin.vault) Checks the vault of a specified player at a specific motel.

### Player Commands

All player commands start with `/motel`.

Motel Interaction:

* `/motel buy [motelName]` (Permission: anotherlevel.motel.buy) Buys a motel room. The motel name is optional.
* `/motel sell` (Permission: anotherlevel.motel.sell) Sells the player's motel.
* `/motel info` (Permission: anotherlevel.motel.info) Displays detailed information about the motel.
* `/motel vault` (Permission: anotherlevel.motel.vault) Opens the player's motel room vault.
* `/motel visitable` (Permission: anotherlevel.motel.visitable) Toggles whether the motel is visitable by other players.

Rental Management:

* `/motel rent <action>` (Permission: anotherlevel.motel.rent) Manages rental payments and extensions. Actions: pay, extend, info
* `/motel rent info` (Permission: anotherlevel.motel.rent) Shows details about the player's current rental.

Navigation and Exploration:

* `/motel gps [room]` (Permission: anotherlevel.motel.gps) Starts GPS navigation to a motel room.
* `/motel visit <targetPlayer>` (Permission: anotherlevel.motel.visit) Visits another player's motel if visitable.
* `/motel teleport` (Permission: anotherlevel.motel.teleport) Teleports to your own motel.
* `/motel explore [group]` (Permission: anotherlevel.motel.explore) Opens the explore motel interface. Optionally specify a group.

Miscellaneous:

* `/motel menu` (Permission: anotherlevel.motel.command) Opens a menu encompassing all motel-related functions.
* `/motel help` (Permission: anotherlevel.motel.help) Displays help information for player commands.
* `/motel expired` (Permission: anotherlevel.motel.expired) Shows a list of the player's expired motels.

Note: Some commands may require the player to be inside a motel region to function properly. The availability of certain features (like GPS navigation) may depend on server configuration and compatible plugins.
