diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/settings')
7 files changed, 10 insertions, 13 deletions
diff --git a/Essentials/src/com/earth2me/essentials/settings/Chat.java b/Essentials/src/com/earth2me/essentials/settings/Chat.java index 7c02c0e88..d20d1dc68 100644 --- a/Essentials/src/com/earth2me/essentials/settings/Chat.java +++ b/Essentials/src/com/earth2me/essentials/settings/Chat.java @@ -12,13 +12,11 @@ public class Chat extends 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.") private boolean changeDisplayname = true; - private String displaynameFormat = "{PREFIX}{NICKNAMEPREFIX}{NAME}{SUFFIX}"; - - @Comment({ + @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 (!)", @@ -26,7 +24,6 @@ public class Chat extends StorageObject "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}"; } diff --git a/Essentials/src/com/earth2me/essentials/settings/Commands.java b/Essentials/src/com/earth2me/essentials/settings/Commands.java index 64a218476..ed4c3595b 100644 --- a/Essentials/src/com/earth2me/essentials/settings/Commands.java +++ b/Essentials/src/com/earth2me/essentials/settings/Commands.java @@ -34,7 +34,6 @@ public class Commands extends StorageObject "If god is set using WorldGuard, use /ungod to remove then use whichever you see fit." }) private List<String> overwritten = new ArrayList<String>(); - @ListType @Comment("Disabled commands will be completelly unavailable on the server.") private List<String> disabled = new ArrayList<String>(); diff --git a/Essentials/src/com/earth2me/essentials/settings/Groups.java b/Essentials/src/com/earth2me/essentials/settings/Groups.java index 06565d376..64b391300 100644 --- a/Essentials/src/com/earth2me/essentials/settings/Groups.java +++ b/Essentials/src/com/earth2me/essentials/settings/Groups.java @@ -11,8 +11,9 @@ import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) public class Groups extends StorageObject -{ - public Groups() { +{ + public Groups() + { GroupOptions defaultOptions = new GroupOptions(); groups.put("default", defaultOptions); } diff --git a/Essentials/src/com/earth2me/essentials/settings/commands/God.java b/Essentials/src/com/earth2me/essentials/settings/commands/God.java index 7740eaab1..3b38b70b0 100644 --- a/Essentials/src/com/earth2me/essentials/settings/commands/God.java +++ b/Essentials/src/com/earth2me/essentials/settings/commands/God.java @@ -5,8 +5,9 @@ import com.earth2me.essentials.storage.StorageObject; import lombok.Data; import lombok.EqualsAndHashCode; + @Data -@EqualsAndHashCode(callSuper=false) +@EqualsAndHashCode(callSuper = false) public class God extends StorageObject { @Comment("Turn off god mode when people exit") diff --git a/Essentials/src/com/earth2me/essentials/settings/commands/Kit.java b/Essentials/src/com/earth2me/essentials/settings/commands/Kit.java index 59b0b9a82..bd7c15eab 100644 --- a/Essentials/src/com/earth2me/essentials/settings/commands/Kit.java +++ b/Essentials/src/com/earth2me/essentials/settings/commands/Kit.java @@ -13,7 +13,6 @@ import lombok.EqualsAndHashCode; @EqualsAndHashCode(callSuper = false) public class Kit extends StorageObject { - public Kit() { final KitObject kit = new KitObject(); @@ -21,8 +20,6 @@ public class Kit extends StorageObject kit.setItems(Arrays.asList("277 1,278 1,279 1".split(","))); kits.put("tools", kit); } - - @MapType(KitObject.class) - private Map<String,KitObject> kits = new HashMap<String, KitObject>(); + private Map<String, KitObject> kits = new HashMap<String, KitObject>(); } diff --git a/Essentials/src/com/earth2me/essentials/settings/commands/Lightning.java b/Essentials/src/com/earth2me/essentials/settings/commands/Lightning.java index 510857247..b70bd0abf 100644 --- a/Essentials/src/com/earth2me/essentials/settings/commands/Lightning.java +++ b/Essentials/src/com/earth2me/essentials/settings/commands/Lightning.java @@ -5,6 +5,7 @@ import com.earth2me.essentials.storage.StorageObject; import lombok.Data; import lombok.EqualsAndHashCode; + @Data @EqualsAndHashCode(callSuper = false) public class Lightning extends StorageObject diff --git a/Essentials/src/com/earth2me/essentials/settings/commands/Spawnmob.java b/Essentials/src/com/earth2me/essentials/settings/commands/Spawnmob.java index 771da32d1..3c338b443 100644 --- a/Essentials/src/com/earth2me/essentials/settings/commands/Spawnmob.java +++ b/Essentials/src/com/earth2me/essentials/settings/commands/Spawnmob.java @@ -5,6 +5,7 @@ import com.earth2me.essentials.storage.StorageObject; import lombok.Data; import lombok.EqualsAndHashCode; + @Data @EqualsAndHashCode(callSuper = false) public class Spawnmob extends StorageObject |