diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-15 10:49:51 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-15 10:49:51 +0200 |
commit | d3afd7a67019124a7c6c46066c669fb5f9e93782 (patch) | |
tree | 156a3605fc121fc834f71a1e0360b0168adcab8c | |
parent | 9d121af8609ad2c0aaa9efef338412f746f4d2d7 (diff) | |
download | Essentials-d3afd7a67019124a7c6c46066c669fb5f9e93782.tar Essentials-d3afd7a67019124a7c6c46066c669fb5f9e93782.tar.gz Essentials-d3afd7a67019124a7c6c46066c669fb5f9e93782.tar.lz Essentials-d3afd7a67019124a7c6c46066c669fb5f9e93782.tar.xz Essentials-d3afd7a67019124a7c6c46066c669fb5f9e93782.zip |
Revert bed fix, because it's fixed in Bukkit now. Thanks to feildmaster
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Essentials.java | 1 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java | 12 |
2 files changed, 0 insertions, 13 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 6f9b9a944..fe0c3560c 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -164,7 +164,6 @@ public class Essentials extends JavaPlugin implements IEssentials pm.registerEvent(Type.PLAYER_EGG_THROW, playerListener, Priority.High, this); pm.registerEvent(Type.PLAYER_BUCKET_EMPTY, playerListener, Priority.High, this); pm.registerEvent(Type.PLAYER_ANIMATION, playerListener, Priority.High, this); - pm.registerEvent(Type.PLAYER_BED_ENTER, playerListener, Priority.Lowest, this); final EssentialsBlockListener blockListener = new EssentialsBlockListener(this); pm.registerEvent(Type.BLOCK_PLACE, blockListener, Priority.Lowest, this); diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java index 3d5851d93..9147acaf0 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java @@ -388,16 +388,4 @@ public class EssentialsPlayerListener extends PlayerListener user.updateActivity(true); } } - - @Override - public void onPlayerBedEnter(PlayerBedEnterEvent event) - { - if (event.isCancelled()) { - return; - } - if (event.getPlayer().isSleepingIgnored()) { - event.setCancelled(true); - event.getPlayer().sendMessage("You can't go to bed, your sleep is ignored."); - } - } } |