Hello, and thanks for reading what I'm writing .
I have 2 maps (both in one world) and everything works but if one map is set to ingame you can only get back into the other one if the timer sets it to "ready" again.
I want if {oneline.arena::%loop-index%} is "ingame" that the players go in the second one, because the second is "ready"
thanks in advance for your time and help
Layout:
Skript Version: Skript 2.2
Skript Author: Bensku
Minecraft Version: 1.8.x
---
Full Code:
https://pastebin.com/zgwbLLCD
Addons using (including versions):
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? No
I have 2 maps (both in one world) and everything works but if one map is set to ingame you can only get back into the other one if the timer sets it to "ready" again.
I want if {oneline.arena::%loop-index%} is "ingame" that the players go in the second one, because the second is "ready"
thanks in advance for your time and help
Layout:
Skript Version: Skript 2.2
Skript Author: Bensku
Minecraft Version: 1.8.x
---
Full Code:
Code:
loop {oneline.arena::*}:
if {oneline.arena::%loop-index%} is "ready":
set {oneline.playing::%player%} to true
set {oneline.playing::%clicked entity%} to true
wait 1 tick
send "{@gameprefix} &7Das Spiel beginnt!" to player
send "{@gameprefix} &7Das Spiel beginnt!" to clicked entity
teleport player to {oneline.spawn1::%loop-index%}
teleport clicked entity to {oneline.spawn2::%loop-index%}
set {oneline.arena::%loop-index%} to "ingame"
wait 15 seconds
set {oneline.arena::%loop-index%} to "ready"
stop trigger
if {oneline.arena::%loop-index%} is "ingame":
send "{@gameprefix} &cMomentan ist keine Map verfügbar" to player
send "{@gameprefix} &cMomentan ist keine Map verfügbar" to clicked entity
stop trigger
https://pastebin.com/zgwbLLCD
Addons using (including versions):
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? No
Last edited: