Skip to content

Commit

Permalink
added config option for radiation
Browse files Browse the repository at this point in the history
  • Loading branch information
iTwins committed Oct 5, 2023
1 parent 1a1c7c2 commit bd84084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ private void onPluginStart() {
// Armor Update Task
if (config.getBoolean("options.enable-armor-effects")) {
new SlimefunArmorTask().schedule(this, config.getInt("options.armor-update-interval") * 20L);
new RadiationTask().schedule(this, config.getInt("options.radiation-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"));
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd84084

Please sign in to comment.