Jump to content

Player Warps Skript


Ikey

Recommended Posts

Made this for yall 🙂

Rate it in the comments!

# PLAYER WARPS SKRIPT BY ikeyIX
# FOR IKEY SURVIVAL

#Options
options:
   prefix: &8[&3IS&8]

#Main Commands
command /pwarps [<text>] [<text>]:
   aliases: /playerwarps, /playerwarp, /pwarp
   trigger:
      if arg-1 is not set:
         send "&3Ikey Survival Playerwarps&f:"
         send "&a/playerwarps &7create &6<pwarp name>"
         send "&a/playerwarps &7teleport &6<pwarp name>"
         send "&a/playerwarps &7list"
      if arg-1 is "create":
         set {pwarps.loc.%arg-2%} to location of player
         add arg-2 to {pwarps.list::*}
         set {pwarps.name.%arg-2%} to "True"
         set {pwarps.%arg-2%.%player%} to "True"
         send "{@prefix} &bSuccesfully created a warp named &b%arg-2%&7." to player
      if arg-1 is "teleport":
         if arg-2 is set:
            teleport player to {pwarps.loc.%arg-2%}
            send "{@prefix} &bTeleported to %arg-2%"
         if arg-2 is not set:
            send "{@prefix} &cEnter a valid Player Warp name to teleport to it!"
         if {pwarps.name.%arg-2%} is "False":
            send "{@prefix} &cEnter a valid Player Warp name to teleport to it!"
      if arg-1 is "list":
         send "{@prefix} &bShowing you a list of the warps:" to player
         send "&7%{pwarps.list::*}%" to player
         if {pwarps.list::*} < 1:
            send "{@prefix} &cCurrently there are no warps created." to player
      if arg-1 is "remove":
         if {pwarps.%arg-2%.%player%} is "True":
            remove arg-2 from {pwarps.list::*}
            clear {pwarps.loc.%arg-2%}
            set {pwarps.name.%arg-2%} to "False"
            set {pwarps.%arg-2%.%player%} to "False"
            send "{@prefix} &aSuccessfully remove player warp ""%arg-2%""."
         if {pwarps.%arg-2%.%player%} is "False":
            send "{@prefix} &cYou can not remove a player warp that is not yours!"

#Admin Commands
command /setmeasowner [<text>]:
   permission: op
   trigger:
      set {pwarps.%arg-1%.%player%} to "True"

command /removepwarps:
   permission: op
   trigger:
      clear {pwarps.list::*}
      send "&cReset all the player warps from Player Warp List"

#Tab Completes
on tab complete of "/pwarps" and "/playerwarps" and "/pwarp" and "/playerwarp":
	set tab completions for position 1 to "create" and "teleport" and "list" and "remove"

 

Owner of ikeysurviv.minehut.gg

 

⊱------------------------------⊰

[LEGEND] on Minehut

⊱------------------------------⊰

In-game name - ikeyIX

Discord name - ikeyIX#2007

Link to comment
Share on other sites

55 minutes ago, LapEvents said:

Haven't tested, but it looks good!

thanks!

Owner of ikeysurviv.minehut.gg

 

⊱------------------------------⊰

[LEGEND] on Minehut

⊱------------------------------⊰

In-game name - ikeyIX

Discord name - ikeyIX#2007

Link to comment
Share on other sites

Hey, try using %player's uuid% instead of just %player%. If you use %player%, they can change their IGN and they won't own the warps anymore as it saves their IGN instead of UUID.   

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

6 minutes ago, NotKaizo said:

Hey, try using %player's uuid% instead of just %player%. If you use %player%, they can change their IGN and they won't own the warps anymore as it saves their IGN instead of UUID.   

Ah ok, thanks for the feedback

Owner of ikeysurviv.minehut.gg

 

⊱------------------------------⊰

[LEGEND] on Minehut

⊱------------------------------⊰

In-game name - ikeyIX

Discord name - ikeyIX#2007

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...