Need English name for the permission.

This commit is contained in:
GJ 2013-02-15 13:22:13 -05:00
parent 27ba4ff800
commit 5e8b036481

View File

@ -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;
}