Integrate Wild Update quests and Citizens contacts
This commit is contained in:
parent
018d776874
commit
f46b26d956
1 changed files with 919 additions and 81 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff