Placeholders

Overview

The Motels plugin integrates with PlaceholderAPI to offer various placeholders related to motel management in the game. These placeholders provide dynamic information about motels and can be used in various contexts.

General Placeholder Syntax

  • Placeholder format: %almotel_<identifier>%

  • The <identifier> is replaced with specific placeholders as outlined below.

Specific Placeholders

1. Motel State Placeholder

  • Syntax: %almotel_<motel_id>_state%

  • Description: Retrieves the current state (available or occupied) of a specified motel.

  • Example: %almotel_123_state% returns the state of the motel with ID 123.

2. Motel Price Placeholder

  • Syntax: %almotel_<motel_id>_price%

  • Description: Returns the price of the selected motel.

  • Example: %almotel_456_price% shows the price for motel ID 456.

3. Motel Expiration Date Placeholder

  • Syntax: %almotel_<motel_id>_expireDate%

  • Description: Provides the expiration date of the motel's listing or service.

  • Example: %almotel_789_expireDate% will display the expiration date for motel ID 789.

4. Motel Owner Placeholder

  • Syntax: %almotel_<motel_id>_owner%

  • Description: Retrieves the name of the owner of a specified motel.

  • Example: %almotel_101_owner% would return the owner of the motel with ID 101.

5. Motel Display Name Placeholder

  • Syntax: %almotel_<motel_id>_displayname%

  • Description: Retrieves the display name of a specific motel.

  • Example: %almotel_123_displayname% would return the display name of the motel with ID 123.

Additional Placeholders for Player-Specific Information

  • Motel Amount: %almotel_amount% returns the number of motels owned by a player.

  • Player's Motel Expiration Date: %almotel_expiredate_<index>% shows the expiration date of the player's motel at the specified index.

  • Player's Motel Display Name: %almotel_displayname_<index>% retrieves the display name of the player's motel at the given index.

  • Player's Motel Price: %almotel_price_<index>% provides the price of the player's motel at the specified index.

Note: For player-specific placeholders, <index> represents the index number of the motel in the player's list of motels.

Last updated