fCraft  0.638
Custom Minecraft Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events
fCraft.PlayerInfo Class Reference

Object representing persistent state ("record") of a player, online or offline. There is exactly one PlayerInfo object for each known Minecraft account. All data is stored in the PlayerDB. More...

+ Inheritance diagram for fCraft.PlayerInfo:
+ Collaboration diagram for fCraft.PlayerInfo:

Public Member Functions

void Ban ([NotNull] Player player,[CanBeNull] string reason, bool announce, bool raiseEvents)
 Bans given player. Kicks if online. Throws PlayerOpException on problems.
 
void Unban ([NotNull] Player player,[CanBeNull] string reason, bool announce, bool raiseEvents)
 Unbans a player. Throws PlayerOpException on problems.
 
void BanIP ([NotNull] Player player,[CanBeNull] string reason, bool announce, bool raiseEvents)
 Bans given player and their IP address. All players from IP are kicked. Throws PlayerOpException on problems.
 
void UnbanIP ([NotNull] Player player,[CanBeNull] string reason, bool announce, bool raiseEvents)
 Unbans given player and their IP address. Throws PlayerOpException on problems.
 
void BanAll ([NotNull] Player player,[CanBeNull] string reason, bool announce, bool raiseEvents)
 Bans given player, their IP, and all other accounts on IP. All players from IP are kicked. Throws PlayerOpException on problems.
 
void UnbanAll ([NotNull] Player player,[CanBeNull] string reason, bool announce, bool raiseEvents)
 Unbans given player, their IP address, and all other accounts on IP. Throws PlayerOpException on problems.
 
void ChangeRank ([NotNull] Player player,[NotNull] Rank newRank,[CanBeNull] string reason, bool announce, bool raiseEvents, bool auto)
 Changes rank of the player (promotes or demotes). Throws PlayerOpException on problems.
 
void Freeze ([NotNull] Player player, bool announce, bool raiseEvents)
 Freezes this player (prevents from moving, building, and from using most commands). Throws PlayerOpException on problems.
 
void Unfreeze ([NotNull] Player player, bool announce, bool raiseEvents)
 Unfreezes this player. Throws PlayerOpException on problems.
 
void Mute ([NotNull] Player player, TimeSpan duration, bool announce, bool raiseEvents)
 Mutes this player (prevents from writing chat messages).
 
void Unmute ([NotNull] Player player, bool announce, bool raiseEvents)
 Unmutes this player (allows them to write chat again).
 
void CheckAccountType ()
 Begins to asynchronously check player's account type.
 
 PlayerInfo ([NotNull] string name,[NotNull] Rank rank, bool setLoginDate, RankChangeType rankChangeType)
 
 PlayerInfo ([NotNull] string name,[NotNull] IPAddress lastIP,[NotNull] Rank startingRank)
 
void ProcessMessageWritten ()
 
void ProcessLogin ([NotNull] Player player)
 
void ProcessFailedLogin ([NotNull] Player player)
 
void ProcessLogout ([NotNull] Player player)
 
void ProcessRankChange ([NotNull] Rank newRank,[NotNull] string changer,[CanBeNull] string reason, RankChangeType type)
 
void ProcessBlockPlaced (byte type)
 
void ProcessDrawCommand (int blocksDrawn)
 
override string ToString ()
 
bool Can (Permission permission)
 
bool Can (Permission permission, Rank rank)
 

Public Attributes

string DisplayedName
 If set, replaces Name when printing name in chat.
 
int ID
 Player's unique numeric ID. Issued on first join.
 
DateTime FirstLoginDate
 First time the player ever logged in, UTC. May be DateTime.MinValue if player has never been online.
 
DateTime LastLoginDate
 Most recent time the player logged in, UTC. May be DateTime.MinValue if player has never been online.
 
DateTime LastSeen
 Last time the player has been seen online (last logout), UTC. May be DateTime.MinValue if player has never been online.
 
LeaveReason LeaveReason
 Reason for leaving the server last time.
 
AccountType AccountType
 Minecraft.net account type (paid/free/unknown).
 
