@@ -29,7 +29,6 @@ public class Kit {
29
29
private final KitEditRules editRules = new KitEditRules ();
30
30
private final KitGameRules gameRules = new KitGameRules ();
31
31
private boolean enabled ;
32
- private String knockbackProfile ;
33
32
private ItemStack displayIcon ;
34
33
private List <String > description ;
35
34
@@ -47,10 +46,7 @@ public static void init() {
47
46
48
47
Kit kit = new Kit (key );
49
48
kit .setEnabled (config .getBoolean (path + ".enabled" ));
50
-
51
- if (config .contains (path + ".knockback-profile" )) {
52
- kit .setKnockbackProfile (config .getString (path + ".knockback-profile" ));
53
- }
49
+ kit .setKnockbackProfile (config .getString (path + ".knockback-profile" ));
54
50
55
51
kit .setDisplayIcon (new ItemBuilder (Material .valueOf (config .getString (path + ".icon.material" )))
56
52
.durability (config .getInt (path + ".icon.durability" ))
@@ -73,6 +69,7 @@ public static void init() {
73
69
kit .getGameRules ().setHealthRegeneration (config .getBoolean (path + ".game-rules.health-regeneration" ));
74
70
kit .getGameRules ().setShowHealth (config .getBoolean (path + ".game-rules.show-health" ));
75
71
kit .getGameRules ().setHitDelay (config .getInt (path + ".game-rules.hit-delay" ));
72
+ kit .getGameRules ().setKnockbackProfile (config .getString (path + ".game-rules.knockback-profile" ))
76
73
kit .getEditRules ().setAllowPotionFill (config .getBoolean (".edit-rules.allow-potion-fill" ));
77
74
78
75
if (config .getConfigurationSection (path + ".edit-rules.items" ) != null ) {
@@ -130,10 +127,7 @@ public void save() {
130
127
configFile .getConfiguration ().set (path + ".game-rules.show-health" , gameRules .isShowHealth ());
131
128
configFile .getConfiguration ().set (path + ".game-rules.hit-delay" , gameRules .getHitDelay ());
132
129
configFile .getConfiguration ().set (path + ".game-rules.boxing" , gameRules .isBoxing ());
133
-
134
- if (knockbackProfile != null ) {
135
- configFile .getConfiguration ().set (path + ".knockback-profile" , knockbackProfile );
136
- }
130
+ configFile .getConfiguration ().set (path + ".game-rules.knockback-profile" , knockbackProfile );
137
131
138
132
try {
139
133
configFile .getConfiguration ().save (configFile .getFile ());
0 commit comments