Alowed performing undos from other player sessions, if they exist.

This commit is contained in:
zml2008
2011-08-29 14:24:35 -07:00
parent a3186c2ce4
commit 02d8acfa81
4 changed files with 54 additions and 7 deletions

View File

@@ -631,4 +631,10 @@ public abstract class LocalPlayer {
public int hashCode() {
return getName().hashCode();
}
public void checkPermission(String permission) throws WorldEditPermissionException {
if (!hasPermission(permission)) {
throw new WorldEditPermissionException();
}
}
}