|Hook name||canDemote(Player ply, Player target, string reason)|
|Whether a player can demote another player.|
|Returns:||boolean canDemote, string message|
|BBCode Link:||[b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canDemote]canDemote hook[/url][/b]|
- ply (Player)
- target (Player)
- reason (string)
The player who wants to demote.
The player whom is to be demoted.
The reason provided for the demote.
- canDemote (boolean)
- message (string)
Whether the player can change demote the target.
The message to show when the player cannot demote the other player. Only useful when canDemote is false.