Created DungeonSign Command (markdown)

Daniel Saukel 2020-12-29 17:01:51 +01:00
parent b02c416b55
commit 6ac98fb980

21
DungeonSign-Command.md Normal file

@ -0,0 +1,21 @@
## WARNING: Do not use this feature to spawn mobs. Use [mob signs](DungeonSign-Mob) and the [custom mob provider](Dungeon-NPCs) registry in the main config instead.
The **command** sign runs a command script.
| Line | Input | Example |
|------|------------------------------------|---------|
| 1st | [CMD] | [CMD] |
| 2nd | {Script} | |
| 3rd | {Delay in sec.},OP/CONSOLE/DEFAULT | 3,OP |
| 4th | [Trigger](signs#triggers) | R |
Command scripts are stored in the _plugins/DungeonsXL/scripts/commands_ directory. It consists of a list of commands to perform:
```
commands:
- version
- help
- deop %player%
```
The third line determines the delay between commands from the list and the executor. "DEFAULT" makes the players run the command with their own permissions, "OP" makes them execute the command as operators and if "CONSOLE" is used, the console runs the command.