-
Notifications
You must be signed in to change notification settings - Fork 0
M | Utility: TeleportUtils
Sartaj Singh edited this page May 29, 2025
·
4 revisions
TeleportUtils enables advanced teleportation: delays, safety, particles, and cancellation.
1. teleportPlayer(Player player, Location location, int delayTicks, boolean particles, boolean sound, boolean safe)
What it does:
Teleports a player after a delay (in ticks), with optional particles, sounds, and a safety check (avoid lava, air, etc.).
Example:
TeleportUtils.teleportPlayer(player, target, 40, true, true, true);Teleports after 2 seconds (40 ticks), with particles and sound, and only if the destination is safe.
What it does:
Cancels any pending teleport for the player.
Example:
TeleportUtils.cancelTeleport(player);- Use when teleporting players to risky or far-away locations.
- Use delay for "warmup" teleports (e.g., /home, /spawn).
- Always enable safety for survival servers.
- Home
- A | Getting Started & Plugin Overview
- B | The Registry System: Items, Foods, Commands, Events
- C | Creating Custom Items
- D | Creating Custom Foods
- E | Advanced: Custom Effects in FXItems
- F | Creating Custom Commands
- G | Creating Custom Events & Behaviors
- H | Utility: CooldownUtils
- I | Utility: CustomItemUtils
- J | Utility: EffectUtils
- K | Utility: ManaUtils
- L | Utility: OneTimeCraftUtils
- M | Utility: TeleportUtils
- N | Utility: ProjectileUtils
- O | Utility: GammaUtils
- P | Utility: EntitySizeUtils
- Q | FXItems API (com.noctify.API) & Making Addons
- R | Advanced Techniques, Gotchas & FAQ
- S | Auto-Registration System
- T | Migration Guide (v1.1 → v1.2+)
- U | Changelog