How would I change this - http://prntscr.com/4wj9na - to a number? Here's the code: Code:java e.getPlayer().sendMessage("> " + ChatColor.AQUA + "There are " + ChatColor.GREEN + Bukkit.getOnlinePlayers().toString() + ChatColor.AQUA + " players online!");
If Bukkit.getOnlinePlayers() doesn't return it correctly, try String.valueOf(Bukkit.getOnlinePlayers()) or you could use size() afterwards.
Didnt change anything :/ That returns an error EDIT by Moderator: merged posts, please use the edit button instead of double posting.