Add MCoreCancellableEvent
This commit is contained in:
parent
e00cd2afc8
commit
9a6cae780d
15
src/com/massivecraft/mcore/event/MCoreCancellableEvent.java
Normal file
15
src/com/massivecraft/mcore/event/MCoreCancellableEvent.java
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package com.massivecraft.mcore.event;
|
||||||
|
|
||||||
|
import org.bukkit.event.Cancellable;
|
||||||
|
|
||||||
|
public abstract class MCoreCancellableEvent extends MCoreEvent implements Cancellable
|
||||||
|
{
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// FIELDS
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
private boolean cancelled = false;
|
||||||
|
@Override public boolean isCancelled() { return this.cancelled; }
|
||||||
|
@Override public void setCancelled(boolean cancelled) { this.cancelled = cancelled; }
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user