Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gamemode:
- command: /gamemode
- type: RUN_CONSOLE
- runcmd:
- - "/mycmd-playerdata set $player Args $multiargs!"
- - "/mycmd-playerdata set $player Gamemode $gamemode"
- - "$Script$%PlayerData%Args==!"
- - "$Script$%PlayerData%Gamemode==CREATIVE"
- - "%PlayerOptions%setGameMode: SURVIVAL"
- - "$text$&f&lYour gamemode has been set to Survival"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==!"
- - "$Script$%PlayerData%Gamemode!=CREATIVE"
- - "%PlayerOptions%setGameMode: CREATIVE"
- - "$text$&f&lYour gamemode has been set to Creative"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==1!"
- - "%PlayerOptions%setGameMode: CREATIVE"
- - "$text$&f&lYour gamemode has been set to Creative"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==c!"
- - "%PlayerOptions%setGameMode: CREATIVE"
- - "$text$&f&lYour gamemode has been set to Creative"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==Creative!"
- - "%PlayerOptions%setGameMode: CREATIVE"
- - "$text$&f&lYour gamemode has been set to Creative"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==0!"
- - "%PlayerOptions%setGameMode: SURVIVAL"
- - "$text$&f&lYour gamemode has been set to Survival"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==Survival!"
- - "%PlayerOptions%setGameMode: SURVIVAL"
- - "$text$&f&lYour gamemode has been set to Survival"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==s!"
- - "%PlayerOptions%setGameMode: SURVIVAL"
- - "$text$&f&lYour gamemode has been set to Survival"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==2!"
- - "%PlayerOptions%setGameMode: ADVENTURE"
- - "$text$&f&lYour gamemode has been set to Adventure"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==a!"
- - "%PlayerOptions%setGameMode: ADVENTURE"
- - "$text$&f&lYour gamemode has been set to Adventure"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args==Adventure!"
- - "%PlayerOptions%setGameMode: ADVENTURE"
- - "$text$&f&lYour gamemode has been set to Adventure"
- - "%PlayerOptions%playSound: ORB_PICKUP:1.0F:2"
- - "$Script$%else%"
- - "$Script$%PlayerData%Args!=Adventure!"
- - "$Script$%PlayerData%Args!=a!"
- - "$Script$%PlayerData%Args!=2!"
- - "$Script$%PlayerData%Args!=c!"
- - "$Script$%PlayerData%Args!=Creative!"
- - "$Script$%PlayerData%Args!=1!"
- - "$Script$%PlayerData%Args!=0!"
- - "$Script$%PlayerData%Args!=s!"
- - "$Script$%PlayerData%Args!=Survival!"
- - "$Script$%PlayerData%Args!=!"
- - "$text$&cIncorrect command usage... /gamemode <0|1|2>"
- permission-node: gamemode.use
- permission-error: "&cYou do not have permission to use change gamemodes!"
Advertisement
Add Comment
Please, Sign In to add comment