Corøna's Studios
  • 👑Corøna's Plugins Documentation
  • CrownPunishments
    • 🎯Overview
    • 👮Permissions
  • ⌨️Commands
  • 📍Placeholders
  • 🖼️Items and Menus
    • 🖱️ClickActions
    • ⚔️Item Syntaxis
    • 💬Messages and Formatting
  • 📖Punishment Types
    • ❌Ban
    • 💻SoftBan
    • 🔇Mute
    • ⚠️Warn
    • 🥾Kick
    • 🧊Freeze
Powered by GitBook
On this page
  • ⚙️ Internal Placeholders
  • 📦 External Placeholders (PlaceholderAPI)
  • 📤 Exported Placeholders (PlaceholderAPI)

Placeholders

⚙️ Internal Placeholders

These placeholders are built into CrownPunishments and can be used in messages, item names, and lore within the configuration files.

Placeholder
Description
Example Output

{prefix}

Plugin's prefix, as defined in config.yml.

[CrownPunishments]

{target}

Target player's name.

Notch

{player}

Player who is viewing the menu or executing the command.

AdminPlayer

{time}

Punishment time duration (e.g., in confirmation messages).

1 day

{reason}

Punishment reason.

Spamming chat

{input}

User input (e.g., player name, time entered in chat prompts).

ExamplePlayer

{usage}

Command usage instructions (e.g., in help messages).

/crown punish <player> ...

{types}

List of available punishment types (e.g., in error messages).

ban, mute, softban, kick, warn

{punishment_type}

Type of punishment being applied or referenced.

ban

{action}

Action name (e.g., menu action in permission error messages).

ban details

{time_status}

Status of time setting in menus ("Set" or "Not Set").

Set or Not Set

{reason_status}

Status of reason setting in menus ("Set" or "Not Set").

Set or Not Set

{target_online}

Indicates if the target player is online ("✅" or "❌")

✅ or ❌

{target_ip}

Target player's IP address (if online, "-" if offline or unavailable).

127.0.0.1 or -

{target_coords}

Target player's coordinates (if online, "-" if offline).

100, 64, 50 or -

{target_world}

Target player's world name (if online, "-" if offline).

world or -

{target_softban_status}

Status of target player's softban ("✅" or "❌")

✅ or ❌

{target_softban_remaining_time}

Remaining time of target player's softban.

2 days 10 hours or N/A

{ban_count}

Number of bans issued to the target player.

5

{mute_count}

Number of mutes issued to the target player.

12

{kick_count}

Number of kicks issued to the target player.

25

{softban_count}

Number of softbans issued to the target player.

3

{warn_count}

Number of warns issued to the target player.

7

{freeze_count}

Number of freezes issued to the target player.

1

{punish_count}

Total number of punishments issued to the target player.

53

📦 External Placeholders (PlaceholderAPI)

CrownPunishments seamlessly integrates with PlaceholderAPI. If PlaceholderAPI is installed on your server, you can use any placeholders provided by PlaceholderAPI in your messages, menu item names, and lore.

Example:

messages:
  plugin_enabled: '{prefix}&dPlugin enabled. Server TPS: %server_tps%'

📤 Exported Placeholders (PlaceholderAPI)

Placeholder
Description

%crownpunishments_is_frozen%

Status of target player's freeze (true or false).

%crownpunishments_is_softbanned%

Status of target player's softban (true or false).

%crownpunishments_softban_time_left%

Remaining time of player's softban.

%crownpunishments_punish_count%

Total number of punishments issued to the target player.

%crownpunishments_ban_count%

Number of bans issued to the target player.

%crownpunishments_softban_count%

Number of softbans issued to the target player.

%crownpunishments_mute_count%

Number of mutes issued to the target player.

%crownpunishments_warn_count%

Number of warns issued to the target player.

%crownpunishments_kick_count%

Number of kicks issued to the target player.

%crownpunishments_freeze_count%

Number of freezes issued to the target player.

PreviousCommandsNextItems and Menus

Last updated 10 days ago

📍
Page cover image