From f6261ad989a5b662fbe0608f3ddd189f986ee26a Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Mon, 10 Nov 2025 08:47:17 +0100 Subject: [PATCH] Improve output for DevCommand reloadmodes --- .../src/de/steamwar/messages/BungeeCore.properties | 2 ++ .../src/de/steamwar/velocitycore/commands/DevCommand.java | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/VelocityCore/src/de/steamwar/messages/BungeeCore.properties b/VelocityCore/src/de/steamwar/messages/BungeeCore.properties index 9eb776fb..5677b367 100644 --- a/VelocityCore/src/de/steamwar/messages/BungeeCore.properties +++ b/VelocityCore/src/de/steamwar/messages/BungeeCore.properties @@ -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. diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/DevCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/DevCommand.java index 320b5064..45479c39 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/DevCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/DevCommand.java @@ -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