Rank PreviousRank
 Player's previous rank. May be null if player has never been promoted/demoted before.
 
DateTime RankChangeDate
 Date of the most recent promotion/demotion, UTC. May be DateTime.MinValue if player has never been promoted/demoted before.
 
string RankChangedBy
 Name of the player or entity who most recently promoted/demoted this player. May be null or empty.
 
string RankChangeReason
 Reason given for the most recent promotion/demotion. May be null or empty.
 
RankChangeType RankChangeType
 Type of the most recent promotion/demotion.
 
BanStatus BanStatus
 Player's current BanStatus: Banned, NotBanned, or Exempt.
 
DateTime BanDate
 Date of most recent ban, UTC. May be DateTime.MinValue if player was never banned.
 
string BannedBy
 Name of the player or entity who most recently banned this player. May be null or empty.
 
string BanReason
 Reason given for the most recent ban. May be null or empty.
 
DateTime UnbanDate
 Date of most recent unban, UTC. May be DateTime.MinValue if player was never unbanned.
 
string UnbannedBy
 Name of the player or entity who most recently unbanned this player. May be null or empty.
 
string UnbanReason
 Reason given for the most recent unban. May be null or empty.
 
DateTime LastFailedLoginDate
 Date of most recent failed attempt to log in, UTC.
 
IPAddress LastFailedLoginIP = IPAddress.None
 IP from which player most recently tried (and failed) to log in, UTC.
 
TimeSpan TotalTime
 Total amount of time the player spent on this server.
 
int BlocksBuilt
 Total number of blocks manually built or painted by the player.
 
int BlocksDeleted
 Total number of blocks manually deleted by the player.
 
long BlocksDrawn
 Total number of blocks modified using draw and copy/paste commands.
 
int TimesVisited
 Number of sessions/logins.
 
int MessagesWritten
 Total number of messages written.
 
int TimesKickedOthers
 Number of kicks issues by this player.
 
int TimesBannedOthers
 Number of bans issued by this player.
 
int TimesKicked
 Number of times that this player has been manually kicked.
 
DateTime LastKickDate
 Date of the most recent kick. May be DateTime.MinValue if the player has never been kicked.
 
string LastKickBy
 Name of the player or entity who most recently kicked this player. May be null or empty.
 
string LastKickReason
 Reason given for the most recent kick. May be null or empty.
 
bool IsFrozen
 Whether this player is currently frozen.
 
DateTime FrozenOn
 Date of the most recent freezing. May be DateTime.MinValue of the player has never been frozen.
 
string FrozenBy
 Name of the player or entity who most recently froze this player. May be null or empty.
 
DateTime MutedUntil
 Date until which the player is muted. If the date is in the past, player is NOT muted.
 
string MutedBy
 Name of the player or entity who most recently muted this player. May be null or empty.
 
bool IsHidden
 Whether the player is currently hidden. Use Player.CanSee() method to check visibility to specific observers.
 
IPAddress LastIP
 For offline players, last IP used to succesfully log in. For online players, current IP.
 
string Password = ""
 Not implemented (IRC/server password hash).
 
DateTime LastModified
 
BandwidthUseMode BandwidthUseMode
 
DateTime BannedUntil
 Not implemented (for temp bans).
 

Properties

string Name [get, set]
 Player's Minecraft account name.
 
string ClassyName [get]
 
Rank Rank [get, set]
 Player's current rank.
 
string RankChangedByClassy [get]
 Decorated name of the player or entity who most recently changed rank of this player. Returns raw RankChangedBy value if it's not a recognized player name. Returns '?' if RankChangedBy is null or empty.
 
bool IsBanned [get]
 Returns whether player is name-banned or not.
 
string BannedByClassy [get]
 Decorated name of the player or entity who most recently banned this player. Returns raw BannedBy value if it's not a recognized player name. Returns '?' if BannedBy is null or empty.
 
string UnbannedByClassy [get]
 Decorated name of the player or entity who most recently unbanned this player. Returns raw UnbannedBy value if it's not a recognized player name. Returns '?' if UnbannedBy is null or empty.
 
