mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-01 17:36:46 +01:00
Fixed /mccooldown
This commit is contained in:
parent
4b7d748920
commit
28419e1dc3
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user