#placeholder-api
1 messages · Page 156 of 1
what placeholder I have to put to see the players on the survival for example
Done, can take up to 2 hours to show in game
Awesome. How does the tab completion work? Does that come with verification?
And should I rename the jar to Expansion-<name> ?
it's renamed by the plugin
Dope
and by tab-completition, do you mean in the ecloud download cmd ?
once the ecloud is refreshed, the expansion's name (that you defined on the ecloud) will show in the cmd when you do /papi ecloud download and press tab
you have to override the getPlaceholders method and return a string list containing all placeholders
then you just put %myExpansion_ in the cmd and it will show all placeholders that you listed
Oh
Cool
Thanks
I thought it might be something like that but didn't see it in any of the docs/examples
Should the list items include the expansion identifier?
i have the placeholder: %vault_eco_top_balance_#%
how do i let this work in placeholder api?
run those commands
How do I upload a new version of an expansion at https://api.extendedclip.com/ ?
The edit page doesn't seem to allow it
you have to go on the expansion's page and click on the Versions tab
Thank you!
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
You can find a wiki for all or most HelpChat plugins at:
https://wiki.helpch.at
i don't understand how i can put in placeholder sfrom other plugins
ok so i need help with the playerlist API [deluxe menus]
items:
#Head
'1':
material: head-%playerlist.online.normal.yes.0.100%
slot: 0
update: true
display_name: '&f%playerlist.online.normal.yes.0.100%'
hide_attributes: true
'2':
material: head-%playerlist.online.normal.yes.2.100%
slot: 1
update: true
display_name: '&f%playerlist.online.normal.yes.2.100%'
hide_attributes: true
i'm doing something wrong i think, so i want the head of the user in each slot (each online member of the server)
and then the display name is the name of the user. but the api does not like the ' ' so it sets the display name to %playerlist.online.normal.yes.0.100%
any givin time the list will show up with 2 users even if it just me and i am excluding arr.0 (me)
What if anything am i doing wrong?
what placeholder I have to put to see the players on the survival for example
how do you use this on bungee
you can't.
well techincally if you have a bridge plugin you can. but by itself PAPI doesn't work on bungee
and where can i find it
well you can't. You'd have to make it. Like for example the TAB plugin does. Or the BungeeTabListPlus plugin does it
its not something that just exists and works for every plugin
you'd have to make one for your usecase
zno i want to see if my server is online
well for that you can just use the Pinger expansion
can anyone help me with this situation?
Is there a way to make it so when a player gets money this doesn't show up with all the .9999999? https://prnt.sc/12kz258 Using essentialsx and Vault.
Try to use the PAPI Math expansion, with precision of X digits you want in the decimals.
And if you don't know how to do that, ASK IN THE PLACEHOLDERAPI DISCORD SERVER FOR SUPPORT.
Link: helpch.at/discord
use %vault_eco_balance_fixed%
instead of %vault_eco_balance%
There are no placeholders for MCMMO leaderboards. For example, placeholders for /mctop. Is it possible to have placeholders for /mctop and placeholders for each category. Such as mctop_woodcutting_player_1, mctop_power_level_player_1, etc.
Also: using placeholder %vault_eco_top_balance_fixed_1% returns $0
does the otherplayer placeholder work properly?
Is the top function enabled? @hallow mist
What to do you mean enabled? I have done /papi ecloud download Vault?
@smoky spoke Other Vault placerholders work, such as %vault_eco_balance_commas%
however %vault_eco_top_balance_fixed_1% returns 0
i dont need vault. im trying to use the OtherPlayer placeholder for plugin placeholders
@hallow mist papi config
yes it does work
used it the other day
Oh, I see. I did not know that baltop needed to be enabled via placeholderapi. It works now, so I appreciate the help!
yeah. they will also be removed. You can read more about that here.
can you perhaps give me an example?
Example? I don't really understasnd what's so hard about it. %otherplayer_displayname_BlitzGamer_88%
would display the nickname of BlitzGamer_88
I assume you meant ParseOther?
Ic xD
%parseother_{username}_{vault_rank}%
would show the rank of username
and username can also be a placeholder
%parseother_{BlitzGamer_88}_{vault_rank}%
%parseother_{player_name}_{vault_rank}%
both work
@turbid tide Oh, I see. I am looking forward to that. After doing a server restart, the Vault placeholders no longer work. It was working when I first added it, but then the values weren't updating, so I restarted the server and now they just return no player names and all balances of $0
go to plugins/PlaceholderAPI/expansions and delete the vault expansion from there
there might be multiple. Delete them all
then do /papi ecloud download Vault 1.5.2 then /papi reload
Thank you, Blitz. Was there any word on this?
I will sound like a dumb question but I'm starting on java plugins
how to add placeholder api to eclipse ide?
i would recommend using maven/gradle (preferably gradle) and follow the guide shown here
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI
if u dont wish to use a build tool (lol), i think u should be able to just import the PlaceholderAPI jar into your workspace as a dependency
I can import the normal jar just like that?
i wouldnt recommend doing it that way, but sure
so, wheres the build tool?
idk how eclipse works, but ull probably need the gradle plugin, convert the project to a gradle project, then add the repo + dependency as it is specified in the link above
intellij good 😌
hi whats good! Im having problems with MVdW Placeholders
it doesnt get the placeholders
could you help me please?
thanks
it'll only work if you have an mvdw premium plugin
and have you run those commands?
yes
I assume /papi parse me %mvdw_stat_blocksmined_legacy_ladder% doesn't work either?
hmm
it doesnt work
does /papi parse me %mvdw_player% work?
yes
1.12.2
?materials
thanks!!!
👍
one question
I have connected ConditionPerms to mysql
and now I can make a "survival stats" in the lobby?
with deluxe menus
cause mvdw doesnt bring mysql in the config, so I connected ConditionPerms
cool
but somebody here might know something so gl
Hi! I got a big problem, pls help 🙂 https://pastebin.com/NMArMsZ2
I don't even know what everything means
But i have been using it for 4 days, no errors
Oh
Okay, i will install java 11 then
perfect
Also, clients can use java 16?
I mean I think so, but 99% of people just use the bundled Java runtime
XD It gives so many errors on low pcs
Yeah got fixed, it was java 16
Thank you so much 😄 ❤️
np, good luck with your server!
is there a placeholder that can convert a given value into seconds, minutes or hours
/papi ecloud download Formatter
/papi reload
%formatter_number_time_<number>%
%formatter_number_time_seconds_<number>% # Handles number as seconds
%formatter_number_time_secs_<number>% # Handles number as seconds
%formatter_number_time_minutes_<number>% # Handles number as minutes
%formatter_number_time_mins_<number>% # Handles number as minutes
%formatter_number_time_hours_<number>% # Handles number as hours
%formatter_number_time_hrs_<number>% # Handles number as hours```
placeholder progress work on 1.8.8 ?
can someone help me with a little javascript placeholder? 🙂
Try it and see, not sure if it does or not
btw is it possible to use a math placeholder inside a math placeholder?
use {} instead of %% for the inner math placeholder
i mean like, %math_0_{math_0_{checkitem_amount_mat:apple}*8}/10%
stuff like that
wow ty!
how about stuff like this?
%formatter_number_time_{math_0_{rp_LAVA_TANK}*600}%
i can just do something about it by using rocket placeholders but i wanna know if it's possible
u cant put deep inner placeholders afaik
ok
so just asking, about the math placeholder, is it possible when i parse the placeholder, if it gives a negative value, it gives 0 instead?
like, if it gives the number of 50, it will be 50. if it gives -27, it will be 0
is it possible?
Hello, I would like to add my plugin in the eCloud, how can I do?
u can try using the changeoutput expansion, if not ull have to use the javascript expansion
if u have an account, u should be able to create a new expansion there already
if u dont have an account, ull have to get an admin to register one for u
yes, so that's what I had seen, I have to contact in mp, via ticket or via mail?
if an admin sees ur message here in discord theyll be able to contact u
where can i view change output's wiki?
nvm the tab suggestion has said it
okkk, i will wait
Hey how can I use checkitem for spawners? like zombie spawners and such
Hi i am using world extansion
I have a problem
I used %world_players_{world}%
The problem is my world has a _
Straight_1
What can i do?
i doubt itll work, but try escaping the underscore with \
I cant really
Ok plan b
Is there a world guard placholder?
That give you how many players are there
I'm making a plugin for someone and he wants to get checked if a player meets a certain value of a placeholder....
How can I do this?
Is there a .getPlaceholder or something like that?
u can parse the placeholder with PlaceholderAPI.setPlaceholders(Player, String)
So just
String givenTime = PlaceholderAPI.setPlaceholders(player, "%ontime_time_played_total%");
if(givenTime.equals("...
👍
ohhhhh
that's what you meant xD
you have to import the InventoryFull plguin
in your plugin
there is no maven repository or anything like that. It only works with the plugin jar
Hello, would this javascript work?
function formatNum(num){
if(num>=1000000){
return (num/1000000).toFixed(2)+"M";
}else if(num>=1000){
return (num/1000).toFixed(2)+"k";
}else{
return num.toFixed(0);
}
}
formatNum(mobcoins);```
Because when two or more players placeholders is getting buggy, for ex. sometimes shows 1k mobcoins sometimes 30k.
( Please ping me, thanks! )
I have no idea if this still works but here
function kFormatter(num) {
return Math.abs(num) > 999 ? Math.sign(num)*((Math.abs(num)/1000).toFixed(1)) + 'k' : Math.sign(num)*Math.abs(num)
}```
or if it even works with Nashorn
just changed toFixed(1) to 2 if you like it more
oh wait
nvm
this is for thousands only
oof
yeah I forgot my economy is good xD
well I never actually got to even use it
soo... xD
Theres a formatted expansion.
Really?
yeah
F
This just sounds like the placeholder is either broken (the super mob coins) or you should ask the developer to add a new one for formatted
Hi, why does this command not delete the enchanted item? (checkitem) (serv 1.8.8)
/IM remove Artsuki Mat:diamond_sword Amt:1 enchs:DAMAGE_ALL=1
Hello, is it possible to remove the * before the TPS amount when using "%server_tps_1_colored%"
You might be able to via a JS placeholder but iirc that just means that you haven't been up long enough, haven't had any timings issues, or a couple other reasons. It's returned from the server itself, not anything we do.
changeoutput expansion 🙂
also glare i think we had a discussion about the * some time ago here, iirc its if the server has finished all of its tasks within the tick, so it has remaining time before the next tick or smth like that
All right thank you but I have one more question, if I remove the "colored" from "%server_tps_1_colored%", it becomes "%server_tps_1%". When I use "%server_tps_1%", the * does not show up.
Hey guys i uh
have a bizzare issue i thinks related to papi
whenever my papi is in
it adds upto 5000 users to luckperms
with nothing but group.default
any ideas?>
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
and paste it
tell the placeholder how many blocks you have broken
%statistic_mine_block%?
Yeah
Why am I breaking 1 block, but he tells me that I broke not 1 but 2?
I don't know? Maybe you broke 2 blocks? Or you broke a block before using the placeholder?
nah I think it's minecraft doing that
I have rechecked many times, I break 1 block in the value added 2
yeah its bcz of how minecraft checks those. Not really a lot you can do about that. (talking about the statistic expansion)
never got any answer x)
yeah that won't happen
bcz that would mean caching each player or reading from somewhere every time and both are just bad
I'm not really sure but if you ask in the LuckPerms (why requesting for permission for offline players is bad) they could probably give you a more advanced explanation. Pretty sure they also explain it on their wiki somewhere
From memory, they'd like to see PAPI async?
whenever i delete mcmmo, my %statistic_player_kills% statistic breaks in my scoreboard
yes i did /papi ecloud download Statistic
i tried to delete the expansion, restarting my server and reinstalling it
hey with scord borad is there a way to make it say the servers name Then Number of players in that server
https://imgur.com/a/ubT7S0g
Thats what it looks like
Hey.
whats wrong?
- '&aSétálás: &f%math_{statistic_walk_one_cm}/100[precision:0]%'
- '&aFutás: &f%math_{statistic_sprint_one_cm}/100[precision:0]%'
- '&aUgrás: &f%statistic_jump%'
- '&aÚszás: &f%math_{statistic_swim_one_cm}/100[precision:0]%'
- '&aZuhanás: &f%math_{statistic_fall_one_cm}/100[precision:0]%'
solved ❤️
- '&aSétálás: &f%math_0_{statistic_walk_one_cm}/100%'
- '&aFutás: &f%math_0_{statistic_sprint_one_cm}/100%'
- '&aUgrás: &f%statistic_jump%'
- '&aÚszás: &f%math_0_{statistic_swim_one_cm}/100%'
- '&aZuhanás: &f%math_0_{statistic_fall_one_cm}/100%'
what Is this?
whats the placeholder for online players
%server_online%
var isActive = "%luckperms_group_expiry_time_Lorde%";
if ( args.length === 1 ) {
opcao = args[0];
if(isActive == ''){
switch(opcao){
case 'nome':
return '&cVocê não possui VIP Lorde.';
}
} else {
switch(opcao){
case 'nome':
isActive.replace("w", " semanas");
isActive.replace("d", " dias");
isActive.replace("h", " horas");
isActive.replace("m", " minutos");
isActive.replace("s", " segundos");
return '&6Tempo restante: &e' + isActive;
}
}
}
}```
what am i doing wrong
its not replacing (the else part)
it comes out as the regular placeholder
why are you using a switch with only case none?
nome
I have downloaded placeholder /papi ecloud download RedisBungee but it throws error on /papi reload
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
Done
so anything else I cant do ?
I'm not sure of any other broken placeholder expansions
So you should be good without just that one
Hi, may I know if you have an option to disable this on thousand conversion on %vault_eco_balance_formatted% ? I want to provide the info for 1600 as 1,600 instead of 1.6k
@foggy crown _commas
Hello, thank for time, i want to add tag of faction on my scoreboard (featherscoreboard)
i write this :
text:
- '&7&l> &e&l%factionsuuid_faction_name%'
its doesn't work
can you help me please 🙂
scoreboard bug : https://prnt.sc/12vpwcb
if its featherboard then you have to use {placeholderapi_factionsuuid_faction_name}
ohh thanks !
Anyone know why [precision:1] doesnt work anymore?
Im using it like that 😕
%math_{collections_total}/100*{collections_unlocked}[precision:1]%
Oh 😄 It was changed.. Now it works..
%math_1:_{collections_total}/100*{collections_unlocked}%
hey i have error on my console can you tell me ? what I need to do
?
21:09:31 ERROR]: [Server Thread] [PlaceholderAPI] expansion class MCoreFactionsExpansion is outdated: Failed to load due to a [NoClassDefFoundError], attempted to use com.massivecraft.factions.RelationParticipator
Placeholder XPBoost isnt working theres no errors in console
place it inside of plugins/placeholderapi/expansions
any idea on what i should do?
what is "xpboost"
I'm having an issue with installing the mysql PlaceholderAPI extension. It's probably something stupid simple, but I am missing it:
Is this your extension or?
Did you setup the configuration section for Query?
Edit: wrong channel ._.
Hey is there an issue with the vault expansion?
Can i not send a video here to show the issue?
?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.
hope this is ok!
This happens ONLY when /papi ecloud download vault
is on the server
It randomly puts ALL my users inside luckperms ones without any permissions just the base group.default
took me days to figure out what it was but it happens 100% of the time with the vault expansion installed and 0% of the time with it removed and server rebooted.
Bring it up in the LP discord server, and see what they say
I did
they said its not them haha
They only changes that can be made to that user list is when the user logs in
or when a plugin requests offline information on the player
%statistic_mine_block% adds 2 every time I mine 1 block can this be fixed?
without using Math placeholder
I think is a bug, I know other plugin some use that stats has same issue (don´t know how that get fixed).
%player_item_in_hand_level_digspeed%
how to write correctly ?
What does the server think your UUID is?
Maybe it switched to offline mode somehow
damn that sucks, I hope they fix it soon
how to I use MVdWPlaceholderAPI placeholders as PlaceholderAPI placeholders?
Any reason why that wouldn't work ^?
well many many reasons
check console
if the problem is the plugin or the expansion it will probably warn you
with a big error
if no errors are there then its most likely user error
is there any where I could send a screenshot to show what I'm seeing?
?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.
you can see the PlaceholderAPI placeholders work fine above it, but the MVdW placeholders as PlaceholderAPI placeholders don't work
did you run those commands? 
wait but the VotingPlugin plugin has PlaceholderAPI placeholders too... you don't have to use the mvdw one
you can find them here: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#votingplugin
You just have to execute: /papi ecloud download VotingPlugin /papi reload
first
😮
yeah I'm trying to use the placeholders from HeadHunter https://www.spigotmc.org/resources/headhunter-rpg-system.32459/ but the PlaceholderAPI placeholders for them aren't working and neither are the MVDW ones so I figured I'd check if the MVDW ones would work with any other plugin
what happens if you do /papi parse me %HeadHunter_Level%
HeadHunter is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
that error
well there's your problem. You'll have to contact the developer of HeadHunter and tell them
to update their plugin
well you could also do the bad thing and use PlaceholderAPI 2.10.6
I might have to because this plugin is actually really good
any way to add that without restarting the server btw
nope. you should really not do that anyways
if its a live server (with players)
just add a daily restarter to your server
and make all your changes in a test server and when you're sure you want to update just do it when the daily restart happens
aight gotchu
bit off topic but is this error message essentially just saying that the plugin is outdated?
curious if there would be any way to fix this
install nbtapi
@violet cliff trying that now
still got the same error, you're talking about this, correct? https://www.spigotmc.org/resources/nbt-api.7939/
yeah
placeholder error?
https://paste.helpch.at/emuqewoxix.css
you can find a list of correct enchantment names here ^^
would it be possible to push a placeholderapi update to spigot sometime soon? :p
people are still repeatedly having issues with broken time/duration formatting - afaik it is fixed in dev builds already?
there probably will be a release soon. last build had a lot of changes/fixes but probably @arctic loom or @trim mist can confirm?
To my knowledge is this fixed in dev builds, yeah.
But I myself can't say when an update will happen as this depends on clip.
oh well that will probably take a while. I completely forgot about that xD
ah ok, if you could nudge clip to make a release next time he's about that would be great :)
Probs won't happen
I honestly believe that he basically abandoned his plugins at this point
I (and probs glare to some extend) basically made a lot of the recent changes to PAPI.
And they only got merged after I annoyed Piggy enough for it
🥲
So papi perhaps will be a abandoned project? Way not upload new jars on github at least?
And is several expansions he need to fix (has bugs).
It is fixed in dev build , was some other bugs in last one on spigot. Some dev version fix.
No lol, you do realize that v3 is being made from scratch right?
papi or expansions ?
papi
Was somewhat confusing when he wrote v3 🙂 Or has dev versions get other versions numbers recently?
If an expansion has bugs report them on github (papi repo if you cant find one for an expansion)
Is one of clip´s expansion, so it will not get fix soon, I mean it has not fix the engine yet ether.
yes, if he do that he take long time 🙂 I mean the problems has exist i think for years.
Well, you see, people have that thing called, um, real life and responsabilities.
it's cause the js expansion is like, super complicated and hard to deal with
a language inside of another language is quite a unique challenge
Plus, any changes done to the new version have to be more or less backwards compatible.
I end up make my own small expansion to fix my issue 🙂 Not best coding practice , but working on fix all issues with it (it work find, but need some improvements).
If js doesnt work is time to start coding your own things.
I understand your frustration. I was just annoyed back in the days when I used clip's plugins but as the time has pass, I realized that sadly, you can't always do what you like or at least used do.
Was more frustrate I have to reload js every server restart and players start to complain so needed fix it fast 🙂
If you look at my plugins, most of them didnt got an update in like an year, but that doesnt mean I abandoned them. Is just that other things have priority now
Then dont use js for literally everything or very complex stuff. Js was never meant to replace big things but for small scripts like adding together the players from multiple servers or adding a space between player's name and their faction tag.
Im not saying this is the reason it didnt got an update in a while.
Has the source to my expansion on github , but are not anything special.
Is to calculate numbers, how dmg tools and armor are and give different numbers depending rank (normal rank not any donate stuff). Is for repair and calculate dynamic.
armor part was not suited for js (every rank get 100 lines of code). In Java all this is in around 200 lines (including tools) 🙂
Is pretty amazing it works (but the code I think need improvements) 🙂 I for example force load the yml (should use hash for this i think). need to do some trial and errors 🙂
Has not work with yml and hash together before (So will be some fun pain) 🙂 Only good thing I only need read data not save.
yea most things a use js, it works pretty well, but this project I try do tho this time, not work out at all (was confused about this bug).
In dm you cant use 15.15 as requirement, it will send a warning in console. I don't get way first, but find it is js some are not stable enough.
Whats the error?
toFixed are the problem (that one will not send errors, start to work if you reload js 1 to 3 times (is random, some times it works after restart some times not)).
In dm is no big error, only you can´t use 15.15 (I use js in dm too), you need clean numbers no "."
Not sure what kind of crack you smoking, but I've never had an issue with toFixed lol, nor do I think has anyone else
Nah I saw someone else talking about toFixed @brisk coral
Whats the error @flint nacelle
Since when, was shit updated? Cause I know it wasn't an issue for the past two years
It not remove .15 some times.
Odd
As a say is js not like 452.87. it need 453 in dm menu
And is the js some are the problem, I run the placeholder manually and it print out like 15.15 and when reload (I can bee needed 1 or 3 times) js it start to work again and print 15.
money_requirement:
type: javascript
expression: '%vault_eco_balance_fixed% <= %javascript_money_check_laga_verktyg%'
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
sry for the ping.
Soo I look up the error in dm, the error are for the number are 15.15 not 15. Work fine when it print 15 is it should.
Get no issues when use my own expansion, but has made it in that way so it never can happen 🙂 Was some debugging to know way this happens so run %javascript_money_check_laga_verktyg% and get wrong result, run first papi reload and it start to work agen (I don't know it was js some was the problem first, so after I find the ).
[08:54:39] [Craft Scheduler Thread - 464/ERROR]: [DeluxeMenus] Requirement javascript <%vault_eco_balance_fixed% > %javascript_money_check_laga_verktyg%> is invalid and does not return a boolean!
[08:54:39] [Craft Scheduler Thread - 464/ERROR]: [DeluxeMenus] Requirement javascript <%vault_eco_balance_fixed% <= %javascript_money_check_laga_verktyg%> is invalid and does not return a boolean!
[08:54:39] [Craft Scheduler Thread - 464/ERROR]: [DeluxeMenus] Requirement javascript <%vault_eco_balance_fixed% <= %javascript_money_check_laga_verktyg%> is invalid and does not return a boolean!
Show the actual js
Do i even dear to show it? It think someone will butcher my coding (I will slowly leave the chat) 🙂
yea, but if i´m not wrong I not get the code running when use switch, I don't know way.
Hello!
I wanna ask is there any placeholder which count the number of players in specific group (luckperms group)
@vivid sparrow Unknown expansion.
Is that an invite? If so, you said .com, not .gg
Ig embeds without https are broken on mobile
~~Hey, it is possible to update placeholder more frequently ? I've created a placeholder to tell is what region my players are and i'm displaying it with Kiteboard, but it take ~5secondes for it to update,
what i want is as soon as the player enter the region, it update in the scoreboard~~
nvm found out
hey! how can I display a placeholder as another player? I'm not sure if this would be better suited for PremiumVanish or Alice support, but I am using PV and want to display %alice_client% as my PV target in the PV scoreboard but not sure how I would do that. Thanks!
you could maybe use the ParseOther expansion, but I'm not sure how PremiumVanish will parse the target name and the placeholder
try
/papi ecloud download ParseOther
/papi reload
and use %parseother_{%target%}_{alice_client}% in your scoreboard
seems to work, cheers
👍
I am trying to show bungee server counts but I'm not sure what I should put for the player, because there is no player? server1 = PlaceholderAPI.setPlaceholders("%bungee_KITPVP-1%");
Ok
Is there a way to list all the placeholders within a plugin with PAPI?
thx
Hi is there a way to check if there is a block on a specific xyz position and display
❌✔️ for it
What is placeholder api?
@shell sentinel it's a plugin that let's you use placeholders in your server.
Sorry, but what are placeholders?
it's text that returns a value depending on something, like depending on player, or depending on the server's amount of players
%server_online% depends on the amount of players online on the server
%player_name% depends on the player and returns its name
So messages based on conditions/events?
kind of, yes
uh?
Displaying information
Like %player_name% will show a players name
For things like tablist or a scoreboard. Or anything.
%player_health% shows the hearts of the players
Oky
or maybe you have a minigame plugin that provides a placeholder which returns your team color
Interesting.
I'm getting so much into coding with my Minecraft server, this is so cool.
Hi is there a way to check if there is a block on a specific xyz position and display
❌✔️ for it
Is it possible to put a placeholder inside a placeholder?
only if the outside placeholder support's it
do you know which placeholders support it?
ok well thanks anyways
Hi i really do need help
[20:31:17 WARN]: [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder clp_master isn't initialized! Defaulting to global
[20:31:17 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: clp_master
where can be problem?
is your server java 15 or 16 by any chance?
java 16
then you'll have to also run GraalVM and change the engine to graal in javascript_placeholders.yml
bcz the default engine (nashorn) was removed in java 15 I think
i downloaded graalvm-ce-java16-linux-amd64-21.1.0.tar.gz what now?
well you have to run it. I've got no idea how. But if you did then all you have to do is go into plugins/PlaceholderAPI/javascript_placeholders.yml and add the engine for each placeholder
I tried to show the motd of a subserver with the %pinger_motd_[ip]:[port] on an itemlore but the motd is to long and it dont get splited in a new loreline after the \n can someone help me?
@austere hawk execute the 2 commands at the bottom ^^
what?
that dont have to do with the Motd of a server
i mean the motd in the serverlist
oh xD sorry I meant to say in #general-plugins xD worng person
🤔
This sounds like the plugin you use for setting the lore should split by \n after parsing the placeholders
yes, because the text (the motd) is at the time only a part becuase the text after the \n has been removed
how can i fixx that, it dont look nice if there is only the first line of the motd displayed :c
hello 🙂 i'm having trouble integrating this with world-guard
/rg flag console-command-on-exit discord broadcast #812545838320582698 a player went further than 90k in the_end. players in the end dimention: %playerlist_online,world,yes,list,new_world_the_end%
As you can see i'm trying to use a placeholder there, but the flag command-on-exit can accept multiple commands, spearated my commas. so when i try to do that it runs "world", "yes", etc. as a separate command instead of parsing the placeholder and it just goes like: https://i.imgur.com/eeOw6rD.png
are you sure that the /discord broadcast command parses placeholders?
I think the only way to fix that is ask the developer of the plugin (the one that makes the lore) to split the lines at \n after they parse the placeholders
or add parenthesis
Hi, how is it possible that placeholder is showing wrong value ? For ex. placeholder %player_first_played_formatted% is showing me that i first joined this server 24.4.2021 but i'm playing on that server since October 2020.. So how is it possible that it's showing a wrong value ?
it takes the value from minecraft statistics from what I Know
I'm trying to set a placeholder from the plugin beautyquests in my featherboard scoreboard, i've tried searching around docs, and such, but i can't figure out how
Is there a way to like link featherboard with beautyquest's placeholders so i can use them on featherboard?
Featherboard uses MVdWPlaceholders & BeautyQuests uses PAPI
You can use {placeholderapi_<The PAPI placeholder without the %%>}
Just make sure you have MVdWPlaceholderAPI and PlaceholderAPI installed.
Thanks<33
You're welcome 😄
Hi is there a way to check if there is a block on a specific xyz position and display
❌✔️
how do i get coordinates of a specific player
the coordinates placeholders can be found within the player expansion
if u need a specific player, u can use the parseother expansion in conjunction
ok
Really noone?
the JavaSCript expansion is your best hope here.
in the changeoutput placeholder, what do i do when i want to type in the matching portion of the placeholder but the matching value has _ too?
As of now I'm afraid that is not possible. In the future I'll ask the dev to add a way to escape slashes using \_
just use %statistic_time_played:seconds% instead
cant because i am using a placeholder that has _ in between when it prints
I dont knoe javascript
Please respect the rules, be patient and don't ping staff members!
download the latest update, done
For some reason every time my server restarts it removes all my papi addons?? Anyone have a clue why this might be? I honestly have no clue. The addons are specifically Vault and Essentials, I download them using /papi ecloud download vault and same with essentials but replacing vault with essentials
do you get any errors when using /papi reload in the console or when loading PlaceholderAPI on server start?
whats the /papi ecloud download for the voteparty. when it does the broadcast dont say the players name.
you'll have to link your spigot account if you want help with anything VoteParty related
follow steps in #voteparty
right i ask the owner of the server to join and link the acc
alr 👍
i need to put a placeholder in a placeholder in a placeholder
that sounds like a bad idea and most likely not possible. at least not with PAPI. It only accepts to type of placeholders and that is %placeholder% and {bracket-placeholder}
this is the placeholder%progress_bar_{server_ram_used}_l:80_m:{server_ram_max}_p:#FF8000|_c:#FF8000|_r:#31C91F|% and i want to replace server_ram_max with %math_0:[rounding]_{server_ram_max}-{server_ram_free}% that would look like : %progress_bar_{server_ram_used}_l:80_m:{math_0:[rounding]_{server_ram_max}-{server_ram_free}}_p:#FF8000|_c:#FF8000|_r:#31C91F|% and wont work, i think that the {{}} are the problem
i want to use the math
yeah you have 2 choices here. Make your own placeholder or use the JavaScript expansion if you know any JavaScript
what is the javasscript expanision?
ok, i will read a bit, thx
ther isnt a placeholder that allows you to put placeholder with %pp<placeholde>% or?
nope
k
alr @quasi spoke he linked. its all good now
so first of all can you try /papi parse me %player_name% ?
ok ty
tell me what it says
all i get is %player_name%
can you do these 2 commands in order:
/papi ecloud download Player
then:
/papi reload
then do the parse command again
and tell me if it works now or not
👍 no problem
How can I save statistic placeholders for weeks, months and lifetime? Do you have any idea?
not possible. the statistics are taken directly from minecraft and they're just alltime.
I mean numeric placeholders by statistic.
with the new update for changeoutput, how do i use the new feature
just use \_ where you don't want the _ to be counted
so basically 1 \
and the _
%changeoutput_INPUT_OUT\_PUT_true_false%
like this I think
so basically the _ in the OUTPUT
will be counted as a character
in output
so OUT_PUT
ok ty
hope that makes sense xD
nice ty
How can I save numeric placeholders for weeks, months and lifetime? Do you have any idea?
You'd need a plugin to save it to a database or file.
Thanks. Do you know any?
Not really.
Hello, What wrong with this code?
var prison1 = Number("%bungee_prison-1%");
var prison2 = Number("%bungee_prison-2%");
var prison3 = Number("%bungee_prison-3%");
var PrisonTotal = prison1 + prison2 + prison3;
function returnTotal() {
return (PrisonTotal);
}
returnTotal();
now it shows me 000
you don't need an entire javascript for that tho. just use the math expansion
%math_0:_{bungee_prison-1}+{bungee_prison-2}+{bungee_prison-3}%
and probably the number
whats that 0?
was not actually making them an integer
number of decimal
if you remove it it will always have 3 decimals
which you probably don't want
no problem
also you can set the default to 0 in plugins/PLaceholderAPI/config.yml so you can just use %math_{}+{}%
0
make sure you have latest version of the Math expansion /papi ecloud download Math then /papi reload
yes I have
Hello guys, I just noticed in my console today this error. Is there anyone who can provide some insight. I am not sure what SuperRonanCraft is.
it's the mysql expansion it seems
yeah its been broken for a while. idk if there's a fix for it yet
can you parse these please: /papi parse me %math_0:_{bungee_prison-1}+{bungee_prison-2}+{bungee_prison-3}%
it returns 0
Ok thanks, I was wondering if that was the case since I saw the expansionMySQL but wanted to make sure. I will just delete the expansion then. I ended up not using that one anyway.
hmm and there's 0 players in all those 3 servers? bcz then it seems to work
yes but in scoreboard...
theres nothing
now I have 1 in one sv
but still 0
now 1
dude..
it might be just the number of characters then I guess. if you want a javascript here:
fun total() {
return parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")
}
total()
thats all the code?
well
made it in a function so its more understandable
oh
yeah I think it can be just parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")
js ez
it shows 100 again
yes
hmm this is strange
it concatenates the but I don't get it. It shouldn't since they're all parsed to integers
fun total() {
var prison1 = parseInt("%bungee_prison-1%")
var prison2 = parseInt("%bungee_prison-2%")
var prison3 = parseInt("%bungee_prison-3%")
var total = prison1 + prison2 + prison3
return total
}
total()``` idk maybe it works the long way?
now it doesnt show anything
do /papi dump please and send the link here
hmm
it will generate a link
uve done it again!
fun!
oh my fucking god
😂
i wrote function instead
function total() {
return parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")
}
total()```
dont worry
is that link ok?
yeah and I've looked at it and only thing I can really recommend (even tho I Don't expect anything from it) is to update PAPI to the latest development build
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
nope
can you test ```js
function total() {
return parseInt("1") + parseInt("2") + parseInt("3")
}
total()```
and see if it will parse 123 or 6
nope
what does it say?
nothing
you tried it with /papi parse me %% ?
nope
always test it like that
nope
duh
you need to parse the javasript
placeholder
/papi parse me %javascript_<identifier>%
it returns 1
huh this seems more like a problem with your scoreboard if /papi parse me %javascript_returnPrison% works
does your scoreboard allow more than 16 chars?
hmm
Should I contact the members from the quickboard team?
%server_time_MM/dd/yyyy% this placeholder works
well I can't really help you any more from here so probably the best thing to do. If you say /papi parse works then the placeholder works
probably contacting their team and seeing if there's any debug they can make on their end
as in in their plugin
I Don't see why it would be needed
bc of the { brackets?
Do anyone know a placehodler for server ping
Hi, i'm trying to install skript expansion.
With the /papi ecloud download skript, the download works, but on the /papi list, others expansions are here, but not skript.
And with the https://github.com/Altruiis/skript-expansion/releases/ expansion, when i /papi reload nothing happened, and with the /papi list, no expansion are here, not even the others
/papi dump and paste it here
With the /papi ecloud download skript :
https://paste.helpch.at/jewozotofi
With the link 1.2.0 :
https://paste.helpch.at/telocixora
From a cursory search, it seems the original Skript expansion doesn't work very well. Try Skript-Fork
Same problem with the /papi ecloud download skript
https://paste.helpch.at/ajixecafev
Do i need to rename it Expansion-skript.jar ?
Not sure, worth a try
If i do, same problem with the https://github.com/Altruiis/skript-expansion/releases/
Any errors in console?
[22:21:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.ClassNotFoundException: Failed to remap class de.soulcraft.SkriptExpansion
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:326) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_282]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_282]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_282]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_282]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_282]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_282]
Caused by: java.lang.ClassNotFoundException: Failed to remap class de.soulcraft.SkriptExpansion
at red.mohist.bukkit.nms.proxy.DelegateURLClassLoder.remappedFindClass(DelegateURLClassLoder.java:99) ~[DelegateURLClassLoder.class:?]
at red.mohist.bukkit.nms.proxy.DelegateURLClassLoder.findClass(DelegateURLClassLoder.java:59) ~[DelegateURLClassLoder.class:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_282]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?]
... 6 more
(sorry)
for the spam
[22:21:32 INFO]: Nealisissued server command:/papi reload
[22:21:32 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[22:21:32 INFO]: [PlaceholderAPI] Fetching available expansion information...
[22:21:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions
Which version of Java are you running?
How can i know that ^^'
root@Pixor:~# java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing)
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.
ooh okay it's probably Forge messing with something, I'm honestly not sure with Forge in the mix
Oh, ok, thanks anyway
19.05 22:32:00 [Server] Craft Scheduler Thread - 7/INFO Checking for Updates ...
19.05 22:32:00 [Server] Server thread/WARN Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend, softdepend or loadbefore of this plugin.
19.05 22:32:00 [Server] Server thread/INFO Successfully registered expansion: vault
19.05 22:32:00 [Server] Server thread/WARN Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.3.3 which is not a depend, softdepend or loadbefore of this plugin.
someone happens to know what that means
that's fine, it just means it's loading
ah ok thanks
Do anyone know a placehodler for server ping
@fervent spire
One question
Using the %name% variable does not show me the level name
In the pvppremium add-on
Do you know any way to fix it?
Why ping me? And why post in 3 different channels?
I haven't asked anything for a long time so I didn't know where I should ask this
I mentioned why you are support xd
srry
You'd have to speak to the developer of the plugin as the %name% is handled by that plugin only. So if it's not working than they will be one's that can help you fix it.
ok thx
hello i have an error in to my consol about placeholderAPI but the plugin that the error give is not placeholder API but it is NameTagEdit
I have a few numbers from placeholders ( island level , Number of challenges completed etc ) Id like to get an average of them. and display it, from what iv read so far a javascript placeholder should be able to achive this correct? If so i have little to no idea how to do that Some one mind pointing me the right way
/papi ecloud download javascript
/papi reload
In /plugins/placeholderapi/, a JavaScript folder should appear and in there is an example.
the example file apears to be blank
Please provide the error.
the error is fixed but the priority form Nametagedit is not working?
Any idea what is causing this? Is it the daily rewards plugin or placeholder-api. It's strange had been working fine for awhile then a couple days ago on daily restart, started to get this console error and it won't enable. Only changes to server was updating papermc, not either plugin. https://pastebin.com/DS24ArVa
Hello, when using HolographicDisplays with ajParkour, my PAPI placeholders simply dont load.
I type %ajpk_stats_top_name_1% in the holograph and it simply shows %ajpk_stats_top_name_1% instead of acttualy showing the placeholder.
Please help ASAP, thanks.
Hello? Anyone?
install Holographic Extension and ProtocolLib
Thanks, i have ProtocolLib but not Holographic Extension
also, if you want to make the placeholders refresh on the holograms, you have to put one of the following placeholderse on each line containing placeholders
how do i trim the decimal point off my numbers in JS.
Finally got my math works helps if the type is number.. derp.
if any one can tell me how to remove the trailing .0 that would be
return added.toFixed(0)
😂
Keep in main tofixed can bug out in some cases.
Please respect the rules, be patient and don't ping staff members!
ok sowwy
what plugin?
for the gui I mean
Command Panels | Custom GUIs 3.15.5.4
I want to install one
u can also suggest
for minecraft 1.16.4
I want to display some information using gui
I have the placeholder codes
well are you sure that COmmand Panels even supports PlaceholderAPI?
Idk that
Well you can use DeluxeMenus for example. I Know for sure that plugin supports PlaceholderAPI
An economy plugin have numeric placeholders, but it shows numbers as 43958349. I want commas but it doesn't support. Do you know any add-on that does it?
how do I put a player count for a server on a npc
you can try the %server_online% placeholder
do I /npc rename and add %server_online%?
that won't work no.
CItizens doesn't accept placeholders as names
afaik
you have to set your own hologram using HolographicDisplay I think
but you can try I guess
maybe they added PAPI support
so I need to use holographicdisplay so the npc says how many players are on a world for bungeecord?
yes I think so. also if its a server from bungeeocrd then you need to use %bungee_<server-name>% not server_online
well actually you need: HolographicDisplay, HolographicExtension and ProtocolLib
Since Minecraft is changing to Java 16 I want to switch of nashorn engine for obvious reasons. What would I put in the engine mode for JavaScript to use graal?
Please @ me if you know
@cunning elk because TimezoneID doesnt refer to GMT, UTC etc, but this https://www.google.com/amp/s/garygregory.wordpress.com/2013/06/18/what-are-the-java-timezone-ids/amp/
view_requirement: '%iridiumskyblock_island_level% > 50' why is this not working?
Please respect the rules, be patient and don't ping staff members!
I have a question I need to clear peoples inventories and a plugin we have got rid of the like @p option but does anyone know how to clear someones inventory with a command block when they step on it?
I didnt?
well you did. #general-plugins and this
and I am not pissed at you. just letting you know how and where you should ask
that's all
is there a way to utilise javascript engine on Java16?
not yet no. There is a new version in development but there are still some issues to take care of before it can be released
owch! i'm back in MC after many years and saw notifications in my console that nashorn is getting removed in future JDK releases and was wondering if I should still stick to PAPI's javascript
yeah it got removed in java 15 I think
you will be required to run Java16 for spigot 1.17, and by doing that you are forced to lose javascript engine
well the new js expansion will probably be released by then
sounds good
its just the dev was kinda busy I think. And is mostly done just needs more testing and there's a few bugs we discovered
is it extendedclip?
nope. thienbao is working on it
he did not. but he is taking a break and has been taking a break for a while now.
makes sense. had a few of his plugins that I bought back in 2016, there's hex in 1.16 now and deluxechat doesn't seem to support it so I had to ditch that one as well
yeah. he was working with someone else on a complete rewrite but idk when that's coming
i'm with ezchat now, seems perfect and its opensource as well 👍
Do anyone knows a good speed tracker
Block/sec or something like that
Speedpersec expansion isnt really good
[19:42:24 WARN]: [PlaceholderAPI] failed to download expansion information
java.util.concurrent.CompletionException: java.net.UnknownHostException: api.extendedclip.com
at me.clip.placeholderapi.expansion.manager.CloudExpansionManager.lambda$fetch$4(CloudExpansionManager.java:174) ~[?:?]
at me.clip.placeholderapi.expansion.manager.CloudExpansionManager$$Lambda$6339/0x00000000564de020.get(Unknown Source) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_292]
at java.lang.Thread.run(Thread.java:823) [?:1.8.0_292]
Caused by: java.net.UnknownHostException: api.extendedclip.com
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[?:1.8.0_292]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_292]
at java.net.Socket.connect(Socket.java:607) ~[?:1.8.0_292]
at java.net.Socket.connect(Socket.java:556) ~[?:1.8.0_292]
at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.New(HttpClient.java:339) ~[?:1.8.0_292]
at sun.net.www.http.HttpClient.New(HttpClient.java:357) ~[?:1.8.0_292]
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) ~[?:1.8.0_292]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) ~[?:1.8.0_292]```
can anyone help pls
you has your server on a host?
yes
they can block some incoming trafic.
now i fixed thanks
Does anyone know a plugin so that I can sync a few placeholder api placeholders over multiple servers? Without the plugins installed on other servers that provide those placeholders..
Hello i have i queston
How ro delete it?
Loaded class javassist.d from PlaceholderAPI v2.10.9 which is not a depend, softdepend or loadbefore of this plugin.
that's just a debug message from spigot. no way to disable it afaik
PlaceholderAPI doesn't shade javassist tho 🤔
infected jar perhaps?
Hey I am very new to this :)
I am currently using Deluxehub and I am trying to display Luckperm roles. I have installed the extension through papi ecloud. Now I try to write "%luckperms_prefix%" but it just displays %luckperms_prefix%
that means the expansion is not actually registered
That was my thought too
execute these 2 commands:
/papi ecloud download LuckPerms
/papi reload```
if that doesn't work do /papi dump and send the generated link here
Yeah
It says no expansions were registered
Though I can see it there
under expansions
restart the server and send the startup log. it usually says in there why it didn't load it
?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.
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
There
Failed to load due to a [NoClassDefFoundError], attempted to use net/luckperms/api/LuckPerms```
How would I update an expansion
well you'd have to go to plugins/PlaceholderAPI/expansions and delete the jar from there and reexecute those 2 commands
Ah
well it doesn't show up in the logs
make sure you have the jar
in the plugins folder
Ooh
Let me check
Aight I am reintalling it again
Aight
So now it doesn't show anything lol
that means you have no rank with the prefix set
try %luckperms_rank%
to see if at least you have the rank
?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.
I think so. Not really sure
but probably
They are ok good
Trying to use imgur but internet is not the best
Can u see this
Oh
I think I found the issue
I use bungee, that has luckperm included already
Can I use bungee_luckperm_rank
you have to link the bungee luckperms to the server luckperms using mysql
Oh lord
not that hard.
all you have to do is get a mysql database, export the current database
and import it back when you switched to mysql
still a bit of work tho
you'll have to follow their wiki
luckperms.net I think
👍 gn
Do anyone knows a good soeed tracker
Block/sec
Bc speedpersec isnt that good
Hey can someone help me setup placeholder api so it says if the a server is online or offline over a npc?
Well, I'm not sure what NPC plugin you use, but if it supports PAPI, then all you need to do is use either the Pinger expansion, or the BungeeCord expansion to see if they're online
How can I change the engine to graal for JavaScript expansion?
hi i cant convert javascript argument to placeholder in placeholderapi.
for ex:
i write var x = `%rank_${args[0]}%` and its gives an error. how can i convert javascript argument to placeholderapi's placeholder?
var x = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "rank_" + args[0] + "%")
Hello,
I got this error
https://pastebin.com/nzZh9AFw
and I don't know how to fix it (seems related to the engine I use, so default one)
is your server running java 15 or 16 by any chance? If yes you'll probably have to downgrade for a bit until the new javascript expansion and deluxemenus are launched
||this error sounds more like a file that has been edited/removed while server was running tho||
I just have to do this and I don't need to import extra class, right?
yeah
okay thank you so much
java 11 (jdk)
didn't change any file :c
seems fixed, strange, it's nice 🙂
¯_(ツ)_/¯
An economy plugin have numeric placeholders, but it shows numbers as 43958349. I want commas but it doesn't support. Do you know any add-on that does it?
Hi, i've implemented the papi repo in my maven project.
How can i "auto download" expansions?
I don't think the API offers that afaik
you could probably use the ecloud to download it from there yourself. using a plugin of course
So plugins that requires PAPI and a specific expansion don't download it by themself?
nope. Server owners have to download using /papi ecloud download EXPANSION-NAME
but nowadays most people just put the expansion inside the plugin
bcz that is possible as well
Because if i try to run the command "papi ecloud download Statistic" inside my plugin (as console), i get "failed to find an expansion named Statistic" (PAPI is a dependency)
?ecloudblock
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
any help?
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
Is there a way to make a countdown on the same day? I'm using the Server expansion but I can't seem to do this. I'd like to make a countdown for daily restarts, and honesty it's preferable if I had a way to just get seconds in the day instead of per minute
hmm
might need to do some math @austere hawk
it might help to make a javascript for it, to keep it clean
Does the PlaceholderAPI.static.setPlaceholders() still work with javascript expansions? I always get the Caused by: <eval>:1 ReferenceError: "PlaceholderAPI" is not defined error. Please @mention me if you know how to fix this.
var pos = "ndsmysql_position";
var something = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + pos + "%");
%math_{server_time_HH*3600}+{server_time_mm*60}+{server_time_ss}% @austere hawk
that should give you seconds in the day I think
actually that works decently... but is there a way to get like... the seconds since a certain time (ex. 14:55)
if that makes any sense
ye
just do a countdown
you can combine dates I bet
so take the hour and minute you want, get today's date
and combine it
soo i managed to mess around with it but i can't seem to get something that compares the amount of seconds passed in a five minute window, returning 100 if it just started and 0 when 5 minutes have passed, i'm trying to do this for a plugin that only works in that format
