#Need help for warps menu (witch CMI)

1 messages · Page 1 of 1 (latest)

frigid steeple
#

Hellow !

I created a teleportation menu for the warps of my server but I have a little problem:
The /warps menu I created takes priority over the commands, that means that when you want to do /warps NAME it's impossible to execute the command, it brings you back to the menu =
Do you have any solution?

Menu: https://paste.helpch.at/nepacikujo.bash

junior quarry
#

What plugin did you use to make it so /warps opens the menu? I do not see any open_command defined

frigid steeple
#

Oh yes x)

junior quarry
#

I have no idea how that works or where to find documentation for that sadly

#

but it isn't related to deluxemenus

frigid steeple
#

Need help for warps menu (witch CMI)

junior quarry
#

i'm not seeing any support for arguments, but I could've missed it

#

could try defining the open_command with deluxemenus maybe

#

see if that works vs the alias

junior quarry
frigid steeple
#

okay

junior quarry
#

you can try registering it as well

#

play around with it

#

just don't forget to remove your other alias while testing

frigid steeple
#

yep

#

So I deleted the /warps alias of CMI which allowed to open the menu, and now when I do this command, the interface doesn't open anymore, it's CMI which takes the priority :/

junior quarry
#

what if you register it

#

might be what you had before (only opens gui)

frigid steeple
#

/warps is register

#

i have restart my server

junior quarry
#

ya i think you're gonna need something like mycmd

frigid steeple
#

:c

#

An extra plugin just for that, ouch

junior quarry
#

well

#

ye

#

but I do have the config

frigid steeple
#

I will try to see with CMI support at worst x)

#

But just in case, I do not say no to have the configuration if you do not mind ^^

abstract hemlock
#

also you can try the plugin "ConditionalEvents"

junior quarry
#
'warps':
  command: /warps
  type: RUN_COMMMAND
  register: true
  runcmd:
  - $Script$%if%$arg1.length>0
  - /cmi warps $arg1
  - $Script$%else%
  - $RUN_CONSOLE$/dm open warps $player

I think that would work ||edited for /cmi warps vs /warps||

#

only think I'm not sure if it's $Script$%if%$arg1.length>0 or $Script$%if%$arg1==true