use of gg.projecteden.nexus.features.events.y2020.halloween20.models.QuestNPC in project Nexus by ProjectEdenGG.
the class Pugmas20 method createNpcHolograms.
public static void createNpcHolograms() {
deleteNpcHolograms();
for (QuestNPC questNPC : QuestNPC.values()) {
NPC npc = CitizensUtils.getNPC(questNPC.getId());
Hologram hologram = HologramsAPI.createHologram(Nexus.getInstance(), npc.getStoredLocation().clone().add(0, 3.15, 0));
hologram.appendItemLine(new ItemStack(Material.EMERALD));
holograms.add(hologram);
}
}
use of gg.projecteden.nexus.features.events.y2020.halloween20.models.QuestNPC in project Nexus by ProjectEdenGG.
the class Halloween20 method onNPCClick.
// Talking NPCs Handler
@EventHandler
public void onNPCClick(NPCRightClickEvent event) {
QuestNPC npc = QuestNPC.getByID(event.getNPC().getId());
if (npc == null)
return;
if (!new CooldownService().check(event.getClicker(), "Halloween20_NPC", TickTime.SECOND.x(2)))
return;
npc.sendScript(event.getClicker());
}
Aggregations