Fixed /mccooldown

This commit is contained in:
ile123ile 2014-09-01 18:44:13 -07:00
parent 4b7d748920
commit 28419e1dc3

View File

@ -258,8 +258,15 @@ public class AbilityType {
* @return true if the player has permissions, false otherwise
*/
public boolean getPermissions(Player player) {
String skill;
if(this==blastMining) {
skill = "mining";
}
else {
skill = SkillType.byAbility(this).getName().toLowerCase();
}
return player.hasPermission("mcmmo.ability."
+ SkillType.byAbility(this).getName().toLowerCase()
+ skill
+ "." + name.replace("_", "").toLowerCase());
}