string LastKickByClassy [get]
 Decorated name of the player or entity who most recently kicked this player. Returns raw LastKickBy value if it's not a recognized player name. Returns '?' if LastKickBy is null or empty.
 
string FrozenByClassy [get]
 Decorated name of the player or entity who most recently froze this player. Returns raw FrozenBy value if it's not a recognized player name. Returns '?' if FrozenBy is null or empty.
 
bool IsMuted [get]
 Whether this player is currently muted.
 
string MutedByClassy [get]
 Decorated name of the player or entity who most recently muted this player. Returns raw MutedBy value if it's not a recognized player name. Returns '?' if MutedBy is null or empty.
 
bool IsOnline [get, set]
 Whether the player is currently online. Another way to check online status is to check if PlayerObject is null.
 
Player PlayerObject [get, set]
 If player is online, Player object associated with the session. If player is offline, null.
 
TimeSpan TimeSinceRankChange [get]
 
TimeSpan TimeSinceBan [get]
 
TimeSpan TimeSinceUnban [get]
 
TimeSpan TimeSinceFirstLogin [get]
 
TimeSpan TimeSinceLastLogin [get]
 
TimeSpan TimeSinceLastKick [get]
 
TimeSpan TimeSinceLastSeen [get]
 
TimeSpan TimeSinceFrozen [get]
 
TimeSpan TimeMutedLeft [get]
 
- Properties inherited from fCraft.IClassy
string ClassyName [get]
 Name optionally formatted with minecraft color codes or other decorations.
 

Events

static EventHandler
< PlayerInfoBeingCreatedEventArgs
BeingCreated
 Occurs when a new PlayerDB entry is being created. Allows editing the starting rank. Cancelable (kicks the player).
 
static EventHandler
< PlayerInfoCreatedEventArgs
Created
 Occurs after a new PlayerDB entry has been created.
 
static EventHandler
< PlayerInfoRankChangingEventArgs
RankChanging
 Occurs when a player's rank is about to be changed (automatically or manually).
 
static EventHandler
< PlayerInfoRankChangedEventArgs
RankChanged
 Occurs after a player's rank was changed (automatically or manually).
 
static EventHandler
< PlayerInfoBanChangingEventArgs
BanChanging
 Occurs when a player is about to be banned or unbanned. Cancelable.
 
static EventHandler
< PlayerInfoBanChangedEventArgs
BanChanged
 Occurs after a player has been banned or unbanned.
 
static EventHandler
< PlayerInfoFrozenChangingEventArgs
FreezeChanging
 Occurs when a player is about to be frozen or unfrozen.
 
static EventHandler
< PlayerInfoFrozenChangedEventArgs
FreezeChanged
 Occurs after a player has been frozen or unfrozen.
 
static EventHandler
< PlayerInfoMuteChangingEventArgs
MuteChanging
 Occurs when a player is about to be muted or unmuted.
 
static EventHandler
< PlayerInfoMuteChangedEventArgs
MuteChanged
 Occurs after a player has been muted or unmuted.
 

Detailed Description

Object representing persistent state ("record") of a player, online or offline. There is exactly one PlayerInfo object for each known Minecraft account. All data is stored in the PlayerDB.

Constructor & Destructor Documentation

fCraft.PlayerInfo.PlayerInfo ( [NotNull] string  name,
[NotNull] Rank  rank,
bool  setLoginDate,
RankChangeType  rankChangeType 
)
fCraft.PlayerInfo.PlayerInfo ( [NotNull] string  name,
[NotNull] IPAddress  lastIP,
[NotNull] Rank  startingRank 
)

Member Function Documentation

void fCraft.PlayerInfo.Ban ( [NotNull] Player  player,
[CanBeNull] string  reason,
bool  announce,
bool  raiseEvents 
)

Bans given player. Kicks if online. Throws PlayerOpException on problems.

