#placeholder-api
150650 messages · Page 134 of 151
@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}%
but its not updating its stuck
If you parse it again after a few seconds you have the same value?
Try 1:00:00 instead of using the time placeholder
okay ty
??????
placeholderApi suport version 1.20.6?
why are the expansions compiled with java 17 when i'm using java 8 ? :
https://paste.helpch.at/wakeveyama.rb
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
Thank you so much, it's working now!
What version of the expansion is that?
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
u can check the slot too
not sure what name am I suppose to use, tried head/helmet etc and didn't work
and the slot number is only from 0 to 35, and offhand/hand, what should I use for the 4 armor slots?
_inslot:39
39 helmet, 38 chestp, 37 leggings, 36 boots
thanks! let me try it out

they're on latest
🗿
what version its for 1.16.5 at nightcore plugin its says the latest version is for 1.18
Can you help me please?
Could not find menu: rtp?
why is this happening
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?
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%}))
material: PLAYER_HEAD
How to make the player's head appear?
executor command skin
@idle coral @warm topaz
?dm-heads
thanks!
trzeba pookowac cweli
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
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
@warm topaz
Is there a placeholder I can use to check if the player is moving or not?
for some reason my redisbungee_<server> placeholders are returning 0 but redisbungee_total returns the correct amount
any idea why?
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?
~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.
How do I make sure the expansion has been verified or not?
https://ibb.co/W64NT67 Can you tell me which of them are verified and which are not?
delete all those and download from ecloud @patent adder
Look 11 posts above you my friend.... 😉 or here... #placeholder-api message
Hello, for some reason match does not work for me, it gives me errors -> https://mclo.gs/DSDgtNe
Math expansion requires java 11 @austere hawk
Can I find a version for java 8 somewhere?
try older versions @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
lobby-01 should be {bungee_lobby-01}
Yes, but I need two servers
ik but im saying that it needs to be a placeholder, the math expansion doesn't know what lobby-01 means
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
Good, but then how will the second lobby be there?
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 ...."
people with op dont go on leaderboard for some reason
i know its a permission i just forgot what it was
You have to download it manually https://api.extendedclip.com/expansions/skippi/
I tried that
But it didn't work either
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
i'll send you a pic in pm
/papi list
it should be there
either way the dump said it was loaded
so you're good
A server restart might help about this?
But the /papi ecloud list installed doesn't write that
it's normal
oh
/papi ecloud list shows the expansions downloaded with the command
but you downloaded it manually
and it does show in /papi list & /papi dump
ohhh, thanks
so it's fine
Ohh i see that now, if a use /papi reload its says 7 placeholder hook registered
why u ignore my message? im waiting for help 5 days
whats going on then
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
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
i will try, thanks
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
I don't think so
Well may 6th build
oh
Not new but I didn't know about it 😂
didn't check tbf
You do the same thing, {bungee_lobby-02}
Deluxemenus?
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
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
I'm not 100% sure but I don't even think %player_online% works when offline
also try with parseplaceholder instead of parseother
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
then the {player} argument is probably not parsed correctly
rip 😭
Is there another way I could accomplish this?
It worked at some point but now doesn't
I need to do it as it says here on the type https://www.spigotmc.org/threads/plaholderapi-multiple-bungeecord-server-count.361719/
@lean idol
[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
[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
doesn't seem like the latest dev build works on versions below 1.20
try the dev build right before
build 178
please 
What?
Can you open an issue?
too lazy atm xD
Ok I did it
Read it all though
No, you are the one that needs help 🙂
So I need help and you will write this...
You should explain your problem in order for me to assist.
The javascript expansion is not needed if thats your question.
Open the link and read what the guy wrote, I have the same problem
I’m guessing you mean decimals, just do %math_1:_(placeholder)%
But it’s easier for you to explain your exact problem then link other problems
I have bungeecord and I have minigames on every single server and I need all servers to give npc players: %servers%
Do you understand?
%math_1:_{bungee_server1}+{bungee_server2}%
Requires math and bungee expansion
It doesn't work
/npc hologram set 1 &7Players: &f%math_1:_skywars-01+skywars-02%
/npc hologram set 1 &7Players: &f%math_1:_{bungee_skywars-01}+{bungee_skywars-02}%
yes?
yep
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
Is anyone using PAPI String expansion?
Does it support string check with underscore?
Can you elaborate? What do you mean by string check?
Hello i cant get placeholderapi to work on 1.20.6 Is this a known issue or i am doingsomething wrong
Share the errors or server logs
[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
I'm trying to return %player_has_permission_<permission>% yes/no as a binary integer, is this possible?
I suppose you can pair it with changeoutput expansion
use the dev builds of placeholderapi
what?
incompletenessings
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?
i need the 1.20.6 placeholder-api plugin
thx
Does this work for papermc? I can't test it rn cause I ain't in my house
How can I edit like player's ping forward refresh for placeholderapi like %ping%?
%ping% isn't placeholderapi, %player_ping% would be
and the option to change refresh speed is in the papi config.yml
oh shoot, that's wrong
I think it updates every time it's called actually @tranquil lantern
wdym
every time the placeholder is called, the ping is updated
so there is no need to update a refresh value
there isn't one
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
there r probably 2 shortcut expansions installed
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
bungee or?
velocity
pretty sure the bungee expansion works for both
idk whats the placeholder ill test
ive alreasy did that
wlike the placeholder of players online in my survival server
The servername should be the same name as the name in your velocity config
you didnt need <> but mk
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:?]
thanks
will there be support for 1.20.6?
I feel like the work is in progress
Alright, thanks
np :d
Hello, there's a command to check every placeholder from a plugin?
I don't think so, however they're available on the GitHub & wiki pages
For a plugin no for expansions yes
/papi ecloud placeholders <expansion>
Oh no... i need for a plugin... :<
what plugin
MMOCore
@sharp jay Unknown expansion.
I thought they're asking about a mc cmd lol
I know that this page exist, but i was trying to do this placeholder on to a person %mmocore_level%
Like %mmocore_.level_{name}%
Ya not sure maybe ask in their discord?
I'm creating a command for checking another player mmocore level
@neat nova

yup
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
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!
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)]
[13:52:53 INFO]: [TAB] Expansion server is used but not installed. Installing!
[13:52:54 INFO]: Successfully downloaded expansion Server [2.7.2] to file: Expansion-server.jar
Make sure to type /papi reload to enable your new expansion!
[13:52:54 INFO]: [PlaceholderAPI] Fetching available expansi
Hi, it's not working for me anymore since I updated to version 1.20.6. Can someone help me?
Thx working you know developer of powerboard plugin?
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
Why is using a dev version not an option? @autumn sparrow
its not available on the server hosting site that im using
Rip, wait until we post the release that works on 1.20.5+
sadd kk
The placeholder 'statisctic_player_kills' does not give a numerical value. Make sure that the placeholder returns a number that is not formatted.
statistic (not statisctic)
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
%utils_uncolor_<placeholder>%
which placeholder shows the status of Keepinventory in the world in which player sees it
Perfect thank you!
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
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
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"
Yes, it was updated, I will test it out and see what's wrong
Thanks Gaby
Please update to 1.20.6 😦 ❤️ Thanks you!
[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?
I encountered this issue earlier as well, I think it's because of the experimental build of Paper. I switched to Spigot temporarily and it worked.
Hello , where can I find help because of my discord account or where is the right channel ?
?not-discord
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?
The tap takes up a lot of server RAM, and is not optimal
Oh I see. That's why basically half of my plugins weren't working
is there any Plugin like placeholder?
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
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
„Cannot load expansion itemmultiply due to a missing plugin: ItemMultiplyPlus“
youre missing ItemMultiplyPlus
[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```
is the error not clear enough? You need those two plugins for the expansions to work
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: 'd54ffServer 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
it doesn't do it automatically, you have to use PlaceholderAPI.setPlaceholders(OfflinePlayer, String) to parse it
So I'd do that on the right click event I guess
and if you want to refresh it, you have to make a repeating task
uh, I'd rather say when opening the menu
Yes
when the item is made
With right click
ah alright
It is created there 👍
But how do other plugins do it?
Like you can use every placeholder in other plugins
same thing
setPlaceHolder() only does it for one placeholder, no?
PlaceholderAPI.setPlaceholders()
no it's for all placeholders currently loaded in PlaceholderAPI
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
its in the folder tho
i both have them installed
thats the thing
So they iterate through every possible placeholder?
no
no
setPlaceholders takes in a string, which can be a single placeholder, yes, or a line with multiple
or even none at all
setPlaceHolders(OfflinePlayer, String)
So the String is a String array with all placeholders?
it's just text
could be "hello"
could be "hello %player_name%
could be "hello %player_name%, it's %server_time_HH:mm:ss%"
- '&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
@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
where's the menu item created?
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]
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"));
in the lore stream(), map the strings with the PlaceholderAPI.setPlaceholders() method
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).
So I'd have to read the string from the config, check if there is a %% and then PAPI replaces the %% with the returned value?
Because I want my menus to work with configs
So I don't have to hardcode the lore
is that what my example shows?
it doesn't matter where the string comes from
How do I get the player tho?
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?
yeah
List<String> lore = itemSection.getStringList("ItemLore").stream()
.map(MessageUtil::format)
.collect(Collectors.toList());
you'd parse the placeholders in the lore strings before setting them in the meta
PlaceholderAPI.setPlaceholders(player,"bungee");
meta.setLore(lore);
Like that?
Or in the stream
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
And that actually converts the placeholder I am using to a PAPI return value?
it checks for your entire lore, finds placeholders if there's any, and parses them, yes
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!
Hello,
can you update the PlaceholderAPI to the Minecraft Version 1.20.6 please?
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
download the latest version of the expansion @silk fjord
thanks it worked
hi, when I deleting something from my PC, the storage space is decreasing
place holders api dont work in 1.20.6?
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?
I need a dev build for Placeholder API
Me too
https://ci.extendedclip.com/job/PlaceholderAPI/ Dev builds are here, report back any issues
Yeah, but some of us can't use dev builds
We aren't ready for a release yet as we're waiting on a library we use to be updated
Ok, thank you
I made a post on their server to see if they will add dev builds https://discord.com/channels/107936397578489856/1241583821061623818 (click if it says #unknown)
How long is that gonna take?
How long does that usually take with updating the library?
It will be ready when it's ready, we don't usually give an eta
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.
I will look into it
Just to add, servertime expansion has it working fine.
how do i make a placeholder return the number without the ".00" at the end?
Which one?
just a third-party plugin
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.
no ive seen a papi extension before able to do what im sayiung but i cant remember its namer so i hoped somone would
math
https://github.com/BlitzOffline/StringExpansion
/papi ecloud download String
/papi reload
/papi parse me %string_substring_-3_Hello out there%
What is the correct api for essentials and vault? I have papi installed and did papi ecloud download vault, essentials etc
@thorn pier make sure you've installed the expansion
loaded
check in the expansions folder if you have it
where?
[18:32:40 INFO]: A total of 5 placeholder hook(s) are active:
ajlb, skinsrestorer, statistic, tab, vault
trying to redirect to an html page
there is nothing on the html page he is trying to show, it is an erroneous page
PlaceholderAPI version 2.11.5
execute /papi parse me %statistic_player_kills% and send ss
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
ı don't
[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?
Caused by: java.lang.IllegalArgumentException: Directory 'plugins/.paper-remapped/PlaceholderAPI-2.11.6-DEV-193-javadoc.jar' does not contain a paper-plugin.yml or plugin.yml! Could not determine plugin type, cannot load a plugin from it!
oh that was just a javadoc
- '%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
has anybody tried the checkitem expansion in 1.20.5 - 1.20.6?
placeholder api does not support 1.20.6 yet #placeholder-api message
they are waiting for the libary they use to update
definitely need to use the utils expansion for all those internal placeholders
also, not really sure where this is being used, but I've never seen the == true before
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
%utils_parseother:[{arg}]_javascript_rgbtohex_servervariables_value_profile_background_color%
Would anyone know how I could make something like this work?
https://paste.helpch.at/galasudebu.vbnet
Right now I get this error, I'm not totally sure why
??
?dm-cooldown please make sure you're in the correct channel. This question is deluxemenu related
Uh.
There you go.
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
Idk but it’s been working for me lol
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
did you mean the time elapsed since the server turned on? or the time elapsed since the server was made (first start)?
Where does this placeholder get the values of
do you mean the timezone?
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
What error are you getting
Also I think this would be for #general-plugins
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}%
is anyone on now i need help
hey im trying to get %bungee_total% to work but it keeps showing 0
ping me if u can help 🙂
Anyone know?
can someone help me? I'm running a 1.20.4 Minecraft Server and my PAPI Plugin keeps telling me this when I start it https://pastebin.com/g7hyqwT7
You are running 1.20.6, not .4
To use placeholderapi with 1.20.6 you need to use the latest dev build of placeholderapi
Should be linked on the spigot page
where i can get link download
Spigot page
but i cant get dev build
We just pushed a spigot update that contains all the updates for 1.20.6
(Also released on GitHub/BuiltByBit/Hanger)
buildbybit? ;-; bruh
test
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?
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% ?
Yes it does, /papi info core shows the values I set for it
No
what does it return? the raw placeholder or an empty string?
and did this show up in console?
The raw placeholder %core_nation_name%
and no it didnt show up in console
Also no error in the console
Yes its "core", I previously called the Placeholders class using new Placeholders(this).register but It resulted in PAPI registering "Core" and "Nations"
send the link you get from /papi dump
This is with both
why is it Nations in the placeholder class then?
or was that the old version of the class?
https://paste.helpch.at/uzekewosih ( I also registered the Placeholders file in my main now)
I think it didnt even register, I removed that part from my main because it registered the plugin name and the one set in my Placeholders file
I now tried parsing %Nations_nation_name% and it works
yeah, because your getIdentifier returns Nations
I still however have 2 registered internal expansions
All of it?
well idk about logs but at least the plugin jar
because I don't really understand everything
yeah I don't really know
I only see that one Placeholders class with the Nations identifier
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
could it be from the SimplePlugin class?
No, there's nothing about PAPI in its superclass
idk then
thanks
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
an anyone tell me which placeholder displays the number of items a player has in his inventory?
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.
or should i just use JS
ive just decided to do one player per line, so using \n
but \n inside %utils_parse_xxxxxx% just removes the backslash, must be an escape or something
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.
help me
'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'
There is an error in %player_has_potioneffect_freeze%. Is there a way to check if it's frozen other than the effect?
freeze isn't a potion effect
what do you mean frozen?
Are there any frozen papi?
you need to answer me first
https://i.imgur.com/80P8WuO.jpeg
https://minecraft.fandom.com/wiki/Powder_Snow#Freezing
Are you referring to this?
yes
it's not an effect
I notice
You could check if the player is standing in powdered snow instead I think
This is currently not a separate effect when used with commands such as /effect give freezing, and does not have its own unique art, particles, or potion.
Then, is there any other way other than effects?
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%
then I don't think the placeholder exists
How do I request an additional placeholder?
Complicated
- I don't know what expansion this would be in.
- There doesn't seem to be a method to see if the player is freezing or not in the spigot code.
- You could use #1236274252399775744 or #1236274253595414598 to get somebody to make it custom for you.
gooddddddddddddddd
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Entity.html#getFreezeTicks() there is this method, maybe we can use it
Is there anything I should do?
how can i use placeholders in decent holograms?
Hey whats the placeholder for the players world (in which world the player is , world name) and the date like 23.05.2024
/papi ecloud download Player
/papi ecloud download Server
/papi reload
%player_world%
%server_time_dd.MM.yyyy%
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%."
Essentials doesn't support PlaceholderAPI
uh
I mean
not sure about that
I'd just use another plugin if you want to use PAPI placeholders
What I mean is I've already got TAB working, and chat working
What'd you recommend?
another plugin for join/leave messages that supports PlaceholderAPI
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?
some placeholders require a player, some don't and therefor you can pass a null value
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
Is it a problem if I pass a player in parameter even though it's not needed ?
no
But it would make make performance bad?
no
if placeholders don't use it, then it won't change anything
oh, nice! Thank you 🙂
Does the PlaceholderAPI.setPlaceholders() function parse color format too? The example (here : https://wiki.placeholderapi.com/developers/using-placeholderapi/#setting-placeholders-in-your-plugin) made me think it was the case...
it does not parse color anymore, no. I can see where the confusion came from
Okay, I understand it's fine... Do you know if there are ways to handles this?
to parse colors? @mystic goblet
Yup
yep, that's the best way to turn &7 into color
updated the wiki 
Do I have to wait until it's updated?
I would recommend adding a suggestion here https://github.com/PlaceholderAPI/Player-Expansion/issues @azure inlet
why %bungee_total% shows 0 when there asre 2 players? (without vanish, with vanish placeholder same situation) https://i.imgur.com/xmNVjhZ.png
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.
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?
Hi, is it possible to retrieve the number of players on another server with placeholders?
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}%
Can there be whitspaces in a placeholder something like %blabla_some text with space%
yes
Hi, how can you disable for players to use placeholders in chat?
unless you're using some weird chat plugin, they already can't
It just wont work idk where to put it]
.
which one should be more accurate: %server_unique_joins% or %essentials_unique%?
somehow essentials_unique is way higher than server_unique_joins
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
returns a default value when a placeholder throws an error for some reason
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
you're using too many placeholders within the changeoutput placeholders so it doesn't work
you'd need to put utils first
oh fr? but i think i used it that way before, i just changed it a bit
you have mmocore within utils within changeoutput
that's 2 level of nested placeholders
%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
placeholders without Utils only support 1 level of {placeholders} (some don't even do that)
lol
yeah
because it's in Utils
XD
Ohhhhhhhhhhhhhhhhhhhhhhh
i thought the first utils was just for the uncolor part
alright thanks
yeah but it still does the Utils parsing thing
nvm i just moved the trycatch to the beginning
that would work as well 😅
ty ty
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}%
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 =/
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)
/papi ecloud download Player
/papi reload
Tysm
How can I change the time placeholder so it shows ONLY 24h time and NOT 12h AND 24h time?
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
%player_world_time_24%
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
?
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
Thanksss so if its greater than 6am it will show sun and if not will be moon?
and I added replace(":","") because the placeholder returns a : between the time, so it's like 06:00 instead of 0600
yeah
oh cool
if i save as time.js
i use %javascript_time%?
sorry first time using javascript placeholder and generaly Javascript
you have to specify the file name in javascript_placeholders.yml
and give the placeholder a name there
yeah that works
okay let me test
and then you can use %javascript_time% as you said
it requires a player
yea okay
since it takes the player's world
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()
try renaming the function to getTime or smth
maybe it's a function that already exist in js and conflicts
now it works but i get sun and some weird emoji
box with 4 letters next to sun
wtf haha
copy paste the emoji in your chat
and then copy it back from MC
oh okay
can i add color code to this output?
yeah
like &7🌙
&e
cool
yeah
that depends on where you're using the placeholder
scoreboard
and if that plugin supports RGB colors
from TAB plugin
idk why you'd use another format but the &#RRGGBB works yeah
oh okay if it works
with & didnt worked before 1 min
thats why i asked
or that is bcs of chat
I just stick with #RRGGBB usually
okay
it's the simplest 🤷
but yeah, most plugins adopted &#RRGGBB
TAB supports multiple though
hmm in parse in chat i get this output #C18D00☀ should that be normal or?
i have Luckpermschat
yeah that's normal
but idc about chat i would use it in scoreboard
okay cool
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 😅
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
/time set night
and /papi parse me %player_world_time_24%
if (time < 13000) {
can i just make it like that?
so sun is after 13k and moon before
or i am wrong
1 sec
output is 20:00
checks if the world time is higher than or equal to 06:00
or if the world time is lower than 20:00
let me try
sure
isnt it easier to just check if Higher than 06:00 then sun else moon?
im asking idk haha
thats how i think it is but my dev skills is 0
that's what we're doing already
oh okay
maybe output 2000 is not right bcs placeholder world time make output 20:00 instead of some number example 2000?
1 sec
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()
1900
okay
600 and 1900 are good
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
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 ?
i want to be sun until 1700 then until 1800 sunset then moon
yeah then use what I sent here
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
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()
send the error
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
copy it from here
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
what expansion are you trying to download
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
was expansion did the error show up like /papi ecloud download <Expansion> is it killstats or player
Failed to find an expansion name: Player
try to download it manually
i did
did what
download it manually
download what>?
placeholders
yes
oh nvm
.
.
i
im sorry
protocol lib isnt a dependancy
consider sharing the errors you're getting in console
it letting me do commands but it red
red what
when it do /pl it comes red saying not working but it allowing me do commands
it should show something in the console when you enter the command
what version of placeholderapi you're using
lastest
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
already did that, doesn't work
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...
do /papi dump and send the link @vast crystal
Is there a placeholder for latest player/newest player on the server?
I can't find it on the github list.
so uh what;s the issue?
what i find from the dump is you have Player installed already
but no idea why its not working
i could be wrong. probably expansions directory and expansions registered are different things
%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%
%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
%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
hmm let me try
/papi parse me %changeoutput_equals_input:{iris_biome_name}_matcher:_ifmatch:No Biome_else:{iris_biome_name}%
this?
Its weird thing at world Spawn i gout output for this "%iris_biome_name%" like placeholder doesent exist but at world "world" i got Biome name
so i want to make in world spawn to atleast show No biome instead of whole placeholder
no, just /papi parse me %iris_biome_name%
otherwise I would have used this placeholder in the command
what does it show exactly when you're in the world world?
Some biome name lets say Haunted Village
just normal output
but in world spawn %iris_biome_name%
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
okay but where to put this?
where i want placeholder normal or?
wherever you want to display the biome
yeah of course
/papi parse me %ascii_37%iris_biome_name%ascii_37%
same
it shows %iris_biome_name% in chat right?
yes
then this should be fine 
oh wait
did you get an error in console?
output is {iris_biome_name}
no
idk then