40 lines
843 B
Java
40 lines
843 B
Java
package com.alttd.essentia.events;
|
|
|
|
import org.bukkit.Location;
|
|
import org.bukkit.entity.Player;
|
|
import org.bukkit.event.HandlerList;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public class PlayerRemoveHomeEvent extends EssentiaEvent {
|
|
|
|
private static final HandlerList handlerList = new HandlerList();
|
|
|
|
private final Player player;
|
|
private final String homeName;
|
|
|
|
public PlayerRemoveHomeEvent(Player player, String homeName) {
|
|
this.player = player;
|
|
this.homeName = homeName;
|
|
}
|
|
|
|
public Player getPlayer() {
|
|
return player;
|
|
}
|
|
|
|
public String getHomeName() {
|
|
return homeName;
|
|
}
|
|
|
|
@NotNull
|
|
@Override
|
|
public HandlerList getHandlers() {
|
|
return handlerList;
|
|
}
|
|
|
|
@NotNull
|
|
public static HandlerList getHandlerList() {
|
|
return handlerList;
|
|
}
|
|
|
|
}
|