#placeholder-api

150650 messages · Page 134 of 151

glacial crystal
#

plane old paper

#

But seems like updating has fixed it

heady lance
#

@vivid sparrow i found /papi parse me %server_countdown_dd.MM.yyyy hh:mm:ss_{server_time_dd.MM.yyyy} 1:{server_time_mm:ss}%

heady lance
#

but its not updating its stuck

vivid sparrow
#

If you parse it again after a few seconds you have the same value?

heady lance
#

yes

vivid sparrow
#

Try 1:00:00 instead of using the time placeholder

heady lance
#

okay ty

vestal shuttle
#

??????

violet zealot
#

placeholderApi suport version 1.20.6?

upper zinc
upper zinc
#

but all my other plugins break when i install java 17

#

i didn't have that problem when i was using java 7

#

according to docs.oracle.com, java major 61 supports majors from 45 to 61, but upon instaling java 17 (major 61) it stops working on everything else

#

im stuck rn, either i use java 17 like it asks me and the server literally doesn't start, or i don't use papi at all

dense tinsel
#

Thank you so much, it's working now!

vivid sparrow
oblique wolf
#

Yo guys, is there any placeholder api expansion that allows me to get the nbt info of my armor? I've looked into CheckItems but that only allows me to check mainhand/offhand

oblique wolf
#

not sure what name am I suppose to use, tried head/helmet etc and didn't work

oblique wolf
sharp bloom
#

39 helmet, 38 chestp, 37 leggings, 36 boots

oblique wolf
sharp bloom
upper zinc
tender vaporBOT
upper zinc
#

🗿

rugged plover
#

what version its for 1.16.5 at nightcore plugin its says the latest version is for 1.18

#

Can you help me please?

normal urchin
#

Could not find menu: rtp?
why is this happening

stark hedge
#

hi

#

ı have one problem

#

Placeholder api doesn't work

tender vaporBOT
stark hedge
#

Pls help me

#

/papi reload don't work

deft ether
#

so i have an issue where the placeholder expansions need to be registered every time the server restarts. Is there a way to have it do so automatically?

heady lance
#

Hello i imported PlaceholderAPI but i cant use setPlaceholders()
My Code:
set title of player's scoreboard to PlaceholderAPI.setPlaceholders(player, (mini message from {scoreboard::title})) loop 15 times: if "%{scoreboard::lines::%loop-value%}%" is not "<none>": set line 16 - loop-value of player's scoreboard to PlaceholderAPI.setPlaceholders(player, (mini message from {scoreboard::lines::%loop-value%}))

Error:
https://paste.helpch.at/dahofumobu.md

lean idol
#

material: PLAYER_HEAD

How to make the player's head appear?

#

executor command skin

#

@idle coral @warm topaz

tender vaporBOT
warm topaz
#

?dm-heads

tender vaporBOT
lean idol
#

thanks!

misty lance
#

aha kurwa

#

a ja pytalem i w dupie mieliscie

#

a jakiemus wiktorkowi pomogliscie

lean idol
#

trzeba pookowac cweli

misty lance
#

XDD

#

to sie zapytaj

#

jak zrobic

#

zeby itemki sie zmienialy

#

w gui

#

to co probowalismy zrobic

#

ale mowiles ze w dm sie nie zmienia

#

mimo ze zmienna sie aktualizuje

lean idol
#

Kaliber, is it possible to download an item from the placeholder?
I'll give you an example:

%player_hp%

and when the player has 10 hp, he displays red wool, and when he has 5, he displays yellow wool.

The problem I have is that it refreshes only after /dm reload and not after opening the gui again

#

?help

tender vaporBOT
misty lance
#

?help

tender vaporBOT
misty lance
#

@warm topaz

tender vaporBOT
oblique wolf
#

Is there a placeholder I can use to check if the player is moving or not?

tepid cargo
#

for some reason my redisbungee_<server> placeholders are returning 0 but redisbungee_total returns the correct amount

#

any idea why?

patent adder
#

Hello, we suffered an attack on our server where the individual executed administrator commands without having access to the hosting panel or access to the permissions of such commands, the individual after destroying the server said that there was a failure in the placeholderapi plugin that gives access to everything on the server Can you tell me how to solve this?

mint fable
#

~update placeholderapi~ and only install verified expansions @patent adder

#

don't even need to update papi actually

#

just don't install any unverified expansions

#

and double check your perms, making sure the user doesn't have access to any papi commands

#

As the announcement said, we have removed any suspicious expansions from the ecloud entirely, and unverified some that weren't suspicious, but we're meeting our criteria.

patent adder
#

How do I make sure the expansion has been verified or not?

mint fable
#

delete all those and download from ecloud @patent adder

tender vaporBOT
pure kite
austere hawk
vivid sparrow
#

Math expansion requires java 11 @austere hawk

austere hawk
tender vaporBOT
vivid sparrow
#

try older versions @austere hawk

austere hawk
#

I have it on java 8 and the api still doesn't work for me

#

%match_lobby-01+lobby-02%

#

It doesn't work anyway

vivid sparrow
#

lobby-01 should be {bungee_lobby-01}

austere hawk
#

Yes, but I need two servers

vivid sparrow
#

ik but im saying that it needs to be a placeholder, the math expansion doesn't know what lobby-01 means

misty lance
#

Kaliber, is it possible to download an item from the placeholder?
I'll give you an example:

%player_hp%

and when the player has 10 hp, he displays red wool, and when he has 5, he displays yellow wool.

The problem I have is that it refreshes only after /dm reload and not after opening the gui again
?help

#

?help

tender vaporBOT
austere hawk
severe spear
#

Hi i dont understand how to install any Skript placeholder to the plugin.
It gaves me an error every time. Named "Failed to register expansion from ...."

pure fossil
#

people with op dont go on leaderboard for some reason

#

i know its a permission i just forgot what it was

junior musk
#

using ajleaderboards?

#

there's a config option you can togle as well

severe spear
#

But it didn't work either

junior musk
#

/papi dump

#

send the link

severe spear
junior musk
#

it's loaded

#

btw you got two skript jars

#

but the Skript expansion is loaded

#

so you should be able to use the placeholders now

severe spear
#

i'll send you a pic in pm

junior musk
#

/papi list

#

it should be there

#

either way the dump said it was loaded

#

so you're good

severe spear
#

A server restart might help about this?

junior musk
#

help with what

#

the expansion is loaded and working

severe spear
#

But the /papi ecloud list installed doesn't write that

junior musk
#

it's normal

severe spear
#

oh

junior musk
#

/papi ecloud list shows the expansions downloaded with the command

#

but you downloaded it manually

#

and it does show in /papi list & /papi dump

severe spear
#

ohhh, thanks

junior musk
#

so it's fine

severe spear
#

Ohh i see that now, if a use /papi reload its says 7 placeholder hook registered

misty lance
pure fossil
misty lance
#

is it possible to download an item from the placeholder?
I'll give you an example:

%player_hp%

and when the player has 10 hp, he displays red wool, and when he has 5, he displays yellow wool.

The problem I have is that it refreshes only after /dm reload and not after opening the gui again

junior musk
#

The problem I have is that it refreshes only after /dm reload and not after opening the gui again
that's a bug that I think was fixed in dev builds

#

try the latest dev build

misty lance
#

i will try, thanks

pure fossil
#

after using the /papi reload ranks dont get updated for leaderboards and one placeholder only loads on startup

#

Just had to send a message in chat my bad

#

Right now it says im #1 baltop while the your baltop rank says 2

#

and i cannot send screens here

warm plover
#

omg there's a new dev build?

#

🤩

junior musk
#

I don't think so

warm plover
#

Well may 6th build

junior musk
#

oh

warm plover
#

Not new but I didn't know about it 😂

junior musk
#

didn't check tbf

vivid sparrow
warm plover
#

Oof newest build still has broken args

#

or maybe not? I think I'm dumb

vivid sparrow
#

Deluxemenus?

warm plover
#

Yeah I think it's working fine, something is very wrong with my JS placeholder though. This all worked at one point so I'm trying to figure out why it doesn't now lol

warm plover
#

How can I use DM args with parseother and utils? '%utils_parseother:[{player}]_player_online%' seems to not work

#

It always thinks the player is offline, but if I remove the [] it thinks the player is always online

junior musk
#

I'm not 100% sure but I don't even think %player_online% works when offline

#

