#placeholder-api
150650 messages · Page 26 of 151
dchat
Yeye that's correct, everything seems fine, most likely cause it's an internal placeholder so something might be cucked
oh I think it's because it's a Relational Placeholder
it works with placeholders that aren't relational
dang
Can you not just change it in the factionsuuid config?
wait why you didn't use my code?
it was just one line args[0].toUpperCase() and should've worked
this is how you would've called it %javascript_toupper_{rel_factionsuuid_relation}%
#spigot-linking
for support on deluxechat
wait
im dumb ignore me
id say try using the dev build of placeholderapi but i could be wrong
Can anyone tell me the placeholder for all players online
This is for a server running velocity proxy
pinger_players_play.surrealcraft.net
does not seem to work
Seems to me like the TownyChatExpansion is missing the #getVersion() method. I don't think you should be worried about it but make sure there isn't a more updated expansion that fixes that.
you can try the Bungee Expansion. The placeholder is %bungee_total% you just need to have PAPI on all your servers + the Bungee expansion on all of them as well
BungeeQuack? @turbid tide
^
function getIsKit(){
var kit = %essentials_kit_is_available_args[0]%;
if(kit === "no"){
return "nu";
}
if(kit === "yes"){
return "da";
}
}
This shows "nu" everytime, doesnt matter if kit is yes, and i dont know why.. help please 🙂
function getIsKit(){
var kit = PlaceholderAPI.static.setPlaceholders("%essentials_kit_is_available_" + args[0] + "%");
if(kit === "no"){
return "nu";
}
if(kit === "yes"){
return "da";
}
}```
also that entrire code is just a waste
you could just use arguments for the entire placeholder
wdym
gimme 3 minutes to finish this game
ok so my question is why have all that code
when you can just have this
if(args[0] === "no") "nu"
if(args[0] === "yes") "da"```
this is literally all the code you need
Blitz leave
Because.
LEAVE
args[0] === "no" ? "nu" : "da"
ha
or that
If you really wanna cut the bullshit
I guess
ok
so @novel moss this is the entire code you need in your js file args[0] === "no" ? "nu" : "da"
made by blitz stolen by frosty
and you call the placeholder like this: %javascript_iskit_{essentials_kit_is_available_daily}% for example
yes true
i would never lie
I trust you
You ain't ever seeing MT Sellinq.
MT?
MessageToggle
Yay
MessageToggle shall see daylight!
Lemme try
Watch it not work
it will
👍
For some reason my redis bungee placeholders are not working
/papi parse me %redisbungee_total% comes out to 0
is there any difference to the following in order to obtain the value of a placeholder? do they all do the exact same thing? is there any reason to use the other methods instead of just using the top one which is the simplest?
"%player_ping%"
PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%player_ping%");
PlaceholderAPI.parsePlaceholders(BukkitPlayer, "%player_ping%");
papi.parsePlaceholders(BukkitPlayer, "%player_ping%");
is there any extra setup for redisbungee expansion to work? I dont understand
lol ok so does PAPI have a limit on the length of a number? When I use the following condition it breaks after the returned value gets too high (idk the exact limit)
type: '>='
input: '%ecogens_player_stock_owned_raw%'
output: 1
PAPI is having issues with balances over a certain amount actually, my console gets spammed https://paste.helpch.at/ogufopekir.php
I don't think its papi
its the expansion you use
they probably used an integer and not a long
which I thin has a limit of 2.2B or something
function getPos(outPos) {
var arr = [];
for (i = 1; arr.length < outPos; i++) {
var name = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%parkour_leaderboard_" + args[0] + "_player_" + i + "%");
//arr.push(name);
return name;
}
}
getPos(1);
/papi parse me %javascript_leaderboard_svarta% returns Invalid syntax
/papi parse me %parkour_leaderboard_svarta_player_1% returns MaximMaximS
@mossy helm,
ugh didn't you say it works correctly? Let me see if I still have it saved somewhere
try this then
pls
is update_interval capped at 10 seconds? cause it just wont update every second for me, only every 10 seconds
is anyone able to answer this?
why arent my placeholders working in gui plus?
Hii, I would like to know if this is good:
´´´ - 'console_command: summon Fireball %player_x% %math_{player_y}+10% %player_z%'´´´
It sais that it can not be summoned out of the world
please...
OMG pls can somebody help me???
How about you wait patiently untill someone helps, when someone has time and knows the answer to your question, they'll help.
ok, it just looks like you are ignoring me
We dont have to help if we dont want too
🤷♂️
People have lifes too
or maybe some dont understand
take in all the equations
Ye
or you could all just ignore him
he literally just sent 2 messages. he been waiting for a while
Is that suppose to be a javascript placeholder?
so one problem might be that you're trying to return multiple variables which I don't think its possible
also I think you have to parse i to a string
I'm not that good with java but from a quick look that's how it looks
yes
You went straight past his message too soo
wait
function test() {
var i = 1;
var name = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%parkour_leaderboard_" + args[0] + "_player_" + String(i) + "%");
return name;
}
test();
also Invalid syntax
yes but I didn't start critcising him for wanting help. That's all. I'm not here saying that you did wrong or anything
String is how you parse an int to string in JS? isn't it same as kotlin i.toString() ?
hmm
function test() {
var i = 1;
var name = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%parkour_leaderboard_" + args[0] + "_player_" + i.toString() + "%");
return name;
}
test();```
still not
what if you just use ```js
function test() {
var name = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%parkour_leaderboard_" + args[0] + "_player_1%");
return name;
}
test();```
does this fix it?
because we need to know if its the i that breaks it
#toString() is useless btw Blitz
hmm so it is the i that breaks it
well if Frosty is right you should just be able to use + i +
no need to parse
that doesn't work
hmm
can you not parse it?
just show it
as it is
function test() {
var name = "%parkour_leaderboard_" + args[0] + "_player_" + i + "%"
return name;
}
test();```
wdym with show it?
but i is not defined
invalid snytax
so Frosty what were you saying about that .toString() not being necessary? xD
It's not
well
then why does he get InvalidSyntax? wait fuck I just realised
...
@safe vault how are you calling the placeholder?
/papi parse me
ye
but the actual placeholder?
%javascript_something...something%
how does it look?
here
you didn't understand me again
/papi parse me %javascript...
what do you type therE?
after papi parse me
here
check the whole message
do /papi parse me %javascript_yourplaceholder%
itz here
/papi parse me %javascript_leaderboard_svarta% returns Invalid syntax
/papi parse me %parkour_leaderboard_svarta_player_1% returns MaximMaximS
i sent that already
the issue is with that i
can i somehow log to console?
IDk
i managed to get it working
var holder = "%" + "parkour_leaderboard_".concat(args[0], "_player_", i.toString()) + "%";
var name = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, holder);
So I am having a few problems and I do know some of it has to do with papi, but I just restarted my server to update a few configs and this happened http://prntscr.com/vrcxtk
I restarted a second time and nothing worked, couldnt type in chat run any commands. Anyone have any suggestions? Here is my console log https://paste.helpch.at/adunazuluc.md
ok so a few plugins not working because Skript still mising, one is using a deprecated method (IControlU), no idea what's up with PickupMoney and then the fun starts
So remove IControlU?
ugh idk if that is causing that
but a lot of errors after
let me see
what I can understand
are you sure you still have Disk Space on your server?
if yes then redownload ShowItem. Seems like is missing some things.
ChestShop is not working because ShowItem is not working
hmm
I was trying to clean up my console and clear the errors.
iDisguise sends like 100 erors
its trying to retrieve info for some profiles but something they don't exist or something
I was going to remove iDisguise, And the server has plenty of storage.
ye then redownload ShowItem. you might have gotten a corrupted jar
ok so DeluxeChat error lets see
what's your server version?
1.12.2
oh ye missed that. its there
hmmm
can you also redownload DChat?
and see if a new build fixes that eror
also
%pl_prefix%player:%pl_suffix %message are wrong
I assume that's how you've set the placeholder in DChat?
Yes I can, give me just a moment, So remove ID, ShowItem and reinstall, same with deluxechat.
And no
That's completely new.
Something is interfereing but I have no clue what placeholders pl is.
oh wait pl_prefix. isn't that chat control?
Chat control has the directory still but the .jar is gone.
[16:29:14] [Server thread/ERROR]: Ambiguous plugin name ChatControl' for files plugins/ChatControl-Free-5.9.1.jar' and plugins/ChatControl.jar' in plugins'
not what the logs say
you got 2 Chat Control jars
by the looks of it
Interesting.
Let me check my FTP
Okay you were right, they were still there, but with an extra.
Now what?
I just removed IControlU, iDisguise, and about to remove showitem
you removed ChatControl as well?
Yep.
if yes then restart
Both files.
and send another startup log
Alright
The new startup log
DeluxeChat is having issues and so is ShowItem still
And chestShop
well chest shop doesn't work becasuse ShowItem doesn't
and IControlU
is still having problems
I think that plugin needs updated
because is using some deprecated methods
wait
u sure this is a new startup log?
because you still got IDisguise
this seems to mee like its the old log
yep it is [16:29:14] [Server thread/ERROR]: Ambiguous plugin name `ChatControl' for files `plugins/ChatControl-Free-5.9.1.jar' and `plugins/ChatControl.jar' in `plugins'
don't use plugman
you should be doing a full restart when making changes
Also is the issue still PAPI or now more focused on DeluxeChat?
I would say both, a couple extensions are not updating, Those are Bungee, Player and playerinfo
lots of errors here
chestshop, pickupmoney, deluxemenus, galistener, idisguise, cs-corelib, holographicdisplays, deluxechat
1st step: plugman can break a lot of plugins, don't use it
Yeah, I was working on clearing and fixing them
I'm aware of that, I think one of my staff added it.
Which I need to talk to them about it.
wait you're using plugman?
I believe the dev build of deluxechat should work on 1.12.2 if you want to try it @unreal glade
#deluxechat it's in that channel, pinned
also, I didn't even mention all the plugins that aren't loading because of Skript
and then ItemHover
incontrolu is freaking out
Just did
because that log still shows ChatControl loading
I removed plugman
ok send new log when you can
I'm so confused
do /pl and send an image
of all the plugins
you just sent a log from 16:33 but the log you sent before is from 16:44 and not only that ChatControl still shows as loading
Alright I'm gonna have to open the zip one second. It's not updating the latest log.
but
opening a zip is not rly going to help[
because we need the latest
after you just fully restarted your server
ye so unless I get the newest log I don't have anythign I can tell you
does the chat still look like that?
when you type?
Prefixes
what are you using to show the prefix
I use LP
/papi parse me %vault_prefix% what does it return?
Yep, I've done it four times xD
Everytime it kicks me saying [PROXY] Lost connection to server
but in console
Yes
because that is not the latest if you have 100% done that
just read the first 11 lines of the log you can see it's wrong
in the error you sent it says viaversion is throwing an error
you didn't try the dev build of deluxechat either?
The damn plugin is gone
how were you able to send us a snippet?
@unreal glade,
Caused by: java.lang.ClassNotFoundException: me.clip.deluxechat.compatibility.Spigot_1_12_R1_Chat
what 1.12.2 are you using...?
a custom jar?
wait you still haven't tried the 1.16.2 dev build
I have no guarantee it will work, but it's best to test
it's in #deluxechat pinned
custom jars can break plugins as well. not saying it will, but I also don't know what's been done to it
Alright
but I believe all clip's plugins are built against/for spigot
even paper breaks some plugins (maybe not clip's, but others)
That's understandable.
wait...
this
var returned;
var players = [];
var wrong = false;
function getPos(outPos) {
var i;
for (i = 1; players.length < outPos; i++) {
var holder = "%" + "parkour_leaderboard_".concat(args[0], "_player_", i.toString()) + "%";
var name = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, holder);
if (!(players.includes(name))) {
players.push(name);
}
}
returned = players;//[players.length - 1];
}
does this
[Fri, 27. Nov 2020 20:29:25 CET ERROR] [PAPI] [Javascript-Expansion] An error occurred while executing the script 'leaderboard':
TypeError: players.includes is not a function in <eval> at line number 11
I think its include not includes
Pretty sure the js expansion runs ECMA 5
what does that mean?
so what should i do??
ugh idk for sure. No idea which are available and which are not
when i want to replace array.includes(); ?
oh ok
so
you would have a boolean value
that's false by default
and if you find the value you're looking for in the array
make the boolean true
and then if the boolean is true you run this players.push(name);
loop using Array#forEach
ok thx
hey all quick question.. is the latest release of papi working on 1.16.4?
perfect. I couldn't find the link for dev builds. thank you
im using the javascript addon to make a placeholder for my towny server, but i cant figure out how to get it to work
im trying to get it to display a message if they are in a town, and a different message if they arent
You don't know how to create a new js placeholder? or you don't know what the actual code inside it should be?
is there a placeholder that returns true/false or something like that if you're in a town already?
yep
what's it?
%townyadvanced_has_town%
well that returns yes/no if you have a town right?
yep
yes
yes
"%townyadvanced_has_town%" == "yes" : "Message If Player Has Town" ? "Message If Player Doesn't Have Town"```
this is the entire code
its 1 line
...
make sure you're using latest version of JS expansion tho
oh
wait my bad
"%townyadvanced_has_town%" == "yes" ? "Message If Player Has Town" : "Message If Player Doesn't Have Town"
here
messed up the ? and :
oh ok
thank you
ive never made a server before and ive only done a little bit of coding so this is pretty new to me
ill let you know if that works
somehow they got swapped
im in a town but its showing the message if they arent in a town
oh
are you sure %townyadvanced_has_town% returns yes and no
when you think it does?
it returns true and false and i changed where you had yes to true
...
i had True instead of true
it works now
thank you
you'd probably need multiple placeholders or something
because I don't think \n will work
oh ok
i tried \n and it didnt
see*
oh
well I can edit the current one
to work with multiple lines
let me see
oh ok
"%townyadvanced_has_town%" == "true" ? "Message If Player Has Town" : "&7Youre not in a town! But you can do /t new to start your own"
"%townyadvanced_has_town%" == "true" ? "&bTowny: &7%townyadvanced_town% <<SPLIT>> &bTown Bank: &7%townyadvanced_town_balance%" : "&7Youre not in a town! <<SPLIT>> But you can do /t new to start your own"
can you try this javascript? https://paste.helpch.at/colilalahi.nginx
you will use it like this:
%javascript_NAME_1% and %javascript_NAME_2%
you put the one that has 1 in it in the first line
and the other one in the second line
huh
nothing is there
what if you do /papi parse me %javascript% and of course you replace the placeholder with your actual javascript
var noText = ""
var yesText = ""
switch (line) {
case "1":
yesText = "&bTown: &7%townyadvanced_town%"
noText = "&7Youre not in a town!"
case "2":
yesText = "&bTown Bank: &7%townyadvanced_town_balance%"
noText = "&&But you can do /t new to start your own"
}
"%townyadvanced_has_town%".toLowerCase() == "true" ? yesText : noText```
its the thing you had in the link
no no
the actual placeholder
/papi parse me ...soemthinghere...
what goes instead of somethinghere
/papi parse me %javascript_NAME_1%
NAME_1.js
what
oh
show me your javascript_placeholders.yml
file: NAME_1.js
NAME_2:
file: NAME_2.js```
ok that makes sense
you don't need all that
so
towny:
file: towny.js```
instead of those 2 you sent put this one
then do /papi reload
then go to towny.js and put this code inside ```js
var line = args[0]
var noText = ""
var yesText = ""
switch (line) {
case "1":
yesText = "&bTown: &7%townyadvanced_town%"
noText = "&7Youre not in a town!"
case "2":
yesText = "&bTown Bank: &7%townyadvanced_town_balance%"
noText = "&&But you can do /t new to start your own"
}
"%townyadvanced_has_town%".toLowerCase() == "true" ? yesText : noText```
then use %javascript_towny_1% for line 1 and %javascript_towny_2% for the second line
@gentle summit
ok sorry im back
it repeats the message "but you can do /t new to start your own" on both lines
can you do /papi parse me %javascript_towny_1% and tell me what it says
then do /papi parse me %javascript_towny_2% and tell me what it says
towny_1:but you can do /t new to start your own
towny_2:but you can do /t new to start your own
sorry for using so much of your time
it repeats the town balance message
also i changed the % to a { around the placeholders in the code
because they dont work with % and you have to do {}
what?
what are you talking about?
they do work
but still
that's not going to affect the result
ik it wont affect the result
but when they were %s it didnt work
and i remembered i saw somewhere they need to be { if they are a placeholder inside of the java placeholder
ohh
it still didnt work when i had %s
but when i changed them it shows the balance
var noText = ""
var yesText = ""
switch (line) {
case "1":
yesText = "&bTown: &7{townyadvanced_town}"
noText = "&7Youre not in a town!"
case "2":
yesText = "&bTown Bank: &7{townyadvanced_town_balance}"
noText = "&7Do /t new to make one"
}
"%townyadvanced_has_town%".toLowerCase() == "true" ? yesText : noText```
don't you have to change it here as well then? https://i.imgur.com/K0IDM1f.png
...
i guess not
because when i did that its showing the message saying to create a town
but im in a town
hmm
var line = args[0]
var noText = ""
var yesText = ""
if (line == "1") {
"%townyadvanced_has_town%".toLowerCase() == "true" ? "&bTown: &7{townyadvanced_town}" : "&7Youre not in a town!"
}else {
"%townyadvanced_has_town%".toLowerCase() == "true" ? "&bTown Bank: &7{townyadvanced_town_balance}" : "&7Do /t new to make one"
}```
can you try this code please? @gentle summit
oh finally. you're welcome xD
I have a question about adding my plugin to the papi wiki listings. I'm about to create a pull request, but the docs say I need to ask about doing that on this discord server first. Is there anything special that needs to be done prior to creating a pull request?
i have a quick question about featherboard (or really any scoreboard plugin) when someone has a sec.
what is the placeholder to show the rank WITH the rank color? right now I use the vault rank placeholder, but id like to know how i can display the rank with its color. also, my online player placeholder doesn't show up. its just blank.
ERROR [FeatherBoard] Error in placeholder: {playtime_hours}
I'm not aware of anything that needs to be done. You can make a PR and they'll probably tell you if something needs changed etc.
If your scoreboard plugin supports PAPI then its %vault_prefix% if your scoreboard plugin is FB tho you have to use {placeholderapi_vault_prefix}
Hmm, ok. I'll try again. Hold on.
make sure you have the Vault expansion installed for both ways tho
/papi ecloud download Vault and /papi reload
Yeah, I've done that.
well then those should work
Its just blank.
as long as you've set your rank prefix
are you sure you've set your rank prefix correctly ?
I've set it in TAB and PrefixSystem (are the plugins I use for the prefixes) and I use pex. I have vault installed but don't know where I would set prefixes there.
K
can you send link to the plugin? xD
Well, I've been using pex since 2017, so i just know it best. Even though its outdated.
which one?
pex
bcz the first search results
are some random plugins that also include pex in their name lol
try search permissionsex
oh
I see
its not on spigot
btw aidan you should look into LuckPerms
has an import feature as well to import pex configs
BlitzZzZzZzZ: Thanks for the reply. I already opened a pull request. But the documentation that it tells you to read prior to creating a pr says you must first contact the repository owners to discuss the pr prior to creating one. I guess it was just a copy and paste statement. lol... Thanks again for the response. 🙂
Hmm, ok.
would that really be the issue tho? where can i set prefixes in vault?
so where does vault get the prefix from?
oh shit
i dont have prefixes set in pex lol
hold on ima try that
oh you know how to set them? xD I was searching for how to set tthem
also found the wiki https://github.com/PEXPlugins/PermissionsEx/wiki/
/pex group <group> prefix [newprefix]
that's how you set it
trying rn
ahh there we go xD
now its showing up
and what about the playtime? my console is being spammed by this
ERROR [FeatherBoard] Error in placeholder: {playtime_hours}
well there is the statistic expansion
instead
so /papi ecloud download Statistic and /papi reload
then use {placeholderapi_statistic_time_played}
youre the man! thanks.
is there a way I can change/shoten the layout of the time?
i dont need the seconds, and would like it to be displayed in only hours, if thats possible
thanks so much.
How could I combine the player count of multiple servers into one number?
-paoi bungee
I am well aware, but I am looking to count specific servers, not all of them.
Oh math + bungee then
Appreciate it 🙂
One more question though. Is there an if function, to set the text to something else if the server is full for example
Javascript expansion if you want more customizability
Hmm let me see if I can find the links
On phone rn
Thanks again
Once again, how am I gonna edit the wiki on JS expansion though?
you ain't got access to it?
Define "isn't working"
Hey, my countdown timer is showing as 1d 32h, my plugin is up to date, is there a way to fix this?
This is what I'm using as well:
%server_countdown_dd.MM.yyyy_30.11.2020%
update to the dev build
of PAPI
link ^
Thank you, I'll give that a try 🙂

everytime i try to /papi reload i get this error and im unable to reload my placeholders
@humble nymph hi
How would I display the persons information that I'm running a command on?
For example, I'm using Statistics so there is this placeholder: %statistic_days_played% . It displays my playtime on the GUI when I want it to display the information of the player I'm running the command on. Anyway to make that happen?
Hi, I'm trying to use %server_countdown% to count down to midnight - using format HH.mm - just shows up as zero. Anyone know why?
is this deluxemenus?
Yup
use args
Can I get a example?
i havent used args myself, but heres the wiki if that helps https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/gui#args
all ik is that its possible 🙂
Thanks, I'll take a look
Oh args like {player}
Yes I know that
But I'm talking about placeholders
As far as I can tell args don't work with them
Didn't make a difference :/
):
i tried using the %player_item_in_hand_level_Sharpness% placeholder and it brings up an error
Try making sure the item has the sharpness enchantment, but I've never used that placeholder before
it did
ow it uses a different naming ok
Nope
https://pastebin.com/8KBUiaEd how can i fix?
try to open the papi plugin.yml and add EssentialsX as soft depend
it worked thanks
@pulsar locust,
np
does anyone have any experience with the ScoreboardObjective placeholder? I am currently trying to parse the displayname of the objective, but it keeps returning ObjDNE
how do I make top kills in holographic display?
LeaderHeads support a leaderboard for HD
its a premium plugin tho, and it could be pretty performance-heavy sometimes
Hey! How can I remove comma using javascript from %jobsr_user_jmaxexp_(jname/number)%?
args[0].replace(",", "")```
thanks
if you need help setting up the js placeholder there's a wiki as well
but yeah the code should just be one line
Hello, it seems that PAPI for LeaderHeads isn't working. (PS: I'm not sure about what im saying, maybe i'm just noob.
https://i.imgur.com/5DWz0c6.png
Is there anyway to resolve it?
idk what that is supposed to be
but is not correct, leaderheads have other placeholders
lol
What you're showing has nothing to do with PlaceholderAPI?
Someone know how to transfer placeholders across bungee/servers? I have minigames server and some minigames does not support MySQL and I want to show player stats in Profile menu on Lobby server and I didn't found any plugin that can transfer Placeholders across servers, if someone knows, help me please 🙌 ...
there are some APIs and plugins out there. just search PlaceholderAPI Bungee Bridge and you should find some
Thank you for respond but I didn't found any plugin 😦
This is actually something that I'm trying to integrate into LeaderHeads
To make it more easy to see your own stats (as well as daily/weekly/monthly stats)
Cross-server as well
@turbid tide does that depend on whether the expansion on the other server (in your Bungee network) supports retrieval of data for offline players?
how do I make top kills in holographic display??
you got a top kills placeholder first?
Like DeluxeCombat or LeaderHeads or whatever
then its pretty easy
just install HolographicExtension, ProtcolLib and you're good to go
if not
then you need to have a leaderboard plugin first
or you can check this
idk if it has kill tops
oh nvm xD
that's just palytime
not sure if this is the right place to ask but, i wanted to know if it is possible to show what player a server is currently on with a placeholder. this would be meant for bungeecord. i don't know much about making plugins or anything lol
well if you want to show that info in the same server then its possible yes
%server_name%
Oh alright, so it wouldn't be possible to show it over a network? I wanted to make my friends menu show what server their friend is connected to but it doesn't seem like it would work
well not using PAPI alone no.
But probably possible with this: https://www.spigotmc.org/resources/bungeeplaceholderintegration-placeholderapi-bungee.79900/
it does require some plugin development knowledge tho I'm pretty sure
can you help me?
huh?
https://imgur.com/a/279Qeca why is it like this?
ugh what're you using?
/hd setline topkills 2 &e&l1. &d&l%player_name% &8&l- &c&l%deluxecombat_ranking_KILLS_1% This is the placeholder I used
DeluxeCombat?
oh
well because there's no one to take the spot
DeluxeCombat takes the stats from what it has saved itself. So if you just added it it has no stats to fetch
Also did you just purchase DCombat for the Leaderboard part? xD
yes
smh
make sure you look thru the entire plugin and configure it
it has a lot of great feature but some are enabled by default and you might just not want them on your server
blitz, what is the placeholder again for playtime using statistics etc.?
@mild gale,
%statistic_time_played%
got it thanks! ❤️
I'm getting this error on all my javascript placeholders since I updated my papi:
[Server] WARN [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder Cooldown isn't initialized! Defaulting to global
How could I fix it?
@mossy helm,
Not rly an error. Just a warning. You can disable this by declaring the engine in javascrip_placeholders.yml
Oh my bad lol. I use val instead of var
Here
Alright thank you! Gonna update here if I get it solved lol
Yes Ravensky
@rare lily please make it off by default and add a debug option in config.yml or something
This is like the 10th persons in the past week
It works fine now
but some of my javascript placeholders aren't showing any values when parsing them. This happened when I updated from 2.10.6 to the last version.
A placeholder example that isn't showing any values now is this one:
var placeholder2 = "%luckperms_check_permission_CustomEnderChest.level.5%";
var placeholder = "%luckperms_check_permission_mejoras.enderchest%";
function permission() {
if (placeholder == "&aSí" && placeholder2 == "&cNo")
return "&fDisponible";
if (placeholder == "&cNo" && placeholder2 == "&cNo")
return "&cEn mantenimiento...";
if (placeholder2 == "&aSí")
return "&2¡&aMejorado al máximo&2!";
}
permission();
Does anyone have any idea of why isn't this working?
@mossy helm,
Nevermind, I could fix it
now you need to put "§" instead of "&"
why lol? xD
we can fix that. xD
hmm
so by the looks of it .split is not a function? hmm that's weird.
ohhh
had to convert it to a string first
https://paste.helpch.at/evawuzabic.js try this please @mossy helm
are you sure about that? & works for me
^
||wiki for all values: https://github.com/Tanguygab/PlaceholderAPI-PlayerList-Expansion/wiki||
k lol xD
Thank you for the expansion
well if you try to understand the placeholder with only what you see here, you can't really understand anything 😅
I had the papi wiki open :p
There's no way to somehow make it so people who can been seen by certain groups get returned, right?
(for vanish)
%playerlist_online,cansee,no,list% is apparently a thing but doesn't return anything
@junior musk help this guy out smh. xD
:pepehands:
PremiumVanish
I just want a list if players which can be viewed by a default user
yepp I did
But then it shows everyone except me (me, who is in vanish)
%playerlist_online,normal,yes,list%
I parsed it as another players who can't see me in vanish and it shows my username
:pepehands:
I'll see if I can change the cansee thing to support PV
Please @ me / dm if that becomes a thing
I have a temp solution for it, best of luck with them homeworks!
Do I have to put placeholderAPI on the bungee with the bungee placeholders
Is there a placeholder where I can find out how much money I have with vault and if so what is its name and which eCloud do I have to install and where can I set where the placeholders should update themselves?
@torpid plume ^
Thank you!
And you can still set where the placeholders should update themselves because, for example, in my sidebar it is not so nice if you have to rejoin so that it is updated
well the placeholder itself updates. The sidebar needs to update as well
because if you do /papi parse me %placeholder% then give yourself some money and do the same command you'll see its updated
no xD
Yes, I'm sure. Well only for conditions, but for returns you can still use & without any troubles
lmao
just ask away. oh you're writing a bible xD
I'm trying use %math_<math expression>% to divide %mcmmo_power_level% by 5 and return the lower multiple of 5 for example, If player's power is 109, it must return 20, and if 110, must return 21
I just can't think of a formula for that
@atomic trench do you mean floor division?
probably need a js expansion instead
I'm 100% sure a math expression is enough.
I'll check that, thanks!
%math_floor({mcmmo_power_level}/5)%
Not sure if that would work, never used it myself
wait
use {} for mcmmo placeholder
@atomic trench
O wait precision is a thing
i mean, either work

floor or precision
floor gang
xD
What would be the most lightweight one for a server?
I mean at that point does it rly matter?
It wouldn't make any difference most very likely

Yeah you're right, I don't think some placeholder will be harder to process than most villager farms that are on my server
1500 villagers loaded at the same time it's just not fun
I mean a math division is the latest thing you'll have to think about when you make a minecraft server.
Oh let's not talk about Jobs formula then 
Hey guys
using the API, I'm trying to set relational placeholders regarding faction
Let's imagine the situation
Two player, A & B
A is enemy for B, but B is neutral for A
then, when using PlaceholderAPI.setRelationalPlaceholders, who is Player one and Player two when sending the message to player one
public static String setRelationalPlaceholders(org.bukkit.entity.Player one,
org.bukkit.entity.Player two,
@Nullable String text)```
I need to figure out who is target and who is source between the two args
PAPI API API
🐔
🧑🦯
so what is the issue here?
i'm trying to send custom JSON message
with hover effect things
and i'm using the rel placeholder to show color (red for enemy etc)
when using the method
idk who is "one" and "two"
like
it's not
explicit
oh
I mean logically one is the source
but maybe just try both?
idk i've not actually used papi much lol
is there a specific reason why registration is turned off for ecloud
it's been like that forever I think. Might be wrong. Contact @funnycube#0001 he'll help you make an account
thonks interesting thanks
Hello, can you help me, how add statistic enchanted golden apple? (%statistic_use_item:<Item Material>%) because ENCHANTED_GOLDEN_APPLE dont work...
what's your server version?
Hey there
i have a problem with hex color codes not showing up from luckperms in the Anmated tablist plugin
is this a papi problem?
1.8.8
@marble sandal,
%checkitem_remove_amt:1% placeholder is taking twice the amount if twice of the required item is available
so like, if i have one required item, it will work. if i have another copy of the required item, it will take the copy.
issue conducted from Command Panels
how do i have to use the ceil function with the math placeholder?
i tried %math_ceiling({vault_eco_balance}/10)*10]%
From what I see on github there is no ceiling method
It's part of EvalEX, which is supported according to the documentation
Yeah that was the problem
many of my placeholders are broken and i cant reload my papi. it just gives me this error
am i missing an update or something im completely lost
Put the papi config in there
iv pretty much just put it in my server and done eclod things in game
Its not, unless it has a different name
so i have something i need to add to my config myself?
Last commit 2018 @warm topaz
🥲
I did update it this year lol
ah
ok well where do i get this update to fix my issue?
do you see where javascript, vault are?
Like the level?
Add this and reload papi again:
config:
configs:
example: example.yml```
im not sure exactly where you mean? im really dumb sorry
its in my placeholder config?
use this config https://paste.helpch.at/yegovuxoli.bash\
its just showing up as a white screen for me
remove the slash at the end
ok that did it. so you want me to replace all my config with this then run /papi reload in game right?
yes
great, np
ok so bascailly i need help on getting placeholderapi to show my 'playercount' on bungeecord servers
@turbid tide Unknown expansion.
use this expansion ^
ive done that
you need to have PlaceholderAPI on all servers (not proxy) and same for the Bungee expansion
yep
k
and it still doesn't work?
nope
wdum parse?
/papi parse me %placeholder% but of course change the %placeholder% part to the placeholder you want to use for example %bungee_total%
ok but what if its an MVdW placeholder?
im tring to get it on featherbaord
and that uses MVdW
xD nah no worries
Hey I'm having some weird issue that started out of nowhere on my bedwars1058 server. The vault placeholders aren't working with bw1058 in the language.yml
I'm running luckperms on a bungee network and everything looks properly connected
it's vault then?
whats the error msg in console?
should I go to vault for this issue then?
