Search in sources :

Example 6 with ServerPlayer

use of io.xol.chunkstories.server.player.ServerPlayer in project chunkstories by Hugobros3.

the class ClientsManager method registerPlayer.

/**
 * Used by ClientConnection after a successfull login procedure
 */
void registerPlayer(ClientConnection clientConnection) {
    ServerPlayer player = clientConnection.getPlayer();
    this.players.put(player.getName(), player);
    this.playersByUUID.put(player.getUUID(), player);
}
Also used : ServerPlayer(io.xol.chunkstories.server.player.ServerPlayer)

Aggregations

ServerPlayer (io.xol.chunkstories.server.player.ServerPlayer)6 Player (io.xol.chunkstories.api.player.Player)2 PlayerLoginEvent (io.xol.chunkstories.api.events.player.PlayerLoginEvent)1 PacketProcessingException (io.xol.chunkstories.api.exceptions.PacketProcessingException)1 Packet (io.xol.chunkstories.api.net.Packet)1 PacketWorld (io.xol.chunkstories.api.net.PacketWorld)1 PacketTime (io.xol.chunkstories.api.net.packets.PacketTime)1 LogicalPacketDatagram (io.xol.chunkstories.net.LogicalPacketDatagram)1 PacketDefinitionImplementation (io.xol.chunkstories.net.PacketDefinitionImplementation)1 IOException (java.io.IOException)1