9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2026-01-06 15:41:56 +00:00

General cleanup and optimisations

This commit is contained in:
William
2022-07-11 15:00:22 +01:00
parent b5f447b20a
commit 22b7648b77
15 changed files with 24 additions and 26 deletions

View File

@@ -2,7 +2,10 @@ package net.william278.husksync.event;
public interface CancellableEvent extends Event {
boolean isCancelled();
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
default boolean isCancelled() {
return false;
}
void setCancelled(boolean cancelled);