#placeholder-api
1 messages · Page 147 of 1
What sort of placeholders are you trying to add to the motd?
Like to show your played time on the server with OnTime plugin.
I believe you can just use %ontime_time_played_total%
Nope, it's not working
"This was in progress (see #1945), but hasn't been touched recently due to the complexity of implementing it. I think PlaceholderAPI integration may need to wait until we're ready to do larger work on message sending in general (which could also enable JSON formatting etc)." - Jan 5, 2019
not sure if it has been touched since then
You should check out other plugins like NitroJoinMessage
nvm placeholders dont work on that either =/
Please help me
Placeholder plugin error:
https://paste.helpch.at/ihidurizos.bash
@rose dock you can use the placeholder injector plugin and it will let you use placeholders in any essentials message or any message for that matter
Idk if it works on 1.16 but worth a try and if it doesn’t you can report back and maybe someone like myself or anyone who has time will update it
just tested, does not work, love your plugins btw 🙂
Ok did it spit out some errors
Also rather than that version, try the original that I made
No lol it’s an actual plugin
oh damn rlly
Also you need protocollib
nope still not working
let me see
Or just tried to use a placeholder and it’s not parsing
Also chat injector uses brackets and not %
So {player_name} not %player_name%
{vault_eco_balance} should work?
Assuming you have the vault expansion yeah
=/
not that I can see
but it's not parsing
it just says {vault_eco_balance}
works in NitroJoinMessage but not in EssentialsX Motd
Paste the startup log
please help :/
It only says 2 things about chatinjector and thats loading chatinjector and enabling chatinjector
It's looking like your having a problem with one of your expansions
Im have:
Essentials, Listplayers, localtime, math, player, quests, server, skinsrestrorer, skript, statistic, vault, viaversion
Did you try and download a expansion when this happened or can you not open your server?
On /papi reload error, I recently downloaded ListPlayers and it hasn't worked since then and now I'm trying to remove it
no that's not it: /
you could try deleting the papi config and if that lets you run the server you can reinstall all of your expansions
I'm doing it right now
The error is caused by the skinrestorer
Thanks a lot, I had a problem with this for a long time and nobody answered me here
no problem lmk if you have any other problems
did anyone know the AFK placeholder from PlaceholderAPI ?
Hi ! i have a problem with a placeholder
i need check FakePlayer with this Placeholder %parseother_{username}_{placeholder_without_percent_signs}% you have a idea for that working ?
anyone know the placeholder for AFK in Placeholderapi ?
%afk% dont works , i use essentials for that normally but with my velocity tablist its dont working
uhh be more specific?
what afk plugin?
@west peak for essentials its %essentials_afk%
thanks a lot booooys 😄
Anyone able to help with a java script place holder?
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
function flyStatus(){
if("%essentials_fly%" === "no"){
return "&c&lDisabled";
} else {
if("%essentials_fly%" === "yes"){
return "&c&LEnabled";
}
}}
flyStatus();```
Doesn't work ^^
what if you do /papi parse me %essentials_fly%
Wouldn't it be /papi parse me %javascript_flyStatus%
well I want to see what the essentials fly would output
yea
Is it possible to just have an else statement for yes since if you're not not flying well, you are
if that's possible
but I have no knowledge at all of js so 🤷
oh wait
it works
I was doing essentials.fly
it gives yes for flying, no for not
?
how do i make a placeholder all caps?
Hey y'all, hoping I might be able to find an answer here:
Setting up a Hunger Games plugin for a tournament, and have gone through the steps to install every other plugin needed, but for some reason I cannot get Placeholder API to even be recognized by the server. I'm familiar with installing plugins, and have gotten all the other plugins on my server to work, but running /plugins doesn't even detect PAPI. /papi isn't a recognizable command, and I really have no idea why this isn't working but the other plugins I've installed are working fine. Am I missing something obvious?
is there a newer version of expansion tokenmanager?
the latest on ecloud is from 2019
[PlaceholderAPI] tokenmanager is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
%tokenmanager_tokens% isnt parcing
install vault
in aternos?
vault is a plugin
that allows you to have an economy
Vault + Essentials would give you an economy
Ok, Because MultiEconomy dont helped me
How can I connect it with my bungee network?
@austere hawk connect what with your bungee network?
yes, I want to make scoreboard in lobby with online players on survival and pvp server
I know it can be done, just not sure what the best way to do it
I assume there might be a scoreboard plugin that will have all the features built into it you need
I use a global tab plugin
@austere hawk
BungeeCord
/papi ecloud download Bungee
Allows you to show, how many players are online on the entire network, or just on a specific server.
%bungee_total%
%bungee_<servername>%
Hello this is epic what version am i supposed to use for 1.8
because the newest version of placeholderapi doesnt work for 1.8
@limber ice Unknown expansion.
this is the error
i think
i am sorry
i reliased i didnt download the expansions it was foolish for me to ask before i assesed my problem sorry about that
Quick one - anyone know where to find the dev builds?
Never mind ._.
Here's link, for future reference: https://ci.extendedclip.com/job/PlaceholderAPI/
@delicate vapor,
Please respect the rules, be patient and don't ping staff members!
Is it possible to use custom placeholders?
wdym?
I've created a javascript file in Placeholderapi checking the name of the Land from Lands plugin, i want to set if there is no land created for that user it leaves space, but instead it shows None
I've tried with "None" and "&8None" as it contained color
well if there is no land to leave like '' and if there is land to display it
Is there a placeholderapi extension that has placeholders that are numbers that start at 0 that I can add to with a command like /placeholder1score add 1
Why do the extensions uninstall after reboot?
Which ones?
Player, Server, and Vault. It’s already fixed, if it helps I’m on Minehut.
@zealous arch,
Please respect the rules, be patient and don't ping staff members!
Hey. I can't figure out how to hook into placeholderapi. I am following the instructions on https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI
but it doesn't seem to work for me. I get an error here. Please help.
Hello?
You might need to reload your maven project (depending on your IDE) and run the maven install task to setup your local maven repo (atleast I think that's how it works, I do it very infrequently myself).
Just use a chat formatting plugin that supports PAPI?
Someone who knows a placeholder that it shows the player head of the player in a GUI menu?
head-%player_name%
hello, is the ckeckitem expansion can check the slot of the item, the damage or it's broken or not?
you can't check a specific slot, but you can check if it's in their hand or not
and yes you can check damage
?checkitem
click the link to learn more
Idk about or what the Taskable implementation in PAPI is there for, I just thought it would run in tick
But no, its functionality is just like register and unregister..
Where do I report bugs for papi expansions specific to certain plugins? Most are made by clip that I'd like to report bugs for.
material: head-%player_name%
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
Check what I wrote
thanks! i fixed it 😄
heya
What could cause the LocalTime extension to get blocked in Docker? It's just a simple http request to an api, isn't it?
Just use %math to devide it by 8?
Pleasure, you might have to tweak the precision a bit and also make sure this only works in the overworld otherwise it'll definitely make no sense. Y level should stay as is.
make sure you have the math and player expansion
did you try with /papi parse ?
also try / and not the division symbol
also,make sure you use the latest version of the math expansion because the format you use is the new one
what do you mean?
I guess you would need to ask the author to add a way to disable the help cmd per world
or another way is to disable the permission per world through your permission plugin
Is there a placeholder for bal top positions?
vault expansion ^
make sure u have downloaded the expansion and u have the leaderboard enabled in the placeholderapi config to make the placeholders work
Ah wonderful thank you
vault placeholders don't work anyone know why?
@long crater
Is it possible to use internal plugin placeholders on a deluxemenu?
deluxemenus can use any placeholder from placeholderapi
yes I downloaded it @hoary sierra
/papi parse hallowhead1 %vault_eco_top_balance_commas_1%
always returns 0
do u have the leaderboard enabled in the papi config
bump
um
there isn't a leaderbaord optiuon
baltop:
check_delay: 30
cache_size: 100
enabled: true
formatting:
thousands: k```
found it nvm
you rock
is the check delay in seconds or minutes?
when I use %worldguard_region_has_flag_<FlagName>% it always returns yes, it doesn't matter if it's in deny
Could I please get some help with this error
https://paste.dedimc.io/fuwuyihaja.sql
no worries, it is just saying that PAPI is using these java classes
pretty sure that placeholder return yes if it even has the flag set. doesn't matter if its deny or allow as long as its set to something. try un-setting it and see if it still return yes.
hi guys, how can i create an holographic leaderboard by sorting players by a specific placeholder?
you use one of the following plugins: LeaderHeads or ajLeaderboards
and those allow it as long as the placeholder is an integer
so 1000 not 1000.00 or 1,000 etc.
cool ! how can i register a placeholder for my plugin? can i just use the API?
aight, tysm!
baltop:
check_delay: 30
cache_size: 100
enabled: true
formatting:
thousands: k```
that check_delay is minutes?
try making it 1 and update your balance and see if it auto updates
if not then it probably is in minutes
okay, thanks.
I'll try and check the code as well see if its minutes or what
thank you 🙂
its seconds
that doesn't make sense than
minutes would
as I set it to 30
changed a balance and waited
it was like 30 mins
but I am trying to lower the number, but can't seem to
that's strange because according to the code its seconds
taskDelay = expansion.getInt("baltop.check_delay", 30);
balTopTask.runTaskTimerAsynchronously(expansion.getPlaceholderAPI(), 20, 20 * taskDelay);```
first line means that it gets the delay from config and it defaults to 30 if it doesn't find it
and its used here , 20 * taskDelay
its 20 * because it takes ticks so it changes 30 seconds to 30*20 ticks
which is 30 seconds or 600 ticks
I believe you
maybe it's because I have it in a holographicdisplay
nothing in here for refresh tho
so it should follow the papi one
oh so it won't update at all than.
You need to add a special placeholder to it for it to refresh on its own
I assume you are using holographic extension or whatever it is
On the documentation it has the placeholders for refreshing
I was trying to remove holographic placeholders
and I removed extensions
no way to do it without them?
No
dang
I guess I can get extension and remove placeholders
thanks
just need to figure out a way to show playtime tops
you use holographic display and and holographic extension?
then add {fast} at the beginning of the line
I don't use exxxtension
what do you use then?
I use, hologrpahic displays & placeholdes
holographic placeholders?
I am trying to get rid of placeholders, because it's pretty performance heavy and is causing issues with essentials
yes.
as I mentioned than, the only thing i have to figure out is how to show playtime top leaderboards
as hplaceholders has a playtime thing
Hello. Can you show me example with WorldGuard expansion placeholder %worldguard_<Any WG Placeholder>_<Priority (Lowest number = Highest priority)>%?
How I need to use this?
<Any WG Placeholder> - what?
region_name? worldguard_region_name? %region_name%? %worldguard_region_name%? {region_name}? How?
%worldguard_{worldguard_region_name}_1%
I think this is how you use it
you can also try: %worldguard_worldguard_region_name_1%
%worldguard_{region_name}_1%
and %worldguard_region_name_1%
Nothing
/papi parse me ... returns this placeholder
one of them will work xD
how i can exclude vanished players from %server_online%?
If you're using Essentials for vanish, I'm pretty sure there's a placeholder for that.
%essentials_safe_online%
It... says... essentials?
is something like this exist for cmi?
Not sure. I think the author of CMI handles his own placeholders. Gotta go ask him.
@warm topaz Unknown expansion.
Yeah we don't maintain anything for CMI since it's closed source. So, you'll have to hop on over to where CMI support is and pick their brain.
CMI got its expansion built in the plugin
/cmi placeholders to see all of its placeholders or check its wiki page
Is it possible to remove hours in this placeholder ?
%player_first_join_date%
Like i want it to show only date
Probably can use some kind of JS expansion to manipulate it.
@final shadow can u fix the javascript requirements for deluxemenus
@heady urchin,
Please respect the rules, be patient and don't ping staff members!
cant go over the integer limit of like 2.1b or something
javascript limitation != something broken
||note: not everyone knows what != means||
he should if he uses js'
anyone know a way to have a playtime top leaderbaord?
@vivid sparrow it is broken
@heady urchin,
Please respect the rules, be patient and don't ping staff members!
Any papi builds I should update to due to paper's integration of adventure?
Please ping when replying
Online_player placeholder work , but i think only in cmi stuff like there own tab och other stuff it has build in.
It has other placeholder too, but it seams only work if player parse it. Has not have time to bug test it.
var opcao;
var hasKit = "%essential_has_kit_";
if ( args.length === 1 ) {
opcao = args[0];
var finalArgument = hasKit.join(opcao + '%');
if (finalArgument == 'yes') {
return 'Sim';
else { return 'Não';}
}
}
}
haskit();```
What am I doing wrong?
you have to parse the placeholder with PlaceholderAPI.static.setPlaceholders(BukkitPlayer, whatever)
ive changed my code to this:
@cunning elk,
Please respect the rules, be patient and don't ping staff members!
var opcao;
var finalArgument;
var hasKit = "%essential_has_kit_";
if ( args.length === 1 ) {
opcao = args[0];
finalArgument += hasKit + opcao + '%';
if (finalArgument == 'yes') {
return 'Sim';
}
else { return 'Não';}
}
}
haskit();```
but it is only returning me Nao
even for instances that if i parse the essentials_has_kit placeholder, will return yes
because placeholders that are being formed in code something + something else aren't being parsed unless you use the the output of PlaceholderAPI.static.setPlaceholders(BukkitPlayer, something + something else)
val result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%")
var opcao;
var finalArgument;
var hasKit = "%essential_has_kit_";
if ( args.length === 1 ) {
opcao = args[0];
finalArgument += hasKit + opcao + '%';
val result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%")
if (result == 'yes') {
return 'Sim';
}
else { return 'Não';}
}
}
haskit();```
like this?
yeah
got an error
javax.script.ScriptException: <eval>:1:173 Expected ; but found result```
var opcao;
var finalArgument;
var hasKit = "%essential_has_kit_";
if ( args.length === 1 ) {
opcao = args[0];
finalArgument += hasKit + opcao + '%';
val result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%");
if (result == 'yes') {
return 'Sim';
}
else { return 'Não';}
}
}
haskit();```
i did add the semicolon to the end of your argument btw
hi im a noob in js
need some help
function islands() {
if "%superior_island_location_name_leader%" = "Togglingspeed";
return "Your Island";
else return "%superior_island_location_name_leader%";
}
islands();```
i need it so when the placeholder returns the players name
it would return "Your Island"
==
Np
<eval>:2:8 Expected ( but found TogglingSpeed
if "TogglingSpeed" == "Togglingspeed";
^ in <eval> at line number 2 at column number 8```
got this issue :P
put it in ()
you need ()
where at?
the if statement
nah
sad
from After the if to the end of the line (which doesn't need a ; )
If (x == y) return ..
else return ..
ah i get it now
<eval>:4:4 Expected an operand but found else
else return "TogglingSpeed";
^ in <eval> at line number 4 at column number 4```
new issue :P
send the entire script
function islands() {
if ("%superior_island_location_name_leader%" == "Togglingspeed");
return "Your Island";
else return "%superior_island_location_name_leader%";
}
islands();```
remove the ;
from?
line 2
yay
I just get my name returned lol
and how do i do it so instead of my name its the players name whos parsing it
BukkitPlayer.getName()
👍
var opcao;
var finalArgument;
var hasKit = "%essential_has_kit_";
if ( args.length === 1 ) {
opcao = args[0];
finalArgument += hasKit + opcao + '%';
val result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%");
if (result == 'yes') {
return 'Sim';
}
else { return 'Não';}
}
}
haskit();```
what am I missing?
I have to reparse the placeholder to then use it in yes or else
There are only 3 tasks left on JSExp 1.7 now: data saving, exception handling and classloader stuff
is there a way to sink placeholder information?
I wanted to add a players total player time from each server and display total time played in our network
Don't think so. you'll probably need a plugin that just keeps track of the playtime.
I mean I think there is an API that allows you to have Bungee placeholders but IDK how it works.
got it
@cunning elk,
Please respect the rules, be patient and don't ping staff members!
^
it only returns else
so 'nao'
huh 1 sec
yes I think I know what it is
I'll send you the fixed one
function haskit() {
if (args.length < 1) return "No Arguments"
var hasKit = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%", "essentials_has_kit_" + args[0] + "%")
return result == "yes" ? "Sim" : "Não"
}
haskit();```
try this
function haskit() {
if (args.length < 1) return "No Arguments"
var result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%")
return result == "yes" ? "Sim" : "Não"
}
haskit();```
does anyone know why my placeholders arent working
i installed a placeholder package and they dont replace
pogg I'm here
so umm is there a way to list all the placeholders a expansion registered?
If it's from the ecloud, yes, if not, probably not unless the author lists it somewhere.
Can always decompile it and look.
well the thing is
the plugin broke
since it was like an extension to a public plugin to add it into papi
and the plublic plugin updated and it seem to have broke
I'm not sure it's because of the update or the plugin itself
so I was thinking to list it in-game
there's like so many layers that it could be broke on
plugin to extension
extension to papi
papi to Mvdw
Mvdw to FB
why can't I find mycommand's placeholder ecloud expansion?
Is there an expansion that adds placeholders for user keybinds? In case someone has a different sprint key, etc.
Suggest it on github
Was wondering what the placeholder to link deluxetags with essentials chat
DeluxeTags showing in essentials chat:
- Stop the server.
- Turn off the DeluxeChat option in the DeluxeTags config.
- Turn off the format_chat option in the DeluxeTags config.
- Put
{deluxetags_tag}in your essentialschat chat format. - Replace all the placeholders in the DeluxeTags config
%placeholder%to{placeholder}(Ex:%deluxetags_tag%to{deluxetags_tag}). - Start the server.
How can I use a placeholder inside a plceholder?
bracket placeholders
like in this one: %Advancements_completedAmount_<player>%
{placeholder_Here}
ah
if that one supports it tho
probably not
not all placeholders support bracket placeholders
I mea it doesn't have to say. A lot of them just support them by default but not all of them
i tried doing %Advancements_completedAmount_{player_name}% but didnt work
yeah probably doesn't support them then
can you maybe try and return the results of each placeholder? Instead of total being a number make it a string and just concatenate the placeholders to it. see what it returns
ex: /papi parse me %premiumvanish_bungeeplayercount@survival1%
I also assume the server name has to match caps exactly
so if it's Survival vs survival you might need to use that
why what?
why is it not the latest?
go to plugins/placeholderapi/expansions and delete all the BungeeExpansions jars
you probably have multiple
and then redownload
thanks
i skipped right over that woops
does %premiumvanish_bungeeplayercount@survival2% also work?
error
@cunning elk,
Please respect the rules, be patient and don't ping staff members!
error
javax.script.ScriptException: <eval>:1:63 Expected ; but found var
@cunning elk,
Please respect the rules, be patient and don't ping staff members!
make sure you have the latest version of the javascript expansion
no problem
Hey!
When I want to download Vault with placeholder, everything works but at the time of the / papi reload in order to activate it, I have this mini error in my console and the Vault placeholder does not work
[19:24:05] [Server thread/INFO]: T3scioR_ issued server command: /papi ecloud download Vault [19:24:05] [Thread-50/INFO]: [PlaceholderAPI] Fetching available expansion information... [19:24:08] [Server thread/INFO]: T3scioR_ issued server command: /papi reload [19:24:08] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [19:24:08] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information... [19:24:08] [Server thread/ERROR]: [PlaceholderAPI] expansion class VaultExpansion is outdated: Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/economy/Economy
Try downloading straight from ecloud
Place the jar in expansions and restart
I tried this and even manually downloading it doesn't work :/
Do you have Vault itself installed?
I just looked and ... I had incorrectly installed Vault and therefore the plugin itself did not work. I'm sorry for the inconvenience
I have another problem, I have correctly installed vault but this time the expansion is installed well in the folder yet it does not work
Startup log?
Uh
So I get
This weird error
And i cant show it here
Ping me plz
What is this
Is there a way to remove pre-formatted color codes from a placeholder? (an expansion or something)
preferably without js
how do I round to 2 decimal points using math?
what is the kill place holder?
like kill count?
ye
Ohhhhh
i think that is why my score board is not showing the kills
cause i did that but now i downloaded the thing
Thanks!
try to make it round to 2 decimal points using %math_[precision]:[rounding]_<expression>% any help?
nvm solved
hello
what command /papi should I use to put "easyprefix" on the scoreboard?
there is no command. you just need PlaceholderAPI and EasyPrefix installed.
when i put placehorders in chat it doesnt show the value
have you downloaded the expansions?
its bw1058
bec for aj leaderboards
i need to type the placeholder in chat
to be able to register
it
it says u have to writea valid placeholdder
@austere hawk,
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
smart
How can I show the number of people online in a world on the scoreboard?
%server_online_<world>%
well then the problem is your chat plugin
it doesn't parse placehodlers in the messages
well yeah then the placeholders clearly won't work in chat
The placeholder should only output the number for the player, and nothing else.
this is to create leaderboards ^^^
you can't do leaderboards with their names.
only with numbers
Should I put some /papi ecloud download?
what does this one return?
yeah /papi ecloud download Server then /papi reload
it returns what?
Why does it say that there is no one connected? I am
maybe you used the wrong world name
no, i wrote the name of the world
what's the exact world name?
@turbid tide https://imgur.com/undefined
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
ugh check the link you sent
oof
here
check this out
it dont display that arena display count
insted it shows the placehodler insted
but have you tried it with /papi parse me ?
what hologram plugin do you have?
holoographic display
and you have HolographicExtensions as well?
yes
and ProtocolLib as well?
no
well you need it. says on the HE spigot page
kek
This a a random question
But is there any placeholder that can say the amoun of players that are in survival in a specific world?
I mean
If there is 2 in survival mode
And 1 in spectator
If i use that placeholder it will say 3
I want it to say 2 the amount of players in survival mode
add it to PlayersList? xD
as in make it be able to take in multiple types
or subtypes
whatever you called them
I know. I am too. but sometimes I just get and do something and don't stop until I'm done. you should do the same
Organize anything, together. Trello is a collaboration tool that organizes your projects into boards. In one glance, know what's being worked on, who's working on what, and where something is in a process.
look at this
my imagination is too big for me ;-;
well I'm kinda half the oposite half the same. I don't have any imagination and I'm lazy

All ew
how to (setting) interlock papi - discord srv plugin
@junior musk this is not Python ffs
lISkOv
I don't even remember what that is x)
it's been so long I've ever touched that think lol
oh... Just did a little search and actually the advancements placeholder is used by people. 😄 I thought not many people would use it.
if there is any suggestion/problem/error to add to the placeholder, just let me know by discord
yeah some people use it. its not bad
How would you get the number of people on a server?
%server_online%
ok ty
can i force PlaceHolderAPI to load Expansion?
since PlaceHolderAPI only loads the Expansions after the server has fully started i cannot use its Placeholders before
basically i got %server_name% %server_version% started at %server_time_dd.MM.yyyy%
but when the server closes i get Generic Server Name 1.16.5 has shutdown at 25/02/2021
also PlayTime does not work
Can anyone help me with this papi-js error?
https://paste.helpch.at/leguyevata.js
[PAPI] [Javascript-Expansion] An error occurred while executing the script 'chatformat':
<eval>:26:47 Missing close quote
modifiers = modifiers + ' ' + args[1]';
^ in <eval> at line number 26 at column number 47
wait I forgot to reload papi
rip
PlaceholderAPI-Javascript is amazing, since it makes up for other plugin's stupidity :p
Can anyone help me with the Progress placeholder?
The progress bar doesn't know what percent to display when using custom placeholders like:
&f2 Wither kill &a- &f[%progress_bar_{statistic_kill_entity:wither}_c:&e|_p:&e|_r:&e|_l:20_m:25000_fullbar:&a&lCompleted!%&f]
do /papi ecloud download [expansion name]
and then /papi reload
If it doesn't load just repeat it again.
can anyone help me icant download any expansions like Vault and Player
Do you use a host for your server?
Any console error?
Placeholders, and deluxechat. i can't get it to show timeplayed
i have installed the playertime placeholder
https://imgur.com/n567ag5 Hi, I am facing a problem
https://imgur.com/BmJOtdx I downloaded this add-on
https://imgur.com/6hrtOd6 online output does not work (
https://imgur.com/hK1tN7k the world i have really named a lobby
no errors in the console
plugin version: PlaceholderAPI-2.10.9.jar
%listplayers_in_world(discord applies chat formatting)<worldname>% it doesn't seem to work?
sorry for the screenshots on this site, I didn't figure out where else I can upload them
how can i withdraw online from my additional worlds to a placeholder?
I recommend trying the playerlist expansion
I believe it's more updated than listplayers
@fluid heath 
https://helpch.at/placeholders#playerlist for more info
can I get the number of players in a certain world?
yes
thanks now I will try to do it
%playerlist_online,world,yes,amount,<worldname>%
yes it really worked thank you so much!
btw u can use `` to escape discords formatting and it will display a code block instead
oo I didn’t know about that. Thanks for the information. I’ll try not to forget about it.
Does the placeholders works on the head? https://imgur.com/a/Qk2Gs2l
It seems like they don't
For DeluxeMenus
Anyone can help me?
what version of deluxemenus are u using?
Latest
and what plugin/expansion is that? do u have it downloaded
Works in every plugin but deluxemenu don't accept it
o wait, how does that not error if u dont have it wrapped in ''?
material: 'head-%shooter_blah%'
yea im pretty sure anything that has a special character (% in this case) would have to be
what does %shooter_blah% return ?
The first placement of the Top Killstreak
It's a leaderboard placeholder essentially
Yep confirm 😄
can you take the name of whoever is top1
and make the material head-NAME
instead of the placeholder?
see if that works
?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.
Yea works
Um ... I wonder why the placeholder doesn't work %vault_eco_top_rank%
have u downloaded the expansion
This way I first understand that you think I'm a beginner in the business itself, but go as I'm not stupid and I know what the syntax is for vault and all the basics but simply the pope doesn't work
AS II said i was !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!
uh ok
now did u enable the vault leaderboard placeholders in the placeholderapi config
Are you fucking with me or?
???????????????
do u want my help or not
these are simple yes or no questions, just answer them
Dude, I did everything right, it's just that the Pope doesn't work, doesn't load ...?
Dude, I did everything right
explain what u did for this then
Well of course I put a vault in the paper but it just won't load the pope I don't know any other way how to express myself
papi*
I went to papi ecloud download vault so papi reload of course, but when I put placeholders like I said who won't load
ok so if u do /papi parse me %vault_rank% ingame, what does it return?
Moment
Just another question since I'm doing the menu process baltop menu means when someone knocks / baltoop to open his gui and baltop 10 players, I'm just interested in how the material goes for the guy to have a head as the first player and the other 10 if you understand me placeholders how it goes
Specifically, did head-% vault_eco_top_player_1% and head;% vault_eco_top_player_1% do both?
if ur on deluxemenus v1.12+ then use head-%%, if ur on a lower version then use ;
Okay, my demo is on the latest version so I'm using -
Okay, I apologize but I'll tell you what message I get when I type /papi parse me %vault_rank%
....
then u dont have the expansion installed
when u do /papi ecloud download vault, /papi reload do u get any errors?
@austere hawk,
A title of GUI can't be longer then 32 characters, this includes formatting characters.
I don't see anywhere that you said that I have to / papi ecloud download Vault 1.5.2 🙂 I understood everything, it's clear to me 🙂 thanks for the "HELP"
if u dont appreciate my help then fuck off lmao
u are running an outdated version of the pope 🙂
m8 they told u to download the expansion here
Are u fucking with me or?
🥲
Hey guys! Is there anyone here that knows why my Math expressions aren't working properly? I want to get rid of the decimals so the input shoots out 7 instead of 7.000 as an example. I've tried %math_1+1[precision:0]% but that just shoots out the raw input, and %math.underscore.[precision:0]_1+1%, does nothing instead and still displays the numbers as 7.000
[precision:0] was changed in the latest version of the math expansion
%math_0:_1+1%
its like this now
I think
so 0: is the precision
Thank you so much! My hair was starting to fall out because of this 🤯
Sorry, I used the wrong Placeholder.. Everything works fine! 😄
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
no idea what's causing it, but I recognise it
looks like something's tried to (I'm guessing) unzip some data that's malformed, and Netty's just gone https://tenor.com/view/tracey-morgan-no-hell-no-gif-11585244
😂
Could be a datapack maybe?
Are you still available for that PlayerEquipmentPacket?
I may really need to solve that issue, seems impossible..
When i try to use placeholder "%player_name%" it doesnt work
@pulsar halo Do you have the Player expansion for papi installed?
If not. papi ecloud download Player then papi reload and the placeholder should start working.
Hey, What is the placeholder for how many unique players have joined my server
I can't seem to find it
%server_unique_joins%
Oh sick awesome
Can someone help me, super important and my menus are breaking
the operators like >= in deluxemenus requirements
they max out and stop working at java interval limit
I think there isn't but i'll ask anyways. Is there a placeholder from player expansion that returns if player is shifting/sneaking?
Hi, in my plugin i want to make a command that display players list in each world
for this, i want to replace the %world% with the multiverse alias
but the methode setPlaceholders need a player in parameter, but certain of my worlds are empty (no players online) so how can i get the alias ?
my actual code :
Bukkit.getWorlds().forEach(world -> {
String worldAl = PlaceholderAPI.setPlaceholders(player, "%multiverse_world_alias%");
String players = StringUtil.seperatedList((List<String>) world.getPlayers().stream().map(OfflinePlayer::getName).collect(Collectors.toList()));
player.sendMessage(StringUtil.placeholder(listItem, new StringPlaceholder("%world%", worldAl), new StringPlaceholder("%players%", players)));
});
/papi parse me %Advancements_completedAmount_<player>%
Help ** player ** not working
Please mention me if anwser, i dont have notifications
are you using CraftingStore on bungee or on spigot?
on bungee
I can bet you money that PAPI doesn't run on bungee
well the spigot release at least
unless you have some custom bridge
by itself papi doesn't run on bungee
right but I can't check what plugins you have where.
if you go in your FTP in bungee/plugins
is PlaceholderAPI.jar in there?
you can actually just use null
well you see. you have a bridge
and as far as I know CraftingStore doesn't have a bridge
from bungee to spigot
ohh well the craftingstore just sends the custom commands to selected server where the plugin is held
so i guess it`s not even using bungee
the craftingstore itself
nope
or on backend?
well that's what I asked at first. you probably understood wrong. if you have CraftingStore on your backend then yeah it should work
hmmm
and both plugins are runing? if you go on the server where /papi parse me %craftingstore_donator% doesn't work and do /plugins it shows both plugins green (working) ?
well
whenever i do /papi parse me %craftingstore_donator% it just send blank in the chat
i had 3 donors
ohhh
but not on this server tho
so, it should work when someone donates?
yeah
if it didn't work
it would've just returned back the same placeholder
so exactly %craftingstore_donator%
not an empty string
oh, i've write null but i didnt compile because i was thinking that thats giving me a bug, thanks 😉
@umbral wren,
Please respect the rules, be patient and don't ping staff members!
sry ping 😢
Not working, even with null (world alias is not visible)
Bukkit.getWorlds().forEach(world -> {
String worldAl = PlaceholderAPI.setPlaceholders(null, "%multiverse_world_alias%");
String players = StringUtil.seperatedList(world.getPlayers().stream().map(OfflinePlayer::getName).collect(Collectors.toList()));
player.sendMessage(StringUtil.placeholder(listItem, new StringPlaceholder("%world%", worldAl), new StringPlaceholder("%players%", players)));
});
config.yml
list:
header: '&3Worlds&7:'
item: '&7- &e%world%&7: &f%players%'
Pretty sure it uses the world at player's location @umbral wren just use the multiverse api
Otherwise how would it know what to display
i'm using multiverse api, but how to display it like i want
Papi placeholders are not what I meant by "multiverse api"
is there a public multiverse api ?
Google it
i'll check, thanks
where do i get placeholderapi's api
thank you 😄
hi
Progress
Thank you
Hi, so i just imported the api for placeholderapi and it still isnt detecting it. here is what i did
mavenCentral()
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
compileOnly 'me.clip:placeholderapi:2.10.9'
}```
nvm fixed
forgot to add it to library
would it be possible to take in any sort of identifier from player?
so %bosstimer_[bossname]%
or would I personally have to register them?
In what context?
I have problem, I have correctly installed vault but this time the expansion is installed well in the folder yet it does not work
none of the placeholder from the expansion work or only some?
Only Vault does not work
I mean none of the vault placeholders work? Like have you tested all of them?
If like I just said they all work except Vault^^^
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
im having an issue with my luckperms and deluxe chat not showing my prefixes, they were working last night and for some reason no longer work. can anyone help me out with it?
#spigot-linking please. thank you
can you do /papi ecloud download Vault then /papi reload ?
Hastebin does not work:
[22:24:54] [Server thread/INFO]: T3scioR_ issued server command: /papi ecloud download Vault [22:24:54] [placeholderapi-io-#0/INFO]: [PlaceholderAPI] Fetching available expansion information... [22:24:56] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 5012ms or 100 ticks behind [22:24:58] [Server thread/INFO]: T3scioR_ issued server command: /papi reload [22:24:58] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [22:24:58] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information... [22:24:59] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: player
and it didn't say it registered the vault one?
do /papi ecloud list installed see if Vault is there
There is only the placeholder Player but not Vault
ok can you go to plugins/PlaceholderAPI/expansions and delete any jars from there related to Vault?
?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.
then do this ^
It still doesn't work, maybe I'll try to reinstall Vault
hmm idk if its anything to do with Vault. it clearly say it loads but for some reason the Vault expansion isn't loading
what PAPI version do you have?
btw after installing it there have you done /papi relaod?
you have to rload as well
also maybe even try a server restart
do you guys know any tutorial on how to make an api for plugins?
im new to api 😅
I have the latest version of Papi, 2.10.9 and precisely yes I did / papi reload and I restarted too
@storm sorrel,
Please respect the rules, be patient and don't ping staff members!
Hey, no idea if this is the right place to ask this, but is it possible to show per "track" via a placeholder in which group you are in that track
(LuckPerms)
Hi, does I need a correct java version, to javascript works ? I tried to add a placeholder javascript, but when I reload, the console says "[PAPI] [Javascript-Expansion] 0 script loaded!"
Im asking this, because when I try the same placeholders in a machine with java 8 works, but with java 15, not.
hi, what's the link to the latest dev version?
nevermind i found it, it's https://ci.extendedclip.com/job/PlaceholderAPI/ for anyone else who is wondering
@worn canopy Nashorn engine was deprecated and has been removed in java 15, so that's why
Are there any replacements for nashorn, or is everything gonna just switch to groovy?
I did a DeluxeMenus release using Rhino when Java 15 first came out and that seemed to have gone decently.
Whats rhyno?
@lilac oxide,
Please respect the rules, be patient and don't ping staff members!
Rhino is a JavaScript engine written fully in Java and managed by the Mozilla Foundation as open source software. It is separate from the SpiderMonkey engine, which is also developed by Mozilla, but written in C++ and used in Mozilla Firefox.
Yeah
Oh, thanks for the help.
I was kinda curious if the checkitem expansion supports HeadDatabase skulls? If so how would I be able to check if a user has a specific skull?
I know you can define a hdb material in shopguiplus with hdb-number but is this also how it works for the checkitem expansion?
figured it out, managed to get it to work with the modifier namequal
Is the only way of actually removing items /papi parse or is there some other way to do this?
checkitem can remove items.
not just papi parse
anywhere/anytime the placeholder is parsed
deluxemenus click commands for example
yeah i think i get that part, but how do you make it so it doesn't parse, so the result isn't shown in console
wym?
If you run the parse command via Console, it will return the result to the console. If you run it as a Player, it will not show the result in the console.
Can someone help me do a custom return if value is empty?
with js?
for example %townyadvanced_town% returns nothing if player isnt a town
no just ingame I remember there being a way to do it I forgot
Id like it to return None
yeah with js
Add a space to the chat format if there's a tag
var tag = "%deluxetags_tag%";
function tagFormat() {
return tag === "" ? "" : " " + tag;
}
tagFormat();
nope
this is the code tho ^
just change the value
to whatever your placeholder is
and the return
where do I put it
so basically
is there a js file in config
var placeholder = "%placeholder%"
function f() {
return placeholder === "" ? "WHAT TO RETURN IF IS EMPTY" : "WHAT TO RETURN IF ITS NOT EMPTY";
}
f();```
will give link
to js wiki
thx ❤️
hey can you help me out with doubles
var placeholders = "%townyadvanced_town_balance%"
function f() {
return placeholders === "" ? "N/A" : placeholders;
}
f();
that doesnt work %townyadvanced_town_balance% returns $234.00 for example
I assume it doesnt want to work because its not a string
because the exact same function works perfectly with town name just not town balance
@silk quail,
Please respect the rules, be patient and don't ping staff members!
@silk quail,
Please respect the rules, be patient and don't ping staff members!
@silk quail,
Please respect the rules, be patient and don't ping staff members!
how do i make custom placeholders with PAPI config
You can't with PAPI config but you can use the JavaScript expansion if you want and know a bit of JavaScript. You can learn how to use the expansion here: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
oh I missed your message. It should work because placeholders is clearly a string not a number. you can try changing the === to only 2 ==
how to make N/A placeholders show as N/A on scoreboards or holographic displays
javascript expansion.
Hello there is a way to modify the yes that comes out on %essentials_kit_is_available_<kitname>% with deluxemenu
Link to jsk expansion
above
here
ok thanks but I can't manage to make the script
var placeholder = "essentials_kit_is_available_joueur";
var hasKit = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");
function hasKit(){
if(hasKit == "yes"){
return "&aTrue";
}
return "&cFalse";
}
hasKit();
and in the lore I put
lore:
- "Kit Joueur"
- "%javascript_example%"
and what does it say in lore?
What is wrong? [PlaceholderAPI Plugin]
java.lang.RuntimeException: Essentials API is called before Essentials is loaded.
at com.earth2me.essentials.api.Economy.getUserByName(Economy.java:65) ~[?:?]
at com.earth2me.essentials.api.Economy.getMoneyExact(Economy.java:128) ~[?:?]
at com.earth2me.essentials.api.Economy.getMoney(Economy.java:110) ~[?:?]
at net.milkbowl.vault.economy.plugins.Economy_Essentials.getBalance(Economy_Essentials.java:79) ~[?:?]
at net.milkbowl.vault.economy.AbstractEconomy.getBalance(AbstractEconomy.java:22) ~[?:?]
at com.extendedclip.papi.expansion.vault.VaultEcoHook.getBalance(VaultEcoHook.java:223) ~[?:?]
at com.extendedclip.papi.expansion.vault.BalTopTask.run(BalTopTask.java:52) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.5.jar:git-Paper-455]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.5.jar:git-Paper-455]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Paper-455]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]```
Essentials API is called before Essentials is loaded.
make sure you have the plugins: Vault and EssentialsX installed and they both work
How do I fix that then?
They do
well then EssentialsX is loaded to late
console error
[17:12:25 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'example':
TypeError: placeholder is not a function in <eval> at line number 10
what? it says at line 10 you tried to call placeholder(); which is not a function.
How do I do it?
you don't.
the code you sent me
is not the code you have in example.yml
according to the error at least
have you done /papi reload
just to make sure it uses the last code you've made?
Hello,
I have a question.
I am currently working on a dividing my MC server into multiple mini-servers to spread out load more effectively.
I am currently trying to figure out if it's possible to do PAPI lookups between servers.
For this use case, I'd like to run DragonSlayer plugin on a single server, then have the user scoreboards displaying the next respawn time regardless of what server instance they are currently logged into
There are some APIs that say you could ask for placeholders from other servers. I can give you link if you want
but this is not possible with just PAPI.
here https://www.spigotmc.org/resources/79900/ idk how good it is
I just know it exists
yeah, I have been hunting for something that elevates them into Bungee
btw those reviews are very misleading. They thought its a plugin they can just download but its not. its an API
yeah, so I would need a plugin to interact with that API then?
sorry if i'm asking dumb questions
yeah basically you'll need a plugin that uses the API.
thanks ❤️ 😉
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
[19:10:59 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.10.10-DEV-122 generated an exception while executing task 4903
java.lang.NullPointerException: null
Can you show the full error? (Including the spam)
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
• HelpChat Paste - Usage
• Hastebin
the spam is more useful than you think 😉
That's all that showed ?
Dang
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.
and when does this occur? @long crater
Seemed to occur after a vote and someone either got points or balance via vault and a holographic leaderboard updated
what expansions do you have?
- Envoys dotrar Y 3.0.0
- Server clip Y 2.4.0
- LuckPerms luck Y 5.0-R2
- Parkour steve4744 Y 6.3
- GriefPrevention pixar02 Y 1.5.2
- Vault clip Y 1.7.0
- Statz ironic_8b49 Y 1.6.2
- Player clip Y 1.7.2
- Statistic clip Y 2.0.0
- AutoRank clip Y 1.1.1
- Essentials clip Y 1.2.4
and you're 100% sure nothing else was shown? can you maybe send the log just in case you missed it?
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
send this
I'll reply with it when I get a second
;-;
@long crater If you are running latest versions of Statz and Autorank the expansions are not needed
that don't make sense, stop server delete the expansions and start server
I know having my expansion and latest Statz you will get errors in Papi
I have spigot version.
Can someone help me with deluxemenus requirements
?
The javascript numbers are limited to the java integer limit
like if i wanna do %tokens_balance% >= 1000
if tokens is over the limit, it does not work
how many tokens do you have?!
some people have like 10B+
how are they formatted as well
hmm maybe parse it as a long? i don't even know if there's long in javascript lmao
