Player

Player is a class of Fougerite which contains all the handles and pointers related to server clients. A list of all the players connected in the server can be retrieved with Server.Players.

Player Handles

 * Player.Disconnect:void
 * Player.Find(string search):Player
 * Player.FindByGameID(string uid):Player
 * Player.FindByName(string name):Player
 * Player.FindByNetworkPlayer(uLink.NetworkPlayer np):Player
 * Player.FindByPlayerClient(PlayerClient pc):Player
 * Player.FindBySteamID(string uid):Player
 * Player.InventoryNotice(string arg):void
 * Player.Kill:void
 * Player.Message(string arg):void
 * Player.MessageFrom(string playername, string arg):void
 * Player.Notice(string arg):void
 * Player.Notice(string icon, string text, float duration):void
 * Player.SendCommand(string cmd):void
 * Player.TeleportTo(float x, float y, float z):void
 * Player.TeleportTo(Player p):void

Only in Fougerite :
 * Player.SafeTeleportTo(float x, float z):void
 * Player.SafeTeleportTo(Vector3 target):void
 * Player.TeleportTo(Vector3 target):void

Player Pointers

 * Player.Admin:bool
 * Player.GameID:string
 * Player.Health:float
 * Player.Inventory:PlayerInv
 * Player.IP:string
 * Player.IsBleeding:bool
 * Player.IsCold:bool
 * Player.IsInjured:bool
 * Player.Location:UnityEngine.Vector3
 * Player.Name:string
 * Player.Ping:int
 * Player.PlayerClient:PlayerClient
 * Player.SteamID:string
 * Player.TimeOnline:long
 * Player.X:float
 * Player.Y:float
 * Player.Z:float

Player Inventory Handles

 * Player.Inventory.AddItem(string name):void
 * Player.Inventory.AddItem(string name, int amount):void
 * Player.Inventory.AddItemTo(string name, int number):void
 * Player.Inventory.AddItemTo(string name, int slot, int amount):void
 * Player.Inventory.Clear:void
 * Player.Inventory.ClearAll:void
 * Player.Inventory.ClearArmor:void
 * Player.Inventory.ClearBar:void
 * Player.Inventory.DropAll:void
 * Player.Inventory.DropItem(int slot):void
 * Player.Inventory.DropItem(PlayerItem pi):void
 * Player.Inventory.HasItem(string name, int number):bool
 * Player.Inventory.HasItem(string name):bool
 * Player.Inventory.MoveItem(int s1, int s2):void
 * Player.Inventory.RemoveItem(PlayerItem pi):void
 * Player.Inventory.RemoveItem(string name, int number):void
 * Player.Inventory.RemoveItem(int slot):void
 * Player.Inventory.RemoveItemAll(string name):void

Player Inventory Pointers

 * Player.Inventory.ArmorItems:PlayerItem[]
 * Player.Inventory.BarItems:PlayerItem[]
 * Player.Inventory.FreeSlots:int
 * Player.Inventory.InternalInventory:Inventory
 * Player.Inventory.Items:PlayerItem[]