Fixes 3168

This commit is contained in:
NotMyFault 2021-07-20 22:21:32 +02:00
parent 62e17f5fc5
commit 6d71e0f8be
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -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"));
}