Skip to content

Commit

Permalink
Added player placeholders for plugins e.g. in rewards.yml used
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Oct 16, 2023
1 parent 82cb32e commit fef2502
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/minigame/placeholders.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ UPPERCASE WORDS needs to be replaced by your own!

| Placeholder | PlaceholderAPI | Description | Type |
|----------------------------------|-------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|--------|
| `%player%` | `internal` | Get the player name it gets executed | GLOBAL/REWARDS |
| `%player_uuid%` | `internal` | Get the player uuid it gets executed | GLOBAL/REWARDS |
| `%arena_players_online%` | `%PLUGININDICATOR_arena_ARENAID_players_online%` | Get all players online | GLOBAL |
| `%user_statistic_STATISTICTYPE%` | `%PLUGININDICATOR_user_statistic_STATISTICTYPE%` | Get statistic of the "executed" player | GLOBAL |
| `%user_kit%` | `%PLUGININDICATOR_user_kit%` | Get kit of the "executed" player | GLOBAL |
Expand Down
2 changes: 1 addition & 1 deletion docs/minigame/support/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ There you can add for example the following command:

Be sure to use commands that your plugin supports!

[Learn more about the Rewards.yml here](files)
[Learn more about the Rewards.yml here](../support/files#rewardsyml)

:::note
If your scoreboard plugin doesn't support a command to activate the scoreboard please contact the dev of the plugin to add this command!
Expand Down
1 change: 1 addition & 0 deletions docs/minigame/support/plugin-files-explained.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ Here you can set up MySQL plugin configuration. You need to enable MySQL first i
Here you can set up rewards that your players can get after specific triggers.
Commands are executed by default BY CONSOLE, use "p:" to preform command by player.
You can also use chance to execute command adding "chance(NUMBER):" (ex chance(10):) at the beginning of command.
[Learn more about the Placeholders you can use at rewards.yml](../placeholders)

<Tabs groupId="minigame" defaultValue="villagedefense" queryString
values={[
Expand Down

0 comments on commit fef2502

Please sign in to comment.