Teleport System (Beta)

Script Teleport System (Beta) 0.7

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

Update Log:

1. Added Unsafe Teleport Confirmation System
- Unsafe teleports no longer immediately cancel.
- A new GUI pops up showing: Cancel button, Confirm button and Paper item displaying the unsafe reason
- Players must manually confirm before proceeding.
- A new command /unsafeconfirm executes the stored teleport safely.

2. TELEPORT_FUNC_tp() Updated
- Added a new parameter: isSafe (default: true).
- When isSafe = true, the function:
Performs safety checks.
Opens the confirmation GUI if unsafe.
Stops execution until the player confirms.
- When isSafe = false, the teleport bypasses safety checks and proceeds normally.

3. Fixed Quit & Damage Event Handling
Update Log:
- Added Prefix Support
The new version introduces a prefix argument in the teleport function:
Code:
prefix: string = "TELEPORT_FUNC"

This allows the script to run multiple independent teleport systems without variable conflicts.If the prefix is empty, the function automatically assigns "TELEPORT_FUNC" as the default.