mirror of
https://github.com/ME1312/SubServers-2.git
synced 2025-01-25 00:51:22 +01:00
Remove individual packet versioning
This commit is contained in:
parent
0c5a89608b
commit
6d457200fe
@ -88,9 +88,4 @@ public class PacketAddServer implements PacketObjectIn<Integer>, PacketObjectOut
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -52,9 +52,4 @@ public class PacketCheckPermission implements PacketObjectIn<Integer>, PacketObj
|
||||
public void receive(SubDataClient client, ObjectMap<Integer> data) throws Throwable {
|
||||
client.sendPacket(new PacketCheckPermissionResponse(data.getUUID(0x0001), data.getString(0x0002), (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -51,9 +51,4 @@ public class PacketCheckPermissionResponse implements PacketObjectIn<Integer>, P
|
||||
for (Consumer<Boolean> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data.getBoolean(0x0001));
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -93,9 +93,4 @@ public class PacketCommandServer implements PacketObjectIn<Integer>, PacketObjec
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -91,9 +91,4 @@ public class PacketCreateServer implements PacketObjectIn<Integer>, PacketObject
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -99,9 +99,4 @@ public class PacketDeleteServer implements PacketObjectIn<Integer>, PacketObject
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -98,9 +98,4 @@ public class PacketDisconnectPlayer implements PacketObjectIn<Integer>, PacketOb
|
||||
callback.accept(-1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -80,9 +80,4 @@ public class PacketDownloadGroupInfo implements PacketObjectIn<Integer>, PacketO
|
||||
public void receive(SubDataClient client, ObjectMap<Integer> data) {
|
||||
client.sendPacket(new PacketDownloadGroupInfo(plugin, (data.contains(0x0001))?data.getStringList(0x0001):null, (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -68,9 +68,4 @@ public class PacketDownloadHostInfo implements PacketObjectIn<Integer>, PacketOb
|
||||
public void receive(SubDataClient client, ObjectMap<Integer> data) {
|
||||
client.sendPacket(new PacketDownloadHostInfo(plugin, (data.contains(0x0001))?data.getStringList(0x0001):null, (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -52,9 +52,4 @@ public class PacketDownloadLang implements PacketObjectIn<Integer>, PacketObject
|
||||
public void receive(SubDataClient client, ObjectMap<Integer> data) {
|
||||
client.sendPacket(new PacketDownloadLang(plugin, (data != null && data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -101,9 +101,4 @@ public class PacketDownloadPlatformInfo implements PacketObjectIn<Integer>, Pack
|
||||
public void receive(SubDataClient client, ObjectMap<Integer> data) {
|
||||
client.sendPacket(new PacketDownloadPlatformInfo(plugin, (data != null && data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -81,9 +81,4 @@ public class PacketDownloadPlayerInfo implements PacketObjectIn<Integer>, Packet
|
||||
public void receive(SubDataClient client, ObjectMap<Integer> data) {
|
||||
client.sendPacket(new PacketDownloadPlayerInfo(plugin, (data.contains(0x0001))?data.getStringList(0x0001):null, (data.contains(0x0002))?data.getUUIDList(0x0002):null, (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -71,9 +71,4 @@ public class PacketDownloadProxyInfo implements PacketObjectIn<Integer>, PacketO
|
||||
public void receive(SubDataClient client, ObjectMap<Integer> data) {
|
||||
client.sendPacket(new PacketDownloadProxyInfo(plugin, (data.contains(0x0001))?data.getStringList(0x0001):null, (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -68,9 +68,4 @@ public class PacketDownloadServerInfo implements PacketObjectIn<Integer>, Packet
|
||||
public void receive(SubDataClient client, ObjectMap<Integer> data) {
|
||||
client.sendPacket(new PacketDownloadServerInfo(plugin, (data.contains(0x0001))?data.getStringList(0x0001):null, (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -96,9 +96,4 @@ public class PacketEditServer implements PacketObjectIn<Integer>, PacketObjectOu
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -69,9 +69,4 @@ public class PacketExAddServer implements PacketObjectIn<Integer>, PacketObjectO
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
@ -47,9 +47,4 @@ public class PacketExConfigureHost implements PacketObjectIn<Integer>, PacketObj
|
||||
Try.all.run(() -> Util.reflect(ExternalSubCreator.class.getDeclaredField("enableRT"), ((ExternalHost) client.getHandler()).getCreator(), ((data == null || data.getBoolean(0x0000, false))?null:false)));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -54,9 +54,4 @@ public class PacketExControlPlayer implements PacketObjectIn<Integer>, PacketObj
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -102,9 +102,4 @@ public class PacketExControlServer implements PacketObjectIn<Integer>, PacketObj
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -120,9 +120,4 @@ public class PacketExCreateServer implements PacketObjectIn<Integer>, PacketObje
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
@ -57,9 +57,4 @@ public class PacketExDeleteServer implements PacketObjectIn<Integer>, PacketObje
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
@ -55,9 +55,4 @@ public class PacketExDisconnectPlayer implements PacketObjectIn<Integer>, Packet
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -81,9 +81,4 @@ public class PacketExDownloadTemplates implements PacketIn, PacketStreamOut {
|
||||
client.sendPacket(new PacketExDownloadTemplates(plugin, (ExternalHost) client.getHandler()));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0002;
|
||||
}
|
||||
}
|
||||
|
@ -57,9 +57,4 @@ public class PacketExMessagePlayer implements PacketObjectIn<Integer>, PacketObj
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -50,9 +50,4 @@ public class PacketExRemoveServer implements PacketObjectIn<Integer>, PacketObje
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
@ -110,9 +110,4 @@ public class PacketExSyncPlayer implements PacketObjectIn<Integer>, PacketObject
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -55,9 +55,4 @@ public class PacketExTransferPlayer implements PacketObjectIn<Integer>, PacketOb
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -62,9 +62,4 @@ public class PacketExUploadTemplates implements PacketObjectIn<Integer>, PacketO
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0002;
|
||||
}
|
||||
}
|
||||
|
@ -38,11 +38,6 @@ public class PacketInExLogMessage implements PacketObjectIn<Integer> {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0002;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register External Logger
|
||||
*
|
||||
|
@ -31,9 +31,4 @@ public class PacketInExRequestQueue implements PacketIn {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -31,9 +31,4 @@ public class PacketInReload implements PacketObjectIn<Integer> {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -99,9 +99,4 @@ public class PacketLinkExHost implements InitialPacket, PacketObjectIn<Integer>,
|
||||
++req;
|
||||
last = now;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -105,9 +105,4 @@ public class PacketLinkProxy implements InitialPacket, PacketObjectIn<Integer>,
|
||||
++req;
|
||||
last = now;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -179,9 +179,4 @@ public class PacketLinkServer implements InitialPacket, PacketObjectIn<Integer>,
|
||||
client.sendPacket(new PacketLinkServer(null, 4, "Server already linked"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -143,9 +143,4 @@ public class PacketMessagePlayer implements PacketObjectIn<Integer>, PacketObjec
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -87,9 +87,4 @@ public class PacketOutExEditServer implements PacketObjectOut<Integer> {
|
||||
data.set(0x0002, Arrays.asList(args));
|
||||
return data;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0002;
|
||||
}
|
||||
}
|
||||
|
@ -29,9 +29,4 @@ public class PacketOutExReload implements PacketObjectOut<Integer> {
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -29,9 +29,4 @@ public class PacketOutExReset implements PacketObjectOut<Integer> {
|
||||
return json;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -52,11 +52,6 @@ public class PacketOutExRunEvent implements Listener, PacketObjectOut<Integer> {
|
||||
return json;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
|
||||
private void broadcast(PacketOutExRunEvent packet) {
|
||||
broadcast(null, packet);
|
||||
}
|
||||
|
@ -95,9 +95,4 @@ public class PacketRemoveServer implements PacketObjectIn<Integer>, PacketObject
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -98,9 +98,4 @@ public class PacketRestartServer implements PacketObjectIn<Integer>, PacketObjec
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -103,9 +103,4 @@ public class PacketStartServer implements PacketObjectIn<Integer>, PacketObjectO
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -97,9 +97,4 @@ public class PacketStopServer implements PacketObjectIn<Integer>, PacketObjectOu
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -99,9 +99,4 @@ public class PacketTransferPlayer implements PacketObjectIn<Integer>, PacketObje
|
||||
callback.accept(-1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -100,9 +100,4 @@ public class PacketUpdateServer implements PacketObjectIn<Integer>, PacketObject
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -53,9 +53,4 @@ public class PacketCheckPermission implements Forwardable, PacketObjectIn<Intege
|
||||
public void receive(SubDataSender client, ObjectMap<Integer> data) throws Throwable {
|
||||
client.sendPacket(new PacketCheckPermissionResponse(data.getUUID(0x0001), data.getString(0x0002), (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -52,9 +52,4 @@ public class PacketCheckPermissionResponse implements Forwardable, PacketObjectI
|
||||
for (Consumer<Boolean> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data.getBoolean(0x0001));
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -42,9 +42,4 @@ public class PacketDownloadLang implements PacketObjectIn<Integer>, PacketOut {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -60,9 +60,4 @@ public class PacketExControlPlayer implements PacketObjectIn<Integer>, PacketObj
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -34,9 +34,4 @@ public class PacketInExReload implements PacketObjectIn<Integer> {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -17,9 +17,4 @@ public class PacketInExReset implements PacketObjectIn<Integer> {
|
||||
else Bukkit.getLogger().warning("SubData > Received shutdown signal");
|
||||
Bukkit.shutdown();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -168,11 +168,6 @@ public class PacketInExRunEvent implements PacketObjectIn<Integer> {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
|
||||
public static void callback(String event, Consumer<ObjectMap<String>> callback) {
|
||||
List<Consumer<ObjectMap<String>>> callbacks = (PacketInExRunEvent.callbacks.keySet().contains(event))? PacketInExRunEvent.callbacks.get(event):new ArrayList<Consumer<ObjectMap<String>>>();
|
||||
callbacks.add(callback);
|
||||
|
@ -81,9 +81,4 @@ public class PacketLinkServer implements InitialPacket, PacketObjectIn<Integer>,
|
||||
plugin.onDisable();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -115,9 +115,4 @@ public class PacketAddServer implements PacketObjectIn<Integer>, PacketObjectOut
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -62,9 +62,4 @@ public class PacketCommandServer implements PacketObjectIn<Integer>, PacketObjec
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -91,9 +91,4 @@ public class PacketCreateServer implements PacketObjectIn<Integer>, PacketObject
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -60,9 +60,4 @@ public class PacketDeleteServer implements PacketObjectIn<Integer>, PacketObject
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -54,9 +54,4 @@ public class PacketDisconnectPlayer implements PacketObjectIn<Integer>, PacketOb
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -59,9 +59,4 @@ public class PacketDownloadGroupInfo implements PacketObjectIn<Integer>, PacketO
|
||||
}
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -53,9 +53,4 @@ public class PacketDownloadHostInfo implements PacketObjectIn<Integer>, PacketOb
|
||||
for (Consumer<ObjectMap<String>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(new ObjectMap<String>((Map<String, ?>) data.getObject(0x0001)));
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -42,9 +42,4 @@ public class PacketDownloadPlatformInfo implements PacketObjectIn<Integer>, Pack
|
||||
for (Consumer<ObjectMap<String>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(new ObjectMap<String>((Map<String, ?>) data.getObject(0x0001)));
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -66,9 +66,4 @@ public class PacketDownloadPlayerInfo implements PacketObjectIn<Integer>, Packet
|
||||
for (Consumer<ObjectMap<String>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(new ObjectMap<String>((Map<String, ?>) data.getObject(0x0001)));
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -59,9 +59,4 @@ public class PacketDownloadProxyInfo implements PacketObjectIn<Integer>, PacketO
|
||||
}
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -53,9 +53,4 @@ public class PacketDownloadServerInfo implements PacketObjectIn<Integer>, Packet
|
||||
for (Consumer<ObjectMap<String>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(new ObjectMap<String>((Map<String, ?>) data.getObject(0x0001)));
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -62,9 +62,4 @@ public class PacketEditServer implements PacketObjectIn<Integer>, PacketObjectOu
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -56,9 +56,4 @@ public class PacketMessagePlayer implements PacketObjectIn<Integer>, PacketObjec
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -57,9 +57,4 @@ public class PacketRemoveServer implements PacketObjectIn<Integer>, PacketObject
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -54,9 +54,4 @@ public class PacketRestartServer implements PacketObjectIn<Integer>, PacketObjec
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -54,9 +54,4 @@ public class PacketStartServer implements PacketObjectIn<Integer>, PacketObjectO
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -58,9 +58,4 @@ public class PacketStopServer implements PacketObjectIn<Integer>, PacketObjectOu
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -54,9 +54,4 @@ public class PacketTransferPlayer implements PacketObjectIn<Integer>, PacketObje
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -81,9 +81,4 @@ public class PacketUpdateServer implements PacketObjectIn<Integer>, PacketObject
|
||||
for (Consumer<ObjectMap<Integer>> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data);
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -53,9 +53,4 @@ public class PacketCheckPermission implements Forwardable, PacketObjectIn<Intege
|
||||
public void receive(SubDataSender client, ObjectMap<Integer> data) throws Throwable {
|
||||
client.sendPacket(new PacketCheckPermissionResponse(data.getUUID(0x0001), data.getString(0x0002), (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -52,9 +52,4 @@ public class PacketCheckPermissionResponse implements Forwardable, PacketObjectI
|
||||
for (Consumer<Boolean> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data.getBoolean(0x0001));
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -44,9 +44,4 @@ public class PacketDownloadLang implements PacketObjectIn<Integer>, PacketOut {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -61,9 +61,4 @@ public class PacketExControlPlayer implements PacketObjectIn<Integer>, PacketObj
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -40,9 +40,4 @@ public class PacketInExReload implements PacketObjectIn<Integer> {
|
||||
}
|
||||
}).submit(plugin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -23,9 +23,4 @@ public class PacketInExReset implements PacketObjectIn<Integer> {
|
||||
else log.warning("Received shutdown signal");
|
||||
Sponge.getServer().shutdown();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -140,11 +140,6 @@ public class PacketInExRunEvent implements PacketObjectIn<Integer> {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
|
||||
public static void callback(String event, Consumer<ObjectMap<String>> callback) {
|
||||
List<Consumer<ObjectMap<String>>> callbacks = (PacketInExRunEvent.callbacks.keySet().contains(event))? PacketInExRunEvent.callbacks.get(event):new ArrayList<Consumer<ObjectMap<String>>>();
|
||||
callbacks.add(callback);
|
||||
|
@ -85,9 +85,4 @@ public class PacketLinkServer implements InitialPacket, PacketObjectIn<Integer>,
|
||||
plugin.disable(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -53,9 +53,4 @@ public class PacketCheckPermission implements Forwardable, PacketObjectIn<Intege
|
||||
public void receive(SubDataSender client, ObjectMap<Integer> data) throws Throwable {
|
||||
client.sendPacket(new PacketCheckPermissionResponse(data.getUUID(0x0001), data.getString(0x0002), (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -49,9 +49,4 @@ public class PacketCheckPermissionResponse implements Forwardable, PacketObjectI
|
||||
for (Consumer<Boolean> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data.getBoolean(0x0001));
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -44,9 +44,4 @@ public class PacketDownloadLang implements PacketObjectIn<Integer>, PacketOut {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -114,9 +114,4 @@ public class PacketExAddServer implements PacketObjectIn<Integer>, PacketObjectO
|
||||
if (running != null) server.start(running);
|
||||
client.sendPacket(new PacketExAddServer(0, tracker));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
@ -40,9 +40,4 @@ public class PacketExConfigureHost implements PacketObjectIn<Integer>, PacketObj
|
||||
host.log.info.println(((first)?"":"New ") + "Host Settings Downloaded");
|
||||
first = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -112,9 +112,4 @@ public class PacketExControlServer implements PacketObjectIn<Integer>, PacketObj
|
||||
host.log.error.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -118,9 +118,4 @@ public class PacketExCreateServer implements PacketObjectIn<Integer>, PacketObje
|
||||
host.log.error.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
@ -116,9 +116,4 @@ public class PacketExDeleteServer implements PacketObjectIn<Integer>, PacketObje
|
||||
host.log.error.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
@ -83,9 +83,4 @@ public class PacketExDownloadTemplates implements PacketOut, PacketStreamIn {
|
||||
}
|
||||
first = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0002;
|
||||
}
|
||||
}
|
||||
|
@ -76,9 +76,4 @@ public class PacketExRemoveServer implements PacketObjectIn<Integer>, PacketObje
|
||||
host.log.error.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
@ -52,9 +52,4 @@ public class PacketExUploadTemplates implements PacketIn, PacketObjectOut<Intege
|
||||
public void receive(SubDataSender client) {
|
||||
client.sendPacket(new PacketExUploadTemplates(host, false));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0002;
|
||||
}
|
||||
}
|
||||
|
@ -38,9 +38,4 @@ public class PacketInExReload implements PacketObjectIn<Integer> {
|
||||
}
|
||||
}, "SubServers.Host::Network_Reload_Handler").start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -38,9 +38,4 @@ public class PacketInExReset implements PacketObjectIn<Integer> {
|
||||
host.log.error.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -137,11 +137,6 @@ public class PacketInExRunEvent implements PacketObjectIn<Integer> {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
|
||||
public static void callback(String event, Consumer<ObjectMap<String>> callback) {
|
||||
List<Consumer<ObjectMap<String>>> callbacks = (PacketInExRunEvent.callbacks.keySet().contains(event))? PacketInExRunEvent.callbacks.get(event):new ArrayList<Consumer<ObjectMap<String>>>();
|
||||
callbacks.add(callback);
|
||||
|
@ -61,9 +61,4 @@ public class PacketLinkExHost implements InitialPacket, PacketObjectIn<Integer>,
|
||||
GalaxiEngine.getInstance().stop();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -38,9 +38,4 @@ public class PacketOutExLogMessage implements PacketObjectOut<Integer> {
|
||||
if (line != null) data.set(0x0002, line);
|
||||
return data;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0002;
|
||||
}
|
||||
}
|
||||
|
@ -12,9 +12,4 @@ public class PacketOutExRequestQueue implements PacketOut {
|
||||
*/
|
||||
public PacketOutExRequestQueue() {}
|
||||
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -53,9 +53,4 @@ public class PacketCheckPermission implements Forwardable, PacketObjectIn<Intege
|
||||
public void receive(SubDataSender client, ObjectMap<Integer> data) throws Throwable {
|
||||
client.sendPacket(new PacketCheckPermissionResponse(data.getUUID(0x0001), data.getString(0x0002), (data.contains(0x0000))?data.getUUID(0x0000):null));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -52,9 +52,4 @@ public class PacketCheckPermissionResponse implements Forwardable, PacketObjectI
|
||||
for (Consumer<Boolean> callback : callbacks.get(data.getUUID(0x0000))) callback.accept(data.getBoolean(0x0001));
|
||||
callbacks.remove(data.getUUID(0x0000));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
@ -41,9 +41,4 @@ public class PacketDownloadLang implements PacketObjectIn<Integer>, PacketOut {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int version() {
|
||||
return 0x0001;
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user