diff --git a/src/main/java/net/aufdemrand/denizen/Denizen.java b/src/main/java/net/aufdemrand/denizen/Denizen.java index 21a44e13de..3f4d35c85a 100644 --- a/src/main/java/net/aufdemrand/denizen/Denizen.java +++ b/src/main/java/net/aufdemrand/denizen/Denizen.java @@ -345,6 +345,27 @@ public boolean onCommand(CommandSender sender, Command cmd, String cmdName, Stri if (citizens == null) citizens = (Citizens) getServer().getPluginManager().getPlugin("Citizens"); + // <--[language] + // @name /ex command + // @description + // The '/ex' command is an easy way to run a single denizen script command in-game. Its syntax, + // aside from '/ex' is exactly the same as any other command. When running a command, some context + // is also supplied, such as '' if being run by a player (versus the console), as well as + // '' if a NPC is selected by using the '/npc sel' command. + // + // Examples: + // /ex flag test_flag:! + // /ex run 's@npc walk script' as: + // + // Need to '/ex' a command as a different player or NPC? No problem. Just use the 'npc' and 'player' + // value arguments, or utilize the object fetcher. + // + // Examples: + // /ex narrate player:p@NLBlackEagle 'Your health is .' + // /ex walk npc:n@fred + + // --> + // ...except this one :) /ex command if (cmdName.equalsIgnoreCase("ex")) { List entries = new ArrayList();