Skip to content

Example Command Trees

Shane Bee edited this page Nov 8, 2024 · 3 revisions

Warp Command:

brig command tree /warp:
	literal arg "set":
		string arg "name":
			trigger:
				if {warps::%{_name}%} is set:
					send "[WARPS] &cWarp &6%{_name}% &calready set"
					stop
				set {warps::%{_name}%} to location of player
				send "[WARPS] &aWarp &6%{_name}% &aset"
	literal arg "delete":
		string arg "name":
			suggestions:
				apply suggestions indexes of {warps::*}
			trigger:
				if {warps::%{_name}%} is not set:
					send "[WARPS] &cWarp &6%{_name}% &cis not set"
					stop
				delete {warps::%{_name}%} 
				send "[WARPS] &aDeleted warp %{_name}%"
	literal arg "warp":
		string arg "name":
			suggestions:
				apply suggestions indexes of {warps::*}
			trigger:
				if {warps::%{_name}%} is not set:
					send "[WARPS] &cWarp &6%{_name}% &cis not set"
					stop
				send "[WARPS] &aTeleporting to warp &6%{_name}%"
				teleport player to {warps::%{_name}%}

Usage:

  • /warp set pond
  • /warp delete pond
  • /warp warp pond
Clone this wiki locally