also try with parseplaceholder instead of parseother

warm plover
#

I tried input: '%utils_parseplaceholder:[{player}]_player_online%' and input: '%utils_parseplaceholder:{player}_player_online%'

#

Same result sadly

#

/papi parse me %utils_parseother:[Keene]_player_online% and /papi parse me %utils_parseother:[0bviouslee]_player_online% show the correct "yes" and "no" values

junior musk
#

then the {player} argument is probably not parsed correctly

warm plover
#

rip 😭

#

Is there another way I could accomplish this?

#

It worked at some point but now doesn't

lean idol
# junior musk > The problem I have is that it refreshes only after /dm reload and not after op...

[20:08:07 WARN]: [DeluxeMenus] Plugin DeluxeMenus v1.14.1-DEV-179 generated an exception while executing task 4053
java.lang.NoClassDefFoundError: org/bukkit/inventory/meta/ArmorMeta
at com.extendedclip.deluxemenus.utils.ItemUtils.hasArmorMeta(ItemUtils.java:73) ~[?:?]
at com.extendedclip.deluxemenus.menu.MenuItem.getItemStack(MenuItem.java:284) ~[?:?]
at com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$5(Menu.java:454) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.16.5.jar:git-Paper-792]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.5.jar:git-Paper-792]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Paper-792]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.ClassNotFoundException: org.bukkit.inventory.meta.ArmorMeta
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:155) ~[patched_1.16.5.jar:git-Paper-792]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Paper-792]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
... 9 more

misty lance
# junior musk > The problem I have is that it refreshes only after /dm reload and not after op...

[20:08:07 WARN]: [DeluxeMenus] Plugin DeluxeMenus v1.14.1-DEV-179 generated an exception while executing task 4053
java.lang.NoClassDefFoundError: org/bukkit/inventory/meta/ArmorMeta
at com.extendedclip.deluxemenus.utils.ItemUtils.hasArmorMeta(ItemUtils.java:73) ~[?:?]
at com.extendedclip.deluxemenus.menu.MenuItem.getItemStack(MenuItem.java:284) ~[?:?]
at com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$5(Menu.java:454) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.16.5.jar:git-Paper-792]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.5.jar:git-Paper-792]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Paper-792]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.ClassNotFoundException: org.bukkit.inventory.meta.ArmorMeta
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:155) ~[patched_1.16.5.jar:git-Paper-792]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Paper-792]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
... 9 more

junior musk
#

doesn't seem like the latest dev build works on versions below 1.20

#

try the dev build right before

#

build 178

vivid sparrow
junior musk
#

too lazy atm xD

vivid sparrow
#

Ok I did it

austere hawk
vivid sparrow
#

No, you are the one that needs help 🙂

austere hawk
#

So I need help and you will write this...

vivid sparrow
#

You should explain your problem in order for me to assist.

#

The javascript expansion is not needed if thats your question.

austere hawk
warm plover
#

But it’s easier for you to explain your exact problem then link other problems

austere hawk
#

I have bungeecord and I have minigames on every single server and I need all servers to give npc players: %servers%

#

Do you understand?

warm plover
#

Requires math and bungee expansion

austere hawk
#

/npc hologram set 1 &7Players: &f%math_1:_skywars-01+skywars-02%

warm plover
#

You took away the placeholders

#

{bungee_skywars-01}

austere hawk
#

/npc hologram set 1 &7Players: &f%math_1:_{bungee_skywars-01}+{bungee_skywars-02}%

#

yes?

warm plover
#

yep

austere hawk
#

Now I have 1.0 players there

#

Should I put 0 instead of 1?

#

npc hologram set 1 &7Players: &f%math_0:_{bungee_thebridge-01}+{bungee_thebridge-02}+{bungee_thebridge-03}+{bungee_thebridge-04}%

#

yes fixed

oblique wolf
#

Is anyone using PAPI String expansion?

#

Does it support string check with underscore?

mint fable
astral plank
#

Hello i cant get placeholderapi to work on 1.20.6 Is this a known issue or i am doingsomething wrong

manic badge
#

Share the errors or server logs

astral plank
#

[14.05 03:06:52] [Server] java.lang.NullPointerExceptionCannot invoke "java.util.Map.clear()" because "this.itemHooks" is null
[14.05 03:06:52] [Server] at DeluxeMenus-1.14.1-DEV-179.jar/com.extendedclip.deluxemenus.DeluxeMenus.onDisable(DeluxeMenus.java:183) ~[DeluxeMenus-1.14.1-DEV-179.jar:?]
[14.05 03:06:52] [Server] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:290) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
[14.05 03:06:52] [Server] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.disablePlugin(PaperPluginInstanceManager.java:237) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.disablePlugin(PaperPluginManagerImpl.java:114) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:549) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
[14.05 03:06:52] [Server] at DeluxeMenus-1.14.1-DEV-179.jar/com.extendedclip.deluxemenus.DeluxeMenus.onEnable(DeluxeMenus.java:90) ~[DeluxeMenus-1.14.1-DEV-179.jar:?]
[14.05 03:06:52] [Server] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
[14.05 03:06:52] [Server] at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:519) ~[paper-api-1.20.6-R0.1-SNAPSHOT.jar:?]
[14.05 03:06:52] [Server] at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:609) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:558) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:681) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:440) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:323) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1142) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:326) ~[paper-1.20.6.jar:git-Paper-78]
[14.05 03:06:52] [Server] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

#

Is papermc not supported?

#

I cant get deluxe menu to work or placeholderapi

#

@manic badge Do you know if this works with papermc?

#

Ok changed it to spigot and it worked

#

I guess it doesnt support paper

solid raft
#

I'm trying to return %player_has_permission_<permission>% yes/no as a binary integer, is this possible?

warm topaz
#

I suppose you can pair it with changeoutput expansion

warm topaz
tender vaporBOT
warm topaz
misty lance
#

hi

#

how much can i have menus ?

#

@warm topaz

tender vaporBOT
warm topaz
#

what?

manic badge
#

incompletenessings

warm plover
#

Is this any way I can allow args to work within a placeholder? %utils_parseplaceholder:{player}_player_online% seems to not be working

#

It doesn't seem to be working with any placeholder

#

I tried %utils_parseother:{player}_string_replacecharacters_profile-rank-icon_{vault_group}% and it seems to just give me my rank each time, so I think maybe it's just parsing me?

worldly forum
#

i need the 1.20.6 placeholder-api plugin

worldly forum
manic badge
tranquil lantern
#

How can I edit like player's ping forward refresh for placeholderapi like %ping%?

mint fable
#

and the option to change refresh speed is in the papi config.yml

tranquil lantern
#

tysm

#

but hum where is it in the config?

mint fable
#

oh shoot, that's wrong

#

I think it updates every time it's called actually @tranquil lantern

tranquil lantern
#

wdym

mint fable
#

every time the placeholder is called, the ping is updated

#

so there is no need to update a refresh value

#

there isn't one

solid raft
#

What is the easiest way to use placeholders as custom variables?

#

for instance I would love to have a variable somewhere where I can specify an income or taxation rate, and use that variable as a placeholder in other calculations

#

that way if I want to change any equation that uses that rate, I can just change the one variable

mint fable
#

shortcut I think

#

shortcut expansion or utils expansion @solid raft

tender vaporBOT
sharp bloom
#

there r probably 2 shortcut expansions installed

austere hawk
#

can someone help me find the placeholder for my survival server? i want it to show on the npc at hub how much players are inside the survival server

austere hawk
sharp jay
austere hawk
sharp jay
#

@austere hawk

austere hawk
#

wlike the placeholder of players online in my survival server

sharp jay
sharp jay
austere hawk
#

so

#

%bungee_<survival>%

#

work ty pooks

sharp jay
carmine sapphire
#

Hi i have problem

#

