mirror of
https://github.com/songoda/UltimateRepairing.git
synced 2024-11-01 00:10:19 +01:00
change how we get the config variables
This commit is contained in:
parent
7c60989f08
commit
8d798f7680
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user