From b9e2da1b82ce60ea23e7b9300a7f78eee334d2f5 Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Sun, 29 Sep 2013 13:15:08 +0200 Subject: [PATCH] Use of new configuration styles --- .../limitedcreative/inventories/ArmoryConfig.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/jaschastarke/minecraft/limitedcreative/inventories/ArmoryConfig.java b/src/main/java/de/jaschastarke/minecraft/limitedcreative/inventories/ArmoryConfig.java index 56b2afe..c0d0630 100644 --- a/src/main/java/de/jaschastarke/minecraft/limitedcreative/inventories/ArmoryConfig.java +++ b/src/main/java/de/jaschastarke/minecraft/limitedcreative/inventories/ArmoryConfig.java @@ -14,6 +14,7 @@ import de.jaschastarke.bukkit.lib.configuration.command.ICommandConfigCallback; import de.jaschastarke.bukkit.lib.items.MaterialDataNotRecognizedException; import de.jaschastarke.bukkit.lib.items.MaterialNotRecognizedException; import de.jaschastarke.bukkit.lib.items.ItemUtils; +import de.jaschastarke.configuration.ConfigurationStyle; import de.jaschastarke.configuration.IConfigurationSubGroup; import de.jaschastarke.configuration.annotations.IsConfigurationNode; import de.jaschastarke.maven.ArchiveDocComments; @@ -108,15 +109,15 @@ public class ArmoryConfig extends Configuration implements IConfigurationSubGrou public Object getHead() { return config.get("head", "CHAINMAIL_HELMET"); } - @IsConfigurationNode(order = 501) + @IsConfigurationNode(order = 501, style = ConfigurationStyle.GROUPED_PREVIOUS) public Object getChest() { return config.get("chest", "CHAINMAIL_CHESTPLATE"); } - @IsConfigurationNode(order = 502) + @IsConfigurationNode(order = 502, style = ConfigurationStyle.GROUPED_PREVIOUS) public Object getLegs() { return config.get("legs", "CHAINMAIL_LEGGINGS"); } - @IsConfigurationNode(order = 503) + @IsConfigurationNode(order = 503, style = ConfigurationStyle.GROUPED_PREVIOUS) public Object getFeet() { return config.get("feet", "CHAINMAIL_BOOTS"); }