#hello guysi'm tryna make a gui with deluxemenu who work with /duel %player% command, how to make it

1 messages · Page 1 of 1 (latest)

obtuse wyvern
#

You need to add arguments to your menu

#
args:
- player

will let you use {player} for anything you type, ex: /duel cj89898

#

if you want to verify it's a player then you can use open requirements checking if they have played before or is online

#

as we were just discussing in #general-plugins this might cause a little bit of lag if the user types an invalid player that doesn't exist

lusty tulip
#

The args

obtuse wyvern
#

where all the other gui options are

#

aligned with menu_title

lusty tulip
#

open_command:
- duel
- 1v1
- fight
args:

  • player
#

like that ?

lusty tulip
obtuse wyvern
#

did you register the command?

lusty tulip
#

i just want to make when you /duel %player% it open

#

this is my problem

#

all is here

#

i'm just trying to make it workable

#

there is my syntax

#

actually /duel work

#

but i can't even verify if it work for a player this is why i ask you if its good

obtuse wyvern
#

if that is all you did, then no, it is not good

#

You need to register the command

#

When you send snippets of code, I do not know if you made more changes or not

#

So I asked

lusty tulip
#

menu_title: '&4&lDuel &f&lMenu'
open_command:
- duel
- 1v1
- fight
args:

  • player
    here is all i have
#

okok^^

obtuse wyvern
#

You need to register the command

lusty tulip
#

how and were

lusty tulip
#

i don't understand where i must put {player}

#

i actually added this line in the file

obtuse wyvern
#

What is the purpose of your menu?

lusty tulip
#

but for me i forget something

#

Duel a player with a kit inside it

#

like have clickable things to run /duel %player% builduhc

#

for exemple

#

all this way work

obtuse wyvern
#

is /duel already a command?

lusty tulip
#

yeah

#

/duel <player> exactly

#

/duel do nothing special

obtuse wyvern
#

you can't have one command for another plugin also open your deluxemenus menu

lusty tulip
#

the command i use is like duel %player% builduhc

obtuse wyvern
#

You can reassign the other command though

lusty tulip
#

when you click on an item

obtuse wyvern
#

Wait hold on

#

let's run this back

#

all the way

lusty tulip
#

ok

#

my question

#

is how to make a deluxemenu command openner like duel %player% for you ?

#

./duel %player% for open the gui

obtuse wyvern
#

Okay

#

And inside the gui, what do you want to see?

lusty tulip
#

differents items who run duel commands in the gui and decorative things

#

like glass and wool

#

all the gui is good and work

obtuse wyvern
#

?paste

naive carbonBOT
#
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

obtuse wyvern
#

can you send your gui

lusty tulip
#

i can't sent you the note

#

bcause my openner synthax is good my menu work and i have no one for try it^^

#

Its like that

naive carbonBOT
#
📋 Your paste: sweyz
https://paste.helpch.at/eperoviliv

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

obtuse wyvern
#

Okay, so I do not think this will work since you have /duel doing multiple things, but it might...

#

you might need like a /duelmenu oor something

#

Also, register command will only register the first open_command I believe

#

so in this case, duel

#

You use {player} where you were previously trying to put %player%

lusty tulip
#

I see now

#

this is 100% workable or this is worth to try it

#

x)

obtuse wyvern
#

