#placeholder-api
150650 messages · Page 21 of 151
I got this when I tried to update all my PAPI ecloud expansions: https://hastebin.com/vamanenaxa.rb
Does someone know why?
Why does %bungee_total% show 0? do i have to install papi on bungee?
it takes 30 seconds to update.ffs im a dumbass
Is there an expansion to obtain how much time is left for a certain date?
Can I make a placeholder that does it with Javascript expansion and epoch time?
@fervent jackal Server_Countdown.
I got this when I tried to update all my PAPI ecloud expansions: https://hastebin.com/vamanenaxa.rb
Caused by: java.lang.IllegalArgumentException: This registration already exists
I think you have 2 bungee expansions installed.
go to plugins/PlaceholderAPI/expansions and make sure you have just one
were can i get the bungee version ?
thanks fixed it!
@hollow lantern,
whoops my bad
arran papi is not available for bungeecord, but you can install Bungeecord placeholders by using /papi ecloud download Bungee, and then /papi reload
^
guys what's that
[WARNING] .... [PlaceholderAPI] Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.1.93 which is not a depend, softdepend or loadbefore of this plugin.
why it's also says about vault
its just letting you know
how can i fix it or just leave
I think there's a plugin that can remove console spam
don't remember its name
or if it can remove those
then you'll have to live with those warnings
yeah he knows but he doesn't like the plugin apparently.
f
ConsoleSpamFix should not exist. If something is spamming your console, figure out what it is and fix it instead of hiding it.
And for that warn, blame md_5.
it's an "improvement to the api"
why does it return only the placeholder without the "%"'s? the script: ```function language_active()
{
var ding1 = "%denizen_<player.flag[";
var ding2 = args[0];
var ding3 = "]>%";
var status = "";
return status.concat(ding1,ding2,ding3);
}
language_active();``` btw it's just a test script who will do something different
because the javascript only parses the palceholder when starting the script. It doesn't parse it after or on return. So you need to make sure it gets parsed using PAPI's parse method
function language_active()
{
var ding1 = "%denizen_<player.flag[";
var ding2 = args[0];
var ding3 = "]>%";
var status = ding1 + ding2 + ding3;
return PlaceholderAPI.setPlaceholders(BukkitPlayer, status);
}
language_active();``` I think this should work
isn't it setPlaceholders? 🤔
🙃
Hi there
ugh anyone in here ever used the gradient expansion? It seems to not work. I might have done something wrong. Here is some more info:
I tried this command:
/papi parse me %gradient_message_{#ffffff}_{#000000}_message with colors%
I got this error: https://paste.helpch.at/mifutigure.bash
I also have Gradient v 2.0 which seems to be latest even tho it is colored orange. Any info on this is welcomed. Thanks.
function language_active() { var ding1 = "%denizen_<player.flag["; var ding2 = args[0]; var ding3 = "]>%"; var status = ding1 + ding2 + ding3; return PlaceholderAPI.setPlaceholders(BukkitPlayer, status); } language_active();``` I think this should work
@turbid tide wdym? it is a javascript placeholder
yeah
but you made your own placeholder
but its not parsed
isnide
the %denizen_<player.flag[arg[0]]>% is not going to get parsed
you need to use PlaceholderAPI.setPlaceholders
because otherwise it is just a string
not a placeholder
Blitz when u able can u look my error please
already did and no idea what that is
&a%statistic_mine_block:Emerald_ore%&7/&240000
I have something in DeluxeMenu
it says in menu invalid stat
what's your server version?
1.12.2
and if you do /papi parse me %statistic_mine_block:Emerald_ore% the error appears in console ?
also are you sure you're using the latest Statistic expansion?
same error
ok read last question and answer please.
Yes i am sure
hmm what's the version of Statistic you have?
do /papi info Statistic
it will tell you there
2.0.0
hmm
very weird.
I can parse the same placeholder with no problem.
I am on 1.16.3 tho
hmm weird.
heya, I'm getting this error when stopping the server
what may be causing it
it happens to ~10 plugins
yeah because they all use outdated methods
the expansions of those plugins need to be updated or you need to downgrade to PAPI 2.10.6
?json
Hey there, does anyone know of a way I can use placeholder API to parse JSON? I've been looking through the eCloud but nothing obvious is standing out.
I don't believe we have a json parsing expansion. Can you elaborate a little more on what you're trying to do?
I'm trying to implement On Hover to usenames so that it can display things like rank, towny residence, etc without clogging chat with prefixes and postfixes.
I tried the plugin Hover but it was conflicting with other plugins (or just doesn't work on 1.16) and the plugin dev hasn't been around for a few years.
Also, side note, I love your role's title.
So the content itself from Towny is in JSON?
so you want every time you do /papi parse me %player_name% to get a json? then that is not possible. But if you want like everytime a player types something in chat you can hover over their name then you need a json plugin. A premium one is DeluxeChat but there are some free alternatives
Deluxe Chat? I'll have to look into that, that sounds closer to what I was looking for.
here are 2 free examples https://www.spigotmc.org/resources/ultimatechat-1-7-1-16.23767/
This is exactly what I was looking for. I hadn't considered looking for a different chat plugin that had the feature I was looking for and Papi support. Thank you!
But yeah, to answer Waffle King's question. The goal was that I was going to either use a prefix with placeholder that would contain the JSON, and upon hover it would display things like "Rank: Owner, Town: Nomad" etc
Yeah, DeluxeChat is great for that.
Or whichever alternative you find that supports PlaceholderAPI 🙂
Thank you again! 😺
Yup!
/papi ecloud download Animations registers it as downloaded, but it doesn't load.
/papi reload Shows all working papi modules, but lists the mcmmo module twice. It also only registers "16" out of an actual 17 of my PAPI modules. 😐
Hey everyone! I'm getting something weird happening with PAPI. I am using the inbuilt function of the "PlotSquared" placeholder, and when I install it and reload PAPI, it does not show in the list. Is there any particular way this can be fixed?
-papi plotsquared
hm?
?ecloudblock
^
the
%denizen_<player.flag[arg[0]]>%is not going to get parsed
@turbid tide denizen is not made by me and it's supported by papi
@stone parcel,
yeah I know but that doesn't matter
I added PlaceholderAPI.setPlaceholders(BukkitPlayer, Placeholder) for the placeholder to get parsed again
the script I sent should work
okay i'll try
console says TypeError: PlaceholderAPI.setPlaceholders is not a function in <eval> at line number 1
try PlaceholderAPI.static.setPlaceholders(BukkitPlayer, Placeholder)
Im still looking for someone who would be willing to update mcMMO expansion to have placeholders to pull the mctop # and mctop player name. It should be possible correct?
The PAPI placeholder "%essentials_kit_time_untilavailable<kitname>%" displays an incorrect time for any/all kits. The hours shown with the placeholder is incorrect. Days/Minutes/Seconds seems to be okay. Running on Version 2.10.9
%server_countdown % Fixed
Few days ago I had some errors when trying to use this placeholder. So I downloaded and edited server expansion.
This edited version has some changes, for example:
-
%server_countdown_MM/dd_12/25_formatted% displays texts like "2 months 15 days" or "1 month 29 days"
-
%server_countdown_dd HH:mm:ss_10 09:30:00_formatted% displays texts like "3 days 23 hours 10 minutes 5 seconds"
(You can edit texts in config) -
%server_countdown_MM/dd_12/25_days% displays the number in days
Download link: https://mega.nz/file/iLp2HaYY#i8RHpNixA3-3vBbrBYu5Bs_aB3yr-n4YKP3M21grxCo
I share it here in case anyone is interested in using that placeholder in a more complex way
||Source code: https://mega.nz/file/LXYyjRLC#mTXfRSKqpDTAo90RSQT81y6K426lMq_vUrEAQLTnwJ8||
hey hey! I know this might seem like a weird one, but is there an easy way to run placeholders on a target person? Like as an admin, if i'm wanting to run a placeholder on all online people but it only spits out the output to myself, not the target person
check out /papi parse. It can for sure run placeholders on 1 person, although I don't know about everyone at once
@fervent jackal this is unnecessary, the papi dev builds fixes this lol
check out
/papi parse. It can for sure run placeholders on 1 person, although I don't know about everyone at once
@high star
Oh sweet, I always thought by the wording of the help command that it sent the output to the other person whose name you use. I use parse quite a bit in testing so that will be useful
afaik it only sends it to the command runner
yup just tested it 👍
where to request a placeholder update in placeholder list from github
here.
xD
I'm bored since my server console is fucked up. Send me a friend request and what you want modified. I'll do it rn
@stone edge
add RNG expansion to github 
thank
what was it? rng_random, rng_val1,val2 and rng_valMax ?
time to go to the expansion's github xD
it says reqiored instead of required :,v
well I mean I know where it does just making sure that's what he wants changed xD
I'm checking the spigot page tho
ok ok
@stone edge are you sure its a spelling mistake on the wiki only and not in the plugin as well?
kk changing it

done
ohhhh

Arigato ^^
I'm too lazy to ask for other plugins to be added to the list :sad:
dw. I'm lazier. Even if you would have asked I wouldn't have added them xD
if u really bored u can add the new chatreaction placeholders too blitz 
(find them all on the ecloud)
yo @warm topaz what does %chatreaction_time_in_seconds% do? Same as time_remaining just in seconds?
welp I hope it does that because I saved it like that xD
uh it gets the time from when it was started, whereas time remaining is the time it has left until the reaction timer has stopped
[14:22:31] [Server thread/WARN]: [AutoSell] AutoSmelt break material: WOOL has an invalid material set! and [14:22:31] [Server thread/WARN]: [AutoSell] Failed to establish a hook for area handling.those are the only things I can still see
Hi, is there a placeholder that truncates other placeholders?
So it would change
123456789 to 12345 if the length is set to 5
javascript placeholder
Welp, time to learn JavaScript.
@tacit vigil here
?
you went back to #development
I've alerted people you want to make an account, just gotta sit and wait.
Somebody will probably tag you here
What expansion are you uploading?
My own for SkyBlock https://www.spigotmc.org/resources/sky-block.84541/
why not include it in your plugin?
I'd recommend including it
🤷♂️
anyway thanks
can i somehow change quantity of decimal symbols?
%jobsr_plimit_money% placeholder give me 255.014250000000001
instead of 255.0
double value = 34.766674;
String result = String.format("%.3f",value);
System.out.print(result);// 34,767
can place 1 instead of 3 here
i need some help with my Bedwars plugin, because we have each map on its own server the Bedwars plugin doesn't have the placeholder support for multi servers so players wont be able tell if the game is currently going on or ready to join in the lobby
is there anything you can do to sync Placeholderapi across servers?
@static needle afaik papi doesn't support bungee placeholders
well
bungee syncing of placeholders between servers
you can send like online count and stuff
No like can i sync placeholders from a plugin in one server to another?
If plugin supports sql already
using placeholder api?
placeholders should by synced
it does
papi can only display placeholders from that server
your bedwards plugin needs to provide the placeholder that will give data from different servers
papi can only display placeholders from that server
@crisp hound Depends on how the Expansion gets results)
im pretty sure this isn't a papi thing and you should contact the author of that plugin for support with this
they will need to provide the placeholder
alright thanks for your help
The placeholder %rel_factionsuuid_relation_color% also returns green for you when you have a faction, and I wanted to create a javascript to work as that placeholder with a condition to return blank whenever the objective is yourself, I am struggling to make this and I don't even know if it is possible to do, can someone help me please?
I don't think relationnal placeholders are supported with the js expansion, not sure
The script is per-player, so you can have a check condition
I have no single idea on how to do that xD
neither do I
lmao
You mean the "relational" thing? From what I know yes, I read somewhere on the updates of PAPI, that the method to detect the player 1 and player 2 most be done by the server, idk Im not sure
I'm talking about the factions relationnal placeholders colors
doesn't it take those colors from your faction plugin?
Yea, from factionsuuid
I would need a javascript placeholder that will be located on the players's tags and would act as %rel_factionsuuid_relational_color% but, if it is you it would return blank, but if its not you, it would return that placeholder.
but the problem is that idk how to get that "%rel_player_name%"
And you can't just make a condition that it will make it blank if it has "&a" on it since it would also affect players that are on your faction
If anyone has any idea or knows if it is or isnt possible to do, it would be much appreciated
Yup, I concluded in that just a few seconds ago xD
or open an issue on the Javascript expansion's github to add a way to get a BukkitPlayer2 variable for relationnal placeholders
Sp👀ky
lol
i need some help
im trying to install "playtime" expansion, but after doing /papi reload nothing loads
you need a plugin for that expansion to work
that is an expansion for a plugin. its not its own expansion
it's registered now thanks
I need some help with PAPI please
@raven quartz,
i'll just describe it then
I try download the expansion for SuperbVote
I then type /papi reload
it says configuration reloaded
then it says An internal error occurred while attempting to perform this command.
Failed to register expansion from Expansion-Superbvote.jar
That doesn't really help, hence why the message above provides you with instructions.
?paste
Failed to load due to a [NoClassDefFoundError], attempted to use io/minimum/minecraft/superbvote/SuperbVote
Right, how shall I proceed? Thanks
Sounds like the expansion is outdated.
As in, it hasn't been updated to support the latest versions of PlaceholderAPI.
anything I can do / can be done?
Afaik, I believe this author said he was not interested in maintaining the expansion, so, that puts us in a pickle.
O, I see..
And you cannot do anything yourself can you? - the author would have to, right?
I could, but not for a few days most likely.
If you could that would be great- I can wait.
can i somehow change quantity of decimal symbols?
%jobsr_plimit_money% placeholder give me 255.014250000000001
instead of 255.0
@raven quartz did you see the new message?
This looks like it could do it
with the : thing
I will try it @trim mist
What do I have to do in game?
do I need to type /papi ecloud download SuperbVote again
I downloaded that jar and put it into expansions btw
I did /papi reload
And make sure you deleted the old jars
That too
Probably best off stopping the server fully, delete the old jar, put that one I sent, then start up the server again.
On it
Did it work?
PlaceholderAPI is only coming up as percentplayerpercent in chat instead of %player% and outputting the player name, placeholderapi is also not working on scoreboards
Still not working
What scoreboard plugin are you using?
Scoreboard-Revision
Got a link to the SpigotMC page?
but it's also not working in chat with UltraPermissions
Does /papi parse me %player_name% return your Minecraft username?
Scoreboard:: https://www.spigotmc.org/resources/scoreboard.14754/
it's not just player placeholders
it's every placeholder I try
Sounds like a problem with the scoreboard plugin then.
Have you tried contacting the developer of the plugin?
Okay, have you reached out to them to ask for help?
Yeah, no response :/
If the parsing works, that tells me that PlaceholderAPI is working just fine. Someone else here might know about UltraPermissions but I have never personally used it. Most likely will have to wait to see if anyone else knows about it.
Can I set the timezone for the date placeholder?
@raven quartz Any chance you were able to try that jar and see if it started working again?
Waffle King is there a way to set the timezone for the %server_time_<SimpleDateFormat>% placeholder?
You'd have to check Java wiki for SDF
I can make a placeholder with my own separate plugin with the timezone I want but can I not do it through PAPI?
Anyone know how to fix this error in Intellij?
Could not find artifact me.clip:placeholderapi:pom: in spigot-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/)
Fixed ✅
Hi I am trying to rig https://ajneb97.gitbook.io/conditionalevents/ with a vote listener. I want rewards to be given based on the world that a player is in. i.e., when in skyblock theyll receive 2 diamonds and when in survival they receive 1 diamond and 8 iron, while in creative they get 10 minutes of WorldEdit. Something like that. I am unsure as to what event to define for this to work. Do I need to find a vote listener that hooks into PAPI and has a 'confirmed vote' placeholder?
Hi. When I try to download any expansion the console says Failed to load due to a [NoClassDefFoundError]
LuckPerms but I tried with others and I get the same error
?luckperms
probably this is the issue then
Oh okay thanks
Is there a way to reset placeholders data for all players?? Thx
player staistics
delete their player data, or delete their statistics part on their data
I have deleted the player data, but still it keep the same data
ahmm wait
ok
user cache?
btw playerdata is at each world.
and u have to delete the stats part
which is world > stats
I have tried deleting the cache, and playerdata i will give stats a go thx
good
cache: saves unique id's I think
Playerdata: inventory and stuff
stats: stats xD
I will let you know if it worked 🙂
ok
Yesss Thanks @wise goblet it worked
great, I know that too now 😄
Hello,
I have a survival server with griefprevention. I also have a presentman so ppl that come every day can claim claimblocks, because they are online every day. But the placeholder %player% doesnt work. I downloaded the placeholders for Griefprevention from /papi. I also use a /title command from vanilla itself to let ppl know they have gotten the claimblocks. The plugin I use is RewardPro, but they dont give any support what so ever. Maybe you guys can help?
?player
@supple dawn ^
ok thanks. I downloaded the Player placeholder to, but that didnt work. Il try this
well if you've downloaded it you have to use %player_name% not %player%
Dude thanks man! I have been working on this for weeks. It works!
I don't know what i did, but when i use /papi ecloud download, the list doesn't appear anymore
This list
When i first installed Papi, i could download all of the placeholders just changing the end of the command, like /papi ecloud download vault and /papi ecloud download players
But now i can only install one per server reinstall
Is it possible to input a placeholder into another placeholder? I'm trying to input %essentials_nickname% into the Formatter Expansion's %formatter_text_substring_start:end_<text>% to remove the color formatting at the beginning of a player's nickname. It would look like this (though not functional): %formatter_text_substring_2:_%essentials_nickname%% because the first two characters would be the '&' and the color code
I think it's {}
Yes! That was it. Thanks so much
helo
i need help with placeholders
- '{fast}&b%leaderheads_name_bw1058statswins_alltime_1% &f- &b%leaderheads_value_bw1058statswins_alltime_1%'
- '{fast}&b%leaderheads_name_bw1058statsbedsdestroyed_alltime_2% &f- &b%leaderheads_value_bw1058statsbedsdestroyed_alltime_2%'
- '{fast}&b%leaderheads_name_bw1058statsbedsdestroyed_alltime_3% &f- &b%leaderheads_value_bw1058statsbedsdestroyed_alltime_3%'
Robin#7385 please contact him if your problem is with leaderheads.
Did i disable anything to the /papi ecloud download autocompletion/download stopped work?
playtime placeholder isn't working. I used /papi ecloud download PlayTime and I'm using VentureChat with {playtime_time}
anyone can help me?
you need the plugin PlayTime for that expansion to work
its an expansion for a plugin
ye I have
if you do /papi parse me %palytime_time% does that work?
this is how you get the log ^
?paste
@turbid tide https://pastebin.com/VcWGcV9W
ok now please do /papi parse me %playtime_time% again and send the error that you get in the console
11.10 08:16:55 [Server] INFO Caused by: java.lang.NoSuchFieldError: PLAY_ONE_TICK seems like PlayTime is using an old Field. I think on 1.13+ Its called PLAY_ONE_MINUTE or something like that. what's your server version?
1.16.3
well PlayTime only supports 1.8-1.13 I think
so you'll need to find another plugin or use the Statistic expansion
does Statistic expansion accurate?
it should.
does that plugin support placeholders as requirements?
I think so
well then you can use it why not.
what's the best placeholder for KDR?
probably math + statistics
%math_[precision:1]{statistic_player_kills}/{statistic_deaths}%
it will be formatted like xx.x if you want 0 precision so xx only then just change precision:1 to precision:0
if you want more precision like for example xx.xx use precision:2
etc.
The provided value was invalid!. Reason: Empty expression.
I have put {math_[precision:1]}
@turbid tide
@mild gale,
well that's because just the math itself won't do anything if oyu don't provide an expression
you didn't copy the statistic part
&f{math_[precision:1]}&e&l{statistic_player_kills}&f/&6&l{statistic_deaths}
yes
so i will just use statistics kills and deaths
whats the placeholder to show someone's kills
it doesnt work dude ngl
oh it works xd
i m noob srsly
i didnt do ecloud stuff
@turbid tide and what is the placeholder for essentialsEconomy
balance
What is papi??
PlaceholderAPI ? its a minecraft plugin
I mean what it is using for what
it helps you get information from minecraft/other plugins using just a word/group of words instead of actually having to code it yourself every time
so plugins that support PAPI can use those words to dispaly/use the information instead of actually needing to hook into a plugin etc.
Ohh i understood now thx
check console
send everything from when you execute /papi reload
does worldguard show in /papi list?
can you send your entire server logs?
=paste
Hello, there isn't placeholder that covers the name of the last player who hit each other?, I have been looking with the "Player" but nothing I am looking for.
I'm not aware of anything like that.
i could add this to my list in my plugin
hi, can i get an ecloud account to upload an expansion for my plugin?
DM funnycube with your name and email.
Ahh probabaly not, might have to send him a FR
Alrighty then if you see him online sometime, you can just ask him (:
Can anyone test out my World expansion for a sec?
.
@trim mist
Send it
I mean, all you have to do is press on the link and press "Download"...
I mean, all you have to do is press on the link and press "Download"...
to many buttons ...
@balmy marten hi
hi, can i get an ecloud account to upload an expansion for my plugin?
@novel moss
@novel moss,
xD
dm me an email and username you want
what is the difference between MVdW and Placeholder?
one works only for MVdW's plugins the other works for any plugins that add support for it
The purpose for MVdW is for Maxi's plugins though
yeah that's whay I said one works just for MVdW's plugins
Oh, the bossshop pro plugin actually refers me to this plugin, I think? I'm trying to let BossShop Pro read off McMMO levels, for example that you can only buy a certain pickaxe at Mining level 100. Could anyone hit me up for some advice/assistance how to do this?
does BossShopPro accept placeholders as currency ?
I don't know what most of that even means, so I can't answer that for certain
looked thru their spigot page and seems like you are able to
then download PlaceholderAPI
and then do /papi ecloud download McMMO and /papi reload
and you can use %mcmmo_level_<skillname>% as a currency I guess
you'll have to remove the level using mcmmo's command if it even has that
Blitz, do you mind if I take this to DM with ya?
So that it doesn't clog up the chat space
dw about chat space. Just ask here. That's why this discord server exists xD
first execute those 2 commands I gave you above
Doneso
you should be able to use %mcmmo_level_mining% as a currency now
as I said I'm not 100% sure if it accepts placeholders as I never used this plugin but from what I've seen on the spigot page it should
can u send that placeholder of griefprevention again
do -papi GriefPrevention in #bot-commands
helo, I'm having trouble whith the MySQL expansion, pls any help
i typed -papi votes in bot-commands but it not gaved me vote placeholders
well I mean is there a votes expansion?
because I'm pretty sure that expansion doesn't exist
what vote plugin do you have?
Hi i've been trying to add Power Ranks to the API try and try wouldn't find it so I downloaded one into the Expansions File game now knows its there but won't register it. Any ideas on how to fix?
anyway to "undownload" a ecloud package?
so the opposite of "/papi ecloud download essentials"
Remove it from the expansion folder manually.
Okie dokie. I’m a lazy butt lol
ugh @kind socket the expansion comes inside the plugin
no idea what you've downloaded but delete it
you only need the plugin itself
Alright thanks
Still not displaying it just says %powerranks_rank% have I done something wrong?
do you have the PowerRanks plugin installed?
Yeah
Everything in powerranks in game is working as normal just not on the scoreboard
I have instaled the PAPI plugin on my server and I downloaded expantions and I go into the game to type /papi reload bit there is no commands for the papi plugin, did I forget somthing?
@elder fiber send this ^
It just prints out %powerranks_rank% and when I refresh it stays the same I could try re installing power ranks?
hmm idk if that will help
have you deleted the expansion you installed before from expansions folder?
Yeah and I restarted the server
When try to install MySQL expansion an reload papi it don't reload and throw an error
so @turbid tide what do I do with the startup log? do I send it to you?
you send it here
When try to install MySQL expansion an reload papi it don't reload and throw an error
send the error please in a paste
I have instaled the PAPI plugin on my server and I downloaded expantions and I go into the game to type /papi reload bit there is no commands for the papi plugin, did I forget somthing?
@elder fiber I think you forgot to install the plugin
check your plugins folder
and make sure the jar is there
because no loading message from PAPI is showing in your logs
@turbid tide ooh ok I must have deleted the jar file cause I have the folders and everything just not the jar file
👍
https://paste.helpch.at/aqajacoqew.bash
hmm weird. I don't rly understand the error unfortunately. I think your best bet is to wait here until someone can help you or idk if issues on githubs are still opened then open a issue on there.
or contact the expansion's author and maybe they have a solution
OK, ty for the help
Can any one help me?
Contract the author of the MySQL expansion
hello i need help on my essentials papi
%essentials_kit_time_until_available_creativefreechest% it return 0 only or it's not working?
here's my essentials kit.yml
kits: creativefreechest: delay: 60 items: - dirt 1
also here's my deluxemenu
'freechestcd': material: structure_void slot: 31 priority: 2 update: true hide_effects: true display_name: '&fFree Chest' lore: - '&7%essentials_kit_time_until_available_creativefreechest% &8sec.' left_click_commands: - '[sound] UI_BUTTON_CLICK' - '[refresh]'
and yes I have the
update_interval: 1
I may seem desperate but how does one get his expansion verified?
Which expansion?
What's the name of it?

Oh it's that one
I'll have to see the source code for the expansion before I can verify it.
Do you have a github repo for it?
Nope
Is it just a single class?
Yep :)
For when you get home ^
You can DM @tender vapor and I'll see it.
Oh okay cool
Hey guys does anybody know if there is a placeholder for each mob killing like a one which counts the deaths of pigs, cows, zombies cause i found one but it was for every mob combined and i dont want that
You might be able to try that statistics expansion.
Thank you :p
How about my issue?
How about my issue?
I'm pretty sure it returns 0 when available. If you're op I think it will always return 0
might be wrong tho
@fluid chasm,
how do i make it so when a servers offline, it display's that its offline instead of the player count?
https://hastebin.com/umafidagak.shell
Hello I have a problem with the chestcommand plugin which is blocked because of placeholder
how do i make it so when a servers offline, it display's that its offline instead of the player count?
@fluid chasm you can do it with basic javascript
no
download js expansion and inside the papi folder there will be a javascripts folder
and you put there your script
Thanks
np
I'm trying to get the TPS as just a single integer and it's whooping me
%server_tps% gives three values, the TPS aggregated over 1, 15 and whatever seconds
maybe 5?
%server_tps_15% gives me a double with a loooong decimal
sometimes even going over 20 :x
I tried %math_ceiling({server_tps_15})% and math_round() with a precision of zero and both return 20.000
Your best option is javascript
Hello it's possible to take the placeholder %statistic_deaths% from a server and display it on another?
there are some APIs and plugins that say they can do that but I don't know any of the top of my head. But it is not possible by default
Anyone that could give me an in-depth explanation of how javascript works in papi
@turbid tide as you gave me the script i thought it'd be the best to ask u
>.... [14:14:38 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'mmolevel':
<eval>:2:4 Invalid return statement
return "&a1";
^ in <eval> at line number 2 at column number 4
@dense trail,
Oh shit, my bad...
if (parseInt("%mmocore_level%") <= 10) {
return "&a%mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 20) {
return "&n%mmocore_level%";
}
that's everything
oh well that won't work
I just want it so I can make infinite different level colors
add / remove whenever I want to
function mmocore() {
if (parseInt("%mmocore_level%") <= 10) {
return "&a%mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 20) {
return "&n%mmocore_level%";
}
}
mmocore();```
also there's hundreds of javascript tutorials on google
I don't have the time to sit here and explain everything.
It's fine, thanks for that I'll indeed as you said google for more information
I appreciate ur time ❤️
w3schools has some good tutorials on js
but yeah what you need to know is that you need to always have a function
and call that function after
and always return a string
and what you return is what gets printed
basically
Well actually, you don't even need a function for it to work
How many times am I gonna say that javascript was supposed to be running without function in the first place 
I've heard so many things about it, at least i got it to function now
Yeah you should be using a function because of easier handling
function mmocore() {
if (parseInt("%mmocore_level%") <= 5) {
return "&8Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 10) {
return "&7Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 15) {
return "&fLvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 20) {
return "&6Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 25) {
return "&eLvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 30) {
return "&3Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 35) {
return "&bLvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 40) {
return "&4Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 45) {
return "&cLvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 50) {
return "&5Lvl %mmocore_level%";
}
}
mmocore();
Works as a charm
If you want non-function way, this is the entire script: js if (parseInt("%mmocore_level%") <= 10) { "&a%mmocore_level%" } else if (parseInt("%mmocore_level%") <= 20) { "&n%mmocore_level%" }
Ahh i see
for me easier to understand with return
cause then I know what's happening in the script
cause I'm not all to known with js
👍
oh I wasn't aware then. I know its suppose to work without functions and that's why it felt weird when I first tried it and couldn't get it to work without functions.
but now that I look at it, it does make a lot of sense 🙂
=paste
there are some APIs and plugins that say they can do that but I don't know any of the top of my head. But it is not possible by default
F 😦 thanks
you could probably use a mysql database yourself but you will need some experience with java and mysql.
https://paste.helpch.at/ecobirudal.js @dense trail for easier readability
or even better use switch xD
How are you gonna make a switch condition in the =>, <= expression?
I mean, kotlin has it
But not for js, so that's a problem
oh right. its not when. Its switch.
forgot
kotlin is taking over my brain. I even tried to use fun instead of function in js placeholders xD
||become a java lover pls||

I mean I don't hate java... I'm learning both at the same time
Just one question
I just like kotlin because of the simplicity if I can even call it that.
If you are kotlin addictor, why you still adding ";" in the js scripts 
bcz a lot of people don't update the expansion
believe me a lot of times I forget to add them as well
I mean, it's obvious that he is using 1.6.0 expansion
even when I tried making a plugin on java all the errors were missing ; xD
I mean, it's obvious that he is using 1.6.0 expansion
how? xD
Below 1.6, there is not even an indicator which line was throwing error
oh nice. I should have known that because?
Every script errors will just say error at line 1
Also, second indicator is this: [PAPI] [Javascript-Expansion] (1.6.0)
[PlaceholderAPI] [Javascript Expansion] (1.5.4-)
it will work with and without.
so I don't mind typing a few more characters just to make sure it will work for everyone that tries to use it and don't update the expansion
That depends on yourself
even when I tried making a plugin on java all the errors were missing
;xD
@turbid tide i feel this
?
is it a way i can limit it?
what shows you ? the vault placeholder?
you can use %vault_eco_balance_fixed%
javascript probably
not that much long lol
nvm
he wants it fixed Kaliber so I guess that will work.
if he wants like 2-3 decimals then yes javascript
ok
Oh wow thanks for that @rare lily
the placeholder turned into blank, not the placeholder itself, nor an error
return PlaceholderAPI.setPlaceholders(null, LANG.getString(s));
/papi parse me %fw_prefix%
=> &6->
/fw help
=> &7Help menu for the Forger's Weaponry plugin.
LANG is a FileConfiguration, the method returns %fw_prefix%&7Help menu for the Forger's Weaponry plugin. for example
any idea what i did wrong?
I mean you're parsing the placeholder for a null player
you need to parse it for a player or an offline palyer
Does anyone know if it is possible to use Placeholder API placeholders in Venture Chat /msg?
yeah pretty sure its possible. I think you need to use {placeholder} instead of %placeholder% tho
ok because rn i have this https://pastebin.pl/view/781515af and it isnt working
how to get %statistic_hours_played% from selected player?
ok so here me out on this one - Basically I am trying to make players buy plots with the plugin PlotssSqaured with essentials econemy. To do this, players use a GUI (Plugin is CommandPanels) I learned that when a user was to buy a plot for the eco money, the command that it would run when they buy it is - console= lp user %cp-player-name% permission set plots.plot.x+1 - the plots.plot.x+1 is wrong becuase basically what this is doing is setting the users plot limit to +1 when they buy the plot, so Im prettty sure this would have to do with the placeholder #math, can anyone help me with this on how to use it?
help pls?
lol dont bother they have 5-7 supports that can help online rn but no help for me or you
Maybe no one online atm have an answer for you..
they would have said that
its been like 30 minutes since uve messaged, u shouldnt expect support within that time. no one is getting paid here. also ive never heard of this plugin so i cant help u personally
@obsidian charm paste the full error
sorry i dont want to be that guy its just my server released soon so i need to get it done, but at the same time...... You have never heard of plotssquared.... the largest creative plugin,,, aka also a whole placeholder section in your github
i mean ur question is more towards CommandPanels by the sound of it
i could tell u how to do it in deluxemenus, but thats a different plugin
¯_(ツ)_/¯
deluxemenus have similar layouts, it really doesnt even have to do with command panels in the first place thats just a extra piece of info, that is just to trigger the command, the question is what will be the lp user command with what placeholder in order to increasse the limit to user by +1
i know you can becuase a server i was on similar to mine does it
unless CommandPanels has some sort of requirements system (like what deluxemenus has) then im not sure
dude im not an expert but it wouldnt need it, it supports papi and all its doing is running the command, im just adking what placeholoder would be used to increase the plot limit by 1
still no help....
Anyone know why the vault eco placeholders aren't working? I have the vault expansion but the rank top placeholder isn't working.
https://i.imgur.com/uiOoJW9.png
https://i.imgur.com/k8OFkBH.png
Putting this here...
Anyone know how/what to use to get attributes from items, or just the player attributes in general? Like getting total generic.attack_damage, generic.armor, and the rest of them.
c
Anyone know why the vault eco placeholders aren't working? I have the vault expansion but the rank top placeholder isn't working.
https://i.imgur.com/uiOoJW9.png
https://i.imgur.com/k8OFkBH.png
@karmic marsh did you reload papi after downloading the expansion?
Yes and I've restarted the server a couple times too.
make sure it is enabled on papi config
Hi !
I am an error with Placeholder Api when i down my server.
But PAPI are functionnal. 🤷♂️
Hello, I would like to have your opinion on the best method. I have LuckPerm, and PAPI. I would like in the TAB, just to have the players in color in relation to their roles.
What do you recommend as a placeholder?
Thank you for your help.
I'm using PAPI for roles, and it works really well so far. Never tried the other one though
Putting this here...
Anyone know how/what to use to get attributes from items, or just the player attributes in general? Like getting total generic.attack_damage, generic.armor, and the rest of them.
@dull meadow anyway.. bump
Hello, I would like to have your opinion on the best method. I have LuckPerm, and PAPI. I would like in the TAB, just to have the players in color in relation to their roles.
What do you recommend as a placeholder?
Thank you for your help.
@lusty granite seems a bit sketchy but cant you put their color in their prefix then get the placeholder prefix?
Also idk if it works like that
Is there anyway to display placeholdersapi placeholders in skript? I was plugin Ersatz but it doesnt work for me.
Is there anyway to display placeholdersapi placeholders in skript? I was plugin Ersatz but it doesnt work for me.
That's a question to ask the skript developers. They need to add PAPI support. But I'm pretty sure they do support them tho.
Do you know how to make them?
Nope.
on join:
set {_barvicky} to placeholder "playerlist_online,perm,yes,amount,barvicky"
broadcast "%{_barvicky}%"
Don't they have a wiki or something?
@dull meadow anyway.. bump
I think you can use Javascript placeholders.
yo have to now a bit of javascript and spigot api
Thanks, isn't it java though?
its a javascript expansion
so it uses javascript
not java
Hi !
I am an error with Placeholder Api when i down my server.
But PAPI are functionnal. 🤷♂️
@vague lion seems like the ultimatestatistics expansion gives that error.
Ah, ws thinking of something like this
player.getAttribute(Attribute.GENERIC_ATTACK_DAMAGE)
If that doesn't work Imma go do research again, thanks for the help!
well yeah. You can use spigot methodfs
methods* in javascript
expansion
so that's exactly what you'd do I think.
some more info on the expansion: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
Oh thanks a lot!
on join:
set {placeholder} to placeholder "%%playerlist_online,perm,yes,amount,barvicky%%
broadcast "%{placeholder}%"
- It says: "<none>"
It should have said "0"
I'm lost.
I mean what does /papi parse me %playerlist_online,perm,yes,amount,barvicky% even return?
"1"
Bcs i have the permission.
But the skript doesnt show that. Idk
I tried 2 expansions but none of them worked
on join:
set {_placeholder} to placeholder "skyblock_level"
send "%{_placeholder}%"```
this is a bit lower on the same page
@obsidian charm paste the full error
@warm topaz Its spamming this
on join:
set {_placeholder} to placeholder "%%playerlist_online,perm,yes,amount,barvicky%%"
broadcast "%{_placeholder}%"
on join:
set {_placeholder} to placeholder "playerlist_online,perm,yes,amount,barvicky"
broadcast "%{_placeholder}%"```
like this
still <none>
I have this error in bungee https://pastebin.com/p3T2ZGZ7
W8
Woah is pastebin down
Idk how, but it started working.
Funnycube is watching over us lmao
PAPI doesn't support bungee yet
So is it possible to make something like this:
command /test:
trigger:
if {placeholder} is 1:
setblock xxx y zzz
?
Idk how, but it started working.
glad to hear
you'll have to try Zizoo
I don't use skript and never have used it.
dude im not an expert but it wouldnt need it, it supports papi and all its doing is running the command, im just adking what placeholoder would be used to increase the plot limit by 1
@glad pumice you say it like its so easy... It won't even be possible with the math expansion. Because the math expansion doesn't save data. With DMenus it would have been easier since it has meta. Also about that github shit. We don't make those fucking placeholders for god sake. People add PAPI support. PAPI doesn't add other plugins support.
anyways back on the subject. Your best chance is to look into javascript data.
there's also a placeholder for that that is made by the community: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#data if you want to use that
but I'm not here to make a full menu for you. I'm here to point you in the right direction and that's what I did ^
if you want someone to make a full menu for you then please ask in #761129130321772564 or #761129129730900028
Blitzzz
hmm Rick is that the entire error?
Yes is spamming
also when does that error appear?
i think for Bungee Expansion
ugh
how have you downloaded it?
you have PAPI on all your servers but not on Proxy?
and then you did /papi ecloud download Bungee and /papi reload on those servers but once again not on proxy?
ok go to plugins/PlaceholderAPI/expansions and delete the Bungee one
then restart
and see if it still appears
the error I mean
Sure wait
Because the expansion is not working properly lol
well yeah Snowman I can tell that. But the error doesn't say the actual reason
it is not working properly
that's what I meant
Now working all fine
is there a way to load papi placeholder without sending in a player?
?
If you mean parsing them via the api, you can pass null for a player
That too
heya anyone know of a good way to target placeholders at another person?
I know you can /papi parse <target player> %placeholder% but I don't want to give players permission to papi parse - what I'm doing is making a custom command that essentially does Their favorite color is: %target_player_placeholder%
^
heyo, Im using Saberfactions, and using the 2 %rel_factionsuuid_relation%%rel_factionsuuid_relation_color% But it isnt working. Saber told me to go to tablist, then montlikadani told me to go here
We need a placeholder for deluxetags to see if a tag is equippred which returns yes or no 🤔 or im just being dumb and cant find it
just use %deluxetags_tag% (?)
But tryna set a requirement to see if anytag is equipped
returns blank but idk how i'd fill it out for this section
a requirement in dmenus?
requirements:
tag:
type: '!string equals ignorecase'
input: '%deluxetags_tag%'
output: ''```
ill quickly try that
that check if he has a tag
not if he doesn't
also your priorities are bad
you have no requirement on prioirty 1
How would you suggest
alr
then
yeah and put it on the second one
gotcha
the item with prioirty 1
@karmic marsh hey did you fix your Vault/PAPI issues
I am still experiencing the same thing
Nope
And it isnt just BalTop, it is all Vault palceholders. Other packages work fine
I can even run them thru /papi parse <player> and get nothin
what's your guys problem?
It seems there was a Vault expansion update or something and now my Vault placeholders dont work
Possibly more than just vault I cant tell
But I definitely know Vault isnt
well some of the placeholders vault had got removed
for example the TOP placeholders
?startuplog
send this ^
?paste
https://hastebin.com/ezigodewec.sql @turbid tide tyvm
@lethal carbon,
whoops sorry didnt know I couldnt ping ya
oh shit everything fucking crashed and windows went into repair mode.
Seems like your EzRanksPro expansion is broken for some reason
also the LP expansion and Vault is not downloaded
you'll have to go to https://api.extendedclip.com/all/, download the expansions manually and put them inside plugins/PlaceholderAPI/expansions
then do /papi reload
first of all make sure the expansions aren't in there already and if they are delete them and then download them manually
also idk about your ezrankspro expansion.
@lethal carbon ^
do you even have the EzRanksPro plugin installed?
Ahhh
if not then delete it
delete the expansion from the folder then
but still
you'll have to download manually the Vault and LuckPerms expansions
I definitely have Luckperms and Vault expansion in the folder
I reinstalled em already
manually?
from the ecloud?
if not then delete the existing ones and download them manually
BOOM
because they don't get registered at all
it was the EZRanks expansion
oh I see
makes sense now. I think PAPI just stopped registering expansion after EZRP one was giving an error
no problem
and sorry for the 1 hour wait. Everything crashed.
No problem at all shit happen
If you mean parsing them via the api, you can pass null for a player
i do mean that, but that'd just make the placeholder blank
depends on the placeholder
parsing it doesnt require a player theoretically
correct
it just gets a string from a yaml file
im registering some simple placeholders that gets some strings from a yaml file via papi
but when i pass in a null for the player parameter it just replaces the placeholder with empty string
😩
=paste
send your class
xD