diff --git a/src/com/projectkorra/ProjectKorra/MetricsLite.java b/src/com/projectkorra/ProjectKorra/MetricsLite.java index 1e6f262d..683af9f3 100644 --- a/src/com/projectkorra/ProjectKorra/MetricsLite.java +++ b/src/com/projectkorra/ProjectKorra/MetricsLite.java @@ -284,7 +284,7 @@ public class MetricsLite { 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 diff --git a/src/com/projectkorra/ProjectKorra/RevertChecker.java b/src/com/projectkorra/ProjectKorra/RevertChecker.java index a49369d4..fab1b03c 100644 --- a/src/com/projectkorra/ProjectKorra/RevertChecker.java +++ b/src/com/projectkorra/ProjectKorra/RevertChecker.java @@ -1,6 +1,7 @@ package com.projectkorra.ProjectKorra; import java.util.ArrayList; +import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.concurrent.Callable; @@ -43,7 +44,7 @@ public class RevertChecker implements Runnable { @Override public ArrayList call() throws Exception { ArrayList chunks = new ArrayList(); - Player[] players = server.getOnlinePlayers(); + Collection players = server.getOnlinePlayers(); for (Player player : players) { Chunk chunk = player.getLocation().getChunk();