#Armor Placeholder
1 messages · Page 1 of 1 (latest)
Also! Why is it that when I put the command in the chat it doesn't appear to be filled in or turn blue? /profile is the command that opens the one above.
It opens normally, but it doesn't stay as you said
a command which is working but red in color means it is not registered to the server. a command which isnt registered cant be tab completed and i think other plugins cant execute those commands as well
Alright, how can i register?
/papi ecloud download CheckItem
/papi reload
%checkitem_mat:AIR,inslot:39% should return true if you're not wearing a helmet and false when you're wearing a helmet or any other material
open_command: COMMAND
open_commands:
- "[ACTIONTYPE] ACTION"
- "[ACTIONTYPE] ACTION"
register_command: true```
source -> https://wiki.helpch.at/helpchat-plugins/deluxemenus/options-and-configurations/gui#register-command
you'll need to restart server for the changes to work
Alright! I will that
try to install it manually
Whenever I'm giving /profile it's only going to my profile, how do I see the person's profile? something like /profile steve
You would need to use arguments, and then use the argument (the username) as input for a parseother placeholder or utils parseother placeholder
but you can't really do exactly what you want with deluxemenus alone
because if the menu has arguments, it will require them to be put in
here are a couple example menus with args
the first one uses player_online and player_has_played_before to check if the user is valid or not
https://paste.helpch.at/ugemawequd.yaml
the second one uses the is object argument validation that was added recently, but not documented on the wiki yet: https://paste.helpch.at/medacemeve.yaml
From here: https://github.com/HelpChat/DeluxeMenus/pull/47
in order to make /profile and /profile <player> open the same menu, you could use something like mycommands to redirect