#How to make /duel <player> synthax as command to open my gui?

1 messages · Page 1 of 1 (latest)

karmic wing
#

Hello guys, how to make correctly a GUI who are open ONLY with /duel <player> (/duel notSweyz open my gui)

I actually work on DeluxeMenu in 1.8.8 PaperSpigot version
My menu may open a custom gui made on Duel.yml file and i want to make the correct synthax as
open_commands: ???
args :

  • ???
elfin trellis
#

Open command is going to be duel and you can check the args on the wiki

#

?wiki

red pastureBOT
#
FAQ Answer:

You can find a wiki for all or most HelpChat plugins at:
https://wiki.helpch.at

karmic wing
#

i write something on the report

#

not to be redirected on DeluxeMenu wiki

#

what is wrong with you @elfin trellis ?

elfin trellis
#

the wiki explains best how the args work

elfin trellis
karmic wing
#

bro you didn't help me

#

you just redirected me to the wiki i read 10 times

#

i already know how the args work

#

but it actually not work

elfin trellis
#

if it doesnt work then share your config

#

also i told you what you need as open command

#

and the args explain themself on the wiki

karmic wing
elfin trellis
#

because instead of a player_name placeholder you need to use {first} to get the name typed in the command

#

and exactly that is the wiki

karmic wing
#

and how its written ?

elfin trellis
#

like i said {first}

karmic wing
#

to replace my args right ?

elfin trellis
#

replace %player_name% with {first}

karmic wing
#

{first} is the synthax to have the player name ?

elfin trellis
#

read the wiki

karmic wing
#

Bro wtf

elfin trellis
#

its on the wiki

karmic wing
#

Its not my actual problem

#

Man

#

really

elfin trellis
#

what is your problem then

karmic wing
#

my problem is on the open command

#

never on the synthax my server do

elfin trellis
#

okay what exactly is the problem with the open commnad

#

please be more specific then the open command is the problem

karmic wing
#

bro

#

i want to start the command on /duel <player>

#

nothing other

#

it not work

#

open my gui with /duel notSweyz as exemple

elfin trellis
#

what does not work? the opening of the menu or the using of the arg

karmic wing
#

Yeah

#

the /duel <player> not work to open my gui

elfin trellis
#

do you have any errors

karmic wing
#

the menu work with dm open Duel

#

without error

#

but for me its not the good synthax

elfin trellis
#

share your current script please

distant charm
#

?paste

red pastureBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

distant charm
#

Let's continue it here to keep all the information contained in one place @karmic wing

karmic wing
#

yeah i know

#

but i took days here this is why i ran to the chat place

distant charm
#

cj89898 - Today at 09:52 AM
I really don't know if this will be possible for you, because you are trying to override a command that already exists from another plugin, but only IF the 1st argument is a player's name
sweyz — Today at 10:03 AM
its just like open a gui with a command + player. If deluxemenu is not able to do it. I think its a problem for DM
I also can remove the commands from the sourcecode of the plugin who already use it
cj89898 — Today at 10:03 AM
but you need them
sweyz — Today at 10:03 AM
For create the command only on dm with plugin features to work
cj89898 — Today at 10:04 AM
you still need them for running /duel player Castle or something, right?
sweyz — Today at 10:04 AM
Nope
I need it for open my duel gui, choose a kit inside this one
and it will run as playercommand ./duel player <kit>
I looked if all worked with like my name to replace the player arg
It worked
but not with the player arg 😢
cj89898 — Today at 10:05 AM
You will have to remove the other duel command
make sure to register the command in deluxemenus, add the args (probably have already), then restart
but again you're using 1.8.8 which is outdated and unsupported so I can't make guarantees of arguments working in the slightest
but I think I've seen it before
still having issues, send menu

distant charm
#

I purposefully haven't opened any of your forum posts because I remember having one with you in the past and we made it nowhere on the issue.

livid vine
distant charm
#

When you open a brand new forum post, you don't bring any information that people have given to you to the new post

#

There is vital information in what I said, because it's now been repeated

karmic wing
#

All we tried CJ is on the pastebin actually

#

Here is the same synthax you let me tried

#

And here is what we actually all tried 🥲

#

I want to me to say what we do, this and send me the wiki 2-3 times more bru

distant charm
#

Let me put it this way

#

99% chance: this is impossible from what I remember about the issue

karmic wing
#

I'll change the duel gui into the practice's source code also

#

better issue

#

You can report it to the DM developpers?

#

Like i know someones who have my problems with others 2 words commands

#

and its a problem of DM also

distant charm
#
menu_title: 'Test'
open_command: keyboard
register_command: true
args:
- variable
size: 54
items:
  'space':
    material: paper
    slot: 1
    display_name: '{variable}'
    click_commands:
    - '[message] {variable}'

This 100% works for arguments on the latest versions of mc/dm. if you type /keyboard toothpaste the variable will come through

distant charm
distant charm
karmic wing
#

you tried to help me

#

cj

#

How work the gui ?

#

like /keyboard test do message test right ?

distant charm
#

in the menu the item name will be the argument you put, and the message you get when clicking it, will be the argument you put

karmic wing
#

how

distant charm
#

What?

karmic wing
#

i should replace [message] by command

#

mb, i would say ok

distant charm
#

I am giving you an example menu

#

for example purposes only

karmic wing
#

Yeah i see

#

Didn't reflected like that

distant charm
#

does it work?

#

did you restart after adding the menu?

karmic wing
#

I actually write the synthax

#

i'll try it but i don't have friend at this time to try it

distant charm
#

well you don't need a friend, just put the argument in an item name or soemthing like I did

#

or a message

karmic wing
#

It don't run the menu on /duel notSweyz

distant charm
#

And you don't have any other /duel commands registered ATM?

karmic wing
#

I have the strikepractice /duel command in the same time

#

It covert /duel and /duel <player>

distant charm
#

And you're going to remove that, right?

karmic wing
#

Am about the delete the /duel and /duel <player> on the sourcecode of strike

#

Yeah

distant charm
#

Okay, do that and test again

#

Also, which version of deluxemenus are you using again?

karmic wing
#

i can try to change the command by a non-existant one nope ?

#

1.13-6

distant charm
#

hmk

distant charm
karmic wing
#

deluxe

#

strike is the last one

distant charm
#

you coul;d change the dm command to testing just to test it, yes

karmic wing
#

the developper is a friend

distant charm
#

will require restart

#

I'll be back in a bit

karmic wing
#

ok

#

It work with /testing <player>

#

like it work how i want it litterally

#

The problem is know how to bypass the stikepractice command

#

or i must remove it

#

Ok

#

It work with /duel

#

it replace the command i tried to replace

#

It work perfectly

karmic wing
#

@distant charm ty brotha