mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Add description caption for chat flag
This commit is contained in:
parent
714b8dad87
commit
6d9d0fff10
2 changed files with 2 additions and 1 deletions
|
@ -604,6 +604,7 @@ public enum Captions implements Caption {
|
||||||
+ " set to `default` to use the gamemode default, and `false` to disable flight entirely.", "Flags"),
|
+ " 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_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_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_DESCRIPTION("Plot description. Supports '&' color codes.", "Flags"),
|
||||||
FLAG_DESCRIPTION_GREETING("Message sent to players on plot entry. 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"),
|
FLAG_DESCRIPTION_FAREWELL("Message sent to players when leaving the plot. Supports '&' color codes.", "Flags"),
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class ChatFlag extends BooleanFlag<ChatFlag> {
|
||||||
public static final ChatFlag CHAT_FLAG_FALSE = new ChatFlag(false);
|
public static final ChatFlag CHAT_FLAG_FALSE = new ChatFlag(false);
|
||||||
|
|
||||||
protected ChatFlag(boolean value) {
|
protected ChatFlag(boolean value) {
|
||||||
super(value, Captions.FLAG_DESCRIPTION_DENY_EXIT);
|
super(value, Captions.FLAG_DESCRIPTION_CHAT);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override protected ChatFlag flagOf(@NotNull Boolean value) {
|
@Override protected ChatFlag flagOf(@NotNull Boolean value) {
|
||||||
|
|
Loading…
Reference in a new issue