Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /respawn [<offline player>]:
- permission: noob.respawn
- trigger:
- if arg 1 is not set:
- message "&cPlease specify an argument"
- else:
- if arg 1 is online:
- if {deathloc::%arg-1%} is set:
- if {inventory::%arg-1%} is set:
- teleport arg-1 to {deathloc::%arg-1%}
- equip arg-1 with {casco::%arg-1%}
- equip arg-1 with {pechera::%arg-1%}
- equip arg-1 with {pantalones::%arg-1%}
- equip arg-1 with {botas::%arg-1%}
- restore inventory of arg-1 from {inventory::%arg-1%}
- set gamemode of arg-1 to survival
- message "&aYou have sucessfully respawnned %arg-1%" to command sender
- message "&aYou have been respawnned by %command sender%" to arg-1
- delete {casco::%arg-1%}
- delete {pechera::%arg-1%}
- delete {pantalones::%arg-1%}
- delete {botas::%arg-1%}
- delete {deathloc::%arg-1%}
- delete {inventory::%arg-1%}
- set {whitelisted::%arg-1%} to true
- else:
- message "&cInventory of %arg 1% not found!"
- else:
- message "&cDeath Location of %arg 1% not found!"
- else:
- message "&cPlayer %arg 1% is not online!"
- on death of player:
- set {inventory::%victim%} to victim's serialized inventory
- set {deathloc::%victim%} to victim's location
- set {casco::%victim%} to helmet of victim
- set {pechera::%victim%} to chestplate of victim
- set {pantalones::%victim%} to leggings of victim
- set {botas::%victim%} to boots of victim
- on unload:
- delete {casco::*}
- delete {pechera::*}
- delete {pantalones::*}
- delete {botas::*}
- delete {deathloc::*}
- delete {inventory::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement