Integrate Wild Update quests and Citizens contacts

This commit is contained in:
unimatrixgit 2026-12-03 21:42:17 +01:00
commit f46b26d956

View file

@ -44,11 +44,8 @@ final class DenseSpice implements Listener {
Bukkit.getScheduler().runTask(plugin,()->{
if(!c.isLoaded())return;
Location loc=e.getWorld().getHighestBlockAt(a[0]+15,a[1]+15).getLocation().add(.5,1,.5);
Villager seller=e.getWorld().spawn(loc,Villager.class,v->{
v.setCustomName(ChatColor.GOLD+"Spice Seller · +35%");v.setCustomNameVisible(true);
v.setAI(false);v.setInvulnerable(true);v.setPersistent(true);v.setRemoveWhenFarAway(false);
v.getPersistentDataContainer().set(new NamespacedKey("dunerealms","spice-seller"),PersistentDataType.BYTE,(byte)1);
});
if(!com.dunerealms.npc.CitizensBridge.ready())return;
com.dunerealms.npc.CitizensBridge.spawnContact(plugin,loc,ChatColor.GOLD+"Spice Seller · +35%",new NamespacedKey("dunerealms","spice-seller"),null,true);
});
}
@EventHandler(priority=EventPriority.HIGHEST,ignoreCancelled=true) public void harvest(BlockBreakEvent e) {