mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 07:36:42 +02:00
{UNIQUE} player count for motd
This commit is contained in:
@@ -329,6 +329,7 @@ public class Essentials extends JavaPlugin implements IEssentials
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
m = m.replace("{ONLINE}", Integer.toString(getServer().getOnlinePlayers().length - playerHidden));
|
m = m.replace("{ONLINE}", Integer.toString(getServer().getOnlinePlayers().length - playerHidden));
|
||||||
|
m = m.replace("{UNIQUE}", Integer.toString(users.size()));
|
||||||
|
|
||||||
if (m.matches(".*\\{PLAYERLIST\\}.*"))
|
if (m.matches(".*\\{PLAYERLIST\\}.*"))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user