Removed redundant permissions check for skill commands.

This commit is contained in:
GJ 2013-02-01 13:43:24 -05:00
parent 7fbf3d4f27
commit 54e5be1961

View File

@ -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);