#placeholder-api
150650 messages · Page 38 of 151
couldnt tell u tho tbh, looks like LP is just taking the input from bentobox and throwing the error
Help
Who is one of the authors then? I see non
wait are u asking for placeholders to be created? because Gadgets menu already has placeholders
Good evening all, I have a question regarding the Baltop placeholders from the Vault expansion. I have enabled Baltop placeholders in PlaceholderAPI config.yml, but still receiving no outputs for placeholders such as %vault_eco_top_balance_formatted_1%. Any help/guidance would be greatly appreciated 🙂
what is the placeholder returning exactly?
is it just a blank line or returning ur input back to u?
When I request a balance it returns 0, when it is a player name nothing
preetty sure baltop is broken in Vault 1.7. Even if you enable it in config.yml
either broken or disabled not sure.
just downgrade to 1.6
o lol
I tried to reload papi then restarted when it wasn't displaying the correct values. I will try downgrading to 1.6 since I did enable it in the config.
Still having no luck, the only difference with 1.6 appears to be that Baltop was enabled=true in config.yml by default.
I'm going to try a different economy plugin quickly just to see if the plugin itself is causing this problem.
Looks like it was the plugin 'Economy' causing the issue, the placeholders are displaying the correct values now I have moved to 'xConomy'
Thanks for your help 🙂
so I have %math_{player_health}*5[precision:0]% and its just displaying the text itself, even when I parse it.
I have Player and Math installed
and it works for the person from the other plugin im troubleshooting
it works fine as %math_{player_health}*5% I just dont want 3 decimal places
[precision:0] was changed in the latest version of the expansion
how should I be using it now?
%math_[precision]:[rounding]_<expression>% this is how it should look but I'm not fully sure try %math_precision:0_math-here%
damn, cant quite figure it out
https://cdn.discordapp.com/attachments/810793604606853140/810964695426400296/unknown.png can someone help me? What is papi doing?
oh wait use: %math_0:_{player_health}*5%
IDK if that's PAPI. that looks like me DeluxeHub trying to use a method that doesn't exist. are you 100% sure you got PAPI installed?
I was trying to use %vault_eco_balance% for deluxehub is this the right papi?
yeah that's the placeholder for how much money you have. make sure you've downloaded the expansion by doing /papi ecloud download Vault and then /papi reload
no problem
hey, how do i remove the numbers from the scoreboard
you can't. minecraft doesn't allow that. you can make them custom tho.
yes. how?
are you developing a plugin? or do you want a plugin that does that?
I don't think you can using that plugin
which plugin can i use then
why is this in #placeholder-api
why not xD
and link?
how do i make %exp%
so it shows the exp
is the command %exp% or like %exp_blablabs%
%player_level% use this and first make sure you have PlaceholderAPI installed and then do these commands /papi ecloud download Player then /papi reload
and one more thing, how do i make it show how much time played
@turbid tide sorry if im not allowed to ping
@austere hawk,
oof
use %statistic_time_played and once again first /papi ecloud download Statistic then /papi reload
thx
and please don't spam all channels.
um. when i did that the line i did that to disappeared
?imgur
line-4:
text:
- "&a&lPlayed &f&l:"
random: false
interval: 60
score: "%statistic_time_played%"
anything wrong there?
you can only use numbers asscore...
as score*
%statistic_Time_played% will return something like 1h 2m 3s
no I'm not...
ohh
Imagine saying 'ur wrong' to a guy that's helping 🥲
can i change it so it doesnt do 1h 2m but only numbers?
you can use %statistic_seconds_played% and it will only show a number (seconds played)
can i do minutes played?
yes %statisitc_minutes_played%
you can find a full list of placeholders here: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders
wait it shows totalplayed?
Hello, I would like to know what is %objective_score_<obj-name>_[otherEntry]% I have an entity with the score, how do I use it?
Hey, im hoping someone might have an idea on how i can figure this out. PremiumVanish doesnt have a placeholder that shows if someone is vanished or not other than displaying "Yes" or "No". I was hoping to use this placeholder in the tab list, but obviously putting "No" behind everyones name wouldnt work out too well. I know theres the formatter ecloud to replace "No" with "", but that would still leave "Yes". Does anyone got an idea how i can essentially formatter replace with 2 variables?
Hi
Is there a way to manually edit the value of a placeholder?
Like modify the playtime of a user
Hello
Is there a way to parse two or more placeholders in one?
like
player has: [10 diamonds] && [1000 money]
javascript placeholder
an example?
idk javascript myself, but its a simple if statement and u could probably do it by looking at the javascript expansion wiki
u just gotta check with the checkitem expansion for the diamonds then check the money with vault expansion (%vault_eco_balance%)
idk if u can edit the users data in the world data folder, if not a plugin would be able to edit statistics for u
no clue of that, and the wiki seems confusing for me, maybe I need to ask a staff I guess
im guessing this is to do with the javascript nashorn engine not working on java 15 and this placeholder looks like its just doing %player_exp_to_level%
var hasDiamonds = %checkitem_amount_mat:DIAMOND%
var hasMoney = %vault_eco_balance%
function playerRequirements() {
if (hasDiamonds >= 10 && hasMoney >= 1000) {
return "yes"
}
else {
return "no"
}
}
put this into a file and follow the guide on how to use ingame @sturdy raft tell me if it works
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts
oh, that's awesome, thanks dude
I appreciate it
are u able to downgrade ur java version for the time being or no? im pretty sure the javascript expansion is almost ready anyway, but if ur desperate
understandable
Anyone able to help me with jjavascript placeholders
i have this
a=a.replace(/\,/g,'');
a=parseInt(a,10);
1st issue: after it goes over 1bil, it turns into E numbers
2nd issue: it has a .0 at the end even tho its meant to be an integer not a double
Can anyone help me fix it? (feel free to tag me)
hey does anyone have an extension for getting a players team color? It would help me out a ton
@warm topaz could also use the javascript requirement type
I use TAB [1.7.x - 1.16.5] 2.8.10 and latest papi version
https://paste.helpch.at/ikakiqupol.bash
Failed to download PlaceholderAPI expansions
What expansion are you trying to download?
"(Unknown Source)"
it doesn't recognise the thing you're trying to download
See https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders for a list of available placeholders.
What does the original placeholder give you, %ultraprison_blocks%?
A raw integer or already the E stuff? It's not clear from your question...
to remove the .0 return number.toFixed()
I think there's an expansion called Team
yeah here you go: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#team
You can use the javascript expansion on java 15 as long as you also have the GraalVM I think. if you don't then you'll have to wait a bit until thienbao finishes the addition of the new engine which will also work with java 15
depends if its DM or not 🙂
@warm topaz,
@turbid tide
@fossil wasp,
Can anyone help me, support
?help
@fossil wasp
Can someone tell me if its possible to make javascript requirements go higher than 2147483647 (java integer limit)
Does not work if the placeholder returns more than 2147483647
@fossil wasp read the bot message...
?help reeeaaad
I understand, but I don't have a specific problem with placeholders, I think everything is fine, but specifically I need help to expand
I think BigInt is what you need to use. Idk for sure if it actually works with the nashorn engine
How on earth would I use that? someone made me that javascript placeholder like 2 years ago lol
ugh. do you even know how the js works? if not I can't really teach you javascript.
you'd have to declare tho the integers as big intengers
I kinda know
I know it starts with a as the placeholder
and then each line it does a different thing to it
thats about as far as my java or javascript knowledge goes
@turbid tide
@fossil wasp please stop pinging people and just tell us what your problem is.
I don't have the time to go thru it and update it myself am afraid and neither to teach you javascript. you could try w3schools and see if you understand or maybe get someone in #805698757411995648 or #805698761442590730 to help you out.
All right, all right, you finish first, I'm sorry
Its all good, i think ill just get my dev to add the raw number placeholder thanks lol
@fossil wasp just ask what u need to ask
The support staff arent mind readers just post ur issue and someone will reply/tag you
No no everything is fine, I'm just interested in something about the experience formatter related to the Pope, but finish first, no problem!
what do you mean experience formatter?
like the placeholder that tells you how much exp a player has?
If so I can help you with that
Well it has more to do with extansion
so you're trying to show how much exp a player has?
use %player_level% if you want to show the levels
if you want to show the actual exp not just the levels you'll have to make a javascript placeholder
You don't need to do that
But it's okay than I'm interested in the formatter type when he writes to a player that he has 35,500 levels I'm interested in extansion to write 35,600
Ups
player_exp shows percentage Ewan.
not actual exp
there isn't one that just shows all exp.
I've made a javascript tho for it. I think its on the community scripts
%player_total_exp% shows the raw number (1000000)
%formatter_number_format_{player_total_exp}% shows the number with commas (1,000,000)
for the second one you need to /papi ecloud download formatter
and /papi ecloud download player
then /papi reload
and %formatter_number_format_{player_total_exp}% will work
Ewan you see that'll just be a problem because it shows all the exp you had since you last spawned.
so if you used some exp it won't actually go down
No no it's okay really, the rest I know of course only the formatter fucked me up a bit, thanks
ah ok then. I understood your question wrong then. sorry
I apologize for the constant pinning, because I asked for help because I could not specifically ask the bot such a question because obt causes problems I think it would not make sense to ask something like that to the bot I think
the bot just tells you what to do. You can ask even if no one is in this chat and someone will try and help. you don't have to ping anyone.
So% formatter_number_format_ {player_total_exp}% is correct and so it should be?
yeah that should format your exp
All right all right, I apologize again!
no worries. you'll know the next time
Okay okay, thank you for the reply, I apologize once again for the constant pinning, it won’t happen again!
I can uses placeholder with waterfall ?
No. PlaceholderAPI does not support bungee yet.
you just have to put PlaceholderAPI on your backend servers (spigot, paper etc.) and use them there
Okay thx
do you know what your server's java version is?
ewwwwwwwwwww
no no
oh. seems like the Formatter expansion was built on an newer version than yours anyways.
java
can you update the java version?
if not download an older version of the Formatter expansion
by doing /papi ecloud download Formatter 1.5.1 then /papi reload
go to plugins/PlaceholderAPI/ecloud and delete all the formatter expansions. so all the .jar in there that have the Formatter name in them and then try these commands /papi ecloud download Formatter 1.5.0 and then /papi reload
also update PlaceholderAPI plugin to 2.10.9 please
ok then do what I said above.
Yes I did what you said, the Pope said, but this specifically for the formatter
As you said about the formatter bese exp, sorry again but if you can write to me
Since I use a feather board and the command should go {placeholderapi_ and then what do I want example {placeholderapi_server_time_EE, MMM dd}
oh you can't use %formatter_number_format_{player_total_exp}% in FeatherBoard I'm afraid
it will just break
And do you think that featherboard does not specifically support that?
it will just break because you'd have to use {placeholderapi_formatter_number_format_{player_total_exp}} and it will break because of the double {}
Yes yes, it doesn't matter, I definitely have a more efficient plugin called kiteboard, so I'll post it instead of fb
NARDEBA FOR FORMATTER %formatter_number_format_ {player_total_exp}% also defaults to supermobcoins I mean supports?
yes I think it will work for supermobcoins as well
Okay, thank you again!
hey
I use supervanish on my server, and I was wondering what the placeholder was for players that are online excluding vanished players
Does anyone know the best way to have conditional spacing? So for player name formatting I have: %vault-prefix% %deluxetags_tag% if there is no tag then there is a double space
PlaceholderAPI's javascript expansion. You can learn more about it here: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
also the code is made for you already here:
Amazing thank you
hey, how do i make in my scoreboard to show which version ur in, like %version_example%
anyone?
thank you
How do I use javascript extension with essentials chat?
My placeholders aren't working after restart.. I have updated the plugin to latest version and still is doing it..
I have to do /papi reload for the placeholders to load in I don't even have to download them but the just don't enable on startup...
papi pinger always show Offline, but i pinged my bungee...
What is the placeholder api?
a plugin to put placeholders like a player's name in a scoreboard
How do I use javascript extension with essentials chat?
you can't. well you can but you have to use the ChatInjector plugin.
alrighty
mind if I bump this?
Wait a second
How the hell no one tells me that I can implement VersionSpecific into the expansion??
what's that?
Why doesnt PAPI hook my vault? ._.
Try using /papi reload
Was excited while I'm trying to look for clues which I can register Graal on PAPI source, sorry
it says "no expansions were registered" :I
I got my own version of vault, working well with my own Economy plugin. But at its core its still vault. I dont know why it doesnt work
More funny is, thats I got a bungeecord server. And at the rest of my servers its working. Just on one of those i got %vault_eco_balance%
Where can I change the server name that is used in the placeholder %server_name%? Is it located in server.properties?
No. I thought we removed that placeholder though. It’s pretty pointless when you can just write the actual name of the server
true
It’s not like anything dynamic is needed for that one
I was planning on just copy pasting this config in multiple servers
But if you do have it, pretty sure it’s in the papi config in the server expansion settings
it is still in the wiki and it works in my tab, so pretty sure it is still there :p
To solve that: https://pastebin.com/XL0tm6m6
Nothing stopping you creating your own expansion and uploading it separately
@muted cipher ^
that's a problem with QuickBoard not PlaceholderAPI. you have a string that's longer than 64.
I haven o idea where. I assume in the scoreboard
But:
[03:33:29 INFO]: [Progress] Couldn't get the number from {percent. The progress will be 0%.```
what's this? {PERCENT_DONE money}?
Rankup plugin papi
Idk if I can send that web: https://github.com/okx-code/Rankup3/wiki/PAPI-Placeholders
well that's not how you use it ... /papi parse me &b[%progress_bar_{rankup_money_left}_c:&d|_p:&d|_r:&3|_l:20_m:100_fullbar:&a&lCompletado%&b] or whatever the placeholder is
Thks
Is it possible to add aliases for %player_world%?
I think implementing Taskable in Placeholder expansion class is just useless, cause it just acts like register and unregister somewhat
I thought they can do like timer stuff
same as the #deluxechat question, with javascript but that code is not made so you'll have to make it
Ty 🙂 again
i have saberfactions. is that supported with placeholderapi?
@silver minnow Unknown expansion.
@bronze bison yo
@heady urchin,
Ur progress expansion is broken
/papi parse me %math_({vault_eco_balance_fixed}/{ultraprison_next_price})*100[precision:0]% returns 50
but
/papi parse me %progress_percentage_{math_({vault_eco_balance_fixed}/{ultraprison_next_price})*100[precision:0]}% returns .00
anyone know how to fix hex colours not working not working with a placeholder for prefix
Hi
I have a problem i don't know where ask my question, i will ask here
When i download the faction expansion, she's not detect with a papi reload. If someone can help me please ?
I have this message
if you restart your server does it work
try /papi list
See my screenshot
oh yea
He is not in my papi list
The /papi reload don't detect him
But he is in the extension directory
I'm in 1.8.8 version
when your run /papi reload is there any error in console
Oh yes wait a second
I send you the error message
factions is attempting to register placeholders via a placeholderHook class which is no longer supported !
For sure that's the problem
I'm using the last placeholder-api version
can someone help me?
@empty flint ^
.
Already asked but no one answered smh
.
Should I copy and paste it here???!?!?!
?paste
i have an updated version of that expansion, ill try to find it, 1 sec
your computer can't access the internet im assuming. iirc last time i got that error my internet was down
I'm using a hosting service 🤔
have you tried it recently? its possible the website was down when you tried it last
Yes
hmm. not too sure then. might be something the hosting company needs to fix for you?
but the website is working fine, i just tested downloading something
There is no time to wait! Ask your question @viscid escarp!
Vault placeholder's not working
- %vault_eco_top_balance_formatted_#%
- %vault_eco_top_player_#%
- https://prnt.sc/zxixnr
What plugin?
Vault
nono i mean holo plugin
aaa
and try doing /papi parse me %vault_eco_top_balance_formatted_#%
same with the other placeholder
- https://prnt.sc/zxjn67 command
- https://prnt.sc/zxjoui hologram
i can't send photo aw
@viscid escarp,
Do i need set %vault_eco_top_balance_formatted_#1% or %vault_eco_top_balance_formatted_1% ?
okay nothing
I fixed it
Thanks again
hi
Someone tells me if there is a placeholder that indicates the head. More specifically the value, that of "ey376473nsh ..."
You can manual download from ecloud.
Probably should have also mentioned I get this on attempting to register: "Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us." (https://api.extendedclip.com/register/)
uh is that a bug/false positive on editing an reply (without mention) ?
nah its cause you edited it
doesnt track if that message has already triggered a filter
anyway, dm me a username and email and i'll create the account from the backend
Any particular reason why this was disabled? e.g. just preventing too many unused ones or clones, or simply spam?
Probably to avoid abuse, you don't want people publishing fake expansions with backdoors in them
I suppose though they should also be verified. I guess there's only so many anyway so it would probably be easier to whitelist than filter all as well.
It’s disabled because registration is kind of broken and I haven’t got around to fix it @muted cipher
fair enough
My email verification stuff is all screwed up so when you register from anonymous, it throws an error after registration and doesn’t send the email. It’s an easy fix but disabling registration was the lazy way I took haha
yo the deluxetag isnt showing in chat
how can i make the deluxe tag show up in chat using essentials?
Yep
Hi, I read this: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-external-plugin
Is there a way to return a Localised String for the receiver?
CommandSender (English Player) enter a command to get Information from another Player (German Player)
onPlaceholderRequest(Player, String) gets the German Player but I don't have a way to find what Language the "CommandSender" has..
I hope I'm only blind and there is a way...
Can't you check for the Player's locale? https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Player.html#getLocale()
But Player is the player to get the Information from and not the player how receive the message oO
oh
then I guess you would need to make another placeholder, that returns a string based on an argument (which is the first placeholder parsed as another player)
And I use the getLocale function in my own plugins to send all Messages in the right Language back to the player works fine.
public void onJoin(PlayerJoinEvent event) {
event.setJoinMessage(null);
getServer().getOnlinePlayers().foreach(p -> {
String joinText;
switch (p.getLocale()) {
case "DE" -> joinText = "%player_name% &abetrat den Server! Sein Rang ist &f%vault_rank%";
case default -> joinText = "%player_name% &ajoined the server! They are rank &f%vault_rank%";
}
/*
* We parse the placeholders using "setPlaceholders"
* This would turn %vault_rank% into the name of the Group, that the
* joining player has.
*/
joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);
p.sendMessage(joinText);
});
}
%vault_rank% should return Bürger for German Users and Citizen for English players...
I don't need break...
I use java 11 and this was my Question: #placeholder-api message
this is only a example what was my problem..
its up to the expansions themselves for any translations, placeholderapi will only parse whatever is given to it
and yes u do need break, without break itll continue to fall through the switch statement, even if the case is true
(if ur doing just german and english using an if statement would be more beneficial too)
Sorry, I use java 15 and with 14 a new switch was implementet: https://openjdk.java.net/jeps/361
With Java 11 var was implemented...
ah
Ok I want to implement my own placeholder, how do I return a receiver Localised String?
this class can't do it: PlaceholderExpansion (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-external-plugin)
why not?
You can’t use curly brackets placeholders inside another curly brackets placeholder. However, the expansion has a solution for this which is using $(placeholder)$ instead of curly brackets.
ty
Hi?
}
no there isn't one afaik I'm afraid
you can go and manually convert them on minecraft-heads.com but no placeholder for it
oh damn I didn't know this. PAPI has so many hidden things xD I should go thru the code at some time
is there a way to clear a placeholder
what do you mean by clear?
the placeholder im using counts how many kills you hav
have*
and i want to be able to reset it
is there a way to do that?
is it one from the Statistic expansion?
yea
all that data is saved in your main world folder in the stats fodler
ty
is there like an easy way to reset it
could i just delete all the files in the stats folder or would that break it
you can just delete all of them but it will reset all the statistics not just the kills
did you stop the server before deleting all that?
i restarted it after i deleted it
you have to: stop, delete, start
ooh
Can someone tell me how to display the full held item in deluxemenus gui
heyy , i need help to get placeholderAPI working on velocity , it wont load and i cant fix that in any case what did u guys think ? any idea how to geh all placeholders on to velocity ?
if there is no way to get that working please tell ^^
Unable to load plugin plugins/PlaceholderAPI-2.10.9.jar
com.velocitypowered.api.plugin.InvalidPluginException: The plugin file PlaceholderAPI-2.10.9.jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.getSerializedPluginInfo(JavaPluginLoader.java:134) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.loadPluginDescription(JavaPluginLoader.java:44) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:76) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:268) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:210) ~[velocity.jar:1.1.3]
at com.velocitypowered.proxy.Velocity.main(Velocity.java:55) ~[velocity.jar:1.1.3]
please any idea
The plugin file PlaceholderAPI-2.10.9.jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
sure but what did i do now ? there should be a way (a version) for velocity ?
the source code looks to be only for bukkit
is port 80 open on your machine?
no
probably should be open for recieving or whatever your OS calls it
ah
Is there a method to add placeholders in motds on essentials?
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?
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,
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,
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,
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,
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,
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,
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,
^
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.
Was wondering what the placeholder to link deluxetags with essentials chat
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,
error
javax.script.ScriptException: <eval>:1:63 Expected ; but found var
@cunning elk,
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,
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?

