fixed an eventgame bug

This commit is contained in:
Cheese 2015-03-17 14:50:56 +11:00
parent 6762e4b537
commit e3eb62887d

View File

@ -798,12 +798,12 @@ public class EventGame extends SoloGame
if (args[1].equalsIgnoreCase("add"))
{
UtilServer.getServer().getWhitelistedPlayers().add(target);
UtilPlayer.message(player, F.main("Whitelist", "Added " + args[1] + " to the whitelist."));
UtilPlayer.message(player, F.main("Whitelist", "Added " + args[2] + " to the whitelist."));
}
else
{
UtilServer.getServer().getWhitelistedPlayers().remove(target);
UtilPlayer.message(player, F.main("Whitelist", "Removed " + args[1] + " to the whitelist."));
UtilPlayer.message(player, F.main("Whitelist", "Removed " + args[2] + " to the whitelist."));
}
return;