Skip to content

Commit

Permalink
fix null problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Draww committed Jan 22, 2020
1 parent c561c8c commit 7ac4763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/me/draww/superrup/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public void onEnable() {
ranksConfig = new Config(this, "ranks.yml", true);
templateConfig = new Config(this, "template.yml", true);
languageConfig = new Config(this, "language.yml", true);
api = new SuperRankupAPI(this);
jsFolder = new File(getDataFolder(), "scripts");
if (!jsFolder.exists()) { //noinspection ResultOfMethodCallIgnored
jsFolder.mkdirs();
Expand All @@ -58,7 +59,6 @@ public void onEnable() {
this.getServer().getPluginManager().disablePlugin(this);
return;
}
api = new SuperRankupAPI(this);
rankManager = new RankManager(this);
rankManager.setup();
getCommand("rank").setExecutor(new RankCommand());
Expand Down

0 comments on commit 7ac4763

Please sign in to comment.