Added %player_item_in_hand_data%
This commit is contained in:
1 parent
ae96f5afdc
commit
a46354bd8c
2 files changed
+3
-1
No files matched your search
@@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.extendedclip.papi.expansion.player</groupId>
|
||||
<artifactId>player-expansion</artifactId>
|
||||
<version>1.4.4</version>
|
||||
<version>1.4.5</version>
|
||||
<name>PAPI-Expansion-Player</name>
|
||||
<description>PlaceholderAPI expansion for player placeholders</description>
|
||||
|
||||
|
||||
@@ -148,6 +148,8 @@ public class PlayerExpansion extends PlaceholderExpansion {
|
||||
return String.valueOf(p.getHealthScale());
|
||||
case "item_in_hand":
|
||||
return p.getItemInHand() != null ? p.getItemInHand().getType().name() : "";
|
||||
case "item_in_hand_data":
|
||||
return p.getItemInHand() != null ? p.getItemInHand().getDurability()+"" : "0";
|
||||
case "last_damage":
|
||||
return String.valueOf(p.getLastDamage());
|
||||
case "max_health":
|
||||
|
||||
Reference in new issue
Block a user