Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /gm [<offline player>]:
- permission: staff.gm
- permission message: &8&6&lEmery&e&lPvP&8: &cYou do not have the correct permissions to enter gamemode!
- trigger:
- if arg-1 is not set:
- if player's gamemode is survival:
- set gamemode of player to creative
- send "&8&6&lBotamoti&e&lPlugin&8: &aYour gamemode has been set to &bCREATIVE"
- else:
- set gamemode of player to survival
- send "&8&6&lBotamoti&e&lPlugin&8: &aYour gamemode has been set to &bSURVIVAL"
- else:
- if arg-1 is online:
- if arg-1's gamemode is survival:
- set gamemode of arg-1 to creative
- send "&8&6&lBotamoti&e&lPlugin&8: &aYour gamemode has been set to &bCREATIVE" to arg-1
- else:
- set gamemode of arg-1 to survival
- send "&8&6&lBotamoti&e&lPlugin&8: &aYour gamemode has been set to &bSURVIVAL" to arg-1
- else:
- send "&8&6&lBotamoti&e&lPlugin&8: &cNobody under the name [&e%arg-1%&7] &cis currently online."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement