2022-02-14 05:55:50 +00:00
|
|
|
package dev.plex.event;
|
|
|
|
|
|
|
|
import lombok.Data;
|
2022-02-25 07:09:55 +00:00
|
|
|
import lombok.EqualsAndHashCode;
|
2022-02-14 05:55:50 +00:00
|
|
|
import org.bukkit.GameMode;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
import org.bukkit.event.Event;
|
|
|
|
import org.bukkit.event.HandlerList;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
|
2022-02-25 07:15:13 +00:00
|
|
|
@EqualsAndHashCode(callSuper = false)
|
2022-02-14 05:55:50 +00:00
|
|
|
@Data
|
|
|
|
public class GameModeUpdateEvent extends Event
|
|
|
|
{
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
|
|
|
|
private final CommandSender sender;
|
|
|
|
|
|
|
|
private final Player player;
|
|
|
|
|
|
|
|
private final GameMode gameMode;
|
|
|
|
|
2022-02-26 06:26:42 +00:00
|
|
|
public static HandlerList getHandlerList()
|
2022-02-14 05:55:50 +00:00
|
|
|
{
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
|
2022-02-26 06:26:42 +00:00
|
|
|
@Override
|
|
|
|
public @NotNull HandlerList getHandlers()
|
2022-02-14 05:55:50 +00:00
|
|
|
{
|
|
|
|
return handlers;
|
|
|
|
}
|
|
|
|
}
|