Skript Version: 1.8
Skript Author: Bensku'
Minecraft Version: dev 25
---
Full Code:
Note: If the code is too large, feel free to use a pasting website (Pastebin or hastebin)
Note: If a variable is being set in another script, but not shown, please explain how they are being set
Errors on Reload:
I'm trying to create a spectator script and I don't know if there is a way to do that the command sender cannot do the command on himself, the command is /spec <player> it should teleport you to the player, also can I make that I can spectate the player only if he is in a specific world?
Skript Author: Bensku'
Minecraft Version: dev 25
---
Full Code:
Note: If the code is too large, feel free to use a pasting website (Pastebin or hastebin)
Note: If a variable is being set in another script, but not shown, please explain how they are being set
code_language.skript:
on right click holding a rose red:
make the command sender execute "/spawn"
make the command sender execute "/sv off"
remove rose red from player
make the command sender execute "/kit hotbar"
command /spectate <player>:
usage: &c/spectate <player>
aliases: /spec
executable by: players
trigger:
make the command sender execute "/ci"
teleport player to arg 1
give a rose red of unbreaking 1 named "§cback to spawn" to the player
make the command sender execute "/sv on"
Errors on Reload:
code_language.skript:
No errors/CODE]
[B]Console Errors:[/B] [I](if applicable)[/I]
[CODE=SKRIPT]No errors/CODE]
[I]Its a spectator script:[/I]
[B]Addons using (including versions):[/B]
No addons
[B]:[/B]
[B]Have you tried searching the docs?[/B] Yes
[B]Have you tried searching the forums?[/B] Yes
I'm trying to create a spectator script and I don't know if there is a way to do that the command sender cannot do the command on himself, the command is /spec <player> it should teleport you to the player, also can I make that I can spectate the player only if he is in a specific world?