mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-03 10:43:45 +01:00 
			
		
		
		
	Add description caption for chat flag
This commit is contained in:
		@@ -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) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user