#placeholder-api
1 messages ยท Page 123 of 1
can u use that in js?
I'm pretty sure that Frosty used it to help with a js of Tanguygab's
actually @junior musk could you help? xD
;((
@brisk coral you online? If not sorry for pinging xD
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
but why it doesnt work then?
var kitname = args[0];
var perm = "%essentials_has_kit_" + kitname + "%";
var status;
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
status = "&aโ"
}
status = "&cโ"
} else {
status = "&e?";
}
return status;
}
kitcheck();
when i'm using %javascript_kits_vip% it doesnt work, it shows as โ, the problem is with perm with kitname but when i'm using kit name instead eg. perm = "%essentials_has_kit_vip%"; its working
why?
he's trying to use a variable inside the placeholder
yep
?
var kitname = args[0];
var perm = "%essentials_has_kit_" + kitname + "%";
var status;
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
status = "&aโ"
}
status = "&cโ"
} else {
status = "&e?";
}
return status;
}
kitcheck();
ok
can you return perm?
okkkk
I'm pretty sure it will just return the text but yeah return it just in case xD
ugh?
why are you checking for a check mark?
where did that come from? xD
oh xD
I see
so it parses the placeholder
yep
so the placeholder works fine
its just inside the javascript
it only parses it when you do the command
so you need to parse it inside first to make the check
var perm = "%essentials_has_kit_" + kitname + "%";
with
var perm = "%essentials_has_kit_vip%";
can you type /papi parse me %essentials_has_kit_vip%
BlitzZ, you needed me?
https://prnt.sc/txe7iv this is that checkmark
ye
how did you fix the placeholder with a variable inside it/
I remember frosty doing it for you
okay so
PlaceholderAPI.static.setPlaceholders(player, "placeholder");
var kitname = args[0];
var perm = "essentials_has_kit_" + kitname + "";
var status;
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
status = "&aโ"
}
status = "&cโ"
} else {
status = "&e?";
}
return perm;
}
kitcheck();
what does that return
Hi quick question, what is PlaceholderAPI used for?
huh?
that's what I want to figure out
Try what tanguygab sent
ok
even if it returned %essentials_has_kit_vip% blitz it should say yes
var perm = "essentials_has_kit_" + kitname + "";
:L
yes...
I did that on purpose
because I wanted to see the value of it
and make sure it was correct
no it shouldn't say yes
because then it makes no sense for it to be say no
it does make perfect sense
what
why does it say no?
the string inside the js would be the following
%essentials_has_kit_vip%
not parsed
yeah
if it returns that
papi will parse it
so why does it return no
it should return the check mark
yep
it makes no sense to return no
hmm that's weird didn't see the other part of the test
did you parse it on yourself both times sergiu?
when its vip instead + kitname + its working but when its viceversa its doesnt
can you send the js you have now?
just send the entire thing
var perm1 = "%essentials_has_kit_" + kitname + "%";
var player = "%player_name%";
val perm = PlaceholderAPI.static.setPlaceholders(player, perm1);
var status;
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
status = "&aโ"
}
status = "&cโ"
} else {
status = "&e?";
}
return status;
}``` try this after that
var kitname = args[0];
var player = "%player_name%";
var perm = "essentials_has_kit_" + kitname + "";
perm = PlaceholderAPI.static.setPlaceholders(player, perm);
var status;
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
status = "&aโ"
}
status = "&cโ"
} else {
status = "&e?";
}
return perm;
}
kitcheck();
oh
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var player = "%player_name%";
val perm = PlaceholderAPI.static.setPlaceholders(player, perm1);
var status;
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
status = "&aโ"
}
status = "&cโ"
} else {
status = "&e?";
}
return status;
}
yep, same error
it will return the X
yep
it should even throw errors
it will return only if the player doesnt have permission
well no
because its a random else in there
bruh
that else doesn't come after the if ...
wait can you do that?
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var player = "%player_name%";
val perm = PlaceholderAPI.static.setPlaceholders(player, perm1);
var status;
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
return "&aโ";
}
return "&cโ";
} else {
return "&e?";
}
}
try that
what are you on about
cj ...
blitzz look
if (kitname !== null && kitname !== "" && kitname !== undefined) { }else
:))
if (kitname !== null && kitname !== "" && kitname !== undefined) {} status = "&cโ" { }else
that's how it is
what
are you even
bruh
i can't
let's do this
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
return "&aโ";
}
return "&cโ";
} else {
return "&e?";
}
}
๐ฆ
so what I've sent doesn't fix it Sergiu?
nope
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);
function kitCheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
return "&aโ";
}
return "&cโ";
} else {
return "&e?";
}
}
kitCheck();
ok
that should work
and no, val is wrong
good lookin
oh
it might accept a player though instead of a player name
val is a thing just in the new versions or something of javascript I think
ooh
i think I forgot the bottom at some point
call the function
ah, I copied blitz that's what happened
๐
blame me ... nice
xd
well I know
but you could just own your mistake
that you didn't look to what you copied
psshhh
xd
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);
var status;
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
status = "&aโ"
}
status = "&cโ"
} else {
status = "&e?";
}
return status;
}
i tried this
but still NO
uh
but why no
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);
function kitCheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
return "&aโ";
}
return "&cโ";
} else {
return "&e?";
}
}
kitCheck();
it returned... NO?
O.o
bad blitz
:((
no point in holding your return in a variable so it takes more time to do nothing
okay let's see
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);
function kitCheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
return "&aโ";
}
return "&cโ";
} else {
return "&e?";
}
}
kitCheck();```
let's take a look
can we return perm1 and perm?
lets try
ok
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);
function kitCheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
return "โ";
}
return perm + " " + perm1;
} else {
return "&e?";
}
}
kitCheck();
okay let's test this
๐ฆ
fuck i got no idea
vip instead kitname?
var kitname = args[0];
var placeholder = "essentials_has_kit_" + kitname + "";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");
function kitCheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
return "โ";
}
return perm + " " + placeholder;
} else {
return "&e?";
}
}
kitCheck();
hmm
what is your current js then
idk how
var kitname = args[0];
var placeholder = "essentials_has_kit_" + kitname + "";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");
function kitCheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
return "&aโ";
}
return perm + " " + placeholder;
} else {
return "&e?";
}
}
kitCheck();
so you copied my stuff and colored it
yep
I would assume it works without coloring it?
yep
ok thanks you very much, you're my hero :))
I kind of am hurt, because I wanted to try that way earlier but didn't 
?
blitz thank you too
what if I don't want to?
๐ฅบ
ok
var kitname = args[0];
var perm;
var perm1;
var time;
var time1;
var available;
var available1;
var result;
var status;
perm1 = "essentials_has_kit_" + kitname;
time1 = "essentials_kit_time_until_available_" + kitname;
available1 = "essentials_kit_is_available_" + kitname;
perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + perm1 + "%");
time = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + time1 + "%");
available = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + available1 + "%");
function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("โ");
if (result !== -1) {
if (time == 0) {
status = available;
} else {
status = time;
}
} else {
status = perm;
}
} else {
status = "&e?"
}
return status;
}
kitcheck();
This is my final code
and its working
:))
uh
i kept that status :))
you don't need to do the variables like that
Hey, i got a question with javascript placeholders
var towny = "%townyadvanced_town%";
function getTownName() {
if (towny === "") {
return "None";
} else {
return towny;
}
}
getTownName();
``` is not giving anything in return
Try parse the placeholder to see what it returns
thats what i was doing
i just realized i made a typo so you may ignore me lol
thanks tho!
๐
I want to update my expansion but can't seem to see the link to do so
go to versions
don't seem to be there or working
tried downgrading to 2.10.8 and same issue is still occuring
[04:13:05 WARN]: [PlaceholderAPI] mvdw is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
@mint fable
@sinful plume,
Please respect the rules, be patient and don't ping staff members!
Please someone help
with?
how can i make my config work with any placeholder
Is it your own plugin or another plugin?
Ive done that
It doesn't show me how to make all my stuff in config placeholders
You want to make your own placeholders?
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
/*
* We register the EventListener here, when PlaceholderAPI is installed.
* Since all events are in the main class (this class), we simply use "this"
*/
Bukkit.getPluginManager().registerEvents(this, this);
} else {
/*
* We inform about the fact that PlaceholderAPI isn't installed and then
* disable this plugin to prevent issues.
*/
getLogger().warn("Could not find PlaceholderAPI! This plugin is required.");
Bukkit.getPluginManager().disablePlugin(this);
}
}
like... what am i meant to do with this
Well, do you know java?
ish
Learning
String 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);
event.setJoinMessage(withPlaceholdersSet);
}
But the placeholders are in there .java
so how would i make it work for the Config
instead
With that example, you could do something like this
String joinText = getConfig().getString("join-text");
/*
* 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);
event.setJoinMessage(withPlaceholdersSet);
Then that would set the join message to what you have set in the config under join-text
Replacing any placeholders you have there
okay
would this worked if my config looked like this
WelcomeMessages:
- "T"
- "E"
- "S"
- "T"
So, with a list?
yes
Yeah, PlaceholderAPI#setPlaceholders(Player, List<String>)
Just that 1 line?
List<String> list = getConfig().getStringList("WelcomeMessages");
list = PlaceholderAPI.setPlaceholders(player, list);
just change "join-text" to mine?
yeah
So that should work
It should, yeah
What doesn't work?
the placeholders
Is there an error, doesn't do anything?
sure
@lyric veldt you can post images here by uploading them on Imgur first
Robin, is leaderheads compatible with 1.16?
Yes Gaby
Hi, is it possible to evaluate a placeholder api variable, then output a string?
@glacial barn what do you mean with 'output' a string? Output it where? Chat?
@vivid sparrow yes
@steep thorn,
Please respect the rules, be patient and don't ping staff members!
Yes Gaby*
I would like to evaluate if a placeholder variable is true or it is a string, then return a string for deluxechat to use.
use javascript placeholders for that
may I know how to pass placeholder variables to the javascript file?
I think if you have a variable like let foo = '%player%' it replaces it automatically
Wow that's amazing! Thank you!
I don't think let works just var. not sure about that
also you could just mae 1 placeholder and use arguments
so you can use it for multiple placeholders
var placeholder = args[0];
function checkPlaceholder(){
if(placeholder == "true"){
return "yes";
}
return "no";
}```
quick example on how to use args
and when you use the js placeholder just use %javascript_PLACEHOLDERNAME_{placeholdertobechecked}%
I see, thanks for the example
@turbid tide does that actually work?
The current wiki is not that good in regards to information about how arguments or variables are replaced when they represent placeholders (https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Advanced-Scripts)
I think some examples would be nice
I thought you had to declare it as a var and that PlaceholderAPI did some preprocessing before feeding it to Nashorn, but I haven't checked the source tbh
hmm idk where I've seen it when I've learnt about it but no one told me there are some examples somewhere xD
but yeah you can do that
I'll try adding something in there or ask cj to do it since he's better at writing explanations xD
@steep thorn added myself an example. hope it will be enough for most people xD.
Wow I didn't even know that storing data was a thing
oh it is
and its amazing
xD
there is already a placeholder made if you want
on the community javascripts
Maybe something with PlaceholderAPI.static.setPlaceholders or whatever as an example could be cool
I saw it going by here yesterday
oh yeah.
that could be a thing. I just need to think of a way to explain it xD
I'm bad at explaining things. like bellow average :))
ok added @steep thorn hope its good enough. ๐ Already told the others to make it better if they think its not enough
Looks good
oh
I'm dumb
forgot to add the var keyword
welp fixed. lmk if you think there should be something else that needs added.
Does the website integrate with papi to parse them?
I have a theory on why /papi reload don't like my expansion , might be something to do with setting on my ecloud account
What setting
@limber ice,
Please respect the rules, be patient and don't ping staff members!
I wish barry knew how important this was
I can't update my expansions to update them either, not sure what or where I should be clicking on
so you have a love hate relationship with barry also
How do I put a placeholder in a holographic display?
is there a placeholder for the date
Hello, it is the DeluxeMenus plugin, I put the configuration but the data does not appear or an alliance is made, how can I do it to combine everything, please help me
Thank you! Appreciate it ๐
Do you know of a leaderboard plugin (shows up on screen) that also does that?
Does that one show a leaderboard on-screen? Or does it just make a leaderboard using heads and signs...?
you can put the placerholders anywhere it accepts placeholders
so in holograms, scoreboards
signs, menus
Hello, it is the DeluxeMenus plugin, I put the configuration but the data does not appear or an alliance is made, how can I do it to combine everything, please help me
@tranquil yoke You can do holograms, signs, armorstands and also show it in your scoreboard (on the side of your screen) if you have a working scoreboard plugin
Oh wonderful
ugh @north oak /papi parse me %strikepractice_global_elo% what does it return?
It doesn't work, I get like this all the time, I would like to find the command or some kind of help: c
ugh do you have the strikepractice plugin installed?
It's not necesary?
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
Why woud strikepractice not be necessary for showing... strikepractice data?
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
One moment please, I don't speak English, I'm with the translator, I'll install the plugin
ugh?
I don't understand what you expected it to show if you don't have strikepractice??
you don't have the strikepractice plugin?
If I have the plugin, but the error continues
Like we said, send the logs
Right now i upload it
Do I have to add a placeholder to the config to be able to use it? I just downloaded this plugin and am trying to use vault placeholders. I have papi and have uploaded vault to papi
@tranquil yoke did you buy it?
Buy vault or PAPI
'this plugin'
holographic placeholders?
Oh, sorry. I thought you were talking about the leaderboards
Oh shoot I'm on the wrong discord channel my bad
No it's fine
you and robin both seem to be that way lmao
sounds like you thought you were in a leaderheads channel lol
If only that existed
@winged chasm Does the Vault placeholder itself work? /papi parse me %vault_eco_balance%
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
I have better things to do than going through a ton of different log files
Just upload the one that the bot says
You could also have checked the logs yourself:
[14:33:24] [Server thread/ERROR]: Error occurred while enabling StrikePractice v2.5.7 (Is it up to date?)
java.lang.NoClassDefFoundError: me/clip/placeholderapi/external/EZPlaceholderHook
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_222]
at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_222]
Plugin isn't even enabled
And the version you use is heavily outdated
And with 'heavily' I literally mean YEARS
Dec 3, 2018
@near inlet which Papi version?
Looks to be something with DeluxeChat.
I mean build
townychat expansion
is there an expansion inside dchat? O.o
you can hook the 2 but i dont think its related to this
It's more of a listener iirc
i was using the dchat and townychat before i updated papi
after updating papi i started getting these papi errors
Pretty sure it's cause clip removed the hashcode since I've never seen anyone use it
Idek what it's for tbh
Clip will probabaly have to fix it
so for now, use older papi version?
or can i just ignore this safely
ill just downgrade for now lol
how would I get a manually added extension to automatically load on reload
ugh it should load
I dont know java, sorry if its a stupid mistake
@full geyser
I dont know java, sorry if its a stupid mistake
If I comment line 2 and 3, it functions, but obviously only for the first if statement
When updating to the 2.10.9 version of PlaceholderAPI, every server message (excluding chat messages) lose their capital letters. Everything from joining the game to world edit prompts. In console I do not receive any errors but when I downgrade back to 2.10.6 this is fixed.
@main phoenix did you update the expansions
hello, i have a question.
What variable do I need to download for the %player% to work?
/papi ecloud download player
thx
any reason why %statistic_time_played% could be showing wrong/incorrect data?
@near inlet wrong compared to what?
have you upgrade server from another MC version?
yet that palceholder is showing 4days
nope
i updated papi earlier today tho
im also getting weird shit like this
35h..
mine says 4 days, 24 ours, 5 min 49 sec
for a lot of players its just showing completely inaccurate data
statz says 235 days 7 hours
your right it says I have .54 years and the placeholder says 4 days, not even close
What version of papi r u on?
PlaceholderAPI-2.10.10-DEV-108
most likely it's the math it uses
all it has to do is pull from the statistics
there shouldnt be math involved
because the data in statistics is actually accurate, its just the placeholder
statistic is broke
I get this internal error when trying my script. https://pastebin.com/Taq6dAwT
My script:```var deity = args[0];
var watchman = args[1];
var admin = args[2];
function chatcolor(){
if(deity=="yes") {
return "&b";
}
if(watchman=="yes") {
return "&e";
}
if(admin=="yes") {
return "&7&l";
}
return "&7";
}
chatcolor();```
I dont know java, sorry if its a stupid mistake
- it's javascript not java, slightly different
like I said, i dont know lol
/papi parse me %javascript_chatcolor_yes_no_no%
args are separated by ,
so it was throwing a java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
which means you were trying to access an argument that wasn't in the array because there was only 1 argument in the array (yes_no_no) instead of 3
๐
for fuchs sake
@balmy marten
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
oh no, it's happening again
Ban please
its happen again
F
F
go ban --"
ban go brrrr
ban him pls
go to hell kid spam
Shut the f up
how is it still possible to do this
Shut up idiot
him will get mute soon ?
wtf
no staff online ??
@mint fable hi can ban
@high star,
Please respect the rules, be patient and don't ping staff members!
barry should really have an auto-ban for that, lol
^
Bro
@vivid sparrow
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
fuck off barry I know
who pinged me
can you fucking not
I just blocked him. Probably mad that mom finally weened him from the teet
Someone ban this kid already goddamn
please
@vivid sparrow @versed warren
@jade sonnet,
Please respect the rules, be patient and don't ping staff members!
a kid spam
Barry idc
You can stop now, thanks.
He is high on drugs
okay
Stop mentioning people
they gone i think
ty
Lol
please stop ^
When you ping a staff member, also state your problem, we can't just read 50 messages to figure out what's going on.
a kid spam
@modest spindle nice nick, dude
why does the bot not auto ban people that mass mention. come on people this isnt the first time in past few days
Gaby, would it be possible for you to tell the owner to make it so Dyno can autoban people that do that
So it doesn't keep happening
Antb0t it was just a few pings, cmon dude.
a few? I literally got pinged 98 times yesterday and 25 today
They are different people @tidal meteor
A few pings = 15+ pings?
If Dyno is set to autoban, nothing else would need to be done
^
i mean, it's likely the same person, just diff accounts
right click "Mark as Read"
i mean, it's likely the same person, just diff accounts
@north hearth you dont know that
likely is though
lol didnt get pinged again
since it happening daily or whatever
either way, it's happened 3 times in the last day or so, lol
I don't get why people get upset for a few pings but ok.
shouldn't be that hard to add in a "if mass pings > x times: auto ban"
i already have that set
Anyways, we can stop now, thanks โค๏ธ
Muting the server doesn't stop pings I think
Disable pings...
you have to modify the notification settings to "none"
but then you dont get @mentions, ever
This is the first time this has ever happened to me from this server, its not like its a common event lol
Apologies for peeps mass tagging, we've added some stuff to barry now to be more aggressive on it. Shouldn't happen anymore
Looking for voteparty expansion file for PAPI use
You shouldn't ask in multiple channels. Just be patient.
yeah sorry i figured it suited placeholder-api support more
Hi can i ask when i use placeholders in deluxemenus in the lore section, why doesn't the values appear instead the placeholders Example: '%killstats_kills%' appears
any idea why does /papi parse me %math_100000000-103% say 99999900 ?
I know why
its not just that number
it rounds them up
actually it just breaks at 100 millions
or arround there
I tested a lot of numbers and yeah someone messed up xD
https://github.com/Andre601/Math-Expansion SC if anyone that knows what he's doing wants to take a look
I'm sure it's an issue with EvalEx which the expansion uses
The rounding is set to half_up, which rounds numbers between 0 and 4 downd and numbers between 5 and 9 up.
Probs best if you add a papi config option for that
So people can choose if they want it
Feel free to PR it
Hey! I was wondering if it is possible to add ( + ) placeholders?
Like (placeholder 1) + (placeholder 2) = placeholder 1 + 2
@severe halo https://github.com/Andre601/Math-Expansion
That's for numbers tho xP
To be fair, I think Nashorn also did some evaluation for you instead of loading another lib in the expansion ๐
nashorn garbage
If you want it for non numbers, you could make a simple script with the Javascript Expansion
But I honestly don't really see the use for this
@steep thorn Thanks so much!!
I could perhaps add a "join" option to the formatter expansion that allows to combine multiple strings using a specific character
The only question is, if I should look for Strings split by spaces or by _
I want to upload my expansions to the ecloud but I can't find a link to upload my files
Go to your expansion, select the one you want to update, click Versions and then "Add Version"
I also updated the Formatter expansion with a "join" option. (CC @steep thorn @severe halo)
the ecloud has to refresh for the new downloads to be available ingame
also, is the expansion verified?
it was at one time
@limber ice You should use Papi 2.10.9... 2.10.7 is confirmed garbage at this point
Broke literally almost everything which 2.10.8 and 2.10.9 reverted
I'm testing on PlaceholderAPI-2.10.10-DEV-108
probably got unverified as it was broken
I would assume they will verify it again soon
also when is is this error going to get fixed https://paste.helpch.at/onuherahuh.md
i thought that was foxed, but if ur on latest dev build, apparently not
ยฏ\_(ใ)_/ยฏ
Hello guys! Is it possible using %bungee_<server>% placeholder count from more than 1 server, like %bungee_server1,server2%, if it impossible using this placeholder does I have any alternatives?
@green osprey you could use this to sum them up: https://github.com/Andre601/Math-Expansion
if you don't have a ton of servers, this would be the easiest
Thank you so much!
@warm topaz it only gives error if I have my expansion installed

