Quantcast
Channel: SpigotMC - High Performance Minecraft Community
Viewing all articles
Browse latest Browse all 128790

Create an ScoreBoard with playercount from server? Help?

$
0
0
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:
Code (text):
@EventHandler
    public void onPlayerJoin(PlayerJoinEvent e) {
        final Player p = e.getPlayer();
        e.setJoinMessage(null);
for (Player online : Bukkit.getServer().getOnlinePlayers()) {...
Create an ScoreBoard with playercount from server? Help?

Viewing all articles
Browse latest Browse all 128790

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>