#made by rsrsamr
#do not take credit
#enjoyyyyy
# plugins nedeed (skript) (skquery)
command /gamemodegui:
permission: gamemode.server
trigger:
wait 1 tick
open chest with 1 rows named "&6&lgamemode gui" to player
format slot 1 of player with paper named "&2&lCreative" to close then run [make player execute "/gmc"]
format slot 5 of player with paper named "&3&lSpectator" to close then run [make player execute "/spec"]
format slot 7 of player with paper named "&4&lSurvival" to close then run [make player execute "/gms"]
format slot 3 of player with paper named "&3&lAdventure" to close then run [make player execute "/gma"]
format slot 0 of player with blue stained glass pane named "&f&lenjoy" to close then run "gm"
format slot 2 of player with blue stained glass pane named "&f&lenjoy" to close then run "gm"
format slot 4 of player with blue stained glass pane named "&f&lenjou" to close then run "gm"
format slot 6 of player with blue stained glass pane named "&f&lenjoy" to close then run "gm"
format slot 8 of player with blue stained glass pane named "&f&lenjoy" to close then run "gm"
command /gmc:
permission: gm.creative
permission message: &cYou do not have access to this command.
trigger:
execute console command "gamemode creative %player%"
message "&6You are now game mode &ccreative."
command /gms:
permission: gm.survival
permission message: &cYou do not have access to this command.
trigger:
execute console command "gamemode survival %player%"
message "&6You are now game mode &csurvival."
command /gma:
permission: gm.adventure
permission message: &cYou do not have access to this command.
trigger:
execute console command "gamemode adventure %player%"
message "&6You are now game mode &cadventure."
command /spec:
permission: gm.spectator
permission message: &cYou do not have access to this command.
trigger:
execute console command "gamemode spectator %player%"
message "&6You are now game mode &cspectator."
on join:
player has permission "op"
send "&a<hank you for gamemode gui by rsrsamr" to player