public String d(String s) {
   RemoteControlCommandListener.instance.a();
   // CraftBukkit start
   RemoteServerCommandEvent event = new RemoteServerCommandEvent(this.remoteConsole, s);
   this.server.getPluginManager().callEvent(event);
   ServerCommand servercommand =
       new ServerCommand(event.getCommand(), RemoteControlCommandListener.instance);
   // this.consoleCommandHandler.handle(new ServerCommand(s,
   // RemoteControlCommandListener.instance)); // CraftBukkit - removed
   this.server.dispatchServerCommand(this.remoteConsole, servercommand); // CraftBukkit
   // CraftBukkit end
   return RemoteControlCommandListener.instance.b();
 }
Exemplo n.º 2
0
 @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = false)
 public void onRemoteServerCommand(final RemoteServerCommandEvent e) {
   logCommand("Remote", e.getSender().getName(), e.getCommand());
 }