Do not allow player who sneak to sit

This commit is contained in:
Shevchik 2013-12-14 18:21:24 +04:00
parent 38d9aaf229
commit 5e5ca198df

View File

@ -92,6 +92,10 @@ public class EventListener implements Listener {
WoodenStep wStep = null; WoodenStep wStep = null;
boolean blockOkay = false; boolean blockOkay = false;
if (player.isSneaking()) {
return false;
}
if (ignoreList.isIgnored(player.getName())) { if (ignoreList.isIgnored(player.getName())) {
return false; return false;
} }