Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. command /respawn [<offline player>]:
  2. permission: noob.respawn
  3. trigger:
  4. if arg 1 is not set:
  5. message "&cPlease specify an argument"
  6. else:
  7. if arg 1 is online:
  8. if {deathloc::%arg-1%} is set:
  9. if {inventory::%arg-1%} is set:
  10. teleport arg-1 to {deathloc::%arg-1%}
  11. equip arg-1 with {casco::%arg-1%}
  12. equip arg-1 with {pechera::%arg-1%}
  13. equip arg-1 with {pantalones::%arg-1%}
  14. equip arg-1 with {botas::%arg-1%}
  15. restore inventory of arg-1 from {inventory::%arg-1%}
  16. set gamemode of arg-1 to survival
  17. message "&aYou have sucessfully respawnned %arg-1%" to command sender
  18. message "&aYou have been respawnned by %command sender%" to arg-1
  19. delete {casco::%arg-1%}
  20. delete {pechera::%arg-1%}
  21. delete {pantalones::%arg-1%}
  22. delete {botas::%arg-1%}
  23. delete {deathloc::%arg-1%}
  24. delete {inventory::%arg-1%}
  25. set {whitelisted::%arg-1%} to true
  26.  
  27. else:
  28. message "&cInventory of %arg 1% not found!"
  29. else:
  30. message "&cDeath Location of %arg 1% not found!"
  31. else:
  32. message "&cPlayer %arg 1% is not online!"
  33.  
  34. on death of player:
  35. set {inventory::%victim%} to victim's serialized inventory
  36. set {deathloc::%victim%} to victim's location
  37. set {casco::%victim%} to helmet of victim
  38. set {pechera::%victim%} to chestplate of victim
  39. set {pantalones::%victim%} to leggings of victim
  40. set {botas::%victim%} to boots of victim
  41.  
  42. on unload:
  43. delete {casco::*}
  44. delete {pechera::*}
  45. delete {pantalones::*}
  46. delete {botas::*}
  47. delete {deathloc::*}
  48. delete {inventory::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement