Advertisement
Guest User

Untitled

a guest
Apr 19th, 2016
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. Options:
  2. P: &8[&7Spectate&8]&7
  3. C: &7
  4. H: &a
  5.  
  6. command /spec <player>:
  7. permission: skript.op
  8. usage: /spec <player>
  9. trigger:
  10. if arg-1 is set:
  11. command "/gmsp %arg-1%"
  12. set {spec::%arg-1%} to true
  13. message "{@P}{@C} Spec Mode Enabled For {@H}%arg-1%{@C}!"
  14. message "{@P}{@C} You Are Now In Spectator Mode!" to arg-1
  15. message " "
  16. message "{@P}{@C} Spectator Commands:"
  17. message " "
  18. message "{@P} &b - {@H}/sc &8| {@C}Comunicate With The Other Spectators."
  19. message "{@P} &b - {@H}/seespecs &8| {@C}See Who Else Is Spectating."
  20. message "{@P} &b - {@H}/tp <player> &8| {@C}Teleport To a Certain Player."
  21. message "{@P} &b - {@H}/t &8| {@C}Teleport To a Random Player."
  22. message "{@P} &b - {@H}/invsee &8| {@C}See a Certain Players Inventory!"
  23. message "{@P} &b - {@H}/invsee &8| {@C}See a Certain Players Inventory!"
  24. message " "
  25. message "{@P}{@C} Spectator Features:"
  26. message " "
  27. message "{@P} &b - {@C}Left Click To Teleport To a Random Player."
  28. message "{@P} &b - {@C}Left Click On a Mob For Their Prospective, Or On a Player For Their Prospective."
  29.  
  30. command /unspec <player>:
  31. permission: skript.op
  32. usage: /unspec <player>
  33. trigger:
  34. if arg-1 is set:
  35. {spec::%arg-1%} is true
  36. delete {spec::%arg-1%}
  37. message "{@P}{@C} Spec Mode Disabled For {@H}%arg-1%{@C}!"
  38. message "{@P}{@C} You Are No Longer In Spectator Mode!" to arg-1
  39. command "/gms %arg-1%"
  40. command "/spawn %arg-1%"
  41. clear inventory of arg-1
  42. heal arg-1
  43.  
  44. on command "/tp":
  45. {spec::%command sender%} is set
  46. command sender does not have permission "skript.op"
  47. cancel the event
  48. command sender command "/t %arguments%"
  49.  
  50. on command "/invsee":
  51. {spec::%command sender%} is set
  52. command sender does not have permission "skript.op"
  53. cancel the event
  54. command sender command "/inv %arguments%"
  55.  
  56. command /inv <player>:
  57. trigger:
  58. if {spec::%command sender%} is true:
  59. open arg 1's inventory to command sender
  60. message "{@P}{@C} Opened {@H}%arg-1%'s inventory."
  61. else:
  62. message "{@P}{@C} Your not spectating!"
  63.  
  64. command /sc <text>:
  65. aliases: /specchat, /specc
  66. trigger:
  67. if {spec::%command sender%} is not set:
  68. send "{@P}{@C} You are not spectating!"
  69. stop trigger
  70. loop all players:
  71. {spec::%loop-player%} is true
  72. send "&8[&bSC&8] &e%command sender%: &b%arg-1%" to loop-player
  73.  
  74. on gamemode change:
  75. {spec::%event-player%} is set
  76. cancel the event
  77.  
  78. command /seespecs:
  79. trigger:
  80. if {spec::%command sender%} is not set:
  81. send "{@P}{@C} You are not spectating!"
  82. stop trigger
  83. if {spec::*} is set:
  84. send "{@P}{@C} Current Spectators:"
  85. loop {spec::*}:
  86. send " &e- &b%loop-index%"
  87. else:
  88. send "{@P}{@C} No current spectators!"
  89.  
  90. on quit:
  91. {spec::%player%} is true
  92. command "/unspec %player%"
  93.  
  94. command /t [<player>]:
  95. usage: /t [<player>]
  96. trigger:
  97. if {spec::%command sender%} is true:
  98. if arg-1 is not set:
  99. loop all players:
  100. {spec::%loop-player%} is not set
  101. add loop-player to {_tp::*}
  102. set {_player} to (a random element out of {_tp::*})
  103. if {_player} is not set:
  104. send "{@P} Nobody to teleport to."
  105. send "{@P} Teleported to %{_player}%"
  106. teleport command sender to {_player}
  107. else:
  108. send "{@P} Teleported to %arg-1%"
  109. teleport command sender to arg-1
  110. else:
  111. send "{@P} You are not spectating!"
  112.  
  113. on left click:
  114. if {spec::%command sender%} is true:
  115. loop all players:
  116. {spec::%loop-player%} is not set
  117. add loop-player to {_tp::*}
  118. set {_player} to (a random element out of {_tp::*})
  119. teleport command sender to {_player}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement