Merge branch '1.6.x' of https://github.com/ProSavage/SavageFactions into 1.6.x
This commit is contained in:
@@ -214,8 +214,6 @@ public class CmdFly extends FCommand {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
List<Entity> entities = me.getNearbyEntities(16, 256, 16);
|
||||
for (int i = 0; i <= entities.size() - 1; i++) {
|
||||
if (entities.get(i) instanceof Player) {
|
||||
|
||||
@@ -47,9 +47,9 @@ public abstract class FCommand extends MCommand<P> {
|
||||
}
|
||||
|
||||
public boolean hasAccess() {
|
||||
if (this.permission == null || this.fme == null) return false;
|
||||
if (this.actionPermission == null || this.fme == null) return false;
|
||||
if (!this.fme.isAdminBypassing()) {
|
||||
Access access = myFaction.getAccess(this.fme, permission);
|
||||
Access access = myFaction.getAccess(this.fme, this.actionPermission);
|
||||
if (access != Access.ALLOW && this.fme.getRole() != Role.ADMIN) {
|
||||
return false;
|
||||
}
|
||||
@@ -57,9 +57,9 @@ public abstract class FCommand extends MCommand<P> {
|
||||
return true;
|
||||
}
|
||||
public boolean hasAccess(boolean checkifAdmin) {
|
||||
if (this.permission == null || this.fme == null) return false;
|
||||
if (this.actionPermission == null || this.fme == null) return false;
|
||||
if (!this.fme.isAdminBypassing() && checkifAdmin) {
|
||||
Access access = myFaction.getAccess(this.fme, permission);
|
||||
Access access = myFaction.getAccess(this.fme, this.actionPermission);
|
||||
if (access != Access.ALLOW && this.fme.getRole() != Role.ADMIN) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user