Solved if destination is nether

Discussion in 'Spigot Plugin Development' started by UnlimitedNinjas, Jun 10, 2018.

  1. on teleport, if destination is the nether, cancel event?
    how do i do this?
    explaination: When a player teleports if the destination is the nether cancel event
     
  2. check if this is equals to nether

    event.getTo().getWorld().getEnvironment()
     
    • Agree Agree x 1
  3. Thank you! it figured it out.