Skip to content

Instantly share code, notes, and snippets.

@zifnab06
Last active December 21, 2015 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zifnab06/6277325 to your computer and use it in GitHub Desktop.
Save zifnab06/6277325 to your computer and use it in GitHub Desktop.
Make end portal go to a different location.
@EventHandler
public void onPlayerLeaveEnedEvent(PlayerTeleportEvent event){
World world = Bukkit.getServer().getWorld("world");
Location l = new Location(world, x, y, z);
if(event.getFrom().getWorld().getEnvironment() == Environment.THE_END){
event.setTo(loc);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment