Stevieeman Posted August 28, 2022 Share Posted August 28, 2022 here is the /warp script that i made. if you use it in your server no need to give credit. options: nowarpmsg: &3The %arg-2% warp doesnt exist yet! # the message that will come up when a warp doesnt exist permmsg: &3You do not have permission to run this command. # the permission message command /warp [<text>] [<text>]: aliases:w usage: &c/warp [list/create/remove/tp/clear/movehere] [warp name] trigger: if arg-1 is "help": if player has permission "warp.help": send "&b&lWarps Help" send "&3/warp list" send "&3/warp create (name)" send "&3/warp remove (name)" send "&3/warp teleport (name)" send "&3/warp clear (all/list)" send "&3/warp movehere (name)" else: send "{@permmsg}" if arg-1 is "list": if player has permission "warp.list": if {wlist::*} is set: send "&b&lWARPS LIST" send "&3%{wlist::*}%." else: send "&b&lWAPRS LIST" send "&3no warps yet, create some with /warp create (name)." else: send "{@permmsg}" if arg-1 is "create": if arg-2 is set: if player has permission "warp.create": if {w::%arg-2%} is not set: set {w::%arg-2%} to player's location add arg-2 to {wlist::*} send "&3Created warp %arg-2% at %{w::%arg-2%}%." else: send "&3The %arg-2% warp already exists!" else: send "{@permmsg}" if arg-1 is "teleport" or "tp": if arg-2 is set: if player has permission "warp.teleport": if {w::%arg-2%} is set: teleport player to {w::%arg-2%} send "&3Teleported you to the %arg-2% warp." else: send "{@nowarpmsg}" else: send "{@permmsg}" if arg-1 is "delete" or "remove": if arg-2 is set: if player has permission "warp.remove": if {w::%arg-2%} is set: delete {w::%arg-2%} remove arg-2 from {wlist::*} send "&3Succesfully removed the %arg-2% warp." else: send "{@nowarpmsg}" else: send "{@permmsg}" if arg-1 is "clear": if player has permission "warp.clear": if arg-2 is "all": delete {w::*} delete {wlist::*} send "&3Deleted all warps" if arg-2 is "list": delete {wlist::*} send "&3Deleted the warp list" else: send "{@permmsg}" if arg-1 is "movehere": if arg-2 is set: if player has permission "warp.movehere": if {w::%arg-2%} is set: set {w::%arg-2%} to player's location send "&3Moved the %arg-2% warp to %{w::%arg-2%}%." else: send "{@nowarpmsg}" else: send "{@permmsg}" the permissions are: warp.help shows the help list warp.list shows the warps list warp.create can create a warp warp.remove can remove warps warp.teleport can teleport to warps warp.movehere can move warps warp.clear can clear all warps it works i tested it Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now