you might need to remove other commands (since they won't work if not registered I think)

#

not sure, best to test

lusty tulip
#

ok, i'll try it

#

i think this is good for me, i have an other question if you have the time also as knowledge

#

On this thing can i replace [console] with a things who don't give logs to op or none else? ?

  • '[message] '
    - '[message] &f Warp &lHall of &b&lLegends'
    - '[message] '
    - '[message] &f You are currently being teleported to our'
    - '[message] &f to our historical monument!'
    - '[message] '
    - '[message] &c ● &fYou will teleport in &c5 &fs..'
    - '[message] '
    - '[console] execute at %player_name% run particle minecraft:portal ~ ~ ~ 0.1 0.1 0.1 1 200 normal'
    - '[console] title %player_name% actionbar ["",{"text":"Teleporting in ","color":"white"},{"text":"5","color":"red"},{"text":" seconds...","color":"white"}]'
    - '[sound] BLOCK_NOTE_BLOCK_BIT 2 1'
    - '[console] title %player_name% actionbar ["",{"text":"Teleporting in ","color":"white"},{"text":"4","color":"red"},{"text":" seconds...","color":"white"}]<delay=20>'
    - '[sound] BLOCK_NOTE_BLOCK_BIT 2 1<delay=20>'
    - '[console] title %player_name% actionbar ["",{"text":"Teleporting in ","color":"white"},{"text":"3","color":"red"},{"text":" seconds...","color":"white"}]<delay=40>'
    - '[sound] BLOCK_NOTE_BLOCK_BIT 2 1<delay=40>'
    - '[console] title %player_name% actionbar ["",{"text":"Teleporting in ","color":"white"},{"text":"2","color":"red"},{"text":" seconds...","color":"white"}]<delay=60>'
    - '[sound] BLOCK_NOTE_BLOCK_BIT 2 1<delay=60>'
    - '[console] title %player_name% actionbar ["",{"text":"Teleporting in ","color":"white"},{"text":"1","color":"red"},{"text":" seconds...","color":"white"}]<delay=80>'
    - '[sound] BLOCK_NOTE_BLOCK_BIT 2 1<delay=80>'
    - '[console] title %player_name% actionbar {"text":"Successfully teleported!","color":"green"}<delay=100>'
    - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP 2 1<delay=100>'
    - '[console] essentials:warp TempleOfLegends %player_name%<delay=100>'
    - '[console] execute at %player_name% run particle minecraft:instant_effect ~ ~ ~ 0.1 0.1 0.1 1 100 normal<delay=101>'
    - '[close]'
obtuse wyvern
#

commandblockfeedback maybe?

#

commandblockoutput?

#

there's some gamerule

#

99% sure

#

the gamerule is logAdminCommands

lusty tulip
#

like a settings gui who when you click on something, it turning on and click back to turn off (with enchant added to the item)

#

menu_title: '&8Player &7&lSettings'
open_command:
- setting
- settings
- parametres
- esettings
- essentials:settings
- strikepractice:settings
update_interval: 1
size: 54
items:
'Scoreboard_ON':
material: SIGN
slot: 20
enchantments:
- FIRE_ASPECT;1
hide_enchantments: true
priority: 1
view_requirement:
requirements:
permission:
type: string equals ignorecase
input: ''
output: 'Scoreboard_OFF'
display_name: '&f&lScoreboard&f: &aON'
lore:
- '&8&m-------------&8&m-------------'
- ''
- ' &7▪ &fTurn &aON &fyour Scoreboard &7▪'
- ''
- '&8&m-------------&8&m-------------'
left_click_commands:
- '[console] tsb'
- '[refresh]'
right_click_commands:
- '[console] tsb'
- '[refresh]'
'Scoreboard_OFF':
material: SIGN
slot: 20
priority: 2
view_requirement:
requirements:
permission:
type: string equals ignorecase
input: ''
output: 'Scoreboard_OFF'
update: true
display_name: '&f&lScoreboard&f: &cOFF'
lore:
- '&8&m-------------&8&m-------------'
- ''
- ' &7▪ &fTurn &cOFF &fyour Scoreboard &7▪'
- ''
- '&8&m-------------&8&m-------------'
left_click_commands:
- '[console] tsb'
- '[refresh]'
right_click_commands:
- '[console] tsb'
- '[refresh]'

like that

#

@obtuse wyvern this is my last one and i thank you a lot for all

obtuse wyvern
#

does the scoreboard plugin provide a placeholder to tell you if the scoreboard is on or off?

#

If not, then you can't really do it

#

also, you'd probably want [player] tsb not [console] tsb

lusty tulip
#

i have a place holders for the scoreboard

#

but not for others parametres

#

like toggle duel or not

#

and others things

#

i can't create an input on click ?

#

only from a placeholder ?

obtuse wyvern
#

Well it won't be consistant

#

if you made a variable that only changes on menu click, when the player runs the command manually from chat, it will throw off the menu

lusty tulip
#

ok i see

#

thank you for all CJ

#

i must close it or you let the saloon ?