optimize code
This commit is contained in:
@@ -139,17 +139,11 @@ public class Manager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<String> getAllTerrs() {
|
public List<String> getAllTerrs() {
|
||||||
List<String> terrs = new ArrayList<>();
|
return new ArrayList<>(fileConfiguration.getConfigurationSection("TERRITORIES").getKeys(false));
|
||||||
for(String t : fileConfiguration.getConfigurationSection("TERRITORIES").getKeys(false))
|
|
||||||
terrs.add(t);
|
|
||||||
return terrs;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<String> getCages() {
|
public List<String> getCages() {
|
||||||
List<String> cages = new ArrayList<>();
|
return new ArrayList<>(fileConfiguration.getConfigurationSection("CAGES").getKeys(false));
|
||||||
for(String c : fileConfiguration.getConfigurationSection("CAGES").getKeys(false))
|
|
||||||
cages.add(c);
|
|
||||||
return cages;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Integer> getPointCage(String cage) {
|
public List<Integer> getPointCage(String cage) {
|
||||||
|
|||||||
Reference in New Issue
Block a user