Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &eU-Warp &6»
- # PERMISOS:
- permSet: "ultrawarp.command.set"
- permDel: "ultrawarp.command.del"
- permTp: "ultrawarp.command.tp"
- permView: "ultrawarp.command.view"
- # DIRECTORIOS:
- Dir: "plugins/UltraWarp"
- FileWarps: "plugins/UltraWarp/Warps.yml"
- on load:
- if skutil dir {@Dir} doesn't exist:
- create dir {@Dir}
- if skutil file {@FileWarps} doesn't exist:
- create file {@FileWarps}
- command /ultrawarp [<text>] [<text>] [<offline player>]:
- trigger:
- if arg 1 is "set":
- if player has permission {@permSet}:
- if skutil file {@FileWarps} exists:
- set {_LocX} to x-coordinate of player
- set {_LocY} to y-coordinate of player
- set {_LocZ} to z-coordinate of player
- set {_WorldOfPlayer} to "%world of player%"
- set {_PlayerPitch} to player's pitch
- set {_PlayerYaw} to player's yaw
- set {_ItemIcon} to player's held item
- set skutil yml value "Waprs.%arg-2%.X" from file {@FileWarps} to {_LocX}
- set skutil yml value "Waprs.%arg-2%.Y" from file {@FileWarps} to {_LocY}
- set skutil yml value "Waprs.%arg-2%.Z" from file {@FileWarps} to {_LocZ}
- set skutil yml value "Waprs.%arg-2%.Yaw" from file {@FileWarps} to {_PlayerYaw}
- set skutil yml value "Waprs.%arg-2%.Pitch" from file {@FileWarps} to {_PlayerPitch}
- set skutil yml value "Waprs.%arg-2%.World" from file {@FileWarps} to {_WorldOfPlayer}
- set skutil yml value "Waprs.%arg-2%.Item" from file {@FileWarps} to {_ItemIcon}
- send "{@prefix} &7Warp: &6%arg-2% &7Mundo: &6%{_WorldOfPlayer}%&7 Guardado!" to sender
- else:
- if arg 1 is set:
- if arg 2 is not set:
- if arg 3 is not set:
- set {_X} to skutil yaml value "Waprs.%arg-1%.X" from file {@FileWarps}
- set {_Y} to skutil yaml value "Waprs.%arg-1%.Y" from file {@FileWarps}
- set {_Z} to skutil yaml value "Waprs.%arg-1%.Z" from file {@FileWarps}
- set {_Yaw} to skutil yaml value "Waprs.%arg-1%.Yaw" from file {@FileWarps}
- set {_Pitch} to skutil yaml value "Waprs.%arg-1%.Pitch" from file {@FileWarps}
- set {_World} to skutil yaml value "Waprs.%arg-1%.World" from file {@FileWarps}
- set {_tp} to location({_X}, {_Y}, {_Z}, world({_World}), {_Yaw}, {_Pitch})
- teleport player to {_tp}
- else:
- set {_nodes::*} to skutil yaml nodes "Waprs" from file {@FileWarps}
- open chest with 6 rows named "&5&lWarps" to player
- set {_slot} to 0
- loop {_nodes::*}:
- set {_loop} to loop-value
- set {_Item} to skutil yaml value "Waprs.%{_loop}%.Item" from file {@FileWarps}
- set {_World} to skutil yaml value "Waprs.%{_loop}%.World" from file {@FileWarps}
- format slot {_slot} of player with {_Item} named "&c&l%{_loop}%" with lore "&7Mundo: &e%{_World}%||&7Warp: &e%{_loop}%" to close then run [execute player command "ultrawarp %{_loop}%"]
- add 1 to {_slot}
- wait 1 second
- # on break of spruce wood block:
- # if player has permission "oggames.santa":
- # chance of 30%:
- # drop 1 of skull of ("CruXXx" parsed as offline player) named "&r&7» &c&lPresent &r&7«"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement