Message to the player when the mobile phone connection is terminated
parent
33c3fbc185
commit
a0de144a3a
|
@ -163,11 +163,14 @@ public class SocketClientMessageListener implements KraSocketClientEventInterfac
|
||||||
}
|
}
|
||||||
case 64247: // mobile connection closed
|
case 64247: // mobile connection closed
|
||||||
ProxyServer.getInstance().getScheduler().runAsync(ProxySystem.getInstance(), () -> {
|
ProxyServer.getInstance().getScheduler().runAsync(ProxySystem.getInstance(), () -> {
|
||||||
ProxyServer.getInstance().getLogger()
|
|
||||||
.info("mobile connection closed " + kraProtocolMessage.getUuid());
|
|
||||||
ProxiedPlayer proxiedPlayer = ProxySystem.getInstance().getProxy()
|
ProxiedPlayer proxiedPlayer = ProxySystem.getInstance().getProxy()
|
||||||
.getPlayer(kraProtocolMessage.getUuid());
|
.getPlayer(kraProtocolMessage.getUuid());
|
||||||
|
|
||||||
|
ProxyServer.getInstance().getLogger()
|
||||||
|
.info("mobile connection closed " + kraProtocolMessage.getUuid() + "player "
|
||||||
|
+ proxiedPlayer);
|
||||||
|
|
||||||
if (proxiedPlayer != null) {
|
if (proxiedPlayer != null) {
|
||||||
proxiedPlayer.sendMessage(new TextComponent("§5Mobile §8» §cConnection lost!"));
|
proxiedPlayer.sendMessage(new TextComponent("§5Mobile §8» §cConnection lost!"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue