Skrypt nie zabardzo rozbudowany i profesjonalny ale ja sam musiałem napisać taki skript, ponieważ nigdzie taiego nie znalazlem potrzbny mi byl na zmienianie wiadomosci gamemode o to moj skrypt .
command /gm [<text>] [<player>]:
permission: admin.gm
permission message: "&cNie masz permisji"
trigger:
if arg 1 is not set:
send "&cUzycie &7/&agm &aCreative&7,&aSurvival&7,&aSpectator &7[Gracz]"
if arg 2 is set:
set {_arg2} to arg 2
if arg 1 is "1" or "Creative":
execute console command "/minecraft:gamemode 1 %arg-2%"
send "&7Zmieniles tryb gry gracza &a%arg-2% &7na &aCreative"
loop 100 times:
send "" to {_arg2}
send "&7Twoj tryb gry zostal zmieniony na &aCreative" to {_arg2}
if arg 1 is "0" or "Survival":
execute console command "/minecraft:gamemode 0 %arg-2%"
send "&7Zmieniles tryb gry gracza &a%arg-2% &7na &aSurvival"
loop 100 times:
send "" to {_arg2}
send "&7Twoj tryb gry zostal zmieniony na &aSurvival" to {_arg2}
if arg 1 is "3" or "Spectator":
execute console command "/minecraft:gamemode 3 %arg-2%"
loop 100 times:
send "" to {_arg2}
send "&7Twoj tryb gry zostal zmieniony na &aSpectator" to {_arg2}
if arg 2 is not set:
if arg 1 is "1" or "Creative":
execute console command "/minecraft:gamemode 1 %player%"
loop 100 times:
send ""
send "&7Zmieniles tryb gry na &aCreative"
if arg 1 is "0" or "Survival":
execute console command "/minecraft:gamemode 0 %player%"
loop 100 times:
send ""
send "&7Zmieniles tryb gry na &aSurvival"
if arg 1 is "3" or "Spectator":
execute console command "/minecraft:gamemode 3 %player%"
loop 100 times:
send ""
send "&7Zmieniles tryb gry na &aSpectator"
stop
if arg 2 is set:
if arg 1 is "1" or "Creative":
execute console command "/minecraft:gamemode 1 %arg-2%"
send "&7Zmieniles tryb gry gracza &a%arg-2% na &aCreative"