Skip to content

Commit 146b62a

Browse files
committed
Added %essentials_is_pay_enabled%
1 parent 2859f6c commit 146b62a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/extendedclip/papi/expansion/essentials/EssentialsExpansion.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ public String onPlaceholderRequest(Player p, String identifier) {
159159
}
160160

161161
switch (identifier) {
162+
case "is_pay_enabled":
163+
return essentials.getUser(p).isAcceptingPay() ? PlaceholderAPIPlugin.booleanTrue() : PlaceholderAPIPlugin.booleanFalse();
162164
case "is_teleport_enabled":
163165
return essentials.getUser(p).isTeleportEnabled() ? PlaceholderAPIPlugin.booleanTrue() : PlaceholderAPIPlugin.booleanFalse();
164166
case "vanished":

0 commit comments

Comments
 (0)