Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void ping(ServerListPingEvent e) {
- /* Když je server plný */
- if (Bukkit.getOnlinePlayers().size() >= Bukkit.getMaxPlayers()) {
- e.setMotd("FULL_ARENA#§r-§7Players: §a%players%§7/§c%max%-§7Status: %status%");
- } else {
- /* Když je server online */
- e.setMotd("FULL_ARENA#§r-§7Players: §a%players%§7/§c%max%-§7Status: %status%");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement