command /gm [<integer>] [<player>]:
aliases: /gamemode, /egamemode, /egm,
trigger:
if arg 1 is 1:
if arg 2 is set:
set the gamemode of argument 2 to creative
send "{@tag} &c%player% &bzmienil twoj tryb gry na &ccreative!" to arg 2
send "{@tag} &bZminiels tryb gry gracza &c%arg 2% &bna creative!"
stop
if arg 1 is 2:
if arg 2 is set:
set the gamemode of argument 2 to survival
send "{@tag} &c%player% &bzmienil twoj tryb gry na &csurvival!" to arg 2
send "{@tag} &bZminiels tryb gry gracza &c%arg 2% &bna survival!"
stop
if arg 1 is 1:
if arg 2 is not set:
set the gamemode of the player to creative
send "&aTwoj tryb gry zostal zmieniony na &bcreative"
stop
if arg 1 is 2:
if arg 2 is not set:
set the gamemode of the player to survival
send "&aTwoj tryb gry zostal zmieniony na &esurvival"
stop