diff --git a/DungeonSign-Command.md b/DungeonSign-Command.md new file mode 100644 index 0000000..fc3a398 --- /dev/null +++ b/DungeonSign-Command.md @@ -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. \ No newline at end of file