#placeholder-api
150650 messages · Page 8 of 151
explain "didn't work"
so when i tab reload
it spams tab saying
"The provided value was invalid! Reason:Unknown"
id send screenie but it doesnt work
👀
oh wait you want to show it under your player name ?
do /papi list
like in tags?
pretty sure you can't use placeholders there
might be wrong
but I've tried a few times
not under playername
in tab
next to the player name
in between the ping and name
maybe im using the config wrong
tabprefix: '%vault-prefix%'
tagprefix: '%vault-prefix%%eglow_glowcolor%'
tagsuffix: '%afk%'
customtabname: '%nick%'
customtagname: '%essentialsnick%'
tabsuffix: '%math_{player_health}/2%'```
my papi list has
math
eglow
healthbar
magic
tab
what does /papi parse me %math_{player_health}/2% return?
also try %math_{player_health}/2[precision:0]%
oh welp xD
the only way tab's automatic expansion downloading doesn't trigger and there are complaints immediately
Hmm?
why does the voteparty plugin placeholders work for the premium version?
#spigot-linking
thanks.
Hello! im dev on a bungee network and the papi is not working
we first thougt it was vault
but it wasent cus we tride diffrent api-s
then we thougt it was the scoreboard plugin so we changed and no resutalt
so im now here bc i think there is something wrong with papi
and i have never had this problem before and i have used papi for 3 years!
pls help
What placeholders are you using? You can test them with /papi parse me %placeholder%
wdym
It just returns what comes after me
for example /papi parse me %vault_rank% just returns %vault_rank%
Have you recently upgraded?
Try downloading expansions: /papi ecloud download vault
/papi reload
Yes, but now its says that:An internal error occurred while attemting to perfrom this command
and i have reinstalled multiple times
any help?
if you sent the log I bet it would tell you that you can't connect to the ecloud
so you'll have to manually download it
@snow bolt ^
18.07 22:27:47 [Server] ERROR [PlaceholderAPI] CloudPass is currently using a deprecated method to hook into PlaceholderAPI. Placeholders for that plugin no longer work. Please consult [Fazal] and urge them to update it ASAP.
Anyone know how to resolve this or how we can get into contact with "fazal"
its a custom jar
Shouldn't you know him if he made it for you?
Your options are to
- Contact him
- Downgrade PlaceholderAPI and risk breaking everything else
ok
i know fazal not well but can message him, which spigot of his are you running?
This is the error:
10:22:06 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.10.6
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[server.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[server.jar:git-Spigot-21fe707-e1ebe52]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [server.jar:git-Spigot-21fe707-e1ebe52]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_242]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_242]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-21fe707-e1ebe52]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-21fe707-e1ebe52]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
Caused by: java.lang.NoClassDefFoundError: net/luckperms/api/LuckPerms
at me.lucko.luckperms.placeholders.LuckPermsExpansion.canRegister(LuckPermsExpansion.java:48) ~[?:?]
at me.clip.placeholderapi.expansion.ExpansionManager.registerExpansion(ExpansionManager.java:110) ~[?:?]
at me.clip.placeholderapi.expansion.ExpansionManager.registerAllExpansions(ExpansionManager.java:174) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPIPlugin.reloadConf(PlaceholderAPIPlugin.java:186) ~[?:?]
at me.clip.placeholderapi.commands.PlaceholderAPICommands.onCommand(PlaceholderAPICommands.java:261) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:4
@snow bolt,
Im not sure if it works on bungee
you need LuckPerms on Spigot too
Hello, could I ask why placeholder %localtime_timezone_467,d. MM. H:mm% doesnt work properly? Thats my timezone and its always minus two hours from my time.. Tried to change the timezone ID to something else but still same result. Thanks for answer.
Wanted to post screenshot but I can't. Yes I got: 19. 07. 12:08, as I said.. minus two hours. @austere hawk
I m not expert in PlaceholderAPI so u gotta wait for someone else sorry
blitzz, were u ale to fix my issue?
or do i gotta resend the screenshots
I did what you said but theres still not a space and just says {javascript_tags_spacing} in essentilasChat now..
Do you have the expansion, and what does %javascript_tags_spacing% return when parsed
/papi parse %javascript_tags% ?
Whatever your placeholder is named yes
says papi help, did i type it wrong?
@turbid tide What's the esschat papi parser shit called?
Austin, /papi parse me %placeholder%
(Didn't see that you were missing that)
chat injector?
does this
i have chatinjector
https://gyazo.com/f52eb5dab5ddd91994b7d5570bf02ed2 javascript.yml and tags_spacing.js https://gyazo.com/d6905c1f13e5f7aa0d62ca37f9f8ea41
Have you reloaded papi?
yes
I just did it again and downloaded DeluxeTags for it /papi ecloud download DeluxeTags and nothing works for some reason..
Do you have the javascript expansion?
is that a plugin?
or u mean /papi ecloud download javascript? because i did that yesterday
No it’s a papi expansion
And have you reloaded papi afterwards?
Pastebin smh
@turbid tide React with the paste emoji, on mobile so phisically can't
oh do i need to use the helpchat personal paste?
it didnt save last time so i used pastebin i will try again
It's easier to read, pastebin is light theme, and the formatting on it is fucked for mobile
?paste
You can click usage if you aren't sure on how to use it
https://paste.helpch.at/ixoseyoter.md did that work? it shows blank on my screen
i can try again if i didnt
It worked yea, sec
okay
No,
tags_spacing:
file: tags_spacing.js
engine: nashorn
then /papi reload?
i reloaded but it didnt work still shows javascript_tags_spacing weird
in chat
Read what console says and see if it loaded the js properly
Show me your javascript.yml file
:what the hell:
Delete the entirety of the js things, as well as the expansion, then restart the server, redownload the expansion, reload papi and try with the files again
so delete javascripts folder and yml or what
alrighty restarting
didnt work frosty
i redownloaded javascript as there wasnt one there after deleting it, reloaded it and it still wont work
and now tags_spacing dont show up in javascript.yml
ugh
idk why it never wokrs
It is, I'm currently driving home from vacation so I can't assist you, wait for someone else who has time
Also no need to ask in other channels kek
Any idea how i can do switch for javascript with PAPI ?
What?
Like if %x% is 1 he return a if 2 then b if 3 then c
This but in PAPI
I'm pretty bad with js for now
You use it the same way as you would in java
I got script error so i think i'm just not good with that
Show what u got
is blittz back?
Hello!
I've found 5 wrong placeholders.
Placeholderapi, redprotect, and infinitescoreboard is installed and running,
why do u need to escape a %?
Hello, could I ask why placeholder %localtime_timezone_467,d. MM. H:mm% doesnt work properly? Thats my timezone and its always minus two hours from my time.. Tried to change the timezone ID to something else but still same result. Thanks for answer.
yo do y'all know if there's a placeholder that shows the amount of loaded worlds you have on your server? If not, how would I make one?
something like server#getWorlds
maybe the world expansion has that?
nope
doesn't seem like it
then, the solution to all our problems....
JAVASCRIPT
Could've suggested me to update the expansion 😂
yeah thats an easy placeholder to add
might pr server expansion tomorrow 😳
@rare lily unless u wanna do it?
You say that you want to show the amount, not names 
oh my bad*, I meant the names of the loaded worlds.
number could also be a nice addition i guess
anyone have news for PAPI 1.16?
See the pinned message for dev builds
please formulate that sentence properly
go to /plugins/PlaceholderAPI/expansions folder and delete it there
I can't!!! minehut doesnt let me!!!
I can see the files but it blocks me from removing the expansion files!
please im so sad because I spent so long and I added this expansion and it runied everything!!!!
I SPENT like A million years
idk contact them and ask them to delete it
@warm topaz
they turned it off to contact!
nothing we can do if minehut doesnt allow u to delete files lol
It does! It just doesnt let me delte the expansion files!!! it deems them "Very Imporant server breaking"
}
get a new host 🤷♂️
^
I cant! I already spent $100 on minehut!
Your loss
$100?!?!?!
Minehut? 🤮
I thught there was a command I didnt know about!!
Get a new host!!!
HOW
email them
A easy way depending on what you have done is reset and reconf/repaste configs
casn you tell the owner of placeholder to add the command to remove the thing!!
they must have an email
Either contact minehut staff, or get a new host
@azure blade read that !!
Or ask on their discord
I READ IT
casn you tell the owner of placeholder to add the command to remove the thing!!
@azure blade there is literally no need for this
Ahh!!
well there isd I thnought it would be a good ideade!
na
Not always!!
hey
do u guys know if there's a placeholder that shows all of the world names u have on ur server?
like hub, creative, survival, etc
that is terrifyingly creepy that this has came suggestion up within 6 hours of each other
?
anyways, ill be adding this placeholder soon™️
wait are u part of the dev team?
no
oh
but anyone is able to add placeholders
but u need to know how to code right?
yes
ah okay
I had an error, when i put the command /papi ecloud download (expansion), the following message appears: No clouds expansions are available at this time
How can i solve that?
hi guys, can i ask for help pls and wait 4 hours to receive it? ty
so my problem is that in leaderheads plugin i get "Received invalid value 4h 27m 55s for placeholder %statistic_time_player% for player "player". Expected a number."
see you in 4 hours if not more because support doesnt want to give dm answers
%statistic_time_player% gives a human readable format
Which leaderheads probably doesnt want
You could try using just %player_time%
Niall, leaderheads question so: CC: @steep thorn
@tropic radish DM me
@brisk coral Can you do the same with me for KiteBoard support?
@heady falcon,
Because I usually miss some of the messages here
👌
how does one spend over $100 on minehut it’s free hosting?
how does one spend over $100 on Fortnite while it’s free?
and btw that would be more #off-topic than in #placeholder-api
That's the whole point of it being free, you spend money on it regardless. That's why companies do it, they want you to spend money.
Any updates on the World placeholder? %world_#_total% returns the number of loaded worlds, not the names.
CC: @rare lily

?
%world_#total%
%world<world>_thunder%```
%world_#_total% returns the number of loaded worlds.
When I try to download the expansions luckperm via ecloud it only gives this message in game: No cloud expansions are available at this time. and no errors in the console for the rets. how do i list this. I have placed all the necessary plugins where appropriate
^
I don't think anyone in existence would show all the names of the world packed in 1 placeholder ._.
This is already disgusting: world,world_nether,world_the_end,test,prison
world, world_nether


