Improve empty global flag list message

This commit is contained in:
N0tMyFaultOG 2020-11-02 00:00:38 +01:00
parent 3f7f6af051
commit bc32581cbd
2 changed files with 2 additions and 1 deletions

View File

@ -411,7 +411,7 @@ public abstract class PlotArea {
private Component getFlagsComponent(Component flagsComponent, Collection<PlotFlag<?, ?>> flagCollection) {
if (flagCollection.isEmpty()) {
flagsComponent = MINI_MESSAGE.parse(TranslatableCaption.of("info.none").getComponent(LocaleHolder.console()));
flagsComponent = MINI_MESSAGE.parse(TranslatableCaption.of("flag.no_flags").getComponent(LocaleHolder.console()));
} else {
String prefix = " ";
for (final PlotFlag<?, ?> flag : flagCollection) {

View File

@ -536,6 +536,7 @@
"flag.not_valid_flag": "<red>That is not a valid flag.</red>",
"flag.not_valid_flag_suggested": "<prefix><gray>That is not a valid flag. Did you mean: </gray><gold><value></gold>",
"flag.not_valid_value": "<prefix><red>Flag values must be alphanumerical.</red>",
"flag.no_flags": "Global flags: None",
"flag.flag_not_removed": "<prefix><red>The flag could not be removed.</red>",
"flag.flag_not_added": "<prefix><red>The flag could not be added.</red>",
"flag.flag_removed": "<prefix><dark_aqua>The flag has been removed successfully.</dark_aqua>",