Beispiel #1
0
  public void removeSCPlayer(UUID uuid) {

    if (scPlayers.containsKey(uuid)) scPlayers.remove(uuid);

    rankManager.setSQLRank(uuid, rankManager.getRank(uuid));
    permissionsManager.removeAttachment(uuid);
    statsManager.unloadStats(uuid);
  }
Beispiel #2
0
  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);
  }