This commit is contained in:
okx-code
2019-08-20 22:45:17 +01:00
parent 4e4c6114ee
commit 10131fdb33
+4 -3
View File
@@ -223,15 +223,16 @@ public class Rankup extends JavaPlugin {
Bukkit.getPluginManager().callEvent(new RankupRegisterEvent(this));
rankups = new Rankups(this, loadConfig("rankups.yml"));
// check rankups are not in an infinite loop
rankups.getOrderedList();
if (config.getBoolean("prestige")) {
prestiges = new Prestiges(this, loadConfig("prestiges.yml"));
prestiges.getOrderedList();
} else {
prestiges = null;
}
// check rankups are not in an infinite loop
rankups.getOrderedList();
prestiges.getOrderedList();
} catch (Exception e) {
this.errorMessage = e.getMessage();
e.printStackTrace();