java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null
at me.clip.placeholderapi.expansion.PlaceholderExpansion.register(PlaceholderExpansion.java:147) ~[zencraftia-survival-toolsplugin-0.1-SNAPSHOT.jar:?]
at eu.labmc.toolsPlugin.ToolsPlugin.onEnable(ToolsPlugin.java:115) ~[zencraftia-survival-toolsplugin-0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[plazma-api-1.20.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:190) ~[plazma-1.20.4.jar:git-Plazma-"3972882"]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[plazma-1.20.4.jar:git-Plazma-"3972882"]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[plazma-api-1.20.4-R0.1-SNAPSHOT.jar:?]

carmine sapphire
#

thanks

verbal mist
#

will there be support for 1.20.6?

manic badge
#

I feel like the work is in progress

warm topaz
#

already does

manic badge
#

Alright, thanks

sharp bloom
#

np :d

neat nova
#

Hello, there's a command to check every placeholder from a plugin?

manic badge
#

I don't think so, however they're available on the GitHub & wiki pages

sharp jay
#

/papi ecloud placeholders <expansion>

neat nova
sharp jay
neat nova
#

MMOCore

wet basinBOT
#

@sharp jay Unknown expansion.

manic badge
#

I thought they're asking about a mc cmd lol

neat nova
#

Like %mmocore_.level_{name}%

sharp jay
#

deluxemenus?

neat nova
#

Nope

#

Using "conditional events"

sharp jay
#

Ya not sure maybe ask in their discord?

neat nova
#

I'm creating a command for checking another player mmocore level

sharp jay
#

@neat nova

neat nova
#

:0

#

This is what i needed %parseother__.{arg_1}._{mmocore_level}%

#

Really thx man 💖

manic badge
sharp jay
#

yup

robust lake
#

Please help me, I downloaded a placeholder server to show tps in numbers, but because of it the plugin placeholderapi crashes, and I can't remove this playholder in any way, it is installed again, and the rest of the placeholders stop working, only 2 remain

wide smelt
#

so uh this sucks
[05:30:47 WARN]: [PlaceholderAPI] heroes is attempting to register placeholders via deprecated PlaceholderHook class. This class is no longer supported and will be removed in v2.13.0!

clever rain
#

Is there a way to use PlaceholderAPI on a velocity server like a different file or with another plugin supporting it?
||```
[11:50:57 ERROR]: Unable to load plugin plugins\PlaceholderAPI-2.11.5.jar
com.velocitypowered.api.plugin.InvalidPluginException: The plugin file PlaceholderAPI-2.11.5.jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.getSerializedPluginInfo(JavaPluginLoader.java:161) ~[velocity.jar:3.3.0-SNAPSHOT (git-afd8b55f-b390)]
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.loadCandidate(JavaPluginLoader.java:62) ~[velocity.jar:3.3.0-SNAPSHOT (git-afd8b55f-b390)]
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:96) ~[velocity.jar:3.3.0-SNAPSHOT (git-afd8b55f-b390)]
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:362) ~[velocity.jar:3.3.0-SNAPSHOT (git-afd8b55f-b390)]
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:239) ~[velocity.jar:3.3.0-SNAPSHOT (git-afd8b55f-b390)]
at com.velocitypowered.proxy.Velocity.main(Velocity.java:71) ~[velocity.jar:3.3.0-SNAPSHOT (git-afd8b55f-b390)]

robust lake
forest heath
#

Hi, it's not working for me anymore since I updated to version 1.20.6. Can someone help me?

warm topaz
#

use dev builds of papi

forest heath
#

Thx working you know developer of powerboard plugin?

autumn sparrow
#

Placeholder api isnt loading in paperplugins folder? Im using a paper 1.20.6 software, can i do anything about it without using a different game version and dev build of papi

#

i tried to send my log file link but i guess that not allowed

vivid sparrow
#

Why is using a dev version not an option? @autumn sparrow

autumn sparrow
vivid sparrow
#

Rip, wait until we post the release that works on 1.20.5+

autumn sparrow
#

sadd kk

opal coral
#

The placeholder 'statisctic_player_kills' does not give a numerical value. Make sure that the placeholder returns a number that is not formatted.

distant lava
#

Hi all, is it possible to show placeholders with normal text excluding color formatting? For example, we'd like to use %player_item_in_hand_name% without any color formatting, just regular text

granite kernel
#

which placeholder shows the status of Keepinventory in the world in which player sees it

distant lava
tender vaporBOT
steep urchin
#

ive been trying to fix this error for days but i just cant
[ModernPluginLoadingStrategy] Could not load plugin 'PlaceholderAPI-2.11.4.jar' in folder 'plugins/.paper-remapped'

#

can anyone help

dense tinsel
#

Hey, I want to make a countdown to 06:30 in the next morning and I remember this used to work: %server_countdown_HH.mm.dd.MM.yyyy_30.30.{server_time_dd.MM.yyyy}%. Was Server updated and got rid of the feature (or bug)? Now it just output invalid date

storm talon
#

Hi

#

Anyone knows why this is not working?

  • content: '&2#1 &a%ajlb_lb_townyadvanced_top_town_balance_1_alltime_name% §8- §f%ajlb_lb_towny_town_balance_1_alltime_value%'
    It shows "Board does not exist - BDNE"
vivid sparrow
dense tinsel
#

Thanks Gaby

maiden nacelle
#

Please update to 1.20.6 😦 ❤️ Thanks you!

maiden nacelle
#

[19:41:55] [Server thread/ERROR]: [ModernPluginLoadingStrategy] Could not load plugin 'PlaceholderAPI-2.11.5 (1).jar' in folder 'plugins/.paper-remapped'
org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
at io.papermc.paper.plugin.provider.type.spigot.SpigotPluginProvider.createInstance(SpigotPluginProvider.java:127) ~[paper-1.20.6.jar:1.20.6-79-f175193]
at

#

Should I change my Minecraft server version?

dense tinsel
frozen sierra
#

Hello , where can I find help because of my discord account or where is the right channel ?

tender vaporBOT
twilit terrace
#

for placeholderapi i can't translate messages

#

anyone knows how i might me able to do it?

#

i have localtime but isn't translating the day on spanish

#

anyone knows how to fix it?

maiden nacelle
dense tinsel
maiden nacelle
#

I'm also confused, my server's RAM capacity is only 8gb, I have 30 plugins, but if I use spigot it's not enough

austere hawk
#

can anyone help me? I have no idea how to fix this, im not a developer.

#

[07:17:37 WARN]: [PlaceholderAPI] Cannot load expansion itemmultiply due to a missing plugin: ItemMultiplyPlus
[07:17:37 INFO]: [PlaceholderAPI] Successfully registered external expansion: string [1.0.4]
[07:17:37 INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8]
[07:17:37 WARN]: [PlaceholderAPI] Cannot load expansion randomizer due to a missing plugin: Randomizer

#

these are the only errors it shows

#

i need quick help lowkey

#

so ping me if u can answer my question

craggy bison
#

„Cannot load expansion itemmultiply due to a missing plugin: ItemMultiplyPlus“

#

youre missing ItemMultiplyPlus

austere hawk
#
[07:17:37 WARN]: [PlaceholderAPI] Cannot load expansion itemmultiply due to a missing plugin: ItemMultiplyPlus```
```yaml
[07:17:37 WARN]: [PlaceholderAPI] Cannot load expansion randomizer due to a missing plugin: Randomizer```
vivid sparrow
#

is the error not clear enough? You need those two plugins for the expansions to work

quasi spire
#

papi dev build works on 1.20.6?

#

(last time i used it didnt)

junior musk
#

I think it should

#

yeah I used dev build 193 and it worked

grave yarrow
#

Hey, I am pretty new to PAPI and I just want to know something.

I developed a small Hub plugin for my server and I want to use the %bungee_survival% placeholder in my server selector menu. I put PAPI as dependency and softdepend and I thought PAPI would automatically convert all %something%. Now I am not sure how I implement it the right way in my code.

#

Code kinda messy.

                serverSelector = new ServerSelector(MessageUtil.format(config.getString(path + "ServerSelector.Name")),
                        config.getStringList(path + "ServerSelector.Lore").stream()
                                .map(MessageUtil::format)
                                .collect(Collectors.toList()),
                        new ItemStack(serverSelectorMaterial),
                        config.getString(path + "ServerSelector.Action"),
                        config.getString(path + "ServerSelector.Menu"));
Title: '&#3d54ffServer Selector'
Size: 3
Fill_rest_with_items: true
rest_items: GRAY_STAINED_GLASS_PANE
items:
  survival:
    Action: CONNECT
    Server: survival
    ItemName: '&#ffe83d&lNATIONS&r &7[&a1.20.4&7]'
    ItemLore:
    - ''
    - '&6&lClick &6to connect to &#ffe83dNations!'
    - '&7[&aPlayers &7- &6%bungee_survival%&7]'
    ItemStack: YELLOW_WOOL
    MenuPlace: 13
junior musk
#

it doesn't do it automatically, you have to use PlaceholderAPI.setPlaceholders(OfflinePlayer, String) to parse it

grave yarrow
#

So I'd do that on the right click event I guess

junior musk
#

and if you want to refresh it, you have to make a repeating task

junior musk
grave yarrow
#

Yes

junior musk
#

when the item is made

grave yarrow
#

With right click

junior musk
#

ah alright

grave yarrow
#

It is created there 👍

#

But how do other plugins do it?

#

Like you can use every placeholder in other plugins

junior musk
#

same thing

grave yarrow
#

setPlaceHolder() only does it for one placeholder, no?

junior musk
#

PlaceholderAPI.setPlaceholders()

#

no it's for all placeholders currently loaded in PlaceholderAPI

vivid sparrow
#

they register an expansion that provides these placeholders
papi finds the one that has the identifiere bungee for example and calls a method that returns a value, in this case the amount of players

austere hawk
austere hawk
#

thats the thing

grave yarrow
junior musk
#

no

vivid sparrow
#

no

junior musk
#

they just execute this simple method

#

the method does the iteration

vivid sparrow
#

setPlaceholders takes in a string, which can be a single placeholder, yes, or a line with multiple

junior musk
#

or even none at all

grave yarrow
#

setPlaceHolders(OfflinePlayer, String)

So the String is a String array with all placeholders?

junior musk
#

it's just text

#

could be "hello"

#

could be "hello %player_name%

#

could be "hello %player_name%, it's %server_time_HH:mm:ss%"

vivid sparrow
#
- '&6&lClick &6to connect to &#ffe83dNations!'
- '&7[&aPlayers &7- &6%bungee_survival%&7]'

you would use each of these strings, the first one has no placeholder so the result will be the same string, but the second line does have a placeholder

grave yarrow
#
    @EventHandler
    public void onRightClickWithHubItem(PlayerInteractEvent e) {
        if ((e.getAction() == Action.RIGHT_CLICK_AIR || e.getAction() == Action.RIGHT_CLICK_BLOCK) && e.getItem() != null) {
            if (e.getItem().isSimilar(HubItemInitializer.getServerSelectorItem())) {
                HubItem server_selector = HubItemInitializer.getServerSelector();
                String action = server_selector.getAction();
                String menu = server_selector.getMenu();
                if (action != null && action.equalsIgnoreCase("OPEN_MENU")) {
                    Config config = MemoryUtil.menusConfigs.get(menu);
                    if (config != null) {
                        GeneralMethods.getInstance().openGUIFromConfig(config, e.getPlayer());
                    }
                }

Here I am opening the inventory

junior musk
#

where's the menu item created?

vivid sparrow
#

setPlaceHolders(OfflinePlayer, "&6&lClick &6to connect to &#ffe83dNations!") -> &6&lClick &6to connect to &#ffe83dNations!
setPlaceHolders(OfflinePlayer, "&7[&aPlayers &7- &6%bungee_survival%&7]") -> &7[&aPlayers &7- &625&7]

grave yarrow
#
                serverSelector = new ServerSelector(MessageUtil.format(config.getString(path + "ServerSelector.Name")),
                        config.getStringList(path + "ServerSelector.Lore").stream()
                                .map(MessageUtil::format)
                                .collect(Collectors.toList()),
                        new ItemStack(serverSelectorMaterial),
                        config.getString(path + "ServerSelector.Action"),
                        config.getString(path + "ServerSelector.Menu"));
junior musk
#

in the lore stream(), map the strings with the PlaceholderAPI.setPlaceholders() method

grave yarrow
#

This is the class where the default things are created

vivid sparrow
#

all you have to do is to use setPlaceholders() on any string you want to support them, papi will do the rest (find the placeholders, find the expansions, replace the placeholders with a value).

grave yarrow
#

Because I want my menus to work with configs

#

So I don't have to hardcode the lore

vivid sparrow
#

is that what my example shows?

grave yarrow
#

Kinda

#

Oh, you want me to read from config obviously

#

Probably

vivid sparrow
#

it doesn't matter where the string comes from

grave yarrow
#
    public void openGUIFromConfig(@NotNull Config config, Player player) {
        FileConfiguration fileConfig = config.get();

        String guiTitle       = fileConfig.getString("Title");
        int guiSize           = fileConfig.getInt("Size");
        boolean guiFill       = fileConfig.getBoolean("Fill_rest_with_items");
        Material fillMaterial = Material.matchMaterial(fileConfig.getString("rest_items", "GRAY_STAINED_GLASS_PANE"));

        Map<Integer, ItemStack> items = new HashMap<>();
        ConfigurationSection itemsSection = fileConfig.getConfigurationSection("items");

        if (itemsSection != null) {
            for (String key : itemsSection.getKeys(false)) {
                ConfigurationSection itemSection = itemsSection.getConfigurationSection(key);
                if (itemSection != null) {
                    List<String> lore = itemSection.getStringList("ItemLore").stream()
                            .map(MessageUtil::format)
                            .collect(Collectors.toList());

                    Material material = Material.matchMaterial(Objects.requireNonNull(itemSection.getString("ItemStack")));
                    String itemName   = itemSection.getString("ItemName");
                    int itemPlace     = itemSection.getInt("MenuPlace");

                    if (material != null) {
                        ItemStack item = new ItemStack(material);
                        ItemMeta meta = item.getItemMeta();
                        if (meta != null) {
                            meta.setDisplayName(MessageUtil.format(itemName));
                            meta.setLore(lore);
                            item.setItemMeta(meta);
                        }
                        items.put(itemPlace, item);
                    }
                }
            }
        }
        GuiHelper gui = new GuiHelper(guiSize, MessageUtil.format(guiTitle), items, guiFill, fillMaterial);
        player.openInventory(gui.getInventory());
    }
```I would do it here, no?
junior musk
#

yeah

grave yarrow
#

List<String> lore = itemSection.getStringList("ItemLore").stream()
.map(MessageUtil::format)
.collect(Collectors.toList());

junior musk
#

you'd parse the placeholders in the lore strings before setting them in the meta

grave yarrow
#

PlaceholderAPI.setPlaceholders(player,"bungee");
meta.setLore(lore);

#

Like that?

#

Or in the stream

junior musk
#

what

#

meta.setLore(PlaceholderAPI.setPlaceholders(player,lore));

#

I was going to make a for loop but apparently there's a method for list of strings

grave yarrow
junior musk
#

it checks for your entire lore, finds placeholders if there's any, and parses them, yes

grave yarrow
#

That's dope

#

Alright, I hope it'll work, if it does, thanks a lot for the help and have a great weekend! :D

#

It works! Thanks a lot!

austere torrent
#

Hello,
can you update the PlaceholderAPI to the Minecraft Version 1.20.6 please?

silk fjord
#

why

xmxzng issued server command: /papi parse me %server_tps%
[14:45:32 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.11.5

https://hastebin.com/share/adedexojab.ruby

vivid sparrow
#

download the latest version of the expansion @silk fjord

tender vaporBOT
plucky wolf
#

hi, when I deleting something from my PC, the storage space is decreasing

manic badge
#

need more info ig

prisma sonnet
#

Hey!

#

Any clues on when will PAPI support 1.20.6?

winter marsh
#

place holders api dont work in 1.20.6?

past valley
#

I’m using Aternos for my server host and I can’t import files like the dev builds into it

#

Did they announce when they’re going to update it for paper 1.20.6?

forest ravine
#

I need a dev build for Placeholder API

balmy marten
exotic rapids
#

Yeah, but some of us can't use dev builds

balmy marten
#

We aren't ready for a release yet as we're waiting on a library we use to be updated

exotic rapids
#

Ok, thank you

exotic rapids
tender vaporBOT
green kettle
#

How long does that usually take with updating the library?

balmy marten
#

It will be ready when it's ready, we don't usually give an eta

tender hazel
#

Having an issue with the server expansion; %server_time_<SimpleDateFormat>% will fail when I try to use zzzz to get the timezone to show up. I recently updated the expansion on my server, so it had been working previously.

tender hazel
#

Just to add, servertime expansion has it working fine.

acoustic solar
#

how do i make a placeholder return the number without the ".00" at the end?

tender hazel
#

Which one?

acoustic solar
#

just a third-party plugin

tender hazel
#

Maybe I'm wrong, but you would probably need to talk to the author of that plugin if it's their plugin providing the placeholder.

acoustic solar
#

no ive seen a papi extension before able to do what im sayiung but i cant remember its namer so i hoped somone would

vivid sparrow
#

math

tender hazel
stoic turret
thorn pier
#

%statistic_player_kills% I can't show this api on my minecraft server

#

@mint fable

tender vaporBOT
manic badge
#

@thorn pier make sure you've installed the expansion

manic badge
#

check in the expansions folder if you have it

thorn pier
manic badge
#

server files

#

aint sure whats the command to check

#

try /papi list

thorn pier
#

[18:32:40 INFO]: A total of 5 placeholder hook(s) are active:
ajlb, skinsrestorer, statistic, tab, vault

manic badge
#

what does it show in the game?

#

the placeholder itself?

thorn pier
#

trying to redirect to an html page

manic badge
#

what does it show on the html page

thorn pier
#

there is nothing on the html page he is trying to show, it is an erroneous page

manic badge
#

papi version?

#

try reinstalling the expansion

thorn pier
#

PlaceholderAPI version 2.11.5

manic badge
#

execute /papi parse me %statistic_player_kills% and send ss

tardy glade
#

does anyone perhaps know an expansion that can convert seconds/minutes/ticks to a pretty format? for example: 1h 5m 20s

Edit: found it, its called formatter

dapper slate
#
[PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: at/helpch/placeholderapi/expansion/server/ServerExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
    at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_312]
    at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_312]
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) ~[?:1.8.0_312]
    at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_312]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_312]
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_312]
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_312]
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_312]
Caused by: java.lang.UnsupportedClassVersionError: at/helpch/placeholderapi/expansion/server/ServerExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Why when I try to install the Server does it give this error?

radiant vigil
radiant vigil
#

oh that was just a javadoc

exotic fable
#

- '%is_nearby_{math_0_{superior_island}_x-31}_{math_0_{superior_island}_y-31}_{math_0_{superior_island}_z-31}_{superior_island_world}_10% == true'

#

anybody know how to fix Math placeholder

#

I want to extract a number from the coordinates

sharp bloom
#

has anybody tried the checkitem expansion in 1.20.5 - 1.20.6?

exotic rapids
#

they are waiting for the libary they use to update

mint fable
#

also, not really sure where this is being used, but I've never seen the == true before

trail harness
#

left click command -'[console] team join EUA () ' what do i put in between the () to target the player that executed the command, i have a menu with a block that when they click they join the team

#

nvm %player_name% worked

#

is there a way to add cooldown?

#

i dont want players to be switching teams everytime

warm plover
#

%utils_parseother:[{arg}]_javascript_rgbtohex_servervariables_value_profile_background_color%

#

Would anyone know how I could make something like this work?

manic badge
manic badge
#

Uh.

tender vaporBOT
manic badge
#

There you go.

deep hollow
#

Hey, I have a placeholder returning 1,203.03, it's possible to make with Formatter expansion to return a raw number? Thanks 😄

#

nvm done with Formatter replace

sharp verge
brazen pond
#

Does anyone know where the placeholder %server_time_dd_hh_mm% takes the time for how long the server already exists? and how, for example, to reset its value to 0

manic badge
#

did you mean the time elapsed since the server turned on? or the time elapsed since the server was made (first start)?

brazen pond
#

Where does this placeholder get the values of

jolly field
#

do you mean the timezone?

marsh nymph
#

menu_title: 'Выживание' open_command: survival size: 27 items: 1survival_online: material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDk3NTNhOTU2MjIxOGI1ZTAzZTdkNGY5M2QyMDcxZmI3ZmY0ZDVkYzk4Yjk4YjAwMWY1ZGQwODQyMTUzNTg2MyJ9fX0= slot: 20 priority: 0 display_name: ' ' lore: - ' &bВанилла &7[%bungee_1survival%/100] ' - '' - ' &fСтатус: &aОнлайн ' - '' - ' &fИсследуй мир, развивайся ' - ' &fсовместно со своми друзьями ' - ' &fи отлично проводи время! ' - '' - ' &a• Нажмите, чтобы играть ' - '' view_requirement: requirements: server_status: type: string equals input: '%pinger_online_127.0.0.1:25552%' output: '&aOnline' maintenance: type: string equals input: '%maintenance_server_1survival%' output: '&cdisabled' left_click_commands: - '[connect] 1survival' 1survival_offline: material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWEyZjQ2YjIwOWMyOWVjNjc3ZDcyODI0ZjgyZDEwMWM4Yzc1ZjgwZWNlZGViMTBjMjI2YTc4MmQ1NTkxNDNmMiJ9fX0= slot: 20 priority: 1 display_name: ' ' lore: - ' &bВанилла &7[%bungee_1survival%/100] ' - '' - ' &fСтатус: &cОффлайн ' - '' - ' &fИсследуй мир, развивайся ' - ' &fсовместно со своми друзьями ' - ' &fи отлично проводи время! ' - '' - ' &c• Сервер выключен ' - '' view_requirement: requirements: server_status: type: string equals input: '%pinger_online_127.0.0.1:25552%' output: '&cOffline' 1survival_maintenance: material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWEyZjQ2YjIwOWMyOWVjNjc3ZDcyODI0ZjgyZDEwMWM4Yzc1ZjgwZWNlZGViMTBjMjI2YTc4MmQ1NTkxNDNmMiJ9fX0= slot: 20 priority: 2 display_name: ' ' lore: - ' &bВанилла &7[%bungee_1survival%/100] ' - '' - ' &fСтатус: &cТех. работы ' - '' - ' &fИсследуй мир, развивайся ' - ' &fсовместно со своми друзьями ' - ' &fи отлично проводи время! ' - '' - ' &c• Технические работы ' - '' view_requirement: requirements: server_status: type: string equals input: '%pinger_online_127.0.0.1:25552%' output: '&aOnline' maintenance: type: string equals input: '%maintenance_server_1survival%' output: '&aenabled'
Who can help, the menu does not open

warm plover
vale cradle
#

Any idea why papi is only calculating the total of hub instead of all of the servers I listed?
%math_0_{bungee_hub}+{bungee_sunrealm}+{bungee_moonrealm}+{bungee_starrealm}+{bungee_end}+{bungee_<nether>}+{bungee_eventrealm}%

austere hawk
#

is anyone on now i need help

flint harness
#

hey im trying to get %bungee_total% to work but it keeps showing 0

flint harness
#

ping me if u can help 🙂

lilac spear
warm plover
#

To use placeholderapi with 1.20.6 you need to use the latest dev build of placeholderapi

#

Should be linked on the spigot page

lilac spear
#

Ooooof

#

I see

#

Thanks for the help

#

Gotta need to redownload everything

drifting notch
warm plover
drifting notch
#

but i cant get dev build

balmy marten
#

(Also released on GitHub/BuiltByBit/Hanger)

sharp bloom
tender vaporBOT
sharp bloom
vagrant arch
#

test

dire bridge
#

Hey, I tried setting a placeholder in my plugin using placeholderapi, the internal expansion is being registered as "core", I now use the onRequest part (https://paste.helpch.at/ociyuheqij.typescript) but using %core_nation_name% doesnt work, can anyone help me with this issue? I'm new to PAPI.

#

Should I use onPlaceholderRequest instead?

junior musk
#

onRequest is fine, and does the expansion show in /papi list?

#

if yes, does the placeholder work if you use /papi parse me %core_nation_name% ?

dire bridge
junior musk
#

what does it return? the raw placeholder or an empty string?

#

and did this show up in console?

dire bridge
#

The raw placeholder %core_nation_name%
and no it didnt show up in console

#

Also no error in the console

junior musk
#

uh

#

you said the identifier was core?

dire bridge
#

Yes its "core", I previously called the Placeholders class using new Placeholders(this).register but It resulted in PAPI registering "Core" and "Nations"

junior musk
#

send the link you get from /papi dump

dire bridge
#

This is with both

junior musk
#

why is it Nations in the placeholder class then?

#

or was that the old version of the class?

dire bridge
dire bridge
#

I now tried parsing %Nations_nation_name% and it works

junior musk
#

yeah, because your getIdentifier returns Nations

dire bridge
#

I still however have 2 registered internal expansions

junior musk
#

can you send me your plugin jar and logs?

dire bridge
#

All of it?

junior musk
#

well idk about logs but at least the plugin jar

#

because I don't really understand everything

dire bridge
#

Okay

junior musk
#

yeah I don't really know

#

I only see that one Placeholders class with the Nations identifier

dire bridge
#

I dont' know either
[16:33:56 INFO]: [Core] Enabling Core v0.3.5
[16:33:56 INFO]: [PlaceholderAPI] Successfully registered internal expansion: core [0.3.5]
[16:33:57 INFO]: Nations !-----------------------------------------------------!
[16:33:57 INFO]: Nations Loading Nations 0.3.5
[16:33:57 INFO]: Nations ~~https://github.com/notmyidea/nations~~
[16:33:57 INFO]: Nations !-----------------------------------------------------!
[16:33:57 INFO]: Nations PlaceholderAPI found, enabling placeholders
[16:33:57 INFO]: [PlaceholderAPI] Successfully registered internal expansion: Nations [0.3.5]
It's just registering the project as an internal expansion

junior musk
#

could it be from the SimplePlugin class?

dire bridge
#

No, there's nothing about PAPI in its superclass

junior musk
#

idk then

dire bridge
#

Okay

#

Thanks for helping me though

drifting notch
tender vaporBOT
vast crystal
#

if i reset my server, i won't need to download the placeholders manually right?

#

cuz as of now, i need to download them manually and it doesn't work half of the time

stone hollow
#

an anyone tell me which placeholder displays the number of items a player has in his inventory?

merry jasper
#

Is there any nice placeholder solutions to add \n in every 2nd space? for 2 players per line? i am using plotsquared's member list placeholder.

https://prnt.sc/K-UgSE2nq0WV

#

or should i just use JS

mint fable
#

Maybe formatter with replace @merry jasper

#

Can you change the format in plotsquared?

merry jasper
granite galleon
#
      minimum_requirements: 1
      stop_at_success: true
      deny_commands:
        - "[message] &cError"
      requirements:
        arma1:
           type: string contains
           input: "%checkitem_mat:END_CRYSTAL,amt:10%"
           output: "yes"
        arma2:
           type: string contains
           input: "%checkitem_mat:NETHERITE_SWORD,amt:1%"
           output: "yes"
    left_click_commands:
    - '[message] Success %player_name%'
    - '[close]'```

Any idea why is not working? 
If i have 10 end crystal will work, but if i have a netherite sword on my inventory wont work.
odd schooner
#

help me

tender vaporBOT
odd schooner
#
  'chaikinhnghiem':
    material: EXPERIENCE_BOTTLE
    hide_attributes: true
    display_name: '&f>>> &6&lChai kinh nghiệm &f<<<'
    slot: 31
    lore:
    - '&eMất 5000&a$'
    - '&7[Chuột trái] &eĐể mua một chai!'
    - '&7[Chuột phải] &eMua nhiều chai'
    left_click_commands:
      - '[takemoney] 5000'
      - '[console] vouchers give %player_name% 1 random money'
azure inlet
#

There is an error in %player_has_potioneffect_freeze%. Is there a way to check if it's frozen other than the effect?

tender vaporBOT
mint fable
#

what do you mean frozen?

azure inlet
#

Are there any frozen papi?

mint fable
#

you need to answer me first

azure inlet
#

yes

mint fable
#

it's not an effect

#

I notice

#

You could check if the player is standing in powdered snow instead I think

mint fable
azure inlet
#

Then, is there any other way other than effects?

mint fable
#

Hmm, I only see %player_block_underneath%

#

not the block the are standing in

#

you can test it

#

Stand in powdered snow and type /papi parse me %player_block_underneath%

azure inlet
#

okay

#

Blocks under powdered snow blocks are recognized.

mint fable
#

then I don't think the placeholder exists

azure inlet
#

How do I request an additional placeholder?

mint fable
#

Complicated

#
  1. I don't know what expansion this would be in.
  2. There doesn't seem to be a method to see if the player is freezing or not in the spigot code.
  3. You could use #1236274252399775744 or #1236274253595414598 to get somebody to make it custom for you.
azure inlet
#

gooddddddddddddddd

vivid sparrow
azure inlet
sacred light
#

how can i use placeholders in decent holograms?

austere hawk
#

Hey whats the placeholder for the players world (in which world the player is , world name) and the date like 23.05.2024

junior musk
#

/papi ecloud download Player
/papi ecloud download Server
/papi reload
%player_world%
%server_time_dd.MM.yyyy%

austere hawk
#

which addons do i need like /papi ecloud download

#

ok ty

timid pasture
#

How do I get essentials to read PAPI placeholders? I've already installed the floodgate and essentials extensions, and I'm trying to do something like this: ">> {PLAYER} logged on using %floodgate_device%."

junior musk
#

Essentials doesn't support PlaceholderAPI

timid pasture
#

ooooh

#

well damn

#

ok

#

So I'd need to include it in the name then, possibly.

junior musk
#

uh

timid pasture
#

I mean

junior musk
#

not sure about that

#

I'd just use another plugin if you want to use PAPI placeholders

timid pasture
#

What I mean is I've already got TAB working, and chat working

#

What'd you recommend?

junior musk
#

another plugin for join/leave messages that supports PlaceholderAPI

mystic goblet
#

Hello! I'm trying to use PlaceholderAPI in the plugin I work on currently. Basically I have every messages in a config.yml and I made a function that gets the desired message, but I want to use placeholderAPI.

I'm on the wiki, at this page: https://wiki.placeholderapi.com/developers/using-placeholderapi/#setting-placeholders-in-your-plugin

In the example, you have to pass the player as a parameter of the function PlaceholderAPI.setPlaceholders(). Is it mandatory to pass the player as a parameter?

vivid sparrow
#

some placeholders require a player, some don't and therefor you can pass a null value

junior musk
#

if you use %player_name% which gets the player's name, then yeah, you'll need to pass a player, though if you want to use a placeholder like %server_uptime% which returns the time since the server started, then you can pass null and it should work fine since it isn't linked to any player

#

though do keep in mind that some placeholders, even though they don't seem to need to be linked to a player, may not always work because the expansion's dev may have added a null player check to prevent other placeholders from breaking, but forgot to put it after checking for their placeholders that aren't linked to players

#

but it should be fine in most cases

mystic goblet
#

Is it a problem if I pass a player in parameter even though it's not needed ?

vivid sparrow
#

no

mystic goblet
#

But it would make make performance bad?

vivid sparrow
#

no

junior musk
#

if placeholders don't use it, then it won't change anything

mystic goblet
#

oh, nice! Thank you 🙂

mystic goblet
mint fable
#

it does not parse color anymore, no. I can see where the confusion came from

mystic goblet
#

Okay, I understand it's fine... Do you know if there are ways to handles this?

mint fable
#

to parse colors? @mystic goblet

mystic goblet
#

Yup

mint fable
#

ChatColor.translateAlternateColorCodes( '&', "&amessage");

mystic goblet
#

omg it works

#

ty! I didn't know that 🙂

mint fable
mint fable
#

updated the wiki fingerguns

azure inlet
mint fable
whole burrow
indigo lagoon
#

Please tell me how to use %player_item_in_hand_level_<enchantment>%.

I tried %player_item_in_hand_level_silk_touch% and %player_item_in_hand_level_mending% but they don't work.

iron quest
#

so i run a velocity proxy

#

and i have a lobby and another server

#

i want to get online count from the other server

#

and put it in lobby

#

how do i do it?

errant shard
#

Hi, is it possible to retrieve the number of players on another server with placeholders?

vale cradle
#

Any idea why papi is only calculating the total of hub instead of all of the servers I listed?
%math_0_{bungee_hub}+{bungee_sunrealm}+{bungee_moonrealm}+{bungee_starrealm}+{bungee_end}+{bungee_<nether>}+{bungee_eventrealm}%

tame willow
#

Can there be whitspaces in a placeholder something like %blabla_some text with space%

broken wedge
#

Hi, how can you disable for players to use placeholders in chat?

junior musk
#

unless you're using some weird chat plugin, they already can't

nimble wadi
#

It just wont work idk where to put it]

tender vaporBOT
jaunty barn
#

which one should be more accurate: %server_unique_joins% or %essentials_unique%?

#

somehow essentials_unique is way higher than server_unique_joins

bronze shell
#

hey @junior musk what does utils_trycatch exactly do? i'm trying to debug an issue i have and i'm not sure whats the purpose of it

junior musk
#

returns a default value when a placeholder throws an error for some reason

bronze shell
#

oohh okay

#

welp i'm even more confused then

#

i have this utils shortcut :
"%changeoutput_equals_input:{mmocore_id_bound_{0}}_matcher:_ifmatch:0_else:{utils_trycatch:0_mmocore_skill_parameter_cooldown:{mmocore_id_bound_{0}}}%"
the changeoutput works as expected (the placeholder can sometimes result in an empty output and it will be translated to a 0)

#

but the second part somehow parse me something wrong

junior musk
#

you're using too many placeholders within the changeoutput placeholders so it doesn't work

#

you'd need to put utils first

bronze shell
#

oh fr? but i think i used it that way before, i just changed it a bit

junior musk
#

you have mmocore within utils within changeoutput

#

that's 2 level of nested placeholders

bronze shell
#

%utils_uncolor:each_changeoutput_equals_input:{mmocore_bound_{0}}_matcher:noskill_ifmatch:0_else:{utils_trycatch:0_mmocore_skill_parameter_cooldown:{string_replaceCharacters_skill_{utils_uncolor:each_mmocore_bound_{0}}}}%"

it used to look like this and works correctly

junior musk
#

placeholders without Utils only support 1 level of {placeholders} (some don't even do that)

bronze shell
#

lol

bronze shell
#

Ohhhhhhhhhhhhhhhhhhhhhhh

#

i thought the first utils was just for the uncolor part

#

alright thanks

junior musk
#

yeah but it still does the Utils parsing thing

bronze shell
#

yeye i see

#

✌️

#

so i just add utils_ in front of the whole thing?

junior musk
#

utils_parse_

#

yeha

bronze shell
#

nvm i just moved the trycatch to the beginning

junior musk
#

that would work as well 😅

bronze shell
#

ty ty

vale cradle
#

Any idea why papi is only calculating the total of hub instead of all of the servers I listed?
%math_0_{bungee_hub}+{bungee_sunrealm}+{bungee_moonrealm}+{bungee_starrealm}+{bungee_end}+{bungee_<nether>}+{bungee_eventrealm}%

junior musk
#

I have no idea, though {bungee_<nether>} should probably be {bungee_nether}

#

make sure the names you're using are the exact same as the ones in your BungeeCord's config.yml

#

if it still doesn't work, then it could very well just be the Bungee expansion not working, as always =/

cunning bough
#

I'm getting this warning in the console whenever anyone sends a message in chat (https://pastebin.com/YqZ0BkHJ)

The InteractiveChat dev said this was a PAPI issue. Is that so? And if so, how can I fix it? It keeps spamming the console
(Ik I'm using not the most recent version of PAPI, but the most recent one had the same issue so I tried downgrading to see if that might help)

junior musk
#

/papi ecloud download Player
/papi reload

cunning bough
#

Tysm

fair lance
#

How can I change the time placeholder so it shows ONLY 24h time and NOT 12h AND 24h time?

light rampart
#

Hey does someone know how to use javascript expansion?

#

is there placeholder to check ingame time?

#

not real life time

#

i want to make somehow if time is morning to display on placeholder sun emoji and if its night to display moon

#

but i cant figure it out how

junior musk
#

%player_world_time_24%

light rampart
#

im not good in javascript

var time = "%player_world_time_24%"


function time() {

  if (time < 6) {
    return "☀️"; // Sun emoji
} else {
    return "🌙"; // Moon emoji
} 
}

time()
#

smth like this

#

?

junior musk
#
var time = "%player_world_time_24%".replace(":","");


function time() {

  if (time >= 600 || time < 13000) {
    return "☀️"; // Sun emoji
  } else {
    return "🌙"; // Moon emoji
  } 
}

time()
#

was searching for the times

light rampart
#

Thanksss so if its greater than 6am it will show sun and if not will be moon?

junior musk
#

and I added replace(":","") because the placeholder returns a : between the time, so it's like 06:00 instead of 0600

light rampart
#

oh cool

#

if i save as time.js

#

i use %javascript_time%?

#

sorry first time using javascript placeholder and generaly Javascript

junior musk
#

you have to specify the file name in javascript_placeholders.yml

#

and give the placeholder a name there

light rampart
#

time:
file: time.js

#

line 1 and 2 only lines?

junior musk
#

yeah that works

light rampart
#

okay let me test

junior musk
#

and then you can use %javascript_time% as you said

light rampart
#

can i test with console

#

or i need bcs of player

#

to be in world

junior musk
#

it requires a player

light rampart
#

yea okay

junior musk
#

since it takes the player's world

light rampart
#

im joining rn gimme a sec

#
[23:44:02 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'time
javax.script.ScriptException: TypeError: time is not a function in <eval> at line number 13
        at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463) ~[PlaceholderAPI.jar:?]
#
var time = "%player_world_time_24%".replace(":","");


function time() {

  if (time >= 600 || time < 13000) {
    return "☀️"; // Sun emoji
  } else {
    return "🌙"; // Moon emoji
  } 
}

time()

Line 13 is time()

junior musk
light rampart
#

gif dont work

#

rip

junior musk
#

try renaming the function to getTime or smth

#

maybe it's a function that already exist in js and conflicts

light rampart
#

now it works but i get sun and some weird emoji

#

box with 4 letters next to sun

#

wtf haha

junior musk
#

copy paste the emoji in your chat

light rampart
junior musk
#

and then copy it back from MC

light rampart
#

can i add color code to this output?

junior musk
#

yeah

light rampart
#

like &7🌙

junior musk
#

&e

light rampart
#

cool

junior musk
#

yeah

light rampart
#

i get output &e&l🌙

#

XD

#

in chat

junior musk
#

ah right, PAPI doesn't parse colors anymore

#

use § instead of &

light rampart
#

🫡

#

can i use somehow hex?

junior musk
#

that depends on where you're using the placeholder

light rampart
#

scoreboard

junior musk
#

and if that plugin supports RGB colors

light rampart
#

from TAB plugin

junior musk
#

then you can

#

#RRGGBB

#

or any of those formats

light rampart
#

§#RRGGBB?

#

bcs of placeholder

junior musk
#

idk why you'd use another format but the &#RRGGBB works yeah

light rampart
#

with & didnt worked before 1 min

#

thats why i asked

#

or that is bcs of chat

junior musk
#

I just stick with #RRGGBB usually

light rampart
#

okay

junior musk
#

it's the simplest 🤷

#

but yeah, most plugins adopted &#RRGGBB

#

TAB supports multiple though

light rampart
#

hmm in parse in chat i get this output #C18D00☀ should that be normal or?

#

i have Luckpermschat

junior musk
#

yeah that's normal

light rampart
#

but idc about chat i would use it in scoreboard

light rampart
junior musk
#

ah if you're using the placeholder in other plugins then you'll probably want the &#RRGGBB format after all

#

that's the main reason why TAB supports this many formats, so you can use placeholders within other plugins that may have different RGB format than TAB's 😅

light rampart
#

haha let me test it on scoreboard now

#

works!

#

nice

#

i cant remember if &l goes before color or after for 4 years currently 😭

#

every time i fuc up haha

junior musk
#

after

#

😅

light rampart
#

I see it now 🤣

#

hmm i did time set night but its still sun?

junior musk
#

maybe the times I set weren't accurate

light rampart
#

yeaa

#

i see it now

junior musk
#

/time set night
and /papi parse me %player_world_time_24%

light rampart
#

if (time < 13000) {

#

can i just make it like that?

#

so sun is after 13k and moon before

#

or i am wrong

light rampart
junior musk
#

ah

#

then use (time < 2000)

light rampart
#

before

  if (time >= 600 || time < 13000) {

after

  if (time < 2000) {
#

?

junior musk
#

yeah

#

you may want to keep the >= 600

light rampart
#

what does that do i cant understand

#

i know second part but what that do

junior musk
#

checks if the world time is higher than or equal to 06:00

#

or if the world time is lower than 20:00

light rampart
#

weird

junior musk
#

let me try

light rampart
#

sure

light rampart
#

im asking idk haha

#

thats how i think it is but my dev skills is 0

junior musk
light rampart
#

maybe output 2000 is not right bcs placeholder world time make output 20:00 instead of some number example 2000?

junior musk
#

it said 19:00 for me

#

not 20:00

#

try time < 1900 then

light rampart
#

at night it set tick to 14000

#

essentials

light rampart
#

same shi

#

t

#

hmm

#
var time = "%player_world_time_24%".replace(":","");


function getTime() {

  if (time >= 600 || time < 1900) {
    return "&#DAA001☀"; // Sun emoji
  } else {
    return "§8§l🌙"; // Moon emoji
  } 
}

getTime()

junior musk
#

mb

#

it's &&

#

not ||

#

I'm dumb

light rampart
#

Workss

#

so time < what to put?

#

14k?

junior musk
#

1900

light rampart
#

okay

junior musk
#

600 and 1900 are good

light rampart
#

yeah cool thanks!

#
function getTime() {

  if (time >= 600 && time < 1900) {
    return "&#DAA001☀"; // Sun emoji
  } else if (time >= 600 && time < 1700) {
    return "&#DAA001🌅"; // Moon emoji
    else 
    return "&7🌙"; // Moon emoji
  } 
}

this wont work?

#

i want to make if time is 12000-13000 to be another

#

then after 13k moon

junior musk
#

make it the other way around and it'll work

#

since 1700 < 1900, the first condition will always be true

#

so switch the two if

#

or maybe you want time >= 600 && time < 1700 and time >= 1700 && time < 1900 ?

light rampart
#

i want to be sun until 1700 then until 1800 sunset then moon

junior musk
light rampart
#
var time = "%player_world_time_24%".replace(":","");


function getTime() {

  if (time >= 600 && time < 1700) {
    return "&#DAA001☀"; // Sun emoji
  } else if (time >= 1700 && time < 1900) {
    return "&#DAA001:sunrise:"; // Moon emoji
    else 
    return "&7:crescent_moon:"; // Moon emoji
  } 
}

getTime()

i have red line on last else

junior musk
#

you forgot a {

#

after the else

light rampart
#

now last two }
}
are red

#

should i delete them?

junior musk
#
var time = "%player_world_time_24%".replace(":","");


function getTime() {

  if (time >= 600 && time < 1700) {
    return "&#DAA001☀"; // Sun emoji
  }
  if (time >= 1700 && time < 1900) {
    return "&#DAA001:sunrise:"; // Sunset emoji
  }
  return "&7:crescent_moon:"; // Moon emoji 
}

getTime()
light rampart
#

thanks

#

im dumb

#

script error

junior musk
#

send the error

light rampart
#
function getTime() {

  if (time >= 600 && time < 1700) {
    return "&#DAA001☀"; // Sun emoji
  }
  if (time >= 1700 && time < 1900) {
    return "&#DAA001🌅"; // Sunset emoji
  }
  return "&7🌙"; // Moon emoji 
}

getTime()
#

[00:14:56 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'time
javax.script.ScriptException: ReferenceError: "time" is not defined in <eval> at line number 3

junior musk
#

you removed the first line of the script

#

with the time var

light rampart
#

🤦‍♂️

#

Thanks!!

#

Works fine

#

just to setup colors now

vast crystal
#

can smone help me out-I can't download any expansion, whenever I do /papi ecloud download (something) it doesn't show up. I tried doing it manually still ain't working. I can't do anything without this plugin ;-;

#

it says "failed to find an expansion" everytime

sleek nacelle
earnest topaz
#

any idea why bungee place holder is not working? sometimes it says players number rn it doesnt say

#

im trying /papi bcparse me %bungee_total% and it says 0 while im on the server

#

it does not count ppl on 1.17.x

vast crystal
#

and killstats

sleek nacelle
# vast crystal player

was expansion did the error show up like /papi ecloud download <Expansion> is it killstats or player

vast crystal
#

Failed to find an expansion name: Player

manic badge
velvet hull
#

i did

manic badge
#

did what

velvet hull
#

download it manually

manic badge
#

download what>?

velvet hull
#

placeholders

manic badge
#

that reply wasnt for you 🤦

#

do you have protocol lib installed

velvet hull
#

yes

manic badge
#

oh nvm

#

.

#

.

#

i

#

im sorry

#

protocol lib isnt a dependancy

#

consider sharing the errors you're getting in console

velvet hull
#

it letting me do commands but it red

manic badge
#

red what

velvet hull
#

when it do /pl it comes red saying not working but it allowing me do commands

manic badge
#

it should show something in the console when you enter the command

#

what version of placeholderapi you're using

velvet hull
#

lastest

velvet hull
#

26.05 18:39:25 [Server] INFO Disabling PlaceholderAPI v2.11.6

#

26.05 18:14:54 [Server] INFO WARNING You are getting this message because PlaceholderAPI is enabled

#

26.05 18:14:56 [Server] INFO Successfully loaded PlaceHolderAPI support!

#

26.05 18:39:22 [Server] INFO Unregistering PlaceHolderAPI hooks...

#

26.05 18:39:22 [Server] INFO Unload PlaceHolderAPI module successfully!

#

26.05 18:40:03 [Server] INFO Loading server plugin PlaceholderAPI v2.11.6

#

26.05 18:40:19 [Server] INFO Enabling PlaceholderAPI v2.11.6

#

26.05 18:40:25 [Server] INFO | checking for PlaceholderAPI hook

#

26.05 18:40:28 [Server] INFO PlaceholderAPI has been found!

#

26.05 18:40:31 [Server] INFO PlaceholderAPI was found! Registering Placeholders.

#

that it

vast crystal
#

downloaded the expansions, loaded placholderapi loaded expansions dragged the files into the expansion folder, went in game, did /papi ecloud reload, still doesn't show up...

vivid sparrow
#

do /papi dump and send the link @vast crystal

jaunty barn
#

Is there a placeholder for latest player/newest player on the server?

I can't find it on the github list.

tender vaporBOT
vast crystal
tender vaporBOT
manic badge
#

what i find from the dump is you have Player installed already

#

but no idea why its not working

vast crystal
#

is this normal lmao

#

is the killstats one there as well?

manic badge
river elbow
#

%player_name% works with everyone fine besides a player who has -- in his name so instead of actually saying Chicken--Nuggets it just says Chicken Nuggets which prevents him from using anything with %player_name%

light rampart
#

%changeoutput_equals_input:replace_matcher:replace_ifmatch:with this_else:instead of this%
Returns with this because replace matches replace

#

hell what

#

im dumb

#

Does someone understand how this works?

#

i have placeholder that doesent work in one world but works in another for biome so instead of {iris_biome_name} i want to show No Biome if output is placeholder name but i dont understand how

junior musk
#

%changeoutput_equals_input:{iris_biome_name}_matcher:_ifmatch:No Biome_else:{iris_biome_name}%

#

check /papi parse me %iris_biome_name% whenever you want it to show No Biome and use that output in the matcher

light rampart
#

hmm let me try

#

/papi parse me %changeoutput_equals_input:{iris_biome_name}_matcher:_ifmatch:No Biome_else:{iris_biome_name}%

#

this?

light rampart
#

so i want to make in world spawn to atleast show No biome instead of whole placeholder

junior musk
#

no, just /papi parse me %iris_biome_name%

junior musk
light rampart
#

oh okay but where to add that changeoutput thing then?

#

sry im stupid

junior musk
#

what does it show exactly when you're in the world world?

light rampart
#

Some biome name lets say Haunted Village

#

just normal output

#

but in world spawn %iris_biome_name%

junior musk
#

ah

#

alright

#

give me a minute

#

%changeoutput_equals_input:{iris_biome_name}_matcher:{ascii_37}iris_biome_name{ascii_37}_ifmatch:No Biome_else:{iris_biome_name}%

#

let me double check it's the right number

#

yeah it should be

#

and /papi ecloud download Ascii
/papi reload

light rampart
#

where i want placeholder normal or?

junior musk
#

wherever you want to display the biome

light rampart
#

can i try Parse thing?

#

papi parse me

#

?

junior musk
#

yeah of course

light rampart
#

i got output {iris_biome_name}

#

in world spawn

#

still

junior musk
#

/papi parse me %ascii_37%iris_biome_name%ascii_37%

light rampart
#

same

junior musk
#

it shows %iris_biome_name% in chat right?

light rampart
#

yes

junior musk
#

oh wait

#

did you get an error in console?

light rampart
light rampart
junior musk
#

idk then

light rampart
#

weird lol

#

idk rly same

#

i tried everything