mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +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
|
* @return true if the player has permissions, false otherwise
|
||||||
*/
|
*/
|
||||||
public boolean getPermissions(Player player) {
|
public boolean getPermissions(Player player) {
|
||||||
|
String skill;
|
||||||
|
if(this==blastMining) {
|
||||||
|
skill = "mining";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
skill = SkillType.byAbility(this).getName().toLowerCase();
|
||||||
|
}
|
||||||
return player.hasPermission("mcmmo.ability."
|
return player.hasPermission("mcmmo.ability."
|
||||||
+ SkillType.byAbility(this).getName().toLowerCase()
|
+ skill
|
||||||
+ "." + name.replace("_", "").toLowerCase());
|
+ "." + name.replace("_", "").toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user