change how we get the config variables

This commit is contained in:
Aurora 2020-08-18 12:40:14 +02:00 committed by Brianna
parent 7c60989f08
commit 8d798f7680

View File

@ -2,6 +2,7 @@ package com.songoda.ultimaterepairing.listeners;
import com.songoda.ultimaterepairing.UltimateRepairing;
import com.songoda.ultimaterepairing.anvil.UAnvil;
import com.songoda.ultimaterepairing.settings.Settings;
import com.songoda.ultimaterepairing.utils.Methods;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
@ -28,8 +29,8 @@ public class BlockListeners implements Listener {
}
UAnvil anvil = instance.getAnvilManager().getAnvil(event.getBlock());
anvil.setParticles(instance.getConfig().getBoolean("Main.Show Particles By Default"));
anvil.setHologram(instance.getConfig().getBoolean("Main.Show Holograms By Default"));
anvil.setParticles(Settings.SHOW_PARTICLES_BY_DEFAULT.getBoolean());
anvil.setHologram(Settings.SHOW_HOLOGRAMS_BY_DEFAULT.getBoolean());
anvil.setPermPlaced(true);
}