summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/settings/Chat.java
blob: 44bafc395d7cc2ab0d8cdbc4e30b5b4e768ce84e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package net.ess3.settings;

import net.ess3.storage.Comment;
import net.ess3.storage.StorageObject;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = false)
public class Chat implements StorageObject
{
	@Comment("The character(s) to prefix all nicknames, so that you know they are not true usernames.")
	private String nicknamePrefix = "~";
	@Comment(
	{
		"Disable this if you have any other plugin, that modifies the displayname of a user.",
		"If it is not set, it will be enabled if EssentialsChat is installed, otherwise not."
	})
	private Boolean changeDisplayname = true;
	private String displaynameFormat = "{PREFIX}{NICKNAMEPREFIX}{NAME}{SUFFIX}";
	@Comment(
	{
		"If EssentialsChat is installed, this will define how far a player's voice travels, in blocks.  Set to 0 to make all chat global.",
		"Note that users with the \"essentials.chat.spy\" permission will hear everything, regardless of this setting.",
		"Users with essentials.chat.shout can override this by prefixing text with an exclamation mark (!)",
		"Or with essentials.chat.question can override this by prefixing text with a question mark (?)",
		"You can add command costs for shout/question by adding chat-shout and chat-question to the command costs section."
	})
	private int localRadius = 0;
	@Comment("Set the default chat format here, it will be overwritten by group specific chat formats.")
	private String defaultFormat = "&7[{GROUP}]&f {DISPLAYNAME}&7:&f {MESSAGE}";
}