io.github.dailystruggle.rtp.bukkit.events.PlayerQueuePopEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of RTP Show documentation
Show all versions of RTP Show documentation
a random teleport plugin
The newest version!
package io.github.dailystruggle.rtp.bukkit.events;
import io.github.dailystruggle.rtp.common.selection.region.Region;
import org.bukkit.Bukkit;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.jetbrains.annotations.NotNull;
import java.util.UUID;
public class PlayerQueuePopEvent extends Event {
private static final HandlerList HANDLERS_LIST = new HandlerList();
private final Region region;
private final UUID playerId;
public PlayerQueuePopEvent(Region region, UUID playerId) {
super(!Bukkit.isPrimaryThread());
this.region = region;
this.playerId = playerId;
}
public static HandlerList getHandlerList() {
return HANDLERS_LIST;
}
@Override
public @NotNull HandlerList getHandlers() {
return HANDLERS_LIST;
}
public Region getRegion() {
return region;
}
public UUID getPlayerId() {
return playerId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy