Update PlaceholderExpansion.md

github-actions[bot] 2021-09-10 00:03:13 +00:00
parent e7f27383d0
commit 5bc8c71a70
5 changed files with 25 additions and 3 deletions

@ -60,10 +60,10 @@ Let's quickly break down the different methods you have to implement.
- #### getAuthor
This method allows you to set the name of the expansion's author.
- #### getIdentifier
The name that should be used to identify the placeholders for this expansion.
The identifier is the string after the starting `%` and before the first `_` (`%identifier_values%`) and, therefore, cannot contain `_`, `%` or spaces.
The identifier is the part in the placeholder that is between the first `%` (Or `{` if bracket placeholders are used) and the first `_`.
Because of that can you not use `%`, `{`, `}` or `_` in youd identifier.
If you still want to use the previously mentioned symbols can you override the `getName()` method to change the Expansion's displayname.
If you still want to use those symbols can you override the `getName()` method to display a different name.
- #### getVersion
This is a string, which means it can contain more than just a number. This is used to determine if a new update is available or not when the expansion is shared on the eCloud.
For expansions that are part of a plugin, this does not really matter.

@ -283,6 +283,7 @@ If the command itself isn't there and `NO DOWNLOAD COMMAND` instead is shown, th
- ### **O**
- **[OnePlayerSleep](#oneplayersleep)**
- **[OnTime](#ontime)**
- **[OpEconomy](#opeconomy)**
- **[OreAnnouncer](#oreannouncer)**
- **[OreMarket](#oremarket)**
- **[Outpost](#outpost)**
@ -3622,6 +3623,24 @@ Please see [this discussion][list] for a list of all expansions officially maint
%ontime_time_played_week%
%ontime_referrals_week%
%ontime_votes_week%
```
----
- ### **[OpEconomy](https://www.spigotmc.org/resources/95674)**
> NO DOWNLOAD COMMAND
[Description and usage for placeholders](https://github.com/ThisKarolGajda/OpEconomy/wiki/PlaceholderAPI)
```
%opeconomy_money_<player_name>% - Gets custom player money
%opeconomy_money% - Gets money
%opeconomy_baltop_number_<number>% - Gets player's name
%opeconomy_baltop_player_position_<player_name>% - Gets player's position
%opeconomy_currency% - Shows active currency
%opeconomy_is_active_code_<code>% - Boolean, if code is active
%opeconomy_max_uses_code_<code>% - Shows max uses for code
%opeconomy_uses_code_<code>% - Shows uses for code
%opeconomy_reward_code_<code>% - Shows reward for entering code
```
----

@ -587,6 +587,9 @@ If your plugin isn't shown here and you want it to be added, [open an issue](/Pl
- **[OnTime](http://dev.bukkit.org/bukkit-plugins/ontime/)**
- [ ] Supports placeholders.
- [x] Provides own placeholders. [**[[Link|Placeholders#ontime]]**]
- **[OpEconomy](https://www.spigotmc.org/resources/95674)**
- [x] Supports placeholders.
- [x] Provides own placeholders. [**[[Link|Placeholders#opeconomy]]**]
- **[OreAnnouncer](https://www.spigotmc.org/resources/33464/)**
- [ ] Supports placeholders.
- [x] Provides own placeholders. [**[[Link|Placeholders#oreannouncer]]**]

BIN
img/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

BIN
img/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB