Jump to content

/warp Skript


ThunderStorm

Recommended Posts

enjoy.

 

command /setwarp [<text>]:
    permission: warps.admin
    permission message: &fUnknown command. Type "/help" for a list of commands!
    trigger:
        if arg 1 is set:
            if {warps::%arg 1%} is not set:
                set {warps::%arg 1%} to location of player
                send "&3Warp &b%arg 1% &3has been set to your location."
            else:
                send "&3Warp &b%arg 1% &3has already been set."
        else:
            send "You do realize your warp needs to have a name right?"
           
command /delwarp [<text>]:
    permission: warps.admin
    permission message: &fUnknown command. Type "/help" for a list of commands!
    trigger:
        if arg 1 is set:
            if {warps::%arg 1%} is set:
                delete {warps::%arg 1%}
                send "&3Warp &b%arg 1% &3has been removed."
            else:
                send "&3Warp &b%arg 1% &3does not exist."
        else:
            send "You do realize you need to put the warps name right?"

command /warp [<text>]:
    trigger:
        if arg 1 is set:
            if {warps::%arg 1%} is set:
                teleport player to {warps::%arg 1%}
                send "&3Teleporting to warp &b%arg 1%&3!"
            else:
                send "&3Warp &b%arg 1% &3does not exist."
        else:
            send "BRO UR SO STUPID U NEED TO TYPE THE NAME OF THE WARP TOO!! U IDIOTIC PIECE OF TRASH"

 

 

  • Like 1

IGN: LordUltron    Discord: ThunderStorm#6354

-------------------------------------------------------------image.png.4c4c27822b59b56f6996b43655338072.png

-------------------------------------------------------------
 

Link to comment
Share on other sites

Cool skript!

A small suggestion that can reduce the number of lines of the skript:
You can use required arguments instead of if statements checking if the argument is set.

command /example <string>:
	usage: This will send if arg 1 is not set.
	trigger:
    	send "Arg 1 is required! This will only send if arg 1 is set!"

 

Edited by _omga

If I helped you at all, leave a like!

IGN: _omga
Discord: omega#1000

 

Link to comment
Share on other sites

  • 1 month later...

Please do not necropost.

Locked.

Joined on January 17th 2016

VIP since April 5 2017 - August 1st 2019

JrMod since August 1st

Mod since October 1st

SrMod since November 2nd - 2/7/21

Patron since February 8 - 3/7/21

Mod since March 8 2021

Retired since idk when

 

    [IMG]    button.png?t=Appeal&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1 button.png?t=Rules&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1  

If I helped or entertained you at all today, please react with a heart.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...