Let there be light

This commit is contained in:
PiggyPiglet
2026-01-20 21:23:37 +08:00
parent 2d9f4fca77
commit 722279308a
46 changed files with 1370 additions and 1957 deletions

View File

@@ -21,9 +21,8 @@
package at.helpch.placeholderapi.events;
import at.helpch.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.hypixel.hytale.event.ICancellable;
import com.hypixel.hytale.event.IEvent;
import org.jetbrains.annotations.NotNull;
/**
@@ -33,10 +32,7 @@ import org.jetbrains.annotations.NotNull;
* <p>To know when <b>all</b> Expansions have been registered, use the
* {@link at.helpch.placeholderapi.events.ExpansionsLoadedEvent ExpansionsLoadedEvent} instead.
*/
public final class ExpansionRegisterEvent extends Event implements Cancellable {
@NotNull
private static final HandlerList HANDLERS = new HandlerList();
public final class ExpansionRegisterEvent implements IEvent<Void>, ICancellable {
@NotNull
private final PlaceholderExpansion expansion;
private boolean cancelled;
@@ -45,11 +41,6 @@ public final class ExpansionRegisterEvent extends Event implements Cancellable {
this.expansion = expansion;
}
@NotNull
public static HandlerList getHandlerList() {
return HANDLERS;
}
/**
* The {@link PlaceholderExpansion PlaceholderExpansion} that was registered in PlaceholderAPI.
* <br>The PlaceholderExpansion will be available for use when the event
@@ -80,10 +71,4 @@ public final class ExpansionRegisterEvent extends Event implements Cancellable {
this.cancelled = cancelled;
}
@NotNull
@Override
public HandlerList getHandlers() {
return HANDLERS;
}
}