Removed all client list pull.

This commit is contained in:
Jonathan Williams 2013-10-17 00:54:14 -07:00
parent 43b42f771a
commit 7e77f78d2f

View File

@ -1,8 +1,6 @@
package mineplex.core.account;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map.Entry;
import mineplex.core.account.event.AsyncClientLoadEvent;
import mineplex.core.account.event.ClientUnloadEvent;
@ -12,8 +10,6 @@ import mineplex.core.account.repository.token.ClientToken;
import mineplex.core.common.Rank;
import mineplex.core.common.util.Callback;
import mineplex.core.common.util.NautHashMap;
import mineplex.core.updater.UpdateType;
import mineplex.core.updater.event.UpdateEvent;
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.libs.com.google.gson.Gson;
@ -34,7 +30,6 @@ public class CoreClientManager implements Listener
private JavaPlugin _plugin;
private AccountRepository _repository;
private HashSet<String> _allClients;
private NautHashMap<String, CoreClient> _clientList;
private HashSet<String> _dontRemoveList;
@ -46,15 +41,9 @@ public class CoreClientManager implements Listener
_plugin = plugin;
_repository = new AccountRepository(webServer);
_allClients = new HashSet<String>();
_clientList = new NautHashMap<String, CoreClient>();
_dontRemoveList = new HashSet<String>();
for (String clientName : _repository.GetAllClientNames())
{
_allClients.add(clientName);
}
_plugin.getServer().getPluginManager().registerEvents(this, _plugin);
}
@ -117,11 +106,6 @@ public class CoreClientManager implements Listener
return _clientList.get(player.getName());
}
}
public HashSet<String> GetAll()
{
return _allClients;
}
@EventHandler(priority = EventPriority.LOWEST)
public void AsyncLogin(AsyncPlayerPreLoginEvent event)