diff --git a/common/src/main/java/me/caseload/knockbacksync/command/subcommand/StatusCommand.java b/common/src/main/java/me/caseload/knockbacksync/command/subcommand/StatusCommand.java index 1d26f7b..2b87310 100644 --- a/common/src/main/java/me/caseload/knockbacksync/command/subcommand/StatusCommand.java +++ b/common/src/main/java/me/caseload/knockbacksync/command/subcommand/StatusCommand.java @@ -25,6 +25,8 @@ public class StatusCommand implements BuilderCommand { private String globalStatusEnabledMessage; private String globalStatusDisabledMessage; + private String globalOffGroundStatusEnabledMessage; + private String globalOffGroundStatusDisabledMessage; private String playerStatusEnabledMessage; private String playerStatusDisabledMessage; private String playerStatusGlobalDisabledMessage; @@ -54,8 +56,10 @@ public void register(CommandManager manager) { // Show global status boolean globalStatus = configManager.isToggled(); sender.sendMessage(ChatUtil.translateAlternateColorCodes('&', - (globalStatus ? globalStatusEnabledMessage : globalStatusDisabledMessage)) - ); + (globalStatus ? globalStatusEnabledMessage : globalStatusDisabledMessage) + + "\n" + + (globalStatus ? globalOffGroundStatusEnabledMessage : globalOffGroundStatusDisabledMessage) + )); if (sender.hasPermission(STATUS_SELF_PERMISSION, true)) { // Show player status for the sender (no target specified) @@ -100,9 +104,13 @@ public void onConfigReload(ConfigReloadEvent event) { private void updateConfigValues() { ConfigWrapper config = configManager.getConfigWrapper(); this.globalStatusEnabledMessage = config.getString("messages.status.global.enabled", - "&eGlobal KnockbackSync status: &aEnabled"); + "&KnockbackSync global status: &aEnabled"); this.globalStatusDisabledMessage = config.getString("messages.status.global.disabled", - "&eGlobal KnockbackSync status: &cDisabled"); + "&KnockbackSync global status: &cDisabled"); + this.globalOffGroundStatusEnabledMessage = config.getString("messages.status.offground.enabled", + "&eKnockbackSync off-ground status: &aEnabled"); + this.globalOffGroundStatusDisabledMessage = config.getString("messages.status.offground.disabled", + "&eKnockbackSync off-ground status: &cDisabled"); this.playerStatusEnabledMessage = config.getString("messages.status.player.enabled", "&e%player%'s KnockbackSync status: &aEnabled"); this.playerStatusDisabledMessage = config.getString("messages.status.player.disabled", diff --git a/common/src/main/resources/config.yml b/common/src/main/resources/config.yml index 11207d0..ec5c7aa 100644 --- a/common/src/main/resources/config.yml +++ b/common/src/main/resources/config.yml @@ -209,8 +209,11 @@ messages: success: "&aSuccessfully reloaded KnockbackSync." status: global: - enabled: "&eGlobal KnockbackSync status: &aEnabled" - disabled: "&eGlobal KnockbackSync status: &cDisabled" + enabled: "&KnockbackSync global status: &aEnabled" + disabled: "&KnockbackSync global status: &cDisabled" + offground: + enabled: "&eKnockbackSync off-ground status: &aEnabled" + disabled: "&eKnockbackSync off-ground status: &cDisabled" player: enabled: "&e%player%'s KnockbackSync status: &aEnabled" disabled: "&e%player%'s KnockbackSync status: &cDisabled"