Skip to content

OnCupboardDeauthorize

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnCupboardDeauthorize( BuildingPrivlidge instance, BasePlayer player )
{
    Puts( "OnCupboardDeauthorize works!" );
}

Location

  • BuildingPrivlidge::RemoveSelfAuthorize(BaseEntity/RPCMessage rpc)
csharp
//---
	}
	if (!this.CanAdministrate(rpc.player))
	{
		return;
	}
	if (Interface.CallHook("OnCupboardDeauthorize", this, rpc2.player) != null)
	{
		return;
	}
	this.authorizedPlayers.RemoveWhere((PlayerNameID x) => x.userid == rpc.player.userID);
	BasePlayer arg_B1_1 = rpc.player;
//---

Released under the MIT License.