mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Improve empty global flag list message
This commit is contained in:
parent
3f7f6af051
commit
bc32581cbd
@ -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) {
|
||||
|
@ -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>",
|
||||
|
Loading…
Reference in New Issue
Block a user