[FIX] Фикс некоторых RequestEvent

This commit is contained in:
Gravit 2019-04-03 23:02:01 +07:00
parent 04cdfcb360
commit 558ad30e24
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
5 changed files with 10 additions and 4 deletions

View file

@ -1,5 +1,6 @@
package ru.gravit.launcher.events.request;
import ru.gravit.launcher.LauncherNetworkAPI;
import ru.gravit.launcher.request.ResultInterface;
import ru.gravit.utils.event.EventInterface;
@ -11,7 +12,7 @@ public class ErrorRequestEvent implements ResultInterface, EventInterface {
public ErrorRequestEvent(String error) {
this.error = error;
}
@LauncherNetworkAPI
public final String error;
@Override

View file

@ -1,5 +1,6 @@
package ru.gravit.launcher.events.request;
import ru.gravit.launcher.LauncherNetworkAPI;
import ru.gravit.launcher.request.ResultInterface;
public class ExecCommandRequestEvent implements ResultInterface {
@ -7,7 +8,7 @@ public class ExecCommandRequestEvent implements ResultInterface {
public String getType() {
return "execCmd";
}
@LauncherNetworkAPI
boolean success;
public ExecCommandRequestEvent(boolean success) {

View file

@ -1,5 +1,6 @@
package ru.gravit.launcher.events.request;
import ru.gravit.launcher.LauncherNetworkAPI;
import ru.gravit.launcher.request.ResultInterface;
import ru.gravit.utils.event.EventInterface;
@ -11,7 +12,7 @@ public class JoinServerRequestEvent implements EventInterface, ResultInterface {
public JoinServerRequestEvent(boolean allow) {
this.allow = allow;
}
@LauncherNetworkAPI
public boolean allow;
@Override

View file

@ -1,5 +1,6 @@
package ru.gravit.launcher.events.request;
import ru.gravit.launcher.LauncherNetworkAPI;
import ru.gravit.launcher.request.ResultInterface;
public class LogEvent implements ResultInterface {
@ -7,7 +8,7 @@ public class LogEvent implements ResultInterface {
public String getType() {
return "log";
}
@LauncherNetworkAPI
public String string;
public LogEvent(String string) {

View file

@ -1,5 +1,6 @@
package ru.gravit.launcher.events.request;
import ru.gravit.launcher.LauncherNetworkAPI;
import ru.gravit.launcher.profiles.ClientProfile;
import ru.gravit.launcher.request.ResultInterface;
import ru.gravit.utils.event.EventInterface;
@ -8,6 +9,7 @@
public class SetProfileRequestEvent implements ResultInterface, EventInterface {
private static final UUID uuid = UUID.fromString("08c0de9e-4364-4152-9066-8354a3a48541");
@LauncherNetworkAPI
public ClientProfile newProfile;
public SetProfileRequestEvent(ClientProfile newProfile) {