Implement "off" to PlotWeather flag and make it default

- Players with "player weather" will no longer have their weather reset on plots that do not set the PlotWeather flag
This commit is contained in:
dordsor21
2021-06-10 11:41:55 +01:00
parent df842c355e
commit e2700d3b28
4 changed files with 20 additions and 8 deletions

View File

@ -276,10 +276,12 @@ public class BukkitPlayer extends PlotPlayer<Player> {
case RAIN:
this.player.setPlayerWeather(WeatherType.DOWNFALL);
break;
case RESET:
default:
case WORLD:
this.player.resetPlayerWeather();
break;
default:
//do nothing as this is PlotWeather.OFF
break;
}
}