#placeholder-api
1 messages ยท Page 134 of 1
lol
It's not a fork and it's not associated with us at all
Totally separate, just happens to have the same name
"Happens"
Hi, when I try to parse the %statistic_ticks_played% placeholder, I get a message in chat saying it's unknown, and when I click the link in the chat I get sent to a 404 site
Have you got the latest version of the expansion
yep, just downloaded
@fair elm,
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Can you send methe full command ur typing
/papi parse me %statistic_ticks_played%
mhm
try using %statistic_time_played%
If not formatted try it in seconds %statistic_seconds_played%
Hello, is there any Placeholder that counts how many player are in a certain WorldGuard region?
I couldn't find any
Yeah, don't think so i've looked myself and couldn't find any
yes I can send meth. give me address.
ask @junior musk to add it to his PlayerList expansion
10 Downing Street
K sending now. I want my money sent on arrival.
alr ty
seconds work and time played does work too, but ticks dont
yes
Why need so precise ;p
But I want to use the tick one
ah
You'll probably need to contact the person who made the expansion or something not sure
I'll see what I can do ๐
wooo
well clip made it himself
i can send u a list of placeholders as ive got some in mind ;p
nah
xD
;p
nah that wasnt it
soooo, should I contact clip?
blitz you know if anyone can edit the statistic expansion to fix some placeholders which return invalid.
clip ain't going to respojnd
well I know waffle worked on it, gaby did
quite a few people have access to it
but no idea who to talk to
you should be good then
just so you know clip is on a break from all things related to minecraft so he has some time for his personal life. that's why he is not going to respond
I don't know who tho. I don't do stuff regarding PAPI code. Just help people with setting it up and stuff like that.
turns out the expansion is OS so you can open an issue on GitHub https://github.com/PlaceholderAPI/Statistics-Expansion/issues
ok gotcha
Thank you ๐
@nova crane got something for you to test
use that as a PAPI expansion
then use %playerlist_online,region,yes,list,<regionName>%
I have no idea if it's going to work
but I tried x)
and lost brain cells at the same time
others can try aswell, and possibly tell me if it does work or not x)
I've tested it but unfortunately it doesn't work
=/
I used %playerlist_online,region,yes,list,spawn%
and on parse it shows something like this
Thank you for taking your time to help me with it
you forgot to add it to the check huh?
yeah lol
I thought I added it, but I only added it in the offline/all check x)
@nova crane try again ๐
and again
... and again
lol, the song I was listening atm was called "Again" aswell x)
I'm getting a blank row when using parse
spawn
No problem, thank you again
If you have something that I can help you with feel free to msg me at anytime
sure
Is anyone else unable to use the Baltop placeholders for Vault?
I've got HolographicDisplays, HolographicExtension, ProtocolLib, Vault, Essentials, and PAPI which are all the requirements for Vault placeholders to work. (In a hologram)
have you enabled them in plugins/PlaceholderAPI/config.yml ?
with the latest vault expansion they need to be enabled manually. You can read in pinned messages why they were made like this
๐
Am I able to add more number formattings?
huh?
Like above quadrillions?
ok
Nope can't do that XD
On Javascript expansion, what is the "or" symbol? I wanna make so if (haspermission === "Woodcutter" or "Miner") return "&7Employed"; } How can I do that?
if (haspermission == "Woodcutter" || haspermission == "Miner") {
return "&7Employed";
}
ty
@nova crane I've got an idea
use %playerlist_online,placeholder,yes,list,worldguard_region_name||spawn%
It actually works, but I'm getting the user names instead of the amount
Is there any way how I can modify it to have a numerical output?
replace list by amount
It works, thank you so much!!
is there a really simple guide I can link people to when they ask me how they can use papi placeholders
something that will work even for people that don't speak a word of english
I'm getting that daily at this point
Steps:
1. Download specific expansion for desired placeholders (ie. /papi ecloud download player)
2. Reload PAPI to register said expansion (/papi reload)
3. ??
4. Profit $$$
yeah so two issues first off i don't use expansion downloads and secondly that wouldn't fly with the chinese/russian users I have
also it sort of says nothing of actually configuring the placeholders
But that's all there is to it lol, you put the placeholder where ever it's parsed, you download the expansion (unless it's internal), reload papi and that's it
yeah I know that, you know that, the random chinese 14y/o that doesn't speak english doesn't know that yet
If you're talking about your plugin specifically, why would there be a guide, make one yourself?
Google translate exists
I was just wondering if there was a master guide for it
I know it exists, I've been dealing with this daily for a while
Not really anything we can do lol, write it down on your plugin page, or whatever the place where you want is in different languages if you're so concerned about non english speakers
alright was ultimately just wondering if it wasn't already done here
We do not have such a thing, all our guides are in english
Hi
Is there a placeholder for global online players that isn't bungee related?
pinger_players_insertIPhere doesn't seem to work for me atm


Ugh pinger works if you set up correctly but why not just use %bungee_total%
how can i get prefix of specified player? (i am using LP)
something like %luckperms_prefix_<player>%
wdym
i need to get prefix of player by name
but if i want to have player names with prefix in parkour leaderboard?
Idk you maybe can use javascript
how
so again my question is can i somehow get placeholder with prefix of specified player? even when offilne
maybe you can use the javascript expansion (I think that's what CozyLeprechaun94 was saying)
but how???
look it up on the placeholderapi wiki (just a guess, I know that they have a wiki tho)
that wiki didn't tell me how can i do it
._.
it told me how to use it
oh wait
im reading ur messages
up above
@safe vault Use the ParseOther expansion
but it's possible to use the javascript expansion too
using the wiki link I sent you (of course it doesn't say "In order to parse the placeholder for luckperms, use this script", but it's still possible), but it's prob better to use ParseOther
look on the wiki.... I'll send a link to it
np
Yep it's papi related
the problem appears when i'm updating papi from 2.10.6 to 2.10.9
i don't understand why it's happing
let me record to show you
First video - https://imgur.com/a/BfzuRYL
Second video - https://imgur.com/a/Nlp0PUI
so as you can see in first video everything works fine
but in second video you can see that a empty space appears
did you look into your files and check if you didnt have a extra letter or space ?
i'm using HolographicDisplays (latest version) and HolographicExtensions (latest version and to make that animation i configure it like this: - '<glow size=5 normal=&f&l start=&e&l middle=&6&l end=&e&l pause=0>Reduceri 20%</glow>'"
yep
the problem appears
when i updated the papi
tbh i don't know why it's happening =))
but it's wierd because yea.. appears when i'm updating Papi from 2.10.6 to 2.10.9
so...what can i do?
and other placeholders work?
just the animation one?
oh I just saw that
you're not actually using the Animation placeholder just the inside of it
you need to use it like this %animations_<tag>Text</tag>%
the full placeholder
not jsut the tags and text
i'm not using the placeholder from
oh where are you using it from then?
the animation was created with HolographicExtensions
that's wierd because if i'm using Papi 2.10.6
everything it's working fine
but if i update papi to 2.10.9
the problem appears
Holographic Extension doesn't support that format iirc
oh it actually does
did you put it in your animations file and then put HE's animation placeholder on the hologram?
i created the animation with HolographicExtension in animations.yml
store:
speed: 0.1
frames:
- '<glow size=5 normal=&f&l start=&e&l middle=&6&l end=&e&l pause=0>Reduceri 20%</glow>'
and i'm using this placeholder
{ext:store}
yep
because it doesn't seem PAPi related at all
since it doesn't even use the PAPI placeholder
yep that's the wierd part
ye but HE is meant to add placeholders to HD so maybe something broke
it's not related with papi but i think papi broke something
because as i said, the problem appears just when i'm updateing the latest version of papi
then idk
I guess you would need to open an issue on HE's github
ah x)
glad to hear
Any idea on why my plugin, that doesn't hook and interfeer with supermobcoins (https://www.mc-market.org/resources/8309/) is breaking its placeholders?
It also happends with leaderheads (https://www.spigotmc.org/resources/2079/)
Solved ^^
Can you use placeholders inside placeholders?
but?
some expansions allow it... like ParseOther
but you can't without any of them
because the % would end the first one
and give an error
I am trying to use %formatter_text_uppercase_<text>% but instead of <text> a placeholder
I just don't know why you would need the formatter then? If i did uppercase_Hello I could just type HELLO
the formatter can be used for other purposes
for a string that you want formatted
and you can in fact use the javascript expansion to put a placeholder in a placholder
how?
edit: it's going to take me a few minutes to figure out ๐
no problem haha thank you
Hey, how can i use the place holder from a plugin im using called power ranks so it shows up when someone types something in chat for example:
[rank]name-Hey im beautiful
please ping me when done ^^^^^
1 - look on tutorials to get the placeholder for it
2 - Here's the code (I think, I only know java and I hope it's similar enough!)
var p1 = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%some_placeholder%");
var p2 = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "formatter_text_uppercase_");
var p = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + p2 + "%");
function example(){
return p;
}
example();
@soft shadow This is probably not work because I've never worked with js expansion but try this
Save as placeholder_in_placeholder.js
Add tojavascript_placeholders.yml
p_in_p:
file: placeholder_in_placeholder.js
It's literally on the wiki - %powerranks_prefix%
......
where do you want to put it
if you just want to view it then /papi parse me %powerranks_prefix%
and if you want to parse it for another player (find another player's prefix), replace me with another player
no
oh
the plugin should have that implemented
wait
are you using a chat plugin?
because tbh this isn't related to placeholderapi
okay
what is your chat plugin?
^^
so you want to put this in a chat plugin?
does that chat plugin support PAPI? if it does not then nothing we can do
its discordsrv
um, isn't that a plugin to bring chat to discord?
yes ๐
so i want the chat from minecraft to say the users rank then the message!
so I've never used discordsrv, but I'll try looking it up
thanks
they have a good wiki
welp
wait
where do i put it, before the primary group so:
MinecraftChatToDiscordMessageFormat: "%powerranks_prefix% %displayname% ยป %message%"
does DiscordSRV support PAPI tho?
yes
well then that should work
it doesnt :/
When you do /papi parse me %powerranks_prefix% what does it return
I also can't find anything of DiscordSRV supporting placeholderapi on the spigot page
Is there a way that can transfer placeholders across bungee servers? For example: When player have his Profile on lobby, he can see his SkyWars, BedWars wins from Minigames server...
try looking for a plugin that can do that, if there isn't then.. ooo thats a neat plugin idea
I've not found any, but this is a really good idea
I'm not skilled enough to make a bungee plugin ๐ญ or use plugin messaging
try putting it in #772310218104897580
Me 2 xd
The cursed word!!
not anymore lol
few
thought I was gonna have to decommission you
Pull the power port outta ya
you bot.
sonGOUDA
When I install the Skript expansion, the jar file shows up in my plugins folder but in-game, /papi ecloud list installed does not show that it's installed. In addition to this, none of the placeholders from the Skript expansion work.
Is it possible to change the time format for the essentials placeholder? For an example the "%essentials_kit_time_until_available__<kitname>%" shows an H for hours, but my server is not english so I need to change that if possible
did you download progressbar expansion ?
percentage: file: percentage.js engine: nashorn
did you do nashorn
can you send the js
=paste
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
uuh
I think you need to make seperate Javascript for those
cuz I also tried that with the precentage of the rankup plugin.
I had to make seperate ones for each rank
is the expansion player open source?
ty
I am having so manjor issues and I assume it's papi as most of the errors are coming from papi. If I can have someone take a look at it that would be great. Right now no one can type in chat, no commands are being registered except in console but they won't do anything. The error I was getting was a redisBungee error.
I'm also running my server on 1.11.2
Please ping me when you have a suggestion ๐
It is not working ๐ฆ
@upbeat yew,
Please respect the rules, be patient and don't ping staff members!
@unreal glade i have a suggestion
Show the error code
Lmao how can we help without any info
Fair point lol
I mean idk if i know how to help but maybe someone online can help
ERROR [PlaceholderAPI] Failed to load placeholder expansion from class: com.extendedclip.expansion.redisbungee.RedisBungeeExpansion
That's one of the many. ๐
WARN [PlaceholderAPI] listplayers is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
There's another.
24.11 00:43:51 [Server] ERROR [PlaceholderAPI] expansion class GAListenerExpantion is outdated:
And that one. But I updated galistener.
Ahhhh that makes sense.
I thought I did. I tried updating everything on papi but a few are orange and won't update.
Oh yeah makes sense
Still besides checking with the owners of the expansions, i cant do anything
That's fair. How would I check with them?
Find out who is the owner of the expansion and message him
Alright.
Tho i dont see the owner of redis fixing it
RedisBungee is no longer being maintained.
Worth a shot with the others
I recommend you look into the PlayerLists expansion. Is a even better and updated version of it made by Tanguygab. Pretty cool guy xD
will agree with the first statement. not the last one tho ๐
ye same but Tanguygab shouldn't know xD
๐
Reload papi and make sure the plugin supports papi
Paid, Kiteboard, free, i'd say quickboard
total exp calculates the total amount of xp a player had since his last death
so if he used some xp it will not subtract from that amount
%player_exp%
huh 1 second
oh right
there isn't a points placeholder
my bad
there is only a player_level
that shows how many levels a player has
ye I don't think that exists
unless it could be made with the js expansion
do you know how to set up a js placeholder?
there are some but I'm looking thru the spigot API and doesn't seem like there is a method for this. I was going to make a js placeholder for you and have you just set it up but I don't think its possible.
well there isn't rly anything I can try. I was looking for a method to get the player exp but seems like the only way is just a lot of maths
and I suck at math
well as I said its possible with some javascript and lots of maths
but idk maths xD I suck at them
PAPI can't take info from a command
Hmm if I get some free time I might make a js placeholder for this but rn I can't. My brain is fried.
So I've made a bit of research and I've found the class that essentials uses to calculate the xp. This means the math is already done I just had to make the placeholder.
Please read this wiki on how to make a javascript placeholder: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
Code for the placeholder is here: https://paste.helpch.at/tutusowexe.js
I will also be posting it here soon:
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#exp_points
Made a few tests and seems to work. Please let me know if something doesn't work as intended
Added it to https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#player-exp-points if you want to follow the tutorial there
yes sir
but you don't need to add it
if you set everything right in
javascript_placeholders.yml
and do /papi reload
it will automatically creat
oh wait
yep it is a mistake
exp_points.js
is the correct one
btw
if you want a converted version
from double to integer
like instead of 100.0 it will show 100
I can give you that version as well
oh
this is weird
it sohuld've but for me it didn't and thought it was just broken lol xD
well if that one works then its fine
you can ignore it but if you want it to not show every time you can add this line: exp_points: file: exp_points.js engine: 'nashorn'
so add the last line to your javascript_placeholders.yml
๐
Does anyone know if it's possible to concatenate placeholders with js or anything?
Hi, I'm getting this error when shutting down my Towny server:
https://paste.helpch.at/ihuqabivov.sql
it is possible with js indeed.
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.
Ok thanks, seems like I just needed to actually install the TownyChat expansion through papi
How do I do it then?
I mean if you know how to set up a js placeholder then you can read this wiki https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
to create the code tho you need a bit of js knowledge
i don't have any js knowledge
I am trying to use the formatter placeholder to make the result of another placeholder uppercase
args[0] + " " + args[1] I mean I think this is the entire code you need
its just one line
oh
wait
nvm
you want to make it uppercase
ah then
the code should just be args[0].toUpperCase()
its just one line
no
you need to set up a javsacript placeholder
following the wiki
and add this code to the js file
and then you just need to call it using %javascript_JSNAME_{placeholder_to_uppercase}%
yep
args[0] will be the placeholder
but you call it from the line
so you can use it for any placeholder not just 1
Thanks!
because its a placeholder inside a placeholder
at least in the js expansion it works like this. in others it might not
do I need to create a function and call it like dkim said?
like
function toUpper(){
return p;
}
toUpper();```
from my knowledge of other coding languages it looks useless
What u trynna do?
%rel_factionsuuid_relation% returns the relation in all lowercase like "neutral" but I want it to be "NEUTRAL" for dchat
it just makes the actual placeholder text uppercase
Ah try this then
var player = BukkitPlayer;
var relation = "%rel_factionsuuid_relation%";
function upperCase() {
return PlaceholderAPI.static.setPlaceholders(player, relation).toUpperCase();
}
upperCase();
Thank you!
I don't understand where I put the semi-colon
<eval>:4:9 Expected ; but found relation
result relation.toUpperCase();
^ in <eval> at line number 4 at column number 9```
I tried return instead of result and it does the same thing
Oh lmao idk why I wrote that
Haha, it's still just capitalising the actual placeholder not the result
It's return no result
I did that
Also you sure the placeholder is correct?
rel_factionsuuid_relation
That's the placeholder I found
and it works without the js
just lowercase
If that doesn't work, then idk anymore
Thank you anyways!
You tried what I edited correct?
var relation = "%rel_factionsuuid_relation%";
function upperCase() {
return PlaceholderAPI.static.setPlaceholders(player, relation).toUpperCase();
}
upperCase();```
That's what my code is rn
And what's the result
just %rel_factionsuuid_relation% in all caps
Not the right placeholder then
No but it is
thats me just using %rel_factionsuuid_relation% without any js
https://prnt.sc/vptrpf
thats with your code
What version of papi and js expansion are you using
Papi = 2.10.9
idk how to find the exp vers
you don't need an expansion for factionsuuid
dchat
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
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,
Please respect the rules, be patient and don't ping staff members!
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,
I found DeluxeChat v1.16.0 - plugin is disabled but no reason why it was disabled!
Please put your startup log found in /logs/latest.log into a new paste.
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
how does it look rn?