mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Add config option for radiation (#3988)
This commit is contained in:
parent
dc821736c4
commit
6ce0911a16
@ -367,9 +367,13 @@ public final class Slimefun extends JavaPlugin implements SlimefunAddon {
|
||||
// Armor Update Task
|
||||
if (config.getBoolean("options.enable-armor-effects")) {
|
||||
new SlimefunArmorTask().schedule(this, config.getInt("options.armor-update-interval") * 20L);
|
||||
if (config.getBoolean("options.enable-radiation")) {
|
||||
new RadiationTask().schedule(this, config.getInt("options.radiation-update-interval") * 20L);
|
||||
}
|
||||
new RainbowArmorTask().schedule(this, config.getInt("options.rainbow-armor-update-interval") * 20L);
|
||||
new SolarHelmetTask().schedule(this, config.getInt("options.armor-update-interval"));
|
||||
} else if (config.getBoolean("options.enable-radiation")) {
|
||||
logger.log(Level.WARNING, "Cannot enable radiation while armor effects are disabled.");
|
||||
}
|
||||
|
||||
// Starting our tasks
|
||||
|
@ -8,6 +8,7 @@ options:
|
||||
chat-prefix: '&a&lSlimefun 4&7> '
|
||||
armor-update-interval: 10
|
||||
enable-armor-effects: true
|
||||
enable-radiation: true
|
||||
radiation-update-interval: 1
|
||||
radiation-grace-period: 15
|
||||
rainbow-armor-update-interval: 3
|
||||
|
Loading…
Reference in New Issue
Block a user