Add clause "implements Cancellable" (#431)

This commit is contained in:
Take-John 2023-08-23 08:52:41 +09:00 committed by GitHub
parent 1b6d2ec667
commit 950cf9460b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}