OnCupboardClearList
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnCupboardClearList( BuildingPrivlidge instance, BasePlayer player )
{
Puts( "OnCupboardClearList works!" );
}
Location
- BuildingPrivlidge::ClearList(BaseEntity/RPCMessage rpc)
csharp
//---
}
if (!this.CanAdministrate(rpc.player))
{
return;
}
if (Interface.CallHook("OnCupboardClearList", this, rpc.player) != null)
{
return;
}
this.authorizedPlayers.Clear();
this.UpdateMaxAuthCapacity();
//---