From ae31b65652c03bad41406db979ed6e2c808adda2 Mon Sep 17 00:00:00 2001 From: John Paul Rutigliano Date: Sat, 25 Sep 2021 14:44:54 -0400 Subject: [PATCH] Fix fly command chat feedback. --- .../java/com/fibermc/essentialcommands/commands/FlyCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/fibermc/essentialcommands/commands/FlyCommand.java b/src/main/java/com/fibermc/essentialcommands/commands/FlyCommand.java index d8654621..a1cfabc3 100644 --- a/src/main/java/com/fibermc/essentialcommands/commands/FlyCommand.java +++ b/src/main/java/com/fibermc/essentialcommands/commands/FlyCommand.java @@ -78,7 +78,7 @@ public static void exec(ServerCommandSource source, ServerPlayerEntity target, b source.sendFeedback( TextUtil.concat( ECText.getInstance().getText("cmd.fly.feedback.1").setStyle(CONFIG.FORMATTING_DEFAULT.getValue()), - new LiteralText(playerAbilities.allowFlying ? "enabled" : "disabled").setStyle(CONFIG.FORMATTING_ACCENT.getValue()), + new LiteralText(shouldEnableFly ? "enabled" : "disabled").setStyle(CONFIG.FORMATTING_ACCENT.getValue()), ECText.getInstance().getText("cmd.fly.feedback.2").setStyle(CONFIG.FORMATTING_DEFAULT.getValue()), target.getDisplayName(), new LiteralText(".").setStyle(CONFIG.FORMATTING_DEFAULT.getValue())