Merge pull request #5 from ipsk/patch-1
Added placeholder %essentials_safe_online%.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user