mirror of
https://github.com/songoda/UltimateRepairing.git
synced 2024-11-01 00:10:19 +01:00
Added config options for particles and holograms by default
This commit is contained in:
parent
294fd465f0
commit
7c60989f08
@ -28,8 +28,8 @@ public class BlockListeners implements Listener {
|
||||
}
|
||||
|
||||
UAnvil anvil = instance.getAnvilManager().getAnvil(event.getBlock());
|
||||
anvil.setParticles(true);
|
||||
anvil.setHologram(true);
|
||||
anvil.setParticles(instance.getConfig().getBoolean("Main.Show Particles By Default"));
|
||||
anvil.setHologram(instance.getConfig().getBoolean("Main.Show Holograms By Default"));
|
||||
anvil.setPermPlaced(true);
|
||||
}
|
||||
|
||||
|
@ -69,6 +69,12 @@ public class Settings {
|
||||
public static final ConfigSetting LANGUGE_MODE = new ConfigSetting(config, "System.Language Mode", "en_US",
|
||||
"The enabled language file.",
|
||||
"More language files (if available) can be found in the plugins data folder.");
|
||||
|
||||
public static final ConfigSetting SHOW_PARTICLES_BY_DEFAULT = new ConfigSetting(config, "Main.Show Particles By Default", true,
|
||||
"Should particles be enabled when an anvil is placed down?");
|
||||
|
||||
public static final ConfigSetting SHOW_HOLOGRAMS_BY_DEFAULT = new ConfigSetting(config, "Main.Show Holograms By Default", true,
|
||||
"Should holograms be enabled when an anvil is placed down?");
|
||||
|
||||
/**
|
||||
* In order to set dynamic economy comment correctly, this needs to be
|
||||
|
Loading…
Reference in New Issue
Block a user