Java 类org.bukkit.event.server.RemoteServerCommandEvent 实例源码

项目:Recreator    文件:Recreator.java   
@EventHandler(priority = EventPriority.MONITOR)
public void processCommands(RemoteServerCommandEvent evt) {
    if (evt.isCancelled() || evt.isAsynchronous()) return;

    Command cmd = CommandFactory.commands.get(evt.getCommand());
    if (cmd == null || cmd instanceof PlayerOnly) return;

    cmd.run(evt.getSender());
}
项目:TatsuCraftMod    文件:TFM_ServerListener.java   
@Deprecated // Moved to TFM_TelnetListener
@EventHandler(priority = EventPriority.NORMAL)
public void onRemoteServerCommand(RemoteServerCommandEvent event)
{
    if (TFM_CommandBlocker.getInstance().isCommandBlocked(event.getCommand(), event.getSender()))
    {
        event.setCommand("");
    }
}
项目:LuckPerms    文件:BukkitPlatformListener.java   
@EventHandler
public void onRemoteServerCommand(RemoteServerCommandEvent e) {
    handleCommand(e.getSender(), e.getCommand().toLowerCase(), e);
}