Sueta
AC

Activate a door or gate by /activate

1.0 [Denizen 1.0.2]

Do /activate to switch a door or a gate

·Plugin

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

This script needs:

Denizen - plugin

permission plugin - to make non-ops but fx staff to use it too

Permissions:
/activate - activate.use

and then write this into it:

activate:

type: command

name: activate

description: switched the door/gate you look at.

usage: /activate

permission: activate.use

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

script:
- switch <player.location.cursor_on>
- narrate "<blue>Switched!"

# Made by Jepp9350 or JeppeDK

Similar projects

Plugin →