SPIGOT-1055: Send empty string when RCON command is cancelled.

Drops the RemoteControlSession patch as the decompiled code is a mess.
This commit is contained in:
md_5
2015-07-17 21:18:48 +10:00
parent bf4818b94a
commit 3d5ab8fca9
2 changed files with 1 additions and 52 deletions

View File

@@ -224,7 +224,7 @@
+ RemoteServerCommandEvent event = new RemoteServerCommandEvent(remoteConsole, s);
+ server.getPluginManager().callEvent(event);
+ if (event.isCancelled()) {
+ return null;
+ return "";
+ }
+ // Event change end
+ ServerCommand serverCommand = new ServerCommand(event.getCommand(), RemoteControlCommandListener.getInstance());