public void removeSCPlayer(UUID uuid) { if (scPlayers.containsKey(uuid)) scPlayers.remove(uuid); rankManager.setSQLRank(uuid, rankManager.getRank(uuid)); permissionsManager.removeAttachment(uuid); statsManager.unloadStats(uuid); }
public void addSCPlayer(UUID uuid) { if (scPlayers.containsKey(uuid)) return; scPlayers.put(uuid, new SCPlayer(instance, uuid)); rankManager.setRank(uuid, rankManager.getRank(uuid)); permissionsManager.setAttachment(Bukkit.getPlayer(uuid)); statsManager.loadStats(uuid); }