blockstate, more block events, command preprocess event.

This commit is contained in:
sylvessa 2026-04-06 01:52:58 -05:00
parent 21b5accc69
commit 18a673bd46
34 changed files with 1359 additions and 58 deletions

View file

@ -39,17 +39,10 @@ public class BlockBreakEvent : BlockExpEvent, Cancellable
/// <returns>The Player that is breaking the block involved in this event.</returns>
public Player getPlayer() => _player;
/// <summary>
/// Gets the cancellation state of this event.
/// </summary>
/// <returns><c>true</c> if this event is cancelled.</returns>
/// <inheritdoc/>
public bool isCancelled() => _cancel;
/// <summary>
/// Sets the cancellation state of this event. A cancelled event will not be
/// executed in the server, but will still pass to other plugins.
/// </summary>
/// <param name="cancel"><c>true</c> if you wish to cancel this event.</param>
/// <inheritdoc/>
public void setCancelled(bool cancel)
{
_cancel = cancel;