Package com.benkyou.common.messages

Examples of com.benkyou.common.messages.PlayerDisconectMessage


    public void connectionRemoved(Server server, HostedConnection conn) {
      
       gameServer.removePlayerByUUID((String)conn.getAttribute("UUID"));
       gameServer.syncPlayers();
       gameServer.getMyServer().broadcast(new PlayerDisconectMessage((String)conn.getAttribute("UUID")));
       
    }
View Full Code Here


            gameClient.processSyncMessage(players);
            players.clear();
          
        }
        if(m instanceof PlayerDisconectMessage){
            PlayerDisconectMessage playerDisconectMessage = (PlayerDisconectMessage) m;
            System.out.println(playerDisconectMessage.getUUID());
            gameClient.removePlayer(playerDisconectMessage.getUUID());
        }
    }
View Full Code Here

TOP

Related Classes of com.benkyou.common.messages.PlayerDisconectMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.