I mean world names with spaces in between. Such as world, world1, world2, etc. Some people have uses for them, including me.
Kaliber, didn't you say you were gonna make it? 😉
🙂
The amount of loaded worlds is a nice addition, but having the names of all the worlds loaded would be nice as well. Following worlds loaded (3): Factions, survival, Towny
Javascript 
👍
Are there any placeholders that count the amount of advancements earnt by a player?
Hello, the latest version of Placeholder API on spigot works in 1.16.1 Bungee server ?
check the pinned messages
there's a link to the dev builds which are compatible with 1.16
Papi doesn't support bungee
ah bungee
It's a planned feature though.
oh ok thanks !
but since you asked that same question on TAB's discord, I guess you wanted to use PAPI with TAB on BungeeCord, which is possible since TAB made a bridge to allow PAPI placeholders on its bungeecord version
ok thank you very much for your help ! 🙂
are the dev builds stable
when will papi support 1.16.1?
still in dev?
yes
Yeah we’re still working on performance stuff but the dev builds are functional with no issues
Hello, could you help me with something? I use bungeecord and I want the online players using the Deluxe menus to appear on the server, I explain, I want the menu to show how many players there are in a server being in the lobby
I had an error, when i put the command /papi ecloud download (expansion), the following message appears: No clouds expansions are available at this time
How can i solve that?
?ecloudblock
do as the bot says
Any updates on the world names placeholder? I would do it myself, but I don't know javascript 😭
SO I have an odd (?) question:
My chat provides hover functionality for prefixes in chat. However they must be the vault prefix.
I have the ability to modify the vault prefix, but I'd like to use a placeholder in the prefix (Show faction tag before name)
I know I could just put it in the chat format, but then I can't have hover effects. So I set the prefix with LuckPerms to be a string of placeholders, and it just shows the raw placeholder string.
Is there a way to evaluate such a string?
This is what the chat shows:
(Can't put images)
/papi parse me %luckperms_prefix% results in:
%factionsuuid_faction_relation_color%%factionsuuid_player_role%%factionsuuid_faction_name%
Note: I've also tried with {}
This is my VentureChat config format:
format: '{luckperms_prefix} &f{player_displayname}&8 {ascii_77}&f'
Hello, could you help me with something? I use bungeecord and I want the online players using the Deluxe menus to appear on the server, I explain, I want the menu to show how many players there are in a server being in the lobby
I think you want that ^
So the new PAPI dev builds (102+) have deprecated some older methods, so now-broken plugins need to update?
It's an on-going discussion. Still some changes being made.
Nothing would necessarily break just because we set them as deprecated.
did not read right
We didn't fully remove them (as far as I know, Sxtanna has the lead on the major PR for this update). But I believe we only deprecated stuff for the time being.
but they will most likely in the future ye?
At least one of the plugins we use broke. Works fine up to 101, broken 102+
@rancid minnow ^
I was thinking the same thing, haha.
@grand blade can you provide me with the stacktrace?
It seems to be the only way. Not happy about it.
As I see. 🙂
Dont even use like... 2 versions before 100
they're almost as good as spigot
Because those also have broken shit in them
Don’t be mean
No but fr were literally doing some good things
We're using 101, without apparent errors.
Can you send the stacktrace though?
I'll post a ticket.
maybe
ticket = Github issue. You know --- tracking. Unlike Discord.
ye that makes sense
Not really a ticket, but yes, I get it now.
In the world of technical support, it's called a ticket.
Slime I know you are a good dude who loves those updates but let us work some stuff out and stay on builds > 100 for a day or 2 lol
Sure.
Slime test 102
Can I ask why you post builds to Github until things sort-of work?
Because they aren’t updates
Can I ask why youre pulling builds from github?
Would it not make more sense to pull from spigot?
Where you know its stable?
Because I spend my life testing dev builds.
So then why are you surprised that a dev build is broken?
It's my way of paying back to MC community (well, Spigot community).
Mostly, they aren't.
Slime we’re in the middle of basically making placeholders be parsed 2-4x faster
Oh excuse me Mr. high and mighty
Nah don’t give slime shit he’s a good dude
He's kinda stuck up
He’s not used to us
Nah man he’s a good one. He actually tests shit and reports bugs
he's second tier slime, behind deluxeslime
Hence why he’s even bothering with Jenkins builds
😉
Mhmm
Someone downloading a jar and running it hardly renders them the title "good"
He gives feedback
I could write a program to do exactly that and save the hassle of being talked down to
a sales pitch actually
😂
ur gross but no one says that
i'm high if that matters
Kind of disappointed
I had an error, when i put the command /papi ecloud download (expansion), the following message appears: No clouds expansions are available at this time
How can i solve that?
?ecloudblock
follow the bot ^
Hello guys! Who know how to fix this? [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: example
Are you using ChatControlPro?
Yes
Oof, thank you so much!
Can you make it a faq
?chatcontrolpro
Lol
?chatcontrolpro
@trim mist what was breaking that?
good enough
When CCP loaded after PAPI, it was nullifying the engine after reloading the expansion.
I just forced it to always get it again as a new one until I made a proper fix.
nullying, as in legit setting it to null?
I'd show you but I'm on mobile and they just moved everything to another git repo
They are forcing people to use their mineacademy now for ticket crap
gross
Ew
Can placeholders be checked for OfflinePlayer?
only if the placeholder itself supports it
ah i see. Do you know if that's a problem for many placeholders off hand?
it really depends, do you have any in mind?
basically just common ones that users might use - this is AVPN and people can set placeholders in the kick message for using a VPN, so probably things like Player and Server and maybe Luckperms/other common ones for chat/utilities
oh you're not talking about using them yourself
luckperms doesn't work offline
i know
i think most of player works
server isn't related to the player
not sure
it works for checking perms so id hope it works for papi
but shouldn't the kick message be made before the player is disconnected?
a kick message?
can't use Player cause that's only during/after PlayerLoginEvent
and yeah the whole thing
all during the good ol' APPLE
fair enough lol
/papi parse <player> <placeholder>
if users complain that's on them :kek:
hey random unrelated feature suggestion
/papi parse <OfflinePlayer> <placeholder>
loads the user to memory and then does the thing
@austere hawk you here?
Make sure to read this https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script
I will replace the code from that wiki to the one i will give to you
Hello?
I am reading that right now.
Your gonna be editing the wiki with the world names code?
Not possibly
function getWorldNames() {
var server = BukkitServer;
var worlds = server.getWorlds();
var worldNames = [];
for (int i = 0; i < worlds.length; i++) {
worldNames.push(worlds[i]);
}
return worldNames.join(", ");
}
getWorldNames();```
Whatever your file is named
I figured it out
function getWorldNames() {
var server = BukkitServer;
var worlds = server.getWorlds();
var worldNames = [];
for (i = 0; i < worlds.length; i++) {
worldNames.push(worlds[i]);
}
return worldNames.join(", ");
}
getWorldNames();```
I messed up between Java and js, whoops
ah okay thanks, that returns CraftWorld{name= world}, etc. Is it possible to just list them out like world1, world2, world3?
function getWorldNames() {
var server = BukkitServer;
var worlds = server.getWorlds();
var worldNames = [];
for (i = 0; i < worlds.length; i++) {
worldNames.push(worlds[i].getName());
}
return worldNames.join(", ");
}
getWorldNames();
I mean yea, the objects
appreciate it, that works. going to learn javascript now 👍
I forgot about that..
@brisk coral try BukkitServer.getWorlds().map(world => world.getName()).join(", ");
Imagine pinging me smh, ping thien
@brisk coral
@vivid sparrow i wish I can use that on ECMA5...
@rare lily,
prime reason placeholders should be kotlin
Make the kotlin script expansion then @rancid minnow
@vivid sparrow ok
that will be an amazing addition
https://paste.helpch.at/pegacabewu.md
Exception in thread "AsyncPlayerJoinThread" java.lang.NoSuchMethodError: me/clip/placeholderapi/PlaceholderAPI.setPlaceholders(Lorg/bukkit/entity/Player;Ljava/lang/String;)Ljava/lang/String; (loaded from file:/E:/Eien/plugins/PlaceholderAPI-2.10.7-DEV-107.jar by PluginClassLoader{plugin=PlaceholderAPI v2.10.7-DEV-107, pluginEnabled=true, url=plugins\PlaceholderAPI-2.10.7-DEV-107.jar}) called from class studio.trc.bukkit.litesignin.config.MessageUtil (loaded from file:/E:/Eien/plugins/LiteSignIn.jar by PluginClassLoader{plugin=LiteSignIn v1.3.5, pluginEnabled=true, url=plugins\LiteSignIn.jar}).
Thats only mildly annoying
@last mesa do you mind reporting that deprecation to the maintainers of those plugins?
sure
This problem occurred after I updated the placeholderapi from dev96 to dev107 today
@last mesa you should be able to run the latest build when it finishes compiling
Yeah, technically they would only just have to recompile their plugins and the issue would be gone, but for now I added back that method
thank you
smh Sx
so i know you've probably heard about that often. Statistics expansion not working with 1.12. it's even showing on the damn github.
Stop bitching about it not working on 1.12
but okay, i need to find a way to make it work no matter what, even if it means paying devs to add its support idc
try the jar in the pinned messages
@amber dirge,
Bruh
😆
i get this on startup in 1.16, will 1.16 support be added soon or is there a different scriptengine i should be choosing?
"[PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder:"
u can use the dev builds in the pinned messages for 1.16 support
@rancid minnow what build is stable now?
ik u were messing about with them
the one thats on spigot?
😐
?
i switched to the dev build today but got the same error
@dapper temple is there a stacktrace that accompanies that message?
@warm topaz I'm saying none of them are really stable
You don't find stability in dev builds
You get that with releases
@dapper temple add
engine: 'nashorn' to ur javascript file in javascript_placeholders.yml
¯\_(ツ)_/¯
if i remove it from the config it won't load my javascript, why would i do that
Remove the engine entry
still throws the error even with that removed
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
It seems that your jvm doesnt have the nashorn engine in it then
that seems unlikely since i didn't have this problem when running 1.15.2 on the same machine
Add a debug entry to root of the javascript config section
and set it to true
That will make it print out the available script engine factories
not sure what you mean by the "root of the javascript config section"... i tried this but it did nothing:
expansions:
javascript:
debug: true
engine: javascript
Oh, its actually using the debug value in the root of the papi config itself
so then above the expansions bit even then
no, is not there already. i placed it there, again: no effect.
in yours just not in mine
?
The same default config gets generated for everyone
Can you send your current config please?
can't seem to no let me try again....
Why do you have engine set to javascript?
i don't, it does that auto. I tried removing it and it just puts it back tehre again when the plugin loads
sxtanna do you ever sleep?
Um...
I dont think thats true actually
The default value it writes is "nashorn"
Can you turn the server completely off
Change that value to nashorn, save it, and then start the server
it says "nashorn" in the javascript_placeholders.yml, yes
and i could remove that line without any difficulty... this one in config on the other hand seems unrelated and self-spawning
@mental night no
sure i can try that hold on
smart move
indeed
sleep with one eye open when kalibear is here
👀
i know what you did last summer
ok it kept the setting if i changed it while the server was off, but this had no effect, still cannot load my javascript_placeholder and i have no indication that debugging has done anything
Do you get literally 0 messages when the javascript placeholder is loading?
If debugging is set to true it prints a couple of things
just the same one I've been getting for forever: [20:14:57] [Server thread/WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: showping , nothing else... shows the registring of every other expansion as usual, says nothing else in regards to javascript, not a single extra character about it
can you send whats inside of latest.log please?
i know what you did last summer
@mental night this seems familiar
cant figure out what from
This just straight up doesnt make sense
i'll be back in like 30 or so mintes maybe message me if you come up with something new for me to attempt, i thought the dev build would magically fix this and since it hasn't i'm not really sure how this isn't a known issue so... anyway i'll be back in a bit
sure i'll try that after
It looks like youre using a REALLY old version, that error message was changed like 4 months ago
unregistered it, downloaded new off ecloud says version is 1.5.3 on reload gave identical error
yeah i guess this is broken on my 1.15.2 machine too now for i guess the same reason
and it has a somewhat older version of java on it still, yet it still isn't doing nashorn anymore either i guess? wonder when they took it out
and if they did what are our other options
@dapper temple I mean.... if were considering all options here
You can download the kotlin scripting expansion
lol
so you're saying nashorn is the only availble engine for javascript so people just can't use javascript at all now because java itself no longer supports it?
I suspect theres more fuckery going on here than what is obvious
nashorn is only deprecated atm
It should still work
only information i'm finding so far is that it's the only engine included in the jdk, but any engine should work and... i'm not sure what's in the runtime environment - if anything
[DeluxeMenus] Error in requirement javascript syntax - %luckperms_groups% >= helper
help me
= it's used for numbers
I can not do . to buy only a certain degree that I put it?
that placeholder returns a list of groups inherited by the player you couldn't use >= a list
you'd have to like %luckperms_groups%.forEach(item,index) {and check each item >= some value}
it doesnt work like that
Hello, is there a way to cancel/stop all the following actions if the first condition you put isn't met?
Hello, using placeholder API v2.10.6 works fine, but when using the DEV version 2.10.7 this error is created:
Caused by: java.lang.NullPointerException
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:301) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:630) ~[?:?]
at me.rockyhawk.commandPanels.commandpanels.openGui(commandpanels.java:432) ~[?:?]
at me.rockyhawk.commandPanels.commands.commandpanel.onCommand(commandpanel.java:343) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.16.1.jar:git-Paper-103]
... 27 more
Is there some API changes or does anyone know what the issue is?
.setPlaceholders() is removed?
Show me where you're using it
PlaceholderAPI.setPlaceholders(p, (List<String>) pconfig.getList("panels." + panels + ".item." + item.split("\\s")[c] + section + ".lore"))
I have a feeling it might have to do with using a List<String> but it was working before
the entire thing is here: (line 432)
https://github.com/rockyhawk64/CommandPanels/blob/master/src/me/rockyhawk/commandPanels/commandpanels.java#L432
oh yeah I forgot lol,
it only takes a string now?
I think it always took a string did it not?
idk because version 2.10.6 works fine but 2.10.7 DEV doesn't work anymore
Will OtherPlayer Expansion work if the player I m trying to parse is offline ?
depends on the placeholders
and you can also use the ParseOther expansion, it will let you use all PAPI placeholders
Is there a way to use math expressions with placeholders? For example having 10*%vault_eco_balance% output the player's balance multiplied by 10
%math_{vault_eco_balance}*10%
if you want to round, add [precision:0] before the last %
Is this built in, or does it need an expansion?
expansion
Thank you!
hi, im having problems with a custom placeholder done with javascript_expansion. It just subtract a part of the number it gets from args. Now the problem is, i want to make this placeholder work with commands (ej: /bank deposit %javascript_example_100%), but it returns NaN, and i can't figure out why.
I checked that without putting it on a command line and it work just fine (papi parse me %javascript_example_100% return the desire ammount) and i also checked that "/bank deposit %player_name%" return the player name just fine, so i know for sure is an error on my placeholder
javascript_example_100
sorry i put just example, but is javascript_example
alright i just checked something
the problem is i'm using the placeholder as %javascript_example_{money}%, being money the first args you pass when you open a deluxemenu, and it seems to not work this way, i doubled checked that %javascript_example_100% works fine inside a command
also %javascriptexample{money}% works fine if not put on a command line (see line:19)
Is there some placeholder similar to Kills Stats ?
soon™️ 
Hello! Can someone please help me make a javascript for this placeholder? %vault_eco_balance_fixed%
So the placeholder displays your currency without any decimals or commas, but I want it to have commas between the 3 digits, is it possible to add them?
vault_eco_balance_commas @odd jay ?
Thanks!
Now I wanted to replace all commas with dots since that is how currency works in my country, but there is something I'm missing on my placeholder, and it turns empty: https://hastebin.com/ujevuxaver.js
What could be wrong? can someone help please?
You have no return
@brisk coral removing a method would not cause an NPE
@rancid minnow,
It would cause a NSME
Indeed
@random hazel You're passing null in somewhere
I've been changing papi internals to no longer consume exceptions
If you do something wrong, it's going to tell you now
I do love useless error messages though like “fatal error occurred” with no more information is great fun

