mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 17:23:42 +01:00 
			
		
		
		
	Fixed /mccooldown
This commit is contained in:
		| @@ -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()); | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ile123ile
					ile123ile