Plan icon indicating copy to clipboard operation
Plan copied to clipboard

Placeholders don't work

Open PanetiX opened this issue 2 years ago • 15 comments

Describe the issue

We use some placeholders like:

{#Cerulean} • {#Feijoa}Gesamte Spielzeit: {#Geyser}%plan_player_time_total% {#Cerulean} • {#Feijoa}Lieblingsserver: {#Geyser}%plan_player_favorite_server% {#Cerulean} • {#Feijoa}Registriert seit: %plan_player_registered% {#Cerulean} • {#Feijoa}Getötete Spieler: %plan_player_kill_count% {#Cerulean} • {#Feijoa}Gestorben: %plan_player_deaths% {#Cerulean} • {#Feijoa}Getötete Mobs: %plan_player_mob_kill_count% {#Cerulean} • {#Feijoa}Sitzungen: %plan_player_sessions_count%

But they don't work. For sure we use PlaceholderAPI. Other Placeholder works perfect.

Plugin versions

5.4 build 1722

Additional information

We use Plan Plugin on Bungee and all subservers. Works perfect since over 1 year. Only Placeholders don't work (we just tried out at this time)

PanetiX avatar Aug 31 '22 12:08 PanetiX

image https://github.com/plan-player-analytics/Plan/wiki/PlaceholderAPI

AuroraLS3 avatar Aug 31 '22 13:08 AuroraLS3

I don't know what "Plugins.PlaceholderAPI.Load_these_placeholders_on_join" is :/ what exactly i need to do with that?

PanetiX avatar Aug 31 '22 13:08 PanetiX

That setting should appear in the Plan config under Plugins

AuroraLS3 avatar Aug 31 '22 13:08 AuroraLS3

okay i'm in the config.yml from PLan Plugin. But where exactly i need to add "Plugins.PlaceholderAPI.Load_these_placeholders_on_join"?

PanetiX avatar Aug 31 '22 13:08 PanetiX

If there already isn't a

Plugins:
    PlaceholderAPI:
        Load_these_placeholders_on_join:
            - %example_placeholder%

in your config then Plan has not detected PlaceholderAPI

AuroraLS3 avatar Aug 31 '22 13:08 AuroraLS3

Ahh okay. Yes i have this part. And there i need to add all Placeholders what i need?

PanetiX avatar Aug 31 '22 13:08 PanetiX

In that list

AuroraLS3 avatar Aug 31 '22 13:08 AuroraLS3

Do i need to edit this on every Subserver? Or can i install PlaceholderAPI Plugin on Proxy Server, too and place in the Plan cnofig from Proxy Server?

PanetiX avatar Aug 31 '22 13:08 PanetiX

On the ones where you use specific placeholders (unfortunately PlaceholderAPI is only for game servers)

Note that you can also edit the server configs from /plugins/Plan/serverConfiguration on Bungeecord server

AuroraLS3 avatar Aug 31 '22 13:08 AuroraLS3

Okay so we have a Proxy Server there is Plan installed. Then we have a Lobby Server without Plan Plugin installed. On this Lobby Server we want to use the Placeholders from Plan Plugin.

So i need to install Plan Plugin on this Lobby Server, too to get the Placeholders to work?

PanetiX avatar Aug 31 '22 13:08 PanetiX

Yes

AuroraLS3 avatar Aug 31 '22 14:08 AuroraLS3

Nice, i get this to work, thanks :)

PanetiX avatar Aug 31 '22 14:08 PanetiX

But Placeholders works only when i enter the command twice. We have made a custom Alias like /account

It show this:

&2 Deine Account-Informationen: {#Cerulean} •&l&m &r{#Cerulean}• {#Cerulean} • {#Feijoa}Spielername: {#Geyser}%cmi_user_name% {#Cerulean} • {#Feijoa}Gesamte Spielzeit: {#Geyser}%plan_player_time_total% {#Cerulean} • {#Feijoa}Lieblingsserver: {#Geyser}%plan_player_favorite_server% {#Cerulean} • {#Feijoa}Registriert seit: {#Geyser}%plan_player_registered% {#Cerulean} • {#Feijoa}Getötete Spieler: {#Geyser}%plan_player_player_kill_count% {#Cerulean} • {#Feijoa}Gestorben: {#Geyser}%plan_player_deaths% {#Cerulean} • {#Feijoa}Getötete Mobs: {#Geyser}%plan_player_mob_kill_count% {#Cerulean} • {#Feijoa}Sitzungen: {#Geyser}%plan_player_sessions_count% &r

But the informations would only be showed when a user enter thic command twice, why? :/

PanetiX avatar Aug 31 '22 14:08 PanetiX

Did you reload Plan on the server after changing the config and relog?

AuroraLS3 avatar Aug 31 '22 16:08 AuroraLS3

check https://github.com/plan-player-analytics/Plan/wiki/PlaceholderAPI carefully, I think it can solve your problem.

Dreeam-qwq avatar Sep 07 '22 22:09 Dreeam-qwq