[This is preliminary documentation and is subject to change.]

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

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)

Syntax

   
 C# 
public void ChangeRank(
	Player player,
	Rank newRank,
	string reason,
	bool announce,
	bool raiseEvents,
	bool auto
)

Parameters

player
Player
Player who originated the promotion/demotion action.
newRank
Rank
New rank.
reason
String
Reason for promotion/demotion.
announce
Boolean
Whether rank change should be publicly announced or not.
raiseEvents
Boolean
Whether PlayerInfo.RankChanging and PlayerInfo.RankChanged events should be raised.
auto
Boolean
Whether rank change should be marked as "automatic" or manual.

Exceptions

See Also