diff options
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index f8dbbee7..70111e7a 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -24,6 +24,7 @@ import org.bukkit.*; import org.bukkit.Achievement; import org.bukkit.Material; import org.bukkit.Statistic; +import org.bukkit.WeatherType; import org.bukkit.World; import org.bukkit.configuration.serialization.DelegateDeserialization; import org.bukkit.conversations.Conversation; @@ -497,6 +498,18 @@ public class CraftPlayer extends CraftHumanEntity implements Player { setPlayerTime(0, true); } + public void setPlayerWeather(WeatherType type) { + getHandle().setPlayerWeather(type, true); + } + + public WeatherType getPlayerWeather() { + return getHandle().getPlayerWeather(); + } + + public void resetPlayerWeather() { + getHandle().resetPlayerWeather(); + } + public boolean isBanned() { return server.getHandle().getNameBans().isBanned(getName().toLowerCase()); } |