Пример #1
0
 public ArrayList<String> getResidentNames() {
   ArrayList<String> ris = new ArrayList<>();
   for (Resident r : residents) {
     ris.add(Bukkit.getPlayer(r.getPlayer()).getName());
   }
   return ris;
 }
Пример #2
0
 public ArrayList<String> getAssistantsNames() {
   ArrayList<String> ris = new ArrayList<>();
   {
     for (Resident r : assistants) {
       ris.add(Bukkit.getPlayer(r.getPlayer()).getName());
     }
   }
   return ris;
 }
Пример #3
0
 public boolean isMayor(Resident r) {
   return mayor.equals(r);
 }