Update to Spigot 1.8.3-R2

This commit is contained in:
Jerom van der Sar 2015-04-26 20:43:37 +02:00
parent a15e39d7dd
commit aacf37aa56
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Mon Feb 16 16:40:10 CET 2015 #Sun Apr 26 20:42:55 CEST 2015
build.number=982 build.number=983

View File

@ -5,8 +5,9 @@ import java.util.List;
import java.util.UUID; import java.util.UUID;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import me.StevenLawson.TotalFreedomMod.Config.TFM_ConfigEntry; import me.StevenLawson.TotalFreedomMod.Config.TFM_ConfigEntry;
import net.minecraft.server.v1_8_R1.MinecraftServer; import net.minecraft.server.v1_8_R2.EntityPlayer;
import net.minecraft.server.v1_8_R1.PropertyManager; import net.minecraft.server.v1_8_R2.MinecraftServer;
import net.minecraft.server.v1_8_R2.PropertyManager;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -29,9 +30,8 @@ public class TFM_ServerInterface
{ {
String[] whitelisted = MinecraftServer.getServer().getPlayerList().getWhitelisted(); String[] whitelisted = MinecraftServer.getServer().getPlayerList().getWhitelisted();
int size = whitelisted.length; int size = whitelisted.length;
for (String player : MinecraftServer.getServer().getPlayerList().getWhitelist().getEntries()) for (EntityPlayer player : MinecraftServer.getServer().getPlayerList().players) {
{ MinecraftServer.getServer().getPlayerList().getWhitelist().remove(player.getProfile());
MinecraftServer.getServer().getPlayerList().getWhitelist().remove(player);
} }
try try
@ -48,7 +48,7 @@ public class TFM_ServerInterface
public static boolean isWhitelisted() public static boolean isWhitelisted()
{ {
return MinecraftServer.getServer().getPlayerList().hasWhitelist; return MinecraftServer.getServer().getPlayerList().getHasWhitelist();
} }
public static List<?> getWhitelisted() public static List<?> getWhitelisted()