Parameters
playerPlayer who is banning.
reasonReason for ban. May be empty, if permitted by server configuration.
announceWhether ban should be publicly announced on the server.
raiseEventsWhether BanChanging and BanChanged events should be raised.
Exceptions
fCraft.PlayerOpException
void fCraft.PlayerInfo.BanAll ( [NotNull] Player  player,
[CanBeNull] string  reason,
bool  announce,
bool  raiseEvents 
)

Bans given player, their IP, and all other accounts on IP. All players from IP are kicked. Throws PlayerOpException on problems.

Parameters
playerPlayer who is banning.
reasonReason for ban. May be empty, if permitted by server configuration.
announceWhether ban should be publicly announced on the server.
raiseEventsWhether AddingIPBan, AddedIPBan, BanChanging, and BanChanged events should be raised.
Exceptions
fCraft.PlayerOpException
void fCraft.PlayerInfo.BanIP ( [NotNull] Player  player,
[CanBeNull] string  reason,
bool  announce,
bool  raiseEvents 
)

Bans given player and their IP address. All players from IP are kicked. Throws PlayerOpException on problems.

Parameters
playerPlayer who is banning.
reasonReason for ban. May be empty, if permitted by server configuration.
announceWhether ban should be publicly announced on the server.
raiseEventsWhether AddingIPBan, AddedIPBan, BanChanging, and BanChanged events should be raised.
Exceptions
fCraft.PlayerOpException
bool fCraft.PlayerInfo.Can ( Permission  permission)
bool fCraft.PlayerInfo.Can ( Permission  permission,
Rank  rank 
)
void fCraft.PlayerInfo.ChangeRank ( [NotNull] Player  player,
[NotNull] Rank  newRank,
[CanBeNull] string  reason,
bool  announce,
bool  raiseEvents,
bool  auto 
)

Changes rank of the player (promotes or demotes). Throws PlayerOpException on problems.

Parameters
playerPlayer who originated the promotion/demotion action.
newRankNew rank.
reasonReason for promotion/demotion.
announceWhether rank change should be publicly announced or not.
raiseEventsWhether PlayerInfo.RankChanging and PlayerInfo.RankChanged events should be raised.
autoWhether rank change should be marked as "automatic" or manual.
Exceptions
fCraft.PlayerOpException
void fCraft.PlayerInfo.CheckAccountType ( )

Begins to asynchronously check player's account type.

void fCraft.PlayerInfo.Freeze ( [NotNull] Player  player,
bool  announce,
bool  raiseEvents 
)

Freezes this player (prevents from moving, building, and from using most commands). Throws PlayerOpException on problems.

Parameters
playerPlayer who is doing the freezing.
announceWhether to announce freezing publicly on the server.
raiseEventsWhether to raise PlayerInfo.FreezeChanging and PlayerInfo.FreezeChanged events.
void fCraft.PlayerInfo.Mute ( [NotNull] Player  player,
TimeSpan  duration,
bool  announce,
bool  raiseEvents 
)

Mutes this player (prevents from writing chat messages).

Parameters
playerPlayer who is doing the muting.
durationDuration of the mute. If a player is already muted for same or greater length of time, PlayerOpException is thrown with NoActionNeeded code. If a player is already muted for a shorter length of time, the mute duration is extended.
announceWhether to announce muting publicly on the sever.
raiseEventsWhether to raise PlayerInfo.MuteChanging and MuteChanged events.
void fCraft.PlayerInfo.ProcessBlockPlaced ( byte  type)
void fCraft.PlayerInfo.ProcessDrawCommand ( int  blocksDrawn)
void fCraft.PlayerInfo.ProcessFailedLogin ( [NotNull] Player  player)
void fCraft.PlayerInfo.ProcessLogin ( [NotNull] Player  player)
void fCraft.PlayerInfo.ProcessLogout ( [NotNull] Player  player)
void fCraft.PlayerInfo.ProcessMessageWritten ( )
void fCraft.PlayerInfo.ProcessRankChange ( [NotNull] Rank  newRank,
[NotNull] string  changer,
[CanBeNull] string  reason,
RankChangeType  type 
)
override string fCraft.PlayerInfo.ToString ( )
void fCraft.PlayerInfo.Unban ( [NotNull] Player  player,
[CanBeNull] string  reason,
bool  announce,
bool  raiseEvents 
)

