diff options
author | sk89q <the.sk89q@gmail.com> | 2011-04-11 11:48:30 -0700 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-04-11 11:48:30 -0700 |
commit | 93a3e2448d0293836df461aa09d5e0290768a7cc (patch) | |
tree | b805eb8c391270bc5cfe945f2142616335a0a4b0 /src | |
parent | bd533b3c8a6aab7f128befda4b2802faf1456bb3 (diff) | |
download | bukkit-93a3e2448d0293836df461aa09d5e0290768a7cc.tar bukkit-93a3e2448d0293836df461aa09d5e0290768a7cc.tar.gz bukkit-93a3e2448d0293836df461aa09d5e0290768a7cc.tar.lz bukkit-93a3e2448d0293836df461aa09d5e0290768a7cc.tar.xz bukkit-93a3e2448d0293836df461aa09d5e0290768a7cc.zip |
Fixin' the problem of AFK people not in bed.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/entity/Player.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java index 0ed318c4..f30d2726 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -109,6 +109,23 @@ public interface Player extends HumanEntity, CommandSender { * Note: This will overwrite the players current inventory, health, motion, etc, with the state from the saved dat file. */ public void loadData(); + + /** + * Sets whether the player is ignored as not sleeping. If everyone is + * either sleeping or has this flag set, then time will advance to the + * next day. If everyone has this flag set but no one is actually in bed, + * then nothing will happen. + * + * @param isSleeping + */ + public void setSleepingIgnored(boolean isSleeping); + + /** + * Returns whether the player is sleeping ignored. + * + * @return + */ + public boolean isSleepingIgnored(); /** * Forces an update of the player's entire inventory. |