Sueta
GA

Gamemode permission resoltion /gamemodec or /gamemodes

1.0 [Denizen 1.0.2]

Do /gamemodec or /gamemodes to go to the specific gamemode

·Plugin

Make a new file in /serverfolder/plugins/Denizen/scripts
called gamemode.yml

Where the idea came from?

i got a builder on my server and the essentials permissions for /gamemode doesnt work so i made this

This script needs:

Denizen 1.0.2 - plugin

Permission plugin

and then write this into it:

Permissions:

/gamemodec - get.gamemode.c - set your gamemode to creative

/gamemodes - get.gamemode.s - set your gamemode to survival

gamemodec:

type: command

name: gamemodec

description: gamemodec

usage: /gamemodec

permission: get.gamemode.c

permission message: Sorry, <player.name>, you can't use that command because you don't have the permission!

script:
- execute as_op "gamemode 1 <player.name>"
- narrate "<green>Your in gm 1"
- narrate "<red> Do not abuse!"

gamemodes:

type: command

name: gamemodes

description: gamemodes

usage: /gamemodes

permission: get.gamemode.s

permission message: Sorry, <player.name>, you can't use that command because you don't have the permission!

script:
- execute as_op "gm survival <player.name>"
- narrate "<green>Your in gamemode survival"
- narrate "<red> Do not abuse!"

# Made by Jepp9350 or JeppeDK

Similar projects

Plugin →