mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 00:30:07 +01:00
Removed redundant permissions check for skill commands.
This commit is contained in:
parent
7fbf3d4f27
commit
54e5be1961
@ -19,7 +19,6 @@ import com.gmail.nossr50.util.Users;
|
|||||||
public abstract class SkillCommand implements CommandExecutor {
|
public abstract class SkillCommand implements CommandExecutor {
|
||||||
private SkillType skill;
|
private SkillType skill;
|
||||||
private String skillString;
|
private String skillString;
|
||||||
private String permission;
|
|
||||||
|
|
||||||
protected Player player;
|
protected Player player;
|
||||||
protected PlayerProfile profile;
|
protected PlayerProfile profile;
|
||||||
@ -33,7 +32,6 @@ public abstract class SkillCommand implements CommandExecutor {
|
|||||||
public SkillCommand(SkillType skill) {
|
public SkillCommand(SkillType skill) {
|
||||||
this.skill = skill;
|
this.skill = skill;
|
||||||
this.skillString = Misc.getCapitalized(skill.toString());
|
this.skillString = Misc.getCapitalized(skill.toString());
|
||||||
this.permission = "mcmmo.skills." + skillString.toLowerCase();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -42,10 +40,6 @@ public abstract class SkillCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CommandHelper.noCommandPermissions(sender, permission)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
player = (Player) sender;
|
player = (Player) sender;
|
||||||
profile = Users.getProfile(player);
|
profile = Users.getProfile(player);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user