Unbans a player. Throws PlayerOpException on problems.

Parameters
playerPlayer who is unbanning.
reasonReason for unban. May be empty, if permitted by server configuration.
announceWhether unban should be publicly announced on the server.
raiseEventsWhether BanChanging and BanChanged events should be raised.
Exceptions
fCraft.PlayerOpException
void fCraft.PlayerInfo.UnbanAll ( [NotNull] Player  player,
[CanBeNull] string  reason,
bool  announce,
bool  raiseEvents 
)

Unbans given player, their IP address, and all other accounts on IP. Throws PlayerOpException on problems.

Parameters
playerPlayer who is unbanning.
reasonReason for unban. May be empty, if permitted by server configuration.
announceWhether unban should be publicly announced on the server.
raiseEventsWhether RemovingIPBan, RemovedIPBan, BanChanging, and BanChanged events should be raised.
Exceptions
fCraft.PlayerOpException
void fCraft.PlayerInfo.UnbanIP ( [NotNull] Player  player,
[CanBeNull] string  reason,
bool  announce,
bool  raiseEvents 
)

Unbans given player and their IP address. Throws PlayerOpException on problems.

Parameters
playerPlayer who is unbanning.
reasonReason for unban. May be empty, if permitted by server configuration.
announceWhether unban should be publicly announced on the server.
raiseEventsWhether RemovingIPBan, RemovedIPBan, BanChanging, and BanChanged events should be raised.
Exceptions
fCraft.PlayerOpException
void fCraft.PlayerInfo.Unfreeze ( [NotNull] Player  player,
bool  announce,
bool  raiseEvents 
)

Unfreezes this player. Throws PlayerOpException on problems.

Parameters
playerPlayer who is doing the unfreezing.
announceWhether to announce freezing publicly on the server.
raiseEventsWhether to raise PlayerInfo.FreezeChanging and PlayerInfo.FreezeChanged events.
void fCraft.PlayerInfo.Unmute ( [NotNull] Player  player,
bool  announce,
bool  raiseEvents 
)

Unmutes this player (allows them to write chat again).

Parameters
playerPlayer who is doing the unmuting.
announceWhether to announce unmuting publicly on the sever.
raiseEventsWhether to raise PlayerInfo.MuteChanging and MuteChanged events.

Member Data Documentation

AccountType fCraft.PlayerInfo.AccountType

Minecraft.net account type (paid/free/unknown).

DateTime fCraft.PlayerInfo.BanDate

Date of most recent ban, UTC. May be DateTime.MinValue if player was never banned.

BandwidthUseMode fCraft.PlayerInfo.BandwidthUseMode
string fCraft.PlayerInfo.BannedBy

Name of the player or entity who most recently banned this player. May be null or empty.

DateTime fCraft.PlayerInfo.BannedUntil

Not implemented (for temp bans).

string fCraft.PlayerInfo.BanReason

Reason given for the most recent ban. May be null or empty.

BanStatus fCraft.PlayerInfo.BanStatus

Player's current BanStatus: Banned, NotBanned, or Exempt.

int fCraft.PlayerInfo.BlocksBuilt

Total number of blocks manually built or painted by the player.

int fCraft.PlayerInfo.BlocksDeleted

Total number of blocks manually deleted by the player.

long fCraft.PlayerInfo.BlocksDrawn

Total number of blocks modified using draw and copy/paste commands.

string fCraft.PlayerInfo.DisplayedName

If set, replaces Name when printing name in chat.

DateTime fCraft.PlayerInfo.FirstLoginDate

First time the player ever logged in, UTC. May be DateTime.MinValue if player has never been online.

string fCraft.PlayerInfo.FrozenBy

Name of the player or entity who most recently froze this player. May be null or empty.

DateTime fCraft.PlayerInfo.FrozenOn

