mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-16 03:24:03 +00:00
Propagate FAWE diff annotations down the bukkit module
- Minor upstream merge
This commit is contained in:
@@ -113,8 +113,10 @@ public class BukkitCommandSender extends AbstractNonPlayerActor {
|
||||
return true;
|
||||
}
|
||||
|
||||
//FAWE start
|
||||
@Override public void setPermission(String permission, boolean value) {
|
||||
}
|
||||
//FAWE end
|
||||
|
||||
@Override
|
||||
public void checkPermission(String permission) throws AuthorizationException {
|
||||
@@ -140,10 +142,12 @@ public class BukkitCommandSender extends AbstractNonPlayerActor {
|
||||
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
//FAWE start - check if sender instanceof Entity, before returning true
|
||||
if (sender instanceof Entity) {
|
||||
Entity entity = (Entity) sender;
|
||||
return entity.isValid() && !entity.isDead();
|
||||
}
|
||||
//FAWE end
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user