delhome/delwarp all rewrite; add events for bulk-deletes, close #265

This commit is contained in:
William committed 2022-11-22 21:58:23 +00:00
1 parent 2402f12536
commit 834fdbfc0e
17 files changed
+379 -51

No files matched your search

@@ -0,0 +1,38 @@
package net.william278.huskhomes.event;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;
public class DeleteAllWarpsEvent extends Event implements IDeleteAllWarpsEvent, Cancellable {
private static final HandlerList HANDLER_LIST = new HandlerList();
private boolean cancelled;
public DeleteAllWarpsEvent() {
}
@NotNull
@Override
public HandlerList getHandlers() {
return HANDLER_LIST;
}
@SuppressWarnings("unused")
public static HandlerList getHandlerList() {
return HANDLER_LIST;
}
@Override
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
@Override
public boolean isCancelled() {
return cancelled;
}
}