Skript Version (do not put latest): Skript latest
Skript Author: Bensku
Minecraft Version: 1.8.8
Hi, I'm trying to make a MLG-Rush style gamemode, with a GUI, but I can't seem to get the joining system of it right.
With errors:
Every time I try and join Lobby1 from the GUI it sends "This lobby is currently Full. join another lobby or wait for an available one" when the lobby isn't full. I'm not sure what to do here, any help?
Skript Author: Bensku
Minecraft Version: 1.8.8
Hi, I'm trying to make a MLG-Rush style gamemode, with a GUI, but I can't seem to get the joining system of it right.
Code:
command /mlgrushcheck:
trigger:
loop all players in "world":
if "%region at player%" contains "mlg":
message "test"
on load:
set {lobbyA.red} to false
set {lobbyA.blue} to false
command /mlgrush:
trigger:
open chest with 1 row named "&bLobbies" to player
format slot 2 of player with gold block named "&fLobby 1" to close then run [execute player command "汉字join1"]
format slot 4 of player with redstone block named "&fLobby 2" to close then run [execute player command "汉字join2"]
format slot 6 of player with redstone block named "&fLobby 3" to close then run [execute player command "汉字join3"]
command /汉字join2:
trigger:
message "&cThis lobby is unavailable at the moment."
command /汉字join3:
trigger:
message "&cThis lobby is unavailable at the moment."
on join:
set {freeze.%player%} to false
wait 1 seconds
execute console command "effect %player% clear"
set player's walk speed to .2
command /汉字join1:
trigger:
If {teamA.red} is false:
set {teamA.red} to true
execute console command "ci %player%"
teleport player to location at -681.5, 75, 966.5 in world "world"
set player's walk speed to 0
apply jump boost 250 to player for 999 days
set {freeze.%player%} to true
If {teamA.blue} is false:
set {teamA.blue} to true
execute console command "ci %player%"
teleport player to location at -652.5, 75, 966.5 in world "world"
set player's walk speed to 0
apply jump boost 250 to player for 999 days
set {freeze.%player%} to true
else:
message "&eThis lobby is currently &l&bFull. &eJoin another lobby or wait for an available one."
On any movement:
if {teamA.red} is true:
loop all players:
if "%region at loop-player%" contains "mlg":
stop
else:
set {teamA.red} to false
On any movement:
if {teamA.blue} is true:
loop all players:
if "%region at loop-player%" contains "mlg":
stop
else:
set {teamA.blue} to false
On any movement:
if {freeze.%player%} is true:
if {teamA.red} is true:
teleport player to location at -681.5, 75, 966.5 in world "world"
if {teamA.blue} is true:
teleport player to location at -652.5, 75, 966.5 in world "world"
else:
stop
On break:
if event-block's location is at -681, 64, 966 in world "world":
cancel event
message "test"
With errors:
Code:
[09:49:55 ERROR]: 'block's location is at -681, 64, 966 in world "world"' is not a type (mlg.sk, line 80: if event-block's location is at -681, 64, 966 in world "world":')
Every time I try and join Lobby1 from the GUI it sends "This lobby is currently Full. join another lobby or wait for an available one" when the lobby isn't full. I'm not sure what to do here, any help?