Add clause "implements Cancellable" (#431)
This commit is contained in:
parent
1b6d2ec667
commit
950cf9460b
|
@ -1,9 +1,10 @@
|
|||
package net.coreprotect.event;
|
||||
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
|
||||
public class CoreProtectPreLogEvent extends Event {
|
||||
public class CoreProtectPreLogEvent extends Event implements Cancellable {
|
||||
|
||||
private static final HandlerList handlers = new HandlerList();
|
||||
private boolean cancelled = false;
|
||||
|
@ -18,10 +19,12 @@ public class CoreProtectPreLogEvent extends Event {
|
|||
return user;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCancelled() {
|
||||
return cancelled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setCancelled(boolean cancel) {
|
||||
this.cancelled = cancel;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue