2 Commits

Author SHA1 Message Date
Jack
8954e93310 bump to 1.1.2 2022-10-28 15:20:17 -04:00
Jack
123ed65d36 actually disable default weather cycle (oops) 2022-10-28 15:20:00 -04:00
2 changed files with 6 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ plugins {
}
group = 'io.github.Jack1424'
version = '1.1.1'
version = '1.1.2'
repositories {
mavenCentral()

View File

@@ -154,6 +154,10 @@ public final class RealTimeWeather extends JavaPlugin implements Listener {
return;
}
for (World world : getServer().getWorlds())
if (world.getEnvironment().equals(World.Environment.NORMAL))
world.setGameRule(GameRule.DO_WEATHER_CYCLE, false);
getServer().getScheduler().scheduleSyncRepeatingTask(this, () -> {
debug("Syncing weather...");