Added config options for particles and holograms by default

This commit is contained in:
Aurora 2020-08-14 18:10:30 +02:00
parent 294fd465f0
commit 7c60989f08
No known key found for this signature in database
GPG Key ID: 89839F67B53656AD
2 changed files with 8 additions and 2 deletions

View File

@ -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);
}

View File

@ -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