Exemplo n.º 1
0
        internal Player(Client p)
        {
            Username = p.MinecraftUsername;
            Uptime = p.Uptime;
            if (p.Session.Position != null)
            {
                Position = p.Session.Position;
            }
            Dimension = (int)p.Session.Dimension;
			
            Session = p.Session.GetType().Name;

            AttachedTo = p.Session.AttachedEntity;
            if (p.ChatEntry != null)
            {
                Chat = new ChatEntry();
                Chat.Channel = p.ChatEntry.Channel;
                Chat.Message = p.ChatEntry.Message;
                Chat.Timestamp = p.ChatEntry.TimeStamp;
            }
        }
Exemplo n.º 2
0
        internal Player(Client p)
        {
            Username = p.MinecraftUsername;
            Uptime   = p.Uptime;
            if (p.Session.Position != null)
            {
                Position = p.Session.Position;
            }
            Dimension = (int)p.Session.Dimension;

            Session = p.Session.GetType().Name;

            AttachedTo = p.Session.AttachedEntity;
            if (p.ChatEntry != null)
            {
                Chat           = new ChatEntry();
                Chat.Channel   = p.ChatEntry.Channel;
                Chat.Message   = p.ChatEntry.Message;
                Chat.Timestamp = p.ChatEntry.TimeStamp;
            }
        }