mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 00:59:44 +03:00
[HOTFIX] Исправлен ExecCommand
This commit is contained in:
parent
2e1aa5918a
commit
88b72a13f3
3 changed files with 6 additions and 6 deletions
|
@ -22,15 +22,15 @@ public void reply() throws Exception {
|
|||
requestError("Access denied");
|
||||
writeNoError(output);
|
||||
String cmd = input.readString(SerializeLimits.MAX_COMMAND);
|
||||
LogHelper.Output loutput = message -> {
|
||||
LogHelper.OutputEnity loutput = new LogHelper.OutputEnity(message -> {
|
||||
try {
|
||||
output.writeBoolean(true);
|
||||
output.writeString(message, SerializeLimits.MAX_COMMAND);
|
||||
} catch (IOException e) {
|
||||
LogHelper.error(e);
|
||||
}
|
||||
};
|
||||
LogHelper.addOutput(loutput, LogHelper.OutputTypes.PLAIN);
|
||||
}, LogHelper.OutputTypes.PLAIN);
|
||||
LogHelper.addOutput(loutput);
|
||||
try {
|
||||
server.commandHandler.eval(cmd, false);
|
||||
output.writeBoolean(false);
|
||||
|
|
|
@ -14,7 +14,7 @@ public class Client {
|
|||
public boolean checkSign;
|
||||
public ClientPermissions permissions;
|
||||
public String username;
|
||||
public LogHelper.Output logOutput;
|
||||
public LogHelper.OutputEnity logOutput;
|
||||
|
||||
public Client(long session) {
|
||||
this.session = session;
|
||||
|
|
|
@ -43,8 +43,8 @@ public void execute(WebSocketService service, ChannelHandlerContext ctx, Client
|
|||
LogHelper.info("Client %s remove log listener", client.username);
|
||||
}
|
||||
};
|
||||
client.logOutput = output;
|
||||
LogHelper.addOutput(output, outputType);
|
||||
client.logOutput = new LogHelper.OutputEnity(output,outputType);
|
||||
LogHelper.addOutput(client.logOutput);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue