From 6ac98fb980b78ed549bccd11a0810400095fcbe9 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Tue, 29 Dec 2020 17:01:51 +0100 Subject: [PATCH] Created DungeonSign Command (markdown) --- DungeonSign-Command.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 DungeonSign-Command.md 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