Merge pull request #5 from ipsk/patch-1

Added placeholder %essentials_safe_online%.
This commit is contained in:
Ryan authored and GitHub committed 2018-05-16 10:42:09 -04:00
commit 8c3b39c990
1 file changed
+4 -1
@@ -185,7 +185,10 @@ public class EssentialsExpansion extends PlaceholderExpansion {
return "";
}
}
// Adds placeholder to get count of online players not including vanished players
if (identifier.equals("safe_online")) {
return String.valueOf((essentials.getOnlinePlayers().size() - essentials.getVanishedPlayers().size()));
}
return null;
}