#Args in placeholder
1 messages · Page 1 of 1 (latest)
Maybe try and list your args like this:
args:
- "TEXT"
- "TEXT"
- "TEXT"```
I mean, I want to display the player's gamemode
That's all
Your issue is you are using the wrong placeholder...
%player_gamemode_<player>% is not a valid placeholder.
You need to use the ParseOther PAPI expansion. https://api.extendedclip.com/expansions/parseother/
/papi ecloud download parseother
/papi reload
%parseother_{player}_player_gamemode%
oh, I understand more clear now, thank you so much!
But you should read this. It will help you get better help in the future.
%player_gamemode% gets replaced with a player's gamemode, the logic behing which player's gamemode get's chosen is defined by the plugin that's utilizing Placeholder API
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
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"```
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
No
so what's the issue
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
so it's working correctly
there isn't an issue?
no
do you want it to do something else?
I mean, I wanted to show my other's account gamemode, when I run /sistem name
you can use /papi bcparse {target} %player_gamemode%
to run the placeholder as another player with the username {target}
you need to use a GUI plugin and also read this https://wiki.placeholderapi.com/
it would probably require a custom plugin,
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?
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
Giving inaccurate info here...
If you do what I said, you will have the desired outcome.