#placeholder-api
150650 messages · Page 81 of 151
I'm trying to create a Discord bridge plugin, and I want the configuration to use PAPI.
I can't find a way to pass a custom variable. Is this possible? There is an expansion API, but I want to add a %message% expansion, which requires additional context other than the player. There's no way to pass custom parameters to setPlaceholders, neither are there any arguments for custom parameters in the onPlaceholderRequest method. I already tried asking on the Spigot forums, but I feel on this server you'll be more knowledgable about this API specifically.
Here is an example of what I'm trying to do:
channels:
minecraft-chat:
player-chat:
embeds:
-
author:
name: '%player_displayname%'
icon: crafatar-url-cant-post/avatars/%player_uuid%?overlay=true
title: '%message_content%'
can someone help me?
Replace the internal placeholders first using String#replace or something @potent spear
Like, .replace("%message_content%", event.getMessage())?
'[player] papi parse me %javascript_cooldown_2_start%<delay=20>'this is the command i put in config
That doesn't feel right. Trying to escape using % will probably not work correctly.
but when the player uses it, it doesn't have a placeholderapi
Use a different format then, papi is not meant for internal placeholders
This may sound silly, but, why not?
Because is not
Are they any alternatives designed for that? I just wanted to use placeholder API so it can hook into loads of other plugins such as a rank plugin.
All you have to do is to use something else for internal placeholders
That will create a bit of a mess, though.
I assume in the changelog it meant something else (https://www.spigotmc.org/resources/placeholderapi.6245/update?update=71761). Right?
[player] papi parse me %javascript_cooldown_2_start%<delay=20>
I put this command in the config, but when the player uses it, there is no javascript.
log: MeoRung issued server command: /papi parse me
no %javascript_cooldown_2_start%
i'm using DeluxeMenus and PAPI latest version
2016 though
Why?
I'll either have to copy a large amount of the code and tweak it, or write another parser. Just doesn't feel right.
can someone help me?
I feel your pain, but I'm a placeholder n00b so I can't help.
I think I've found a solution! I can still use the CharsReplacer class! Time to close my Spigot thread (if it works).
hey placeholder api nothing works when i type stuff download and type /papi reload nothing shows up in the scoreboard (it doesn't work for everything) how do i fix this?
Or just use String#replace, what papi uses is made for bigger things
download expansions on internet and manually put them in the placeholderapi folder
ok
Does anyone know about the BungeeOnlineTime plugin, it is not displayed in my scoreboard either
can someone help me
what
.
Hey folks, got a bit of an issue here I'm trying to troubleshoot.
If you're comparing a placeholder value to a boolean, is there a specific syntax for that? Because I'm not sure which plugin is at fault here.
can you give us a bit more context?
Yeah, It's either PAPI, JobsReborn or Interactions.
When I do papi parse I get the expected result, but when using the jobs reborn placeholder in the interactions plugin. it doesn't work as expected.
options:
option1:
text: "I'd like to work as a farmer."
requires:
- "%jobsr_user_isin_farmer% == False"
Doing parse comes back with the correct result though: False == False
I've downloaded the extension and reloaded PAPI but it's still giving me grief.
comparing like that is not up to papi
thatll be the plugin that you're configuring
Hmm. Not sure then, lemme try another plugin
or go and speak to their support
Yeah I don't think it's interactions that's the problem. Essentials workls fine. Off to JobsReborn I go again. Thanks anyway. ^_^
One more question. How do I parse a placeholder on the server console? (If possible)
you can't with papi parse. at least not yet. I believe next update will contain this. Well technically you can't at all. You can give it a Player, an OfflinePlayer and null.
Damn. Still trying to figure out what's causing this issue. I'm actually wondering if there's some hidden color codes or something in this placeholder.
Because any time I do a parse normally, the placeholder is white. This one comes out green.
/papi parse me %jobsr_user_isin_farmer% and send a screenshot of the output.
also go to plugins/PlaceholderAPI/config.yml and tell me what the boolean: options are set to
Ah...
Basically when I run the command. I just get True in green, gimme 2 secs on those options
boolean:
'true': 'yes'
'false': 'no'
You're about to tell me to use yes and no instead of true or false aren't you? lol
That hasn't worked.
can you show your config?
The PAPI one?
Lemme try that first, then i'll drop the config
That's done it.
Why in gods name they have to include section symbols in the placeholder I do not know. That's just stupid.
well that's what & is translated to
But yeah, everything's working as intended now, appreciate it.
that's how legacy colors actually work
they're not using & plugins are just translating those to the section symbol
but I still agree that it shouldn't return colored input at all
Yeah I knew something was off when it parsed essentials and such with no issue.
So yeah, JobsReborn needs a bit of a kick.
Thanks y'all 🙂
@turbid tide can you help me?
hmm?
Did this man just get away with @ ing a staff member without having a one to one conversation
that's a federal crime
What can I get the players online in a server?
I need to install PAPI on my bungee cord server?
no. PAPI won't work on bungee
Ok
How can I get the players online in the survival, I put the holo in the server of lobby
I use HolographicDysplais
Displays
First use DecentHolograms, much better. HolographicDisplays lags out
you can't with the available expansions.
unless you want the amount of players
you can get that
just not the list
I have +1500 holograms with HolographicDisplays
they do have a converter if you do want to switch. but I do recommend a backup before
this the placeholder idk %server_online_<world>%
nope.
figured
bcz that's not cross server
oh he using bungee
%bungee_<server-name>%
Yes in the hub
use what Blitz said
And it say the count of online players no?
did u parse it?
Example 500 players online
What?
/papi ecloud download Bungee then /papi reload
then use this placeholder 
so %bungee_<server-name>% should display the amount of players as a number so for me it's %bungee_kitpvp and it will output 0 because 0 players are online, if you want it to look like # players write %bungee_<server-name>% Players
oh okay nice
placeholder?
Yes
I believe they do have PAPI support yes.
I think
Mmmm
let me double check
why u using ChestCommands tho?
there are more updated GUI plugins out there
DeluxeMenus promo incoming
anyways. they do say it should be supported https://i.imgur.com/EWhiQwJ.png
But the extension %player_name% do not work
you have to download
Yes I put /papi eclogue download player
find if you have to parse below the title of the plugin here https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#bungeecord
u spelled ecloud right?
Yes
But in animated scoreboard works correctly
What's ur concern?
On Chest comanda not work
what does /papi parse me %player_name% return?
Yes i put %player_name%
Yes
As I've said, the plugin hasn't been updated in 2 years. use some other menu plugin. DeluxeMenus is an option but pretty sure there's others out there if you want to give them a try
is ur version supported by ChestCommands?
My server is on 1.8.8
https://www.spigotmc.org/resources/deluxemenus.11734/
Download version 1.10.5
I download it
Ok
Thanks
please help me :((
if u need help use the wiki, and i reccomend watching a youtube tutorial before starting
helped me a lot
idk why @p wont work
i need to se a tutorial
@hybrid socket @p is not a PAPI placeholder.
Basics: https://www.youtube.com/watch?v=AgcHsqT9Yyw&t=142s
Advanced: https://www.youtube.com/watch?v=AgcHsqT9Yyw&t=142s
@narrow hamlet rewind the videos to the start
do you have placeholderapi plugin, and did u do /papi ecloud download player and /papi reload ?
whats that
bruv
that's a minecraft thing. it only works in minecraft commands. or I guess plugins can add support for it but most don't
Download placeholder api plugin, then do /papi ecloud download player and /papi reload then when u a target uses a command executed by a console like [console] tp %player_name% 1 1 1 the player who clicked it will be teleported to 1 1 1
ok
Their placeholders https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders
im installing it rn
fingers crossd this works
I don't believe in luck
why my deluxemenus can't use Javascript?
^^
...
what plugin?
Not enough info what isnt working exactly because for everyone else it works
essentialsx
whats the exact cmd?
/lp user @p set group marley
and it says Error:Player not found
basically @p only works with commands using minecraft:tp or stuff like that
but i want to use /lp with @p
but essentialsx
isnt letting me
is that a plugin
ill install more plugins
i just want to be able to give ppl luckyperms commands via command blocks
and pressure plates
without me being online
this is wrong btw
I think its lp user @p parent set marley
yah they both have the same outcome
it said Error:Player not found
so your having this inside a commandblock ?
and i just want it to be the player who hits the command block
yes
ive tried running it thru console
myself and custom npcs too
nothing works
try putting a direct username?
i tried using some psudo plugin
direct usernames work
but i want it to be players
who step on the playe
plate*
so if new ppl join they can choose their side
without me having to ask them and go thru the whole process
so you try Psudo ...cmd...
how would i write it out with psudo
what psudo plugin you using?
How to show whole Velocity proxy player count in TAB plugin? Is the placeholder for that?
/papi ecloud download Bungee
%bungee_total%
Does it work for Velocity?
idk , i think it will work
Okay. I'll give it a try.
Worked thank you!
😄
try downloading the expansions from the website rather than the cloud
looks like your connection was interrupted
ok
Do these two types of placeholders exist?
-
Placeholder that would display the level of set potion type that player has applied? For example if I have strength potion of level 3 the placeholder would be smth like: %player_potionlevel_strength% and it would display a number 3 (for as long as the player has the effect)
-
Placeholder that would display the amount of set attribute on the item that's player currently holding? Example: Player holds a sword with attribute attack_damage in it, its amount is 10. So the placeholder would be smth like %player_attributelevel_attack% and it would display number 10 (as long as the player holds the item)
i don't think so but they sound reasonably straightforward to implement
Can I make a request for it? If yes, where?
https://github.com/PlaceholderAPI/Player-Expansion/issues seems like a reasonable place
there's no guarantee but i might pr them in if i have time
The links gives me error
Is there a way to grab mobs' max health?
not that i can see placeholder wise
is there an expansion that can grab mob's meta max health and current health?
.
Is there expansion of plotsquared?
Seems the %world_nearbyEntities_<radius>% doesn't work. No console spam and running latest dev build, also tested with the last stable release 2.11.1 and same thing. Other World expansion placeholders seem to work
Which expansion? And did u parse it?
does it display anything at all? looking at the code here i see no reason why it wouldnt work
Hello
@carmine veldt
Is Placeholder API available for bungeecord proxy connected server ?
no
Okay
bro pls
no
omg
do you really expect people to be cool and help you with all your problems in life when all you do is just shout at them? A better way to ask for help is to write your problem and wait. Not to ping asking for help and then not even saying what you need help with.
Or just read wiki lmao
Just displays a single blank line in-game. No numbers/text or console logs or anything
how can I reset the "Statistic" extension?
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect0(Native Method) ~[?:?]
at sun.nio.ch.Net.connect(Net.java:579) ~[?:?]
at sun.nio.ch.Net.connect(Net.java:568) ~[?:?]
at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) ~[?:?]
at java.net.Socket.connect(Socket.java:633) ~[?:?]
at java.net.Socket.connect(Socket.java:583) ~[?:?]
at sun.net.NetworkClient.doConnect(NetworkClient.java:183) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:498) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:603) ~[?:?]
at sun.net.www.http.HttpClient.<init>(HttpClient.java:246) ~[?:?]
at sun.net.www.http.HttpClient.New(HttpClient.java:351) ~[?:?]
at sun.net.www.http.HttpClient.New(HttpClient.java:373) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1309) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1057) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?]
at java.net.URL.openStream(URL.java:1161) ~[?:?]
at com.google.common.io.Resources$UrlByteSource.openStream(Resources.java:72) ~[guava-31.0.1-jre.jar:?]
at com.google.common.io.ByteSource.read(ByteSource.java:296) ~[guava-31.0.1-jre.jar:?]
at com.google.common.io.ByteSource$AsCharSource.read(ByteSource.java:486) ~[guava-31.0.1-jre.jar:?]```
?ecloudblock
how can I reset the "Statistic" extension?
thats stores in your minecraft world forgot the exact folder
but there is a cmd aswell
which one
but I want to reset all players
delete all of them...
You just said reset statistic and never specified ... dont expect me to read your mind
sorry
use the cmd
which one
https://paste.helpch.at/aceqapozuf.bash
I'm having a problem with this not working properly.
What i've done:
/papi parse InsideIntel %excellentcrates_keys_hydro_dungeon%
it outputs 0
I've also tried this:
https://paste.helpch.at/mitolowece.bash
i've also given myself a key and it outputs 1 on the command /papi parse InsideIntel %excellentcrates_keys_hydro_dungeon%
hello?
i put left_click_requirements instead of left_click_requirement agh lmao
is there an RGB Placeholders extension with bold font support?
Hello, i've a issue with the brackets inside a placeholder, how can i put a placeholder inside a placeholder which is also in another placeholder ?
Like that : %math_{parseother_{placeholder1}_{placeholder2}}-{placeholder3}%
The {} inside another {} prevent the placeholder from working 😟
can anyone help me pls?
probably gonna have to use javascript to do the math instead of the math expansion
i need help
There is no time to wait! Ask your question @cunning bloom!
i need to send ss
?imgur
try manual download
huh?
kk
just the one channel is enough
run those commands
the javascript expansion ?
yes
how i can show the rank of the player in the tablist?
can anyone help?
of luckprems
pls help
is PlaceholerAPI Bungee suport?
no
ok thanks
dudes
my vault placeholders not working
why
pls help me
%vault_eco_balance_formatted%
/papi parse me --
might mean you don't have either the Vault plugin installed or the Vault expansion installed.
hello, I'm getting the error above, I reported it to the author of the plugin and he told me to ask for help here.
Seems to be a problem with the Javascript expansion. If your server runs on java 11 or newer, update the expansion
Make sure you installed vault expansion
You need a economy plugin
You need to contact vault support for this
what expansion
Vault,player,statistic
@sharp jay i cant send image here
Private message
?imgur
Check console for errors and send them
That say 'Oops! We couldn't find that page' wheen i click at link
? works for me
._.
Send latest logs https://paste.helpch.at/
That put nothing at console that just put in chat 'failed to find an expantion named : vault '
Update papi
And strictly follow name conventions
How i can get the v2.10.10 cuz at spigot website i find just the 2.11.1
oh that cmd isnt updated nvm
So thats the 2.11.1 ?
yes
Hi, I cant' download the Parkour's statistics who can help me ?
Yes, when I write the command it say: /papi reload and after: 0 placeholder hook registered!
in the console ?
in logs file
logs > latest.logs
then save that and send the link here
if this is the case you can ask your service provider to update ur java runtime
I have my own vps
Ok is this ur own own or like ovh type?
So I updated in Java 16
alrighty so its the latest java yeha?
I'm partnered with ouiheberg
It's a french hosting company
ahh okay
I can update to java 17, it's better ?
For a 1.8.8 spigot*
Hold on which plugin are you having issues with ive kind of joined mid convo
the issue regarding java versions is worth fixing but is unrelated
Rahh when I update to java 16 and + I can't join the server it crash it
yeah thats because youre using 1.8
don't do that
use a reasonably modern version
Like 1.16.5 ? Or the latest
Ok I'm updating all of the server and I come back when I'm done
👍
oops
probably need to update it
I have all the plugins in the latests version
Like Placeholders can't download the extensions for any plugins
"[09:56:54] [Server thread/WARN]: [HolographicDisplays] The plugin HolographicExtension registered the placeholder {fast} with the old v2 API, but it doesn't comply with the new format. In order to display it, you must use {{fast}} instead.
[09:56:54] [Server thread/WARN]: [HolographicDisplays] The plugin HolographicExtension registered the placeholder {medium} with the old v2 API, but it doesn't comply with the new format. In order to display it, you must use {{medium}} instead.
[09:56:54] [Server thread/WARN]: [HolographicDisplays] The plugin HolographicExtension registered the placeholder {slowest} with the old v2 API, but it doesn't comply with the new format. In order to display it, you must use {{slowest}} instead.
[09:56:54] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[09:56:54] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[09:56:54] [Server thread/INFO]: Done (88.439s)! For help, type "help"
container@pterodactyl~ Server marked as running...
[09:56:54] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions
[09:56:54] [Craft Scheduler Thread - 3/INFO]: [SUCCESS] CustomJoinAndQuitMessages is up to date!
"
Oh I fianlly fixed my problem ty everyone !
I have a strange issue. I want to use placeholderapi scoreboard objectives in holographicdisplay plugin. The placeholders from papi looks like this: %objective_score_{<obj-name>}%
but in HolographicDisplays looks like this: {papi: name_of_placeholder}
so assuming it will be sth like this: {papi: objective_score_{ts_Deaths}}
I mean two }} near to each other. It does not work.
Ask them to change the format back https://github.com/filoghost/HolographicDisplays/issues/591
No idea why they strayed away from the normal %placeholder% format
other than that you can try using javascript as a workaround
making a js placeholder that just returns the value of the other placeholder you want
me too (mven)
have you added the papi repository
Anyone know the placeholder for battlepass_available_quests__%week%?
some one help me
this error
[19:51:29 WARN]: [PlaceholderAPI] Task #141 for PlaceholderAPI v2.11.1 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel BungeeCord'. at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[patched_1.17.1.jar:git-Paper-409] at org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1722) ~[patched_1.17.1.jar:git-Paper-409] at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108) ~[?:?] at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45) ~[?:?] at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201) ~[?:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Paper-409] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[patched_1.17.1.jar:git-Paper-409] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1567) ~[patched_1.17.1.jar:git-Paper-409] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:490) ~[patched_1.17.1.jar:git-Paper-409] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1483) ~[patched_1.17.1.jar:git-Paper-409] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1282) ~[patched_1.17.1.jar:git-Paper-409] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-409] at java.lang.Thread.run(Thread.java:833) ~[?:?] [19:51:43 INFO]: 1B_nxy issued server command: /hd delete testing
[19:51:59 WARN]: [PlaceholderAPI] Task #141 for PlaceholderAPI v2.11.1 generated an exception org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel BungeeCord'.
at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[patched_1.17.1.jar:git-Paper-409]
at org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1722) ~[patched_1.17.1.jar:git-Paper-409]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Paper-409]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1567) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:490) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1483) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1282) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-409]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[19:52:29 WARN]: [PlaceholderAPI] Task #141 for PlaceholderAPI v2.11.1 generated an exception
oops
@high hemlock follow this
Hey!
I am trying to get a placeholder for amount of sugar cane the player as break, anyone know how to do this?
/papi ecloud download Statistic
/papi reload
%statistic_break_item:<material>%
Doesnt work for me. Could not get the statistic 'BREAK_ITEM' for 'SUGAR_CANE'
Thank you, I will give that a try now.
[14:07:20 ERROR]: [PlaceholderAPI] [Statistic Expansion] Could not get the statistic 'MINE_BLOCK' for 'SUGAR_CANE'
java.lang.IllegalArgumentException: The supplied Material does not have a corresponding statistic
at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[server.jar:git-TacoSpigot-bf023c7d]
at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.getStatistic(CraftPlayer.java:701) ~[server.jar:git-TacoSpigot-bf023c7d]
at com.extendedclip.papi.expansion.mcstatistics.StatisticsExpansion.onRequest(StatisticsExpansion.java:195) [Expansion-Statistic.jar:2.0.1]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:237) [PlaceholderAPI.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:377) [PlaceholderAPI.jar:?]
at me.clip.deluxemenus.menu.MenuItem.getItemStack(MenuItem.java:320) [DeluxeMenus.jar:?]
at me.clip.deluxemenus.menu.Menu$2.run(Menu.java:246) [DeluxeMenus.jar:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) [server.jar:git-TacoSpigot-bf023c7d]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) [server.jar:git-TacoSpigot-bf023c7d]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_312]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_312]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]
Yeah, thanks anyway 😄
do you have vault installed
i cant use bungee placeholders
helpppp
[19:52:59 WARN]: [PlaceholderAPI] Task #141 for PlaceholderAPI v2.11.1 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[patched_1.17.1.jar:git-Paper-409]
at org.bukkit.craftbukkit.v1_17_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1722) ~[patched_1.17.1.jar:git-Paper-409]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Paper-409]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1567) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:490) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1483) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1282) ~[patched_1.17.1.jar:git-Paper-409]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-409]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[19:53:29 WARN]: [PlaceholderAPI] Task #141 for PlaceholderAPI v2.11.1 generated an exception
does not WORK
yes
help
%player_has_permission_mysqleconomybank.use%
this is always returning yes even the permission is removed froma player
any possible fix?
lp user narayanadi2017 permission set mysqleconomybank.use slimefun false
[17:50:51 INFO]: [LP] narayanadi2017 already has mysqleconomybank.use set in context server=slimefun, world=false.
papi parse narayanadi2017 %player_has_permission_mysqleconomybank.use%
[17:50:54 INFO]: yes
console output to show that i set perms to false
i need help for this error 🤔
Your command syntax is wronf
as you can see, the permission is set on server=slimefun and world=false
put false after the node
ok thx
yes i figured out and fixed 🙂
thanks
Np
Anyone help with this? ^^
reporting this on github
Thanks
%statistic_mine_block:SUGAR_CANE_BLOCK%
@steady field try this once
Will try that when I get back on my pc 🙂
okay
Could you help me, I have this error but if I have the vault installed https://imgur.com/KTuIAiF
gaby
?
?
?
?
How can i do edit expansion or create?
to add an expansion do /papi ecloud download <expansion> then /papi reload to remove one go to plugins > placeholderapi > expansions > then remove the expansion
https://gyazo.com/06b25ceb0e3bf9f62f2440cbce9dfc07.png
https://gyazo.com/e4598fb42a74c4baf109c539ddc2ffd3.png
material: head-%essentials_baltop_player_0%
slot: 12
update: true
display_name: '&b&l[!] &f&n%essentials_baltop_player_0%&7 (#1)'
lore:
- ''
- '&f&l* &b&lBalance &7$%vault_eco_top_balance_commas_1%'
left_click_commands:
- '[close]'
right_click_commands:
- '[close]'```
I have the PAPI extension from [#placeholder-api message](/guild/164280494874165248/channel/573429521554866178/p/921189021395341373/#msg-6a015bc16fbd49fd17b4e9ba) installed for the Baltop placeholders. When I run the /baltop command, it shows this; https://gyazo.com/decfaa316dab021b3a6d5c87d374e4eb.png, Although both me and another user have more than $0.
When I open up my DeluxeMenu, This is what shows up.
https://gyazo.com/03badc9ffe2f348ab423adf14796975a.png
https://paste.helpch.at/ofukehiner.md anybody know what that means? it happens on startup, i just recently got back into minecraft servers and the old papi plugin was outdated and i didnt want to start over with /papi ecloud download every plugin i have. so i just left the folder in and tried to start it up but not sure what to do now.
Update the server expansion @compact wharf
how do i do that?
/papi ecloud download server
ah lol thanks
No i want to write a new expansion
If you're wanting to create a PlaceholderAPI Expansion follow this: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion
??
It didn’t work
Same error?
Yeah same error. It’s weird.
sry abt the caps
Is there any point using Placeholder API asynchronously for PlayerQuitEvent? It means I can't use the display name, and I think there's a reason why the event itself isn't async. I just don't want to lag the server.
hey im getting this error
[11:30:25 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_{player_health}/2%
[11:30:25 WARN]: [PlaceholderAPI] [math] '{player_health}/2' is not a valid Math Expression.
can someone guide me
%math_{player_health}/2%
Yeah
still does not work
Do you have player expansion installed?
no
/papi ecloud download Player
it worked thanks!
👍
btw is there any placeholder that shows the number of hearts a player has(in number) instead of the health
eg - ❤️10
like that
%player_health_rounded% %player_health_scale%
Try both , idk which one is that
alr
i tried the %player_health_scale% and it shows 20hearts when i only have 10
🤦♂️
ik im dumb '-'
How much it shows when you have full hearts
Bruh, that's not what i mean
20.0
ow
Smh
ima wait ig
are there dev builds of this plugin?
Probably from https://ci.extendedclip.com/job/PlaceholderAPI/
Can anyone answer? Just because my question has been hidden by other messages and I feel that it's probably a fairly simple question.
It should be a pretty light event so I don't see why you'd need to run it async
Unless you're doing something dumb in it
I was more worried about the placeholder processing taking time.
when I type /papi ecloud download Player or any other expansions it says there is no expansion named Player. can someone help?
It's almost instant so you shouldn't need to worry too much.
Of course not as quick as getting the actual data from somewhere though instead of passing it through a placeholder
If there are thousands of players joining and quitting it will probably be an issue. And I can't guarantee that won't be the case.
I plan to make it public. That's why.
You can probably make a pretty simple performance test if it worries you that much
Even if it's 1ms, that a thousand times a second isn't good. Although that hypothetical server should probably get a queue plugin.
Yeah I don't really think any server has a thousand players joining every second :P
iirc if the chat event is not async, it listens on the main thread and it delays chat a bit so
async, not delayed. I really need to get some sleep lmao
Okay. Don't want to keep you awake!
I'm pretty sure there's a sync chat event too that works perfectly fine.
Oh yeah there is
Hold on.
But you really shouldn't have to worry too much about doing your join/leave events on a different thread.
I'm just a bit worried because the event sometimes takes 19ms.
What placeholder are you parsing?
And the chat events are on another thread.
Just a simple %player_displayname%. It's probably because it needs to initialise its cache the first time thinking about it.
Right, why do you need to use a placeholder for that though?
So it can be configured to display other info.
It's also calling the placeholder function quite a lot of times.
Oh are you adding like a configurable message when a player leaves?
I'm creating a Discord bridge. I just want it to be more object-based, extendable and customisable than alternatives.
The config will probably help you understand more: https://paste.helpch.at/eponunotip.yaml.
No pressure to help me if you don't want to and need some sleep.
Very interesting. But yeah I think you're good to use any placeholders there. If performance ever becomes a problem you can probably look into making it async, but I doubt that'd really happen
I just wanted consistency because I don't want chat to be async and other events to be sync
I'm probably just obsessed with making things work in every possible situation.
I guess 0.5-2 ms isn't bad, then?
It most definitely is not haha
Did you do any performance tests to get that?
Just a subtraction xD
long start = System.nanoTime();
plugin.sendEventToDiscord("quit",
new MinecraftToDiscordEvent(event.getPlayer()));
System.out.println(((System.nanoTime() - start) / 1000000F) + "ms");
Very advanced performance tests
beautiful
It seems like you're putting in the whole event to the test too, not just the placeholders. Would be even quicker if I had to guess
Unless that's the async one you talked about
It sometimes even takes 6ms, but I guess servers don't usually have a web browser and IDE in the background, and a better CPU would probably not even care.
Yeah, and also in the extreme case that like, a hundred players join at the same time or whatever, I'm pretty certain there'd be some other things bogging down the server WAY more than your placeholders haha
It would matter more if the competition was better.
The competition being the Minecraft server.
Is it possible to have in my scoreboard:
Players alive: 77
Death players: 23
(And the players who have died are in spectator)
Maybe run /papi ecloud refresh and try again?
Most likely will have to download the expansions from the website
can you send website link to download them?
see ^^
thanks
how to install papi of bedwars 1058 ?
/papi ecloud download BW1058Plus
ty
uh thank u im very stupid
Use these on latest plugin version
I'm on spigot 1.8.8
Follow these 😉
having an annoying issue
papi world name doesn't wanna work with my scoreboard(s)
I've tried a couple
none wanna work
it just shows nothing
@placid thorn Have you downloaded the expansion?
do other papi placeholders work?
yup-
perfectly fine
as one of the alternate scoreboards had placeholders by default
And which one are you trying atm?
couple expansions have a way to do that
nah, I thought you meant a couple placeholders
%player_world% is one way
ohh
try that
ok
k that worked
thx]
k @mint fable is there a world to make it use the world alias instead (I use multiverse)
@mint fable Unknown expansion.
ah well, it's on the link I sent

ayo
👍
Hey maybe I misunderstand how the placeholder api works. But how often does placeholder api refresh? Especially if you make custom player data?
It doesn't refresh
It is just an API. You have to update your parsing of the placeholder however often you want it to refresh
Thanks
opes
Hey, it's possible to create a javascript to show average blocks mined per day of one player having %ezblocks_blocks% for example?
I could pay for it, thanks!
help
i have installed the plugin and started my server
but when i do /papi ecloud download [what i need] it says unknown command
and if i do /pl it says there is no PAPI
check for errors in console
the plugin is enabled or not
yea there is a very long error
send
maximum characters
use /paste
thats the one
can you send the rest of the error below it
yeah
probably a load of lines starting with 'at'
@empty wyvern are you using bukkit 1.7?!
yup sad
lol
hi guys i really need a support to help me
7 years?
almost 8
with what mate? I can't guess what your problem is
what does "is not working nice" mean? what's not working exactly?
when i enter the command /papi ecloud download ... it say the command is not reconise
Mimmoll btw PAPI doesn't support 1.7.# anymore. so that's probably what's going on there.
yes
What hosting do you use?
I mean PAPI was never meant to work on modded servers so maybe. can you restart your server and send a startup log?
nope. my dms are closed. you should put it in a paste bin and send it here.
ok
how can i send u a picture i can't get the logs
i will send u the error message on minecraft
why can't you get the logs?
because there is command blocks how is spamming on the cmd
when i enter the command /papi ecloud download MVdW it saying "inpout command ecloud was not a valid subcommand" usage: /papi reload:enable:disable:parse:list:info
can i download manually the MVdW ?
plugins/PlaceholderAPI/expansions
thx
Hi, is this where I can ask for questions/concerns for Javascript?
Hey guys, wanted to ask if Papi is also available for version 1.18.2?
yeah
Do you know why he doesn't show me the money I have? https://prnt.sc/gZo-lcjYN_Mi
Do you have vault expansion installed
I have it installed even tried manually but it doesn't work either
Which economy plugin u using?
GemsEconomy
Use it's placeholder
or any other that you recommend me to use?
I am using CMI
There are several plugins on spigot, search some
Yes, but I don't understand why vault doesn't work for me a few days ago it worked fine for me Thanks
Is it up to date
If it is your latest version
I have this crazy idea to give players a command like /nft that adds a unique code to the lore of the item they are holding.
Only issue is im not too sure how to go about making said code. I was thinking some placeholder in the command. like I could use their UUID but i feel eeeh about having that viewable by other players. is there some kind of way i could add SALT to the UUID so it cant be reversed back but still be unique?
Use random number placeholder
Im not sure that's quite what i'm after. Would be nice if they could make more than 1 stack the same and couldnt someone else get the same random number?
the idea was to be unique to a player. I guess to that extent just their name would work..
I think you can do brainstorming with this expansion to achieve desired result @clear dust
Hmm yes indeed.
I may be able to let the players type in their own code. and auto gen the permission node part for them. IE check if they have XX.Name if not add it. then rest of command to add lore.
nvm wont work as the placeholder would be in the lore of the item it would not update depending on who is looking at it.
still a really cool placeholder tho ty
uuid is visible to everybody via a google search
hi i want to use this %server_time_MMM dd, yyyy% but coz im greek it shows the Mar (MMM) with greek letters. How can i change that to english?
try using LocaleTime expansion
How can I get a placeholder of a other player? e.g. %luckperms_prefix%
wdym?
I want in a msg-system to get the prefix of a other player
Not of the player that sees the message
/papi ecloud download ParseOther
the parseother expansion allows you to parse placeholders for other players
quite confusing
%parseother_{OTHER-PLAYER-NAME}_{PLACEHOLDER-WITHOUT-%}%
Thank you! :D
How can I write a space in a placeholder argument?
You have an expansion for MineReset and you don't have the plugin for it. Remove the expansion.
in expansions folder
?
I want to use the ChangeOutput expansion to display a text if a placeholder is not null
yo... what expansion
hello every1 is there a way to display with placeholders multiples luckperms suffix? something like the same person have the group 1, 2 and 3, and i want to display in the chat the suffix of rank 1, 2 and 3 at the same time
Hello all!
I come with my beginner question.
Currently i am trying to configure server running tab/holographic display with papi and i am not able to insert anything vault related.
I wanted to make scoreboard with some statistics and put there players balance as well, but this happens (Image)
I tried use it in holographoc display but neither is it working there.
Is vault / papi not working properly or i am just ret*rded and made some mistake along the way?
@winter kindledo you have installed the ecloud expansion for vault?
THE___BULDI___ — today at 21:58
yo... what expansion
run in this order:
/papi ecloud download vault
/papi reload
bro... ❤️
ⁿᵒ ʰᵒᵐᵒ
but... hd i still refusing to cooperate
what was that neat thingy to tell it that i want papi placeholders, not it's own?
i dont use hd btw but check out the config or try making a reload
do you have HolographicDisplayExtension?
as well as enabled the vault eco top in the placeholderapi config
it doesnt show up un ecloud download
❤️
ⁿᵒ ʰᵒᵐᵒ ᵃˢ ʷᵉˡˡ
let me know how it goes
how do I make it so when I put the vault economy placeholder, instead of $0.0 it should be $0
%vault_eco_balance_commas%
or use the math expansion to get rid of decimals if u have a preferred placeholder but it keeps the .0
I'm trying to make a leaderboard scoreboard for breaking the most diamond ore, however I can't seem to find a way to tie the player's name to the amount of blocks broken. I'm using the Scoreboard Objective expansion, but not sure how to tie a playername to the ranking on the objective.
Tysm been looking for that for ages
https://gyazo.com/06b25ceb0e3bf9f62f2440cbce9dfc07.png
https://gyazo.com/e4598fb42a74c4baf109c539ddc2ffd3.png
material: head-%essentials_baltop_player_0%
slot: 12
update: true
display_name: '&b&l[!] &f&n%essentials_baltop_player_0%&7 (#1)'
lore:
- ''
- '&f&l* &b&lBalance &7$%vault_eco_top_balance_commas_1%'
left_click_commands:
- '[close]'
right_click_commands:
- '[close]'```
I have the PAPI extension from [#placeholder-api message](/guild/164280494874165248/channel/573429521554866178/p/921189021395341373/#msg-6a015bc16fbd49fd17b4e9ba) installed for the Baltop placeholders. When I run the /baltop command, it shows this; https://gyazo.com/decfaa316dab021b3a6d5c87d374e4eb.png, Although both me and another user have more than $0.
When I open up my DeluxeMenu, This is what shows up.
https://gyazo.com/03badc9ffe2f348ab423adf14796975a.png
If you remove the extension does /baltop function normally again?
Also looks like you should update deluxemenus and maybe essentials
Statistics expansion
no didn't work
same thing
can anyone else help me? i want to show the date like Apr 1 2022 but the Apr is shown with greek letters coz im greek and i wanna change that to english
Hello, could I somehow prevent that from spamming my console when new player joins? It happens only because he has 0 from both of the placeholders, for other players it works fine without spamming
12:57:27[WARN] [PlaceholderAPI] [math] Placeholder: %math_{statistic_player_kills}/{statistic_deaths}%
12:57:27[WARN] [PlaceholderAPI] [math] '0/0' is not a valid Math Expression.```
server expansion have no support of locale
I created a request on github
Thank you.
Try running the server with -Duser.language=en -Duser.country=US before the -jar option.
In start.bat?
in startup flags
yes that
Ok i'll try
So there is not other way to do it with papi expansion
Only with that way or if it don't work then i must find a plugin for that thing
yeah
Meanie, He asked me a question
in you run /baltop twice does it load or nah?
has deluxetags been removed from papi?
tried /papi ecloud download DeluxeTags and it said couldnt find expansion
hmm mr barry i shall see if that works
jesus im talking to a bot i need some sleep lol
he’s a good bot it’s okay
hi can anyone help me?
https://pastebin.com/D5pZerWu and plls help with my console he have errors
@mint fable can you help pls?
use %player_name%
make sure you have the Player Expansion installed
/papi ecloud download Player
/papi reload
again not works
i have alr downalod
but no works
never heard of gui+ but i recommend using deluxemenus for any guis
download the expansions from the website instead ig
guys, if my identifier is player_vote_event
what does the 'params' actually returns in public String onRequest(OfflinePlayer player, String params) ?
example player_vote_event_XYZ ?
I mean, does it returns "XYZ" ?
yes
hmm, but for some reason, when I parse
% player_vote_event_acBee %, it does not parses an integer
` @Override
public String onRequest(OfflinePlayer player, String params) {
if (plugin.getStatsCache().containsKey(params)) {
return plugin.getStatsCache().get(params).toString();
}
return null; // Placeholder is unknown by the Expansion
}`
Hey, so I'm trying to create an expansion (within a Plugin JAR) and it seems to be hooking into PAPI
Console https://paste.helpch.at/divijojuhu.md
Code https://paste.helpch.at/iwiwowadit.java
Main Class https://paste.helpch.at/ahicinubuc.cpp
When I try parsing it, it just won't. https://prnt.sc/6d9IrrxKZs21
Same happens for tab.
nvm i forgot to put it in my softdepend
which part of it?
just set that per npc
i want the name of the lobby in where lobby he is
okay no problem
more
i need that not
Guys my custom placeholders are not working and i can't understand why
this is my code
public class Placeholders extends PlaceholderExpansion {
private final Knockffa plugin;
public Placeholders(Knockffa plugin) {
this.plugin = plugin;
}
@Override
public @NotNull String getIdentifier() {
return "techwolfx";
}
@Override
public @NotNull String getAuthor() {
return "MasterWolfx";
}
@Override
public @NotNull String getVersion() {
return "1.0";
}
@Override
public boolean persist() {
return true;
}
@Override
public boolean canRegister(){
return true;
}
@Override
public String onRequest(OfflinePlayer player, @NotNull String params) {
/*if (params.equalsIgnoreCase("name")) {
return player == null ? null : player.getName();
}*/
User user = plugin.getDb().getUser(player.getUniqueId().toString());
if (user == null)
return "error";
if(params.equalsIgnoreCase("kffa_kills")) {
return Integer.toString(user.getKills());
}
if(params.equalsIgnoreCase("kffa_deaths")) {
return Integer.toString(user.getDeaths());
}
if(params.equalsIgnoreCase("kffa_test")) {
return "hello";
}
return null;
}
}
This is what i get on console when loading plugins: [PlaceholderAPI] Successfully registered expansion: techwolfx [1.0]
and when i try papi parse is not working
it just show the placeholder
what placeholder are you giving it?
it should be formatted as %identifier_params%
so there, %techwolfx_kffa_kills%
Hey there, i'm trying to use PAPI for a DeluxeTags placeholder in animated scoreboard, but it's not working-
When I run "/papi ecloud download DeluxeTags" it says "Failed to find an expansion named: DeluxeTags"
And when I run "/papi parse me %deluxetags_tag% it says
"An internal error occurred while attempting to permorm this command"
Can anyone pretty please help?
barry is a good man
what are possible reasons that my placeholder isn't registering?
Hi there my friend got my IP stolen on my server what should i do
how do i get the placeholder that shows the number of players online in sub server (im using bungee)
ah thanks
yup
the second one is what you need i presume
have you recently removed a quests plugin
if so, you still have the papi expansion installed and should remove the jarfile
i have not removed quest plugin
is anything red in /pl
nope
i disabled the quests jar it fixed the issue but it wasnt there before
@radiant notch exactly. you have the quest expansion but not the plugin. the plugin is disabled so the expansion breaks
no before i had the expansion and the plugin it was working fine
all of a sudden it broke and i disabled the expansion and its working fine now
yes. exactly. the expansion breaks and it takes down the entire loader with it
%armor_amount_SLOT%
Is this the only placeholder to parse item armor that a user is wearing ?
which means no expansion after the quest one loads
ah okay
bro you know placeholder team of bw1058 ?
does papi world with holograms???
cuz idk the bungee placeholders isnt working with holograms
If the hologram plugin does support PlaceholderAPI, the placeholders should get parsed, yes
im using the normal holographic displays
If you're using v2, you need to install the HolographicExtention, or whatever is called; otherwise join their discord server for support
im using the latest version
otherwise join their discord server for support
Hey, Placeholder api support AdvancedNMotd plugin?
Hi there guys!
This placeholder of MATH, doesnt parse when both placeholder equals 0
Basically when a new player joins
%math_2:2_{statistic_player_kills}/{statistic_deaths}%
it goes the other way around. advancednmotd needs to support PlaceholderAPI.
do you know if it supports?
well yes. bcz division by 0 is impossible. languages like java just throw an exception usually.
afraid I do not know. it is not specified on their spigot page either.
do js or python throw errors for division by 0?
Mmm i see
they seem like the kind of languages which wouldn't
Any way to resolve this?
I have no idea.
but yeah you might be right. xD
javascript has a value for infinity?
lol
I was thinking maybe, when you divide something by 0, then apply the first value?
Like if its 5/0, then it would apply 5?
I don't know any I'm afraid. you'll have to talk to andre (the developer of the expansion) and ask for a fallback or something. idk.
you can open an issue here https://github.com/Andre601/Math-Expansion/issues
is there any placeholder that shows something that &aonline and &coffline depending on server's status?
Pinger
and how does it work
How to use Expansions in config.
I put
essentials_afk
'true': 'Absent'
'false': 'Online'
But nothing change.
this works when the server's port is opned doesn't it?
sry