core Skript icon

core Skript -----

Core



Code (Text):
command /tpa <player>:
    trigger:
        if arg-1 is set:
            if arg-1 is not player:
                if arg-1 is online:
                    set {request.%arg-1%} to player
                    send "{@logo} &7request send to &b%arg-1%&r. " to player
                    send "{@logo} &b%player% &7wants to teleport to your position. " to arg-1
                    message "<tooltip:&aAccept Request><command:/tpyes>&aAccept <reset>or<reset> <tooltip:&cDeny request><command:/tpdeny>&cDeny" to arg-1
                    set {requestpending.%arg-1%} to true
                else:
                    send "{@logo} The player you have selected is not online"
            else:
                send "{@logo} You can't teleport to yourself"
        else:
            send "{@logo} Please select a player"
Resource Information
Author:
----------
Total Downloads: 5
First Release: Yesterday at 6:20 PM
Last Update: Yesterday at 6:20 PM
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings