forked from SteamWar/SteamWar
Improve output for DevCommand reloadmodes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user