Hooks/Server/onPlayerDemoted

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name onPlayerDemoted(Player source, Player target, string reason)
Description:
Called when a player is demoted.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onPlayerDemoted]onPlayerDemoted hook[/url][/b]

Parameters

  1. source (Player)
  2. The player who demoted the target.

  3. target (Player)
  4. The player who has been demoted.

  5. reason (string)
  6. The reason provided for the demote.

Return values

This hook does not accept return values. You can still return a value to override the default implementation of this hook.