From 6d71e0f8be1c71ccc070f3bea5bb59f6850c5334 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Tue, 20 Jul 2021 22:21:32 +0200 Subject: [PATCH] Fixes 3168 --- .../main/java/com/plotsquared/core/command/Music.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Music.java b/Core/src/main/java/com/plotsquared/core/command/Music.java index 698ec023c..2f47e3b31 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Music.java +++ b/Core/src/main/java/com/plotsquared/core/command/Music.java @@ -105,9 +105,9 @@ public class Music extends SubCommand { } plot.removeFlag(event.getFlag()); getPlayer().sendMessage(TranslatableCaption.of("flag.flag_removed"), - Template.of("flag", String.valueOf(event.getFlag())), - Template.of("value", String.valueOf(event.getFlag().getValue()) - )); + Template.of("flag", "music"), + Template.of("value", "music_disc") + ); } else if (item.getName().toLowerCase(Locale.ENGLISH).contains("disc")) { PlotFlag plotFlag = plot.getFlagContainer().getFlag(MusicFlag.class) .createFlagInstance(item.getType()); @@ -120,9 +120,8 @@ public class Music extends SubCommand { return true; } plot.setFlag(event.getFlag()); - getPlayer().sendMessage(TranslatableCaption.of("flag.flag_added"), Template.of("flag", - String.valueOf(event.getFlag()) - ), Template.of("value", String.valueOf(event.getFlag().getValue()))); + getPlayer().sendMessage(TranslatableCaption.of("flag.flag_added"), Template.of("flag", "music"), + Template.of("value", String.valueOf(event.getFlag().getValue()))); } else { getPlayer().sendMessage(TranslatableCaption.of("flag.flag_not_added")); }