mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-13 11:04:42 +02:00
mcchatspy is now a command based instead of permission node based
This commit is contained in:
@ -3,6 +3,7 @@ package com.gmail.nossr50.util.commands;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.gmail.nossr50.commands.chat.McChatSpy;
|
||||
import org.bukkit.command.PluginCommand;
|
||||
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
@ -169,6 +170,15 @@ public final class CommandRegistrationManager {
|
||||
command.setExecutor(new McgodCommand());
|
||||
}
|
||||
|
||||
private static void registerMcChatSpyCommand() {
|
||||
PluginCommand command = mcMMO.p.getCommand("mcchatspy");
|
||||
command.setDescription(LocaleLoader.getString("Commands.Description.mcchatspy"));
|
||||
command.setPermission("mcmmo.commands.mcchatspy;mcmmo.commands.mcchatspy.others");
|
||||
command.setPermissionMessage(permissionsMessage);
|
||||
command.setUsage(LocaleLoader.getString("Commands.Usage.1", "mcchatspy", "[" + LocaleLoader.getString("Commands.Usage.Player") + "]"));
|
||||
command.setExecutor(new McChatSpy());
|
||||
}
|
||||
|
||||
private static void registerMcrefreshCommand() {
|
||||
PluginCommand command = mcMMO.p.getCommand("mcrefresh");
|
||||
command.setDescription(LocaleLoader.getString("Commands.Description.mcrefresh"));
|
||||
@ -435,6 +445,7 @@ public final class CommandRegistrationManager {
|
||||
registerKrakenCommand();
|
||||
registerMcabilityCommand();
|
||||
registerMcgodCommand();
|
||||
registerMcChatSpyCommand();
|
||||
registerMcmmoCommand();
|
||||
registerMcnotifyCommand();
|
||||
registerMcrefreshCommand();
|
||||
|
Reference in New Issue
Block a user