Add description caption for chat flag

This commit is contained in:
dordsor21 2020-04-16 12:49:00 +01:00
parent 714b8dad87
commit 6d9d0fff10
2 changed files with 2 additions and 1 deletions

View File

@ -604,6 +604,7 @@ public enum Captions implements Caption {
+ " set to `default` to use the gamemode default, and `false` to disable flight entirely.", "Flags"),
FLAG_DESCRIPTION_UNTRUSTED("Set to `false` to disallow untrusted players from visiting the plot.", "Flags"),
FLAG_DESCRIPTION_DENY_EXIT("Set to `true` to disallow players from exiting the plot.", "Flags"),
FLAG_DESCRIPTION_CHAT("Set to `false` to prevent plot chat on the plot .", "Flags"),
FLAG_DESCRIPTION_DESCRIPTION("Plot description. Supports '&' color codes.", "Flags"),
FLAG_DESCRIPTION_GREETING("Message sent to players on plot entry. Supports '&' color codes.", "Flags"),
FLAG_DESCRIPTION_FAREWELL("Message sent to players when leaving the plot. Supports '&' color codes.", "Flags"),

View File

@ -35,7 +35,7 @@ public class ChatFlag extends BooleanFlag<ChatFlag> {
public static final ChatFlag CHAT_FLAG_FALSE = new ChatFlag(false);
protected ChatFlag(boolean value) {
super(value, Captions.FLAG_DESCRIPTION_DENY_EXIT);
super(value, Captions.FLAG_DESCRIPTION_CHAT);
}
@Override protected ChatFlag flagOf(@NotNull Boolean value) {