Hello, I have a question!
Am I the only one who has trouble getting the Animations placeholders to work on 1.16.1?
Sorry if it's not very English, I'm using google translate
It seems not to work in 1.16.1, I used it before in 1.15.2 and it worked perfectly
Do you get any errors in the console/log?
Can you send screenshot if applicable
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
I have nothing annoying in the console :/
But the placeholder is acting weird
For example for %animation_glow_hello% He gives me glow_hello But without the animation
Hello, i have a little problem ^^
good thing its not that big huh? xD
No problem ๐
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
could you give us the javascript?
I just have one last question, for colors I can continue to use &c for example where do I need to use the hex code?
you forgot to use var keyword?
I just have one last question, for colors I can continue to use
&cfor example where do I need to use the hex code?
@ocean prairie You can't use Hex colours yet I'm afraid
i search a rope :p
Ah okay, thanks !
I still have a problem xD
How to use the options? Even with the wiki I can't understand how it works :/
But with several options?
%animations_<glow start=&c middle=&a end=&9>Hello</glow>
Keep adding them into the <glow (options here)>Text</glow>
%animations_<pulse color=red pause=3>= = =</pulse>%
I try with this and it doesn't work :/
And it also doesn't work with color=&c
And even your example doesn't work :/
No :/
I will have to do some testing and update it soon
Yes No problem :/
@heady falcon I think it's when there is a space in the sentence, because if I don't put all of it is fine
I updated it this weekend, so if there haven't been any other versions since yes
I even erase the config files in case that does something
Hello, I just updated placeholder api and playerpoints are not supported anymore?
contact the developer of the playerpoints expansion if there is an expansion if not then contact the developer of the plugin and ask him to update his plugins/expansion
@heady falcon
Animations with <> also don't work
Example % animations_ <glow> ---------- <|||||||||||> ---------- </glow>%
Gives Unknow animation:
And on the wiki
glowis calledshinebut does not work
I only say it to warn x)
Ok, I just removed the Statz expansion and downloaded it again I'm still getting this error https://paste.helpch.at/isofuyocer.md
@limber ice Unknown expansion.
is Advancements so you can see achievements from vanilla MC?
yeah it is
thanks
Hello, I want to remove money formatting so I will have for example "Money: 1,005" instead of "Money: 1,05k". How can I do that?
%vault_eco_balance_formatted%
hii whats the placeholder for total time played?
I've been trying to get a placeholder for my leaderboards but statistics is deadass broken
idk if its broken on papi's side or their side but it doesnt work
hmm
thanks!
because, as you said, the statistic expansion is temporarily broken
ya, I thought there was one under player
ah no
statistic expansion is broken in 1.16 iirc yes
there isn't I think
dk about that. the only broken thing that I remember being reported is the uptime
placeholder
so there currently is no placeholder for the top time played?
hmm are you sure the statistic expansion doesn't work tho?
for top time?
@mint fable yeah
@turbid tide yes. talked to clip about it
Let me check one more time. maybe im doing something wrong
Were using leaderheads
okay
works for seconds
try seconds then
oh maybe LH has a bug or something?
I just know that statistic is broken for a lot of placeholders
have you tried parsing the placeholder?
seconds and minutes https://i.imgur.com/paWMstH.png
unless there was a fix I was unaware of
try breaking blocks blitzz
that was 200% broken, showing the wrong amount
nope
maybe it's because you're on paper
currently getting this error when trying to reload papi
and after 3 seconds parsing the seconds placeholder
because it was broken
I was on the dev build
Statistics placeholder works but shows wrong data
I see
So while it looks like it's working
dk
It will show wrong playtime for some users
SirKillian I compared the data with the one from the minecraft statistic
Doesn't show wrong data for everyone tho
Blitz i was on 2.10.10 dev build and it didnt work
or use statz
where can i find the download? clip send that version in discord
I've had another plugin that didn't use papi show wrong playtime
So it might have to be a mc issue
Idk for sure tho but yeah
Half of my players show the right data and the other half is wrong
It also shows stuff like This
No perms to upload image...
@near inlet,
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
That's just dumb but ok
not that dumb when people can embed anything they want
Basically it shows 50h
ye
Instead of 1day 16h
something must be broken with timers
it's not a timer
because someone oppened a papi issue about server uptime
it uses minecraft statistics
showing 2d 26h
Ye
well yeah minecraft dates or something
alright so /papi reload works on 2.10.6 but it just crashes on 2.10.9
The placeholder is getting the wrong data from somewhere it feels like
But not for every player
yeah dk
the server uptime one was weird as well. it was suppose to be like 2d 6h but it was 2d 26h or something
But that didn't matter
So if im right theres currently no placeholder to show top time played at all?
Surely it will be fixed soon
I mean... clip said he would fix it like 3 weeks ago xD
like Statz to get the playtime
Is the placeholder been broken for 3 weeks?
Here is the problem with that
Using a plugin means all your playtime will be inaccurate
Unless you use it from the start of the server
%vault_eco_balance_formatted%
@turbid tide still have '1,05k'
Where can I find the placeholders for statz tho? it doesnt show any link or placeholder on the spigot page of statz
I want to remove money formatting and have '1,055' instead of '1,05k'
thanks
read the exact opposite of what you said xD
its working, thanks! โค๏ธ
i also read it backwards
xD
since when can you do this? https://i.imgur.com/odpuhHh.png
I swear to god I never saw this before
this shows when you hover over plugins in /plugins
I assume you don't want it formatted
because leaderheads needs numbers
@austere hawk 
ye so don't format it
test them with /papi parse me <placeholder>
you need a value with only numbers
and I think players need to login at least once to be tracked by leaderheads
you can't connect to the cloud
do i use that placeholder then?
uh
why can i not connect to the cloud? I've been trying to set this specific leaderboard up for like a week now and its still not working xD
@austere hawk is that a statz placeholder?
yes
try to get the update now they fixed it today
where can i find that?
/papi ecloud download statz
2.10.9 kept crashing and stuff so im on 2.10.6 now
2.10.6 uses old expansion
But 2.10.9 doesnt allow me to do /papi reload
it just gives errors in the console
and for some reason i cant connect to the cloud aswell
yes thats a bug they are working on
you can get all versions here https://www.spigotmc.org/resources/expansion-statz.57873/
I assume your running statz 1.5.4
you will need 1.5.3-1.3.1
