KroterPvP

SuperSpawn 1.5

Apr 9th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.02 KB | None | 0 0
  1. Options:
  2. version: 1.6
  3. command /superspawn [<text>] [<text>] [<offlineplayer>]:
  4. aliases: /sspawn
  5. trigger:
  6. if arg 1 is not "help" or "set" or "delete" or "tp" or "tpjoin" or "reload":
  7. send "&7You must use &6/sspawn &7for more help!"
  8. if arg 1 is not set:
  9. make player execute command "/sspawn help"
  10. if arg 1 is "help":
  11. player doesn't have permission "sspawn.help" or "sspawn.admin":
  12. send "&8&m----------------&r &b✯ &3&lSuperSpawn&r &b✯ &8&m-----------------"
  13. send " &a/sspawn tp &8| &7Teleports you to the spawn."
  14. else if player has permission "sspawn.adminhelp" or "sspawn.admin":
  15. send "&8&m----------------&r &b✯ &3&lSuperSpawn&r &b✯ &8&m-----------------"
  16. send " &a/sspawn set &8| &7Sets the spawn to your position."
  17. send " &a/sspawn delete &8| &7Removes the spawn."
  18. send " &a/sspawn tp &8| &7Teleports you to the spawn."
  19. send " &a/sspawn tp spawn <player> &8| &7Teleports the player to the spawn."
  20. send " &a/sspawn tpjoin <yes> or <no> &8| &7Teleports players to the spawn on join."
  21. send " &a/sspawn reload &7Reloads SuperSpawn.sk file."
  22. if arg 1 is "set":
  23. player has permission "sspawn.set" or "sspawn.admin":
  24. set {sspawn} to player's position
  25. set {sspawn.set} to true
  26. send "&7You have set the spawn."
  27. else if player doesn't have permission "sspawn.set" or "sspawn.admin":
  28. send "&cYou don't have permission to do this!"
  29. if arg 1 is "delete":
  30. player has permission "sspawn.delete" or "sspawn.admin":
  31. if {sspawn.set} is true:
  32. delete {sspawn}
  33. set {sspawn.set} to false
  34. send "&7You have removed the spawn."
  35. else if {sspawn.set} is false:
  36. send "&7Spawn is not set."
  37. else if player doesn't have permission "sspawn.delete" or "sspawn.admin":
  38. send "&cYou don't have permission to do this!"
  39. if arg 1 is "tp":
  40. player has permission "sspawn.tp" or "sspawn.admin":
  41. if arg 2 is not set:
  42. if {sspawn.set} is true:
  43. teleport player to {sspawn}
  44. send "&7You have been teleported to the spawn."
  45. else if {sspawn.set} is false:
  46. send "&7Spawn is not set."
  47. else if player doesn't have permission "sspawn.tp" or "sspawn.admin":
  48. send "&cYou don't have permission to do this!"
  49. if arg 1 is "tp":
  50. player has permission "sspawn.tpothers" or "sspawn.admin":
  51. if arg 2 is "spawn":
  52. if arg 3 is not set:
  53. send "&7You must use &a/sspawn tp spawn <player>&7."
  54. if arg 3 is set:
  55. if arg 3 is online:
  56. if {sspawn.set} is true:
  57. teleport arg 3 to {sspawn}
  58. send "&7You have teleported &a%arg 3% &7to the spawn." to player
  59. send "&a%player% &7has teleported you to the spawn." to arg 3
  60. else if {sspawn.set} is false:
  61. send "&7Spawn is not set."
  62. else if arg 3 is offline:
  63. send "&a%arg 3% &7is offline."
  64. else if arg 2 is not "spawn":
  65. send "&7You must use &a/sspawn tp spawn <player>&7."
  66. else if player doesn't have permission "sspawn.tpothers" or "sspawn.admin":
  67. send "&cYou don't have permission to do this!"
  68. if arg 1 is "tpjoin":
  69. player has permission "sspawn.cmdtpjoin" or "sspawn.admin":
  70. if arg 2 is not set:
  71. send "&7Spawn on join is set to %{sspawn.tpjoin}%&7."
  72. send "&7You must use &a/sspawn tpjoin <yes> or <no>&7."
  73. if arg 2 is set:
  74. if arg 2 is "yes":
  75. set {sspawn.tpjoin} to true
  76. send "&7You have activated the spawn on join for everyone"
  77. send "&7with the permission &asspawn.tponjoin&7."
  78. else if arg 2 is "no":
  79. set {sspawn.tpjoin} to false
  80. send "&7You have deactivated the spawn on join."
  81. else if player doesn't have permission "sspawn.cmdtpjoin" or "sspawn.admin":
  82. send "&cYou don't have permission to do this!"
  83. if arg 1 is "reload":
  84. player has permission "sspawn.reload" or "sspawn.admin":
  85. make console execute command "/sk reload SuperSpawn.sk"
  86. wait 5 ticks
  87. send "&3&lSuperSpawn&r &7has been reloaded. (&ev{@version}&7)."
  88. else if player doesn't have permission "sspawn.reload" or "sspawn.admin":
  89. send "&cYou don't have permission to do this!"
  90. on join:
  91. player has permission "sspawn.tponjoin":
  92. if {sspawn.set} is true:
  93. if {sspawn.tpjoin} is true:
  94. teleport player to {sspawn}
  95. else if {sspawn.set} is false:
  96. player has permission "sspawn.notifynotset" or "sspawn.admin":
  97. send "&7Spawn is not set. Use &a/sspawn &7to get started."
  98. player has permission "sspawn.notifyupdates":
  99. if text from "https://pastebin.com/raw/JADveEMR" is not "{@version}":
  100. wait 2 seconds
  101. send "&7There's a new version of &3&lSuperSpawn&7!"
  102. send "&7Download the new update here: &6https://goo.gl/yjYi78"
  103. if text from "https://pastebin.com/raw/JADveEMR" is "{@version}":
  104. stop
  105. on respawn:
  106. player has permission "sspawn.spawnondeath":
  107. if {sspawn.set} is true:
  108. teleport player to {sspawn}
Advertisement
Add Comment
Please, Sign In to add comment