mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
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:
@ -265,7 +265,10 @@ public class BukkitPlayer extends PlotPlayer<Player> {
|
||||
switch (weather) {
|
||||
case CLEAR -> this.player.setPlayerWeather(WeatherType.CLEAR);
|
||||
case RAIN -> this.player.setPlayerWeather(WeatherType.DOWNFALL);
|
||||
default -> this.player.resetPlayerWeather();
|
||||
case WORLD -> this.player.resetPlayerWeather();
|
||||
default -> {
|
||||
//do nothing as this is PlotWeather.OFF
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user