IPlayer

Namespace: uModCommon

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

Ban (String, TimeSpan)

Bans the player for the specified reason and duration

Command (String, Object[])

Runs the specified console command on the player

Heal (Single)

Heals the player's character by specified amount

Hurt (Single)

Damages the player's character by specified amount

Kick (String)

Kicks the player from the server

Kill ()

Causes the player's character to die

Message (String, String, Object[])

Sends the specified message and prefix to the player

Message (String)

Position (out Single, out Single, out Single)

Gets the position of this character

Position ()

Gets the position of this character

Rename (String)

Reply (String, String, Object[])

Replies to the player with the specified message and prefix

Reply (String)

Replies to the player with the specified message

Reset ()

Resets the player's character stats

Respawn ()

Respawns the player's character

Respawn (Position)

Teleport (Single, Single, Single)

Teleports the player's character to the specified coordinates

Teleport (Position)

Teleports the player's character to the specified position

Unban ()

Unbans the player