mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
Merge branch 'hotfix/4.3.3b2'
This commit is contained in:
commit
d18f0ee80a
4 changed files with 7 additions and 7 deletions
|
@ -22,15 +22,15 @@ public void reply() throws Exception {
|
||||||
requestError("Access denied");
|
requestError("Access denied");
|
||||||
writeNoError(output);
|
writeNoError(output);
|
||||||
String cmd = input.readString(SerializeLimits.MAX_COMMAND);
|
String cmd = input.readString(SerializeLimits.MAX_COMMAND);
|
||||||
LogHelper.Output loutput = message -> {
|
LogHelper.OutputEnity loutput = new LogHelper.OutputEnity(message -> {
|
||||||
try {
|
try {
|
||||||
output.writeBoolean(true);
|
output.writeBoolean(true);
|
||||||
output.writeString(message, SerializeLimits.MAX_COMMAND);
|
output.writeString(message, SerializeLimits.MAX_COMMAND);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LogHelper.error(e);
|
LogHelper.error(e);
|
||||||
}
|
}
|
||||||
};
|
}, LogHelper.OutputTypes.PLAIN);
|
||||||
LogHelper.addOutput(loutput, LogHelper.OutputTypes.PLAIN);
|
LogHelper.addOutput(loutput);
|
||||||
try {
|
try {
|
||||||
server.commandHandler.eval(cmd, false);
|
server.commandHandler.eval(cmd, false);
|
||||||
output.writeBoolean(false);
|
output.writeBoolean(false);
|
||||||
|
|
|
@ -14,7 +14,7 @@ public class Client {
|
||||||
public boolean checkSign;
|
public boolean checkSign;
|
||||||
public ClientPermissions permissions;
|
public ClientPermissions permissions;
|
||||||
public String username;
|
public String username;
|
||||||
public LogHelper.Output logOutput;
|
public LogHelper.OutputEnity logOutput;
|
||||||
|
|
||||||
public Client(long session) {
|
public Client(long session) {
|
||||||
this.session = 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);
|
LogHelper.info("Client %s remove log listener", client.username);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
client.logOutput = output;
|
client.logOutput = new LogHelper.OutputEnity(output,outputType);
|
||||||
LogHelper.addOutput(output, outputType);
|
LogHelper.addOutput(client.logOutput);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ public final class Launcher {
|
||||||
public static final int MAJOR = 4;
|
public static final int MAJOR = 4;
|
||||||
public static final int MINOR = 3;
|
public static final int MINOR = 3;
|
||||||
public static final int PATCH = 3;
|
public static final int PATCH = 3;
|
||||||
public static final int BUILD = 1;
|
public static final int BUILD = 2;
|
||||||
public static final Version.Type RELEASE = Version.Type.STABLE;
|
public static final Version.Type RELEASE = Version.Type.STABLE;
|
||||||
public static GsonBuilder gsonBuilder;
|
public static GsonBuilder gsonBuilder;
|
||||||
public static Gson gson;
|
public static Gson gson;
|
||||||
|
|
Loading…
Reference in a new issue