#Args in placeholder

1 messages · Page 1 of 1 (latest)

surreal trench
#

How can i add an arg into my placeholder?
Like i tried %player_gamemode_{player}%, and doesn't work.

#

U also tried parse_placeholders_after_arguments: true, but still didn't work

young parcel
surreal trench
#

That's all

young parcel
#

Your issue is you are using the wrong placeholder...

%player_gamemode_<player>% is not a valid placeholder.

#

/papi ecloud download parseother
/papi reload

%parseother_{player}_player_gamemode%

surreal trench
#

oh, I understand more clear now, thank you so much!

young parcel
foggy stratus
#

you can't explicitly set the which player, unless you use a command or write your own plugin
Edit: or you have to use another placeholder that accepts arguments

surreal trench
#

Yes, i know this, but it still shows my gamemode

#

That's why i decided to ask

#

look, probably i did something wrong

menu_title: "&8ꜱɪꜱᴛᴇᴍ - ɪɴꜰᴏ {player}"
open_command: sistem
args: player
size: 45
items:
  Compass:
    material: spruce_log
    slot: 11
    display_name: "&#FF3D3D&nGamemode [!]"
    lore:
      - ""
      - "&8 | &f %player_gamemode%"
  Glass:
    material: black_stained_glass_pained
    slots:
      - 0
      - 1-9
    display_name: "&f"```
foggy stratus
#

probably because you are interacting with a plugin that handles the placeholder

#

do other players get your gamemode?

#

this is working as intended

#

if other players are getting your gamemode then we have an issue

surreal trench
foggy stratus
#

so what's the issue

surreal trench
#

idk

#

I am on my test server now

#

But i have many plugins on it, it could be cause by one of them?

#

But i am logged with another account to test it, and i see that it shows my gamemode, not my other account's gamemode

foggy stratus
#

so it's working correctly

surreal trench
#

there isn't an issue?

foggy stratus
surreal trench
#

I mean, I wanted to show my other's account gamemode, when I run /sistem name

foggy stratus
#

you can use /papi bcparse {target} %player_gamemode%

#

to run the placeholder as another player with the username {target}

surreal trench
#

Like , i want to make a menu with his IP, armor, name, gamemode etc

#

That's all

foggy stratus
#

it would probably require a custom plugin,

surreal trench
#

oh, but i don't understand that, one of my friends said that args: player and when i run /sistem name, it shows me with the player's perspective,his gamemode etc

#

is it possible?

foggy stratus
#

that's a command, and might not have anything to do with placeholder api, im not sure what you want here
you can read the wiki if you need

surreal trench
#

oh, ok..

#

Thank you!

young parcel
young parcel