#placeholder-api
1 messages · Page 9 of 1
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
send that over, but I gotta go atm
Guys, hi, i have bug with papi or vault, can someone help me?
I have papi for vault, prefixes in animatedsb working, but balance - no ( using %vault_eco_balance_fixed%)
UPD: I can show in voice channel, if you need
How to do that sir i literally cannot see config file in the folder of place holder api
Please respect the rules, be patient and don't ping staff members!
Bro it's kinda weird but i delete place holder and reinstalled it and it fixed my problem
Thanks for your support
Hey! I've made a font changer for usernames and everything works but whenever someone has 2 of the same letters (lowecase or uppercase) ex. Ixccyy it returns this: https://gyazo.com/753c466b30018d8326bd6025a32ac6e9
How would I fix this?
Seems like PAPI broke in 1.19.3
Things like %player% dont work with excelentcrates as well as gadgetsmenu placeholders
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
Ive done that
Still looks like this
Also, Gadgetsmenu hooks into papi on its own, theres no ecloud
But has it like this
Re-read this.
^
You have sent proof that you have not done that
which one?
Read this entire response
Make sure to read whole prompts 
cj you have experience using Javascript expansions?
a bit, ya
So let me rephrase to make sure I understand. I need to go into other peoples code and change it to player_name?
Do you possibly know how I could fix this? haha
Isn't it a regular message? Should be changable in the configuration.
If excellent crates doesn't have a config where you can change %player% to %player_name% then maybe it never used papi in the first place, or you should use another plugin imho
It worked until i updated is all
But that doesnt solve the issue that hooks show working but dont
Like with Gadgetsmenu
By update I mean from 1.19.2->1.19.3
Player_name fixed excellentcrates
Any idea whats breaking gadgetsmenu?
This is gadget menus
?
Yes
/papi parse me %mystery_boxes%
Shows {MYSTERY_BOXES} rather than the number. Their wiki says this:
`Requires PlaceholderAPI plugin before you can use these placeholders in any other plugins. There is no ecloud for GadgetsMenu, you can directly use these placeholders once you have GadgetsMenu & PlaceholderAPI.
To use a placeholder, you need to follow its syntax %gadgetsmenu_<placeholder>%.
Example: %gadgetsmenu_mystery_dust%, %gadgetsmenu_mystery_boxes%`
Ill try that now
Its out of the box though. No config changes
It works on my 1.19.2 server though xD
Why would it stop from 1.19.2 to 1.19.3
are you on the latest version
I am
- '&7Your have: &b{MYSTERY_BOXES} Mystery Boxes'
This is how their messages.yml is setup
They convert the {} to the papi somewhere in code
{MYSTERY_BOXES} must be an internal placeholder
Likely ya
does {MYSTERY_DUST} show?
Try restarting
- '&7Your have: &b{MYSTERY_BOXES} Mystery Boxes'
the hologram is FROM gadgetsmenu, right?
We have several times at this point to fix other plugins
Indeed
Gotcha, thinking its a them issue?
It's an internal placeholder
I have the premium plugin so all good
so yes
Thanks for the assistance!
I get a job as a software engineer on jan 23rd. I would like to donate when I get my first check for the assistance. Where should I go?
Alrighty 🙂
Good luck at your job!
hello guys
I have a question about papi
I need to use the placeholder "%worldguard_region_name%" on my scoreboard to make sure players know in wich region they are
but it doesn´t work
It works for TAB and WorldGuard?
Hello, i would like to know if it's normal if can't install the adon of Skript, thx
You should be able to install it. Not sure why you'd want to though.
Wen i did the cmd, i said, he not found a expansion named skript. I download the adon and i place in the folder of expansion but it still doesn't work. I want it for view an variable in my scoreboard
You need the Skript plugin installed as well
I know, he's installed
Will it ever be possible to resolve certain placeholders on offline players? E.g. player statistic related ones
Right now it returns null when offline and only works when they are online
@neon tartan as far as I know its possible you can connect a db ig?
What about without? E.g. I hook into PAPI for Analyse, and ideally I'd like to send the session data after they quit, but my issue is then certain placeholders show `as null
pretty sure its possible as long as its made for it
I think for example the %player_kills% one you cant fetch offline
well thats because thats how the placeholder was made
if you were to make a custom one it would be possible
Ah right, thats a shame
its easy to make a kills placeholder if its from vanilla kills
I understand, but I don't want to have to re-create 100s of placeholders within Analyse.
Analyse has a feature for server owners to track custom PAPI stats on their dashboard. Would be nicer as plug and play
As you guys have some official placeholders like the player ones
I understand, appreciated tho
I don't even think %player_kills% is a placeholder.
It's under Statistics iirc.
Which since (1.16?) you can pull statistics of offline players.
Ah really, I'll have to double check, I just remember a customer mentioning it
It would save me a lot of code hassle if it does work since, because I had to make amendments around it
1.15
Bump
Might be better suited for #development 🙂
Alright ill move it thank you 😄
Is there a placeholder that returns the block someone is looking at?
Whats the correct way of making an expression that checks if a number is equal to or between -10 & 10
no longer needed but thanks <3
Hello. Does anyone have an idea how can I format %luckperms_group_expiry_time% output? By default it looks like '1w 1d 1h 1m 1s'.
I need it to show only '1w', when expiration time is longer than 1w, 1h when it's longer than 1h and so on
Heyy everybody ❤️
Soo I tried to Register to eCloud but it says:
Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us.
So I'm here. It's necessary because I need to add MythicalRaces expansion ASAP...
Any ideas what should I do?
you just need to wait for an admin and they'll create your account
might want to specify the username you want as well
cc: @balmy marten
DM me a username and email and I'll create the account from my end
why'd they make it so you need to override the method
why couldn't they have just let you use some API method to add to already existing ones
ok change of issues
[23:02:41] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: TestPlugin [1.0]
its successfully registered
but still the request method isnt called
@Override
public String onRequest(OfflinePlayer player, String params) {
if(params.equalsIgnoreCase("player_lives"))
{
return String.valueOf(plugin.getLives(player));
}
return null;
}
@Override
public @Nullable String onPlaceholderRequest(Player player, @NotNull String params) {
if(params.equalsIgnoreCase("player_lives"))
{
return String.valueOf(plugin.getLives(player));
}
return null;
}
i have these two overridden (i dont know the difference)
but neither of them are reached
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
send the class 
and your main class?
Delete the onPlaceholderRequest method here and change the identifier (which might have to be lowercase?)
your plugin
ok
The identifier is the part in the placeholder that is between the first
%(Or{if bracket placeholders are used) and the first_.
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#getidentifier
ohhh
so i should have the placeholder be limitedlives_player_lives
identifier_params
your placeholder will be identifier_params, yes
What do you mean by this?
say i want to place this in a scoreboard
i will use %identifier_nameOfThePlaceholder%
most likely %limitedlives_player_lives%
my computer so bad i gotta shut down intellij just to launch my server and test it
or itll run out of memory
what type of statistics, because most of them are probably stored by other plugins (not by placeholderapi)
like vanilla game stats?
Vanilla stats are stored in server/World/stats/ folder, but if you're resetting the server don't forget about plugin stats like Heklo said 
Hello, i need help
i have vault installed, but my delux hub score board is showing just this %vault_rank
@fervent spire
ehhhh
staff afk or wot
@mint fable
Please respect the rules, be patient and don't ping staff members!
sorry
Hi, the placeholders on my holograph won't load. I want to put in the placeholders from the Hunger Games plugin, but it won't load. I used this one as an example:
%hungergames_lb_kills_p_1% and &a%hungergames_lb_kills_s_1%
HolographicDisplay + PlaceholderAPI
HolographicDisplay has added PlaceholderAPI support in v3.0.0-beta1 but in HologaphicDisplay v3.0.0-beta2 the format was changed format than the usual %identifier_arguments% one to {papi: identifier_arguments}.
For example %statistic_player_kills% should be used in HolographicDisplay as {papi: statistic_player_kills}
thx so much
Did you install the placeholderapi expansion for vault as well
Do we again have a way to inject placeholders into plugins that do not have support? like ChatInjector
but by the plugin itself
chatinjector isnt needed use papi API
uh hmm you can make a custom expansion to check there group then return a prefix?
you dont even need to make a full expansion tbh just a basic JS one
Why can’t you just use luckperms one
And it doesn’t have prefix ?
O
yos
but i fixed
it
:D
i am not developer... how can do it?
Please respect the rules, be patient and don't ping staff members!
When I install the Math expansion and restart the server I get this error: https://hastebin.com/ubirakusox.sql
Full server log: https://mclo.gs/Aow4UnY
Can someone say Why its not working?
i downloaded player and the %player_name% Dont show my rang
Any idea why this happens?
Hello, how does the expansion math work?
Hey, could someone help me out with PAPI? I developed an extension yet when I /papi parse it, it does not work.
Extension code: https://paste.helpch.at/
can you execute /papi dump?
The extension loads: https://paste.helpch.at/
Just the placeholder doesn't parse.
Hm
Nevermind, it works.
?
You can do maths with placeholders, read the docs for the math expansion to find out how
Also, anyone know why I'm getting this error?
I did it but I don't understand
Was eazynick expansion removed?
I'm getting this error when installing the math expansion and restarting the server. I've tested without it and it works fine?
[11:27:24 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
Full server log (includes full error): https://mclo.gs/Aow4UnY
Hey anyone knows how to add a remove entire data function on this javascript script? https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#data
Hello, I have a question: Is it possible to parse a placeholder in a placeholder which is in another placeholder? Example, using formatter placeholder to format a math placeholder which gets a value from mysql placeholder
How did you download/install the math expansion? It looks like it's corrupt
I've re-installed it many times
How though?
Are you manually downloading or using the command?
or have you tried both?
/papi ecloud download Math
try downloading it manually https://api.extendedclip.com/expansions/math/
Ok
which part?
Wait I think I got confused a bit, you want a remove all data feature?
should be pretty easy you just need to run Data.clear()
Because I'm doing a poll with javascript data, and every server restart I want to reset that poll
so not ALL data?
or is that the only thing you use this data script for?
else if (args.length == 1) {
if (args[0].equals("removeall"){
Data.clear();
return "yes";
} else {
return getUsage(args[0]);
}
}
should be able to modify this portion as such to add a removeall placeholder
yeah it's an event gamemode
so I only use that script
so if I remove all data it will be good too
It depends on the outside placeholder, but most likely not when it comes to triple parsing
Why do you need to format after math?
Ah, and what's the math part for?
Item prices, 1 obdisian $10,000 and 512 $512,000
Because I want to avoid using javascript here if possible because every time you run a placeholder its gotta start a new engine which might cause some lag
I take a price from mysql 10,000 multiple it by number of blocks
function runPlaceholder() {
if (args.length == 0) {
return getUsage("no args");
}
else if (args.length == 1) {
if (args[0].equals("removeall") {
Data.clear();
return "yes";
}
else {
return getUsage(args[0]);
}
}```
So what do you suggest?
it's giving error, I'm using that
sadly.. javascript
Sadly because its not recommended or? 😅
icic
wuoops
works fine now, thanks you! 🙂
yep
Does it cause more lag or breaks something? Or any other reason its not recommended

could cause lag
maybe not noticeable
but
how often is the script run?
would it be run*
I use deluxemenus, so everytime a player opens a menu to buy/sell that item
Hey cj, do you know if there is any exploit related to javascript extension with the parse sub command ?
Mostly 4 items per menu, but a few of them have up to 32
Seems like someone tried to in a server of a friend of mine
Your friend shouldn't be giving permissions out to people to use /papi commands
😉
yikes
/papi parse Deluded_ %essentials_baltop_player_1% just returns the placeholder
he didn't, he got uuid spoof somehow
ty tho
online server?
idk
weird...
var mysqlPl = "%mysql_...%"
var blocksPl = ""
var mysql = parseFloat(mysqlPl)
var blocks = parseFloat(blocksPl)
function fun(){
if(!isNaN(mysql) && !isNaN(blocks)){
return "error"
}
return mysql*blocks.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
}
@twilit needle
might do what you want
with some plug and play
put your mysql and blocks placeholder in
hi what is the syntax for concat placeholders?
deny_commands:
- '[console] lp user %player_name% permission unset %luckperms_meta_perks{perk_number}%'
am i doing that right?
hey what happens when you run /papi parse me %player_kills%
also does the plugin that you are using the placeholder in support placeholderapi?
I have PlaceholderApi
and in the scoreboard i dont have this
i have for example %vault_rank%
I can't download the killstats expansion could does any one know how to?
did you guys try /papi ecloud download [tab complete expansion]
Why are you posting in multiple channels
Check out ecloud site
could anyone troubleshoot a section of my DM config that isnt working. for some reason it always succeeds even though the permission isn't set
click_requirement:
requirements:
already_equipped:
type: has permission
permission: perks.goldfish
success_commands:
- "[message] This perk is already equipped!"
deny_commands:
- '[console] lp user %player_name% permission unset %luckperms_meta_perks{perk_number}%'
- '[console] lp user %player_name% permission set perks.goldfish'
- '[console] lp user %player_name% meta set perks{perk_number} perks.goldfish'
- '[console] lp user %player_name% meta set material{perk_number} cooked_salmon'
- '[openguimenu] upgrades<delay=3>'
i did /lp user clear and it still says I have the permission... weird
its cause i was OP
XD
i should really deop myself for times like these
basically
left_click_requirement: expression: '%vault_eco_balance% >= 350' deny_commands: - '[sound] VILLAGER_HIT 100' - '[message] &a&lSH&f&lOP&7 » &cNon hai abbastanza denaro!'
in my config
just isnt working
this is full config
i can still buy things even though i am at 0 balance
can somebody help me please
At the moment I only can read:
• HelpChat Paste
• Hastebin
• Pastebin
• Hasteb.in
plz
Why not use the has-money requirement
i have no idea how to use it
please teach me
Everything about DeluxeMenus requirements!
An you need to format it like
left_click_requirement:
requirements:
<requirement name>:
type: has money
amount: <amount>
/ver list
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1
1.18.2
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
1.8.8
1.12.2
1.16.5
1.17.1
1.18.2
v1.10.5
v1.13.5 - Latest
v1.13.5 - Latest
v1.13.5 - Latest
1.13.5 - Latest
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1
1.18.2
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
can someone help?
can someone help?
here's the pom.xml: ||https://paste.helpch.at/akokuraziy.xml||
plugim.yml: ||https://paste.helpch.at/feceqatixe.yaml||
and the error im getting:
Dependency 'me.clip:placeholderapi:2.11.1' not found
Please respect the rules, be patient and don't ping staff members!
;< sorry
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
Someone can help? https://paste.helpch.at/ugiluxifuz.php
Do you have an expansion ready to publish?
Hey is the Java expansion for placeholderapi available on 1.16?
Please respect the rules, be patient and don't ping staff members!
when will bungee expansion update? it showing in papi update but when i do papi ecloud update bungee it download version 1.0.1. but after that i do papi reload and again it show bungee have update. any solution of it
How come the expansion bungee says one update available but when i do /papi ecloud update and restart the server it still says 1 update available?
can someone help me identify what %javascript_inv% belongs too? its jacking up deluxemenus
Papi already has bstats that tracks expansion usage so there's no need
.
Any one help me on this?
.
Good morning and Happy New Year!
Wondering if I can add more/ custom biomes to %player_biome_capitalized%
We run the datapack Terralith which adds a bunch of new biomes, but unfortunately these will only display as 'Custom' in the API. Was hoping I can manually add the custom biomes somewhere so that they can show up for our players 🙂
I should also mention that F3 does register the custom biome names, just not the %player_biome_capitalized%
Is there a way I can stop this error?
This should be valid, not sure why it's having issues %math_0:_({aureliumskills_power}-11)%
huh, now it's just not working at all
Bump
It's a custom placeholders from a javascript file
If you look in your javascript_placeholders file you'll find it
It’s blank, and when I try to do /papi ecloud download JavaScript it isn’t a valid thing
I had to manually download it
What does %javascript_inv% parse to?
Nothing
What's wrong with DeluxeMenus then?
I’m not at my Pc tho I’m just going off of memory, Ik that 1 for sure
So it’s a shop, and it’s suppose to check if a players inventory is full. I don’t think the placeholder is registering cause it is automatically assuming the players inventory is full even when it is not. It is part of a requirement
Is there a reason your using JS placeholder for that rather than the built in one from the Player expansion?
For checking if a players inventory is full*
I bought a config and I’m lazy lmaooo
But i can easily change the values, but there is a lot of stuff
Just thought it would be easier to fix it
You might be better off using %player_has_empty_slot%
It'll parse as a simple yes or no haha
Yea I did that for one page that worked
Guess I’ll do it for all
Not to mention I gotta change the prices to reflect my eco, don’t think people wanna pay 15k for dirt
Do you have any clue on how to make a menu where the player can select how much they want? (Like 1, 16, 32, 64) I don’t wanna make 100+ menus for each item
Is it a shop?
Yes
It's a very complicated process
If you see https://github.com/cj89898/DeluxeMenus-DeluxeShop/blob/main/plugins/DeluxeMenus/gui_menus/deluxeShop/buyMore.yml
It takes in item as an argument
You could add price to that as well, but then it's possible to abuse it
so that's why I ended up making a custom expansion (later turned plugin) for DeluxeShop to store items with prices
Ah is this available to download? On my phone so can’t really see well, yk how that is lol
Please respect the rules, be patient and don't ping staff members!
Yes it is
How I did not see this boggles me, my whole search page is full of purple links lmao
Thanks!!
maybe I'll do some advertising 😂
Yes please, lots of modded servers need it
is it possible to set colors with & character on the scoreboard?
https://cdn.discordapp.com/attachments/1059176794319769600/1059215949191987290/2023-01-01_22.05.35.png
i tried this but it doesn't work
PlaceholderAPI.setPlaceholders(player, ChatColor.translateAlternateColorCodes('&', "%luckperms_prefix"));
please dont double post 🙂
wait is this shop for 1.16?
Please respect the rules, be patient and don't ping staff members!
any version
says it doesnt support 1.18 api, do i change it to 1.16?
where does it say that
one second
org.bukkit.plugin.InvalidPluginException: Unsupported API version 1.18
at org.bukkit.craftbukkit.v1_16_R3.util.CraftMagicNumbers.checkSupported(CraftMagicNumbersMixin.java:304) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoaderMixin.java:141) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:394) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:301) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServerMixin.java:381) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
at net.minecraft.server.dedicated.DedicatedServer.handler$zpp000$arclight$loadPlugins(DedicatedServerMixin.java:637) ~[?:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServerMixin.java:160) ~[?:?]
at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServerMixin.java:1879) ~[?:?]
at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServerMixin.java:232) ~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]```
ah ya idk how to fix that, but you just gotta change it in the plugin.yml
@dry stirrup open the jar with winrar or somethin and edit the plugin.yml api version to your version
hi, im trying to install the math expansion but it's saying it failed to find it
check our Ecloud
how?
do i just drag this into the plugins folder?
ok, thanks
np
example %math_{player_health}/2%
ok thanks
np
im trying to do %math_{luckperms_meta_drinks}+1% but it's not working
Please respect the rules, be patient and don't ping staff members!
ohh ok let me try
Please respect the rules, be patient and don't ping staff members!
Bump :p
ok so i did that, everything works now butttttt when I do /shop nothing happens and when I look at the menu files in deluxemenus, it is on the default ones
Please respect the rules, be patient and don't ping staff members!
oh mb i forgot
wym on the default ones
oh nvm im an idiot and never pasted in the pages from github
ah
yep follow the setup
what about for buyconfirm and sellconfirm? those arent on github
they aren't used, where did you see those?
uh
huh?
ah i see
you can remove those files and remove the entries for them from the deluxemenus config
oh ok
also everything is stone in the shop
oh nvm
didnt have math placeholder in
also if I made that on 1.18 the default config probably has 1.18 items
Meant to be customized fs, a lot of extra ones you'll never want
hey cj im getting an error but the text is too long to say and i can't upload files
?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
@dry stirrup 
uhhh it isnt working
like the site is kind of down
workin for me
can i use my server provider's pastebin?
you can use another pastebin
update deluxemenus if you're not on latest maybe
also, this isn't really #placeholder-api related anymore just fyi
#general-plugins moreso
mb mb
Somehow the placeholders from all my plugins using ecloud are not working anymore.
Other hooked placeholders are working fine.
Got a /papi dump?
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: me/blackvein/quests/Quest```
Could it have something to do with this?
I will look into that!
Oh, removing that expansion did the trick.
Thanks for your quick response!
👌
Hello
how do i parse or display unicode character in the Javascript expansion ?
when i use a unicode character, it gives me a square
is recursion possible with javascript placeholder expansion?
why %player_ping% not showing?
on tagname with TAB plugin
do you have the correct expansion?
i used vault, player, and pinger
its stuck with 0ms
https://paste.helpch.at/bapidoyeta.md reload log, why does it say Cannot load expansion playerstats due to a missing plugin: PlayerStats?
any help?
it does say on the ecloud page
Does anyone know when papi support will be added to essentials?
essentialschat? or just essentials in general
Essentials because I am trying to use a placeholder in the /bal command
Well that would be up to them to add support
not sure if you could make a plugin that does that externally or not, but I think essentials would be open source so if you do it externally might as well just build it internally
Oh very true I just wasn't sure thank you for your help 🙂 have a great day
ohhh im wrong, ping not showing for bedrock user xd
any fix?
hello, how do i put placeholder to scoreboard with this?
return String.valueOf(PlayTime.playTime.get(player.getUniqueId()));
}```
nevermind figured.
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: example
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder rng_ench isn't initialized! Defaulting to global
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: rng_ench
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder specialid isn't initialized! Defaulting to global
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: specialid```
can help with this?
server version: 1.19.3 r2
not work time on ExecutableItems
Do help me please, if you go to the bottom you should see my attempt at making 2 placeholders, im not sure what to do so id really appreiciate it if someone could take a look? https://hastebin.com/meqopofuwo.kotlin
Hiya just a friendly bump to see if anyone could help me on this:p
i get this error
when removing vault. Is this a dependency because it doesnt say this anywhere
yes it is a dependency
i have a problem , i don't see the place holder %player_name% in the scoreboard ( title manager )
can you help me ?
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
Did it work with titlemanager
normaly it work
but it didn't work here
idk why
Hi
This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.
If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.
Im having an error, how can I should send the error ?
there
pastebin
?
What can I do
corrupted plugin ?
Wdym
do you have vault ?
Ye
I did papi reload, corereload, fb reload and it worked
after a restart on sv
it went crazy
how can a make an account on the papi site?
accounts have to be created manually
@balmy marten will get in touch with u when he sees this
Are there any placeholders for statistics per player since a time? I'm trying to find how many crops someone has harvested since 1st Jan for example
I do not believe so.
👍
Have you got an expansion ready?
Hi, I’m trying to output random warp with its own multiple data (name, description, owner, etc.) through single identifiers. My goal is to reach these holograms (through %w_randomname% and %w_randomdescription%, …) to display every f.e. 3 seconds. I have a list of warps: Shop, Event, Spawn. Now, I'm getting every 3 seconds random name (f.e. from Shop) and again random description (f.e. from Event). All I want it to be synced - get random warp and then get all its data at one moment... but currently I'm getting each independently. I appreciate your help. Here is my current code:
@Override
public String onPlaceholderRequest(Player player, String identifier){
if(player == null) return null;
List<Warp> allWarps = plugin.getWarps("ALL");
Warp randomWarp = plugin.getWarps("ALL").get(new Random().nextInt(allWarps.size()));
if (identifier.equalsIgnoreCase("randomwarpname")) {
Bukkit.broadcastMessage("" + randomWarp.getDisplayName());
return randomWarp.getDisplayName();
}
if (identifier.equalsIgnoreCase("randomwarpdescription")) {
Bukkit.broadcastMessage("" + randomWarp.getDescription());
return randomWarp.getDescription();
}
}
hello, I have a little problem, I don’t know how to change the formatting of the date of the first join to my server by exchanging the day with the month so from "month/day/year
hour/minute/second" to so day/month/year hour/minute/second
inside of your custom placeholder, is it possible to return an already existing placeholder?
would i do return "%some_placeholder%"; or would I have to do something else to parse it?
Hey I'm still unable to download my placeholderapi expansion using the papi command.
My expansion --> https://api.extendedclip.com/expansions/networkmanager/
As this isn't a verified expansion you can only install this expansion manually.
How is the date formatted? In %player_last _played%
I know the formatted version exists, but I wanna know how %player_last_played% works for a script.
I have a confirmed memory leak issue with the javascript-expansion
With the expansion enabled, my server ram usage creeps up to full capacity until it freezes and a forcekill/restart is required (all i did was log into the server and afk)
After removing the expansion my ram usage is steady
what is wrong in this?
- content: '&e&1==Richest=='
height: 0.3- content: '&61. %ajlb_lb_essentials_baltop_player_default_1_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_1_alltime_value%'
height: 0.3 - content: '&62. %ajlb_lb_essentials_baltop_player_default_2_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_2_alltime_value%'
height: 0.3 - content: '&63. %ajlb_lb_essentials_baltop_player_default_3_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_3_alltime_value%'
height: 0.3 - content: '&64. %ajlb_lb_essentials_baltop_player_default_4_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_4_alltime_value%'
height: 0.3 - content: '&65. %ajlb_lb_essentials_baltop_player_default_5_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_5_alltime_value%'
height: 0.3
actions: {}
- content: '&61. %ajlb_lb_essentials_baltop_player_default_1_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_1_alltime_value%'
it says board does not exist
I think you should be using %vault_eco_balance% not the essentials baltop placeholder
I already got helo
How can I get my expansion verified?
I'll try to look at it before bed!
Thanks 🙏
Should be good to go now. Will show up in-game in the next hour or so.
Great. Thank you!
anyone help with this, please?
I'd recommend implementing the Taskable class, override the start method and register a new repeating task every 3s which sets a global int variable to a new Random().nextInt(allWarps.size())
This way, in the onRequest method, you'll get the same warp for all placeholders and it'll switch every 3s
Thank you very much. I'm new to PAPI and I couldn't find any starting method to override, can I please you to provide me a small example?
well I'm on phone atm, but you need to implement the Taskable class and override start()
Thank you
and how do I register my Taskable class? 😄 I cannot find any examples for this
I am making a reward system and there is a reward for "one month" and when using the variable %statistic_time_played:days% it does not work because those 30 days are instantly changed to a week and it is impossible to claim, what can I do?
i cant use /papi ecloud download Math
it gives the error "Failed to find an expansion named: Math"
you have to implement the Taskable class in your expansion class, you can learn a bit more about how it works here: https://www.geeksforgeeks.org/extends-vs-implements-in-java/
use %statistic_days_played% instead
do you have the ecloud enabled in your PlaceholderAPI config? is your server connected to the internet? do you have an error in the console?
Yes, also i use this but is the Same, i'll try again anyway ty
statistic_days_played is for all of your time played in days, while statistic_time_played:days is just the day part of statistic_time_played
Okaaay ty
I'm looking for a place holder, which shows how many armor attribute player have. I have looked through the ecloud list and there is an Attribute, however I can't download this and it's not in the existing expansion list
can some one help me please
can you give me the link. i can't find it
thanks
It all works! Thank you so much 
Would appreciate if someone with the rights for it could actually aprove Formatter's latest version... It seems it isn't from what I saw?
Also, math too.
Bug - Custom biomes show up as "CUSTOM" instead of biome name.
Done and done sir!
placeholder api on bungeecord, how? I need this to motd to use %bungee_total%
thank you. People were complaining why they couldn't find it with the command 😅
Please respect the rules, be patient and don't ping staff members!
Yeah we have to manually verify them all for security reasons for the time being.
[11:32:57 WARN]: [PlaceholderAPI] Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.4.58 which is not a depend or softdepend of this plugin.
YOu can ignore that
🆗
does anyone got the javascript for java 8?
can we make custom placeholder ?
that include number in that place holder as a output ?
does anyone know why i get the com/github/benmanes/caffeine/cache/Caffeine error?
adding the maths 1.2.6 expansion to my server
Where is the "Statistics" placeholderapi extension data stored?
I'm trying to reset deaths and kills...
world data
ive resets stats so many times
lol
and restarted
so many times
idk why its not working
I am using AdvancedServerList plugin to show placeholders in motd.
And it is like this in the config: "Water", "%tntrun_status_Aqua%", "%tntrun_player_count_Aqua%" , "%tntrun_maxplayers_Aqua%"
And Pinger expansion to parse it on server
So in server list it looks like this:
https://imgur.com/NGrBwSM
But when I parse it using pinger it looks like this:
https://imgur.com/V3WgL0k
So here is the difference:
https://imgur.com/a/oyJxgBr
How can I make Pinger to show exact same thing as in server list?
Or alternatively... Can I somehow use/parse placeholder on another server?
Does anyone know what this error is, every time I turn on the server and when the server boots up, it will give me this error
Whats EXRPExpansion ?
I have used some papi and here is the list
Please respect the rules, be patient and don't ping staff members!
citizensplaceholder, deluxemenus, discordsrv, emf, essentials, excellentcrates, gsit, mmoitems, mythiclib, oregen3
player, playerkits, playerpoints, plugin, superior, tst, vault, viaversion
Can you send the exprexpansion?
expansion, what do you mean??
These are expansions
Take a screen shot of your expansions folder
do you mean papi list
okey
Can I chat with you privately because this channel doesn't allow me to send pictures?
Since this channel doesn't allow me to send pictures, I've sent the pictures to you separately, I hope you can help
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
Do you have ezrankspro installed?
not yet
because I made the rank with deluxemenu
Remove the expansion ezrankspro
ok let me try
I fixed it thank you so much
Hey it is possible to show players the time in their timezone using Localtime expansion for example in a scoreboard using %localtime_timezone_<TimeZoneID>% ?
hello!
im having an issue, every single time i start my server i have to register all of my placeholders again and it used to not do this
i have to use /papi register every single time
[19:29:02 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
fixed
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
What is it spamming me in the console? Everything was working fine, but suddenly it started
https://paste.helpch.at/okahegeyoz.md
help pls(
Not understood
ah
or to check how much is left for a date?
I want to make a Rewards that the player has to connect a certain day and play a certain time
idk if that exists, however you could probably get date and compare using changeoutput so if it matchs you return true else false
%server_time_dd%
you can replace the dd by any other letter in the list
https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
It is that I want to make some Rewards that the player has to connect on a certain day and play for a certain time, like 5 minutes, on the same day
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:428) ~[PlaceholderAPI-2.11.2.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:831) ~[?:?]
at java.util.zip.ZipFile.getEntry(ZipFile.java:330) ~[?:?]
at java.util.jar.JarFile.getEntry(JarFile.java:518) ~[?:?]
at java.util.jar.JarFile.getJarEntry(JarFile.java:473) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:189) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:129) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:147) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:124) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:574) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:524) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:524) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:405) ~[PlaceholderAPI-2.11.2.jar:?]
... 2 more``` anyone knows how to fix this? every time i update expansions this happen
maybe not even because of updating
because i didnt update em and this still happened
hello
i have a very big problem
%statistic_mine_block%
returns wrong amount of blocks
some blocks add to this statistic by 2, while some add to it by 1
[16:15:24] [Server thread/WARN]: at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
[16:15:24] [Server thread/WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
[16:15:24] [Server thread/WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[16:15:24] [Server thread/WARN]: at java.base/java.lang.Class.forName0(Native Method)
[16:15:24] [Server thread/WARN]: at java.base/java.lang.Class.forName(Class.java:375)
[16:15:24] [Server thread/WARN]: at com.extendedclip.papi.expansion.server.ServerExpansion.<init>(ServerExpansion.java:64)
[16:15:24] [Server thread/WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[16:15:24] [Server thread/WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
[16:15:24] [Server thread/WARN]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[16:15:24] [Server thread/WARN]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[16:15:24] [Server thread/WARN]: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[16:15:24] [Server thread/WARN]: at PlaceholderAPI-2.11.2 (1).jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:438)
[16:15:24] [Server thread/WARN]: at PlaceholderAPI-2.11.2 (1).jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:173)
[16:15:24] [Server thread/WARN]: at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
[16:15:24] [Server thread/WARN]: at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
[16:15:24] [Server thread/WARN]: at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
[16:15:24] [Server thread/WARN]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
[16:15:24] [Server thread/WARN]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
[16:15:24] [Server thread/WARN]: at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
[16:15:24] [Server thread/WARN]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[16:15:24] [Server thread/WARN]: at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
[16:15:24] [Server thread/WARN]: at PlaceholderAPI-2.11.2 (1).jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:350)
[16:15:24] [Server thread/WARN]: at PlaceholderAPI-2.11.2 (1).jar//me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46)
[16:15:24] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101)
[16:15:24] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
[16:15:24] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1173)
[16:15:24] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[16:15:24] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:833)```
What's that, how can i fix?
update the server expansion
thx
LocalTime expansion shows the wrong time?
when i first set it up it was showing the right time, now it's showing a time that is 4 hours behind?
anybody have an example of how to retrieve information about a specific player using their name as a placeholder in the format of %javascript_example_<PlayerName>%?
is there a way to parse a placeholder properly despite the target player being offline?
it's up to the expansion for how it handles offline players
tysm for the info
Anyway to see what expansion needs updated? I have 8 total palceholder hooks registered and it keeps telling me 1 needs updated. I've updated all in game commands wise and it still seems to pop up.
So for deluxetags its not showing in chat...
what chat plugin
I am just using essentials since Deluxechat doesnt support 1.19
DeluxeTags showing in essentials chat:
1. Stop the server.
2. Turn off the papi_chat option in the DeluxeTags config. deluxe_chat in older versions.
3. Turn off the format_chat option in the DeluxeTags config.
4. Put {deluxetags_tag} in your EssentialsChat chat format. (In essentials config)
5. For Versions Below 1.8.2: Replace all the placeholders in the DeluxeTags config
%placeholder% to {placeholder} (Ex: %deluxetags_tag% to {deluxetags_tag}).
6. Start the server.
is there a placeholder to pick random item from list of minecraft?
Not that I'm aware of.
.
Hi! I have a question! is there a placeholder for player deaths, but only deaths by other players. So something like this?
%player_death_by_player%
%player_pvp_death%
%player_only_by_player_death%
Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.
can you help me I have javascripts that replaces the placeholder with a word and why does it replace only if the player has admin permissions
Placeholder pinger not working.
Always writes offline even if the server is on.
I use velocity as a proxy.
How to solve it?
what is the placeholder for essentialsx mail unread numbers Please help
Is there a way to (re)enable color codes in papi parse commands? I can swear it was a thing ages ago, but both &e and <yellow> no longer seem to work
is there any placeholder that output client time ? or not possible?
how do I change vault eco bal and griefprevention remainingblocks formattion from 11.11k to 11.1k
download it manually
Anyone know if there is a way to show top rank with Rankup 3 without creating my own placeholder expansion?
Look to show Top rank 1, 2, and 3
Tried showing top player on track with luckperms but that didnt work
hi, does PAPI it work with MiniMessage?
Work with MM as in?
I want to add run_command to my PAPI
ChatHelper.sendMessage(target, listOf(
PlaceholderAPI.setPlaceholders(target,"%img_offset_100%%img_invite_accept% %img_offset_80%%img_invite_deny%"),
PlaceholderAPI.setPlaceholders(target,"%img_invite_island%"),
PlaceholderAPI.setPlaceholders(target,"%img_offset_85%Gracz <red>Lisu_S3 <gray>zaprosił Cię"),
PlaceholderAPI.setPlaceholders(target,"%img_offset_85%na swoja wyspe - <red>Lisowisko"),
" ",
PlaceholderAPI.setPlaceholders(target,"%img_offset_130%Czy chcesz dołączyć?"),
" ",
" ",
" ",
" "))
You need to parse the mm string afterwards
do i have to write the message as Component mm?
fun sendMessage(sender: CommandSender, messages: List<String?>) {
val finalMessage = StringBuilder()
for (message in messages) {
finalMessage.append(message).append("\n")
}
sender.sendMessage(colorize(finalMessage.toString()))
}
Do you know if there is a way to show top players in a specific track of LuckPerms?
Please respect the rules, be patient and don't ping staff members!
No i do not
Yes, papi will only replace placeholders,MM will turn the string into a component
Why with the placeholderAPI plugin my ./hub no longer works
If it's really not working cuz of papi, then you should find a replacement for it
I'm trying to make it so it shows the list of people with this permission but when I use "list" it just shows up as the placeholder in plain text.... If I use "amount" instead of "list" it does return the number of people with this permission. I thought this was because I can't convert a number to a string but it works when I replace the place holder with "test". Please help.
"28%":
"0-0": "%playerlist_online,perm,yes,list,weight.28%"
"else": "%playerlist_online,perm,yes,list,weight.28%"```
var name = "%cmi_playtimetop_name_1%";
function check(){
var answer = `%parseother_${name}_cmi_user_playtime_hoursf%`
return answer;
}
check();
This give me an error. What i do wrong?
javax.script.ScriptException: <eval>:4:14 Expected an operand but found error
var answer = `mi_user_playtime_hours`
^ in <eval> at line number 4 at column number 14
as i see it cant work with `, but how i can interpolate variables then?
I'm at the latest 1.19.2 paper build and using PAPI 2.11.2. The /papi dump, /papi reload and /papi register do not work. When I restart the server, sometimes the expansions downloaded from ecloud doesn't load. I don't see errors on console and PAPI loads all other expansions that were connected automatically.
latest.txt available in https://paste.helpch.at/raw/onareforiy
can someone can help?
Hello so I am using InteractiveBoards and I want to display a players rank! we are using Luckperms
Anyone???
Are there placeholders for who has the most max hearts? (When they fully healed)
Everytime my server restarts papi seems to break. After i reload the plugin it's working again. Any idea how to solve?
hey, I am using the Gradients ecloud addon. Can I make there be a &l between each gradient too?
I need that too
for my Lifesteal server in my Network
Hi! Can I get some help? I'm trying to integrate PlaceholderAPI to my plugin. I'm creating a PlaceholderExpansion as an Internal Class in my plugin. It throws an exception when I try to register it. Somehow the PlaceholderAPI is not available.
Your plugin / expansion shade PlaceholderAPI. Here's how to fix that:
- For Maven, set
<scope>toprovided - For Gradle, use
compileOnlyinstead ofimplementation
Holy cow... this is awesome, congrats to the person that coded that bot
@balmy marten
🙂
Currently i'm trying to use placeholderAPI on lores it does work for the GUI on ultimatekits but once i claim the kit the placeholder doesn't work are placeholders support on claimed items?
Uh interesting
It's just showing the %player_name% but on the gui it shows the playername only on the items it doesnt work when i claim it.
Dont think thats how it works @vocal coral think ultimatekits gotta support it
Hmm not on the top of my head
Hi, can someone help me making a KDR placeholder? Rn i'm doing
%math_{statistic_player_kills}/{statistic_deaths}% but it does not work if player has 0 deaths. Any way i can workaround this?
like, using 1 if deaths is zero and the actual value if it's not
This should be possible as the math expansion supports more advanced operations, operators and functions such as IF statements. I can not find the documentation for this on the Math or EvalEx documentations but maybe @arctic loom can help guide us in the right direction.
You can try something like %math_if({statistic_player_kills} == 0, 0, {statistic_player_kills}/{statistic_deaths})%
Amazing, thanks
Uhm.....
Please respect the rules, be patient and don't ping staff members!
Common now Barry. They tagged me first!
Lol
I want to show if the player is matchmaking or not on simple score... I have this scorboard objective and if it
equals 1 > then i want green text saying 'Matchmaking'
equals 0 > then i want red text saying 'Not Matchmaking'
I dont know if I should ask help from placeholderAPI or SimpleScore
Anyone know a solution to this?
[12:26:59 INFO]: [PlaceholderAPI] Loading PlaceholderAPI v2.10.2
[12:27:20 WARN]: java.net.ConnectException: Connection timed out: connect
[12:27:20 WARN]: at java.net.DualStackPlainSocketImpl.connect0(Native Method)
[12:27:20 WARN]: at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
[12:27:20 WARN]: at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
[12:27:20 WARN]: at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
[12:27:20 WARN]: at java.net.AbstractPlainSocketImpl.connect
That version is almost 4 years old. You won't get support for that.
didn't know, thanks
Mhmm. Highly suggest updating.
help pls i updated all my expansions but this one still giving error
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
Hello! I somehow lost the Placeholder API expansion for voteparty and couldn't find it in the ecloud... from where I can download it?
Yeah, I'm having memory leaks too with javascript
@deep hollow @twilit torrent @green osprey can you guys give this a try? I've tested it myself on different threads and for different players and the results are fine
For QuickJs I need to check their docs closer
I’ll give this one a go thanks 😊
u can simply make pretty same thing, but u will need a bit rework factory, like this:
interface ScriptEvaluator {
// some other methods...
void close();
}
class MyScriptEvaluatorFactory {
final List<ScriptEvaluator> evaluators = new ArrayList(1);
ScriptEvaluator blah(...) {
evaluators.add(inst);
}
void close() {
evaluators.forEach(ScriptEvaluator::close);
}
}
Please respect the rules, be patient and don't ping staff members!
aight
Thanks! Will test it now, also it supports java 11 or only java 17?
Please respect the rules, be patient and don't ping staff members!
if u wanna use nashron, u can add jvm flags
this one: --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED
ty!!
Please respect the rules, be patient and don't ping staff members!
Hello, I'm having problems with an extension, I need to change the format
Ok
@mint fable, yo! can you remind me what do i need to do for verify my expansion?
Please respect the rules, be patient and don't ping staff members!
Servertime (it was verified before the new verify policy was introduced)
Hello !
can someone help me ?
I recently added a scoreboard on my server but placeholders are not put in the scoreboard, it show me "%luckperms_prefix% or more expansions, so someone knows how to fix it ?
Thanks
idk what to do ?
It is generally more about your scoreboard plugin thean PAPI but be sure about you installed correct expansions
I could be mistaken, but it looks like you removed the RandomTeleportExpansion plugin from your server but left the placeholder expansion in your papi folder. Remove the RandomTeleportExpansion papi expansion from your folder papi expansion folder and you should be fine I think.
can someone verify my expansion update
https://api.extendedclip.com/expansions/husktowns/
many thanks
No problem, but I'm curious why not include an internal expansion?
That way people can use your placeholders without having to use the cloud
sunk cost fallacy
"I've made the expansion for v1, you guys have this overcomplicated system to let me separate it from the main plugin, guess i'll just keep doing this lol"
essentially just gotta copy the class file, not too much, but I understand
easier
lol
yeah I know, I totally could just do that
then again like, let's be real, this entire ecosystem could and possibly should just be deprecated in favour of official hooks for a few plugins
and authors told to put it in their plugins
they can and are
downloading jars to servers over the internet must be a headache
is it? did I miss the announcement
expansions are moreso for "I need placeholders for this plugin that provides an api but doesn't do it themselves"
or "i need placeholders but have no plugin"
it's not clear to me reading that
huh?
returns nothing?
the expansion targets jdk16+
your IDE is doing weird stuff
because it uses the lambda switch-case
lemme see ya
https://github.com/WiIIiam278/HuskTownsPlaceholders source is here for the record
are you using jdgui to see that? cus its bugged and doesnt show all code at all times
specifically with newer return switch cases
im gonna fucking blow up trying to edit a text file in a folder blocked by the system
lol
but you folks should definitely add a big gray warning bar saying ⚠️ "hey, if you're the developer of the plugin yourself, don't do this"
It's entirely up to you
you don't have to do it one way or another, I was just curious
I personally just feel it's easier to include it in mine
sure, but I don't trust myself to pick the smart and obvious choice lol
i use the With a Plugin (Internal Class) method
yep, lame
do you use another decompiler?
i still use jdgui, i was using luyten before but its got problems of its own
icic
i think the reason why is that jdgui only supports java 8, or atleast it refused to open with jdk 17 as main java, so it doesnt support any of the new functions that dont get automatically converted back
or something like that
I just opened it with jdk17 and it didn't do nothin
earlier it did refuse though, maybe cause it was open already? idk why
different folder now though, so maybe why
@analog flax verified
thanks 🙂
Anyone else having issues installing the Expansion of GriefPrevention for PlacehodlerAPI?
https://api.extendedclip.com/expansions/griefprevention/ install from here manually @weary fable
🙏
🙂
[07:43:22 WARN]: [PlaceholderAPI] Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.4.57 which is not a depend or softdepend of this plugin. [07:43:22 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms [5.4-R2] [07:43:22 INFO]: 1 placeholder hook(s) registered! [07:43:22 INFO]: [ViaVersion] Finished mapping loading, shutting down loader executor! [07:43:22 INFO]: Done (22.055s)! For help, type "help" [07:45:43 INFO]: Couldn't find veraion command, did you mean version?
[07:45:43 INFO]: Couldn't find veraion command, did you mean version?
Just an FYI for the DEV team.
fyi about what?
[07:45:43 INFO]: Couldn't find veraion command, did you mean version?
I am confused
You wrote veraion instead of version
so it suggested version
no, it came up like that in console, after restart. It's your plugin.
I was just making you aware of it.
Could you provide an entire startup log by chance?
I don't even think this is related to papi at all
PAPI just seems to be near the end of your startup sequence
I did not receive this message in my console
yeah definitely not PAPI lmao
likely an automated script you wrote or MyCommand or something spelled it wrong
https://www.picz.in.th/image/image-(1).JL9EUz
How can I put my name and amount in the form?
org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.11.2
error go brr
happens when i do /papi reload
ive reinstalled plugin, restarted server
still wont work
full error @round marsh
u know the issue?
any startup errors?
il check
nope
also the plugin deletes itself on server restart
idk y
why the Javascript expansion is not there on the ecloud?
this can not happen
you have to download it manually
oh
well it does
Please respect the rules, be patient and don't ping staff members!
bruh
Hey Gaby good morning
do you know why I'm getting this error every time I start the server?
I've to run /papi reload to fix all placeholders
https://hastebin.com/etosipuhiw.sql
no I do not, sorry

😢
what host are u using?
exaroton
wait why...
coz i made a dumb move with my purchase
im gonna swap to pebble once i run out of creds
i can give u panel access if u wanna take a look at whats wrong
@frosty reef
i aint touching exaroton lmao

y not?
Is there a way to add decimal points to placeholders? I currently have a belowname placeholder showing my health but I want it to be in 10.0 format instead of just 10. I currently have this ```yml
"%math_{player_health}/2%"
iirc it is %math_<decimals>_<equation>%
there is no expansion ListPlayers
And in the wiki it is
/papi ecloud download ListPlayers
%listplayers_in_world_<worldname>%
I might be stupid but it says there is a few ecloud packages that have an update so i run /papi ecloud update all and it just doesnt seem to update them
Whats the placeholderapi to display the status of a specific player like if he online/offline
Hey, I am getting this error every time I restart the server. None of the placeholders work until I run /papi reload. I have 4 expansions installed: essentials, player, server and vault. Does anyone know how to fix this error?
https://pastebin.com/HNujPcuH
@mint fable, #ecloud-updates message - check it
Please respect the rules, be patient and don't ping staff members!
@stone edge why dont you make a pr to the string expansion made by blitz to add the capitalization placeholders?
bc idk how to do those complex things xd
i learnt the git thing just because the IDE tells you what to do xd
(Thats why my plugins are not open source xD)
fixed btw
good to know 😃
I am using Towny and was told I can use PlaceHolderAPI to look for towny.townless permission node on a player and make my own prefix, but not sure how to do that or where to look
Question, if anyone can help! I'm running itemsadder's rpghud addon, in addition to realistic seasons. RS has an actionbar display for the temperature and it continuously switches back and forth between the rpghud and the temp. Disabled the temp display and now looking for a solution to have them both up at the same time. I thought it would be as simple as pasting %rs_temperature% somewhere, but it stopped seeming like that an hour ago. Thanks to anyone with thoughts!
hello , does anyone have placeholder list for 1.8.8 version ?
how do i get the javascript expansion
/papi ecloud download javascript
doesnt work?
placeholder list is global, most of them work for all versions except (of course) placeholders of plugins for newer versions only
I might be stupid but it says there is a few ecloud packages that have an update so i run /papi ecloud update all and it just doesnt seem to update them
Anyone know why when I use the "Server" placeholder I end up with just getting a "1"? It seems to be parsing the current server and not the one I want it to so I'm confused on how I can parse another server thats not the one I am on
there is a bungee expansion i think. use it
Will that work the same for Velocity?
Also there's only
"Server"
"ServerWebsite_Expansion"
and "Servertime"
Does Papi work on a proxy?
nah u have to manually install
also how to i get the value of a placeholder in javascript
you just use the placeholder and it gets replaced iirc
in javascript?
in the .js file
i remember there was a method also you can use inside your code
but dont remember very well, check the wiki
is this outputing number right ?
var group = "%luckperms_current_group_on_track_ranks%";
function mbody() {
var outp = 19;
switch (group) {
case "newcomer":
outp = 19;
return outp;
break;
case "serf":
outp = 20;
return outp;
break;
case "peastant":
outp = 23;
return outp;
break;
case "servent":
outp = 26;
return outp;
break;
default:
outp = 19;
return outp;
};
};
mbody();
yes, you can take out some though
var group = "%luckperms_current_group_on_track_ranks%";
function mbody() {
switch (group) {
case "newcomer":
return 19;
case "serf":
return 20;
case "peastant":
return 23;
case "servent":
return 26;
default:
return 19;
};
};
mbody();
hey, i’m planning to improve my extension a bit in a few days, i need to write to you again for re-verification?
alright, can i ask you a couple of questions in DM? 😊
can ask here, no?
i have a couple of ideas that i want to discuss in person 🥺
i end up using expression within the menu since slot dont work with placeholder
Hi, about the ParseNear placeholder %playerlist_online,nearby,no,list,3%. Is it possible to get only 1 player name from the nearest?
Like if there are multiple player nearby, only get the 1 only nearest player.
CC: @junior musk I see you don't do it currently, but would it make sense to sort the Nearby subtype by distance at the end? (I know you would have to store the distance as well in a map instead of a list maybe)
doesn't look like currently with playerlist
but if it is possible, tanguygab would know, if not, maybe could be added 🤷♂️
ah my bad, its PlayerList xD
Wait this is playerlist expansion, but what about Parsenear like you mentioned
would that not work
%parsenear_3_player_name%?
omg this is what I needed! thank you so much!
Please respect the rules, be patient and don't ping staff members!
sorry tanguygab lol
I believe those are old mvdwplaceholderapi placeholders
you gotta use placeholderapi placeholders now, full list here:
A resource that allows information from your favorite plugins be shown practically anywhere!
• Spigot
• Wiki
• Placeholder-List
• GitHub
• eCloud
but you need factions and vault
4 different placeholders available, not sure what rounded did for you
%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_balance_commas%```
Weird, even with Vault that doesn't work.
with the vault expansion?
Might have the wrong plugin installed, you have the link?
uh, you need placeholderapi installed for featherboard to work
so if it's working it's installed
link here though
It is installed.
download vault expansion with these commands
and use one of these in your scoreboard
Ahh I understand now. Thank you, much easier than before.
CJ, I'm trying to add a placeholder in essentials chat format to display a faction. I'm not having any luck.
I also used %factionsuuid_faction_name% but then it removes everything in the format when you reload essentials.
interesting, that would be more logical yeah, I guess I could try to store players with their distance in a treemap to sort them
Please respect the rules, be patient and don't ping staff members!
I'll try when I get out of bed
dw, still interested in adding that
@mint fable, hello there! The site says that I need to contact an staff to return the verification of my expansion. Can you verify it - ||https://api.extendedclip.com/expansions/kekorankextension/||?
Please respect the rules, be patient and don't ping staff members!
If this is for your plugin, you can just integrate the placeholders directly into it! That means that users won't need to download a separate expansion and that you won't need to get it verified. https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-a-plugin-internal-class