55 lines
1.5 KiB
Java
55 lines
1.5 KiB
Java
package com.massivecraft.factions.event;
|
|
|
|
import com.massivecraft.factions.entity.Faction;
|
|
import com.massivecraft.massivecore.PriorityLines;
|
|
import org.bukkit.command.CommandSender;
|
|
import org.bukkit.event.HandlerList;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public class EventFactionsFactionShowAsync extends EventFactionsAbstractSender {
|
|
// -------------------------------------------- //
|
|
// REQUIRED EVENT CODE
|
|
// -------------------------------------------- //
|
|
|
|
private static final HandlerList handlers = new HandlerList();
|
|
|
|
@Override
|
|
public @NotNull HandlerList getHandlers() {
|
|
return handlers;
|
|
}
|
|
|
|
public static HandlerList getHandlerList() {
|
|
return handlers;
|
|
}
|
|
|
|
// -------------------------------------------- //
|
|
// FIELDS
|
|
// -------------------------------------------- //
|
|
|
|
private final Faction faction;
|
|
|
|
public Faction getFaction() {
|
|
return this.faction;
|
|
}
|
|
|
|
private final Map<String, PriorityLines> idPriorityLiness;
|
|
|
|
public Map<String, PriorityLines> getIdPriorityLiness() {
|
|
return this.idPriorityLiness;
|
|
}
|
|
|
|
// -------------------------------------------- //
|
|
// CONSTRUCT
|
|
// -------------------------------------------- //
|
|
|
|
public EventFactionsFactionShowAsync(CommandSender sender, Faction faction) {
|
|
super(true, sender);
|
|
this.faction = faction;
|
|
this.idPriorityLiness = new HashMap<>();
|
|
}
|
|
|
|
}
|