Date of the most recent freezing. May be DateTime.MinValue of the player has never been frozen.

int fCraft.PlayerInfo.ID

Player's unique numeric ID. Issued on first join.

bool fCraft.PlayerInfo.IsFrozen

Whether this player is currently frozen.

bool fCraft.PlayerInfo.IsHidden

Whether the player is currently hidden. Use Player.CanSee() method to check visibility to specific observers.

DateTime fCraft.PlayerInfo.LastFailedLoginDate

Date of most recent failed attempt to log in, UTC.

IPAddress fCraft.PlayerInfo.LastFailedLoginIP = IPAddress.None

IP from which player most recently tried (and failed) to log in, UTC.

IPAddress fCraft.PlayerInfo.LastIP

For offline players, last IP used to succesfully log in. For online players, current IP.

string fCraft.PlayerInfo.LastKickBy

Name of the player or entity who most recently kicked this player. May be null or empty.

DateTime fCraft.PlayerInfo.LastKickDate

Date of the most recent kick. May be DateTime.MinValue if the player has never been kicked.

string fCraft.PlayerInfo.LastKickReason

Reason given for the most recent kick. May be null or empty.

DateTime fCraft.PlayerInfo.LastLoginDate

Most recent time the player logged in, UTC. May be DateTime.MinValue if player has never been online.

DateTime fCraft.PlayerInfo.LastModified
DateTime fCraft.PlayerInfo.LastSeen

Last time the player has been seen online (last logout), UTC. May be DateTime.MinValue if player has never been online.

LeaveReason fCraft.PlayerInfo.LeaveReason

Reason for leaving the server last time.

int fCraft.PlayerInfo.MessagesWritten

Total number of messages written.

string fCraft.PlayerInfo.MutedBy

Name of the player or entity who most recently muted this player. May be null or empty.

DateTime fCraft.PlayerInfo.MutedUntil

Date until which the player is muted. If the date is in the past, player is NOT muted.

string fCraft.PlayerInfo.Password = ""

Not implemented (IRC/server password hash).

Rank fCraft.PlayerInfo.PreviousRank

Player's previous rank. May be null if player has never been promoted/demoted before.

DateTime fCraft.PlayerInfo.RankChangeDate

Date of the most recent promotion/demotion, UTC. May be DateTime.MinValue if player has never been promoted/demoted before.

string fCraft.PlayerInfo.RankChangedBy

Name of the player or entity who most recently promoted/demoted this player. May be null or empty.

string fCraft.PlayerInfo.RankChangeReason

Reason given for the most recent promotion/demotion. May be null or empty.

RankChangeType fCraft.PlayerInfo.RankChangeType

Type of the most recent promotion/demotion.

int fCraft.PlayerInfo.TimesBannedOthers

Number of bans issued by this player.

int fCraft.PlayerInfo.TimesKicked

Number of times that this player has been manually kicked.

int fCraft.PlayerInfo.TimesKickedOthers

Number of kicks issues by this player.

int fCraft.PlayerInfo.TimesVisited

Number of sessions/logins.

TimeSpan fCraft.PlayerInfo.TotalTime

Total amount of time the player spent on this server.

DateTime fCraft.PlayerInfo.UnbanDate

Date of most recent unban, UTC. May be DateTime.MinValue if player was never unbanned.

string fCraft.PlayerInfo.UnbannedBy

Name of the player or entity who most recently unbanned this player. May be null or empty.

string fCraft.PlayerInfo.UnbanReason

Reason given for the most recent unban. May be null or empty.

Property Documentation

string fCraft.PlayerInfo.BannedByClassy
get

Decorated name of the player or entity who most recently banned this player. Returns raw BannedBy value if it's not a recognized player name. Returns '?' if BannedBy is null or empty.

string fCraft.PlayerInfo.ClassyName
get
string fCraft.PlayerInfo.FrozenByClassy
get

Decorated name of the player or entity who most recently froze this player. Returns raw FrozenBy value if it's not a recognized player name. Returns '?' if FrozenBy is null or empty.

