IPlayer
Assembly: uMod.Common.dll
Implements IAuthorizable, IIdentity
Summary
Represents a generic player within a game, either connected or not
Properties
Name | Summary |
|---|---|
Address | Gets the player's IP address |
BanTimeRemaining | Gets the amount of time remaining on the player's ban |
Health | Gets/sets the player's health |
IsAlive | Gets if the player is alive |
IsBanned | Gets if the player is banned |
IsConnected | Gets if the player is connected |
IsDead | Gets if the player is dead |
IsServer | Gets if the player is the server |
IsSleeping | Gets if the player is sleeping |
Language | Gets the player's language |
LastCommand | Gets the player's last used command type |
MaxHealth | Gets/sets the player's maximum health |
Name | Gets/sets the name for the player |
Object | Gets the object that backs the player |
Ping | Gets the player's average network ping |
Methods
Name | Summary |
|---|---|
Bans the player for the specified reason and duration | |
Runs the specified console command on the player | |
Heal ( | Heals the player's character by specified amount |
Hurt ( | Damages the player's character by specified amount |
Kick ( | Kicks the player from the server |
Kill () | Causes the player's character to die |
Sends the specified message and prefix to the player | |
Message ( | |
Gets the position of this character | |
Position () | Gets the position of this character |
Rename ( | |
Replies to the player with the specified message and prefix | |
Reply ( | Replies to the player with the specified message |
Reset () | Resets the player's character stats |
Respawn () | Respawns the player's character |
Respawn ( | |
Teleports the player's character to the specified coordinates | |
Teleport ( | Teleports the player's character to the specified position |
Unban () | Unbans the player |