#(ArcSid) running a command

22 messages · Page 1 of 1 (latest)

young osprey
#

i wanna run 'dm open warps %player%' in a denizen command, how, i looked in the guide, i havent seen anything about this, i dont have any examples either, would appretiate a bit of help

cloud birchBOT
#

(ArcSid) running a command

cloud birchBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

scenic sparrow
#

!c execute

solemn questBOT
# scenic sparrow !c execute
Group

server

Syntax

execute [as_player/as_op/as_npc/as_server] [<Bukkit-command>] (silent)

Short Description

Executes an arbitrary server command as if the player, NPC, or server typed it in.

Description

Allows the execution of server commands through a Denizen script.
Commands can be executed as the server, as an npc, as an opped player, or as a player, as though it was typed by the respective source.

Note that you should generally avoid using 'as_op', which is only meant for very specific special cases. 'as_server' is usually a better option.

Note: do not include the slash at the start. A slash at the start will be interpreted equivalent to typing two slashes at the front in-game.

Note that...

young osprey
#

OH

#

i forgot abt this

#

thanks

scenic sparrow
#

and there is no %player% placeholder, u'd like to use something like <player.name>

#

it depends

young osprey
#
   type: command
   name: warps
   description: warp menu
   usage: /warps
   script:
   - execute as_server "dm open warps <player.name>" silent```
#

so like dis?

#

yep it works

scenic sparrow
#

Yeh pikasurprise

young osprey
#

it worky so well that i even realised a typo i made in the menu!