Class RemovingHandcuffsEventArgs
Contains all information before freeing a handcuffed player.
public class RemovingHandcuffsEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
RemovingHandcuffsEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
RemovingHandcuffsEventArgs(Player, Player, UncuffReason, bool)
Initializes a new instance of the RemovingHandcuffsEventArgs class.
public RemovingHandcuffsEventArgs(Player cuffer, Player target, UncuffReason uncuffReason, bool isAllowed = true)
Parameters
cufferPlayerThe cuffer player.
targetPlayerThe target player to be uncuffed.
uncuffReasonUncuffReasonThe reason of removing handcuffs.
isAllowedboolIndicates whether the event can be executed.
Properties
IsAllowed
Gets or sets a value indicating whether the player can be handcuffed. Denying the event will only have an effect when UncuffReason is Player until next major update.
public bool IsAllowed { get; set; }
Property Value
Player
Gets the cuffer player.
public Player Player { get; }
Property Value
Target
Gets the target player to be cuffed.
public Player Target { get; }
Property Value
UncuffReason
Gets the reason of removing handcuffs.
public UncuffReason UncuffReason { get; }