#placeholder-api
1 messages · Page 164 of 1
so you want to show how much until an effect expires?
yeah I Don't think you can. you might be if you know some javascript
@junior musk any idea if it's possible to use a different color for 'ping'?
uh
%server_ping% ?
wait, I mean in TAB
forgot to say that lol
yes
=/
got a bypass but requires the Premium version
interesting
Hi,
I have little problem with papi:
when I join my server my ping placeholder is 0 and with time is slowly getting higher. Do you know, how to fix that?
you mean the bungee one?
oh wait ping
lmao
I can't read
no pretty sure there is no fix to that. it takes a bit to update I think. it also might be that wherever you use it, caches it as well
for example I think TAB caches it
if he has TAB on Bungee with the bridge for PAPI placeholders then yeah, it has to wait for a bit to get the bridge's response with the placeholders' values
but %ping% would work fine since it's not a PAPI placeholder but a TAB one
Ok thanks, ill try
Okay so do you guys remember this error?
well
the dependencies issue doesn't show up if papi is not present
Example with papi:
Example without papi:
ah is that the 100+ plugins error
yeah+
But now it does make sense, with all the testing I did, PAPI was the easiest way to tell if softdepends were broken so I never did remove it
how to use teams expansion?
Thats an issue with the Statz expansion, contact the owner of the expansion and tell them their version string is null which is causing errors
Whats Statz expansion? Idk what it is.
You installed it?
Just remove it if you don't use it
Will be in the /plugins/PlaceholderAPI/expansions folder
thanks
is there an expansion that will show System.currentTimeMillis
server time shows that but it formats it I think
think it uses java simple date format tho and you can set the format
i dont think simpledateformat can format it as just the number of milliseconds
js it is ig
yeah I think it can only format the milliseconds until the next second.
Is there a placeholder for how many players are in a specific world?
thanks
Hi Dev
%player_has_potioneffect_<effect>%
when i use it So why is it an empty space?
I got the Effect
having errors on all scoreboard atm, "Internal Exception: java.lang.NullPointerException: Cannot invoke “java.util.Collection.iterator()” because “players” is null" when players try to join ://
scoreboard plugins
anyone got any ideas why?
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
How can I fix this?
Please respect the rules, be patient and don't ping staff members!
After latest javascript expansion update (#852317810394267708) my exp_points placeholder show decimal point. Maybe because of engine changes. https://prnt.sc/1abmygd
Maybe there are some good souls who knows javascript and can edit my code to show only whole numbers as before? https://pastebin.com/5gZeQZmR
Thanks! 
Is there a way to get %player_x% with a bunch of decimals?
no but can be done
How can it be done
%player_(x/y/z)_long%
If it works fine, feel free to go ahead and deploy to eCloud.
Smh my head.
Thanks so much works perfectly. This would probably be very helpful for others in the eCloud.
go for it glare
Will do shortly. Deploying the new JavaScript Expansion to the eCloud.
Yeah, don't you have permission to deploy to eCloud?
yea i do
hey there! https://paste.helpch.at/oxiciqufog.md
sorry for the late reply
Hello, I'm having issues with the %server_countdown% placeholder... I'm trying to run a countdown 1 month later, but it says I have just under 7 days left. I've played around with a few different formats and dates but I'm having the same issue unless it's just a couple days difference. Any ideas how to fix this??
Nvm. I did an ecloud refresh, redownloaded the server expantion, then reloaded papi and it's working fine now.
has anyone had a problem with placeholderapi using an absolute SHITEton of memory?
Most likely an expansion
OH you know what, I did not think about that.
yeah if you need baltop, we have a dev version of the essentials expansion that includes their baltop placeholders and they are way way way more efficient
oh perfect, I do need that rofl
I've had this headache for the whole weekend with the 1.17 update and server's been OOMKilling on me all weekend
Oh it does require the 2.19 dev version of Essentials
This is merely a frontend for the Essentials baltop cache. You may need to run /baltop after a restart to initialize the baltop cache.
the baltop placeholders are:
%essentials_baltop_balance_fixed_<position>%
%essentials_baltop_balance_formatted_<position>%
%essentials_baltop_balance_commas_<position>%
%essentials_baltop_balance_<position>%
%essentials_baltop_player_<position>%
all the balance ones return the money formatted in different ways, and the player one returns their essentials display name, so like their nick or something
oh and positions start at zero
so like the #1 spot is 0 in position terms
is there any reason why placeholderapi would be using up a ton of ram? it creeps up slowly until it crashes the server
I'm not using any leaderboard expansions, just like 5 javascripts to read values of other placeholders and return another value
i've just found part of my answer. when I unload TAB by nezamy, memory uptick stops in its tracks.
What placeholders are you using in ur tab?
I'm having an issue with placeholder api breaking with %player_displayname% where its showing the vault prefix from luckperms, when its supposed to only show the name of the player. I tried updating to the latest version and it didn't work. So i downgraded, and it still is broken.
What its showing: §x[Mod] §x[Lion]§x DarkChroma
What its supposed to show DarkChroma
I found the issue. It's EssentialsX
I updated from EssentialsX-2.19.0-dev+202-a098055 to EssentialsX-2.19.0-dev+221-1556b91
Which caused placeholders from the 'Player' extension to break.
What engine javascript expansion uses now?
by default its still nashorn
but in cofnig.yml you can change it to quickjs
I think
Isnt it deprecated?
its shaded in the plugin now. Java removed it since java 15 but its the one that worked best. over 6 engines have been tried.
into the expansion*
not the plugin
player_name is suppose to only show the player name btw. displayname is the nickname basically.
bong
why %player_ping% doesnt work, im using 1.17 purpur
redownload the player expansion
can u tell me please that by using placeholderAPI like to display player name we use %player_name% so what should i use to display balance and available claim blocks
%vault_eco_balance% for money if your economy plugin supports vault
ohh and claim blocks available
what claim plugin do you use?
essentials
is essentiald not good plugin for claiming?
I couldn't tell you. never used it for that
which should i use
well I Know Lands is good
ohk i will try that
but there's also GRiefDefender, GRiefPrevention, LandLOrd, PRotectionStones
in my plugins folder there is griefpreventiondata folder also is that for claim?
data idk
griefprevention.jar file
oh yeah that one is for land claiming as well
I dont understand how this placeholder is flickering
Does anyone here do Javascript? One of my plugins has a playtime placeholder, but it returns like this (image)
https://media.discordapp.net/attachments/731716941022101627/864172960453361684/unknown.png?width=334&height=36
The dev told me I should use the PAPI javascript addon to format this
Perhaps with PlaceholderAPI's javascript expension. You'll have to split the placeholder with : so you can get the hours, minutes and seconds seperate and format it into something like "Your total playtime is 318 hours, 21 minutes and 50 seconds"
but i don't do much javascript so i am a little confused lol
what's the playtime placeholder?
%networkmanager_playtime%
https://pastebin.com/jYHAGU3i
For this it registers my expansion
[16:07:20] [Server thread/INFO]: original_crystals```
But when i execute the command `papi parse _LightDream original_crystals_crystals`
I only receive this
```[16:07:35] [Server thread/INFO]: original_crystals_crystals```
and how do you want it to look after?
Like this:
1 Week 6 Days 29 Minutes 34 Seconds
u forgot the %%
at start and end
ugh also
your identifier
should not have _
I think
either make it originalcrystal or idk
let me try
Is it possible to have something like an npc or a player head of a placeholder?
idk if that will fix but its a "rule" xD
have it where?
I think Citizens + Denziens allows you to set skins of NPCs based on placeholders
:))))))) ok
k thanks
👍
Do you know how that works?
I don't remember no. I think denizen explains it. don't exactly remember
I assume you actually want hours as well?
can u try this js? https://paste.helpch.at/ciyopekeke.js
its a bit ugly.
well very ugly
but I think it should work xD
I will try it in just a second, tysm
Made a few modifications to it because there were some typos for the word "minute", but it's parsing an empty placeholder now
oh my bad. I Forgot to return the value xD
Lol
It parsed:
39 Minutes322 Seconds
My actual playtime:
1 Week 6 Days 10 Hours 39 Minutes 7 Seconds
ugh
try this maybe? https://paste.helpch.at/wagesivemo.js
53 Minutes24 Seconds
322:53:24
Should be, yes
oh XD
ok that's an easy fix. 1 sec
👍
[16:56:10 WARN]: javax.script.ScriptException: TypeError: minutes.toFixed is not a function in <eval> at line number 1
oh I guess I should probably parse them to integers.
can you try this? https://paste.helpch.at/ratamayoqe.js
Works except for 1 thing, says I have more weeks than I actually have
Like, I have 1 week
It says I have 2
can you try this one? https://paste.helpch.at/azuremiqon.js
It works! :D
👍
any1 who knowsa good plugin that supports placeholder api that have placeholder for top 10 of top mobs killeed?
leaderheads or ajleaderheads
Can i use this in hd?
hd?
yeah as long as you have HolograhpicExtension and ProtocolLib yeah
cant find a pl with that name
nvm found it
ty
any idea where I can find a plugin for top mob killers
like to count it
Hey, I'm getting these warning, any idea what the issue may be? https://pastebin.com/8ALSSuUF
update your player expansion
Thank you!
when I use the math placeholder
to add 2 values
I have .000 at the end
can any1 explain how to use %math[precision]:[rounding]<expression>% and do not have
the .000 at the end
%math_0_<expression>%
ty
[precision:#] was the old way, got replaced in newer versions of the Math expansion
ty
However how do i display the time and date for example.
13/07/2021 | 10:22 Am
for example:
Date | Time
%server_time_dd/MM/yyyy | hh:mm a%
ty
so after the update many old plugins broke and not working, does that mean I am stuck at the placeholder api before the update, couldn't the dev just made a compatibility mode option
installing the
PlaceholderAPI 2.10.10 means the end of deluxetags and many other plugins that require no update since they are chat plugins
problem is deluxetag is made by you guys
and it breaks with latest placeholder api is ironic
you didn't update that since last year!
I am on 1.17.1 paper
and as a matter of fact, deluxetags was last updated apr 1 2020 on spigot
and a new build is in #general-plugins
pinned
can you please go to #general-plugins and read the pinned message and use that build of deluxetags?
it just shows like %delux_tag% or something
ok
I know, I didn't change the placeholder
but only place holder is showing tags don't show if I update placeholderapi
reverting to older version it works
I will go read
thanks for your help
👍
how do u fix the rest of it tho
rest of?
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
restart your server and send a FULL startup log please
read above to see where you can find it ^^^
sorry bro
but my scoreboard
ranks
tab
everything shows %something% when updating
can u please provide the startup log? we'll start from there and take them 1 by 1
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
use this one ^^^
guess that works too
yeah it hides player ips
ah cool
ok can you please give me an example of a placeholder that doesn't work. just one
all %luckperms placeholders
alright. can you do /papi parse me %luckperms_prefix% and tell me what the command returns?
I don't know I have 50 players online i had to revert back to old version
no. I mean rn
absoultely nothing? empty space?
yes
can you try this then? /papi parse me %luckperms_group%
the output is %luckpersms_group%
also last deluxe tags breaks chatex, but I guess thats a chatex problem
can you do /papi ecloud download luckperms then /papi reload. then check the console, and see if any errors showed up.
I did that, and also deleted old ones
didn't solve it for me
I tried before that papi update all
have you read the entire post for the pinned message? #general-plugins
it tells you to go to plugins/PlaceholderAPI/expansions and delete the deluxetags expansion from there. its no longer needed
and then a server restart might be required
I will download a local copy of my plugins folder
and setup a test server and start fixing stuff there
this might be fault of other plugins
that didn't update to fit the new papi
but I don't expect them to do
thanks for your help blitz
my plugins folder is 18 gb
so when that finish downloading I will launch a test server
Hey! Does anyone know if there is a placeholder extension or plugin that can show a player with a certain tag?
[18:20:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:326) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:920) ~[?:?] at java.util.zip.ZipFile.getEntry(ZipFile.java:347) ~[?:?] at java.util.zip.ZipFile$1.getEntry(ZipFile.java:1126) ~[?:?] at java.util.jar.JarFile.getEntry0(JarFile.java:578) ~[?:?] at java.util.jar.JarFile.getEntry(JarFile.java:508) ~[?:?] at java.util.jar.JarFile.getJarEntry(JarFile.java:470) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:165) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:119) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:131) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at java.lang.ClassLoader.loadClass(ClassLoader.java:576) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?] at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?] ... 2 more
What does this mean?
I get this error when doing /papi reload
Can you provide the generated link you get from /papi dump?
Please respect the rules, be patient and don't ping staff members!
Please update your PlaceholderAPI and see if it still occurs.
Hi, I want to uppercase some placeholders, what is better? JS or Formatter expasion or it doesnt matter?
Noob
☹️
it was added back with the daddy expansion i believe
why is there even a %daddy% placeholder? 👀
welp nvm, doesn't do anything based on GitHub
papi aka daddy?
say papi in spanish

why list %daddy% as a placeholder while it only adds /daddy and there isn't even any placeholder
idk
it doesn't care xD
dadi can do whatever the fuck he wants
btw its bcz papi bot takes the placeholders from here
😈
so basically it is clip's fault I guess xD
lmao
I love how it also ads /father
xD
yeah I know, but it still doesn't explain why it's there x)
👀
bcz it needs a default placeholder I guess. the identifier. and since it does nothing else I guess all there is, is %daddy%
I goues %daddy_ANYTHING% is what it should've been but not as nice
ah, probably
could have just said None as well ¯_(ツ)_/¯
meh, not like it matters anyway x)
yeah
Hey! Does anyone know if there is a placeholder extension or plugin that can show a player with a certain tag?
what kind of tag?
Like a player tag. Using the command /tag add you can tag a player
where is that command from? like I'm confused
It is a basic minecraft command
oh no idea then. don't think there is something for that
Dang
there's a /tag cmd ? 👀
oh yeah there is, since 1.13, didn't know about that
seems like there is a way to get a player's tags through Spigot, but I'm too lazy to make an expansion rn tbh 😅 so if anyone wants to make one, here's the method https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Entity.html#getScoreboardTags()
or rename the ScoreboardObjectives expansion into Scoreboard and add placeholders related to scoreboard tags
so we don't end up with tons of related expansion that could be merged in one
I mean I could create an expansion but the only placeholder would be has_tag_<tag>
Or something like that.
If you want to, go ahead! You don’t have to though.
Give me a little bit 🙂
@leaden holly Want to try this out? The placeholder should be %sbtags_has_tag_<tag>% and it will return true / false if they have it or not. Case sensitive.
Thank you so much! I'll try it out in a couple!
Thanks. Let me know how it goes.
It works perfectly! Is there a way to make it so if it comes back true, it shows the persons name?
Uh I don't think that's really the purpose of the check?
It's simply checking if they have the tag or not?
Ah. Would it be possible though to display a players name if they have a tag with a placeholder?
Uh
js expansion maybe
This is an X Y problem here.
You need to elaborate on the problem and how that would be a solution.
Ok, what do you need to know? I'm just a bit confused.
Well the whole purpose of a placeholder is to return data so theoretically you would take that data it returns and do stuff with it. Not have it return data based on what it originally returned?
Oh ok. So basically, I am looking for a plugin/extension that shows the name of the player who has a specific tag. I need this for a tablist so it shows a player in a specific location on the tablist.
Yeah I think we're on the same page. You could even use js like dkim said but that's not my expertiese.
or PlayerList
Ok, how would I do that?
Blitz am I right in what I said here? It's confusing, right?
it returns a list of players based on requirements. and those requirements could be what a placeholder return
and you could either return the full list or just the name of the n player in the list
1 sec. will provide wiki
Ok!
and your placeholder will look something like this:
%playerlist_online,placeholder,yes,list,sbtags_has_tag_<tag>||true%
you can get the idea from here
and the wiki
going to sleep now. gn
Ok! Thank you so much Blitz & Waffle King!
Yup! Thanks Blitz. I went ahead and released the expansion to the eCloud so others can use it too.
hi on there is place to send a suggestion ? i want to placeholderapi support it ?
depends for what the suggestion it is. just leave it here and I'll redirect you where you should be
ok thanks :3
I have huge issues with papi lagging my server
you'll need to elaborate if you want to get help with that
timings report?
this was with placeholderapi with all expansions i need enabled
and this
as soon as i disabled all expansions server started to bread again
this is list of my expansions:
expansion bungee, essentials, javascript, localtime, luckperms, ontime, player, playerlist, playtime, server, statistics, vault, viaversion, votingplugin, world
so far i reinstalled player and vault, lag didnt return
i think its javascript expansion
tps became unstable first few seconds when i relaoded papi with that expansion installed
that tps loss on graph is when i installed javascript expansion
soon after i deleted it and tps came back to normal
hey
Give that a shot
Wait
@vague bridge Are you on the latest js-expansion?
If so, please send a ss of your placeholderapi config where you have the values for the js expansion
I managed to resolve the issuse. I reinstalled it and made in tab config refresh rate of JavaScript way higher from 100ms to 10000
It works fine now however on 1.16 it worked normally on 100ms
I'll send you when i get home
what is ur java version ?
16
Alrighty
ok so I am very new to making plugins with PlaceholderAPI, basically I am trying to implement placeholerAPI to a plugin that has many different variables. So the placeholders I am looking to create are '%variables_variablename%' '%variables_variablename1%' etc. I have attempted to look through one of my friends plugins on how to implement it, but I have no idea how to. I have looked at the API and quite frankly, I do not understand what to do. I am very new to coding and need help.
I'l take a look thanks
can someone help me my placeholders arnt working with placeholderapi
im using featherboard
# PlaceholderAPI
# Version: 2.10.10
# Created by: extended_clip
# Contributors: https://github.com/PlaceholderAPI/PlaceholderAPI/graphs/contributors
# Issues: https://github.com/PlaceholderAPI/PlaceholderAPI/issues
# Expansions: https://api.extendedclip.com/all/
# Wiki: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki
# Discord: https://helpch.at/discord
# No placeholders are provided with this plugin by default.
# Download placeholders: /papi ecloud
check_updates: true
cloud_enabled: true
cloud_allow_unverified_expansions: false
boolean:
'true': 'yes'
'false': 'no'
date_format: MM/dd/yy HH:mm:ss
debug: false
expansions:
player:
ping_color:
medium: '&e'
high: '&a'
low: '&c'
server:
tps_color:
high: '&a'
low: '&c'
medium: '&e'
server_name: A Minecraft Server
javascript:
debug: true
github_script_downloads: false
engine: javascript
argument_split: ','
use_quick_js: false
vault:
baltop:
check_delay: 30
cache_size: 100
enabled: true
formatting:
thousands: k
trillions: T
quadrillions: Q
billions: B
millions: M
localtime:
date_format: dd/MM/yyyy hh:mma
bungee:
check_interval: 30
do u have maxim placeholderapi installed ?
k
hope they update it placeholer for plugin Ontime (link: https://dev.bukkit.org/projects/ontime ). The placeholer i need is %Ontime_current_login%, wat it can do ? this just see a play time but when you log out it will reset and i very like it you can see pictures to know wat i want :3 HOPE THEY UPDATE IT
that plugin hasn't been updated in 5 years. I'm pretty sure no one will update it xD. I'm sure there are alternatives for this tho
Is it possible to have an item based on a placeholder, so the item is different for everyone?
Can anyone tell why my placeholder is not being registered? Can't find a solution.
https://paste.helpch.at/uzozukirot.java
Inside my onEnable:
new GangPlaceholderRegistry(this).register();
}```
Everything else work like it should, just not the placeholder part, so I know the methods within should work.
I might have registered it wrong, since it's not being logged in the console by PlaceholderAPI like other plugins do.
show us GangPlaceholderRegistery
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
It's the link I provided
😛
lol
what happens if you do /papi list?
does it show up?
I'll test 2 sec
alr
It's a bit weird, because after my plugin loads, it says:
[20:48:15 INFO]: [PlaceholderAPI] Successfully registered expansion: gang
However, later on it says this:
[20:48:15 INFO]: Running delayed init tasks
[20:48:15 INFO]: No expansions were registered!
[20:48:15 INFO]: Done (5.967s)! For help, type "help"```
on start-up
hmm
papi list displays gang
Status: Registered
Author: BeastyBoo
Version: 1.0.0```
and if you use any of its placeholders what happens?
I'm not able to send a picture here, however it just says; %gang-top%
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Ehm, don't mind me. I was wrongly informed on my end! Thanks for your time xD
uhhh np xD
hi there
so I had the same issue as @obsidian haven, that's why I wanted to add the expansion to the ecloud, however registration is locked.
Did u also use "-" instead of "_"
If not, show us the code
no
well the expansion is not the issue
I just want to add the eazynick expansion to the ecloud
since it's in the same plugin which is not recommended by the wiki
🤔 whys it not recommended?
Since it would be weird (and also make no real sense) to have this inside your plugin, we assume you make a separate jar-file as an expansion.
yea, they mean for things that don't need a plugin to work, such as Math expansion
i think
maybe
well I don't care, an external jar is good
but how can I add the expansion to the ecloud
either that or u can just mention him here
but by making it on ecloud you're making users download the expansion in order to use it, instead of having it in your plugin
that's okay I think
@balmy marten what do you recommend? internal class or external jar?
Please respect the rules, be patient and don't ping staff members!
._.
how do i add the expansion for superior skyblock?
WhySoShy, they provide their own.
do you know where i can find it?
Waffle King what do you recommend? internal class or external jar?
For?
for an expansion
Is it your own plugin?
I typically inline all my expansions into my plugins now.
okay
So I just update the plugin on Spigot if I need to make an update to the expasnion.
Else you have to remember to update it in multiple places 😛
how do i use it? im not very clever xd
it doesn't work for some people though
quite a lot of people use my plugin: https://www.spigotmc.org/resources/eazynick-api-1-7-10-1-17.51398/
you don't need to download an expansion i think
it's built-in to the plugin
WhySoShy, do /papi dump and paste the link it provides you.
Okay so why doesn't it work for some people?
Need elaboration.
the link is too long
What
wait xd
it just says "Incorrect usage!"
/s
/papi dump
yeah it says that command doesn't exist
my placeholderaip is not registerd %tm_tokens%
What version of PlaceholderAPI are you on?
2.9.2
do i need to be on the latest?
2.10.9
@silver minnow Unknown expansion.
oops
Both of you need to update.
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.10 - Dev Builds
v2.10.10 - Dev Builds
We don't provide support to either of those versions anymore.
I'll update that list here shortly.
my placeholderaip is not registerd %tm_tokens%
ah alr
okay thanks
was just going to ask if 1.15 and below didn't support lol
Nah the latest 2.10.10 should work on all 1.8 - 1.17
nice
my placeholderaip is not registerd %tm_tokens%
sory
Please turn off pings on reply.
ok
failed to find an expansions named: tokenmanager
uhm where can I disable these pings
You've got to stop.
Nvm remove that jar. They have their own stuff now.
https://www.spigotmc.org/resources/tokenmanager.8610/ latest version from here.
Here's their placeholders https://github.com/Realizedd/TokenManager/wiki/Placeholders
I have to go back to work. Someone else might be able to answer any other questions you have.
does anyone know how to disable pings on reply?
can't find it in the settings
is it even possible?
thanks 🙂
nope
tip: when replying with a ping it adds a @ before the name, for example:
https://i.imgur.com/mdNbEml.png and https://i.imgur.com/0Y2I7pu.png
you just ghost pinged kaliber-
rly I have to disable this every time
saw the ping before it was a ghost 🙂
👻
wow ur a god
sorry for tag, but i dumped the link into it. how do i use it now? xd
Please respect the rules, be patient and don't ping staff members!
okay, it was just how do i use the placeholders
but it have placeholder i need :3
Please respect the rules, be patient and don't ping staff members!
same i very need it
Hello, I from Belarus and i need in you help. I am setting up a server. Core: PaperSpigot 1.12.2. PlaceholderAPI version: 2.10.0 All Expansions are successfully launched when the server starts. BUT! Vault does not start, after the command / papi reload it is loaded and immediately finds it. But when you turn it on, it does not seem to be visible. There are not even errors in the console. What could be the problem?
have u try /papi ecloud download vault and /papi reload ?
Make sure you have the Vault plugin
this also .-.
or u can do /pl to see if vault is running or not
Anyone have any idea why %statistic_player_kills% gives the value for animals bred with papi?
Seems to be for other statistics as well. Some work some dont
Hello! How do I get my expansions verified on the PlaceholderAPI eCloud?
I've had two expansions on there for awhile but figured it was done automatically, but I hear I do need to get a staff member to do that?
Link to expansion and its code @analog flax
d;jdk StringJoiner
public final class StringJoiner
extends Object```
StringJoiner has 6 methods, and 1 extensions.
StringJoiner is used to construct a sequence of characters separated by a delimiter and optionally starting with a supplied prefix and ending with a supplied suffix.
Prior to adding something to the StringJoiner, its sj.toString() method will, by default, return prefix + suffix. However, if the setEmptyValue method is called, the emptyValue supplied will be returned instead. This can be used, for example, when creating a string using set notation to indicate an empty set, i.e. "{}", where the prefix is "{", the suffix is "}" and nothing has been added to the StringJoiner.
1.8
Use that instead of a stringbuilder
Sure, I can look into that- is that more optimal for a certain reason?
Oh, I see, it's better for compiling lists for that list part.
Yeah, makes sense, guess I overlooked that as it automatically delimiates elements to a comma separated string list
All right, I have done that. Are there any other changes I need to make - if not, I can update the expansions on the eCloud
Hey, placeholder API is taking up a ton of resources on my server for no reason after updating to 1.17. can someone help?
Its always been down at the bottom of my timings report with vault and stuff like that, but after updating its coming up red
it shouldnt
Yeah, thats why I'm confused
Send timings
hey if I have multiple placeholders that I want to add together how would I do that?
Add together using math? If do use the math expansion
whats the math expansion
%math_0_{placeholder1}+{placeholder2}%
0:*
Anyone able to answer this :/
Report it on github ig, I've never seen that one
Gotcha thanks. Some of them work so me don't. the placeholder for animals bred doesn't give the value for animals bred lol
say i was using google cloud for servers (if that's even possible), would using loopback ips (like localhost and 127.0.0.1) work for the pinger extension?
they work in my self hosted server
hey so i receive this error message on my 1.17 server when i try to download the factions extension and reload papi. The faction plugin i use is uuid. has anyone experienced this yet?
[13:26:14 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/massivecraft/factions/RelationParticipator
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: com/massivecraft/factions/RelationParticipator
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more
Caused by: java.lang.ClassNotFoundException: com.massivecraft.factions.RelationParticipator
at java.net.URLClassLoader.findClass(URLClassLoader.java:433) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more
Don't think you need the expansion
I think the expansion is for massivecraft factions, not factionsuuid
You don't have DiscordSRV?
[06:07:14 INFO]: [PlaceholderAPI] Fetching available expansion information...
[06:07:14 INFO]: [ChestShopNotifier] Found rows: 0
[06:07:14 INFO]: [ChestShopNotifier] Done.
[06:07:16 INFO]: ShadowHacker issued server command: /papi reload
[06:07:16 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[06:07:16 INFO]: [PlaceholderAPI] Fetching available expansion information...
[06:07:16 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: github/scarsz/discordsrv/dependencies/jda/api/entities/Role
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: github/scarsz/discordsrv/dependencies/jda/api/entities/Role
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more
Caused by: java.lang.ClassNotFoundException: github.scarsz.discordsrv.dependencies.jda.api.entities.Role
at java.net.URLClassLoader.findClass(URLClassLoader.java:433) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more```
I'm not sure why, but PAPI doesn't work for me with LP, when I download it through papi ecloud and reload, it just shows error in console.. Can provide full log if it's needed .. I'm trying now dev version instead
I don't and I'm not sure why it says that error
I deleted it
Do i need to remove it?
Yeah, I can see that, but idk why and also why LP doesn't work, let me do this first
What command can i use for that? I tried unregister or so, but there's only others
use for what
do /papi dump
Expansion-discordsrv.jar
have you considered that might be why it's looking for discordsrv
So I need to remove it from its directory then ^^ didn't knew it was there like that when it didn't showed ingame
it didn't show in game because it couldn't load beacause it couldn't find the plugin lmao
that's what that whole big error meant
👍
Ok, so.. That error was somehow blocking its ability to find other extensions etc, so I got it working, thanks Star ^^ ❤️
mhmm
hi im running a bungee cord server and want to get the current servers online in one of the servers shown on my server selector and its not working. this is the stuff ive got on the deluxe hub plugin config for the server selector
i want it to be like that
have the total players
fixed it
so ive removed the faction extention but the placeholders still dont work on my feather board...
Basically I’m getting kicked with this reason
I seem to be getting kicked with this message
[16:29:29 INFO]: Fantom250YT lost connection: Internal Exception: java.lang.IllegalArgumentException: Attempt to get it.unimi.dsi.fastutil.ints.IntList field "net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy.a" with illegal data type conversion to int
I have been speaking in purpur discord and that have said it is a placeholder plugin issue so here I am. - Apparently used to be a single int now its an array - thanks
wait so this stops happening as soon as you remove PlaceholderAPI?
have you tried the placeholders using /papi parse? if not try /papi parse me %placeholder% but replace %placeholder% with whatever the placeholder that doesn't work is. see if it works like that
👍
Oh it still happens when its gone, nvm
any way to get number of players in the end?
%server_online_world_the_end% seems to have problem with the underscores
because it works for a normal overworld
but in the end it always returns 0
when you try /papi parse me %server_online_world_the_end% do you get any errors in the console?
because the expansion doesn't deal with the underscors in the world name at all
gets everything after online_
using /papi parse just outputs the raw placeholder string, but in all the other places it works...
i will try redownloading server
Ok, turns out there is a conflict with CMI having the same placeholder...
Rip
I redownloaded server, and using /papi parse works as expected
but other than that, CMI has their own version apparently...
Cmi is incredibly bloated, would not be surprised
yeah. I know it allows you to make custom placeholders but didn't expect like 100% custom
was expecting it to be like %cmi_CUSTOM_HERE%
or something
most of them are like that
but for some reason this one is not
ok, they helped me over there, thanks !
CMI what a meme
you are supposed to just write the world name without underscores worldtheend
well that's weird
What is the placeholder for the server ping?? and than colored?
well yes, but it does a lot of things better than essentials, and I don't use most of its features, so I stayed with it...
hmmm does it really lmao
%player_ping% for ping
not in my experience
server ping not player
and %player_ping_colorized% for colored one
UGH
The ping.. is the time it takes
for a player
to send information
to the server
and back?
🥲
it will be different for each player
for example better handling of offline player data or their home system
ok
both have been fine in my experience with essentials
and those are small boons compared to the bloat and brokenness you get with CMI lmao
Star u ever used XParticles? bcz I can't anymore
i was a long time essentials user myself, but switched to CMI, and if you don't update too often and wait for them to fix stuff, it works great
however it gets unstable, thats why the slow updating
maybe it's part of being a developer, but their whole process and the bloat makes me very weary
and the fact that you have to treat it like debian lmao
what a meme
the dev keeps adding new stuff and does not care too much about the bugs
How do I get an placeholder from another player to see the balance of that specifick player?
you could use the ParseOther expansion
it removes itself 5m after I think
so What I want to do it show the balance of the player that has the most money
but that changes
%parseother_{the_player_name_here}_{vault_eco_balance}%
oh
the one that has the most money, well you could use the balance top placeholder I guess
%vault_eco_top_balance_1% needs to be enabled in PAPI's config though
actually I'm not sure if it's 1 or 0 for the first player
you can change the number
oke thank you
Whelp I installed it and reloaded placeholder api and than after 2 min restarted
but now I don't see the balance
with 0 not and with 1 not
what placeholder did you use ? the vault top ?
%vault_eco_top_balance_#%
and did you enable baltop in PAPI's config?
O that is the thing that I forgot
:D
it has been a long day
O well I had that as well
I couldn't login
and have waited for 5 months on the support team
ah
I waited half a day
5 months?
damn
respect
5 months without MC, I wouldn't survive
I had bought another account because it took to long
and I asked for a refund
And they where going to look in to that
I have now been waiting for 3 months
so
ehm
=/
we can conclude minecraft support sucks
I see that
error
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
You need Java 11
even if i m not using 1.17? 🤔
Yep
Also you need Java 16 for 1.17
It's very good practice to update your version anyways, running on legacy versions gives you less compatability and a lot less optimizations than newer versions
Java 8 came out in 2014, you're literally using a 7 year old program and expecting it to run new stuff
the placeholder %player_colored_ping% is handle by extentsion player right ?
yes
it seem to be color inverted ..
the color of low ping ( mean good connection) is having the color of bad connection
can any1 fix this or should i define a javascrip placeholder to fix it ?
is there a way to tell how many players are in a world?
Thanks
You can pr the papi wiki
the new javascript expansion is very laggy compared to 1.16, i noticed it has been reported few times
https://timings.aikar.co/?id=0fb309dcaa7c466c8b7e1f7654339523
the first lag bump is spark heapsummary, the second is tps drop bump is when i enabled JS expansion
Can I see the code of one placeholder?
sure one sec
function saturationbar(){
var scaling = 10;
var value = '%survivalplus_player_saturation%' / 20 * scaling;
var bar = '';
var j = 0;
for(var i = 0; i < value; i++){
bar += '|';
j++;
}
bar += '&8&l';
for(var i = j; i < scaling; i++){
bar += '.';
}
return bar;
}
saturationbar()
They worked fine on 1.16 i had no issues
I see
i had them in TAB in 1.16 at 100ms refresh rate and it worked fine, now it lags even with 5000ms
https://timings.aikar.co/?id=f25455a41b614f3685a2e26ebc4b457e and here it is after i disabled javascript expansion
updated papi but still getting alot of errors on my 1.17.1 server https://paste.helpch.at/xogebomuqe.pl
you need to update your Player and Server expansions as well
do you have an account already on the ecloud? if not ask one of the admins when you see them online to make you one. and for the wiki, you just PR the changes
I don't remember how you pull request a change on the wiki but I'd assume just like you do with the code? you fork, change, and then open a pull request
Hi, I'm getting this error during startup on a 1.17.1 server
https://pastebin.com/sGPappaK
and this during /papi reload
https://pastebin.com/gkSWEqzX
update the server and player expansions
Oh neat! Thank you
Would there be a way with the javascript expansion to check if a placeholder is equal or greater to something, and then do a command?
Is there an expansion or placeholder that could return the amount of characters in an input?
Papi Error Load ?
https://pastebin.com/9TiyHmtD
The formatter expansion was built on a newer version of java
if you want to use it update your java version
javascript expansions would allow for this
@austere hawk use java 11
Hey could i get a little help
does any one know how to register an expansion again after reloading the placeholder plugin?
persistent() true
Use the latest version
Thank you 🙂
Please respect the rules, be patient and don't ping staff members!
Hi, I can't create my own extension and make it appear on the holographic display ... can someone help me?
HD doesn't actually support PlaceholderAPI. If you want to display placeholders in an HD hologram you'll have to also install PRtocolLib and HOlographicExtension
no problem 👍
Hello I'm new here and I have a question about sharing placeholder variables between spigot server in a Bungee network
that's not possible at the moment. well you could make your own plugin to share them like that but papi doesn't have that by default
@turbid tide I'll try Bungee messaging channel this could help I think, thank you for your time
yeah. you could also look at the TAB plugin and see how they did it. they do it as well and its pretty good
you download it by downing /papi ecloud download javascript then /papi reload
can you share with me the link of this plugin
thanks
all good. you could still manually download it from the ecloud but don't see why xD
May be the wrong area to ask since its not a plugin made by this business. But MDvW won't hook with Placeholderapi it seems? Through Featherboard.
Any thoughts on this, as to why?
Server version 1.17.1 all plugins updated to latest build.
it worked on 1.17?
ugh featherboard moved to PlacehodlerAPI. you don't need MvDWPlaceholderAPI anymore
if you're on version 5.0.0+ of featherboard all you need is PlaceholderAPI
oh yeah I was wondering about that
wasn't mentioned on the mvdwpapi spigot page
FeatherBoard 5 is currently a BETA version for Java 16 and Spigot 1.17 - DO NOT DOWNLOAD IT FOR A PRODUCTION SERVER. If you are a new buyer, please use 4.30.0 instead under the "Versions" tab page. 👀
also holy shit 21% vat
is that in addition to the 18 euro?
I know I heard something about them switching, I couldn't remember what was said. They need to update their spigot page asap lol
I think he has to pay 21% of the 18 euros
Thank you all
oh dang well still, that's so high
stupid eu
yeah. but we get healthcare xD
hey there are countries that get healthcare that aren't in the eu
they probably will when they think the 5.0.0 version is actually ready for production
canada, for instance
You're right. It does say not to use it for production.. will be breaking that rule.
lol
xD
Is there a way to get this to run on the bungee server itself? I've got a plugin on it that i need a placeholder for
Ill try it, might not work though as the server is 1.17
Hey guys how do I use placeholder math?
I tried this
%math_{server_ram_max}/1024%
got value: 8.000
but want to remove the .000
tried this
%math_{server_ram_max}/1024[precision:0]%
but got an console error
%math_0:{server_ram_max}/1024%
Thanks :)
%math_DECIMALS:ROUND-TYPE_MATH-HERE%
also there's a wiki for that
or at least the placeholderapi list
explains it
doesn't say you can omit the rounding and the colon
well the github page does https://github.com/Andre601/Math-Expansion
But you used _ and docs say :
but you were correct
he's omitting the rounding
no the docs say %math_#:#_MATH-HERE%
but you could also do %math_#:_MATH-HERE%
and also %math_MATH-HERE%
also %math_:#_MATH-HERE%
pretty sure
well I mean this explains it https://github.com/Andre601/Math-Expansion
I don't see where it does