summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAlexander Hesse <webmasterœaquanasoft.de>2011-01-25 19:08:54 +0100
committerErik Broes <erikbroes@ripe.net>2011-02-08 17:12:51 +0100
commit6ad4ca2a426346e08228ce36564472468a8c2713 (patch)
tree23db4b38b07d43830c620e8bd47804cc8fdb1fcf /src/main/java/org
parent1a983aceb395bea98789ee396b899d9bb4a6258b (diff)
downloadcraftbukkit-6ad4ca2a426346e08228ce36564472468a8c2713.tar
craftbukkit-6ad4ca2a426346e08228ce36564472468a8c2713.tar.gz
craftbukkit-6ad4ca2a426346e08228ce36564472468a8c2713.tar.lz
craftbukkit-6ad4ca2a426346e08228ce36564472468a8c2713.tar.xz
craftbukkit-6ad4ca2a426346e08228ce36564472468a8c2713.zip
Implemented Sneak event
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java8
1 files changed, 8 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 3a929ee0..b90931fe 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -150,4 +150,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
entity.a.a(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
}
}
+
+ public void setSneaking(boolean sneak) {
+ entity.b(sneak);
+ }
+
+ public boolean isSneaking() {
+ return entity.J();
+ }
}