#placeholder-api
1 messages · Page 78 of 1
My first guess would be you don't have the expansion (or have not reloaded papi after installing the expansion)
I do, and I restarted the server
And is the expansion listed in /papi list
how are you parsing the placeholders
Could it maybe be because I am setting the player as null?
(inside the core)
PlaceholderAPI.setPlaceholders(null, line);```
ye you need to actually set the player
Is that new in 2.10?
idk 🤷
This might not be the correct place to ask, and if not, by any means, redirect me to the right place, but I have been trying to make a command work and can't figure it out. Using Placeholder API and VentureChat I have been trying to make a custom command. It should be as follows: When I run the command "/pvpon" it should alias to "Command: /rg flag {worldguard_region_name} PVP allow". Sadly it seems to add a special symbol somewhere.. I have also tried to test this with the player name place holder and a region that has the exact name. Same response as in the screenshot :(. Anyone knows the solution?
I guess I can't add a screenshot, but it says the following after running the Alias. "The region name of "dawnstone" contains characters that are not allowed."
dawnstone is the exact name, and i've tried this in many regions.
@polar dragon are you running the command, or do you plan to run it thru console
if the command is to be run in console, you should add -w [worldname] flag.
as for your command, i assume venture chat does not parse papi placeholders.
for this i would recommend delxuecommands or mycommand
I'm indeed running it in game. Venturechat does parse the placeholder. Dawnstone is the correct region name, but it seems there is a hidden symbol somewhere..
if it parses the placeholders, use %%
why is this happening ?
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
@glad hemlock delete your expansions 1 by 1 until you figure out what is causing it
IS there ever gonna be a buycraftx placeholder?
i really need it for my top donators, recent donators etc
Make an expansion ¯_(ツ)_/¯
how ¯_(ツ)_/¯
I'll try thinking of something quick, I've never used the api of buycraft or placeholderapi
It seems fairly simple to use, though
@austere hawk what ver do you use?
The latest version is 12.0.2 released on May 22, 2019 14:46.
Server version..
Paper, spigot..?
Paper
thank god
hehe
@austere hawk which placeholders do you want?
for top donators %buycraft-top% 1-10
and recent donators %buycraft-recent% 1-10
1-10 means what place
so, buycraft-top-1, buycraft-top-2..?
as the command is like this
leaderheads setsign <statistic> <rank>
statistic is the placeholder
it'll be %buycraft_top_x%
oof buycraft is great.. gotta send web requests to get payments and stuff
not gonna work? :/
it's probably gonna work
😮
If you're making an expansion, might as well make it public for everyone to use (might also want to use the papi config - less confusing for other people)
Yeah, I might lol
him
phew
lol
oh dang this'll be easy
public String getString(String path, String def) {
return getPlaceholderAPI().getConfig()
.getString("expansions." + getIdentifier() + "." + path, def);
}```
Why would u need that?
for getting the buycraft token
From papi config?
If so, use this.getString()
Yeah, I know how to use it
And implements Configurable
I thought you were suggesting something else
No, thats what everyone use to get expansion's configuration from papi config
it also seems to be the simplest way
It is.
@bronze bison what's the def param?
If the given path doesn't have a value, it will use what u set in the default param
oh
if I set it as null it'll just return null, right?
How bad is this?
if (identifier.startsWith("recent_")) {
int num = Integer.parseInt(identifier.replaceAll("\\D+", ""));
if (num > 10 || num < 0) return "undefined";
ArrayList<Payment> payments = new ArrayList<Payment>(buycraftApi.getLatestPayments(num));
if (payments.size() < num) return "undefined";
return payments.get(num).getPlayerName();
}```
oh actually I should make the limit higher than 10
pretty sure it's on topic..
looks like it does the job, but id suggest returning "" instead of undefined cuz its a placeholder
Yeah, I'll do that
btw this will threw an error if the user didn't set a number
Idk about buycraft api, but is it limited to 10 only? If not, why u limited it?
I don't know, I just know that you can't get an index lower than 0
I should subtract 1 from num so it's like buycraft_recent_1 to get the latest
I just got an idea lol
recent_1_name
recent_1_currency
stuff like that
yea just check if its lower than 0, dont limit it to 10 if buycraft doesn't.
And yeah, cuz its an array
or make default currency in config
Dont suggest doing that, put the number at the end
I'll split the identifier at _ and check stuff like that
Ok then, noice
I mean yea its possible but its easier to have it at the end
And maybe better anyway?
Up to u 😄
Seems more logical to have it at the end.
Yea
Not to me, but sure
I think of it as a property
buycraft.x.thing
but yeah, I'll make it last
It really works either way. Do whatever you prefer.
I do see what you're saying though about it being the property of the object.
yeah don't mind that, I'll just make it at the end
so, if they do something invalid like buycraft_name and not set the name or something, do I return null or ""
One will return an empty string, one will return the placeholder identifier.
null will return the placeholder text u tried to parse
oh, so ig null if they entered a wrong identifier, and "" if it doesn't exist / is out of bounds
up to you, but yea id do that
switch (split[1]) {
case "playername": return payment.getPlayerName();
case "currency": return payment.getCurrency();
case "currencysymbol": return payment.getCurrencySymbol();
case "amount": return Double.toString(payment.getAmount());
case "date": return payment.getDate().toString();
case "id": return Integer.toString(payment.getId());
case "playerid": return Integer.toString(payment.getPlayerId());
}```
@trim mist is there something that gets ran when the expansion loads?
I think it's register but no clue
/**
* Attempt to register this PlaceholderExpansion
*
* @return true if this expansion is now registered with PlaceholderAPI
*/
public boolean register() {
Validate.notNull(getIdentifier(), "Placeholder identifier can not be null!");
return PlaceholderAPI.registerExpansion(this);
}```
yeah
Anyways
gonna go test now
hmm? Yea it is register method, but why would u need that?
getIdentifier() returns the expansion name (that u set and shouldnt be null and the expansion wont work without it) and it will be the same in the placeholders %<identifier>_<placeholders>%
@bronze bison I need to set the token
I can test it if you want
yeah if it works I'll give you the jar in a bit
oki
getIdentifier() wont be the token?
Ik what's the token
Im taking about this part that u sent java Validate.notNull(getIdentifier(), "Placeholder identifier can not be null!");
Ah ok
quick question when placeholderapi get a update and im download the new jar i only need to replace the jar ? or anything with the placeholder folder too ?
Most likely just the jar, unless theres a config changes (will be mentioned in the change log if theres any) ull have to delete the old folder to make it generates the new one
Currently, just replace the old jar with the new one.
Hello, please help me.
I entered "/papi ecloud download vault" but it does not work.
But the "/papi ecloud download statistic" is working
Any errors?
Alternatively you can manually download it from here https://api.extendedclip.com/expansions/vault/ and pop it in ur /plugins/PlaceholderAPI/expansions/ folder
No, it doesn’t show errors.
It is installed from the site, it still does not work, only the "statistics" work
@cinder trench do you have vault installed? (And have you reloaded papi after installing)
Yes
What to do?
Hi im using the placeholder {placeholderapi_otherplayer_health_<player>}, what do i need to put in <player> because its returning PNF (player not found)
@cinder trench What it says when you reload papi in console?
@warm topaz guess the player name?
yeah but im trying to make it so the player should be automated because it will be a different player each time in my case
u want to get the player's health?
yeah
im looking for a placeholder that shows the number of hearts specifically tho
i thought maybe i could try this placeholder cus ive already tried all of the other placeholders
so it shows 10 instead of 20
There's should be one that returns that
hmmm use math then
never used this before, but i sort of get it, could i get a bit more help with this expression?
ive typed in /papi parse me %Math_2/{player_health}% and it returns with 0.100 when im trying to get a value of 10
perhaps switch the order and divide the health by 2?
using %math_{player_health}/2%?
now featherboard doesn't want to parse it -- {placeholderapi_math[precision:1]{player_health}/2}
i see the problem
put precision:1 at the end
{placeholderapi_math_player_health/2[precision:1]}
but then if i get rid of the ones in {player_health} then it wont work cus thats Math's requirements
make a js placeholder then
yikes
yes it works in papi but it wont in featherboard
i dont think theres anything i can do about that one tbh
Just use javascript
i guess its about time i learn
@bronze bison
PlaceholderAPI configuration reloaded!
[PlaceholderAPI] Successfully registered expansion: statistic
@cinder trench
Please be patient and don't ping helpful or staff members!
Only this? can u check if the vault expansion is in plugins/PlaceholderAPI/expansions @cinder trench
Checked several times
Well then, you either dont have vault plugin or its not enabled/working
AutoRank PAPI is wrong.
%autorank_next_rank%
That's supposed to work.
Others work, but %autorank_current_rank% and %autorank_next_rank% don't work.
@warm topaz it's a known issue with FB and papi placeholders. you cannot have a placeholder within a placeholder in FB if you are use papi to parse it
javascript will be the easiest way for u dto do it
@austere hawk download the expansion
reload papi
I got an error when I try /papi ecloud placeholders Player
Its send me "an internal error occured while attempting etc.."
I try /papi reload, restart, updating my plugin to the last version
I try to clear the cache
But still the same I always got the error
Throw the error into a paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
hello help me why this isn't work format: '%statistic_hours_played% {DISPLAYNAME}&7> &f{MESSAGE}'
is essentials
use this since essentials doesnt support papi placeholders by itself
that isn't support for 1.14.4
@bronze bison
There is. I install the plugin, it loads, installs into the folder and does not work
@cinder trench
Please be patient and don't ping helpful or staff members!
installs into the folder
Wdym by that? U just need to download Vault plugin (put it in ur plugins folder) and then run the server after that run these commands
/papi ecloud download vault
/papi reload
``` @cinder trench
It should work fine
does not work
Any errors in console after u downloaded vault plugin
EssentialsX supports papi?
nop
Yes.
Thanks
On another assembly, the plugin works fine
All plugins are completely removed and only this one is left, also
anyone able to make an buycraft expansion to papi, where you can have top donators and recent donators as placeholders
i'll pay $10 to the one who makes it
sorry
Is it better for me to demolish everything and do it again?
Hello, I posted some days ago asking for help with placeholder api and deluxejoin and deluxechat. While doing the following commands:
/papi ecloud download player
/papi reload
Made the deluxechat plugin work with %player%, it still doesn't work with deluxejoin.
If I remove placeholder api, deluxejoin works fine
%player_name%
No, it says %player%
Change it to %player_name%
Hello
I have a problem
The placeholders aren't weorking
My code
Inventory inv = Bukkit.createInventory(null, 54, "&8Prueba");
ItemStack ii = new ItemStack(397,1,(short)3);
SkullMeta meta = (SkullMeta) ii.getItemMeta();
meta.setOwner(p.getName());
List<String> lore = new ArrayList<>();
lore.add("%player_name%");
for (int i = 0; i < lore.size(); i++)
{
String lineaNueva = PlaceholderAPI.setPlaceholders(p, lore.get(i));
lore.set(i, lineaNueva);
}
meta.setLore(lore);
ii.setItemMeta(meta);
inv.setItem(0, ii);
p.openInventory(inv);
Can u not send the same message in all channels? Be patient and someone will help u
It should be java lore.add(PlaceholderAPI.setPlaceholders(p, "%player_name%"));
@austere hawk ^
And if I have it on a Config StringList?
ANd, I want to put the placeholders to all placeholderapi
how to i use placeholderapi placeholders in mvdwplaceholders
like it dosent work when i put %essentials_nick%
¿?
how to do deluxemenu if have permission will run other command? ex. normal group will gave 1 key to open crate if have vip group will gave 2 key?
@austere hawk mvdw placeholders use {}, so you would need {placeholderapi_<papi placeholder>} with no %% when you put the placeholder in
@coral dew If you have 2 diff groups, and they are pressing a button in deluxe menu, use view requirement and left/right click requirement (for safety). In the view req, check which group they are in, and display a specific button for each group
the vip group will then run the 2 keys command, while normal runs 1 key command
but normal wont be able to see the vip group and vip wont be able to see the nromal one (if you have it set up correct)
you can make me example?
thank
Hello. Into a Javascript placeholder i can use variable in placeholder? example -> "%otherplayer_gamemode_"+playername+"%"
With the latest version on the eCloud u cant, but u can with the version here https://github.com/PlaceholderAPI/Javascript-Expansion/pull/8
Its not live yet so ull have to download it manually
if u want that for just this gamemode placeholder then use this
var player = BukkitServer.getPlayerExact(args[#]);
return player.getGameMode().toString();```
bungee config
Motd is changed inside the PlaceholderAPI config
Someone Using LobbyAPI here? 🙂
help Frosty
several placeholders in the Player expansion is not working for me, namely %player_food_level% %player_saturation% %player_x% %player_y% %player_z% %player_direction% and %player_world_time_12%
I tried /papi ecloud placeholders player, and it gave me the An internal error occurred
this was for a tablist plugin, initially i thought it was the tab plugin's problem but after I switched the tablist plugin the exact same placeholders still don't work
This was on minecraft 1.14.4, and I ran /papi ecloud download Player
@bronze bison
Help! Everything works fine on another server but doesn't work on my build, what's the problem? I copied everything - does not work
@cinder trench
Please be patient and don't ping helpful or staff members!
youtu.be/Ts5unz1AYVQ
Uploaded a video on YouTube, please help!
@cinder trench it worked in the first server cuz u had vault, and it didn't in the second server cuz u didn't have vault plugin.
I told u, make sure that u have vault plugin and it will work
@celest tendon
Run this
/papi ecloud download player
/papi reload
And take the placeholders from here https://helpch.at/placeholders#player
And use them in a plugin that supports papi
I tried TAB and TabList
Try the placeholder using papi's parse commnd and see if it works
both supports papi
/papi parse me %placeholder here..%
ill try that
@bronze bison I don’t know why, but that wasn't the point ... The vault didn't show up there, I just changed the permissionsEx and it worked ...
@cinder trench
Please be patient and don't ping helpful or staff members!
Vault expansion wont work/load with vault plugin
the parse command worked
but the same placeholders dont work on two plugins that support papi .-.
Its those two plugins issue then
I keep running in to an issue while using the placeholder expansion for Gangs Plus, it works but after a server restart it stops working. I have to redownload the expansion and reload to make it work again
Contact the author
do i need to do something special for a javascript countdown placeholder to update every second?
Where are you using it?
Make the hologram updates every x time and it should work fine.
np 😃 😁
Are placeholders supposed to work on ChatControl like this?
{placeholderapi_luckperms_meta_race}
Hi! I was wondering if anyone could help me? I bought the VoteParty plugin but the placeholders on the PlaceHolderAPI website aren't loading after I downloaded it from the ecloud. I'm trying to display the identifier %voteparty_total_votes_needed%.
TitleManager. The other placeholders for it work. I'm able to display my rank and faction in it.
The vote party placeholder is right underneath of'em.
The TitleManager scoreboard *
did you restart your server?
I'll try that. I just haven't had to restart the server before to make placeholders work. Just reloading PlaceholderAPI .-.
you're running papi with a secondary plugin, sometimes that plugin won't register until itself is reloaded
No, it didn't work.
I also can't parse the identifier, which means it actually isn't loading. Nothing to do with TitleManager
What papi ver and server ver
2.10.4
hello
i downloaded the enjin expansion
and its not working
when i /papi parse [myusernamehere] %enjinminecraftplugin_points%
it just comes up with %enjinminecraftplugin_points%
help ASAP
Do you have expansion installed?
@vivid sparrow Unknown expansion.
o
Is there any expansion or javascript that will count the number of online players in a certain group?
The placeholders for VoteParty are still not working for me.
I'm using the 2.10.4 version of PlaceholderAPI and version 1.14.0 of VoteParty, both are the latest versions.
so can no one make a tebex expansion to papi?
@mystic silo what server ver
1.13.2
Spigot
@mystic silo Head over to #spigot-linking
And what vp ver
@austere hawk #617569044928790539 or #617569053392896011
@little dome 1.14.0
And lastly, what plugin are you trying to use the placeholder with
TitleManager.
TM?
Yep
Alright one moment
Dillon
Do not offer support to unverified users. Thank you
When did you purchase VP @mystic silo
September 15th
Oh wait, that's a different one
What's the name it would be on PayPal?
just verify with ur spigot page??
I already did that
I can send you a DM of the VoteParty page with my username and everything.
Your linked spigot account does not appear to have VoteParty
I followed the steps though
Did you link the correct account?
Yes. How do I try the numeric way?
The account is linked so no, I mean if you're sure you've purchased it on this account, as it doesn't seem to be showing up
@mystic silo accept fr
@little dome It's all good. I DMed Frosty with proof of my purchase and he fixed VoteParty for me.
But thanks anyway
🙂
Could the OnTime placeholders be updated so they work with offline players? Thanks!
@austere hawk jea ive got the expansion
also how can i reset a placeholder?
ive got one set to phantom kills and i wanna reset ti
i need help asap
Hello, i have a question about PlaceholderAPI. When i have placeholderapi in my plugins and mu serverselectorx to my serverselectorx doest work.. can anybody help me to resolve this issue?
@uncut patrol have you installed the placeholders expansions?
using /papi ecloud download "?"
Can anyone help me
@sharp jay there is no placeholder expansion for serverselectorx
@austere hawk reset the stats
I'm seriously not sure what I'm doing wrong here.
I'm using randombyte's unofficial version of papi, and sponge: https://github.com/randombyte-developer/command-utils/wiki/PlaceholderAPI
Javascript appears to be a valid placeholder without any expansions. However, no matter what code I try to run, I just get a blank line or "UNDEFINED".
Here are two codes I've tried to use:
var online = server.getOnlinePlayers();
var num = 0;
function number() {
online.forEach(function(player) {
if (player.hasPermission(custom.boostcounter.master)) {
num++;
}
});
return num;
}
number();
We can't support unofficial builds
Also seems it has nothing to do with the actual PlaceholderAPI
just phantom kills
and is indeed something else that just happens to have the same name
@GabyTM so I'd need to include that bit in quotes?
wait do i have to manually do it for each player/
@balmy marten , I'm not sure what you mean by "something else with the same name". The page I linked is related to command-utils, yes.. but on that page is a link to an unofficial update to placeholder api. Last version for sponge was 4.4, this dev released a "4.5.1" update, which added a %user% placeholder among other things
https://placeholderapi.com/ is the version we support here
The one you link isn't built from or have anything to do with that
anyone know how to reset the phantom kills statistic?
I see now.. that is super unfortunate naming
I swear even some old threads about the sponge version link to the spigot version's wiki.. thought they were the same devs, whoops
basically what im trying to achieve
is a placeholder for phantom kills so far this month
i need help asap
The only way to do it is to set the value in the world file called "stat" which has json file there for you to edit
And stat about phantom, no idea. Scout it
shitttttttttttt
%player_name%
Make sure you have the expansion installed as well as have reloaded papi
You can find all the available placeholders on the ecloud (https://api.extendedclip.com/all/)
Thanks buddy.
My issue is still not resolved “Hello, i have a question about PlaceholderAPI. When i have placeholderapi in my plugins and mu serverselectorx to my serverselectorx doest work.. can anybody help me to resolve this issue?”
I believe it was answered
Also, just saw that there is no expansion for it, meaning if it doesn't work you're going to have to contact the author of the plugin
Sure
Any1 know why symbols doesn't work in javascript?
the script doesn't seem to be loading
but <3 works
make sure the file is encoded in UTF 8 and try the unicoded version
tried all utf 8 versions already, same problem
maybe got something to do with how I load the script? https://gyazo.com/889f514ae850bb6d91df1afc3b662c4e
Use the character unicode and not the character itself
Nvm I found another solution
👍
Hey guys, can i use PAPI on my BungeeCord network through an extension or a database?
@winged wolf wdym in ur bungee network?
Like u want to get a value of a placeholder in another server?
If so, check this https://mcplugins.io/resources/globalholders.33/
Thanks, thats what I wanted.
Glad to help 😄
Is it possible to create a placeholder with js that shows a word depending on if the player has a permission?
ofc
function test() {
var player = BukkitPlayer;
if (player.hasPermission("permission.node")) {
return "Word here!";
} else if (player.hasPermission("second.permission.node")) {
return "Second word here!";
}
}
test();```
juck gaby
what do you want lol
Damn gaby
ilysm
Now I took like a 7 month break, how do I go about setting that up in papi, gaby?
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki don't use papijsp reload, use /papi reload
How do I verify the expansion in the ecloud?
What's the name of it?
@pseudo mist Checked and verified! 
Should show in the ingame ecloud in the new few mins
As in like this https://api.extendedclip.com/expansions/animationexpansion/ ?
gaby you up?
Sup
So about that js, Can you make it to where it returns a word if they DONT have a perm?
Sorry know nothing at all about js
Just put ! Before the statement
@lament verge you added me to ask me to fix an issue with checkitem that is already open on the github?
Yes 😥 I'm in a hurry that this bug is fixed
Probably won’t be fixed soon since I’ve been quite busy
The code is always up there if somebody else wanted to give it a shot
@brisk coral Wym?
if (p.hasPermission("")) = if player has the permission.
if (!p.hasPermission("")) = if player doesnt have the permission.
It really is not possible to solve this little problem? It's the only one ! Cj
Artsuki, as he stated himself, if you're in such of a hurry you're free to fix it yourself since it's available on github
I am not a developer 😭 @brisk coral
@lament verge
Please be patient and don't ping helpful or staff members!
Hey guys, is there anyway to display statistics with placeholderapi on discord? Any plugins?
hey, my placeholders in deluxetags arent showing, and i dowlnloaded the extension for placeholderapi https://prnt.sc/pel55c
PlaceholderAPI suggests using ChatInjector to use placeholders in chat. When I add ChatInjector, it allows everyone to user colors in chat when previously they could not. Any fix for this?
Not really sure how to do this in Java but maybe write something in Skript where it detects chat events and replaces all "&1" or any color codes with "& 1"
@vocal field chatInjector is only needed if your using a chat plugin like essentials
@neon sage there are plugins that use regex chat filters which will do that
@sudden osprey you using essentials chat? if so did you edit the Deluxetag config to work using Ess placeholders
?tagess
DeluxeTags showing in essentials chat:
- Turn of the DeluxeChat option in the DeluxeTags config.
- Turn off the format_chat option in the DeluxeTags config.
- Replace all the
%placeholders%(%deluxetags_tag%) with{placeholders}({deluxetags_tag}). - Restart the server.
^ @sudden osprey
|| @limber ice not sure if you know about this faq or if you requested it and it went away||
i use chatcontrol
try following those steps still
poggers
it'll probably still work
ok, thanks
@limber ice I am using a chat plugin like essentials.
@vocal field did you try without chatInjector, sometimes it works without it.
I need help
Theres not time to wait! Ask your question @low cobalt!
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
How do I setup serverslector? http://prntscr.com/pf272d
i have this as a placeholder for daily rewards in DM https://paste.helpch.at/vuxoxaheto.sql
but for somereason daily-2 is overriding daily-1, and wont work
I’m not sure what way the priorities work but you could try swap them around
chaz that didnt work
is there something wrong with this placeholder view_requirement: requirements: name: type: string equals input: '%javascript_cooldown_tdaily_86400%' output: 0s
cuz with this set i cant even see the object
i found out the reason, the material was missing like a derp
I am using the javascript plugin and i get "Caused by: <eval>:1 TypeError: str.includes is not a function". Any idea how i can check if a string contains a substring ?
ohhh thank you 🙂
hey, i need to reload my placeholderapi after every restart because of Gangsplus load not correctly these placeholders doesn't work: %gangsplus_gang% and %gangsplus_gang_online% can anyone help?
Contact the author of the expansion
ok
Hey!
How do I get all the entity kills? Do I need to use this placeholder? %statistic_kill_entity:<MobType>%
If u want the total of x mob types use math expansion (for small amount of mob types) or JavaScript expansion (for bit amount of mob types)
hello i was wondering
is there a placeholder that will put the displayname of the player that used the command
I want the command to say
"(displayname) has cleared the chat!"
but using %player_displayname% or whatever doesnt work
it just shows the player who is reading the message's name
so it might say
"VIP ApiMaru has cleared the chat!"
instead of
"Owner Wolfling has cleared the chat!"
its client side for each person but i dont want that obv
You'd have to get the target
Don't think that a placeholder exists
:(
I'd assume that the clear chat plugin would have that implemented already tho
Hi, I have a problem and this variable does not work for me. Could you help me to know why it is the problem% rel_ [factions / factionsuuid] _relation_color%
i saw this: material: 'placeholder-%player_item_in_hand%' and then i tried it with a javascript placeholder i made that returns the headdatabase head 'hdb-1792' and it does not work. any help?
I think that's only for normal materials, which doesnt includes heads
What's the placeholder for player? Cant find it anywhere on wiki. It's all %player_X%
Yup, thanks 🙂
Also you can view all the available expansions/placeholders on the ecloud (https://api.extendedclip.com/all/)
oh. that stinks
wonder if clip ever has plans to implement the requirement system from DM into decommands
Not in the next 10 years :))
redisbungee extension does not work
When it does it takes a really long time to update and does not update correctly, some servers can't be tracked. I have hooks redisbungee enabled in config, 30 as refresh and all the servers listed in config.
@mint fable You would have the link of the checkitem code?
@lament verge
Please be patient and don't ping helpful or staff members!
@lament verge
Thx
Hey guys I’m using the placeholderapi in my plugin and I need some placeholders for offline players but It will not show the placeholder is not mine and I asked the developer of the plugin and I got told it was placeholderapis fault
What placeholders? And what expansion?
Superiorskyblock @mint fable
@flint dune
Please be patient and don't ping helpful or staff members!
if the developer doesn't add offlineplayer support to his expansion (that's built-in to his plugin) then it won't work
Tokenmanager
Hey, someone could help me creating a javascript to make a placeholder first letter uppercase, please? I need to add this placeholder to the scoreboard. Thanks! 🙂
Something like %worldguard_region_name% returns Lobby instead of lobby
Cant test
function f() {
var name = "%worldguard_region_name%";
return name.charAt(0).toUpperCase() + name.slice(1);
}
f();```
@deep hollow %worldguard_region_name_capitalized%
https://helpch.at/placeholders
@deep hollow
Please be patient and don't ping helpful or staff members!
and thanks aboody 🙂
np 😁
Hey everybody
My variable dont work in the scoreboard
%server_online%
The count for players online
/papi ecloud download server
/papi reload
And make sure that ur scoreboard plugin supports papi
Is there a placeholder that shows if a bungeecord server is online and offline?
Use pinger placeholders
Tysm
No problem 😄
Would you know how I change the formatting of the words offline and online?
I just want to make it bold with the same colours
U can change them from papi config
Alright thanks
any placeholder suggestion for getting block player is looking at (coords)?
I doubt
Hello, ik that this is the wrong palce to ask but uh is there a plugin which works with 1.13.2 which is sign shops?
e.g i write
[BUY]
item
price or w/e
As you've said yourself, this is the wrong place, #minecraft would be correct (You're probably looking for ChestShop)
Is there a way to find out which plugins released an update of their papi expansion?
@fleet crest No there is not, however you can very easily get a plugin developed to return that for you if you need it via a command
[19:44:09 ERROR]: [PlaceholderAPI] BattleLevels is currently using a deprecated method to hook into PlaceholderAPI. Placeholders for that plugin no longer work. Please consult [RobiRami] and urge them to update it ASAP.
Why am i getting this?
also for some reason the place holder api is working on one of my servers but when i go to the other one it doesnt work
Please consult [RobiRami] and urge them to update it ASAP.
who is that?
The author of BattleLevels
It uses a method to hook into placeholderapi that no longer exists
so basically meaning the plugin is outdated? Also how would it have worked before but not now?
The hook was replaced in newer versions of placeholderapi
explain
The way plugins interact with placeholderapi was changed awhile back after many warnings
You could downgrade placeholderapi as a temp fix, but that could break plugins that use the newer hook
idk why but i cant download anything in /papi ecloud download
i tried to download essentials
no work
in the download list it shows nothing after i download it and reload it
they are in expansions folder doe
@steep thorn hey babe (firstly it’s me, I’ll explain in DMs lol), but can you update PAPI hook referencing the above ^^ someone having an issue with your plugin
@austere hawk I'm working on the issue but it'll take time before the update is released
@steep thorn oh hi robin. Thanks for letting me know
where do I see which extensions need an update?
idk if theres an easier way but if u do /papi list the extensions that need updating will turn gold
thank you!
This error keeps occurring when I do /papi reload
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
Hi, what is the placeholder for balance? And I want it to say it like this: 100 M or 1.3B. How can i do this. It's for my scoreboard plugin: Scoreboard-revision
%vault_eco_balance_formatted%
thanks
np 😁
So I am creating a hologram with 'premium' info for spawn, and I have one issue 😂
%luckperms_primary_group_name% <-- I need that info inside this one %luckperms_group_expiry_time_<groupname>%
any tips?
What does it return?
%luckperms_group_expirytime%luckperms_primary_group_name%% seperatly they return correctly, but setup like this just the placeholder itself
wish it would be possible to do it like that though :/
is there a way to check papi tags? like running a command to see the value a tag would return
Uiiii PaPi Progress for MCPE :D
Wdym? @austere hawk
@runic oxide its /papi parse me %placeholder here..%
@mellow sandal u mean for 1.12.2 or older?
/papi ecloud download statistic 1.7.0
/papi reload
So, Im going to make a plugin to allow players to use color codes on chat, and I pretend to add placeholders support to it, but as optional, without PAPI full dependency, but I don't understand how to add on the code PAPI support without requiring the PAPi plugin to the entire FC [FancyChat] works (I plan to make a better name).
Tanks for any help :D
Just parse the message? (Using PlaceholderAPI.setPlaceholders)
So, if the server doesn't has PAPI it just send without parsing the message or it gets a error, that's the part where I got confused
I mean ye what do you expect.. You're using a plugins method.. Which requires the plugin to work
Add a parsing part to it where if papi is installed it parses it, and if it's not don't parse it
Tysm
Idk if this plugin does it but this is for placeholders right?
Like in holographic displays that you can show how many players are in a server on a bungee network
well if it is is there any way to show a player count of multiple worlds combined
Use the math expansion, alongside the server expansion
Does anyone here knows how to fix Worldguard crashing PAPI?
https://hastebin.com/loxegefono.apache
Delete the worldguard expansion from the /plugins/placeholderapi/expansions/ folder
then restart the server
U aren't using the latest version of the expansion?
If so
/papi ecloud download worldguard
/papi reload
You don't have worldguard installed @slate siren? on your server.
i do
Caused by: java.lang.NoClassDefFoundError: com/sk89q/worldguard/WorldGuard meaning you don't have it.
redownload the expansion like @bronze bison mentioned.
nvm Mr Cube.'s idea work
Cubes idea will delete the expansion so no wg placeholders anymore
U got that cuz u probably have an old version of the expansion, with a new version of wg that has api changes that caused that error
dont think we need it anyways
Ok as u want then.
Latest eg expansion supports old and new wg
Some assistance ?
Idk if this plugin does it but this is for placeholders right? Like in holographic displays that you can show how many players are in a server on a bungee network well if it is is there any way to show a player count of multiple worlds combined
The answer:
Use the math expansion, alongside the server expansion
I installed both. What now?
Now use the math expansion to combine em
I have Bungee placeholders installed, but they are not working in Holograms/
I have bungee placeholders installed and everythings good but that shows
no errors
delete the expansion
from the folder
and reinstall it.
It may just be the holograms plugin not supporting placeholderapi.
It does support it because it was working before
Hello I had a couple qustions. I installed leaderheads plugin and downloaded papis mcmmo dlc to display mctop users. not theres not a statistic for mctop? just specific ranks? and another thing. Why wont is display rank 2 or 3 😮 only displayed one.
use a JavaScript placeholders to do that
@final shadow Just a heads up: Towny now provides PAPI placeholders, and TownyChat now reads PAPI placeholders. I'll link you the tags at some point, sent you a friend request btw.
Clip dead ^ @fickle dock
what?
He's not active that much due to irl stuff, he'll probably respond sometime this decade
ah well we've had a raport in the past, if his wiki doesnt get updated i'll pr it myself
You can request a wiki update by opening an issue in papi repo https://github.com/PlaceholderAPI/PlaceholderAPI/issues @llamadeal#8304 (use the correct template please).
Wew
smh frosty
Is it ok if the expansion identifier doesnt match the expansion name? Because it's quite long xD
I know you can do that I'm just asking if it's ok.
🔥
AmAdGuYwItHaFiSh
wot
amadguywithafish he said
a mad guy with a fish lol
exactly
was like wtf does 'amad' mean?
You were asking for identifiers..
@llamadeal#8304 is my towny expansion still necessary to provide placeholders for towny? I just checked the commit via towny and it looks like towny only allows using placeholders not provide them
Skript placeholder not working need some help please
Are u using them in a plugin that supports PlaceholderAPI?
If so, then contact the author of the expansion.
Hello, I'm currently dealing with an issue where first connected players have their prefix not working, when they disconnect/reconnect, they work again
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)
https://paste.helpch.at/nocopyingnow anyone know why this wouldnt be working?
@mental night any errors?
Good night!
I'm having a hard time leaving the chat format as I want. I create all the tags and they look normal in chat, but when I add the Clans System plugin and create a clan my tag disappears and only the clan tag appears, they gave me this PlaceholderAPI plugin and said it would help to solve my problem. Can anybody help me?
No errors @sharp jay
@mental night
Please be patient and don't ping helpful or staff members!
then what part doesn work
When it gets maxed out
The priority doesn’t change
Am I using the correct ‘’type:’’
have you tried uncapping it
switch the priorities, the item that it's displayed last always has the lowest priority
=paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
good idea 😄 Sorry for the spam xD
Np
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
See link for console: Spigot 1.8.8 PAPI v2.10.4
https://hastebin.com/pacuhixizo.md
EDIT: Please see updated Link
More details can be provided upon request, I notice some papi issues are due to the plugin itself, please let me know whether this issue is fixable or not
Please ping when responding
@swift elk
The last 4 issues are issues with the expansions itself (Issue 4 isn't an issue even), you should contact the coresponding expansions author and tell them to update their shit, Not sure about the first issue, would have to know more to be able to determine the cause
Thank you, as you can tell.. I don't know shit about shit. Was just checking though, I figured that might have been the issue. Issue number 4 just bothers me, trying my hardest to get rid of all unnecessary [WARN]'s in my console.
Put a random js placeholder inside it so it stops thinking it's empty
So @obsidian niche, does the js placeholder works fine using papi's parse command? /papi parse me %js placeholder goes heree.....%
arazi wont be null
Also, what does the placeholder return when u try it using papi's parse command?
hmm?
If it does return the word "null" use == "null"
not working bro
what?
Wdyn = what do you mean
Its working?
you colored it
arazi wont ever be 0, cuz it has &a
remove the color and try again ^
Remove it and add it on the return.
Or make it === "&a0"
not working
np 😁 👍
Wdym?
return "&a" + arazi;
glad to help 😃
as i said, arazi wont ever be null
👍
How do I add a holographic placeholder for a kills leaderboard?
what plugin are you using for holograms?
so what's the issue
I dunno how to put placeholders like kills on my holograms
Some placeholders work but not all of them
Well I need one to go off of
Huh
I think it's a statistic placeholder
Ok I’ll try
%statistic_player_kills%
How do u do that
If placeholders are not showing correctly,
- Ensure you have downloaded and install PlaceholderAPI.
- Ensure you have the correct expansion installed. (/papi ecloud list all -> /papi ecloud download [Expansion])
- Use /papi reload
- Test the placeholder in /papi parse %placeholder%
- Check https://helpch.at/placeholders for valid placeholders.
you need a plugin for it
Oh
I think leaderheads tracks all that
Leaderheads
=plugin leaderheads
I use minehut and it’s not showing up
minehut => shit
😦
it's premium
I know imma change to another host after my server gets some clout
Is there any non-premium plug-in for minehut to see leaderboards and all that
saz
Is there a video to help explain how to use placeholder api ???
don't think so, u dont need one tho
- download papi.
- download the expansions u want.
- use the placeholders in plugins that supports papi :D
placeholders list: https://helpch.at/placeholders
Is there a way to add the value of players that are in two worlds as one value? such as:
%math_{server_online_world1} + {server_online_world2}%
%math_{server_online_world1}+{server_online_world2}% should work
/papi ecloud download math
/papi ecloud download server
/papi reload
I got no errors but it also didn't work
explain doesn't work pls
I teleported to the world listed in the statment above. And the number did not change.
instead of world1 i replaced with lobby
check the value of the placeholders and see /papi parse me %server_online_lobby%
i ran both worlds and I got a value.
and when u check math placeholder ?
yup
got values as well.
I typed
papi parse me %math_{server_online_world1}+{server_online_world2}%
and I got a value
ok.. so the value changed now. 🤔
i think i forgot to reload papi. 🤦
Thanks aBooDyy 👍
np 😄
pape
what do i do if I broke the plugin? - reinstall it???
"Broke the plugin" and how have you managed to do that?
I dont even know 😂 I reloaded the server and none of the placeholder values was set XD.
hello how i install PAPI to bungecord?
A resource that allows information from your favorite plugins be shown practically anywhere!
• Spigot
• Wiki
• Placeholder-List
• GitHub
• eCloud
Please go read the plugin page.
No need to ping, and as a quick sumarise; PlaceholderAPI does not support Bungee
i fixed the issue.
No sure what was the issue, but I downloaded the Holograms plugin (not HologramDisplay plugin) which seemed to go hand-in-hand with the hologram-placeholders versus what I was using.
Is it possible to get top 1 of kills or another placeholder with PAPI?
Can be done as in code it yourself :) or as in google it?
first
It's for a project I'm working on 
The vault expansion has a top placeholder, you can take a look at it if you know how to code.
I know a bit of Java, but I'm not looking for any memory leaks cuz of my dumbass trying to be good
Hello.
I can't get the factionsuuid placeholders to work?
Why is that a question
hello someone can help me how to use PremiumVanish placeholders?
i just want when someone in vanish its not show him in
%bungee_total%
and
%bungee_<server>%
if someone can help me, tag me
It wouldn't be possible
As theres no way of working out how many players are vanished from another server
can do something of that from javascript placeholder like made script of it no?
Server 'A' wouldn't be able to read vanish placeholders from Server 'B'
%premiumvanish_bungeeplayercount@<server>%
so what this does?
Oh, didn't know vanish had one built in
it return me null
Assuming ur replacing <server> with a server
i put there server
what does %premiumvanish_bungeeplayercount% return?
even if there is a vanished player?
and it also returns 0 if ur not vanished?
yes
k, you might need to wait for someone else that has experience with premiumvanish
ok thanks
I'd assume they're broken
If the problem with premium vanish placeholder, then ull have to contact the author because the expansion isnt ours and its probably built into the plugin.
@austere hawk it only updates when someone joins the proxy. I asked the author like 300 to fix this. But he keeps saying it's my end. So i stopped using it.
Hi, does PAPI support scoreboard teams? I am only seeing ScoreboardObjectives
Hello good, I have a problem with the hologramdisplay api plahcerholder, here you help me with this kind of problems?
parse works for me, but not in the hologram.
do u have Holographic Extension ?
^
=plugin holographicextension
¡smh aboo
@crystal nebula idk what do u mean by that? papi only provides placeholders from another plugins to use them in plugins that supports it
its not an expansion @crisp sable, its a plugin to add papi support to holographic displays
oh yes it works! Thank you very much and I apologize for the inconvenience. I'm sorry.
np glad to help 😄
I found that it supports scoreboard objectives (https://www.spigotmc.org/wiki/placeholderapi-placeholders/#scoreboard-objectives-placeholders), which I currently use to display a players objective values in the tab list with CMI: https://i.imgur.com/bXaTa3O.png. I would also like to display their current team (and that teams color) there, but can't find the placeholder for that
which made me believe that vanilla scoreboard teams may not be supported
Ah, idk and i dont think so
that wiki is outdated btw use this https://helpch.at/placeholders
I see. thank you.
I think I can hack it together by writing a datapack that writes their team into a scoreboard objective and parse that
idk about these stuff sorry
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
I downloaded the javascript expansion (/papi ecloud download Javascript),
reloaded PAPI (/papi reload) and restarted the server
but when I try to reload the javascript expansion for my hello_world script, i get this error: https://paste.helpch.at/oyoyazicus.sql
Am I missing something else?
dont use /papijsp reload and use /papi reload instead
Thank you!
could someone help me with setting it up? like screenshare or call?
Anyone else having issues with latest papi and luckperms expansion?
Caused by: java.lang.ClassNotFoundException: me.lucko.luckperms.api.LuckPermsApi
Well lucko maintains his expansion so if there is an issue im sure it’s something he needs to know
What lp version and expansion version
Rip

with papi js placeholder, how can i return a (diff) placeholder with no formatting/without parsing colour codes?
So
@knotty pulsar what does it show? Like nothing?
Let me download the plugin
k
@knotty pulsar i see no problem returning value from it?
The ecloud is built into PlaceholderAPI, you can't uninstall it individually.
You get what I meant
I don't actually, I didn't read what was going on.
I meant uninstall a package I got from ecloud
Ahh, that makes more sense!
Well the thing is I already had the expansion thing in the papi folder
But it’s not working
How can I parse a placeholder without colourcodes using a JS pholder?
I.e I want it to print colourcodes
I don't think you can
@sacred bronze Do you mean:
a. You want to set a placeholder which would make colour codes but make it say text instead
b. You want a placeholder which sets a colour code
c. You want a placeholder to lose its colour code somehow
a
ight what im tryna do
%placeholder_a% returns "&a1&b2&c3"
and i want %javascript_placeholder_a% to return
Is it possible to make the Pinger expansion return the playercount when the server is online but "&cOffline" if the server is offline?
custom javascript placeholder could
could try #628725777659330560 or #628725781119500298
Can someone explain me how to work with the math expansion of placeholderapi
What do you need to know?
So i want to combine the play count of worlds
Is just math and placeholder
%math_{server_online_world1}+{server_online_worl2}[precision:1]%
i don't see a "%" in my holographic displays database. Let me send a screenshot to you
Just a suggestion, if you can't afford a bungeecord network, don't use worlds as servers.
Also, use placeholderapi placeholders as I showed you above.