Bukkit v1.7.10

Still supports 1.7.9
This commit is contained in:
MistPhizzle 2014-07-18 18:19:39 -04:00
parent 105e93075f
commit cef4cc9063
2 changed files with 3 additions and 2 deletions

View file

@ -284,7 +284,7 @@ public class MetricsLite {
boolean onlineMode = Bukkit.getServer().getOnlineMode(); // TRUE if online mode is enabled boolean onlineMode = Bukkit.getServer().getOnlineMode(); // TRUE if online mode is enabled
String pluginVersion = description.getVersion(); String pluginVersion = description.getVersion();
String serverVersion = Bukkit.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 // END server software specific section -- all code below does not use any code outside of this class / Java

View file

@ -1,6 +1,7 @@
package com.projectkorra.ProjectKorra; package com.projectkorra.ProjectKorra;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
@ -43,7 +44,7 @@ public class RevertChecker implements Runnable {
@Override @Override
public ArrayList<Chunk> call() throws Exception { public ArrayList<Chunk> call() throws Exception {
ArrayList<Chunk> chunks = new ArrayList<Chunk>(); ArrayList<Chunk> chunks = new ArrayList<Chunk>();
Player[] players = server.getOnlinePlayers(); Collection<? extends Player> players = server.getOnlinePlayers();
for (Player player : players) { for (Player player : players) {
Chunk chunk = player.getLocation().getChunk(); Chunk chunk = player.getLocation().getChunk();