#placeholder-api
150650 messages · Page 56 of 151
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?
._.
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.
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
okay, it was just how do i use the placeholders
but it have placeholder i need :3
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
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
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
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 🙂
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
not a single example omits the precision alone
Both the precision and rounding can be omitted to use the corresponding setting in the config.yml of PlaceholderAPI. just that line
which I skipped over 3 times while reading this page because of the huge examples lmao
well its Andre's wiki. ain't going to edit it. ask him if you think its not good enough.
or you can pr as well I guess
yes I definitely think it's not good enough
considering how many times I have been confused as a staff member, that's kind of a problem eh?
well then edit.. or ask andre to smh
🥲
also is there a way to delete exactly 48 plain coal items using checkitem placeholder?
%checkitem_remove_mat:coal,strict,amt:48% probably
if i have 49 coal for example, it won't work
it removes it if the strict is gone?
oh
pretty sure
strict will check
if the total amount is 48
as well
ye but it might accidentally delete custom items under the coal material
yeah Ic what you mean. @mint fable will have to take a look at this. because rn if strict is enabled, it will also check so the amount is strict as well
any way to remove that for the remove feature CJ?
alr ty 👍
hello can somone help me? my factionsuuid isnt working for my scoreboard, but i have placeholderapi installed
have you tried the placeholder with /papi parse ?
whats that?
which placeholder isn't working
factionsuuid
placeholder please. not expansion. give us an example of 1 placeholder from that expansion that doesn't work
factionsuuid_faction_name
can you please test it with the command /papi parse me %factionsuuid_faction_name% ?
and tell me what output it returns
%factionsuuid_faction_name%
alr. will need you to also do /papi dump now and send the generated link here
hmm seems like you have 2 factions expansions and none registered. can you please go to plugins/PlaceholderAPI/expansions and delete the Expansion-factionsupdated.jar and then also delete Expansion-FactionsMCore_Y4...jar as well
then do /papi ecloud download factions then /papi reload
Failed to find an expansion named: factions
ah.
/papi ecloud download factionsupdated then /papi reload
also which factions plugin do you have? can you link me the spigot or page you got it from?
you can find them here. https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#factions-mcore
but that expansion is made for MCore and forks
idk what savagefactions is. is it a fork of fuuid?
no clue, but the factions mcore placeholders arent working for me
looks like you might want to consider factionsx
savagefactions isn't supported anymore
and it has a conversion tool!
or maybe FactionsUUID. if you got the money for it I guess . bcz I Know its paid
oh factionsx?
what's that
the guy who made savagefactions hated working with a shitty codebase
so he rewrote factions from scratch in kotlin and named it factionsx
oh nice
so yeah Baltias here's link https://www.spigotmc.org/resources/factionsx.83459/
its free
i opened my factions config and it says FactionsUUID by drtshock
and you convert the stuff for free as well
oh
well you don't need any expansion for that one
here's a list of placeholders https://factions.support/placeholderapi/
yea, thos thon work, i gues il just have to switch to factions x
probably best to use a plugin that's actively supported lmao
pretty sure fuuid is supported just dk how good the support is xD
yeah ik. but since he has it he can use it. idk I don't care. xD just saying
Thanks for the help guys! have a gooD day 🙂
you're welcome. you too 👍
Would someone be willing to make a custom placeholder that displays the amount of characters in an input for me?
ugh that's like 2 lines in javascript
I have no idea how to do it
Ok thanks
does anyone know how many character can fit in to minecraft score board becouse some of my text is getting cut off
that depends on your server version and plugin you use
ok
if you're on 1,13+ tho, most scoreboard plugins will allow unlimited characters
How can I use the JavaScript expansion?
these are some usefull links ^
thanks
what would the javascript look like for a placeholder that displays the amount of characters in an input
heya, is there any chance to get objective_score with position numbers output? like %objective_score_objectivename_posX%
would be nice to output 3nd 2nd and 1st place of a minigame in something with that
var length = "%input_length.test%"; how can I separate .test and use it as a variable?
so lets say you make a javascript file called length and you declare it in javascript_placeholders.yml as yml length: file: length.js then you do /papi reload and you go to plugins/PlaceholderAPI/javascript you will find a length.js file.. you add js args[0].length
then you do /papi reload and then you just use %javascript_length_INPUT-HERE%
and it will basically tell you the length of the input
you can also use placeholders as the input but you'll have to use them using {} instead of %%
I Don't think that's possibly. You will probably have to use a plugin like LeaderHeads or AjLeaderboards to create the leaderboards
Wow thanks so much I think this will help a lot
i believe the color in %player_colored_ping% is error
ugh
what error exactly? also btw if you're on 1.17 you'll have to make sure you're on the latest version of the Player expansion
i still using 1.16.5
since i still stuck with 4 plugin that not support yet
the color is in odd sequence , 0 ping is suppose to be good when parse return color red, when ping is like 2000 it will return green
still make sure you have the latest player expansion
that was fixed like 2 versions ago
can you do a /papi dump please?
also a /papi reload first
ohhhh
@hard basalt think the problem is in your config
go to plugins/PlaceholderAPI/config.yml
there will be a ping_color option
I Think they're reversed there.
nope not needed anymore. if the config is the problem
yes the format in config is
player:
ping_color:
medium: '&e'
high: '&a'
low: '&c'
is this an outdate version ?
this same for tps too
what hook exactly?
the placeholder hook part in the config file
so the color basically? yeah it still works
it still takes info from the config file
....
it in my config file for some reason
if i remember correct this 1 is use when the old hooking method is used
here is the full config file if u find sth no longer or should not be u can tell me https://paste.helpch.at/arosijivat.bash
yeah that's not used anymore
you should probably backup your config, delete it, do /papi reload and just edit the newly generated one
since the unused options will be gone
k
seem like nothing to edit , the ping format also fixed
seem like the old config define low as "lag"
yeah. it was a known bug and was fixed
alr thanks
Is it possible to have completely custom placeholders in the JavaScript expansion without %javascript_placeholder%
I'm afraid I Don't fully understand what you want
you want a placeholder made in javascript
but have it not start with javascript ?
if that's what you want then no, I recommend you learn java and make your own expansion if you really don't want the javascript there
Ok thanks I am starting to learn Java
Is there a way to add as argument a placeholder inside one?
Like
%javascript_ToSeconds_%rtp_cooldown%%?
use {} instead of %% for the nested placeholders. basically like this %javascript_ToSeconds_{rtp_cooldown}%
I have added 100 coins to me and i see scoreboard i have 0 coins
So I use Featherboard and no placeholders are working. I have the expansions needed and even tried using the command /papi parse me {player} and it returns {player}
which version of featherboard
Featherboard 5 and above uses PlaceholderAPI for placeholders instead
And with that, it means you use %% instead of {}
and it means you use %player_name% instead of %player%
i tried using %% as well
and you have to download the player expansion if you don't have it
oh ok
?player
run those commands ^
i had the expansion didn't realise things had changed a bit thank you
Sweet thank you again 😄
How can I make my head appear, and the other one has his own? In the menu
?dm-heads
Can you share the code? Use pastebins
Yes
There you have sir
I think the proble its that im using Player instead OfflinePlayer in onPlaceholderRequest
Sure
I think OfflinePlayer is in onRequest
but maybe your problem is just that your scoreboard plugin isn't refreshing the placeholder
check with /papi parse me %acoins_coins% if it shows correctly there
if it's correct, then that means it's the scoreboard not refreshing correctly
so
I'm not sure to be honest
@ripe iron have you tried printing this? Main.getInstance().getApi().getCoins(player)
my assumption is that method returns 0
Yes i tried
When i execute /coins bal i said my reals coins
And in my /coins bal return that method
ok
public String onPlaceholderRequest(Player player, String identifier) {
switch (identifier){
case "coins":
System.out.println(Main.getInstance().getApi().getCoins(player));
return String.valueOf(Main.getInstance().getApi().getCoins(player));
}```
Ahh ok
so now when you /papi parse it will also display the value in console
/papi parse me %acoins_coins%
try this please then https://hastebin.com/kogeqebotu.java
also don't forget to restart the server
don't just use plugman
or anything like that
Ahhh
I think that the problem
That im using plugman
I use plugman unload aCoins and then plugman load aCoins
ok
it breaks stuff so easily. Idk why anyone ever thought about making something like that
also same thing with the spigot /reload command
and it doesn't send you a message either?
@Override
public boolean register() { return super.register(); }```
set that to true
can I see your current class again please?
try this and see
if when you parse
the placeholder
you get a this is a test message
Btw now the plugin said that it laoded but then i see /pl and it doesnt there
oh
might want to start a full startup log
weird. it says its been enabled successfully
and placeholder still doesn't send a message?
Its enable but expansion its not being registered
have you registered it in your main class?
can I see your main class please as well?
nope
just the class where you register the expansion
which usually is done in your main class
PlaceholderAPI] Enabling PlaceholderAPI v2.10.5 this is your log
also according to your logs, it can't find PlaceholderAPI?
have you set PLaceholderAPI as a depend in your plugin.yml?
it might be loading after your plugin if not
i put it as softdepend
ok
He?
Util.log("info", "&3Has been successfully enabled");
none of these messages are sent
Its working
My message its sent look
getLogger().log(Level.INFO, "&3Has been successfully enabled")
huh? the log you sent before did not have it
I have stopped server and started and the mesage was sent
Yes
its after the eror void plugin error
it only shows this one [aCoins] Enabling aCoins v1.0 and this one [aCoins] Loading aCoins v1.0 which are none set by you. they're default spigot messages
the messages you're trying to send are not sent
I cant send picture buts in console its sent
oh. Ic
and once again what's happening when you parse the placeholder? all you get is 0 ?
nothing else?
Not
Its isnt rbeing registerer now
Oh mny good i have restarted more than 20 times the server
xdd
I do papi list and the placeholders werent registered
are you on the latest version of PAPI?
Yes
It make no sense
Oh my good i not understanding what happening
I will go to drink omething
So?
What i should do?
tbh Idk xD
did you try updating to 2.10.10? placeholderapi I mean
is the placeholder still registered?
Nop it doesnt register
is your project on github by any chance?
I send the message that was registered but it inst registered
I can upload it
Do you want?
I'm going to sleep soon. can't really look at it.
you might want to ask in #development
share the main class and placeholder class with them as well
Good night
oh wait @ripe iron you don't have a constructor for your placeholder class
tho
wtf is that emote?
xD
or does java create a default one? I'm not even sure xD
I want the player name in my holo display, can somebody help me
Ive downloaded papi player
Used %player_name% %player_displayname%
{player_name}
wtf
You have 2 bungee expansions in your expansions folder. plugina/placeholderapi/expansions
Hd doesn't support PAPI. You neeed Holographic Extension as well and Protocol Lib.
Then just use %player_name%
I will also add to that I don't think the extension works on 1.17+ yet. I've reached out to author a few times and have had no response from them.
It works
Yeah. Should work fine on 1.17.1. there was just 1 guy that had problems with jt
It*
But I'm pretty sure we found out it was a plugin messing with it. Also with a few more bungee related things
yeah the problem is one of the expansions. dk which one. but I recommend deleting them all and redownloading
1 by 1
this helped thanks 🙂
Hii guys!
Can somebody pls help me with my placeholders
Ive i try to do /papi reload
it isnt working
What error in console
I cant send in chat
9.07 19:37:51 [Server] Server thread/ERROR [PlaceholderAPI] failed to load class files of expansions
Only the FactiosUUID is working
You have normal Factions or Factionsuuid?
do I have to manually enable the OfflinePlayer object? I have 3 plugins that claim to support it but none of them seem to be working.
huh enable it where? In placeholders?
then no. As long as they use the onRequest method instead of the onPlaceholderRequest one it should work
[21:26:13 WARN]: at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:433)
[21:26:13 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:586)
[21:26:13 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
[21:26:13 WARN]: at java.base/java.lang.Class.forName0(Native Method)
[21:26:13 WARN]: at java.base/java.lang.Class.forName(Class.java:375)
[21:26:13 WARN]: at com.extendedclip.papi.expansion.server.ServerExpansion.<init>(ServerExpansion.java:64)
[21:26:13 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[21:26:13 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
[21:26:13 WARN]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[21:26:13 WARN]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[21:26:13 WARN]: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[21:26:13 WARN]: at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:393)
[21:26:13 WARN]: at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:162)
[21:26:13 WARN]: at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
[21:26:13 WARN]: at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
[21:26:13 WARN]: at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
[21:26:13 WARN]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
[21:26:13 WARN]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
[21:26:13 WARN]: at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
[21:26:13 WARN]: at java.base/java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257)
[21:26:13 WARN]: at java.base/java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248)
[21:26:13 WARN]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[21:26:13 WARN]: at java.base/java.util.stream.ReferencePipeline.count(ReferencePipeline.java:709)
[21:26:13 WARN]: at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$3(LocalExpansionManager.java:327)
[21:26:13 WARN]: at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46)
[21:26:13 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100)
[21:26:13 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
[21:26:13 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1135)
[21:26:13 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[21:26:13 WARN]: at java.base/java.lang.Thread.run(Thread.java:831)```
update
Update what?
PlaceholderAPI
actually
redownload the Server expansion
/papi ecloud download Server
/papi reload
thanks 🙂
❤️
@flat spruce your issue has also been fixed
Update it @@
looks like the NBTApi expansion is having a hard time lol
its not our job to update it. We don't even have access to the code... the plugin is old af. just use a more updated one
just google PlayTIme spigot
or something
Hi all. Is someone still reviewing PR's to PAPI expansions? Opened a PR on sunday to a repository with a similar PR from august '20 still open without any comments
Depending on the expansion
I'd prefer to remove the outdated and non-functional DeluxeChat-hooks from USB and redirect to this expansion, but it's not working at the moment haha
Seems easier for users then releasing our own expansion with the plugin or something like that
Especially since it's already in the eCloud system
I can transfer the expansion to you if you'd like to continue to update it, assuming @sudden slate is happy with that as he's the current owner
Whatever works for you guys, I don't mind. Don't want to get pushy, just curious if there's still activity 🙂
Some expansions tend to get overlooked as we have quite a few
Yeah I can understand hehe
Dub
Is that a yes or no lol? 
nah he was talking about Dublin
Imma head off towards the store for now haha. If you prefer to transfer the expansion, I'm fine with that. Otherwise, I'll keep opening some PR's in the future and drop a line here if there's no response after some days. I'm planning to add some additional placeholders to match what we (used to) offer for Maxim's api.
Sure
Let me know your ecloud username and i'll make the transfer
cube can I get an account as well?
Give me a sec to register an account haha
ah you wont be able to
Sure!
bliss!
Hello guys, a query someone will know why I get this error?
[PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!
I already did, but it keeps giving me the same error
Do you have Vault installed?
Yes
make sure you don't actually have 2 vault expansions in your expansions folder
Is there more error beneath that? I thought I had it print the stacktrace
and that would be at least slightly useful in tracking down which property is null
this is from one
They are 3. One is from 'vault', the other from 'essentials', and the last from 'server'
All of their expansion versions are null? Weird
Hey send one of those over
I would like to see if it is actually null
In which case you might have a virus or somethin
Won't let me send files
oof
then nevermind
that is very weird though
maybe try a local server and see what happens?
Could compare jar file sizes
Expansion-essentials 9.14kb
Expansion-server 10kb
Expansion-vault 15.4kb
My essentials expansion downloaded from the ecloud website is 9.37kb
Try downloading all those from the website and FTPing them onto your server
Hello! Will placeholders support Gradient colors?
The luckperms support it but when i parse the %luckperms_prefix% placeholder i only get the format of gradient color �....
yeah. and then its up to the plugin you parse it in to parse the colors
when 3.0 comes out there will be Component support and will be a lot more integrated but at the time this is the only way
So if i see gradient color code in my scoreboard then scoreboard plugin doesnt support it ?
Where can i send screenshots ?
read this please ^
https://imgur.com/a/wIqP6Rq here i am using AnimatedScoreboard
any1 know how can i add placeholder into vault suffix ?
I have papi ecloud Statistics and placeholder for playtime is not working. Any fix for this ?
please send over the full startup log ^^
?paste
which one of the play time placeholders did you try?
Im using this one %statistic_time_played:hours%
ah I'm pretty sure those are broken indeed.
you can use %statistic_hours_played% instead
I parse it and it shows 0
In minecraft statistics i have all on 0
So i think the problem is somewhere else but i dont know where..
that work for me though
hmm yeah. the expansion takes the statistics from spigot which takes them from minecraft
but for some reason I guess they are not registered
It just randomly stop working
you might want to ask in the discord of the server software you use (paper, spigot etc.)
also by any chance did you delete your main world?
or change it?
because that's where the stats were stored
hello I have a plugin download and that name is dailyreward but if I put an ipa in it he doesn't know what to do anymore
an ipa?
Where can I get an account to upload an expansion I created? 🤔
cc: @balmy marten ^
java.lang.Throwable: null
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15) ~[patched_1.17.1.jar:git-Purpur-1287]
at net.minecraft.server.level.ServerLevel.getEntities(ServerLevel.java:2360) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.CraftWorld.getEntities(CraftWorld.java:1173) ~[patched_1.17.1.jar:git-Purpur-1287]
at com.extendedclip.papi.expansion.server.ServerExpansion.onRequest(ServerExpansion.java:190) ~[?:?]
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:156) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:69) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:97) ~[?:?]
at me.neznamy.tab.platforms.bukkit.BukkitPlatform.setPlaceholders(BukkitPlatform.java:240) ~[?:?]
at me.neznamy.tab.platforms.bukkit.BukkitPlatform$2.get(BukkitPlatform.java:205) ~[?:?]
at me.neznamy.tab.shared.placeholders.PlayerPlaceholder.update(PlayerPlaceholder.java:36) ~[?:?]
at me.neznamy.tab.shared.features.PlaceholderManager.updatePlayerPlaceholder(PlaceholderManager.java:116) ~[?:?]
at me.neznamy.tab.shared.features.PlaceholderManager.lambda$new$0(PlaceholderManager.java:81) ~[?:?]
at me.neznamy.tab.shared.cpu.CPUManager.lambda$startRepeatingMeasuredTask$2(CPUManager.java:146) ~[?:?]
at me.neznamy.tab.shared.cpu.CPUManager.lambda$submit$4(CPUManager.java:180) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutorPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]```
- "&b&lChunks: &a%server_total_chunks%"
- "&b&lMobs: &a%server_total_living_entities%"
- "&b&lEntities: &a%server_total_entities%"```
in tab config
