private static void HandleSetSkin(SetSkin setSkin) { if (setSkin == null) { throw new WrongPacketTypeException(); } Player player = World.Instance.GetPlayer(setSkin.UserID); player.SetSkin(setSkin.Skin); }
public void SetSkin(string skin) { SetSkin set = new SetSkin { UserID = ConnectionManager.Instance.UserID, Skin = (Skins)Enum.Parse(typeof(Skins), skin), }; Socket.Instance.SendPacket(set, Packets.SetSkin); }