Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- version: 1.6
- command /superspawn [<text>] [<text>] [<offlineplayer>]:
- aliases: /sspawn
- trigger:
- if arg 1 is not "help" or "set" or "delete" or "tp" or "tpjoin" or "reload":
- send "&7You must use &6/sspawn &7for more help!"
- if arg 1 is not set:
- make player execute command "/sspawn help"
- if arg 1 is "help":
- player doesn't have permission "sspawn.help" or "sspawn.admin":
- send "&8&m----------------&r &b✯ &3&lSuperSpawn&r &b✯ &8&m-----------------"
- send " &a/sspawn tp &8| &7Teleports you to the spawn."
- else if player has permission "sspawn.adminhelp" or "sspawn.admin":
- send "&8&m----------------&r &b✯ &3&lSuperSpawn&r &b✯ &8&m-----------------"
- send " &a/sspawn set &8| &7Sets the spawn to your position."
- send " &a/sspawn delete &8| &7Removes the spawn."
- send " &a/sspawn tp &8| &7Teleports you to the spawn."
- send " &a/sspawn tp spawn <player> &8| &7Teleports the player to the spawn."
- send " &a/sspawn tpjoin <yes> or <no> &8| &7Teleports players to the spawn on join."
- send " &a/sspawn reload &7Reloads SuperSpawn.sk file."
- if arg 1 is "set":
- player has permission "sspawn.set" or "sspawn.admin":
- set {sspawn} to player's position
- set {sspawn.set} to true
- send "&7You have set the spawn."
- else if player doesn't have permission "sspawn.set" or "sspawn.admin":
- send "&cYou don't have permission to do this!"
- if arg 1 is "delete":
- player has permission "sspawn.delete" or "sspawn.admin":
- if {sspawn.set} is true:
- delete {sspawn}
- set {sspawn.set} to false
- send "&7You have removed the spawn."
- else if {sspawn.set} is false:
- send "&7Spawn is not set."
- else if player doesn't have permission "sspawn.delete" or "sspawn.admin":
- send "&cYou don't have permission to do this!"
- if arg 1 is "tp":
- player has permission "sspawn.tp" or "sspawn.admin":
- if arg 2 is not set:
- if {sspawn.set} is true:
- teleport player to {sspawn}
- send "&7You have been teleported to the spawn."
- else if {sspawn.set} is false:
- send "&7Spawn is not set."
- else if player doesn't have permission "sspawn.tp" or "sspawn.admin":
- send "&cYou don't have permission to do this!"
- if arg 1 is "tp":
- player has permission "sspawn.tpothers" or "sspawn.admin":
- if arg 2 is "spawn":
- if arg 3 is not set:
- send "&7You must use &a/sspawn tp spawn <player>&7."
- if arg 3 is set:
- if arg 3 is online:
- if {sspawn.set} is true:
- teleport arg 3 to {sspawn}
- send "&7You have teleported &a%arg 3% &7to the spawn." to player
- send "&a%player% &7has teleported you to the spawn." to arg 3
- else if {sspawn.set} is false:
- send "&7Spawn is not set."
- else if arg 3 is offline:
- send "&a%arg 3% &7is offline."
- else if arg 2 is not "spawn":
- send "&7You must use &a/sspawn tp spawn <player>&7."
- else if player doesn't have permission "sspawn.tpothers" or "sspawn.admin":
- send "&cYou don't have permission to do this!"
- if arg 1 is "tpjoin":
- player has permission "sspawn.cmdtpjoin" or "sspawn.admin":
- if arg 2 is not set:
- send "&7Spawn on join is set to %{sspawn.tpjoin}%&7."
- send "&7You must use &a/sspawn tpjoin <yes> or <no>&7."
- if arg 2 is set:
- if arg 2 is "yes":
- set {sspawn.tpjoin} to true
- send "&7You have activated the spawn on join for everyone"
- send "&7with the permission &asspawn.tponjoin&7."
- else if arg 2 is "no":
- set {sspawn.tpjoin} to false
- send "&7You have deactivated the spawn on join."
- else if player doesn't have permission "sspawn.cmdtpjoin" or "sspawn.admin":
- send "&cYou don't have permission to do this!"
- if arg 1 is "reload":
- player has permission "sspawn.reload" or "sspawn.admin":
- make console execute command "/sk reload SuperSpawn.sk"
- wait 5 ticks
- send "&3&lSuperSpawn&r &7has been reloaded. (&ev{@version}&7)."
- else if player doesn't have permission "sspawn.reload" or "sspawn.admin":
- send "&cYou don't have permission to do this!"
- on join:
- player has permission "sspawn.tponjoin":
- if {sspawn.set} is true:
- if {sspawn.tpjoin} is true:
- teleport player to {sspawn}
- else if {sspawn.set} is false:
- player has permission "sspawn.notifynotset" or "sspawn.admin":
- send "&7Spawn is not set. Use &a/sspawn &7to get started."
- player has permission "sspawn.notifyupdates":
- if text from "https://pastebin.com/raw/JADveEMR" is not "{@version}":
- wait 2 seconds
- send "&7There's a new version of &3&lSuperSpawn&7!"
- send "&7Download the new update here: &6https://goo.gl/yjYi78"
- if text from "https://pastebin.com/raw/JADveEMR" is "{@version}":
- stop
- on respawn:
- player has permission "sspawn.spawnondeath":
- if {sspawn.set} is true:
- teleport player to {sspawn}
Advertisement
Add Comment
Please, Sign In to add comment