Merge pull request #879 from PlaceholderAPI/add-attribute-placeholders

add placeholders for the attribute expansion
This commit is contained in:
Andre_601 2022-09-09 14:43:27 +02:00 committed by GitHub
commit 4b3f1c144f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,24 @@ 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.html). ([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
```
----
- ### **BungeeCord**
> /papi ecloud download Bungee