[This is preliminary documentation and is subject to change.]
Changes rank of the player (promotes or demotes). Throws PlayerOpException on problems.
Namespace: fCraftAssembly: fCraft (in fCraft.dll) Version: 0.6.3.1 (0.6.3.1)
Syntax
| C# |
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
| Exception | Condition |
|---|---|
| fCraft..::..PlayerOpException |