mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
parent
c3c39a8ed8
commit
536863b2b9
|
@ -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().size();
|
||||
int playersOnline = Bukkit.getServer().getOnlinePlayers().length;
|
||||
|
||||
// END server software specific section -- all code below does not use any code outside of this class / Java
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
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;
|
||||
|
@ -44,7 +43,7 @@ public class RevertChecker implements Runnable {
|
|||
@Override
|
||||
public ArrayList<Chunk> call() throws Exception {
|
||||
ArrayList<Chunk> chunks = new ArrayList<Chunk>();
|
||||
Collection<? extends Player> players = server.getOnlinePlayers();
|
||||
Player[] players = server.getOnlinePlayers();
|
||||
|
||||
for (Player player : players) {
|
||||
Chunk chunk = player.getLocation().getChunk();
|
||||
|
|
Loading…
Reference in a new issue