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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
package net.ess3.settings;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.ess3.storage.Comment;
import net.ess3.storage.StorageObject;
@Data
@EqualsAndHashCode(callSuper = false)
public class General implements StorageObject
{
@Comment("Backup runs a command while saving is disabled")
private Backup backup = new Backup();
@Comment("You can disable the death messages of minecraft.")
private boolean deathMessages = true;
@Comment("Turn this on, if you want to see more error messages, if something goes wrong.")
private boolean debug = false;
@Comment(
"Set the locale here, if you want to change the language of Essentials.\n"
+ "If this is not set, Essentials will use the language of your computer.\n"
+ "Available locales: da, de, en, fr, nl")
private String locale;
@Comment(
"The number of items given, if the quantity parameter is left out in /item or /give.\n"
+ "If this number is below 1, the maximum stack size size is given. If oversized stacks\n"
+ "is not enabled, any number higher then the maximum stack size results in more than one stack.")
private int defaultStacksize = -1;
@Comment(
"Oversized stacks are stacks that ignore the normal max stacksize.\n"
+ "They can be obtained using /give and /item, if the player has essentials.oversizedstacks permission.\n"
+ "How many items should be in a oversized stack?")
private int oversizedStacksize = 64;
public enum GroupStorage
{
FILE, GROUPMANAGER, VAULT
}
@Comment(
"Sets the place where group options should be stored:\n"
+ " FILE: Options are stored inside groups.yml in the Essentials folder\n"
+ " GROUPMANAGER: Options are stored using the GroupManager groups\n"
+ " VAULT: Options are stored using a permissions plugin supported by Vault")
private GroupStorage groupStorage = GroupStorage.FILE;
@Comment(
"Set to true to enable per-world permissions for teleporting between worlds with essentials commands\n"
+ "This applies to /world, /back, /tp[a|o][here|all], but not warps.\n"
+ "Give someone permission to teleport to a world with essentials.world.<worldname>")
private boolean worldTeleportPermissions = false;
private boolean worldHomePermissions = false;
@Comment("Set to true to enable per-group teleporting permissions.")
private boolean perGroupTeleport = false;
@Comment("Delay to wait before people can cause attack damage after logging in ")
private long loginAttackDelay = 0;
public long getLoginAttackDelay()
{
return loginAttackDelay * 1000;
}
public void setLoginAttackDelay(long loginAttackDelay)
{
this.loginAttackDelay = loginAttackDelay / 1000;
}
private Boolean metricsEnabled = null;
@Comment("The join message when players join the server")
private String joinMessage = "&e{PLAYER} has joined the game";
@Comment("The quit message when players leave the server")
private String leaveMessage = "&e{PLAYER} has left the game";
@Comment("Enable this to clear powertools when a player disconnects.")
private boolean ptClearOnQuit = false;
@Comment("Enable this to clear powertools when a player changes worlds.")
private boolean ptClearOnWorldChange = false;
}
|