mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
Make ACF aware of the permission nodes for the commands it handles
Fixes #4396
This commit is contained in:
parent
4b4643f510
commit
f43f3a7fb1
@ -3,6 +3,7 @@ package com.gmail.nossr50.commands.chat;
|
|||||||
import co.aikar.commands.BaseCommand;
|
import co.aikar.commands.BaseCommand;
|
||||||
import co.aikar.commands.BukkitCommandIssuer;
|
import co.aikar.commands.BukkitCommandIssuer;
|
||||||
import co.aikar.commands.annotation.CommandAlias;
|
import co.aikar.commands.annotation.CommandAlias;
|
||||||
|
import co.aikar.commands.annotation.CommandPermission;
|
||||||
import co.aikar.commands.annotation.Conditions;
|
import co.aikar.commands.annotation.Conditions;
|
||||||
import co.aikar.commands.annotation.Default;
|
import co.aikar.commands.annotation.Default;
|
||||||
import com.gmail.nossr50.commands.CommandManager;
|
import com.gmail.nossr50.commands.CommandManager;
|
||||||
@ -12,6 +13,7 @@ import com.gmail.nossr50.mcMMO;
|
|||||||
import com.gmail.nossr50.util.player.UserManager;
|
import com.gmail.nossr50.util.player.UserManager;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
@CommandPermission("mcmmo.chat.adminchat")
|
||||||
@CommandAlias("ac|a|adminchat|achat") //Kept for historical reasons
|
@CommandAlias("ac|a|adminchat|achat") //Kept for historical reasons
|
||||||
public class AdminChatCommand extends BaseCommand {
|
public class AdminChatCommand extends BaseCommand {
|
||||||
private final @NotNull mcMMO pluginRef;
|
private final @NotNull mcMMO pluginRef;
|
||||||
|
@ -3,6 +3,7 @@ package com.gmail.nossr50.commands.chat;
|
|||||||
import co.aikar.commands.BaseCommand;
|
import co.aikar.commands.BaseCommand;
|
||||||
import co.aikar.commands.BukkitCommandIssuer;
|
import co.aikar.commands.BukkitCommandIssuer;
|
||||||
import co.aikar.commands.annotation.CommandAlias;
|
import co.aikar.commands.annotation.CommandAlias;
|
||||||
|
import co.aikar.commands.annotation.CommandPermission;
|
||||||
import co.aikar.commands.annotation.Conditions;
|
import co.aikar.commands.annotation.Conditions;
|
||||||
import co.aikar.commands.annotation.Default;
|
import co.aikar.commands.annotation.Default;
|
||||||
import com.gmail.nossr50.commands.CommandManager;
|
import com.gmail.nossr50.commands.CommandManager;
|
||||||
@ -16,6 +17,7 @@ import com.gmail.nossr50.util.text.StringUtils;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
@CommandPermission("mcmmo.chat.partychat")
|
||||||
@CommandAlias("pc|p|partychat|pchat") //Kept for historical reasons
|
@CommandAlias("pc|p|partychat|pchat") //Kept for historical reasons
|
||||||
public class PartyChatCommand extends BaseCommand {
|
public class PartyChatCommand extends BaseCommand {
|
||||||
private final @NotNull mcMMO pluginRef;
|
private final @NotNull mcMMO pluginRef;
|
||||||
|
Loading…
Reference in New Issue
Block a user