This is a very simple gamemode skript, it will take no problem on the server at all
This is a re-write to a skript i wrote months back, but i have hidden it XD so i can post this one lol,
Permission:
gamemode.* - Give you all the permission needed to run command.
gamemode - Give you access to change your gamemode.
gamemode.other - Ability to change other players gamemode.
options:
nopermission: &cYou currently don't have access to this permission!
permission: gamemode
s: "survival","s" or "0"
c: "creative","c" or "1"
a: "adventure","a" or "2"
sp: "spectator" or "3"
function gamemode(p: player, gamemode: text):
if {_gamemode} is {@s}:
set gamemode of {_p} to survival
send "&7Your gamemode has been changed to &eSurvival&7!" to {_p}
if {_gamemode} is {@c}:
set gamemode of {_p} to creative
send "&7Your gamemode has been changed to &eCreative&7!" to {_p}
if {_gamemode} is {@a}:
set gamemode of {_p} to adventure
send "&7Your gamemode has been changed to &eAdventure&7!" to {_p}
if {_gamemode} is {@sp}:
set gamemode of {_p} to spectator
send "&7Your gamemode has been changed to &eSpectator&7!" to {_p}
command /gamemode [<text>] [<OfflinePlayer>]:
permission: {@permission}.*
permission message: {@nopermission}
aliases: gm
trigger:
if arg 1 isn't set:
send "&7/gamemode &e<text> <player>"
if player has permission "{@permission}":
arg 2 isn't set:
gamemode(player, arg-1)
if player has permission "{@permission}.other":
arg 2 is set:
gamemode(arg-2, arg-1)
Requirements:
Skript