mirror of https://github.com/PikaMug/Quests.git
Revert 34eb2e458a
This commit is contained in:
parent
965071a907
commit
d382da8a42
|
@ -36,17 +36,6 @@ public class BungeePlayerListener implements Listener {
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPlayerLoginOrSwitch(ServerSwitchEvent evt) {
|
public void onPlayerLoginOrSwitch(ServerSwitchEvent evt) {
|
||||||
if (evt.getFrom() != null) {
|
|
||||||
final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
|
||||||
final DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
|
|
||||||
try {
|
|
||||||
dataOutputStream.writeUTF("SaveData:" + evt.getPlayer().getUniqueId());
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
dispatchMessage(byteArrayOutputStream.toByteArray());
|
|
||||||
}
|
|
||||||
|
|
||||||
ProxyServer.getInstance().getScheduler().schedule(plugin, () -> {
|
ProxyServer.getInstance().getScheduler().schedule(plugin, () -> {
|
||||||
final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
||||||
final DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
|
final DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);
|
||||||
|
@ -56,7 +45,7 @@ public class BungeePlayerListener implements Listener {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
dispatchMessage(byteArrayOutputStream.toByteArray());
|
dispatchMessage(byteArrayOutputStream.toByteArray());
|
||||||
}, 1, TimeUnit.SECONDS);
|
}, 2, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
|
Loading…
Reference in New Issue