@@ -41,20 +41,23 @@ public static void reload() {
4141 public static void addDefaults () {
4242 //config.yml
4343 //string lists
44- List <String > combatlist = Config .get ().getStringList ("combat.settings.disabled_worlds" );
45- combatlist .add ("example_world" );
46- List <String > gapplelist = Config .get ().getStringList ("general.settings.golden_apple_cooldown.disabled_worlds" );
47- gapplelist .add ("example_world" );
48- //actual config
49- List <String > itemslist = Config .get ().getStringList ("general.settings.disabled_items.items" );
50- itemslist .add ("item_frame" );
51- itemslist .add ("armor_stand" );
52- List <String > offhandworlds = Config .get ().getStringList ("general.settings.disable_offhand.disabled_worlds" );
53- offhandworlds .add ("example_world" );
54- List <String > craftingworlds = Config .get ().getStringList ("disabled_items.disabled_worlds" );
55- craftingworlds .add ("example_world" );
56- List <String > itemframerotation = Config .get ().getStringList ("disable_item_frame_rotation.disabled_worlds" );
57- itemframerotation .add ("example_world" );
44+ List <String > combatList = Config .get ().getStringList ("combat.settings.disabled_worlds" );
45+ combatList .add ("example_world" );
46+ List <String > gappleList = Config .get ().getStringList ("general.settings.golden_apple_cooldown.disabled_worlds" );
47+ gappleList .add ("example_world" );
48+ List <String > itemsList = Config .get ().getStringList ("general.settings.disabled_items.items" );
49+ itemsList .add ("item_frame" );
50+ itemsList .add ("armor_stand" );
51+ List <String > offhandWorlds = Config .get ().getStringList ("general.settings.disable_offhand.disabled_worlds" );
52+ offhandWorlds .add ("example_world" );
53+ List <String > craftingWorlds = Config .get ().getStringList ("disabled_items.disabled_worlds" );
54+ craftingWorlds .add ("example_world" );
55+ List <String > itemFrameRotation = Config .get ().getStringList ("disable_item_frame_rotation.disabled_worlds" );
56+ itemFrameRotation .add ("example_world" );
57+ List <String > epearlList = Config .get ().getStringList ("enderpearl_cooldown.disabled_worlds" );
58+ epearlList .add ("example_world" );
59+ List <String > customStats = Config .get ().getStringList ("custom.disabled_worlds" );
60+ customStats .add ("example_world" );
5861 Config .get ().options ().header ("+----------------------------------------------------------------------------------------------+" + "\n " + "| |" + "\n " + "| Combat Plus |" + "\n " + "| |" + "\n " + "| Discord: https://discord.gg/m7j2Y9H |" + "\n " + "| |" + "\n " + "| Author: Nik |" + "\n " + "| |" + "\n " + "+----------------------------------------------------------------------------------------------+" + "\n " );
5962 Config .get ().addDefault ("settings.check_for_updates" , true );
6063 Config .get ().addDefault ("settings.async" , false );
@@ -67,27 +70,32 @@ public static void addDefaults() {
6770 Config .get ().addDefault ("combat.settings.disable_sweep_attacks.ignore_sweeping_edge" , false );
6871 Config .get ().addDefault ("combat.settings.disable_arrow_boost" , true );
6972 Config .get ().addDefault ("combat.settings.old_player_regen" , true );
70- Config .get ().addDefault ("combat.settings.disabled_worlds" , combatlist );
73+ Config .get ().addDefault ("combat.settings.disabled_worlds" , combatList );
7174 Config .get ().addDefault ("golden_apple_cooldown.golden_apple.enabled" , true );
7275 Config .get ().addDefault ("golden_apple_cooldown.golden_apple.cooldown" , 10 );
76+ Config .get ().addDefault ("golden_apple_cooldown.golden_apple.actionbar" , true );
7377 Config .get ().addDefault ("golden_apple_cooldown.enchanted_golden_apple.enabled" , true );
7478 Config .get ().addDefault ("golden_apple_cooldown.enchanted_golden_apple.cooldown" , 20 );
75- Config .get ().addDefault ("golden_apple_cooldown.disabled_worlds" , gapplelist );
79+ Config .get ().addDefault ("golden_apple_cooldown.enchanted_golden_apple.actionbar" , true );
80+ Config .get ().addDefault ("golden_apple_cooldown.disabled_worlds" , gappleList );
7681 Config .get ().addDefault ("enderpearl_cooldown.enabled" , true );
7782 Config .get ().addDefault ("enderpearl_cooldown.cooldown" , 10 );
83+ Config .get ().addDefault ("enderpearl_cooldown.actionbar" , true );
84+ Config .get ().addDefault ("enderpearl_cooldown.disabled_worlds" , epearlList );
7885 Config .get ().addDefault ("disabled_items.enabled" , false );
79- Config .get ().addDefault ("disabled_items.items" , itemslist );
80- Config .get ().addDefault ("disabled_items.disabled_worlds" , craftingworlds );
86+ Config .get ().addDefault ("disabled_items.items" , itemsList );
87+ Config .get ().addDefault ("disabled_items.disabled_worlds" , craftingWorlds );
8188 Config .get ().addDefault ("disable_item_frame_rotation.enabled" , true );
82- Config .get ().addDefault ("disable_item_frame_rotation.disabled_worlds" , itemframerotation );
89+ Config .get ().addDefault ("disable_item_frame_rotation.disabled_worlds" , itemFrameRotation );
8390 Config .get ().addDefault ("disable_offhand.enabled" , true );
84- Config .get ().addDefault ("disable_offhand.disabled_worlds" , offhandworlds );
91+ Config .get ().addDefault ("disable_offhand.disabled_worlds" , offhandWorlds );
8592 Config .get ().addDefault ("fixes.kill_aura" , false );
8693 Config .get ().addDefault ("fixes.projectile_fixer" , true );
8794 Config .get ().addDefault ("fixes.invalid_criticals" , true );
8895 Config .get ().addDefault ("fixes.health_spoof" , true );
8996 Config .get ().addDefault ("custom.player_health.enabled" , false );
9097 Config .get ().addDefault ("custom.player_health.max_health" , 20 );
98+ Config .get ().addDefault ("custom.disabled_worlds" , customStats );
9199 Config .get ().addDefault ("advanced.settings.old_pvp.attack_speed" , 24 );
92100 Config .get ().addDefault ("advanced.settings.new_pvp.attack_speed" , 4 );
93101 Config .get ().addDefault ("advanced.settings.modifiers.old_swords_damage" , 1 );
0 commit comments