bool fCraft.PlayerInfo.IsBanned
get

Returns whether player is name-banned or not.

bool fCraft.PlayerInfo.IsMuted
get

Whether this player is currently muted.

bool fCraft.PlayerInfo.IsOnline
getset

Whether the player is currently online. Another way to check online status is to check if PlayerObject is null.

string fCraft.PlayerInfo.LastKickByClassy
get

Decorated name of the player or entity who most recently kicked this player. Returns raw LastKickBy value if it's not a recognized player name. Returns '?' if LastKickBy is null or empty.

string fCraft.PlayerInfo.MutedByClassy
get

Decorated name of the player or entity who most recently muted this player. Returns raw MutedBy value if it's not a recognized player name. Returns '?' if MutedBy is null or empty.

string fCraft.PlayerInfo.Name
getset

Player's Minecraft account name.

Player fCraft.PlayerInfo.PlayerObject
getset

If player is online, Player object associated with the session. If player is offline, null.

Rank fCraft.PlayerInfo.Rank
getset

Player's current rank.

string fCraft.PlayerInfo.RankChangedByClassy
get

Decorated name of the player or entity who most recently changed rank of this player. Returns raw RankChangedBy value if it's not a recognized player name. Returns '?' if RankChangedBy is null or empty.

TimeSpan fCraft.PlayerInfo.TimeMutedLeft
get
TimeSpan fCraft.PlayerInfo.TimeSinceBan
get
TimeSpan fCraft.PlayerInfo.TimeSinceFirstLogin
get
TimeSpan fCraft.PlayerInfo.TimeSinceFrozen
get
TimeSpan fCraft.PlayerInfo.TimeSinceLastKick
get
TimeSpan fCraft.PlayerInfo.TimeSinceLastLogin
get
TimeSpan fCraft.PlayerInfo.TimeSinceLastSeen
get
TimeSpan fCraft.PlayerInfo.TimeSinceRankChange
get
TimeSpan fCraft.PlayerInfo.TimeSinceUnban
get
string fCraft.PlayerInfo.UnbannedByClassy
get

Decorated name of the player or entity who most recently unbanned this player. Returns raw UnbannedBy value if it's not a recognized player name. Returns '?' if UnbannedBy is null or empty.

Event Documentation

EventHandler<PlayerInfoBanChangedEventArgs> fCraft.PlayerInfo.BanChanged
static

Occurs after a player has been banned or unbanned.

EventHandler<PlayerInfoBanChangingEventArgs> fCraft.PlayerInfo.BanChanging
static

Occurs when a player is about to be banned or unbanned. Cancelable.

EventHandler<PlayerInfoBeingCreatedEventArgs> fCraft.PlayerInfo.BeingCreated
static

Occurs when a new PlayerDB entry is being created. Allows editing the starting rank. Cancelable (kicks the player).

EventHandler<PlayerInfoCreatedEventArgs> fCraft.PlayerInfo.Created
static

Occurs after a new PlayerDB entry has been created.

EventHandler<PlayerInfoFrozenChangedEventArgs> fCraft.PlayerInfo.FreezeChanged
static

Occurs after a player has been frozen or unfrozen.

EventHandler<PlayerInfoFrozenChangingEventArgs> fCraft.PlayerInfo.FreezeChanging
static

Occurs when a player is about to be frozen or unfrozen.

EventHandler<PlayerInfoMuteChangedEventArgs> fCraft.PlayerInfo.MuteChanged
static

Occurs after a player has been muted or unmuted.

EventHandler<PlayerInfoMuteChangingEventArgs> fCraft.PlayerInfo.MuteChanging
static

Occurs when a player is about to be muted or unmuted.

EventHandler<PlayerInfoRankChangedEventArgs> fCraft.PlayerInfo.RankChanged
static

Occurs after a player's rank was changed (automatically or manually).

EventHandler<PlayerInfoRankChangingEventArgs> fCraft.PlayerInfo.RankChanging
static

Occurs when a player's rank is about to be changed (automatically or manually).


The documentation for this class was generated from the following files: