Ja bym to tak zrobił, tylko musisz zobaczyć czy działa
command /gamemode [<text>] [<offlineplayer>]:
aliases: /gm, /rcore:gm, /rcore:gamemode
trigger:
if player has permission "admin.gm":
if arg-1 is not set:
send "&aWpisz: &2/gm [0/1/2] <gracz>"
stop
if arg-2 is not set:
if arg-1 is "1" or "creative":
set player's gamemode to creative
wf "GAMEMODE 1 | %player% | %now%" to "plugins/logs/log.txt"
send "&aUstawiles gamemode: &2CREATIVE"
stop
if arg-1 is "0" or "survival":
set player's gamemode to survival
wf "GAMEMODE 0 | %player% | %now%" to "plugins/logs/log.txt"
send "&aUstawiles gamemode: &2SURVIVAL"
stop
if arg-1 is "2" or "adventure":
set player's gamemode to adventure
wf "GAMEMODE 2 | %player% | %now%" to "plugins/logs/log.txt"
send "&aUstawiles gamemode: &2ADVENTURE"
stop
send "&aWpisz: &2/gm [0/1/2] <gracz>"
else:
if arg-2 is online:
if arg-1 is "1" or "creative":
set arg-2's gamemode to creative
wf "GAMEMODE 1 | Zmienil %player% dla %arg-2% | %now%" to "plugins/logs/log.txt"
send "&aUstawiles gamemode: &2CREATIVE&a, dla gracza &2%arg-2%"
send "&aZmieniono gamemode na: &2CREATIVE" to arg-2
stop
if arg-1 is "0" or "survival":
set arg-2's gamemode to survival
wf "GAMEMODE 0 | Zmienil %player% dla %arg-2% | %now%" to "plugins/logs/log.txt"
send "&aUstawiles gamemode: &2SURVIVAL&a, dla gracza &2%arg-2%"
send "&aZmieniono gamemode na: &2SURVIVAL" to arg-2
stop
if arg-1 is "2" or "adventure":
wf "GAMEMODE 2 | Zmienil %player% dla %arg-2% | %now%" to "plugins/logs/log.txt"
set arg-2's gamemode to adventure
send "&aUstawiles gamemode: &2ADVENTURE&a, dla gracza &2%arg-2%"
send "&aZmieniono gamemode na: &2ADVENTURE" to arg-2
stop
send "&aWpisz: &2/gm [0/1/2] <gracz>"
else:
send "&cBlad: &7Gracz nie jest na serwerze!"
else:
send "&cBlad: &7Nie masz uprawnien!"