#placeholder-api
1 messages ยท Page 157 of 1
Hello!
Recently i was wondering how i could create a placeholder that return only the player on a specific index of a list of peoples who did a command or have a certain group/permission in luckperms.
I thought that PlayerLIst could be helpful doing this since it gives you a way to create a list of player with a certain perm and then take one of them by selecting the player at the index you want (ex. of a placeholder of playerList which take the first player of the list of player online with permission "staff.admin": %playerlist_online,perm,yes,0,staff.admin%).
However it doesn't seems like this placeholder works with luckperms permissions/groups, and to be honest i'm to lazy to learn how the permission.yml works.
At this point i got two questions: Is there a placeholder that works the same and got luckperms integration? If not, is there another way i could do this thing of take a player form a list without using permissions?
Thanks in advice
Hi ! Anyone know how to reset the statistic in the "statistic" extension to 0?
ah I can be found in the world stats folder?
Yes
Hey there, is it possible to use one placeholder inside another? I have a chat plugin that won't accept a placeholder as its colouring code as it needs to be RGB not hex, but I can use another placeholder to convert hex to RGB, but I can't seem to see how, if at all, I can use that colour placeholder inside the colour converting placeholder
Try using {second_placeholder) inside the first one
It may ot may not work
Pretty sure PlayerList works with LuckPerms + Vault. As long as you have those it should work just fine.
Thank you! Iโll try it ๐
(With {}s not %%s)
๐
hey, none of the placeholders from ANY plugin work after updating Spigot to the lastest 1.16.5 version
?startuplog
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.
seems to be a problem with the prison plugin from what I can tell
that's just the error prison gives, but no placeholders from any other plugins work either
send the startup log then ^^
I told prison dev, he says it's likely an issue with Spigot/Bukkit update broke something.
https://paste.helpch.at/eqifirokak.md
said it should be reported
I mean, even %player_name% doesn't work
strange. the error soeems to appear when it loads Prison. NOthing else.
is it a custom prison plugin?
custom? meaning?
it's the alpha release from the discord
but I've been using this same version for 4 weeks, and today is the only time it's not working
yeah but what Prison plugin? Can you link it?
because Idk how it can be a problem with PLaceholderAPI Since it registers all the other expansions and breaks when it reaches Prison.
hmm
what surprises me is that it's always worked before, and we have someone else, using an earlier prison version that has the exact same error
can you restart the server and don't execute any prison command
just /papi parse me %player_name%
see if it works
then execute /prison placeholders reload
and see if that same command will work after
/papi parse me %player_name% returns my name, properly now
/prison placeholders reload gives the same error
do you want logs?
well then its clearly not a PlaceholderAPI error. Its something to do with the prison plugin. I've got no idea what but if the placeholders work with /papi parse me then the plugin works
nothing I Can do about that
Doesn't look like PAPI is registering my placeholders
er
its not retaining them
[18:12:10 ERROR]: Could not pass event PluginDisableEvent to PlaceholderAPI v2.10.9
[18:12:10 ERROR]: Suspected Plugins:
[18:12:10 ERROR]: grakkit{enabled,ver=4.1.3,path=plugins/grakkit-4.1.3.server.jar}
[18:12:10 ERROR]: PlaceholderAPI{enabled,ver=2.10.9,path=plugins/PlaceholderAPI-2.10.9.jar}```
Wait do I need to unregister my placeholders in the onDisable method?
Is there a placeholder addon I can use to assign like a colour to a user, like a placeholder for a user's favourite colour or something? I want to use it to format a chat plugin
Hmmm I'm not sure
My server dies now
Every time I /stop or anythiong
it just complains
> [18:12:10 ERROR]: Could not pass event PluginDisableEvent to PlaceholderAPI v2.10.9
> [18:12:10 ERROR]: Suspected Plugins:
> [18:12:10 ERROR]: grakkit{enabled,ver=4.1.3,path=plugins/grakkit-4.1.3.server.jar}
๐ข
wha
[18:32:52 ERROR]: Suspected Plugins:
[18:32:52 ERROR]: PlaceholderAPI{enabled,ver=2.10.9,path=plugins/PlaceholderAPI-2.10.9.jar}
[18:32:52 ERROR]: Exception details below:
com.oracle.truffle.polyglot.PolyglotIllegalStateException: The Context is already closed.
at com.oracle.truffle.polyglot.PolyglotContextImpl.checkClosed(PolyglotContextImpl.java:714) ~[org.graalvm.truffle:?]
at ```
theres more but its being a baby head
Hi
When I put the vault placeholder% vault_eco_balance_formatted%, this causes for example $ 1,000,000 to be seen as 1M, but this only goes up to Q, then M, B, T, Q and then normal digits start to appear and no more letters
Please, I've been asking for help for 3 days but I can't find a solution!
How do I easily change the color of a placeholder? Some placeholders I have are just including color codes and it's very hard to get them out, I get I can use JS but is there an easier way to do this?
The javascript-extension for placeholderapi is no longer working with JVM 16. I see it doesn't work on anything higher then JVM 11. I have also tried GraalVM CE 21.1.0 JVM 16 and it has the same problem. Any fixes possibly? Maybe an alternative?
I currently have my Placeholders setup all in 1 class, but I want to organize them into multiple.
How can I use the same identifier in both classes?
When I use the same identifier in both, one breaks
have one class extend PlaceholderExpansion but then u can seperate the logic of the placeholders in multiple classes, then call these in the onRequest method
Thanks!
hello it is possible to list the players but don t show the play how are in vanish?
All of my placeholders are broken. I restarted the server multiple times
the PlayerList expansion
send over the startup log
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.
It got a lot of things
if you know javascript you could probably use the javascript expansion for this.
Any e ample
Ok thanks
Please respect the rules, be patient and don't ping staff members!
I fixed it. The formatter expansion doesn't work
Please respect the rules, be patient and don't ping staff members!
ah Ic. well glad you found a fix ๐
Hi, perhaps a bit of a beginner question, but I couldn't find a whole lot material about it online. Is it possible to nest placeholders? As I tried the following, which did not work: "%world_seed_%player_world%%"
Oh I noticed Discord removed some of the _, not sure how to disable that
some expansion support nesting using bracket placeholders
%placeholder_{other-placeholder}%
but not all of them. The developer of those expansions need to add support for them
2 ways usually to do this. either use \ or put them inside codeblocks
so like this \_ or `_`
Ah I see, thank you! Let me quickly try that out to see if it works
just took a look at the code and it doesn't look like that's possible I'm afraid.
for this expansion
but you could always use the javascript expansion to make your own placeholder
Yea it's not working indeed, the placeholders does get 'resolved', but just ends up blank
Oh wow didn't know this, thanks again haha!
function getWorldSeed() {
var world = args.length == 0 ? BukkitServer.getWorld(args[0]) : BukkitPlayer.getWorld()
return world.getSeed().toString()
}
getWorldSeed()
```here
this javascript code should get you the world seed
I'll tell you in a second how to make it work step by step
Seems correct to me, didn't even know all of this was possible, just started messing around with placeholders like hours ago lol. Just to verify, by default it's not possible to make the World expansion from papi just take the current world automatically?
- FIrst of all download the javascript expansion:
/papi ecloud download JavaScriptthen/papi reload - Go to
plugins/PlaceholderAPI/javascript_placeholders.ymland add this:yml seed: file: seed.js engine: javascript - Save the file and do
/papi reload - Go to
plugins/PlaceholderAPI/javascriptand you'll find aseed.jsfile in there. Put the code I Just gave you above in that file - Save the file and do
/papi reload - TRy the placeholder:
/papi parse me %javascript_seed_WORLD-NAME%or just/papi parse me %javascript_seed%. First one returns the seed for a world you want by using its name, second one returns the seed of the world the player is in.
Right now, no. If you knew java you could edit the expansion yourself but I assume you don't have any java knowledge
but you can just follow the steps I just gave you and it will be a lot easier
It's working, thank you!
Ah according to the github page of the world expansion: "For placeholders which has the argument <world>, you can name the argument to the specific world, or symbol "$" (without ") as local world"
[19:01:31] [Server thread/WARN]: [PlaceholderAPI] Task #38 for PlaceholderAPI v2.10.9 generated an exception
java.lang.NullPointerException: null
wtf
How can I fix?
Help pls
?startuplog
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.
@austere hawk send over the startup log ^
[19:18:07] [Server thread/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:1604) ~[?:1.8.0_292]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Caused by: java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:686) ~[?:1.8.0_292]
at java.util.zip.ZipFile.getEntry(ZipFile.java:315) ~[?:1.8.0_292]
at java.util.jar.JarFile.getEntry(JarFile.java:240) ~[?:1.8.0_292]
at java.util.jar.JarFile.getJarEntry(JarFile.java:223) ~[?:1.8.0_292]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:120) ~[server.jar:git-Paper-33d42c8e]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:104) ~[server.jar:git-Paper-33d42c8e]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:405) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_292]
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
When i /papi reload
please sue paste bins and send a startup log
It only gives me an error when I reload, the expansions don't update
oh true. I Didn't see that. welp... xD
No worries, feel bad that you had to code that now unnecessary (for me at least) javascript function
alr then. will let good support help you and I'll just mind my own business. I'm asking for a startup log, you give me an error ...
What do you need the startup log for?
well if that's how you want this to go.. I Don't have time for this. Just reinstall PlaceholderAPI. From the error it looks like it might be a corrupted jar. Not sure tho since apparently I Can't have a startup log.
gtg now. someone else will help you if reinstalling is not enough
%math_{value}/100000)_% M
Why not work?
[Math] Invalid Placeholder detected!
[20:04:54 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_{value}/100000)%
[20:04:54 WARN]: [PlaceholderAPI] [Math] Cause: Not allowed placeholder-syntax '%math<text>_%'
ugh what is value?
`money:
placeholder: '%vault_eco_balance%'
rules:
- ">=1000000;%math_{vault_eco_balance_fixed}/100000_%M"`
The placeholder does not return the value with M
ah
did you know that vault has an already formatted placeholder?
%vault_eco_balance_formatted%
and there's also a formatter expansion
it seems like he's trying to make his own formatted placeholders
Yes, but it only comes to Q
that won't work btw. that formats only by adding commas or dots etc.
idk about number format. never used it
I do not know how to use it
i send
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
download that expansion
i send one more thing
/papi download javascript
/papi reload
i'm trying to find my file
@mint fable btw when you've got some time, read my last message here please. I need some input from you https://github.com/extendedclip/DeluxeMenus/issues/2
I don't know how to program in JS
ahh
he's already made it you just have to add it to your server
ok
aha
var exp = parseInt("50912");
function formatNum(num){
var suffixes = ['', 'k', 'm', 'b', 't', 'qd', 'qn'];
var decimals = 2;
for(i=0;i<suffixes.length;i++){
if(num>=1000){
num = (num/1000);
} else {
return num.toFixed(decimals)+suffixes[i];
}
}
return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}
formatNum(exp);
so
k,m,b,t,Q,Qt,S
all you have to do besides saving this script (follow https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script for tutorial)
is change your suffixes and the placeholder
you can change that yourself
instead of parseInt("50912") make it parseInt("%placeholder%")
and remember it has to be the raw number, no commas or anything else
ok
var exp = parseInt("%vault_eco_balance_fixed%");
function formatNum(num){
var suffixes = ['', 'k', 'm', 'b', 't', 'Q', 'Qt', 'S'];
var decimals = 2;
for(i=0;i<suffixes.length;i++){
if(num>=1000){
num = (num/1000);
} else {
return num.toFixed(decimals)+suffixes[i];
}
}
return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}
formatNum(exp);```
here
changed it for you
noice
well cj when u got 2 minutes check my link pls. ty
what have you tried?
did you save the javascript as a .js file in your server/plugins/PlaceholderAPI/javascripts folder?
I see NaN
and define it in the config?
yeah
what did you type to see NaN?
I gave myself 1Q and it comes out written NaN
NaN
eco give myname 1000000
which placeholder sorry
%javascript_name%
can I see your javascript config?
ok
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
soldifatti: file: money.js engine: nashorn
yeah
var exp = parseInt("%soldifatti%");
function formatNum(num){
var suffixes = ['', 'K', 'M', 'B', 'T', 'Q', 'Qt', 'S'];
var decimals = 2;
for(i=0;i<suffixes.length;i++){
if(num>=1000){
num = (num/1000);
} else {
return num.toFixed(decimals)+suffixes[i];
}
}
return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}
formatNum(exp);
oh no no
this
use this
your placeholder is not %soldifatti%
ah
nah he changed the suffixes @turbid tide
the one I sent is exactly what you need
the placeholder is %vault_eco_balance_fixed%
oh nvm then
so change that and try again
so what do i wear?
replace parseInt("soldifatti") to parseInt("vault_eco_balance_fixed% in yours
to %vault_eco_balance_fixed% in yours
%javascript_soldifatti%
more prefixes he means
suffix*
btw cj why not add it to the community scripts ?
I was gonna
just edit the page if you've got access to it. which most likely you do
what does it say
only reaches 9.22Qt
how much do you have
1Sextillions
yeah
umm
What can I do?
type /papi parse me %vault_eco_balance_fixed%
what does that say
9.22qt? (but the whole number)
yes
bruh
bruh i'm lazy
I don't know
How can I see?
just run those commands
it will download the latest
latest papi dev build is here: https://ci.extendedclip.com/job/Placeholderapi
if you wanna see if that helps/fixes it
do you use essentials btw? as your economy? Bcz you might also have to increase the max amount in there
he has 1s
So I download this?
oh. mb then
ye, it's weird
yes, download the dev build
ok
1st 2nd or 3thrd
PlaceholderAPI-2.10.10-DEV-123-javadoc.jar 96.18 KB visualizza
PlaceholderAPI-2.10.10-DEV-123-sources.jar 85.18 KB visualizza
PlaceholderAPI-2.10.10-DEV-123.jar
3rd
they might be using Long and not BigINteger then
same
yeah they were pretty sure. at least the api requires doubles
when you want to add/take
9.22qt
Should I delete the folder of papi?
no
the fixed makes it a long
I did it then
so we need to get rid of that
hi i had question, is any possibility to make gradient hex colored placeholder? i had for example %essentialsnick% and i want it to be gradiented
I always see 9.22qt
I haven't deleted it
what does /papi parse me %vault_eco_balance% return
because we need to use that I believe and strip/change the formatting on it
1.01E23
Bruh
you could try and use the RGBPlaceholder expansion
That's why I wanted to use Math, but it doesn't work
%rgb_gradient_#<HEX>:#<HEX>_{essentials_nickname}%
What can I do then
the issue lies in the fact that the _fixed placeholder returns a long
ah
will try thanks
is it not OS? you could fork it and change it maybe? idk
Bruh
?
I've been looking for a solution for this for days and days but still nothing
a
ah you'd have to format the string
So what do I do
?
i wonder if you can do it in javascript or not
a
Do such a thing if the money is more than or equal to 1S (in numbers) divide it by 1S and add "S" to it
idk
?
I'm not 100% sure, but try Number instead of parseInt
ok
not fixed
no fixed
this time
because that's max 9.22Qt
oh it shows 9.22Qt?
y
did you use fixed
did you use var exp = Number("%vault_eco_balance_fixed%"); or var exp = Number("%vault_eco_balance%");?
you should use the second one
without fixed
fvck vault
Maybe because the fixed reaches 9.22Qt I don't know
sort of
Badly written code
Man, the important thing is that we have solved it;)
I really don't know how to thank you "
ye
how
very nice
prego
sei italiano?
no ๐
ahahaha
mmh
Nice
it should parse placeholders yeah.
the bracket ones
huh?
it goes from T to QT?
a
00S,00Q,00q,00t,00b,00m,00t,000
wtf
it makes sense
๐
sextillion, quintillion, quadrillion, trillion, billion, million, thousand
yes
St?
Ok it works I just got confused
why not Sp
mmh ok
๐
ok, thanks for everything, you were really very kind, now I have to go, bye !!
Guys everyone who joins [LocalTime] Couldn't get X_gamer_x5's timezone. Will use default timezone.
i dont think its papi related but yea
pretty sure that is from the LocalTIme expansion. NOt 100% sure tho
what does it mean? how do i fix that
You can't really fix it. It just can't find the player's time zone
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#suffix-format @turbid tide
do you use TcpShield or something like that btw? Usually those break that
not that i know
well usually it happens when it can't get the location of a player from their IP so it doesn't know what time zone they are in by default
what do i add and where? (path)
I don't think there is a way to disable that message
you should have named it Number formatting or something like that
it will probably draw people's attention more
i dont know
It is
nice
yes it is
you can delete it if you don't use it, but you can't disable that message
you can just ignore it or delete the expansion
completely
%localtime_time_HH:mm aaa%
lmao. idk its to much imo. If you go over 1b its already insane
it gives somthing random
but yteah nice
not random
well they are commented out
your server must be located in GMT+1 then
imma change the time in my server
like France, Germany something like that
tbh
idk if changing the time in your server will affect. pretty sure it takes it from the ip
the server is right after my door ๐
where do you live then?
israel
huh then that's weird. Isn't it 1:31 AM there?
my "server"s time is not set lmao
ah
๐
nice ๐
unfortunettly it doesnt work for other plugins placeholders, for example if i put %rgb_gradient_#aaff22:#ffffff_{tps}% it shows only tps text with colors but not working metric
Well its not a PlaceholderAPI placeholder. nothing you can really do about that
oh :/ okey
when i use this placeholder% math_0: 0_1 + ({luckperms_meta_vote})% for on a new player it doesn't work because its default step meta 0 (but nothing) i wanted to know if you have a solution against that?
your best chance is probably making a javascript placeholder
not as nice and easy but can't think of anything else
Where can I report a bug?
Depends for what plugin?
placeholderapi
well you can report it here first. If its just user error then we can help. if its an actual bug you'll be prompted to the place where to report it so the developers can see it
Ok so I know many developers won't like this
But uptime is important for my server so
My plugins work with plugman
The thing is, when I reload my plugin, every placeholder is fine
Just for currently online players
When a new player after the plugin reload joins, placeholders for that player won't work (On my expansion)
But methods of my plugin work, as their names and everything appears correctly on my custom chat
are you sure its just with placeholders? Have you tried sending some debug messages or something like that?
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Oh, okay xD
yeah so I can tell you from now this most likely won't be fixed or looked into bcz most devs here if not all hate plugman bcz it can break things and its way to much work for saving a couple seconds to restart the server. But you can open an issue on github if you want to give it a try I guess: https://github.com/PlaceholderAPI/PlaceholderAPI/issues
Shouln't be hard to fix (I think)
As other placeholder work
This is only with new players joining
But here is the problem https://imgur.com/a/UTDI8vx
well you can open a issue or also you can PR the changes yourself if you know what you're doing and how to do it.
Everything is fine on chat but the tablist (Using the placeholders from papi) won't work with new players joining
I just want to make sure it's not a problem of my expansion first
yeah when you're sure its not that probably opening an issue is the best.
The expansion works fine the first time
But after reload, it breaks for new players
Maybe it's with my registering and unregistering of the expansion
But theorically papi should be able to register a expansion while running, right?
I mean, papi is not the one being reloaded with plugman, it's my plugin
Internal, a class of my plugin
yeah
Then yes
yeah then make sure its not an issue with your expansion I guess and then open an issue on github
Ok, thanks
Hi,
can I create replaceholders?
Example: 0-30 ping green, 31 - 60 yellow, 61+ red
That's quite easy to accomplish with Javascript placeholders
Though you have to kind of understand javascript
or just use the existing placeholder?
o.o
%player_ping_color% I think its called
maybe they want it for something else
maybe but they didn't ask it for something else. I gave them what they asked for xD
I need this
Please respect the rules, be patient and don't ping staff members!
Ohh sorry for ping
Thx blitz
I have little problem. Placeholder showing me 0 and it is gray
Hi
yo
Help me with math expansion
[Math] Cause: '1,000+1' is not a valid Math-Expression.
WTF
did you use %math_1000+1%?
ohhh
ah
you'll need an unformatted version of tokens
so without the comma, since that's not a numerical thing
which expansion is tokens from
probably %RevEnchants_TokensFormatted%
it gives you 1.000+1?
yea
oh boy
bruh
well, you'll need to talk to the developer of that plugin and get him to add a placeholder without any formatting
a
hm often Formatted means it add extra symbols like k or similar. You donยดt have other placeholder to use?
what placeholder?
%player_ping_color%
Np
I have placeholder but with commas
hi, im making a menu using deluxemenus and i want to make like profile of OTHER players, but placeholders display my stats and thing not other players and i dont know how to do it
use the parseother expansion
for example %parseother_{{target}}_{player_name}% where {target} is an argument
you could also use placeholders there
oh boi
like %parseother_{some-placeholder}_{player_name}%
You can use JavaScript to remove the , and decimals.
I think you can change it in placeholder folder in the yml file.
I cant make my deluxemenu's run commands from console that include the players username
is there a placehodler that allows this?
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
How, help me
Please respect the rules, be patient and don't ping staff members!
@flint nacelle
how to hook into papi?
Hello!
When i am using PlaceholderAPI on a 1.12.2 magma server, it gives a warning. ( i know magma propably isn't supported, basically it's like cauldron, so forge + spigot )
Is there a simple way to fix this?
failed to download expansion information
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
it's just that you tried to download an expansion called information from the PlaceholderAPI ecloud while none exist with this name
Ahh yeah that too
you can check all available there
can someone explain to me how can i round up numbers in PAPI math
im too dumb
- "&dโฆ &f&lSPD: &f%math_{mmoitems_stat_movement_speed}*1000%"
it gives me 100.000
how do I round that up to 100?
for some reasion [precision:0] at the end makes my api not work at all
it got updated, it's not [precision:0] anymore but
%math_0:0_{mmoitems_stat_movement_speed}*1000%
thank you good sir have a nice day
upgrade ur java version
a
How pls
the formatter expansion requires java 11, ur on java 8. (side note: when 1.17 is released, paper will require a minimum of java 11 too)
(16*)
ok
and
pretty sure thats for the client, which will be bundled just like java already is with mc
For this?
afaik any way
server has to do it as well?
I have placeholder with commas, he told me to use javascript, but i don't know how to use it
which placeholder
and i can't use Math
try %RevEnchants_TokensFormatted%
server != client
altho i will check soon and see if paper has said anything on the matter / updated their java version warning when starting the server
It only comes to billions
yeah but it's Minecraft entirely
Format only B no further
that's upgrading to Java 16
ah, idk then
I wanted to create a conditional placeholder, with math and a plugin, but it has commas that number, told me to use javascript to remove commas
Can you help me?
/papi ecloud download Javascript
/papi reload
go in /plugins/PlaceholderAPI/ and open javascript_placeholders.yml, add
tokens:
file: tokens.js
```in it
then go in `/plugins/PlaceholderAPI/javascripts` and create a file called `tokens.js`
open that file and put this in it:
```js
function tokens() {
var pl = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%RevEnchants_Tokens%").replace(",","")
}
tokens()
then use %javascript_tokens% to get your tokens
and yeah they said it and updated in the warning as well as shown in the screen I sent above
ye ur right, apologies
no need to apologize, you didn't know, that's fine ๐
hey can anyone help me my placeholder %bungee_total% not working
hello even me how to show the a particular server count in npc
have u downloaded the bungee expansion
yes
please help me also kaiber
oh sorry my mistake i not downloaded it now its workin
if this is through citizens, citizens does not support placeholderapi directly.
what u can do is put a hologram (holographicdisplays, holographic extension, protocollib) in place of the NPC name, then use the %server_online% placeholder in that hologram
i did but it shows the current server count
oh sorry u said particular, u can use the bungee expansion then
%bungee_<servername>%
oh let me try it
bro but this placeholder not working in scoreboard
what scoreboard plugin
hm
featherboard
featherboard uses mvdwplaceholderapi instead, however u can use {placeholderapi_<placeholderapi_placeholder_here_without_%%>}
Thanks alot
{placeholderapi_bungee_total} ?
yup should work
yea its workin thx
np
Yup wow ty
hey can u tell me a placeholder for server time ?
Please respect the rules, be patient and don't ping staff members!
actual time or world time?
if its server time u can this %server_time_<SimpleDateFormat>% (https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html)
%world_time_<world>% - for world time
make sure to download the expansions
Not work
Bruh
yes
oh right ๐
?
function tokens() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%RevEnchants_Tokens%").replace(",","")
}
tokens()
try that
k
Returns but with commas
1 Million return 1000,000
and 1 billion 1000,000,000
@junior musk
mmh
i have sended u a pic in dm can u tell that placeholder
function tokens() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%RevEnchants_Tokens%").replace("/,/g","")
}
tokens()
So what can be done?
try that
server_time
read the info sent in the other message
maybe that x)
function tokens() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%RevEnchants_Tokens%").replaceAll(",","")
}
tokens()
do I feel this?
idk
not working in scoreboard
now work
what have u put
x)
This word thank u have a nice dayy
๐
{placeholderapi_server_time}
if its server time u can this %server_time_<SimpleDateFormat>% (https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html)
<simpledateformat> ?
whats that?
read the link
[11:43:28 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH ---
[11:43:28 ERROR]: The server has not responded for 10 seconds! Creating thread dump
[11:43:28 ERROR]: ------------------------------
[11:43:28 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
might be better to send the entire log
dont
?
ok
hi so when i use %checkitem_remove_mat:bread,amt:1% on command panels plugin, it takes 2 bread instead of one. is command panels the one having the issues or is it with the checkitem placeholder?
i got an error
if i execute this command /papiu ecloud download statistic i got this error "failed to find an expansion named: statistic
it deletes one bread when a player has bread like it's supposed to
then it's command panels
either that or it's how you're trying to use it in command panels
whenever that placeholder is parsed it will remove the bread
u can manually download the expansion from https://api.extendedclip.com/all/
ok ty
it seems to be like it's being parsed twice
I keep getting this error on server shutdown
[15:15:57 ERROR]: Nag author: 'HelpChat' of 'PlaceholderAPI' about the following: This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies.
hi %vault_eco_top_player_#%, %vault_eco_top_balance_formatted_#% placeholders not working. why? https://doruk.is-inside.me/53rJVM3S.png https://doruk.is-inside.me/nDYMjo5n.png
you have to enable baltop in PlaceholderAPI's config
Hello, How would i make a players name appear ingame with holograms i tried %player_displayname% in holograms but it dosent work (im using the hologrphic displays plugin)
can you help me please?
Please respect the rules, be patient and don't ping staff members!
@wheat smelt you need that to be able to use papi in holographic display 
I use 1.16 and it sais it only supports 1.15
well you have no other choice so try it and see
Ok
it was last updated before 1.16, so it probably just hasn't been officially tested and updated on the page to work
Ok it works thanks so much!
Anyone?
I'm not sure what plugin shows that but I doubt it matters much
do you have aSkyBlock installed?
well the second one is a problem with the Duels plugin
and the first one it seems that the askyblock expansion didn't get registered
?startuplog
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.
send your startup log in a paste
?paste
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
yeah so you paste it
sir why u using leaked plugins
I live in turkey and 1$ = 8.5turkish liras its so much for us
then use free plugins smh
๐จ A user has been banned for using plugin leaks, be like me and use legit copies of plugins.
imagine getting banned and blamed for having no money
imagine breaking the law and expecting support
We didn't blame him for anything. If you don't have money, you don't go about stealing stuff. You either work and get the money to buy that stuff or you live with what you already have
its not food or anything essential to live... its plugins. There are always free alternatives but instead they decided getting them illegally is better than living with what he has
Does anybody know of a placeholder that returns the amount of players in a specific world, not counting NPCโs?
%server_online_<world>%
Thank you
For the placeholder that pings online players of a server, is there a way to combine the count of multiple servers?
ugh you should be able to just place them in there
I'm pretty sure Scoreboard-R supports PAPI
but it doesnt work
probably using the math expansion: %math_0:_{placeholder1}+{placeholder2}%
it saying placeholders in scoreboard
what placeholder is not working?
Where can I download that?
/papi ecloud download Math /papi reload
%player_name% %combatlogx_time_left% and I thing much more
can yo utry /papi parse me %player_name% and tell me what it says?
yes
%player_name%
alr then do these 2 commands in order:
/papi reload```
there is no download command
all you need is to have the combat log x plugin installed
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.
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
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
that does not seem to be the full startup log tho
don't copy your console
copy the startup log that you can find here:
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.
ok
/reload or restart?
restart
hmm there seems to be no expansion loaded. I think you'll have to contact the developer of the plugin and ask them how to get access to the expansion.
;-;
ok
why after restart some plugin saying welcome back
and online players: 1
I didnt add plugin for it
that is probably essentials or authme. idk for sure
no
I didnt add new plugin for welcome
there are plugins that have that feature and you might not know that
I don't know which one it is but its for sure one of your plugins
Please respect the rules, be patient and don't ping staff members!
noic sorry
wdym?
why there is no expansion for UltraPerms
?
bcz the developer of UltraPerms didn't make one. But you can just use the Vault one.
i did not understand
just use this ^^^
I'm using mycommand to make a command alias, and I need to effectively let someone do '/tp (other player name)' but instead of using the TP target's playername, using their essentials nickname. Is there a placeholder that I can use in a custom command that will more or less convert another player's nick into their playername so the custom command can then run as though it had their real name from the start? I tried parseother but it didn't seem to work for me
Hi, how could I generate a random number with %math%?
04:53:27 [ERROR] Throwing
java.lang.RuntimeException: java.lang.IncompatibleClassChangeError: Method 'com.creeperface.nukkit.placeholderapi.api.PlaceholderAPI com.creeperface.nukkit.placeholderapi.api.PlaceholderAPI.getInstance()' must be Methodref constant
at cn.nukkit.scheduler.ServerScheduler.runTasks(ServerScheduler.java:299) [custom.jar:?]
at cn.nukkit.scheduler.ServerScheduler.mainThreadHeartbeat(ServerScheduler.java:277) [custom.jar:?]
at cn.nukkit.Server.tick(Server.java:1173) [custom.jar:?]
at cn.nukkit.Server.tickProcessor(Server.java:938) [custom.jar:?]
at cn.nukkit.Server.start(Server.java:906) [custom.jar:?]
at cn.nukkit.Server.<init>(Server.java:587) [custom.jar:?]
at cn.nukkit.Nukkit.main(Nukkit.java:120) [custom.jar:?]
Caused by: java.lang.IncompatibleClassChangeError: Method 'com.creeperface.nukkit.placeholderapi.api.PlaceholderAPI com.creeperface.nukkit.placeholderapi.api.PlaceholderAPI.getInstance()' must be Methodref constant
at scoretag.TagUpdater.run(TagUpdater.java:19) ~[?:?]
at cn.nukkit.scheduler.TaskHandler.run(TaskHandler.java:99) ~[custom.jar:?]
at cn.nukkit.scheduler.ServerScheduler.runTasks(ServerScheduler.java:296) ~[custom.jar:?]
... 6 more```
I need help
There is no time to wait! Ask your question @gritty pasture!
how do I fix this ??
Did you create this plugin that is causing errors or not?
No I downloaded it
Its the default placeholderapi plugin !?
Version?
Latest one
Sorry I misread a line and thought it was directing to a different plugin
Oh ok
Your spigot version?
Solved, same formula used in Excel
@gleaming charm are you there ?
PlaceholderAPI currently does not support the Nukkit platform.
Nukkit has a PlaceholderAPI plugin but that is not us.
ok
Please respect the rules, be patient and don't ping staff members!
Hello, Everytime i try to list player in holographicdisplay (i have the expansion) its dosent work any help?
i have the ecloud thing installed
I try this one
%listplayers_in_world_<worldname>% their would be an underscore but dc blocks it
i put the world name without the brackets after their
holographicdisplay doesnt supports placeholderapi
you should install holographicexpansion
Is there any option to use placeholders on bungeecord? For example %bungee_ping% placeholders
not natively but there are a few plugins out there that allow for this
I cant find any
Please respect the rules, be patient and don't ping staff members!
Good day. I can't ping my menu I put the domain there but I can't please send it to me as it should be.
input: '%pinger_online_mc.viveland.eu:25569%'
(&e%pinger_players_mc.viveland.eu:25569%&8/&e%pinger_max_mc.viveland.eu:25569%&8)
Does anyone have a list of engines for Javascript extension? Nashorn will no longer work going foward.
Pretty fucking cool concept if you ask me. This literally is a workaround from having to store data in a database.
