mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Adding new permissions for the /xplock command.
This commit is contained in:
parent
ae5ab13533
commit
07df5edc86
@ -26,6 +26,10 @@ public class XplockCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Permissions.hasPermission(sender, "mcmmo.commands.xplock")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!mcMMO.spoutEnabled || !SpoutConfig.getInstance().getXPBarEnabled()) {
|
if (!mcMMO.spoutEnabled || !SpoutConfig.getInstance().getXPBarEnabled()) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Commands.Disabled"));
|
sender.sendMessage(LocaleLoader.getString("Commands.Disabled"));
|
||||||
return true;
|
return true;
|
||||||
@ -63,7 +67,7 @@ public class XplockCommand implements CommandExecutor {
|
|||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
if (SkillTools.isSkill(args[0])) {
|
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.setXpBarLocked(true);
|
||||||
spoutHud.setSkillLock(SkillTools.getSkillType(args[0]));
|
spoutHud.setSkillLock(SkillTools.getSkillType(args[0]));
|
||||||
spoutHud.updateXpBar();
|
spoutHud.updateXpBar();
|
||||||
|
@ -745,6 +745,7 @@ permissions:
|
|||||||
mcmmo.commands.taming: true
|
mcmmo.commands.taming: true
|
||||||
mcmmo.commands.unarmed: true
|
mcmmo.commands.unarmed: true
|
||||||
mcmmo.commands.woodcutting: true
|
mcmmo.commands.woodcutting: true
|
||||||
|
mcmmo.commands.xplock.all: true
|
||||||
mcmmo.commands.ability:
|
mcmmo.commands.ability:
|
||||||
description: Allows access to the mcability command
|
description: Allows access to the mcability command
|
||||||
children:
|
children:
|
||||||
@ -1071,6 +1072,55 @@ permissions:
|
|||||||
description: Allows access to the unarmed command
|
description: Allows access to the unarmed command
|
||||||
mcmmo.commands.woodcutting:
|
mcmmo.commands.woodcutting:
|
||||||
description: Allows access to the woodcutting command
|
description: Allows access to the woodcutting command
|
||||||
|
mcmmo.commands.xplock.*:
|
||||||
|
description: Implies access to all mcmmo.commands.xplock permissions
|
||||||
|
children:
|
||||||
|
mcmmo.commands.xplock.all: true
|
||||||
|
mcmmo.commands.xplock.all:
|
||||||
|
description: Implies access to all mcmmo.commands.xplock permissions
|
||||||
|
children:
|
||||||
|
mcmmo.commands.xplock: true
|
||||||
|
mcmmo.commands.xplock.acrobatics: true
|
||||||
|
mcmmo.commands.xplock.archery: true
|
||||||
|
mcmmo.commands.xplock.axes: true
|
||||||
|
mcmmo.commands.xplock.excavation: true
|
||||||
|
mcmmo.commands.xplock.fishing: true
|
||||||
|
mcmmo.commands.xplock.herbalism: true
|
||||||
|
mcmmo.commands.xplock.mining: true
|
||||||
|
mcmmo.commands.xplock.repair: true
|
||||||
|
mcmmo.commands.xplock.smelting: true
|
||||||
|
mcmmo.commands.xplock.swords: true
|
||||||
|
mcmmo.commands.xplock.taming: true
|
||||||
|
mcmmo.commands.xplock.unarmed: true
|
||||||
|
mcmmo.commands.xplock.woodcutting: true
|
||||||
|
mcmmo.commands.xplock:
|
||||||
|
description: Allows access to the xplock command
|
||||||
|
mcmmo.commands.xplock.acrobatics:
|
||||||
|
description: Allows access to the xplock command for acrobatics
|
||||||
|
mcmmo.commands.xplock.archery:
|
||||||
|
description: Allows access to the xplock command for archery
|
||||||
|
mcmmo.commands.xplock.axes:
|
||||||
|
description: Allows access to the xplock command for axes
|
||||||
|
mcmmo.commands.xplock.excavation:
|
||||||
|
description: Allows access to the xplock command for excavation
|
||||||
|
mcmmo.commands.xplock.fishing:
|
||||||
|
description: Allows access to the xplock command for fishing
|
||||||
|
mcmmo.commands.xplock.herbalism:
|
||||||
|
description: Allows access to the xplock command for herbalism
|
||||||
|
mcmmo.commands.xplock.mining:
|
||||||
|
description: Allows access to the xplock command for mining
|
||||||
|
mcmmo.commands.xplock.repair:
|
||||||
|
description: Allows access to the xplock command for repair
|
||||||
|
mcmmo.commands.xplock.smelting:
|
||||||
|
description: Allows access to the xplock command for smelting
|
||||||
|
mcmmo.commands.xplock.swords:
|
||||||
|
description: Allows access to the xplock command for swords
|
||||||
|
mcmmo.commands.xplock.taming:
|
||||||
|
description: Allows access to the xplock command for taming
|
||||||
|
mcmmo.commands.xplock.unarmed:
|
||||||
|
description: Allows access to the xplock command for unarmed
|
||||||
|
mcmmo.commands.xplock.woodcutting:
|
||||||
|
description: Allows access to the xplock command for woodcutting
|
||||||
mcmmo.commands.xprate.*:
|
mcmmo.commands.xprate.*:
|
||||||
description: Implies access to all mcmmo.commands.inspect permissions
|
description: Implies access to all mcmmo.commands.inspect permissions
|
||||||
children:
|
children:
|
||||||
@ -1129,51 +1179,64 @@ permissions:
|
|||||||
description: Allows access to the Acrobatics skill
|
description: Allows access to the Acrobatics skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.acrobatics: true
|
mcmmo.commands.acrobatics: true
|
||||||
|
mcmmo.commands.xplock.acrobatics: true
|
||||||
mcmmo.skills.archery:
|
mcmmo.skills.archery:
|
||||||
description: Allows access to the Archery skill
|
description: Allows access to the Archery skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.archery: true
|
mcmmo.commands.archery: true
|
||||||
|
mcmmo.commands.xplock.archery: true
|
||||||
mcmmo.skills.axes:
|
mcmmo.skills.axes:
|
||||||
description: Allows access to the Axes skill
|
description: Allows access to the Axes skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.axes: true
|
mcmmo.commands.axes: true
|
||||||
|
mcmmo.commands.xplock.axes: true
|
||||||
mcmmo.skills.excavation:
|
mcmmo.skills.excavation:
|
||||||
description: Allows access to the Excavation skill
|
description: Allows access to the Excavation skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.excavation: true
|
mcmmo.commands.excavation: true
|
||||||
|
mcmmo.commands.xplock.excavation: true
|
||||||
mcmmo.skills.fishing:
|
mcmmo.skills.fishing:
|
||||||
description: Allows access to the Fishing skill
|
description: Allows access to the Fishing skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.fishing: true
|
mcmmo.commands.fishing: true
|
||||||
|
mcmmo.commands.xplock.fishing: true
|
||||||
mcmmo.skills.herbalism:
|
mcmmo.skills.herbalism:
|
||||||
description: Allows access to the Herbalism skill
|
description: Allows access to the Herbalism skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.herbalism: true
|
mcmmo.commands.herbalism: true
|
||||||
|
mcmmo.commands.xplock.herbalism: true
|
||||||
mcmmo.skills.mining:
|
mcmmo.skills.mining:
|
||||||
description: Allows access to the Mining skill
|
description: Allows access to the Mining skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.mining: true
|
mcmmo.commands.mining: true
|
||||||
|
mcmmo.commands.xplock.mining: true
|
||||||
mcmmo.skills.repair:
|
mcmmo.skills.repair:
|
||||||
description: Allows access to the Repair skill
|
description: Allows access to the Repair skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.repair: true
|
mcmmo.commands.repair: true
|
||||||
|
mcmmo.commands.xplock.repair: true
|
||||||
mcmmo.skills.smelting:
|
mcmmo.skills.smelting:
|
||||||
description: Allows access to the Smelting skill
|
description: Allows access to the Smelting skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.smelting: true
|
mcmmo.commands.smelting: true
|
||||||
|
mcmmo.commands.xplock.smelting: true
|
||||||
mcmmo.skills.swords:
|
mcmmo.skills.swords:
|
||||||
description: Allows access to the Swords skill
|
description: Allows access to the Swords skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.swords: true
|
mcmmo.commands.swords: true
|
||||||
|
mcmmo.commands.xplock.swords: true
|
||||||
mcmmo.skills.taming:
|
mcmmo.skills.taming:
|
||||||
description: Allows access to the Taming skill
|
description: Allows access to the Taming skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.taming: true
|
mcmmo.commands.taming: true
|
||||||
|
mcmmo.commands.xplock.taming: true
|
||||||
mcmmo.skills.unarmed:
|
mcmmo.skills.unarmed:
|
||||||
description: Allows access to the Unarmed skill
|
description: Allows access to the Unarmed skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.unarmed: true
|
mcmmo.commands.unarmed: true
|
||||||
|
mcmmo.commands.xplock.unarmed: true
|
||||||
mcmmo.skills.woodcutting:
|
mcmmo.skills.woodcutting:
|
||||||
description: Allows access to the Woodcutting skill
|
description: Allows access to the Woodcutting skill
|
||||||
children:
|
children:
|
||||||
mcmmo.commands.woodcutting: true
|
mcmmo.commands.woodcutting: true
|
||||||
|
mcmmo.commands.xplock.woodcutting: true
|
||||||
|
Loading…
Reference in New Issue
Block a user