mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fixes 3168
This commit is contained in:
parent
62e17f5fc5
commit
6d71e0f8be
@ -105,9 +105,9 @@ public class Music extends SubCommand {
|
|||||||
}
|
}
|
||||||
plot.removeFlag(event.getFlag());
|
plot.removeFlag(event.getFlag());
|
||||||
getPlayer().sendMessage(TranslatableCaption.of("flag.flag_removed"),
|
getPlayer().sendMessage(TranslatableCaption.of("flag.flag_removed"),
|
||||||
Template.of("flag", String.valueOf(event.getFlag())),
|
Template.of("flag", "music"),
|
||||||
Template.of("value", String.valueOf(event.getFlag().getValue())
|
Template.of("value", "music_disc")
|
||||||
));
|
);
|
||||||
} else if (item.getName().toLowerCase(Locale.ENGLISH).contains("disc")) {
|
} else if (item.getName().toLowerCase(Locale.ENGLISH).contains("disc")) {
|
||||||
PlotFlag<?, ?> plotFlag = plot.getFlagContainer().getFlag(MusicFlag.class)
|
PlotFlag<?, ?> plotFlag = plot.getFlagContainer().getFlag(MusicFlag.class)
|
||||||
.createFlagInstance(item.getType());
|
.createFlagInstance(item.getType());
|
||||||
@ -120,9 +120,8 @@ public class Music extends SubCommand {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
plot.setFlag(event.getFlag());
|
plot.setFlag(event.getFlag());
|
||||||
getPlayer().sendMessage(TranslatableCaption.of("flag.flag_added"), Template.of("flag",
|
getPlayer().sendMessage(TranslatableCaption.of("flag.flag_added"), Template.of("flag", "music"),
|
||||||
String.valueOf(event.getFlag())
|
Template.of("value", String.valueOf(event.getFlag().getValue())));
|
||||||
), Template.of("value", String.valueOf(event.getFlag().getValue())));
|
|
||||||
} else {
|
} else {
|
||||||
getPlayer().sendMessage(TranslatableCaption.of("flag.flag_not_added"));
|
getPlayer().sendMessage(TranslatableCaption.of("flag.flag_not_added"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user