Merge branch 'master' of github.com:essentials/Essentials into essmaster

This commit is contained in:
KHobbits 2011-09-29 00:34:10 +01:00
commit a8cfbe1eab
3 changed files with 493 additions and 494 deletions

View File

@ -94,16 +94,9 @@ public class EssentialsPlayerListener extends PlayerListener
final Location from = event.getFrom(); final Location from = event.getFrom();
final Location to = event.getTo().clone(); final Location to = event.getTo().clone();
to.setX(from.getX()); to.setX(from.getX());
to.setY(from.getY()); to.setY(from.getBlock().getTypeId() == 0 ? from.getY() - 1 : from.getY());
to.setZ(from.getZ()); to.setZ(from.getZ());
try
{
event.setTo(Util.getSafeDestination(to));
}
catch (Exception ex)
{
event.setTo(to); event.setTo(to);
}
return; return;
} }

View File

@ -55,7 +55,7 @@ public class BPermissionsHandler implements IPermissionsHandler
@Override @Override
public boolean canBuild(final Player base, final String group) public boolean canBuild(final Player base, final String group)
{ {
return hasPermission(base, "bPermissions.build"); return hasPermission(base, "essentials.build") || hasPermission(base, "bPermissions.build");
} }
@Override @Override

View File

@ -74,4 +74,10 @@ public class PermissionsBukkitHandler extends SuperpermsHandler
} }
return false; return false;
} }
@Override
public boolean canBuild(Player base, String group)
{
return base.hasPermission("essentials.build") || base.hasPermission("permissions.build");
}
} }