Esempio n. 1
0
 public bool RecvPacket(PacketPlayerJoin p)
 {
     if (Identity == null)
     {
         Disconnect("Cannot do that without authenticating first!");
         return(false);
     }
     if (IsPlayerOnline(p.PlayerName))
     {
         Disconnect("Two of the same player on server!");
         return(false);
     }
     OnlinePlayers.Add(PlayerInstance.GetInstance(p.PlayerName));
     return(true);
 }