#placeholder-api
1 messages ยท Page 79 of 1
Anyways, that's not the point, if you want to get the amount of online players from a server use %server_online%, also, to use placeholderapi placeholders on holohraphic displays you need holographics extension.
Stop PM for help and do what I said.
I don't want the amount of a server? I just want to amount of 2 worlds combined inside one of my bungee servers
and yes i have holographic extension
%statistic_kill_entity:monsters% I'm trying to figureo ut the place holder for mob kills, this is what I have but it isn't working. Any help would be great!
There isn't an entity thats called monster
Check the entity types here https://aboodyy.net/spigot-api/javadocs/1.12.2/org/bukkit/entity/EntityType.html
ty
np ๐
How can I parse a placeholder without colourcodes using a JS pholder?
I.e I want it to print colourcodes
%placeholder_a% returns "&a1&b2&c3"
and i want %javascript_placeholder_a% to return
You can't..
can i create my placeholders with placeholder api with bungeecord plugin?
Not sure how extensively we support BungeeCord plugins in v2. In v3, they will be definitely supported!
bungeecord api doesn't have a Player interface. it has ProxiedPlayer
Correct, so then the answer right now is no. V3 will support it for the most part.
It's still in the planning / development stage.
thx vm
Yup!
Can I return a relative placeholder if the text is using a relative one and a normal placeholder if the text is using a normal one?
For example: %player_name% %player_is_friend%
The first one is a normal placeholder, it only takes the player, but the other one is relative, it changes based on the friendship between a given player and a loop-player, for example.
I'm working on a chat plugin and the chat message is sent to every player, looping each one, I wish I could use relative placeholders passing the player who sent the message and the looped player to the function. Something like that.
@peak linden
Please be patient and don't ping helpful or staff members!
I am getting this error any suggestions? https://pastebin.com/4r1V302P
Server version: spigot 1.14.4
I don't have any expansion.... I've: bentobox, bskyblock and level. Those are not in the expanison folder inside the papi plugin
Hi, does anyone know if there is a placeholder that shows deluxemenus the information of the item in a user's hand?
What kind of informations?
U can get the item's material, durability/data, display name and an enchantment level
https://helpch.at/placeholders#player
@plucky bluff ^
there is no command for used MySQLTokens?
If someone here has too much time, this plugin hasn't been updated in a while but people still actively use it: https://www.spigotmc.org/resources/rogueparkour-random-generated-parkour.26563/
Would be interesting to have a placeholder for it to show a player's score.
It's very easy to integrate
Should take 5 minutes maximum, there's already an easy way to get the score
hi somesone can help me with deluxemenu?
i crated this gui
but it give this error
[18:49:26 WARN]: [DeluxeMenus] Requirement type at path: items.0.left_click_requirement.requirements.soldi is not a valid requirement type!
[18:49:26 WARN]: [DeluxeMenus] Requirement type at path: items.1.left_click_requirement.requirements.anything_here is not a valid requirement type!
Anyone know why this isn't working? %progress_bar_{math_$villagedefense_exp$/$villagedefense_exp_to_next_level$*100}%
because you are using $$ instead of {}
But it says this on github Added support to use placeholder in placeholder inside of progress placeholder using $(p)$ + v1.6
hi
Hello
Will you do me a favor
Depends on what it is
placeholderapi?
Head over to #spigot-linking
Dice_abc ^
Head over to #spigot-linking and after you've linked your spigot, you will be offered support
@balmy plume its $(placeholder)$ and not $placeholder$ iirc
ah
so %progress_bar_{math_($villagedefense_exp$)/($villagedefense_exp_to_next_level$)*100}%?
wait no
no $(villagedefense_exp)$
%progress_bar_{math_$(villagedefense_exp)$/$(villagedefense_exp_to_next_level)$*100}%
Yeah
seems fine
Awesome! np ๐
Spigot Account Linked!
Your Spigot account has been linked successfully!
How will I be helped?
Go ask in the channel regarding the issue
for rankup
How would I use %rankup_requirement_<requirement>[_<left/percent_left/percent_done>]%?
%rankup_requirement_autorank_time_of_player_left% doesn't work.
Please @austere hawk with an answer.
How do I convert a boolean value to PAPI's yes/no string in my extension?
I mean, the value set in the config
if it's yes/no, set it to yes/no
true/false
y/n
on/off
etc
there should be a PlaceholderAPI.booleanTrue() and booleanFalse() I believe
oops, PlaceholderAPIPlugin
source code feels like a better place to check ๐
yeah!
๐
=papi autorank
-papi autorank
was autorank removed from the expansions
-papi autorank
-papi vault
Papi is bae
papi 3 will be more bae
Indeed
Papi 4 tho, that shit gonna be fire
would be nice if there was a way to see what expansion needs updating instead of having to go through /papi ecloud list 1-16 https://pastebin.com/qrf57De0 ๐
ur still having to do 1 extra command xd
thats too many
๐
also /papi list doesn't show updates in orange
It says what it shows them in
wut
Never heard about that one
If u have any suggestions feel free to open an issue for them in papi repo in GitHub
/papi update updates all expansions at once ๐
Nah dont think that will be added
Ik
Iirc they have talked about that while ago
Well i go off for tonight.
Papi ecloud list installed
Spigot version?
Yes, it works, thanks! ๐
Awesome!
I want to display a backwards type of count-down where it shows how long the current season of my server has been started. So basically I type a date and it just counts up. IS there a way to do this with PAPI?
Is there a placeholder for a timer/countdown? Likke if I wanted to have it count down 5 days
https://helpch.at/placeholders#server check the countdown placeholder
@simple fulcrum check this? https://www.spigotmc.org/wiki/placeholderapi-javascript-expansion-scripts/#difference-between-2-dates
I am confused are there any more countdown examples
%server_countdown_<SimpleDateFormat>_<time>%
e.g. %server_countdown_dd.MM.yyyy_01.01.2020%```
<time> is the date and time for the countdown. It needs to match the <SimpleDateTime>
You can use the following placeholders for the SimpleDateFormat (They are case-sensitive):
d for day
M for month
y for year
s for seconds
m for minutes
H for hours
The output of the SimpleDateTime will look different, depending on how many letters you use.
Example: MM turns into 01 while MMM turns into Jan (If the month is January).
More info can be found here: http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
@hot crypt ^
Set the year as well
I did I set 2019
send the whole placeholder u used pls
@hot crypt ^
cuz this is working fine for me %server_countdown_MM/dd/yyyy_10/31/2019%
How cani do ifoxcp
how to use mysql placeholder ?
here we go again, get ready for me
so
// Test Function
var permission = "%essentials_has_kit_test%";
var available = "%essentials_kit_is_available_test%";
var untilAvailable = "%essentials_kit_time_until_available_test%";
function getTest() {
if (permission === "no") return "No Perm\nTest";
if (available === "no") return "Not Available\nTest";
return "Available\nTest";
}
getTest();
I've got that setup and when I do %javascript_test% it works, but it doesn't add a line with the \n on the lore, soo. How would I go about adding a new line with the text with \n? Or am I supposed to loop through it and add?
linebreaks doesnt work on deluxemenus
nope
hello, tiny question, when i stop my server i get Unregistered placeholder expansion: spleefx (its a separate jar file, similar to the ones downloaded by the ecloud). here's my expansion: https://pastebin.com/2MrzSG4N
tag me if you reply pls thanks
Download another expansion and test, I think zed is right.
You sure?
I'm quite sure it sends when it's registered to another jar.
Just looked it up.
What expansion did you download?
Welp, I just tried it out with my own plugin as well as mcMMO.
Did it register the expansion on enable?
It does unregister.
it didnt print the "successfully registered expansion: spleefx"
What does your onEnable and onDisable look like?
Could you send me that then?
I'm not sure, but unregistering might be PAPI's thing. Because iirc you can use unregister().
PAPI's script"handler" is honestly the best I've seen so far.
I think I'm in love.
i can't download vault expansion for placeholderapi
What does it say?
So im trying to make my own placeholders but idk what im doing wrong. @ me if you can help
?asktoask
Hello, what placeholder shows balance/money?
And is there any placeholder that shows " Chunk " info.
And whats player KDR placeholders?
head over to all of the placeholders and check
hi, how can i turn %statistic_walk_one_cm% to meters?
maybe theres another placeholder, if not ull have to use math expansion
use math
and how can i do this with math? never used it..
%math_{statistic_walk_one_cm}/100[precision:0]%
ty man
its built into the plugin i think


When using the command it shows %battlelevels_level%
is the plugin enabled?
check /pl, are they red or green?
green
any errors in console?
no
I want to make a gui for players to add their friends into their region with mycommand GUI, can I make a list of all players in the server? Like 1 block in the GUI corresponds to 1 player. I also couldn't find a placeholder for the region the player is in/the region the player owns.
unlikely
rip
i just want it to show bedrock if i dont have permission to use that kit and like a sword if i do?
Is there a placeholder that shows the list of online players (for ex Notch, Dinnerbone, jeb_ and etc.) instead of just numbers? I can't seem to find it.
There is not
That's new 
I'd like if it gets added.
I can fiddle around
It should be added in the Pinger expansion.
I believe it already has some similar placeholders.
I'm fairly new to java, sorry if I make mistakes.
dang last update was 2 years ago :p
Is there a wiki on how to make your own expansions or convert existing placeholders from our own plugins to placeholderapi?
There is yes
Can I get a link please?
pinger is os?
Yes
Okay thanks.
So... whenever I do /papi ecloud download Vault
It says no expansions available. Help?
is the ecloud enabled in ur papi's config?
%rel_factions_relation_color% doesn't output anything
No color codes
Just an empty string
Any idea why?
Wdym?
pretty sure it does
Yeah it should do
%leaderheads_name_<placeholderwithout%%>_<daily|weekly|monthly>_<rank>%
then %leaderheads_value_<placeholderwithout%%>_<daily|weekly|monthly>_<rank>% to display the value of the placeholder for this person
@bronze bison yes it is
@fierce otter
Please be patient and don't ping helpful or staff members!
How do you know which expansions are outdated?
/papi list
Are you on latest version of papi?
Yeah I am
2.10.4
Not sure if this is how it works but maybe one of the plugins I have needs updating for its own expansion to be updated?
๐คทโโ๏ธ
@velvet forge /papi ecloud list installed or something like that
@balmy plume add any text after the placeholder so u know which color it returned
?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.
@fierce otter its probably this then ^
@bronze bison It does nothing
@balmy plume
Please be patient and don't ping helpful or staff members!
Does anyone have a clue why %leaderheads_player_statistic_player_kills_1% returns empty?
Everything returns empty when using %leaderheads_player_(type)_#%
@balmy plume wdym it does nothing? The relationship's color could be white
I've tested it with a colorcode in front of the placeholder
Send what u have tested please
/papi parserel SquareYT SquareYT %factions_relation_color%Hello
and
/papi parserel SquareYT SquareYT &6%factions_relation_color%Hello
wait no
its rel_
Well there's no relationship between u and u :p
So its probably why its retuning it with white color
it returns no color though
wdym?
The placeholder wont return the color code
It will translate it to color (the &f will be removed)
Just tested it with a friend
returned nothing aswell
%rel_factions_relation% works though
Whats ur faction plugin?
Anyone?
Anyone what?
Everything returns empty when using %leaderheads_player_(type)_#%
For some odd reason.
Mcore
@balmy plume
Please be patient and don't ping helpful or staff members!
Oh nvm I got it to work
hi, so.. i want to use mvdw placeholder api for some things because papi doesn't have it for ex. stat_mkills that gives you the number of mobs killed
and i downloaded the mvdw expansion
and i have the plugin
and i do /papi reload
and when i open the menu
it doesn't show anything
%mvdw_stat_mkills% ?
do u have a mvdw premium plugin?
uh no??
it only works when 1 is installed im pretty sure
That's true
it literally says it in bold at the top of plugin page
^
so this is the first place you go for help instead of checking any of the plugin's possible resources provided to help you?
well is there another way of getting the players/mobs killed?
well i was expecting it to be like papi
there we go
maybe it's in player
or mob kills
-player
nop
bro
%statistic_kill_entity:<mob>,<mob2>%
%statistic_player_kills%
You said you looked at it already?
๐
it's definitely on there
you list every mob
ya
at least you can do that now
you used to have to use javascript to do it
"back in my day"
What are you 100 years old 
thonk thonk thonk
it was probably earlier this year
no spaces
Ey yo
Wrong language.
Is it possible to get factionsuuid, land value?
Because %factionsuuid_faction_land_value% isn't a placeholder.
check factions uuid api and make your own?
if its not a placeholder yet it says it is then contact the dev?
Yeah, if you have found that placeholder(s) somewhere and it doesnt work, try contacting them. FactionsUUID doesnt have an expansion.
An external one I meant.
oh, yeah
it is a placeholder, the dev just needs to fix it
at least it's on our github
and their wiki
Hello, I'm currently dealing with an issue where first connected players have their prefix not working, when they disconnect/reconnect, they work again
https://i.imgur.com/Zhh0jXw.png
in this case, the %guilds_prefix% turns to nothing as it should, and %parangon_level% to 0
(ping me if you can help me, so I can answer right away)
@twin arch can u send ur format line in config?
If its dchat, head over to #spigot-linking please
It's CMI chat
Ah, ok then
If the placeholder isn't working, it should return it with the %%
But in the image u sent, there's no %%
Here is the format in the config ```GeneralFormat: '&7%guilds_prefix% &9%parangon_level% &f{displayName} &7> &r{message}'`
contact CMI's developer
np, gl ๐
function factionName(){
var faction = "%place your placeholder here%";
return faction == "" ? "None" : faction;
}
factionName();```
This should work
but how am i going to paste it in a scoreboard
Google "PlaceholderAPI Javascript"
wasnt there a 1 line code that checks if it returns "", make it None
i dont understand
doesnt work
hmm maybe === instead of ==?
nope
What placeholder do you use?
%factionsuuid_faction_name%
It should work, idk then.
:/
var faction = "%factionsuuid_faction_name%";
function getFaction() {
if (faction === "") return "None";
return faction;
}
getFaction()
If you don't know how to setup a JavaScript placeholder, check the wiki:
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
then you use the js placeholder that you created in your scoreboard instead of fuuid's
@wraith berry ^
thanks
No problem ๐
it doesnt work, displays as normal text (%javascript_faction%)
also i get no output when using /papijsp
got it to work
thanks so much
Great! Glad to help ๐
/papijsp doesn't work currently, use /papi reload for reloading
for a PAPI tie it, is there some code I can reference to make a PAPI placeholder via bungeecord for a spigot server tie in (for example %example% would be a value from bungeecord on a spigot scoreboard)
Cause I saw the example on the API page, but I would not work with bungeecord as I can't get a Player object I have ProxiedPlayer which is the closest I can get
Youโd need to make the placeholder expansion spigot side
The idea would be to use plugib messaging from bungee
GUYS! AnimatedMenu PlaceHolders Don't work why!?
Nice
hello! i have a question about luckperms on featherboard. when i use {placeholderapi_luckperms_prefix} it shows nothing. i installed the ecloud vault, player and luckperms placeholders.
mvdwPAPI installed?
what does /papi parse me %luckperms_prefix% say?
Most placeholders work as %%
it shows nothing, not even the placeholder
do u have a prefix?
Yes
im stupid
i fixed it
i did set the prefix only in my skyblock server
sorry for taking your time ๐
๐
I have 2 identical placeholder classes
for some reason only 1 works
my Kills placeholder doesn't work, but my "stars" placeholder does
the only difference is that stars is registered first
#development and show the code?
hi, so i used this to get all mobs i killed but it doesn't work.. tried with and without a space between the ,
I've never used that myself, but if that doesn't work or exist, you can use javascript to calculate them yourself I bet.
well 1. it exists 2. idk how to do it using js
%statistic_kill_entity:<mob>,<mob2>%
Listed on the link I sent above @mental night
Were the Buycraft/Tebex placeholders removed?
Not sure we ever had any?
Odd, I remember something about Buycraft top donors or something? Maybe not.. Thanks ๐
@balmy marten When I will download a placeholder from the cloud, he gives this error: No cloud expansions are available at this time
How can I fix this?
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.
@viral pier
OK, thx!
oof
%statistic_kill_entity:Chicken%
is also not working
tried with everything Caps
everything = chicken
also doesn't work
mc version?
1.8.8
download v 1.7.0
still doesn't work
Because 1.7 uses a different format, can't find it rn.
OOF
_ instead of :
oof works
can i do like
%statistic_kill_entity_CHICKEN_PIG%
so that i get both
or do i need to use math?
there is a placeholder for total mob kills
well didn't find it on statistic
only on mvdw
but will search a little bit more
only find
%mobhunting_total_kills%
and
%statz_mobs_killed%
there is a placeholder for total kills and player kills, use the math expansion to substract the player kills from total kills.
%math_{statistic_total_kills}-{statistic_player_kills}% like this?
never used math
so..
yes
i get this error: http://prntscr.com/pqmjqa
where do you use this placeholder?
dm
requirements or?
just lore
hmm
wait let me parse the total kills one
oof that one doesn't work
yep
it doesn't exist a total
Yea, idk then.
@final shadow is there any way to access papi methods using a js placeholder?
Yeah
Oh well 
Using this I get an error
var test = Expansion.evaluate(BukkitPlayer, "{server_online}");
return test;```
https://paste.helpch.at/gukemenaqa
That wonโt work
check my PR :sad:
Thanks for telling me, now fix it, ty
tried var papi = Java.type("me.clip.placeholderapi.PlaceholderAPI");
what happens
Sec, closed the server
thats in my PR smh
I think
afaik it wont work cuz the class is private?
and https://github.com/PlaceholderAPI/Javascript-Expansion/pull/8
https://paste.helpch.at/decazutoyo
var papi = Java.type("me.clip.placeholderapi.PlaceholderAPI");
var test = papi.setPlaceholders(BukkitPlayer, "%server_online%");
return test;```
What that do
That's the error and the code used
can you use placeholder api on bungee?
need an answer quick if anyone knows
:)
so i can have the placeholders in the motd
There's some plugins like ServerList+ that have placeholders, papi itself doesnt
hello, i'm trying to make something which sets the text of my hologram based on if the envoy is running or not, heres my code
function hasEnvoyStarted() {
var paragraph = null;
if (!%crazyenvoy_time_left%.toString().includes("Not Running")) {
var paragraph: "the envoy has started and is ending in " + %crazyenvoy_time_left%.toString() + " currently " + %crazyenvoy_crates_left%.toString() + " crates left";
} else {
var cooldown = %crazyenvoy_cooldown%.toString();
var paragraph = "the envoy is starting in " + cooldown;
}
return paragraph;
}
hasEnvoyStarted();
However for some reason im receiving a weird error: https://pastebin.com/iiNck6sJ
I'm not really familiar with javascript but it would be appreciated if someone would be able to help!
includes() isn't supported in the engine that js expansion uses
replace it with
if ("string".indexOf("g") != -1)
also, use placeholders inside "" (and remove .toString())
and this var paragraph: should be var paragraph =
@dark spoke ^
@atomic belfry https://www.spigotmc.org/resources/66616/ ?
if u want papi placeholders across bungee check this https://songoda.com/marketplace/product/141
๐
aBooDyy im receiving a new type of error now
function hasEnvoyStarted() {
var paragraph = null;
// if not running in string
if (%crazyenvoy_time_left%.toString().indexOf("Not Running") != -1) {
var paragraph = "the envoy has started and is ending in %crazyenvoy_time_left% and there are currently %crazyenvoy_crates_left% crates left";
} else {
var paragraph = "the envoy is starting in %crazyenvoy_cooldown%";
}
return paragraph;
}
hasEnvoyStarted();
Placeholders always out strings btw.
meaning?
And you probably want to use "%placeholder%".indexOf()
Also, do paragraph = .. instead of creating it again.
yea i did that
after
but im still getting this error
Expected ) but found Running
use "" for placeholders... "%placeholder here%"
the placeholders are strings and not a js variables in the expansion
so in this instance
paragraph = "the envoy is starting in %crazyenvoy_cooldown%";
i would make it be
paragraph = "the envoy is starting in "" ";
oh wait
nvm
sec
talking about the placeholder here
if (%crazyenvoy_time_left%.toString().indexOf("Not Running") != -1) {
no problem! ๐
alright and also how can i make it autoupdate? im using holographicdisplays with this
and its not moving
like the time
guess u have holographic extension right
yea
Versions 1.9.3 and below:
{r1} - 1 second refresh.
{r0.1} 0.1 second refresh
{r10} - 10 second refresh
{r5} - 5 second refresh
{r2} - 2 second refresh
Versions 1.10.0 and above:
{fastest} - 0.1 seconds.
{fast} - 0.5 seconds
{medium} - 1 seconds
{slow} - 5 seconds
{slowest} - 10 seconds.
add one of those to ur hologram
like as a placeholder?
they are placeholders, yea
np ๐
also uhh one last question, this isnt displaying the crates remaining paragraph = "&fThere are currently &a%crazyenvoy_crates_left% &rcrates left";
do you have any clue why that could be ?
try the placeholder using papi's parse command /papi parse me %the placeholder here...% and see if its working
yes, contact the developer of the plugin
&a%crazyenvoy_crates_left% &rcrates left";
whats the ; at the end
for
new line?
No?
So could that be the issue ?
thats js
is there any way to change the factionsuuid placeholders?
factionless people have this placeholder and I can't figure out how to modify it
https://i.imgur.com/VnFYdru.png
use javascript
tried that
if (name === "[-]") {
return "";
doesn't work
nor if (name === "") {
return "";
is there some hidden name for people who are factionless?
jesus
sec
var name = "%factionsuuid_faction_name%";
function js_faction_name() {
if (name != null) { return name + " ";
}
return "";
}
js_faction_name();
still getting [-]
Please use imgur to share screenshots and other images.
โข Imgur
first condition is always true Frosty
wut?
a placeholder wont be null
It'll return "" which is null
var faction = "%factionuuid_faction_name%";
function getFaction() {
if (faction === "&6[&a-&6]") return "";
return faction;
}
getFaction()
``` @hollow heart
yes, i modified it and "null" still returns it
&6[&a-&6] didn't work either, still getting [-]
Ure getting [-] or &6[&a-&6] ?
https://i.imgur.com/P9OeXLL.png
var name = "%factionsuuid_faction_name%";
function getFactionName() {
if (name === "&6[&a-&6]") {
return "";
} else {
return "%factionsuuid_faction_name%";
}
}
getFactionName();```
returns that
relation placeholder wont work there
yeah I know, that's why I left it out of the actual function
it would work if the name === "" part worked
maybe there is a hidden factionless name.. i'll look in their configs for it
Wait no, use ยง
using ยง, still getting [-]
[-]
with colors?
yeah
u tried ยง6[ยงa-ยง6] right?
If u send this, what do u get
/papi parse me %factionsuuid_faction_name%test what do u get
i am currently using ยง6[ยงa-ยง6], using '/papi parse BartyRealms %javascript_factionsname%' I get [-] still
try the command i sent please
okay I get %factionuuid_faction_name%test
if I use %factionsuuid_faction_name%test I get [-]test
yeah
Cuz the placeholder should work?
the second message I corrected it
and got [-]test
so the placeholder is returning [-] if I am factionless
already tried that frosty, and I'm currently looking through the factions files to see if I can find anything on it
found it, thank god haha
thanks for your help
Great!
Hello, I got this error on server start - https://paste.helpch.at/okonugodiz.php
PlaceholderAPI v2.10.4; Paper 1.13.2 latest build
@outer herald
Please be patient and don't ping helpful or staff members!
I can't download vault with PAPI
You would have gotten help, but as you have tagged me and cj so rudelly, that's gonna be a no from me ๐คท
@outer herald please be patient and don't ping anyone.
Do you have vault plugin?
If so, run these commands and tell us what do u get
/papi ecloud download vault
/papi reload
when i put /papi ecloud download vault say No cloud expansions are avaiable at this time
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.
already added
Wdym already added?

Needing help with placeholders in chatex for deluxe tags
@fresh trench #spigot-linking
[precision:0]
%math_{statistic_kill_entity_CHICKEN}+{statistic_kill_entity_WOLF}[precision:0]% i think
=plugin DeluxeChat
Those math placeholders are pretty cool, opens up a lot of possiblities
Can Someone Help Me?
I'm new to placeholders.
I found a placeholder How do I get it on my server?`
(For the context, @carmine marlin means a Skript placeholder that he wants to use in PlaceholderAPI, if I'm correct)
Hello. I have an issue with ecloud. Whenever I try to download the vault expansion, it does so. But it doesnt registert with Papi
Can anyone help, please?
Do you have vault? And have you reloaded papi after installing the expansion?
/papi list
it shows nothing
If it doesn't show up (and you've done everything), manually download it from the ecloud page, and place it inside the folder
lemme try that
I tried that but it says 0 placeholders registered even tho I did /papi reload
download it from there
same place
And where are you placing it?
Getting any console errors?
no console errors were reported
Frosty asked u if u have vault, he meant the plugin
Do u have vault plugin?
How does the Skript placeholder works
Everything is alright now, after restarting the server the plugin registered the vault expansion
I also have another question to ask, what placeholder can be used to display a person's group permissions?
factionsuuid placeholders is not working
@brisk coral Unknown expansion.
@sharp jay Unknown expansion.
weird
@ripe lagoon ^
i tryed that but its not working for me
im trying to use featherboard to show me faction money but it wont work
use {placeholderapi_<placeholder>}
Hey again, is there placeholde that makes the faction money fornatted to 1M instead of 1000000?
idk but maybe use math
@ripe lagoon Dont think so ask the plugin developer ๐ or you can use the math expansion like said above to make it.
Or 
^^^
if ("%essentials_has_kit_<kitname>%" === "no") return "NO";
Possible?
cuz it has <kitname>
It's possible, but won't work at all
How would I do it?
Would kitname be a variable defined somewhere?
Wut
Look my code
Used wrong placeholder
xd
Well that works tho
so the placeholder doesn't matter
But that would always return No tho..
Ofc I am ;)
This should be YES
xd
but its no
%javascript_kit_available_<kitname>%
Can I make something like that too?
I believe you can
Is there like a tutorial how? xd
@bronze bison <- This guy is the tutorial
Ye ik, not entirely suee how tho, I guess you'd need to use regex
function kit_available() {
if ("%essentials_has_kit_" + args[0] + "%" === "yes") return "&f&lYes";
else return "&f&lNo";
}
I think I got it
Piepmatz did the same
It doesnt work like that
oh
You can use a switch and an argument
Not that dynamic but works
Btw, you can use BukkitPlayer.hasPermission("essentials.kits." + args[0])
You cant use args to create placeholders but with that it should work.
Never knew you can even use args inside it
it's just a string @brisk coral
switch(args[0]) {
case "test": return method("%essentials_has_kit_test%");
}
function method(kit) {
return kit == "yes" ? "&aYes" : "&cNo";
}
I dont want to use a switch tho
I have 14 kits, so I just want it so it uses what I typed as arg
Then use bukkitplayer
gaby
you might be able to use
function kit_available() {
if ("%essentials_has_kit_" + args[0] + "%" === "yes") return "&f&lYes";
else return "&f&lNo";
}```
Already tried that
Didn't work
does it not parse the placeholder?
I just tried cj
They should support it tho
It should work, I know aboo showed me something like that a while ago
It will when clip will merge the pr
aaand no dl
i was gonna link it
@bronze bison Do you have a working DL link for https://github.com/PlaceholderAPI/Javascript-Expansion/pull/8 ?
oh hey
Yea having an argument inside of a placeholder wont work
Oof he still hasn't
Yea sad, its been 4 months
And ill fix that download when i get on my laptop
btw @mint fable, can you please check my checkitem PR if u haven't?
More info please.
Ugh, can u send ur spigot name?
/papi ecloud download player
/papi reload
``` run this
i just reals forgot to do that opps :v, my bad
๐
hi guys
anyone can help me
i have installed placeholderapi
and when i try to download from the ecloud it says
i forgot the text xD but its related to the connection with ecloud
No cloud expansions are avaible at this time
Manually download the expansion from the ecloud, and put it inside the expansions file
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.
@drifting nimbus link fixed, https://aboodyy.net/PAPI-Expansion-Javascript.jar
Ty
@bronze bison Wdym?
@drifting nimbus
Please be patient and don't ping staff members!
Btw is it possible to use args in placeholders right away now?
Hey, I had a quick question. I am having difficulty locating the expansion for LastLoginAPI for PAPI. Anyone know where I can find it? I checked the ecloud website, but no luck. ๐ฆ
It might be built in
Have you tried using the placeholders with /papi parse me %lastloginapi_name% ?
ya it's built in, just checked the github
Trying to use %last_login_date% as a placeholder, yet, it shows up as %last_login_date% in-game.
%lastloginapi_name% does properly show, however.
well
did you use %last_login_date% or %lastloginapi_last_login_date% ?
Did that work @vernal meteor ?
Sorry, I am back now.
No, unfortunately it did not work.
Shows up as "%lastloginapi_last_login_date%" in-game as well.
I tried using the placeholders from:
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#lastloginapi
No luck.
via /papi parse correct?
Use this page: https://alessiodp.com/docs/lastloginapi/placeholders
you might HAVE to format it in the config
Yes, I did /papi parse me. Shows up as blank in the chat. In the tablist plugin, it shows up as "%lastloginapi_last_login_date%".
Let me read that link. One moment.
oh it shows up as blank?
prob needs to be configured for sure
does your tablist plugin work with ANY placeholders?
plz no
=paste
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
^
Oh, whoops.
Also, I did notice that they have their own discord
so they could probably help you a lot more over there
LastLoginAPI?
Yes, but I thought it would have been more of a PlaceholderAPI issue since the placeholders are not working.
Anyway, thank you. Good-bye.
If other placeholders work, it means it's usually the plugin/expansion's fault
@bold marlin you can use that in combination with the parseother expansion
thanks
@drifting nimbus the method to parse the placeholders,
But nvm, this is is
var p = Placeholder.setPAPIPlaceholder(BukkitPlayer, "ur placeholder here without %% and u can add args[#]");
No problem ๐
@bronze bison the p is like placeholder right? Just to be sure
thats just a variable named p
An example
Can be whatever u want
Has nothing to do with the method
Help please.
Nickname and rank are not displayed.
Could you give more details @wheat tusk
@bronze bison - http://prntscr.com/pt3tfy
@drifting nimbus
Please be patient and don't ping staff members!
Works good, thanks โค
๐ ๐
whenever i put a % to show a stat, i cant use any placeholders later in the line, any fix suggestions?
example: - '&7your speed by &f+3% Speed&7 to &f+%objective_score_SpeedNextLevel%%&7.' i only get problems on this line, the problem is the objective_score_SpeedNextLevel% part is shown as plain text not the actual value. Without the % in +3% Speed the placeholder works fine. I could take it off here but other lines would be weird without their %
Objective placeholders are broken ig
yeah the line is in a config file
also i tried replacing the objective placeholder with placeholders of vault, essentials, voteparty and other things to test a placeholder problem, nothing works but without the % in +3% it all works
That because its getting the first couple of %%
Id say use a JavaScript placeholder that returns the percentage symbol %, or contact the plugin to allow {} or something else
When i set {skript:team::%uuid%} in the Featherboard config
Then come that
'UPDATE*
And i have the skript placeholder on
Can anyone help me
Does papi have a reload event or something I can use to make my placeholders work after /papi reload?
Add the persist method
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#internal-class
@hollow aurora ^
nice, thanks
oof he then left
oof
Can I disable %player_world% on some specific worlds?
Or manipulate a result, player is in the world [VOID] more would be [Spawn]
use javascript?
var world = "%player_world%";
function getWorld() {
if (world === "a world name") return "name";
if (world=== "another world name") return "name2";
if (world=== "another world name 2") return "name3";
return world;
}
getWorld();
```?
so with this js placeholder, if the placeholder %player_world% is a world name, it will return name
u can add as many as u want, and u can remove if u dont want all of that
check js wiki if you dont know how to setup a js placeholder
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
thank you very much
np ๐
@bronze bison https://pastebin.com/2WERTJfY
dont use /papijsp commands
/papi reload then use the js placeholder instead of %player_world%
#spigot-linking @river ridge
How do i do if i want to show a specific server players on a scorbord?
because on placeholders it says you can
@carmine veldt
Don't tag admins.
And what do you mean by "specific server players"? as in the amount of players on the specific server? if so use the bungee placeholders
ik but how
hi guys, can someone help me with a custom placeholder that iยดve downloaded
i mean its not working and i dont know why
DM me for sending screenshots
I mean, you need help ;0
Maybe can u help me :, 3 ?
Nope
Dont think so as I dont see a point
Its super simple man with commands
- /papi ecloud download (X)
Each expansions is a jar file after you install one. By installing all expansions, means you're just wasting storage for nothing
^ and not all of them will work (some depends on plugins).
Such a thing wont be added.
Hello
I was wondering why I cannot load an expansion?
It says "The expansion cloud is not enabled!"
I do the command /papi ecloud download bungee
I'm using the 2.9.2
Version of PAPI
Thank you.
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.