mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Adding new permissions for the /xplock command.
This commit is contained in:
@ -26,6 +26,10 @@ public class XplockCommand implements CommandExecutor {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!Permissions.hasPermission(sender, "mcmmo.commands.xplock")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!mcMMO.spoutEnabled || !SpoutConfig.getInstance().getXPBarEnabled()) {
|
||||
sender.sendMessage(LocaleLoader.getString("Commands.Disabled"));
|
||||
return true;
|
||||
@ -63,7 +67,7 @@ public class XplockCommand implements CommandExecutor {
|
||||
|
||||
case 1:
|
||||
if (SkillTools.isSkill(args[0])) {
|
||||
if (Permissions.hasPermission(player, "mcmmo.skills." + args[0].toLowerCase())) {
|
||||
if (Permissions.hasPermission(player, "mcmmo.commands.xplock." + args[0].toLowerCase())) {
|
||||
spoutHud.setXpBarLocked(true);
|
||||
spoutHud.setSkillLock(SkillTools.getSkillType(args[0]));
|
||||
spoutHud.updateXpBar();
|
||||
|
Reference in New Issue
Block a user