#placeholder-api
1 messages ยท Page 162 of 1
error, sending log
Alright
How do I deelete a placeholder?
this part seems relevant
27.06 19:48:54 [Server] INFO Caused by: java.lang.UnsatisfiedLinkError: /tmp/quickjs-1.0.0/libquickjs.so: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /tmp/quickjs-1.0.0/libquickjs.so)
That is quite weird, it seemed to have not required that library on other servers tested on.
Just so we can be sure, try the same after a restart* whenever possible and tag me with the results
How do I deelete a placeholder?
delete a placeholder?
@sharp jay placeholderapi support for 1.17 paper server?
Please respect the rules, be patient and don't ping staff members!
Uh
Ok ty
even after having a server restart, using the newest from #852317810394267708 I get the error in the log below
https://paste.gamesrv.io/hFeVjn40l6
I meant to try with the version I had sent you
. This one
yep, it does, thank you
Great!
I just swaped the world in server properties and my playtime counter reset. Does anyone know, where these statistics are saved? And whether its "transferable"?
The New java script engine provided isn't working for my placeholder
It throws this error
[11:12:23 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: worldtag
[11:12:23 INFO]: [PAPI] [Javascript-Expansion] 0 script loaded!
[11:12:23 INFO]: [PAPI] [Javascript-Expansion] Java version: 16.0.1
Does this jar fix it? #placeholder-api message
Wait so for papi 1.17 in #852317810394267708 do I download just the 1.17 papi plugin or the 1.17 and the two expansions for server and player
If you use the server and player expansions, you need the 1.17 versions of those
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 that ^
@austere hawk first off, do not post in #showcase, second off put it into 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
You uh... don't have Vault installed
I do
That startup log does not show it being enabled
Oh
That's why the expansion won't enable, it can't find the plugin it needs
Ty
Please respect the rules, be patient and don't ping staff members!
Yeah
Please respect the rules, be patient and don't ping staff members!
Still having issues with JS Expansion
Plugin DeluxeMenus v1.13.3-Release generated an exception while executing task 9050
java.lang.UnsatisfiedLinkError: /tmp/quickjs-1.0.0/libquickjs.so: Error loading shared library libstdc++.so.6: No such file or directory (needed by /tmp/quickjs-1.0.0/libquickjs.so)```
@thorn thunder ^
Hi, how to return 1 instead of true and 0 instead of false in placeholder %pinger_isonline_ip:port%? (I want to use it in Math expansion)
Hello, I am having this bug where it saying this in console and it is spamming it a lot.
[10:26:36 WARN]: [PlaceholderAPI] [Math] Cause: '{player' is not a valid number for precision!
[10:26:36 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[10:26:36 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_{player_health}*5[precision```
@thorn thunder
Can anyone help out?
%math_0_{player_health}*5%
its no longer [precision]
you probably have it in a hologram or something
and it spams every time its being accessed
@thorn thunder hey, i tested after a reboot like discussed yesterday, still crashing but from memory i think its a different error
https://pastebin.com/trdT8vPG
nvm same error, here is a part of the log i think is key
28.06 11:34:42 [Server] INFO Caused by: java.lang.UnsatisfiedLinkError: /tmp/quickjs-1.0.0/libquickjs.so: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /tmp/quickjs-1.0.0/libquickjs.so)
as always, thanks for your time
Hello there, is it true that PlaceholderAPI doesnt support AConomy with vault anymore? I used it for a long time but now it stopped working :/
The Aconomy developer says its a bug in placeholderapi's code unfortunately
We don't directly support any plugin. We are simply an API that other plugins hook into.
Alright, so until they find a way to fix it it wont work?
and if there really is a bug, they can always contact. we were never noticed about anything like that
alright! thanks for the reply ๐
One more question. My placeholder for vault economy doesnt get rounded to 2 commas anymore
when a small amount of money gets withdrawed by buying something for example it turns to up to 10 decimals
ugh. it never rounded down to just 2
I tried multiple economy plugins, different version of vault, etc
it was always like this. that's how vault works
it never rounded to 2 decimals unless it had just 2
or less
Yes but how to get it so that it does always round?
because the economy plugins itself do that, just placeholderapi doesnt
ugh well you could get the fixed one, which has no decimals %vault_eco_balance_fixed%
or use javascript to round it yourself I guess
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
you can learn more about the second option here ^
its not placeholderapi. PlaceholderAPI only takes the information that its given from Vault and displays it
Oh okay, well I'll see what I can do then
hi, how do i fix these fail to sets? i.e. [08:56:52 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder:
Do you have the player expansion?
how do i remove it
Please respect the rules, be patient and don't ping staff members!
ugh I gave you the placeholder above
Looks like the plugin is trying to automatically download expansions and it's freaking out.
Not sure why it's automatically trying to do that. We used to do it in PlaceholderAPI over a year ago but we took it out because it was causing problems like this.
"the plugin" being TAB v2.9.1.
yes is there something I could do that?
Ask the developer why it's doing that? It's probably trying to download the player expansion
So you can just do /papi ecloud download player and then /papi reload
Might fix it.
ยฏ_(ใ)_/ยฏ
I told them bout this and they told me to come here :๐
Yeah sorry not sure why they are sending you here, haha.
Try just running the commands I sent you, might fix it.
I have no idea what TAB is trying to do.
I am doing this atm
Im using tab 2.9.1 as well. works fine with latest papi version for me on 1.16.5. I do have the server and player expension
so perhaps its a setting you can change that's causing this that I turned off (or you turned on)
the issue is there I will try and remove the expansion
reboot and add it again!
The issue comes back after you restart again
I deleted the expansions
restarted and the issue was gone After that i restarted again and it came back!
Yeah it's going to keep coming back because it's doing it on startup. Frank did you say it was a config option to turn it off?
Cant see anything
This is really weird... I'm looking through the code of TAB and it looks like it attempts to parse all the placeholders in your scoreboard or whatever on startup and any that fails, it tries to download them from the eCloud... which is not usually how a plugin should handle stuff.
The bottom line here is that TAB is automatically trying to download them and PlaceholderAPI is not liking what it's doing.
Your fix is to look through your scoreboards for all the PAPI placeholders you have and then make sure you have the expansion installed for all of them.
Then and only then does it look like it won't attempt to download more expansions automatically.
Where can I find the lates papi version?
thats the one I am using!
Awesome! ๐
It looks like TAB has a debug mode too btw. If you turn it on, it should tell you all the expansions it's going to try to download.
I will reinstall both plugisn and I will dete papi folder
If that's what you decide, okay.
Well i have no idea
hello guys. error with JavaScript-J2V8
https://paste.gg/p/anonymous/04d1e33bb8ac46aea4785a244a7216b9
with JavaScript-QJS
https://paste.gg/p/anonymous/44870998d37e4b74b302a659d28b9bf2
@thorn thunder ^
i have tried. it works fine but it seems like the variable is updating a little late.
One more question, is there any way to have unicode characters as placeholder? so that it replaces the standard \u0600 to the icon for example?
Is there a way to list all placeholders registered by a plugin? I see the plugin listed when I type /papi list, but looking to see if you can list all possible placeholders from it
think its /papi info <expansion>
that was it, thanks!
on my pc it works normally. but on my server in ApexHosting it doesn't work and throws that error.
will it be the java version?
Unsure about the J2V8 one, fairly sure we're phasing that out as it didn't work as expected. Our current attempt is QJS.
There should be an exception before this on QJS, look through your startup log please
Yugi, is js expansion plugin completely finished so it can be used?
how do you install the expansion? What plugins do I need?
what expansion
Javascript Expansion #852317810394267708
placing the jar inside of the plugins/PlaceholderAPI/expansions folder should be enough
Dude I did it and it spams console still..
Please respect the rules, be patient and don't ping staff members!
it worked thanks
Where is papi server getting %server_name% from?
papi config
How do I fix this??
[18:10:01 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_{player_health}*5%
[18:10:01 WARN]: [PlaceholderAPI] [Math] Cause: '{player' is not a valid number for precision!
[18:10:01 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[18:10:01 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_0_{player_health}*5%
[18:10:01 WARN]: [PlaceholderAPI] [Math] Cause: '{player_health}*5' is not a valid Math-Expression.
[18:10:01 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!```
its been spamming my chat for like 2 days now
Wow. The last place i thought it would of got it from.
ty ๐
is the player expansion installed?
ah
there's a new format
so it will be %math_0:_{player_health}*5%
The placeholder isn't updating? (I have changed the config)
papi reload
Is there any speed per sec plachlder
Pls dony say speedpersec
Some people still seem to be having issues with the new engine, so might take a bit longer
okay, thanks for information
This isnt from the js-expansion, anything else?
not
Is there a right click cps placeholder?
Blitz always had answer but he is offline sadly
but what do i chance
Please respect the rules, be patient and don't ping staff members!
change*
@vivid sparrow Please help.
Please respect the rules, be patient and don't ping staff members!
I have the latest version of placeholder-api installed, what else do i need to install for the placeholders to work correctly?
Expansions
Where can i find that?
Yugi not sure if youre just busy but you didnt reply to my crash report. here is the pastebin
https://pastebin.com/trdT8vPG
in case you simply missed it
This is using QJS and with a full reboot. I'm using ApexHosting, like another person above which had issues
also i dont get anything relevant during startup, just like the other user
/papi reload doesnt work and neither do some placeholders @thorn thunder
Of JS-Expansion?
Alright, Ill look for possible fixes
Anyone here great at using the javascript expansion from papi and has a bit of time to help me?
I'm trying a script but get some errors
What is the error?
This is my script
const redis = require("redis");
const redisClient = new redis.RedisClient({host: '', port: '', password: '', auth_pass: ''})
async function getProxies(){
redisClient.hgetall('heartbeats', async function(err, result){
let playerCount = 0;
for(let proxy in result){
let proxyName = "proxy:"+proxy+":usersOnline";
await redisClient.multi().smembers(proxyName).keys("*").dbsize().exec(function(err, replies){
playerCount += replies[0].length;
console.log(`${replies[0].length} spelers via ${proxy}`);
})
}
await wait(2000);
return playerCount;
})
}```
This is the error [11:01:33 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'playercount': <eval>:1:0 Expected an operand but found const const wait = require("util").promisify(setTimeout); ^ in <eval> at line number 1 at column number 0
I'm trying to get a number from my redis database to get that into a placeholder
Do you understand what i'm trying to do?
You are on the old js-expansion correct?
It doesnt currently suppourt the const keyword, thats part of ES-6
Try with var
Alright
A new error occured [11:12:26 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'playercount': <eval>:7:6 Expected ; but found function async function getProxies(){ ^ in <eval> at line number 7 at column number 6
can you also do /papi parse me %player_health%
and tell me what it says?
that's just javascript syntax. you forgot ;
Well not really
ugh?
It is because the script is put on a single line by papi
did he send the code somewhere?
Where exactly?
put semicolons at the end of definitions
my code
const redisClient = new redis.RedisClient({host: '', port: '', password: '', auth_pass: ''})
I assume at the end
there
Semicolons are optional in js, blitz
I did
I wasn't here for the whole thing xD
but same error
But they need one there
I added ; to the end but same error
Cant be the same error if you have added the semicolon
async function getProxies(){
^ in <eval> at line number 7 at column number 6```
I did /papi reload
What if you remove the async?
redisClient.hgetall('heartbeats', async function(err, result){
^ in <eval> at line number 8 at column number 44```
new error came up
It probably doesnt know what async is
I think so
F
Can i use the new js-expansion by any change then?
Long-story-short dont use js
You can use the new one but it doesnt work on a few specific devices
Depends on availability of glib
What do you mean with devices?
You need atleast a certain version of gcc installed on linux which different versions of linux may have other versions installed
so as long as you have that specific library from that version of gcc it works
Which is why this version is still in early stage
Ill probably switch it out for nashorn, this is getting to be too much of a hassle for a few ms
i'm using nashorn as engine
This also means if we do switch back to nashorn, you still wont get these features
the one in #852317810394267708 doesnt
nashorn implements ES5 with partial suppourt for ES6 and ES7 here and there
QuickJS suppourts ES11 but... issues as mentioned earlier
So there is no way i would get this script tot work?
Hi
Is there an option to create compounded placeholders?
For example I wrote a region selling plugin and want to create this placeholder:
%regionplaceholder_world_regionId_price%
Now of course someone could just use the placeholder with %regionplaceholder_testworld_testregion_price%
But can I somehow create the placeholder name from other placeholders? For example %regionplaceholder_(%player_world%)_(%arm_regionfromlocation%)_price% and let PAPI replace the placeholders %player_world% and %arm_regionfromlocation% before evaluating the "big" placeholder?
switch it to use features available under ES5
Yugi, cant we have a different version for each gcc version?
different version of what gab?
Like with different engines?
Just like with the mc versions
If you stay on 1.8 cant use hex colors
@austere hawk use {} for placeholders inside other placeholders
That could work, but wont that be harder to provide support for with different people working on different engines and implementation limits?
@vivid sparrow Thanks ^^
Can we add a command to papi js to check the gcc version and output what ES version they can use?
yes
I would personally not mind having multiple js jars / implementations
But idk how hard that would be to achieve
Does it even have to be multiple jars?
Even better
Go for it
@carmine veldt @trim mist Opinions?
Please respect the rules, be patient and don't ping staff members!
Thanks barry
Does this gcc thing have to be installed on the OS? Is not possible to package it on the js expansion or whatever?
Switch it to what?
Dont think so, needs to be installed on the os, requires elevated permissions I think
Ic
Older ecma specifications
English Yugi
It's a long time ago that i used javascript
There are multiple implementations of javascript
Search how to do async requests on ES5
The version that nashorn implements is the 2016 standard
You are using features from 2018 and such, which wont work
Thanks
I will ask one of my friends to help
I completely forgot it
haha
Don't think you guys will reprogram it to es5...
hello
hello
@thorn thunder what's wrong with qjs
great
well then yea ig putting multiple engines in the expansion isn't a bad idea
in the meantime I might try downgrade javet to v8 8
if that's worthwhile
Awesome
is there a way to get redis players from redis bungee
You should probably talk this out in DMs instead
o
So i found a fix for my problem @vivid sparrow
Please respect the rules, be patient and don't ping staff members!
I was using javascript because the redisbungee placeholders don't work anymore
Limework created an awesome fork that is getting updates.
See https://github.com/Limework/RedisBungee
Now they tried to get the newest placeholders pushed to papi but it got ignored.
I think that it is a great idea to let them update redisbungee expansion
I will read over it sometime on a work break today if no one else has yet. We didn't ignore it, we've just been really busy elsewhere.
Awesome!
it literally does nothing.
Please respect the rules, be patient and don't ping staff members!
idk what thaty means... it should return an output
[09:20:14 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_0_{player_health}*5%
[09:20:14 WARN]: [PlaceholderAPI] [Math] Cause: '{player_health}*5' is not a valid Math-Expression.
[09:20:14 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[09:20:14 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_{player_health}*5[precision:0]%
[09:20:14 WARN]: [PlaceholderAPI] [Math] Cause: '{player' is not a valid number for precision!
[09:20:14 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[09:20:14 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_{player_health}*5%
[09:20:14 WARN]: [PlaceholderAPI] [Math] Cause: '{player' is not a valid number for precision!
[09:20:14 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[09:20:14 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_0_{player_health}*5%
[09:20:14 WARN]: [PlaceholderAPI] [Math] Cause: '{player_health}*5' is not a valid Math-Expression.
[09:20:14 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[09:20:14 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_{player_health}*5[precision:0]%```
What does this mean!!
would you please just tell me what I've asked?
and once again
its invalid because of [precision:0]
and probably because you don't have the player expansion
How do I fix that
first of all /papi ecloud download Player then /papi reload then change every %math_{player_health}*5[precision:0]% to %math_0:_{player_health}*5%
the thing is i dont know where to find where i cna change it
where you've used it...
I've got no idea where you've used it.. menus, holograms, scoreboards etc
i did this command
and it was for tab
/tab group _OTHER_ belowname %math_{player_health}*5[precision:0]% &cHP
you can either change it by doing the same command with the placeholder Blitz told you or by editing the belowname in your _OTHER_ section of your Groups section in your TAB config
Do you you use latest version of math? It has not precision any more in new versions.
How would I get the latest version of math?
use the same download command again
papi ecloud download math
papi reload
tabsuffix: '%afk%'
tagsuffix: '%afk%'
customtabname: '%essentialsnick%'
customtagname: '%essentialsnick%'
belowname: '%math_0_{player_health}*5% &cHP'``` in tab config <<<
Please respect the rules, be patient and don't ping staff members!
I did
in newer versions of math, precision is replaced with %math_0_{blah} <- 0 being the precision here
tabsuffix: '%afk%'
tagsuffix: '%afk%'
customtabname: '%essentialsnick%'
customtagname: '%essentialsnick%'
belowname: '%math_0_{player_health}*5% &cHP'``` so is this correct?
try and see
Bruh its still spamming chat
Whenever I try to remove the placeholder itself it just adds itself again..
@balmy marten Since I can't write you private messages and I can't add you as a friend. I am writing you here. Can you create me an account for the eCloud?
Please respect the rules, be patient and don't ping staff members!
I have another question regarding palceholder compounding
I made 3 placeholders
%arm_regioncount_sold_regionkind_<Some-regionkind-name-here>% <-- displays the number of sold regions that belong to a specific regionkind
%arm_regionplaceholder_world_<Some-regionId-here>_regionkind% <-- replaces a massage with the plugininternal placeholders that belong to a region. In this case the corresponding regionkind name
%arm_regionid% <-- Displays regionId at the location of the player
I want to compound these placeholders together so the placeholder shows me the number of sold regions that belong to the same regionkind that the region belongs to that I'm currently standing in.
The resulting placeholder would be:
%arm_regioncount_sold_regionkind_{arm_regionplaceholder_world_{arm_regionid}_regionkind}%
I use the method
identifier = PlaceholderAPI.setBracketPlaceholders(offlinePlayer, identifier);
to replace placeholders in placeholders. The problem is that if PAPI always tries to evaluate the internal placeholders it begins it's evaluation process at the first closing bracket, which results in an invalid result.
This is what PAPI tries to evaluate first: arm_regionplaceholder_world_{arm_regionid
This is what should be evaluated fist: arm_regionplaceholder_world_{arm_regionid}_regionkind
Am I using the wrong method to replace the internal internal placeholders?
it's the right method, it's just the way it works
^^ u can't have placeholders in placeholders in placeholders. Actually some do it using <> but with their own regex and stuff like that
Is there a dev ver of Papi for 1.17?
yeah. #852317810394267708
Oh, yeah, sorry. I tried that one, was wondering if there was a dev build server around we cna monitor.
Wait
No, I think it is the expansion
Nope
I will try get erroe
oh so server expansion
just /papi ecloud download Server then /papi reload
latest one from ecloud works on 1.17
what engine?
JS expansion update
Hmm ok then this are the limitations ๐คทโโ๏ธ
oh yeah the javascript expansion does not work on 1.17 yet. there's development builds rolling out in #852317810394267708 but there is no stable one yet
Is there a placeholder that can calculate 20% of the players balance?
no. unless you know the total
its not supposed to go in plugins
its supposed to go in plugins/PlaceholderAPI/expansions
Can the Math expansion not handle that? I've never used it.
well he probably doesn't have a way to calculate the total
Ahh
I have vault placeholders
yeah. but those don't give the total
per server
you'd have to somehow add the amount for each player up
which is not possible
well as I said, most if not all economy plugins offer 0 way of knowing the total balance
so not really
you can't calculate a percentage of something if you don't know what that something is
I am trying to do it in a GUI. It fills %player% with the player name. %vault_eco_balance% also works in the GUI so the GUI plugin is pulling from the player
yeah but you want to know the percent of the total server economy
No
Actually.
I just want to know 20% of the player's balance
ohh you said players but meant to say player's xD my bad
yeah
that's totally possible
When EssentialsX releases 2.19.0, they have a method to return the total of all balances.
its on 2.18.x now isn't it?
Ok
Ya
Yes
Let me try that
the 2: is the number of decimals
you can set it to 0
if you don't want any
or 1
3, etc
It worked! Thanks
Hey! I'm trying to make a placeholder that counts the time until 9:45 PM each day via this placeholder %server_countdown_<SimpleDateFormat>_<time>% can someone help me out?
Please respect the rules, be patient and don't ping staff members!
Hey all ๐ Just testing out 2.10.10DEV from #852317810394267708 and am getting this error, was getting it previously with 2.10.9 as well. Looks like our Tablist plugin is trying to call the ping and is producing the warning message as it can't get it. Using Paper 1.17 #63
Any ideas?
29.06 22:27:18 [Server] WARN java.lang.NoSuchFieldException: ping
29.06 22:27:18 [Server] WARN at java.base/java.lang.Class.getDeclaredField(Class.java:2549)
29.06 22:27:18 [Server] WARN at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:49)
29.06 22:27:18 [Server] WARN at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:272)
29.06 22:27:18 [Server] WARN at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:160)
29.06 22:27:18 [Server] WARN at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70)
29.06 22:27:18 [Server] WARN at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98)
29.06 22:27:18 [Server] WARN at hu.montlikadani.tablist.bukkit.utils.Variables.setPlaceholders(Variables.java:209)
29.06 22:27:18 [Server] WARN at hu.montlikadani.tablist.bukkit.utils.Variables.replaceVariables(Variables.java:127)
29.06 22:27:18 [Server] WARN at hu.montlikadani.tablist.bukkit.tablist.TabHandler.sendTab(TabHandler.java:223)
29.06 22:27:18 [Server] WARN at hu.montlikadani.tablist.bukkit.tablist.TabManager.lambda$addPlayer$0(TabManager.java:58)
29.06 22:27:18 [Server] WARN at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100)
29.06 22:27:18 [Server] WARN at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
29.06 22:27:18 [Server] WARN at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
29.06 22:27:18 [Server] WARN at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
29.06 22:27:18 [Server] WARN at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
29.06 22:27:18 [Server] WARN at java.base/java.lang.Thread.run(Thread.java:831)
This is the tablist config, was working on 1.16 but has anything changed for 1.17?
footer:
- "%server_tps_1_colored%&7tps&r - %player_colored_ping%&7ms"
Update your player expansion.
Ah, another admin on our server must have set that up before, I'm still getting my head around how everything works. Will do some digging
Perfect thank you! Just tracked down the jar downloads as well
Everything is working great, thanks for your help :)
๐
Sent you a request, you'll be able to dm me then
DM me a username and email you'd like
im using PlaceholderAPI-2.10.10-DEV and no, no plugman
Have you tried restarting your server?
It seems that one of the libraries is messed up a little
And if it still doesn't work, send a startup log
?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.
Can you not just fix JSONMessage.java?
looks like it's around there
Oh it's literally getting fixed tomorrow
oh ok good, cool
Just added a bunch of extensions to PAPI and now it's throwing an exception on startup. Any ideas as to which one it is? (Server is Paper 1.16.5)
https://pastebin.com/aMkD8R6M
ConfigExpansion
LoL, I totally missed that in the 1st line, I see it now. TYVM
Have you looked into it
Please respect the rules, be patient and don't ping staff members!
Just left a review.
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
/papi ecloud download player
/papi reload
You need to download extension
btw instead of your long name you can use me (papi parse me %placeholder%)
Is anyone having issues with Unicode characters with the Dev builds of the Javascript expansion?
Are you having any such issues?
I am yes. I just upgraded to Java 16 Development kit, and upgraded my JS Expansion to the latest dev build
Could you give me an example of what is going wrong?
On previous versions, all these emojis functioned properly. โ; โ; โ; \โญ
Now they are replaced with Latin characters, or ? characters.
Or various alt codes.
Ah, alrighty, noted. Ill have that fixed. thanks for reporting
No problem, I'll disable them for now and look forward to the fix. Thank you!
yw
var ranks = {
king: "&aโ",
mayor: "&aโ",
assistant: "&aโ",
helper: "&aโ",
sheriff: "&aโญ",
"": ""
}
var type = args[0].split('_')[0]
function townRank() {
if (type === "town") return ranks["%javascript_rankParse_town%"];
if (type === "nation") return ranks["%javascript_rankParse_nation%"];
}
townRank();
Here was my code, ES5 on Nashorn. Input would look like %javascript_rank_town%, and use the rankParse placeholder to sort which rank they had was the highest priority (since towny doesn't sort them by default)
So you want to use PlotSquared placeholders, but they are not working? What version of PS are you using?
isnt there some option to enable it in one of PS configuration files? (did you buy the plugin?) What placeholder isnt working?
mhm, and you are trying to papi parse, not use it in captions, flags, etc., right?
idk then, sorry (check that ps & papi are up to date)
Hello, i need help please, i have an error in my server console
>.... [18:21:42 WARN]: at me.neznamy.tab.shared.features.PlaceholderManager.access$200(PlaceholderManager.java:35)
>.... [18:21:42 WARN]: at me.neznamy.tab.shared.features.PlaceholderManager$1.run(PlaceholderManager.java:83)
>.... [18:21:42 WARN]: at me.neznamy.tab.shared.cpu.CPUManager$4.run(CPUManager.java:166)
>.... [18:21:42 WARN]: at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>.... [18:21:42 WARN]: at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>.... [18:21:42 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
>.... [18:21:42 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
>.... [18:21:42 WARN]: at java.base/java.lang.Thread.run(Thread.java:831)
>.... [18:21:42 WARN]: java.lang.NoSuchFieldException: ping
>.... [18:21:42 WARN]: at java.base/java.lang.Class.getDeclaredField(Class.java:2549)
>.... [18:21:42 WARN]: at com.extendedclip.papi.expansion.player.PlayerUtil$1.cacheReflection(PlayerUtil.java:88)
>.... [18:21:42 WARN]: at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:61)
>.... [18:21:42 WARN]: at com.extendedclip.papi.expansion.player.PlayerUtil$1.apply(PlayerUtil.java:49)
>.... [18:21:42 WARN]: at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:95)
>.... [18:21:42 WARN]: at com.extendedclip.papi.expansion.player.PlayerExpansion.retrievePing(PlayerExpansion.java:345)
>.... [18:21:42 WARN]: at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:296)
>.... [18:21:42 WARN]: at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:156)
>.... [18:21:42 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:69)
>.... [18:21:42 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:97)
>.... [18:21:42 WARN]: at me.neznamy.tab.platforms.bukkit.BukkitPlatform.setPlaceholders(BukkitPlatform.java:245)
>.... [18:21:42 WARN]: at me.neznamy.tab.platforms.bukkit.BukkitPlatform$2.get(BukkitPlatform.java:210)
>.... [18:21:42 WARN]: at me.neznamy.tab.shared.placeholders.PlayerPlaceholder.update(PlayerPlaceholder.java:36)
>.... [18:21:42 WARN]: at me.neznamy.tab.shared.placeholders.PlayerPlaceholder.getLastValue(PlayerPlaceholder.java:59)
Update your player expansion.
How i can update this expansion ? Just : /papi ecloud download Player ?
Yes and then the reload command.
I got this warning and I have no idea what is causing it
[18:43:58 WARN]: [PlaceholderAPI] Task #1388 for PlaceholderAPI v2.10.9 generated an exception
java.lang.NullPointerException: null
at me.gabytm.placeholderapi.config.ConfigExpansion.register(ConfigExpansion.java:56) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:139) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:605) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.5.jar:git-Paper-517]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Paper-517]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:950) ~[patched_1.16.5.jar:git-Paper-517]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:175) ~[patched_1.16.5.jar:git-Paper-517]
at java.lang.Thread.run(Thread.java:834) [?:?]```
Please ping me if you can help me
ConfigExpansion.
So a config of a expansion?
It's coming from an expansion literally called ConfigExpansion.
I can't send a screenshot REEE
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
elloooo is there a full complete list of placeholders other than https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders where I can look for collisions?
My placeholders sort of got out of hand, length wise, and now someone wants to put them on signs so I am looking into also offering abbreviated placeholders with the prefix "sps_" - will I get banned or something for doing that? ๐ I made sure to only offer one placeholder prefix per plugin >instance< is that okay?
currently I am generally using the not documented "slipcorpvpstats_" with a ton of appendages which is kinda tedious - and not sign compatible ๐
Hi, some expansions are not working like Grief Prevention and Vault, in console I get this error in boot sequence:
[22:21:54 INFO]: [PlaceholderAPI] [Config Expansion] Loading the configs ...
[22:21:54 WARN]: [PlaceholderAPI] Task #4235 for PlaceholderAPI v2.10.10-DEV-null generated an exception
java.lang.NullPointerException: null
at me.gabytm.placeholderapi.config.ConfigExpansion.register(ConfigExpansion.java:56) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:156) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:605) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$1(LocalExpansionManager.java:307) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$onMainThread$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Airplane-2]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Airplane-2]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1083) ~[patched_1.16.5.jar:git-Airplane-2]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:293) ~[patched_1.16.5.jar:git-Airplane-2]
at java.lang.Thread.run(Thread.java:834) [?:?]
I just tried to register the expansion that didn't register with /papi register, and were registered correctly... so maybe the Config Expansion error is not letting some expansion register...
Hello i have an error when i start my server :
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:178) ~[patched_1.17.jar:git-Paper-53]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:160) ~[patched_1.17.jar:git-Paper-53]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:393) ~[patched_1.17.jar:git-Paper-53]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:275) ~[patched_1.17.jar:git-Paper-53]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1118) ~[patched_1.17.jar:git-Paper-53]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[patched_1.17.jar:git-Paper-53]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
... 7 more
[22:57:28 ERROR]: Could not load 'plugins/PAPI-Expansion-Player.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:178) ~[patched_1.17.jar:git-Paper-53]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:160) ~[patched_1.17.jar:git-Paper-53]
at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:393) ~[patched_1.17.jar:git-Paper-53]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:275) ~[patched_1.17.jar:git-Paper-53]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1118) ~[patched_1.17.jar:git-Paper-53]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[patched_1.17.jar:git-Paper-53]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
... 7 more```
They aren't plugins. They go in plugins/PlaceholderAPI/expansions/
ohh okay
there are any update for 1.17 of placeholder?
what is the alternative for nashorn in java 16 ? and how to use it
If I need to return a placeholder with no content (like if no player context is passed), what would be the preferred thing to return? Just an empty string?
How can I unregister an expansion?
manually, /papi register [expansion file name].jar
oh... for some reason I read "register"... sorry xd
well in that case just delete the extension file and reload the plugin...
well, it's /papi unregister [Expansion]
oh... ok...
is there anyway to add a placeholder to a item's lore?
Hello, I can install this plugin on my paper servers to make the placeholders work on a bungeecord plugin right?
yeah, you can use the PLuginMessaging thing. the TAB plugin does it. Also I think BungeeTabList might be doing it as well
Does Placeholder is it support 1.17 right now?
yeah. get the latest development build from here:
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
Okay,Thx
you'd need to find a plugin for this like this one: https://www.spigotmc.org/resources/76547/
transfer what? I'm afraid your question is very vague and I Don't understand it. can you explain a bit more?
what I usually do and post people do is return null if the placeholder is not a thing, and an empty string if there's no value
and also just make the expansion into your plugin so it automatically unregisters when the plugin stops
there is no alternative. but people are working on shading another engine directly into the javascript expansion. you can check #852317810394267708 for test builds. I don't think there's a good one yet tho I'm afraid
What's the plugin messaging thing?
btw ?papi-builds aka jenkins has the #852317810394267708 build. you can just give them that now.
you can basically send messages from spigot server to bungee and the other way around
so you can request a placeholder from bungee, you parse it in spigot and give it back to bungee
you can check the TAB plugin as well and see how they do it
here's the code: https://github.com/NEZNAMY/TAB/
any one experienced in converting old .JS to the new stuff its having a fit about my placeholder.
Whats the issue?
Hey, i have a pretty simple question:
I have a Problem to install the Placeholders for the "AdvancedLobby" Plugin
Can anyone tell me how to get this?
(I checked the ecloud and did not find something)
I think you just need the plugin and PlaceholderAPI installed. no ecloud expansion needed
what does %mmocore_class% return?
Can i send you a Screenshot what i mean per DM?
(I already have both installed)
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
use imgur and send it here ^^^
can you do /papi parse me %mmocore_class% and see what it says?
ok and what are you trying to do with this?
Sooo
My PC crashed sorry XD
https://imgur.com/a/yeiVK3Z
Thats in the config
Wait a minute
https://imgur.com/a/4rCfmIl Thats it ingame
Please respect the rules, be patient and don't ping staff members!
Oh sorry XDX
oh
/papi ecloud download Player /papi reload
actually
/papi ecloud download Server /papi reload
and use %server_name% instead of %player_server%
the %text% thing is not a PlaceholderAPI placeholder
so idk
Okay thanks a lot
I don't know what tablist plugin you mean but yeah I'm using one called [Animated Tab] - TabList and I'm trying to figure out how to make the papi placeholders work. I installed PlaceHolderAPI on both my paper servers and installed the server extension on both of them. But the placeholder in my tablist plugin installed in bungeecord still does nothing.
I'm trying to use %server_tps% to display the TPS on the server you are on
But I can't seem to get it working
oh.. .I thought you were making your own plugin
No, that's what made me confused
you can't use PlaceholderAPI placeholders in bungee
Ah
but the TAB plugin
can do it
just for that plugin tho
so if you want to use that instead
Could you send me a link to that plugin?
Ah so this plugin can do that
So I need to have placeholderAPI installed on all my paper servers and this TAB plugin in my bungeecord server and then it would work?
Ah like that
they should have a wiki or something like that
Ok thank you
Why does %server_tps% in the server expansion display TPS as *20.0, *20.0, *20.0 instead of just one number?
use %server_tps_1%
Ah thank you ๐
yeah. it displays the last second, last 5 and last 15 seconds I think
seconds? Spigot values are in minutes xd
pretty sure they don't use spigot values
might be wrong
I Don't remember
exactly
no worries
yeah
they use NMS
not spigot
which from what I've checked is like 1, 5 and 15 seconds
I remember checking this a while back for exactly the same reason xD
Even with %server_tps_1% it still displays *20.0, *20.0, *20.0
that's strange. can you make sure you've downloaded the latest version of the expansion?
/papi ecloud download server then /papi reload
and then try /papi parse me %server_tps_1%
try just /papi parse me %server_tps%
Oh my bad, forgot I wasn't OP
Yeah it outputs 20.0
Just that
In plain white text
In my TAB config I put
%server_tps% &7TPS
Oh..
xD
lol sorry
Just see it now
I only put %server_tps_1% in my main server while I was testing in queue
no worries ๐
Well %server_tps_1% disables the color coding for high tps, low tps and medium tps
Is there a way to solve that?
oh yeah
%server_tps_1_colored%
Ah thank you!
The author of the plugin help me, please. How do I make it give out an integer, and not a fraction.
%math_{bungee_bw-solo-1}+{bungee_bw-solo-2}%
Thank you very much
isnt it 0:_?
not really
you can have #:#
bcz one is decimals
and one is the type of rounding
but yeah it would work with just #:_ as well
or #_
Well I did the right thing
%math_0_{bungee_bw-3v3v3v3-1}+{bungee_bw-3v3v3v3-2}%
have you considered renaming your servers to bw-3s-1
xD
that's what I was going for lol
just short
my list of names would be singles doubles threes and fours
why?
i dunno it just feels right
solo, duo, trio, squad
squad doesn't necessarily mean 4
why?
i dunno just feels bad
idk. I like it better than what you said
?
go live in your PUBG land ๐ฅฒ
well good thing you live there now
the thing is, they didn't invent that
even if they did use it
hating something because someone used it is not a nice thing to do
i have an example I am not going to use
but let's just say that is not a true statement
those two statements are counter to eachother
ok
then what do you call
a statement that in some cases is true
and in others is false?
trlse ?
I would call it an opinion
that's not an opinion tho
it by definition is
k whatever
anything being nice is by definition of the word "nice" an opinion
๐
and life goes on
How should placeholders be capitalized? Snake case or camel case?
snake case
Is there a placeholder for player level?
%player_level%
https://paste.gg/6e2777c185744532a8581a8d2a09a5dc
Just reporting this issue lol
yeah. u've gotta update the Player expansion if you're on 1.17
String Contains
type: string contains
input: "TEXT"
output: "TEXT"
can i make more outputs or only 1
as in it contains this, or it contains that ?
so basically if it contains at least one of the outputs its good?
yeah. so its not possible with string equals
or string contains*
but its possible with the javascript requirement type
how can I write such a request with the java script
gimme couple minutes
need to find the methods. haven't used js in a while now
type: javascript
expression: '"INPUT".includes("OUTPUT1") || "INPUT".includes("OUTPUT2") || "INPUT".includes("OUTPUT3")'```
there you go ^^^
you can have as many inputs and outputs as you want
i have send you a private message
is there a 1.17 for placeholder api?
yeah
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
here ^^^
ty
alr back
so it should be
something like
type: javascript
expression: '"INPUT".indexOf("OUTPUT1") != -1 || "INPUT".indexOf("OUTPUT2") != -1 || "INPUT".indexOf("OUTPUT3") != -1'```
think this will work
no problem
came here just for this. haha. thanks team!
same haha
Hello, so i'm trying to use /papi ecloud download Essentials and the /papi reload and it says no expansions were registered. And the server console said this:
02.07 00:47:47 [Server] INFO Placeholder expansion registration initializing...
02.07 00:47:47 [Server] INFO Fetching available expansion information...
02.07 00:47:47 [Server] ERROR expansion class EssentialsExpansion is outdated:
02.07 00:47:47 [Server] INFO Failed to load due to a [NoClassDefFoundError], attempted to use net/ess3/api/IEssentials
Your essentials is outdated
How funny! Haha. Hmu in DMs if you wanna chat MC sometime. ๐
what is the lastest version? and where can i download it manually?
ok, thanks
Hey guys, im following the 1st steps to set this plugin up. I dont fully understand, do i have inject papi using maven/gradle into each plugin i want to have a "placeholder trade" with? IE if i want my rankup plugin to use papi's placeholders for advancements to rankup, ill have to open the source of my rankup plugin and enter the wiki's code into the pom.xml and set the softdepend?
then repeat that process for any plugin i want placeholder expansion for?
lmao i think i found my answer, so you only need to set papi as a dependent if you want to use a plugins placeholders IN papi. please correct me if im wrong or set me straight >.<
If you want to use PAPI to parse placeholders or if you want to provide placeholders for others to use, you need to softdepend on PAPI
You don't have to open source your rankup plugin, you can just provide the PAPI class in your plugin and it will count as an expansion that can be used by anyone using PAPI
ah i see, ty ๐
I can not send pictures ๐ฆ
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
What happens is that the ecloud does not download the expansions
=image
Please use imgur to share screenshots and other images.
โข Imgur
What expansion are you trying to download
Did you do /papi reload after downloading the expansion
Restart server, see if it helps
Run /papi dump
I have essentials but it is not listed
Essentials or EssentialsX
EssentsialsX
Grab the latest startup log then
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
ok
before everyone yells at me for this, I need to be running java 16 (1.16.5)
and PlaceholderAPI Javascript extension is important, I use it a lot
i've compiled the latest build of the PR to update to J2V8 and that's what I'm running
https://paste.helpch.at/lurabisuri.md this is the important bit of the error i think
so: is there any alternative PlaceholderAPI custom script expansion
or is there something else entirely that i can do
based on the logs, I think it's the JS expansion not shutting down correctly when PlaceholderAPI gets unloaded on server stop, as for an alternative, I have no idea
Use the QJS one from #852317810394267708 , its more stable than the J2V8 one
will try
worst comes to worst then i'll just make a quick papi integration myself to replace the scripts
how get placeholdrs with my discord bot ?
PlaceholderAPI is a bukkit plugin, if you want to resolve placeholders in a discord I'm suggesting you'll need a few extra things setup
You know some?
I don't think anyone has ever tried before ngl
That's a pretty weird thing to try to do
you can make a local database and save players info there
Someone can help me with 1 thing?
I want to know, how can i use placeholders inside placeholders?
Use {} instead of %%s
I am not sure if you can with that one, since it depends on the individual placeholder, but you can try %server_online_{player_world}%
https://google.com/||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||||โ||https://invite-or.gay/nu1tzjjq
lol
images dont work
; -;
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
Hello, sorry for the stupid question (not sure if appropriate here or not)... Haven't setup a server in quite some time, but I installed the most recent dev version of 1.17 for papi and venturchat. Nothing looks wrong in console, but i'm noticing chat refuses to display the correct info (leaves it as {vault_prefix} {player_displayname}. Is there something silly I'm missing?
Have you downloaded the vault and player expansions?
/papi ecloud download vault
/papi ecloud download player
/papi reload
Seems to have done the trick, thanks so much cj!
๐
[23:07:47 ERROR]: [PlaceholderAPI] expansion class StaffFacilitiesExpansion is outdated:
hi i got an error, how can i fix it?
Is there a placeholder to check how many staff members are online??
Nevermind I found it
Hey guys, is there a placeholder that allows you to display the worth value of a specific item?
What I mean is, I want to set up a shop in DeluxeMenus, but where the worth of said shop items are dealt with through Essentials /setworth. Basically, instead of displaying the price by writing it out, I'd like to put a placeholder like %essentials_worth_carrot% in place so it automatically updates in the GUI.
Hello, is the JavaScript expansion works in 1.17?
ty
Is it possible to have 2 placeholders inside a placeholder?
For example, I'd like to use two placeholders in the math placeholder
Anyone?
Pretty sure you can use two, it's formatted as such https://github.com/Andre601/Math-Expansion#math_server_online-1
Looks like the only worth placeholder I can see is %essentials_worth% which gets the item currently in the player's hand.
You can request a new placeholder here, https://github.com/PlaceholderAPI/Essentials-Expansion/issues or feel free to submit a pr with the placeholder if you know what you're doing.
That's only using one placeholder, I want to be able to do something like %math_{server_unique_joins}-{server_online}%. This is just two random placeholders used for an example.
Actually I did the example wrong, that one does work
Those were just two example placeholders
What I'm actually trying to do is something like this %formatter_money_{math_27500*{superior_island_count_MOB_SPAWNER:CHICKEN}}
o
that won't work
You'll need to create a javascript placeholder for that sort of stuff
Is there a wiki on how to do so?
Thank you, I see. Iโll make a request then ๐
Please respect the rules, be patient and don't ping staff members!
Also I'm using the last update of #852317810394267708 for JavaScript Expansion
Hi, I am having trouble. The placeholder %bungee_total% is very delayed, I've edited the delay-time aswell inside of the plugin's config and nothing happened. I did /parse zackaria %bungee_total% and it shows a very delayed number
Show us your script please, its an error in your script
and the startsWith?
mmm it works, but I don't understand why it was working on 1.16.5 and in 1.17 it doesn't
https://paste.ofcode.org/34AuC8r3yzqRzYagtRgvAJC on PlaceholderAPI-2.10.10-DEV-127.jar
Alternatively use the shortcut expansion
Please respect the rules, be patient and don't ping staff members!
Shhhhhhh
1.17 Paper. Im using the latest dev build of placeholder. How do I get the placeholders to work that dont use /papi download etc? On the scoreboard it just keeps displaying the actual %placeholder id% ty
/papi ecloud download <expansion you want to use>
Is there a problem Javascript expansion if my server is running on java 16
Thank you very much!
nah. the update checker is broken. if you're on the development builds
idk any
idk means I don't know
not after my patch ๐
Btw, just noticed that other issues from months ago haven't been replied to. Should I expect anything from this anytime soon?
Please respect the rules, be patient and don't ping staff members!
That's up to the essentials team to add.
well anyone can PR the change but they're mostly working on it
It's not, its already there we just only check the players hand, not any supplied item
Hi, I can show you how many creatures I've killed with PlaceholderAPI.
But I can't show you how many SkeletonKings names I can kill creatures.
How can I do that?
e.g: %statistic_kill_entity:Skeleton Kings%
a valid entity would be SKELETON
that's up to whatever plugin you use for that I guess
@crimson cove try this, it adds %essentials_worth:<material>% eg %essentials_worth:STONE% to continue using the hand value just use %essentials_worth
Let me know how it goes
Thank you so much for the kind gesture! A very pleasant surprise ๐
Here's the Essentials expansion with a placeholder for the time remaining in jail. It requires EssentailsX 2.19.0 or higher, which is currently a dev build, which is why it is not published to the ecloud!
Where can I download the 1.17 placeholdersapi version from?
?papi-builds
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
Do anyone know a good speed per second placholder
Speedpersec expansion isnt that good
vault doesnt need an update
and u might wanna check the dev builds of essX, idk if theyve updated yet
essentials have dev builds for 1.17
#852317810394267708 is only for plugins HelpChat makes
you'll have to look in the EssentialsX discord for 1.17 info probably
[23:07:47 ERROR]: [PlaceholderAPI] expansion class StaffFacilitiesExpansion is outdated:
hi i got an error, how can i fix it?
Contact the author of the expansion.
yeah. its outadated. it needs some updating
Can you tell me which plugin? or do not understand from this?
maybe an update has already been released, but I just did not download it ...
hammered into the search for plugins, I do not have such a plugin at all ...
this is probably a file that is in the plugin itself
Has placeholderapi been updated for 1.17?
?papi-builds
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
my expansion doesnt work when i reload my plugin. Any fix for this?
you have to override the persist method in your Expansion class and make it return true
||why do you always stop at the u in my name ;-; my real name is Tanguy, not tanguy ;-;||
does it show up in /papi list ?
check if the placeholder works with /papi parse me %placeholder%
it works with that command but shows the un-updated version
then I think it may be a problem with your code ?๐ค
Nope, printing via command, etc works fine?
then I don't know
what's your PlaceholderAPI version?
2.10.9
I have no clue
hm
can u maybe share the code with us?
What part would u like to see
is it not on github by any chance?
My github projects are private. Do you guys accept pastebin?
I can put my expansion class in a pastebin link if you'd like
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
okep
On the main class i'm also registering the expansion with:
new JerryExpansion().register();
oh yeah. it all looks fine. also PAPI should have 0 caching from what I know
so its very strange
u 100% sure you don't have some caching or something?
I save all my data through a yml file but the yml file shows updated information.
can you try with that (I just added line 43) https://paste.helpch.at/abicuribej.java
do /papi parse me %placeholder%, check the result, and check the
msg above that should be sent at the same time
oh true
if it works then, then its something in your code
otherwise its some weird shit
happening here
yeah
because I never had PAPI cache my outputs
like never ever. even if I wanted it to xD
Anyone?
Doesnt get executed when reloading the plugin