Skip to content

Commit

Permalink
2.0.0-beta.5
Browse files Browse the repository at this point in the history
* Fix errors while reloading

Signed-off-by: TreyRuffy <[email protected]>
  • Loading branch information
TreyRuffy committed Jul 21, 2020
1 parent aaa5ef3 commit f63d1ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static String getBukkitVersion() {
return Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3];
}

public void fixCommands() {
public static void fixCommands() {
ConfigurationSection configuration = oldConfig() ? OldConfigManager.getDisabled().getConfigurationSection(
"DisabledCommands") : ConfigManager.getDisabled().getConfigurationSection("DisabledCommands");
assert configuration != null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ else if (args[0].equalsIgnoreCase("reload")) {
OldConfigManager.reloadOpDisabled();
OldConfigManager.reloadMessages();
}
new BukkitMain().fixCommands();
BukkitMain.fixCommands();
for (String message : Messages.getMessages("Main", "ReloadSuccessful")) {
sender.sendMessage(ChatColor.translateAlternateColorCodes('&', message));
}
Expand Down

0 comments on commit f63d1ed

Please sign in to comment.