mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Need English name for the permission.
This commit is contained in:
parent
27ba4ff800
commit
5e8b036481
@ -39,7 +39,7 @@ public class XplockCommand extends SpoutCommand {
|
||||
|
||||
SkillType skill = SkillType.getSkill(args[0]);
|
||||
|
||||
if (!sender.hasPermission("mcmmo.commands.xplock." + SkillTools.getSkillName(skill).toLowerCase())) {
|
||||
if (!sender.hasPermission("mcmmo.commands.xplock." + skill.toString().toLowerCase())) {
|
||||
sender.sendMessage(command.getPermissionMessage());
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user