Improve output for DevCommand reloadmodes

This commit is contained in:
2025-11-10 08:47:17 +01:00
parent 614e989892
commit f6261ad989
2 changed files with 8 additions and 1 deletions
@@ -35,6 +35,8 @@ STEAMWAR_BRAND=§eSteam§8War.de §7({0}) §r<- §e{1} §7({2})§r
DEV_NO_SERVER=§cThe server is currently not available.
DEV_UNKNOWN_SERVER=§cPlease specify a dev server.
DEV_RELOAD_MODES_OK=§aDone!
DEV_RELOAD_MODES_ERROR=§cError! {0}
DISABLED=§cCurrently disabled.
@@ -80,7 +80,12 @@ public class DevCommand extends SWCommand {
if(!sender.user().hasPerm(UserPerm.ADMINISTRATION))
return;
ArenaMode.init();
try {
ArenaMode.init();
sender.system("DEV_RELOAD_MODES_OK");
} catch (Exception e) {
sender.system("DEV_RELOAD_MODES_ERROR", e.getMessage());
}
}
@Register