Jump to content

/SetInfo: Difference between revisions

From fCraft Wiki
Created page with "'''/setinfo PlayerName Key Value''' Allows direct editing of player information thought in-game. Editable properties: TimesKicked, PreviousRank, TotalTime, RankChangeType, BanR..."
 
No edit summary
Line 1: Line 1:
'''/setinfo PlayerName Key Value'''
{{CommandBox
|name=SetInfo
|purpose=Edits PlayerDB records.
|aliases=
|uses=/SetInfo <PlayerName> <Property> <Value>
|cat=Info
|perm=
|console=Yes
|v=0.405
|}}


Allows direct editing of player information thought in-game.
Allows direct editing of players' database records.


Editable properties: TimesKicked, PreviousRank, TotalTime, RankChangeType, BanReason, UnbanReason, RankChangeReason, LastKickReason
==<code>/SetInfo <PlayerName> <Property> <Value></code>==
:Edits a property of given player's record.


Quick EX: '''/setinfo fragmer totaltime 34'''
==Editable properties==
===BanReason===
:Changes ban reason for the given player. Original ban reason is preserved in the logs.
 
===DisplayedName===
:Sets or resets the way player's name is displayed in chat. Any printable symbols or color codes may be used in the displayed name. Note that player's real name is still used in logs and on the in-game player list. To remove a custom name, type <code>/SetInfo <RealName> DisplayedName</code> (omit the name).
 
===KickReason===
:Changes reason of most-recent kick for the given player. Original kick reason is preserved in the logs.
 
===PreviousRank===
:Changes previous rank held by the player. To reset previous rank to "none" (will show as "default" in [[/Info]]), type <code>/SetInfo <Name> PreviousRank</code> (omit the rank name).
 
===RankChangeType===
:Sets the type of rank change. <Type> can be: Promoted, Demoted, AutoPromoted, AutoDemoted. Only really useful if you use AutoRank.
 
===RankReason===
:Changes promotion/demotion reason for the given player. Original promotion/demotion reason is preserved in the logs.
 
===TimesKicked===
:Changes the number of times that a player has been kicked. Acceptable value range: 0-9999
 
===TotalTime===
:Changes the amount of game time that the player has on record. Accepts values in the common compact time-span format.
 
===UnbanReason===
:Changes unban reason for the given player. Original unban reason is preserved in the logs.
 
{{LastUpdated|1400}}

Revision as of 01:00, 12 January 2012

Command
SetInfo

Edits PlayerDB records.

Usage

/SetInfo <PlayerName> <Property> <Value>

CategoryInfo
Usable from console?Yes
Introduced infCraft 0.405


Allows direct editing of players' database records.

/SetInfo <PlayerName> <Property> <Value>

Edits a property of given player's record.

Editable properties

BanReason

Changes ban reason for the given player. Original ban reason is preserved in the logs.

DisplayedName

Sets or resets the way player's name is displayed in chat. Any printable symbols or color codes may be used in the displayed name. Note that player's real name is still used in logs and on the in-game player list. To remove a custom name, type /SetInfo <RealName> DisplayedName (omit the name).

KickReason

Changes reason of most-recent kick for the given player. Original kick reason is preserved in the logs.

PreviousRank

Changes previous rank held by the player. To reset previous rank to "none" (will show as "default" in /Info), type /SetInfo <Name> PreviousRank (omit the rank name).

RankChangeType

Sets the type of rank change. <Type> can be: Promoted, Demoted, AutoPromoted, AutoDemoted. Only really useful if you use AutoRank.

RankReason

Changes promotion/demotion reason for the given player. Original promotion/demotion reason is preserved in the logs.

TimesKicked

Changes the number of times that a player has been kicked. Acceptable value range: 0-9999

TotalTime

Changes the amount of game time that the player has on record. Accepts values in the common compact time-span format.

UnbanReason

Changes unban reason for the given player. Original unban reason is preserved in the logs.