Class TeleportUtils

java.lang.Object
dev.piglin.piglinworldapi.util.TeleportUtils
All Implemented Interfaces:
org.bukkit.event.Listener

public class TeleportUtils extends Object implements org.bukkit.event.Listener
  • Constructor Details

    • TeleportUtils

      public TeleportUtils()
  • Method Details

    • teleportDelayed

      public static boolean teleportDelayed(TeleportUtils.TimedTeleportRecord<?> record, boolean checkPVP)
      Wait until TeleportUtils.TimedTeleportRecord.time and teleport the player to TeleportUtils.TimedTeleportRecord.destination if the player doesn't move
      Parameters:
      record - The teleport description
      Returns:
      true if teleport was scheduled, false if it wasn't scheduled due to PVP
    • onMove

      public void onMove(org.bukkit.event.player.PlayerMoveEvent event)