#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)
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
Were do you add it in the code ?
The args
sorry but i don't want to make a mistake and perfect learn it xD
did you register the command?
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
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
menu_title: '&4&lDuel &f&lMenu'
open_command:
- duel
- 1v1
- fight
args:
- player
here is all i have
okok^^
You need to register the command
how and were
What is the purpose of your menu?
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
is /duel already a command?
you can't have one command for another plugin also open your deluxemenus menu
the command i use is like duel %player% builduhc
You can reassign the other command though
when you click on an item
ok
my question
is how to make a deluxemenu command openner like duel %player% for you ?
./duel %player% for open the gui
differents items who run duel commands in the gui and decorative things
like glass and wool
all the gui is good and work
?paste
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
can you send your gui
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
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
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
Take a look at this
https://paste.helpch.at/lekamabeco.vbnet
You use {player} where you were previously trying to put %player%
you might need to remove other commands (since they won't work if not registered I think)
not sure, best to test
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]'
you can disable the gamerule for it
commandblockfeedback maybe?
commandblockoutput?
there's some gamerule
99% sure
the gamerule is logAdminCommands
and also how to make an input when you click on the item xD
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
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
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 ?