no use the console anymore in gmc and gms

This commit is contained in:
Mylloon 2021-06-26 22:45:20 +02:00
parent bd195c6c97
commit f5b94abf36

View file

@ -166,7 +166,8 @@ command gmc [<player>]: # met un joueur en créatif
if gamemode of {_player} is creative:
send "&4Ce joueur est déjà en créatif."
stop
execute console command "gamemode creative %{_player}%"
set gamemode of {_player} to creative
send "%player% a changé ton mode de jeu en créatif." to {_player}
loop all players:
if loop-player is a op:
if loop-player is not {_player}:
@ -185,7 +186,8 @@ command gms [<player>]: # met un joueur en spectateur
if gamemode of {_player} is spectator:
send "&4Ce joueur est déjà en spectateur."
stop
execute console command "gamemode spectator %{_player}%"
set gamemode of {_player} to spectator
send "%player% a changé ton mode de jeu en spectateur." to {_player}
loop all players:
if loop-player is a op:
if loop-player is not {_player}: