#✨ [Suggestion] DeluxeMenus, better metas management

1 messages · Page 1 of 1 (latest)

hearty spade
#

Hello,
Would it be possible to add the ability to manage and display a player's metas with DeluxeMenus using commands such as :

  • /dm meta (Player) <set/remove/add/subtract/switch> <key> <type> <value> → Edit meta to a player
  • /dm meta (Player) list → Show all metas of a player
  • /dm meta (Player) show <meta> → Show a specific meta of a player

Why ?

Because I use several metas in my menus, and when I need to check the value of a player if it has such and such a value, it would be much more practical if we could edit them and display different information about them.

copper briar
#

you can already edit meta with commands through the /dm execute command followed by the usual [meta] action, though I agree that commands to display a player's meta would be useful

hearty spade
copper briar
#

true

hearty spade
#

✨ [Suggestion] DeluxeMenus, metas management

#

✨ [Suggestion] DeluxeMenus, better metas management

untold dagger
#

Please stop bumping the post. We see your deleted messages.

#

It's possible we could add something like this in the future, but it would be pretty low on the list of things-to-do

#

The only feature that really helps here would be the /dm meta <player> list command, the others can be done via /dm execute or papi placeholders

thin wing
#

make a gui with all your metas and open it with a player arg? i was thinking of doing the same in the past

hearty spade
hearty spade
hearty spade
thin wing
#
menu_title: '            &l« ᴘʀᴏꜰɪʟᴇ »'
size: 36
update_interval: 1 
open_command:
 - profile
args:
- player
args_usage_message: "&7[&3&l!&7] &7Usage: &b/profile <name>&7."
register_command: true
items:
  'profile':
    material: 'head-%parseother_{{player}}_{player_name}%'
#

thats all u need

#

this menu for example opens with `/profile <playername>

hearty spade
#

I will try this, tysm !

thin wing
#

u have to use the register_command: and restart your server in order for the command to register and the menu to work

hearty spade
thin wing
#

nop

#

u r required to use an arg

hearty spade
#

Oh, okay x)

thin wing
#

if u try to open it without the arg the arg will be null and thus the menu wont have a {player}

untold dagger
#
'stats':
  command: /stats
  type: RUN_COMMAND
  runcmd:
  - "$Script$%if%%parseother_{$arg1}_{player_has_played_before}%==yes"
  - "/statsfor $arg1"
  - "$Script$%else%"
  - "/statsfor $player"
#

this example should do that

#

it also checks if the player has played before, but I think it should work with no args

thin wing
#

yuh in mine i have 2 requirements for such thing too

#

online + played before

#
  requirements: 
    player_played_before: 
      type: string equals 
      input: "%parseother_{{player}}_{player_has_played_before}%"
      output: "yes"
      optional: true
    player_is_online: 
      type: string equals
      input: "%parseother_{{player}}_{player_online}%"
      output: "yes"
      optional: true
#

has played before work alone cause the placeholder doesnt return yes for first time users

#

so the online is an addition to that

untold dagger
#

correct

#

the example /stats command from mycommand should allow you to open the menu whether or not an argument is specified, defaulting to the user running the command