Fix %player_ping_<x>%

This commit is contained in:
Mitchell Cook authored and GitHub committed 2018-05-15 02:58:06 +10:00
1 parent a46354bd8c
commit 1ca6914470
1 file changed
+1 -1
@@ -63,7 +63,7 @@ public class PlayerExpansion extends PlaceholderExpansion {
}
if (identifier.startsWith("ping_")) {
identifier = identifier.split("has_permission_")[1];
identifier = identifier.split("ping_")[1];
Player t = Bukkit.getPlayer(identifier);
if (t != null) {
return getPing(t);