diff --git a/src/main/java/com/gmail/nossr50/commands/player/McmmoCommand.java b/src/main/java/com/gmail/nossr50/commands/player/McmmoCommand.java index ffd5d8772..34458729f 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/McmmoCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/McmmoCommand.java @@ -11,10 +11,15 @@ import com.gmail.nossr50.mcMMO; import com.gmail.nossr50.config.Config; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.util.Anniversary; +import com.gmail.nossr50.util.Permissions; public class McmmoCommand implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { + if (!Permissions.hasPermission(sender, "mcmmo.commands.mcmmo")) { + return true; + } + String description = LocaleLoader.getString("mcMMO.Description"); String[] mcSplit = description.split(","); sender.sendMessage(mcSplit); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 051ddbc65..d6deb8887 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -723,6 +723,7 @@ permissions: children: mcmmo.commands.inspect: true mcmmo.commands.mcability: true + mcmmo.commands.mcmmo: true mcmmo.commands.mcrank: true mcmmo.commands.mcstats: true mcmmo.commands.mctop: true @@ -764,6 +765,8 @@ permissions: description: Allows access to the mcgod command mcmmo.commands.mcgod.others: description: Allows access to the mcgod command for other players + mcmmo.commands.mcmmo: + description: Allows access to the mcmmo command mcmmo.commands.mcrank: description: Allows access to the mcrank command mcmmo.commands.mcstats: