From 024e88a35b4f4a3ccf50b78e15c657693d5b9346 Mon Sep 17 00:00:00 2001 From: drtshock Date: Fri, 27 Jun 2014 13:43:12 -0500 Subject: [PATCH] Fix metrics call to getOnlinePlayers --- src/main/java/com/massivecraft/factions/util/Metrics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/util/Metrics.java b/src/main/java/com/massivecraft/factions/util/Metrics.java index 84d4e7e6..06b32fa1 100644 --- a/src/main/java/com/massivecraft/factions/util/Metrics.java +++ b/src/main/java/com/massivecraft/factions/util/Metrics.java @@ -250,7 +250,7 @@ public final class Metrics { boolean onlineMode = Bukkit.getServer().getOnlineMode(); // TRUE if online mode is enabled String pluginVersion = description.getVersion(); String serverVersion = Bukkit.getVersion(); - int playersOnline = Bukkit.getServer().getOnlinePlayers().length; + int playersOnline = Bukkit.getServer().getOnlinePlayers().size(); // END server software specific section -- all code below does not use any code outside of this class / Java