Sets island spawn point to new enderpearl location.

https://github.com/BentoBoxWorld/Boxed/issues/4
This commit is contained in:
tastybento 2021-03-13 15:39:50 -08:00
parent 9a586ed762
commit 9354382f76

View File

@ -55,6 +55,7 @@ public class EnderPearlListener implements Listener {
});
try {
i.setProtectionCenter(l);
i.setSpawnPoint(l.getWorld().getEnvironment(), l);
u.getPlayer().playSound(l, Sound.ENTITY_GENERIC_EXPLODE, 2F, 2F);
} catch (IOException e1) {
addon.logError("Could not move box " + e1.getMessage());