Words yes
He messed up both sentences 🤦♂️
What time is it for you?
5pm likely
He's american
he just sleeps
It's 4:30pm here
ohh right about 10 then
It's 10 am
.replace only changes 1 or does it change all the values that it found? and if only replace 1, what should be used to replace all?
my bad
*.replace
"Error has occured: error"
oh wait
youre talking about js
No, in JS, if its not regex, it only replaces the first value it finds


Uhhhh, I don't see an update for 1.16; does it work? (latest version). ||Sorry for nub||
👌 ❤️
Hey guys, I'm having an issue with PAPI.
I have the Player extension installed but %player_name% remains the same.
Use the commands provided in that
do /papi parse me %player_name% @rose rain
But i want everyone to be able to have it.
It's for my scoreboard.
I deleted PAPI and reinstalled it, hopefully that helps.
What scoreboard plugin are you using?
KiteBoard
is placeholderapo been updated for 1.16
Pins.
yea was just checking if that was an actuall 1.16
thanks
sorry to download do i click on #110 build
I wouldn't do anything over 98
and with 98 still work for 1.16
yes
Use the latest so we have feedback on if the latest is broken lol
How do I get papi to work with bungeechat?
I've noticed multiple servers that have the %server_unique_joins% placeholder on their bungee network
Do you know they are accomplishing this?
Would just be on the lobby server if it was using papi
Im setting up goldencrates & I would like to ask what the place holder would be if I want to use money as a reward
./eco give %player% 100 doesn't seen to be working
it sets it to my name
?player
thank you
hi
are their placeholders for ezblocks blocks mined?
how would i use this on holograms
holographic displays
You need to get the holographic extension plugin, and then use it with {} instead of %%
Is there any Placeholder Similar to %askyblock_leaderboard_level_<1-10>% ?
Leaderheads
any other ?
doubtful
ok thx
Hello! Sponge's download servers are down, does anyone happen to have a mirror for the sponge version of PlaceholderAPI?
PlaceholderAPI doesn't have an official Sponge version
papi3 😏
yet*
Hello! Sponge's download servers are down, does anyone happen to have a mirror for the sponge version of PlaceholderAPI?
@ivory fjord
We're not associated with that sponge version
We're working on an official build, but that is still some time away.
np
Where can I find documentation on how to write JavaScript placeholders?
Thank you!
Hey I am looking to talk to the Dev in private chat is that possible?
In regards to?
It's about using the logo
How does Dev have any relation to logo
dw its sorted
Is it possible to use placeholders within a scipt? Or would those placeholders need to be passed as arguments to the javascript placeholder?
@brisk coral One for you ^
@rotund pendant,
Is it possible to use placeholders within a scipt? Or would those placeholders need to be passed as arguments to the within javascript placeholder?
@night owl Yeah it's possible, not sure how off the top of my head, but if you have a google around you'll find it
Thank you!
The answer is certainly
Javascript expansion can't be used as %javascript_top_#% (where # = any number, Something like a leaderboard)
Well technically it can
huh ok thx for info
is there a dev build for papi?
sweet thanks!
are they placeholders for this plugin https://www.spigotmc.org/resources/▶-quests-◀-set-up-goals-for-players.23696/ ?
if just someone would be brave enough to read a wiki once in a while xD https://github.com/LMBishop/Quests/wiki/PlaceholderAPI
welp not everywhere xD. You are welcome
i dont have to download the ecloud thing, do i?
well if they work you don't
if they don't you probably do
hmm seems like there is an expansion
to be downloaded
because it didtn work and I do /papi ecloud download quests it downloads the extention for quests from the other person
ah thanks
oh well no, this is the other quests plugin
yes
try going into plugins/PlaceholderAPI/expansions and delete the Quests one then restart the server and try the placehodlers again without downloading it
it = expansion
no problem
Javascript Placeholder
Why array.includes(element) doesn't work?
try .contains?
Still not working
@fervent jackal can you send the code youre using?
Forget it, i replaced that part with array.indexOf(element) !== -1
I am aware
fc be giving development more perms 😠
https://tenor.com/view/4head-haha-clap-applause-gif-11789360
@rancid minnow People before 2016 never thought that xd
Hey ! Is it possible to get a placeholder value of another server in a bungee cord network ?
¯\_(ツ)_/¯
Charlie ded 
thats the only way i know of
charlie not dead
he isnt dead frosty
I know Kali smh, I got a 200 SC streak with em :p
o
yeah I forgot about that
🤨
I was saying, remember the site where it is posted
Also I've just realised, is your profile picture a helicopter in minecraft?
i can test it to see if it works on 1.16 when i get on pc
but i assume it does already
Also I've just realised, is your profile picture a helicopter in minecraft?
@Niall yeah, I was using MC Heli on 1.7.10 when I started to play Minecraft =)
Lol nice
nerds
still hasn't been updated 😭
I always wanted to try out the flans mod or something
With vehicles
I could never get it to work
In the end I went with MrCrayfish's Vehicle Mod ¯_(ツ)_/¯
can placeholders be passed as arguments inside javascript placeholders?
didnt u get answered earlier?
{placeholder}
like this? %javascript_titleprice,{luckperms_check_permission_title.healer}%
Javascript Placeholder
I want to do something a little complex, I've already tried it in several ways and none of them have worked for me.
There are 3 lists:
var list1 = [];
var list2 = ["perm.one", "perm.two", "perm.three"];
var list3 = ["text1", "text2", "text3"];
I want to verify each element of the second list, if the player has the permission, the text of the third list that is in the same position of the permission will put in the first list
For example, if the player has perm.one and perm.three the first list would look like this:
var list1 = ["text1", "text3"];
index loop
:what:
@night owl no. between the javascript name and first argument there needs to be an underscore not a comma %javascript_titleprice_{luckperms_check_permission_title.healer}%
list2.forEach(function (value, i) {
if (player.hasPermission(value)) {
list1.push(list3[i]);
}
});
@fervent jackal
something like that
I dont know JS like that, but should be along those lines
Does forEach even work in js?
yes?
Interesting
That was it, thank you!
@rancid minnow
Thanks, i will try with that
/papi ecloud download mcMMO /papi reload
`/papi ecloud download mcMMO
/papi reload
sure i have all did
only
mcmmo_power_level
mcmmo_power_level_cap
work
but mcmmo_level_<skillname>
mcmmo_rank_<skillname>
not work
mcMMO maintains their own expansion. You might have better luck in their Discord since they are actively updating that.
but i ask them they said this
you might need to go talk to the papi guys, I don't know how that stuff works
I responded in their support channel and tagged the proper person for you.
okay thx 🙂
@main kettle did you try %mcmmo_level_SWORDS%?
jesus since when does mcmmo cost money??
It's going up to 20 soon.
These dudes..
@main kettle uhhhh
the placeholder totally works
what the hell?
Why did I think that would embed...
@main kettle can u try /papi parse me %mcmmo_level_swords% ?
also check if u have levels in swords
can't reach (can't open the page )
jesus since when does mcmmo cost money??
@rancid minnow it always did
||but you can download it for free from their CI pls dont do this||
ok i have fund why
when i change en_US to zh_TW
then the %mcmmo_level_swords% placeholder will not work
Locale: zh_TW
The locale in mcmMO?
yes
I would report that to them.
Theres also a design change discussion we need to have when youre free @final shadow
Well that was a roller coaster
¯_(ツ)_/¯
Are ya'll adding relational placeholders or is that just mvdw?
Is there somewhere I can read about that to learn what it is?
?
I have no idea what relational placeholders are
I think I read somewhere that it's got to do with multiple plugins interacting or something
I've only read that mvdw is working on adding them and not actually found anything explaining what they are.
I know nothing about anything else
I barely know about papi
but papi has had relational placeholders for a while
since 2018 at least
imajin