setCancelled

public void setCancelled(boolean toCancel)

Proxy method to setResult for the Cancellable interface. setResult is preferred, as it allows you to specify the Result beyond Result.DENY and Result.ALLOW.

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters

toCancel

result becomes DENY if true, ALLOW if false