add placeholders for the attribute expansion

https://api.extendedclip.com/expansions/attribute/
This commit is contained in:
Gabriel Dumitru 2022-09-09 11:11:15 +03:00 committed by GitHub
parent 6f649678e7
commit 7cc0548c40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -20,6 +20,7 @@ If the command itself isn't there and `NO DOWNLOAD COMMAND` instead is shown, th
- **[Animations](#animations)**
- **[Armor](#armor)**
- **[ASCII](#ascii)**
- **[Attribute](#attribute)**
- ### **B**
- **[BungeeCord](#bungeecord)**
@ -507,6 +508,26 @@ A majority of these Expansions are maintained by the PlaceholderAPI team and can
----
- ### **Attribute**
> /papi ecloud download Attribute
Adds placeholders to access [Attributes](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.htm). ([Minecraft wiki](https://minecraft.fandom.com/wiki/Attribute)]
**The expansion can be used only on 1.9+**
```
// Available for all game versions
%attribute_player_has_<attribute>% - whether the player has a certain attribute
%attribute_player_baseValue_<attribute>% - returns the base value of an attribute
%attribute_player_value_<attribute>% - returns the value of an attribute with all the modifiers applied
// 1.11+
%attribute_player_defaultValue_<attribute>% - returns the default value of an attribute
```
Ex: `%ascii_37%` returns `%`
----
- ### **BungeeCord**
> /papi ecloud download Bungee