mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Adding a permission for the /mchud command.
This commit is contained in:
parent
fc40f545fe
commit
ae5ab13533
@ -12,6 +12,7 @@ import com.gmail.nossr50.locale.LocaleLoader;
|
|||||||
import com.gmail.nossr50.spout.SpoutConfig;
|
import com.gmail.nossr50.spout.SpoutConfig;
|
||||||
import com.gmail.nossr50.spout.huds.HudType;
|
import com.gmail.nossr50.spout.huds.HudType;
|
||||||
import com.gmail.nossr50.spout.huds.SpoutHud;
|
import com.gmail.nossr50.spout.huds.SpoutHud;
|
||||||
|
import com.gmail.nossr50.util.Permissions;
|
||||||
import com.gmail.nossr50.util.Users;
|
import com.gmail.nossr50.util.Users;
|
||||||
|
|
||||||
public class MchudCommand implements CommandExecutor {
|
public class MchudCommand implements CommandExecutor {
|
||||||
@ -24,6 +25,10 @@ public class MchudCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Permissions.hasPermission(sender, "mcmmo.commands.mchud")) {
|
||||||
|
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;
|
||||||
|
@ -728,6 +728,7 @@ permissions:
|
|||||||
mcmmo.commands.herbalism: true
|
mcmmo.commands.herbalism: true
|
||||||
mcmmo.commands.inspect: true
|
mcmmo.commands.inspect: true
|
||||||
mcmmo.commands.mcability: true
|
mcmmo.commands.mcability: true
|
||||||
|
mcmmo.commands.mchud: true
|
||||||
mcmmo.commands.mcmmo: true
|
mcmmo.commands.mcmmo: true
|
||||||
mcmmo.commands.mcrank: true
|
mcmmo.commands.mcrank: true
|
||||||
mcmmo.commands.mcstats: true
|
mcmmo.commands.mcstats: true
|
||||||
@ -792,6 +793,8 @@ permissions:
|
|||||||
description: Allows access to the mcgod command
|
description: Allows access to the mcgod command
|
||||||
mcmmo.commands.mcgod.others:
|
mcmmo.commands.mcgod.others:
|
||||||
description: Allows access to the mcgod command for other players
|
description: Allows access to the mcgod command for other players
|
||||||
|
mcmmo.commands.mchud:
|
||||||
|
description: Allows access to the mchud command
|
||||||
mcmmo.commands.mcmmo:
|
mcmmo.commands.mcmmo:
|
||||||
description: Allows access to the mcmmo command
|
description: Allows access to the mcmmo command
|
||||||
mcmmo.commands.mcpurge:
|
mcmmo.commands.mcpurge:
|
||||||
|
Loading…
Reference in New Issue
Block a user