#placeholder-api
150650 messages · Page 36 of 151
That's, uh, not your problem. But I see why you'd want to keep it anyway. Fair enough.
last time we did an api break people got mad
eh
@carmine veldt https://github.com/PlaceholderAPI/PlaceholderAPI/pull/549#issuecomment-768040017 are you suggesting that I make a PR where we keep JSONMessage, but implement Adventure for the messages (and just not use JSONMessage)?
Oh wait nvm
wait no i think i'm just an idiot
fixed my comment
what about this? I am assuming you're just keeping it so no
yeah we're keeping jsonmessage
oof outdated
I'll try something but I have school so it'll be in 9-10h 😅
did it anyways x)
/papi ecloud download Javascript
/papi reload
go into your PlaceholderAPI folder in your plugins folder
open javascript_placeholders.yml
add this at the bottom:
uptime:
file: uptime.js
go in the javascripts folder and create a file called staff.js and add
var uptime = "%server_uptime%".split(" ")
var num = 0
for (var i=0; i<uptime.length;i++) {
var type = uptime[i].slice(-1)
var time = parseInt(uptime[i].replace(type,""))
if (type == "d") {
time = time*24*60*60
} else if (type=="h") {
time = time*60*60
} else if (type=="m") {
time = time*60
}
num = num+time
}
num
And then /papi reload
then you can use %javascript_uptime%
tell me if it works
var output = ""
var placeholder = "%placeholder%"
if (placeholder == "" ) {
output = placeholder
}
output
@vast anchor
no just put the placeholder that returns the prefix or the placeholder that returns the suffix there
%vault_prefix% for example
then how do you get the prefix and suffix?
oh, should have said that before
var output = ""
var placeholder = "%staff%"
if (placeholder == "" ) {
output = "("+placeholder+" Staff)"
}
output
but I don't think that %staff% is a valid PlaceholderAPI placeholder, so it probably won't work
I mean why all that?
if ("%playerlist_online,perm,yes,amount,xmishocraft.staff%" == "0") {
""
}
else {
"(" + "%playerlist_online,perm,yes,amount,xmishocraft.staff%" + " Staff)"
}```
actually
there's probably even betters way to improve I gues
Hey, when using the placeholder %time%, i get this weird character
oh i can't send images
@lost belfry,
It's setup like this:
time:
change-interval: 900
texts:
- "&7Hora &b%time%"
- "&7> Hora &b%time% &7<"
- "&7>> Hora &b%time% &7<<"
- "&7>>> Hora &b%time% &7<<<"
- "&7Fecha &b%date%"
- "&7> Fecha &b%date% &7<"
- "&7>> Fecha &b%date% &7<<"
- "&7>>> Fecha &b%date% &7<<<"
please @ me ^^
I'm afraid that %time% is not a PlaceholderAPI placeholder. If you're using TAB I think you need to fix the format in config.yml the option is called placeholders.time-format:
I have a problem on the minecraft server. Specifically with %javascript_rewards-delay_Bank_15% it won't display in the game and I already typed the command /papi ecloud download javascript and I don't know how to fix it. Please help
javascript expansion is meant for you to create your own javascript placeholders. have you created the rewards-delay.js placeholder? that's not something that comes with the expansion.
Okay thanks for your help I didn't know how it worked until the end and this is what I found on the internet and thought would work but oh well
can someone help me for some reason players cant see how many players are in other servers like the placeholder just shows 0 all the time but it works for total players
Hi I am trying to look into a way where I can remove the empty space from placeholders with no data, any ideas
Theres a free alternative now
AjLeaderboards
LeaderHeads isn't great. The API is broke as hell
ive made a javascript but how can i add it to my feathboard scoreboard thru placeholderapi?
can you create your own placeholders?
does anyone know a placehold to count how much of a specific entity exists in a region?
@coarse carbon yeah
@austere hawk,
@mint fable
@austere hawk,
@brisk coral
@austere hawk,
Is there someone who can help with placeholderapi?
?help
why your last 5 messages are 3 pings and two "can someone help me with papi?" @austere hawk
@austere hawk Follow the #rules, don't ping staff. Ask your question, don't ask to ask.
can someone help me for some reason players cant see how many players are in other servers like the placeholder just shows 0 all the time but it works for total players
Anyne have a clue why this happenes
Is there a way you can reset specific statistics?
Can i enable redisbungee support for placeholders?
does anyone know a placehold to count how much of a specific entity exists in a region?
I have one that lists how many players are in a WG region, but not one for entities
/papi ecloud download PlayerList
/papi ecloud download WorldGuard
/papi reload
then use %playerlist_online,placeholder,yes,list,worldguard_region_name||spawn%
if you want it for players
I have a village and I would like to show how many villagers there are
not sure if there's a placeholder for that🤷
tanguygab can u look at my question
here ill put it here again
can someone help me for some reason players cant see how many players are in other servers like the placeholder just shows 0 all the time but it works for total players
is that placeholders problem or bungee
idk
If I've made an expansion - how would I go about submitting it to the PlaceholderAPI ECloud?
do u have an account on the ecloud already?
if not contact funnycube#0001. Also I recommend adding the expansions directly in the plugin if you own the plugin.
It's a standalone expansion for hex colors - I do not have an ecloud account. Would just shooting him a DM probably be best?
yeah. just don't spam him.
just let him know what you want and wait for him to wake up
because you most likely used the wrong server name or the check interval is very high
yes. But you have to do it for each player manually. I mean probably an automated way could be done but the statistics are saved in the world folder in the playerstats folder or whatever its called
Is there a way to get papi placeholders to work on holographic displays? (server version 1.16.4)
holographic displays extension used to work but is outdated i believe
yes sir.; use HolographicExtension. its a plugin you can find on spigot. together with holograpihc dispaly
and no its not outdated
it works 100%
hmm, i've got it installed but doesn't seem to take affect. Is there something i need to do apart from restart the server?
ProtocolLib
https://www.spigotmc.org/resources/holographicextension.18461/
their page says it only supports Supports 1.8-1.15.1
damn. Let me try again, thanks guys 🙂
Gotcha. His DM's are closed - should I attempt to add him as a friend? I'm in no rush, just looking for some guidance lol
Hi I created this expansion https://www.spigotmc.org/resources/buycraft-expansion-placeholderapi.82261/ . It's possibile to create an account here? https://api.extendedclip.com/register/
@balmy marten when you got time please help both of this people make an account? ^ thanks
Could you pm pls. I don't see notifications
Hey I am not sure if this is the right place but for some reason I cant make mysql queries work
there is this placeholder in the config {player} it seems to not be working
What am I missing?
what plugin are you talking about? because {player} is not a placeholderAPI placeholder
PlaceholderAPI/expansions/MySQL/config.yml
I tried /papi ecloud download player
yeah then use %player_name% instead of {player}
/papi ecloud download Player then you have to do /papi reload
I tried that
I am still not getting what I am quering for
Even tho the syntax is right and working in phpmyadmin (changing the placeholder with my username)
The world expandsion is returning the wrong world time when using the %world_time_world% placeholder. is there a way to change it's offset or something?
I've already fixed it in my fork of the expansion.
I'll make a pr in a bit
Accept the friend request and you'll be able to DM me, then send over an email and username you'd like.
@cosmic glen You'll need to do the same.
Can anyone help me
how i can remove the console output from checkitem
[13:42:06 INFO]: 1 [13:42:06 INFO]: 2: 1 [13:42:06 INFO]: 2: 1 [13:42:06 INFO]: 2: 1 [13:42:06 INFO]: 2: 1 [13:42:06 INFO]: yes
O.o
what version
#ecloud-updates @tawdry pecan
you can't get permissions of offline players
it's stored in whatever perm plugin you use's database
not kept in memory
And no, it's not possible to get the perm of offline players
and if you could, it would be insanely resource heavy as those placeholders could be called multiple times a second
Hi !, the placeholders %player_health_rounded% and %player_health_scale%, how do they work? I wanted to know
Wdym “How do they work?”
The health rounded is their current health, the health scale is the highest it could potentially be i believe.
thanks 👍
Hello I am looking for a variable to have the number of plugins on the server
Version 2.10.9
@tawdry pecan,
I meant of checkitem, and I fixed your issue
Ah 2.0.4
How can I update a placeholder on ecloud?
click on ur expansion -> versions -> add version
Thanks
is there a way to add a battlelevels placeholder?
Q: i got some placeholders that are not acting corectly for one player, anyone got any ideas? i updated [ecloud download] all of the expansions
player has 10070 exp (63 levels), but the placehollders i have all show 33966
I assign the same exact exp to myself and it reports correctly/as expected
Question: Am I allowed to use bStat for an expansion?
s
I'm pretty much sure I broke papi in my server..
no placeholders are working big oops
error: https://paste.helpch.at/efaqadimad.apache & https://paste.helpch.at/fehikejequ.bash
apparently vault/player ain't even in the list? https://prnt.sc/xuoeim
they was before and I tried installing again but it ain't working still 🤔
help pls
seems like the EzRanksProExpansion isvrokeb
the broken expansion probably loaded before, stopping the loading process
exact same issue x) EzRanksPro Expansion broken
what's your PAPI version btw?
latest
just remove EzRanksPro?
also make sure it still works on /papi reload
oh well that will work yeah lol
/PlaceholderAPI/Expansions/
check for a (or multiple, which may be the issue) jar with EzRanksPro in the name and remove it/them
yeah all good now
thanks
weird we didnt have this issue on our old machine
just swapped the server to a new one, and noting worked
I need to apply placeholders in a string without a player/offlineplayer object. Is there a formal way of doing this or should i just use the setPlaceholders(null, String). Intended usecase is things like %random_player% or %server_tps%. Wasn't sure if this belong #development or here but cheers in advance 🙂
Hi
Can I get some help
I'm using latest PlaceholderAPI
but Skript's placeholders doesn't work
I know null can be used, i was asking about best practice (if its the propper way of doing it) @junior musk
I think that's how it's intended
Ah ok cheers
%math_{bungee_kitpvp1}+{bungee_kitpvp2}[precision:0]%
for the math ye 
function totalPlayers() {
var total = 0;
var serverPrefix = "kitPvP"
for(var i=1;i<=30;i++){
total = total + parseInt(PlaceholderAPI.static.setPlaceholders("%bungee_"+serverPrefix+i+"%"));
}
return total;
}
totalPlayers();
Tanguygab do I need to add any PlaceholderAPI.setPlaceholders() in that for it to work nowadays?
I think yeah
I can never remember what works and what doesn't
or else, it will either not parse it or count the " and + inside of the placeholder x)
I think I made that one with the version aboody made a while back
and I think you need static before .setPlaceholders
o
that sounds right
@jade bane so you can make that loop any number you want
currently the top loop will do 1-30 for bungee_sw
so bungee_sw1 bungee_sw2 etc.
and the bottom one does skywars 2 and 3 I guess
idk why it starts at 2
but
oh that's why
because he didn't have a bungee_skywars1
it was bungee_skywars bungee_skywars2 bungee_skywars3
(I made this for somebody)
ye
I fixed it up a bit
that should work, and it looks better
👍
?
how did you define it in the javascript placeholders file
you have to define the placeholder in the file
ah ye
where it says static.setPlaceholders
do
setPlaceholders(BukkitPlayer, <the rest>
so just add BukkitPlayer,
should work
no
sorry
PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%bungee_"+serverPrefix+i+"%")
s
setPlaceholders
it was me
you're missing a )
i'm just sending examples here you definitely gotta make sure the formatting/spelling is correct lol
it's all pseudocode in discord for me
that's weird...
it's an int
what script do you have now?
weird
ah...
so maybe it's not parsing the placeholder
/papi parse me %bungee_kitpvp1%
what does that return
and you have 30 servers?
your loop is still configured for 1-30
wait you only have 2
you don't need the javascript placeholder...
i see
either way, just change the 30 to 2
hmm
send script
?codeblocks
btw 
interesting
ugh it makes no sense
you could try restarting
see if that fixes anything
if not, just use the math placeholder for now I guess?
it should be working
/papi parse me %javascript_kitpvp%
no
can you try "5" instead of PlaceholderAPI.static....
just parseInt("5")
see what happens
so
/papi parse me %bungee_kitpvp1% %bungee_kitpvp2%

i got no idea, i gotta take a shower
maybe i can figure out after
function totalPlayers() {
var total = 0;
var serverPrefix = "kitpvp";
for(var i=1;i<=2;i++){
total = total + parseInt(PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%bungee_"+serverPrefix+i+"%"));
}
return total.toFixed();
}
totalPlayers();
that's my last guess
all I did was add toFixed to remove the decimal
and then added a ; after kitpvp
gl
rip
wait but why didn't you go with the math expansion?
oh I see
function totalPlayers() {
var total = 0;
var serverPrefix = "kitpvp";
for(var i=1;i<=2;i++){
total = total + parseInt(PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "bungee_"+serverPrefix+i+"%"));
}
return total.toFixed();
}
totalPlayers();```
here you go
yep
I mean, it's worth a try, but doesn't change the string itself
I'm pretty sure there's some weird thing where it tries to parse the first string which was %bungee_ which when parsed as an int would be 0
wot
that's inside the setPlaceholders function
parseInt parses the return value of the setPlaceholders function
%bungee_ is not the string though
will try to parse the first thing because it finds %bungee_
and thinks its a placeholder
wot
its weird idk
ugh idk I just remebember something. I might be completely wrong. but remember this weird shit happening to someone else
it might just be me going crazy
because what you did doesn't change the inputted string, just the way it's concatted
like most of the times xD
yeah that's why it felt very very weird
when I first heardd about this
if it's somehow parsing %bungee_ before the script is run, that would make sense of what you're saying
but no sense as to why
yeahhh
that was it
fuck
the placeholder was parsed before the setPlaceholders
I remembered something but not the whole thing xD
but with only 1 %?
yeah. pretty sure that's what's happening
well I mean I'll even try the script after this game of csgo
if you want xD
I can't make an account to upload a papi expansion.
u need someone to manually create an account for u
aka funnycube
so whenever hes online give him a shout
ok thanks
i reloaded the server and dont work
i need to add the placeholders and i do /papi reload and theres nothing
ready i installed a super old version
ok i installed World extencion i cant reload but wtih other extencion i can
HELP?
Oh, let me fix that
anyone can help me?
@eternal nacelle
Perhaps send more than 4 words per message and actually describe your issue
i cant send images
@eternal nacelle,
just, I want to put the lives of the players on the scoreboard but I get "PNF"
sorry my english is bad
i need send pics
to show
Then send them.
Hello, with Chatty plugin giving this error, please help me.
https://pastebin.com/Rhw6LCPX
Possible to disable the "yes" console output?
[11:52:37 INFO]: yes
or is there another way to remove the item?
asConsole! papi parse [playerName] %checkitem_remove_namecontains:&9testitem,amt:1%
disabling console output bad
other possibility?
idk what you're trying to achieve
They are parsing a placeholder to remove a certain item from player's inventory @sinful meteor
Thats what checkitem_remove does
But it prints yes to console because the console runs the papi parse cmd
ah okay
Wondering why dm doesnt have a [parse] action yet
Would be good to add that, because it's a bit silly like that. I want a clean console :d
I mean, I guess as long as you don't stop anything from getting logged to the log file then it should be fine
There is this plugins, console spam fix
You can use it to disable certain things from being shown to console
Nobody knows how to help me?
Howdy yall 🙂 Im running 1.16.4 and featherboard. I also have version 2.10.9 of Placeholder API.
For some reason when I try using placeholders for iridum skyblock it aint working.
I ran /papi parse me %iridiumskyblock_midnight_minutes% it returned a value so thats fine but in the s coreboard its just showing the placeholder.
- Resolved. It states compatible with both Papi and MVdWP but I changed to {} and it worked.... so meh 😄
FB uses MVdWPAPI which uses {} so yeah :D
Well not resolved. Cos the other placeholder I want is not on MVdWPAPI. Any work arounds or do i need to contact the dev?
? I have indeed seen this list 😄
Never seen this before 😮
Looks so simple.
So if u had %placeholder%
u could use {*placeholder)
O boi xD I think I got it hahaha
Resolved! %name% = {placeholderapi_name} thanks Tanguygab
||wait what 👀 since when is %name% a PAPI placeholder? x)||
its not xD its just an example to show format for solution 🙂
ah ok lol
Is javascript expansion data saving/loading system completely broken on 1.16.4? Each time i stop the server, use /papi reload or unregister and register the expansion again placeholders cannot load the saved values and keep saving wrong, always the same values onto the file. This happens regardless of my code and persists through server restarts. The only way to fix this is to change the placeholder identifier. Then it starts working as intended but only as long as I do not stop the server, use /papi reload or unregister and etc.
can someone help me
my expansions dont work
https://paste.helpch.at/supelorizu.sql
been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 52.0
so what i have to do?
did you code that expansion or did you just download it?
yeah ok I see who it's from
can you do /papi info World ?
Problem, all placeholderapi placeholders stopped working
They all return their placeholder
Even papi parse
No errors at all
?startuplog
please send a startup log ^
Above
I cant send a screenshot, so I'll just copy it
@undone narwhal,
huh that's weird. can you do a full server restart?
and if it doesn't work after that send the new startup log
nice
Hey guys how can i create custom boolean answers without using java script and i already have in config for boolean false and true but i would like to change text depending on placeholder i am using
and if i must use javascript could someone give me a example
javascript expansion?
Hello, could you help me with this problem?
( In Console: https://pastebin.com/Rhw6LCPX )
@thick sinew Did you try installing a plugin that is in a zip folder.....
I didn't find any plugins, could you send me a link please?
If you are talking about PlaceholderAPI, then in plugins I have PlaceholderAPI.JAR
@jade bane,
hmm so i wanted to see the richest players balance and i get 0.0
the richest player has 1.29M
im using 2.10.9
my servers version of bukkit is 1.8.8-RO.1-SNAPSHOT
Hello i need help Vault place holders not working in HolographicDisplays
You need HolographicExtension
i think thats the name
=plugin HolographicExtension
oh ima try that ty 😀
Hi could someone update the expansion's placeholders list on github? "BuyCraftAPI"
Anyone here know how to do java script placeholders?
Hi. I have problems with Math placeholders: %math_{server_online} - {premiumvanish_playercount}%
Returns zero.
any help?
do /papi parse me %server_online% then /papi parse me %premiumvanish_playercount% and tell me what both return
okei
yes. if you want to learn how to set one up yourself here is the wiki: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
5 and 2
now do /papi parse me %math_3-1%
0
huh
yes. zero.
do /papi ecloud download Math then /papi reload to be sure you have the latest version of Math
you make an update?
and you're 100% sure you've used this /papi parse me %math_3-1% ?
and not another command?
hmm what's your server version?
i can't send a photo
@little ridge,
1.15.2
hmm I'm very confused. I've been looking and can't seem to find anything like this.
https://pastebin.com/7mQhMFbG what does this mean?
okei
?ecloudblock
@twin sluice ^
How do I PlaceholderAPI#setPlaceholders() without converting my & to a \u00A7
Is there a way I can do a calculation with the value of 2 placeholders? Want to show the total claim points, but the only way that seams possible is sum the amount accrued with the bonus amount
the Math expansion do /papi ecloud download Math then /papi reload and you can use it like this: %math_{placeholder_1}+{placeholder_2}%
what does MVDW have to do with this?
I'm using featherboard, that uses mvdw
ah yeah that won't work
you'll have to make a custom javascript then or I think they have their own math expansion
tysm
Does anyone in here have experience with RedisBungee and its placeholders?
they don't seem to want to work for featherboard
Featherboard doesn't support PAPI
You have to use MVDW placeholders (I believe there is a placeholder to get papis tho)
right
maybe that's why it doesn't work 🤷
forgot to mention that's not why
okay
bc I did the mvdw placeholder :p
Tux doesn't really maintain it anymore so I may need to search for another solution
check ur last mentions history 🤷♂️
Can i know why when i reload the jsexpansion /jsexpansion reload, it said 0 script reloaded? I already follow the instructions on https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
0 script loaded
Well yeah , i tried putting my own script at first, then it showed this. So i tried follow the instructions from github but same also
can you show me your plugins/PlaceholderAPI/javascript_placeholders.yml file?
copy paste here?
?paste
use one of these ^
and now can you make a screenshot of your plugins/PlaceholderAPI/javascripts folder?
like show me what files exist
yep
also before you do that. do /papi reload
it might just fix it xD
if not send the photo
hmm
i mean like even the hello_world expansion doesnt work..
can you do again and check the console? or maybe even a server restart
and send a startup log
?startuplog
If your java version is in jdk 15, you'll probably not gonna see the engine
To confirm, check config.yml in placeholderapi and enable debug mode
if they're on java 15 they have to set engine to graal
and it looks like this based on the error
That is, when they have GraalVM on their machine
I dont understand well, mind explain more?
Busy rn, sorry
what's your java version?
ah I see so idk what GrallVM is but you can try and see if you have it. in your plugins/PlaceholderAPI/javascript_placeholders.yml do this: yml example: file: example.js engine: graal hello_world: file: hello_world.js engine: graal test: file: test.js engine: graal test2: file: test2.js engine: graal
see if it works. if not you'll have to either get GraalVM which idk how or downgrade to a java lower than 15
Sure, let me try
it graal.js =)
but that only works if your server has the GraalVM jdk on it and not simply jdk 15
Welp, its not worked. I guess i downgrade to lower java and see if it works again. Btw thanks guys
people use 8 or 11 generally
go with 11 btw
paper 1.17 won't support lower anymore
so its better to be ready xD
probably to be updated as its generally a good thing ¯_(ツ)_/¯
Hi. Any news about the Math expansion placeholder bug?
anyone knows how to use placeholder api on holographics displays?
Depends on the plugin doing the holographic displays. If it has placeholderapi support
Hello i get a error with a JavaScript placeholder that i downloaded.
lore.js code https://paste.helpch.at/eyovowojaw.js
Version: 1.12.2
ERROR [PAPI] [Javascript-Expansion] An error occurred while executing the script 'lore':
INFO TypeError: null has no such function "hasLore" in <eval> at line number 9
does papi support a identifier that is made out of multiple underscores? like: %myplugin_deaths_top1%
oh nvm. Seems like it does
I'm assuming papi3 is still whenever it's ready
Hello, could you help me with this problem?
( In Console: https://pastebin.com/Rhw6LCPX )
Could someone update placeholders list on github? (BuyCraftAPI)
you'll have to do that yourself thru a PR
PR?
Pull Request
y api %vault_eco_balance% is not working?
and y vault expansion is not even showing at the papi list ?
its about?
i have in my 1.16.5 MC Server Featherboard, but placeholders are not working.
have you downloaded it? /papi ecloud download Vault then /papi reload
PAPI placeholders?
and how are you using it? {placeholderapi_PLACEHOLDER} ?
Wym?
Yes
I also restarted the server
what is the exact placeholder you're putting in the scoreboard Aultra?
and you're 100% sure you got Vault the plugin installed?
?startuplog
then send this ^
Im trying use that tho, but it isnt working.
I also checked the expansion file
what is that? Like show me what you're using. that's what I mean
can you send the startup log then? Follow the instructions from the bot
Ok
I cant use placeholders in my featherboard,.
I have no idea how to fix.
Is there a 1.16.5 version of placeholdersAPI?
here @delicate vapor ^
Thanks
lets try if its working now
Okay
its still not working in my featherboard
Im using now featherboard
But i want to use X, Y and Z
And i want The balance in my scoreboard, but i cant get it in.
but the exact placeholder
%player_x%
And i have %vault_eco_balance%
for that use {placeholderapi_vault_eco_balance}
well its just adding {placeholderapi_ }
and removing the %
so for %player_y% is {placeholderapi_player_y}
do you see the pattern?
{placeholderapi_statistic_player_kills}
yeah /papi ecloud download Statistic then /papi reload
{placeholderapi_statistic_deaths}
In my scoreboard is says "Unknown statistic'player_deaths, chekc (link)' "
Thanks!
Its fixd all
Really nice, someone fix new gradients placeholder extension some work. It is big update to my menus 👍
If you meant me, it was one I try some get last update in June or July, some not work.
And new person release a own version for couple of days. Really nice done.
Only send thanks here.
can I get link?
because its not on the ecloud
I find it in ecloud updates on dc, is name is RGBPlaceholders
Only manually downloads work so far.
ah its a new expansion. yep yep. thought its the gradient expansion. k then
Rip 😫 yea that one is dead, has send issue on his github (and still nothing has happened).
This what I see, do same thing (almost, the biggest difference is this one work).
yeah the developer stopped working on it.
I'm getting this error https://paste.helpch.at/umisovobus.cs
not sure why papi is giving me a hard time tonight
figured out the above error, now I need to figure out why it don't like this line on a javascript placeholder return Math.trunc(weeklytemp);
probably nashorn doesn't have Math.trunc. it might also want it as a number not a string.
you can just do return parseInt(weeklytemp)I think
it will automaticly truncate
weeklytemp is anumber
well then do toFixed(0)
when I make changes it seems to give errors it I use papi reload
try the one I just gave you
yes it returned NaN
do /papi parse me %autorank_weekly_time_of_player% and tell me what does it say?
not working now
Staartvin has put the expansion in Autorank now, does it still need ot be registered on the ecloud
no
rebooting server to see if fixes it
make sure you don't have the old expansion still. go to plugins/placeholderapi/expansions and make sure there isn't an autorank one in there
now I can parse the placeholder
not sure how I get 2 out of 111
should be 1 hour, since 111 is 1 hour 51 mins
ugh with my placeholder?
maybe I'm doing th math wrong in my head
you're using this right? https://paste.helpch.at/xiqanexuku.js
almost
test your now
but when I make changes it breaks placeholders for autorank
not sure if any other placeholders break
yours returns 2 also, guess it rounds up
what if you return it without .toFixed(0) ?
1.9333333333333333333333
engine: nashorn
try return Math.floor(number) then
any
java isn't javascript
dkim
what engine can I use for javascript placeholders
it matters wwhat java version you are
everytime I make changes to the javascript and then reload papi the Autorank placeholders stop working
math.floor threw error https://paste.helpch.at/nodipeqego.bash
to use math.floor do I have to use a different engine?
different engines do not exist yet.
ok, I think my server is on java 8 should I update?
not sure if the OS will handle 11

well I was able to find the commands to update to Java 11 and math.floor works fine
?paste
welp @icy crypt turns out you don't have Vault installed. The plugin I mean
wait
nvm Its working
nice
?paste
UMBER) which is not a depend. softdepend or loadbefore of this plugin.``` what should i do?
Unfortunately you can't
absolutely nothing. that's not an error. its just spigot letting you know something is happening.
why is it a warning tho?
I see those a lot. Just ignore them. Just spigot being picky.
Hello, could you help me with this problem?
( In Console: https://pastebin.com/Rhw6LCPX )
@thick sinew Did you try uploading something in a zip file.
No
I downloaded it from the site and immediately put it in plugins
Downloaded what
Plugins, papi and chatty
Btw everything was fine before.
Before I installed the latest version of the paper core
Hello, what can i do:
command: /cmi tpaccept %player%
conditions:
placeholder_api:
- "%parseother_{%player%}_{checkitem_namecontains:&9testitem}%;equals;Yes"```
%player% in parseother does not work, right? But my plugin has to check the other player name. How do I do that? Without %% it doesn't work either.
how can I fix this
so I setted a delay for a kit of 7 days
but when I use %essentials_kit_time_until_available_kitname%
it returns 6 days 48 hours
why does papi not hook into plugins which has built in placeholders after a reload?
make sure the expansion has persiste() set as true
they work fine until I reload papi
where do I find this setting?
It's not a setting. It's a method that the expansion's dev needs to add if the expansion is internal (in the plugin)
It's all on the wiki
Ideas? 🙂
Been fixed by plug-in developer
- "%parseother_{player_name}_{checkitem_namecontains:&9testitem}%;equals;Yes"
This does not work because /cmi tpaccept %player% only outputs the other player. The CommandConditions plugin only seems to read the %player% variable. or do placeholders also work in commands?
So when I use "%parseother_{player_name}_{checkitem_namecontains:&9testitem}%;equals;Yes", only my inventory is checked for the item, but not that of the other player.
Has a plugin too some not can handle reload (placeholders stop work), seams like he has stop update the plugin too (no update for at least 8 moth).
you dont use dev build on papi? If not update
I use the latest version from spigot
of placeholderapi
however, this issue happens only if the delay is greater than 6 days
yea is known bug. He is slow update on spigot, so use dev build it is fixed 🙂
how do make sure that all groups are checked ?
view_requirement:
requirements:
permission:
type: has permission
permission: group.shell1
permission: group.shell2
permission: group.shell3
permission: group.shell4
permission: group.shell5
permission: group.shell6
permission: group.shell7
permission: group.shell8
permission: group.shell9```
And you can use an example of what I want through ( javascript)
hello, I recently got placeholder api and I'm wondering if I can use it with holographicdisplays (the plugin) to show how many players are online, in a hologram
u can, but holographicdisplays doesnt support PAPI natively, so u have to use the holographic extension plugin to allow this
=plugin HolographicExtension
🙄
🤣
You can make it like this. you need add all other groups, only show part of this (more or less copy and paste).
view_requirement:
requirements:
permission:
type: has permission
permission: group.shell1
permission1:
type: has permission
permission: group.shell2```
or java-script like this,you only need one of the perms (you need javascript expansion too). all info how to download here https://api.extendedclip.com/expansions/javascript/
view_requirement:
requirements:
permission:
type: javascript
expression: '"%player_has_permission_group.shell1%" == "yes" || "%player_has_permission_group.shell2%" == "yes"'
If it shall check you has all groups is like this.
view_requirement:
requirements:
permission:
type: javascript
expression: '"%player_has_permission_group.shell1%" == "yes" && "%player_has_permission_group.shell2%" == "yes"'
hello! why is it that when i do /papi ecloud download Factions and /papi reload it doesn't add factions? it just doesn't put it on the list and placeholder doesn't work, i assume this is a common issue.
@slate holly Try restarting the server
hello
how I use %checkitem_enchantments:<>% placeholder?
I cannot perform it well
and this error appears
@sturdy raft can you try this?
oh nice
Hi I need some help. My players want me to add a hologram infront of each portal that leads to each world like SMP that shows how many players are in that world currently. And I was told to first test if the PAPI is working so I did %player% in the holograms and it didn't work, my PAPI is up to date, holographic displays up to date, protocollib up to date, HolographicExtension was just downloaded. What am I missing?
you want to show how many players are in certain world right?
Yes, I it's all one server btw, so I want it to show how many players are in a world, like SotF, SMP, Spleef, etc
./papi ecloud download server
and use %server_online_<world>%
for %player% use {player}
requires protocollib
or you can do
{world: <world name>, [other world names]}
Players online in a specific world (example: {online: world_nether}). Combine multiple worlds by separating them with a comma (example: {world: world, world_nether}).
It surprisingly actually works now lmao, even though I did /papi ecloud download server and /papi reload early and it didn't work. But now slight problem. When I did the %server_online_sotf% it replaced it with the number, but it just says 0. And there are 9 people in there
try {online: soft}
Same thing, 0
Would that mean something in the config is messed up? Cos I doubt it. I'm using PAPI/Protocollib for another hologram in spleef with everyones wins, and it works
hm
0 again
yeah but server has one as well but seems to not work for him.
It literally just puts that whole thing in the hologram XD
did you download the expansion?
/papi ecloud download PlayerList then /papi reload ?
ye he's using HD+HE
I have NO clue what HotKinsS is lmao
@visual yacht is a person
indeed
OH
xD
XD
XD
the person that suggested %world_players_<world>%
I thought that was a plugin lmaoo
lmao
sry my bad
Yeah no, it literally just shows the literal text I typed in the hologram lmao. I'm doing something wrong 100% XD
We got SOMEWHERE with the ProtocolLib way {whatever} but it just kept saying 0
/papi parse me <placeholder>
can you parse it and see if it outputs?
ah yes 
I... think...? XD
maybe he's just been using an invalid world name this entire time?
we guys are just confusing him lmao with all these options
Yeah I'm confused af lmao, Also I parsed myself (Just learned what that is) it works
%server_online_<world>%
%world_players_<world>%
%playerlist_online,world,yes,amount,<world>%
lol
The worlds I have are named Lobby, SotF, Spleef, and SMP, right now I'm trying to set up holograms in the Lobby to say how many people are in the other worlds, like SotF
Like literally that's what they're called, I created them with multiverse
also <world> will become lobby not <lobby>
so be careful with that as well
seen people not removing <>
Nah I always remove the <> I aint dumb XD but lemme try again
wouldn't it become Lobby
you sure HolographicExtension is working?
did it work in the parse? (don't know if we checked)
well Lobby yeah if your world is uppercase
I did /papi parse me yeet and it said yeet to me, so
/papi parse me %server_online_SofT%
oh xD
that command is to see what placeholders return xD
it will literally return any text you put in but will also try to parse placeholders xD
It returned with 5 which is... lemme check...
idk lmao, I can see everyone in the server. We'll say it's correct
ok now if you add that to a hologram?
GASP holy sht it works, IT SAYS 6!!
🤔
xD nice
Idk what I did different but hey XD
maybe the world name is case sensitive?
probably wrong world name or something.
i dunno
it is case sensitive
😂
rofl
Oh last question lmao, how long does it take for the online number to update. Cos someone joined SMP while it said 0 online, and after I think 30 seconds it didn't change until I changed the text
I think it's in the papi config
Gracias. And now this is my very last question. Why do I always pronounce PAPI, as papi, like, dad, or whatever XD
because
cause its papi
just like herobrine
/daddy
xd
but you can still add it with the Daddy expansion
/papi ecloud download daddy then /papi relaod
LMAO
and then /daddy parse will work
Holy sht it does XD It doesn't autofill but it's a command
lmao, well either way thank you guys so much XD at one point my brain did light on fire cos y'all were suggesting completely different things at the same time, but aye, it works XD
Plugins, papi and chatty
Btw everything was fine before.
Before I installed the latest version of the paper core
i have and it did not work.
the expansion is infact in the expansions folder but reloading papi does not count it in, it says 3 placeholders enabled when Factions is the 4th.
@slate holly Do you get any errors in the console?
when i start the server or when i reload papi?
Either one
[13:58:43 WARN]: [PlaceholderAPI] factions is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
@thick sinew Paper core? You mean paper spigot?
@slate holly The dev of factions needs to update the expansion.
would using an older version of factions work? or is the issue with papi
The issue is that the expansion is outdated and needs to be updated.
alright, thank you.
hi i use expansions MySQL
Can it be done somehow? (what's below)
query: SELECT name,id FROM XYZ WHERE `id` = '%mysql_ZYX%'
why ? 😦
because there can be sql injections if you don't want use prepared statements
Is there another way to use %player% from another plugin in paseother?
player_name does not work. The plugin only checks the %player% variable.
what I was trying to do
command:
/cmi tpaccept %player% ->
condition:
%parseother_{player_name}_{checkitem_namecontains:&9Testitem}%;equals;Yes
%parseother_{player}_{checkitem_namecontains:&9Testitem}%;equals;Yes
%parseother_{%player%}_{checkitem_namecontains:&9Testitem}%;equals;Yes
Hi, is there a way for the placeholder %essentials_kit_time_until_available_kitname% to output just a number value, rather than #s (has s for seconds after it)
I have a problem with luckperms, I use the placeholder %luckperms_expiry_time_perms% and doesn t show the corect time for 1 month, in my console it says that the permission was suscesful set for 1 month and when I check the placeholder with parse me and on on other line that contains the placeholder shows 6 days and 10 hours
but for 1 day works
Hi, I'm trying to use CrazyEnvoy's cooldown timer in a hologram, it says you can use {envoy_cooldown} to show the timer but it doesn't work, am I missing something? my Papi, protocollib, holographic displays and holographic displays extension are all up to date
(Yes I know this isn't CrazyEnvoy but Im hoping someone might know, cos I can't join their discord since Spigot website it down)
ask on discord.gg/luckperms
:/
Hi guys, i'm having issue with PAPI and specifically the bungee plugin. Can anyone help. It's showing 0 for total even though, it's not 0 lol
I tried to post an image but the bot didn't like it
I noticed there is a 30 second delay. I have run the command and wait 1 minute, then run it again and it still displays 0
Restarting the proxy doesn't help at all sadly
has you check config.yml in PlaceholderAPI folder?
And for images, use imgur
That's all thats in there
@cedar hinge wdym
So when i load up the server my placeholders work fine. Then when i download an expansion then reload the plugin my plugins placeholders no longer work. If i restart the server they do.
oh wait as in you are writing a plugin.
yes
#development was the right place but just override the persist method and make it return true
in which class?
the one that extends PlaceholderExpansion or whatever its called
working for me, but I run it in the lobby/hub (I don´t know were you try it). And with lobby i mean server where the proxy run.
how would i do that?
@Override
public boolean persist() { return true; }``` iirc
In all servers i run it in i get 0 :/ I am reall yunsure what to do
np
and you has done it in lobby/proxy?
What version of papi and bungee you use?
I run it in the lobby, i can't run it in the proxy because its a spigot plugin...?
Plugin: PlaceholderAPI (2.10.9)
Proxy: Waterfall #395
I try on PlaceholderAPI-2.10.10-DEV-118 and bungee 2.0 and waterfall-1.16-390 server is on paper 400
I mean on the server connected to the bungee (but should be no different what server you try on, I realize now).
Does someone know why my placeholdersAPI not working on bungee cord?
Don't forget to download the Expansions
I PMed you.
@limber ice Unknown expansion.
can someone help me find a marker that shows the current world time please?
where do i find the world expansion?
/papi ecloud download World Then /papi reload
says it failed to find the world expansion
try world Instead of World
also does not work = (
