Hey, i have an simple class with an scoreboard thats show the currently connected players to that server. But now im stuck, i dont no ho to set the player count from bungeecord to an int!
I am using an API for this scoreboard, its the same way as an objective!
Here is my code:
Create an ScoreBoard with playercount from server? Help?
I am using an API for this scoreboard, its the same way as an objective!
Here is my code:
Code (text):
@EventHandler
public void onPlayerJoin(PlayerJoinEvent e) {
final Player p = e.getPlayer();
e.setJoinMessage(null);
for (Player online : Bukkit.getServer().getOnlinePlayers()) {...
public void onPlayerJoin(PlayerJoinEvent e) {
final Player p = e.getPlayer();
e.setJoinMessage(null);
for (Player online : Bukkit.getServer().getOnlinePlayers()) {...