Sueta

GameMode [Skript]

1.0.2

Skript GAmemode

·Plugin

Commands:
Gm
Gmo

P ermissions:
game.mode
gamemode.o

#-----------------------#
#     By Itz_Daxem      #
# The Server i Work For #
# play.matrixnetwork.pw #
#-----------------------#

command /gm:
    permission: game.mode
    trigger:
        open chest with 1 rows named "&cGamemode" to player
        wait 1 tick
        format slot 3 of player with book named "&aGamemode Creative" to close then run [make player execute "gmc"]
        format slot 4 of player with book named "&aGamemode Survival" to close then run [make player execute "gms"]
        format slot 5 of player with book named "&aGamemode Spectator" to close then run [make player execute "gmsp"]
   
command /gmo [<offline player>]:
    trigger:
    permission: gamemode.o
        if arg-1 is not set:
            send "&cIncorrect usage! &7/gmo <player>"
        if arg-1 is set:
            open chest with 1 rows named "&cGamemode %arg-1%" to player
            wait 1 tick
            format slot 2 of player with book named "&aGamemode Creative" to close then run [make player execute "gmc %arg-1%"]
            format slot 3 of player with book named "&aGamemode Survival" to close then run [make player execute "gms %arg-1%"]
            format slot 4 of player with arg-1's skull named "&c%arg-1%" to be unstealable
            format slot 5 of player with book named "&aGamemode Spectator" to close then run [make player execute "gmsp %arg-1%"]
            format slot 6 of player with book named "&aGamemode Adventure" to close then run [make player execute "gma %arg-1%"]

Similar projects

Plugin →