#placeholder-api

1 messages ยท Page 134 of 1

dark hatch
#

๐Ÿ™ƒ

silver minnow
#

lol

balmy marten
#

It's not a fork and it's not associated with us at all

#

Totally separate, just happens to have the same name

vivid sparrow
#

"Happens"

fair elm
#

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

mental night
#

Have you got the latest version of the expansion

fair elm
#

yep, just downloaded

tender vaporBOT
#

@fair elm,

Uploading Images

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.

fair elm
mental night
#

Can you send methe full command ur typing

fair elm
#

/papi parse me %statistic_ticks_played%

mental night
#

mhm

#

try using %statistic_time_played%

#

If not formatted try it in seconds %statistic_seconds_played%

nova crane
#

Hello, is there any Placeholder that counts how many player are in a certain WorldGuard region?

#

I couldn't find any

mental night
#

Yeah, don't think so i've looked myself and couldn't find any

nova crane
#

pff, alright

#

thank you

turbid tide
turbid tide
mental night
#

10 Downing Street

turbid tide
mental night
#

alr ty

fair elm
mental night
#

ticks is just the smaller version of seconds no?

#

10 ticks = 1 second

fair elm
#

yes

mental night
#

Why need so precise ;p

fair elm
#

But I want to use the tick one

mental night
#

ah

fair elm
#

but if I really cant

#

then seconds is ok

mental night
#

You'll probably need to contact the person who made the expansion or something not sure

turbid tide
#

20- ticks = 1 second

#

btw

mental night
#

yes my bad

#

ur cool

#

im not ;(

junior musk
mental night
#

wooo

fair elm
#

well clip made it himself

mental night
#

i can send u a list of placeholders as ive got some in mind ;p

junior musk
#

nah

turbid tide
#

xD

mental night
#

;p

junior musk
#

I'm just listing players

#

not doing everything lol

mental night
#

nah that wasnt it

fair elm
#

soooo, should I contact clip?

mental night
#

blitz you know if anyone can edit the statistic expansion to fix some placeholders which return invalid.

turbid tide
#

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

mental night
#

you should be good then

turbid tide
fair elm
#

ooh okay

#

but well should I contact anyone

#

or will you handle it?

turbid tide
#

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.

turbid tide
fair elm
#

ok gotcha

nova crane
junior musk
#

@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)

nova crane
junior musk
#

=/

nova crane
#

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

junior musk
#

oh

#

lol

#

I'm stupid

turbid tide
#

you forgot to add it to the check huh?

junior musk
#

yeah lol

#

I thought I added it, but I only added it in the offline/all check x)

#

@nova crane try again ๐Ÿ™‚

turbid tide
#

and again

#

and again

junior musk
#

and again

turbid tide
#

... and again

junior musk
#

lol, the song I was listening atm was called "Again" aswell x)

nova crane
#

I'm getting a blank row when using parse

junior musk
#

๐Ÿค”

#

try /papi parse me %worldguard_region_name%

#

and tell me what it says

nova crane
#

spawn

junior musk
#

weird

#

I'll try later

#

prob tommorow actually

#

don't really have the time now =/

nova crane
#

No problem, thank you again

#

If you have something that I can help you with feel free to msg me at anytime

junior musk
#

sure

karmic marsh
#

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)

turbid tide
#

with the latest vault expansion they need to be enabled manually. You can read in pinned messages why they were made like this

karmic marsh
#

Bruh omg really? XD

#

lol ok ill do that

#

Thank you

turbid tide
#

๐Ÿ‘

karmic marsh
#

Am I able to add more number formattings?

turbid tide
#

huh?

karmic marsh
#

Like above quadrillions?

turbid tide
#

I don't know actually

#

I have no idea

karmic marsh
#

ok

turbid tide
#

I'd assume you'd need to edit the code

#

yourself

karmic marsh
#

Nope can't do that XD

rare solstice
#

does anyone know for acr if they haver a permition list

#

to opt out admin

twin sluice
#

On Javascript expansion, what is the "or" symbol? I wanna make so if (haspermission === "Woodcutter" or "Miner") return "&7Employed"; } How can I do that?

brisk coral
#
if (haspermission == "Woodcutter" || haspermission == "Miner") {
    return "&7Employed";
}
twin sluice
#

ty

junior musk
#

@nova crane I've got an idea

#

use %playerlist_online,placeholder,yes,list,worldguard_region_name||spawn%

nova crane
#

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?

junior musk
#

replace list by amount

nova crane
#

It works, thank you so much!!

undone crag
#

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

brisk coral
#
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 $$$
undone crag
#

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

brisk coral
#

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

undone crag
#

yeah I know that, you know that, the random chinese 14y/o that doesn't speak english doesn't know that yet

brisk coral
#

If you're talking about your plugin specifically, why would there be a guide, make one yourself?

#

Google translate exists

undone crag
#

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

brisk coral
#

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

undone crag
#

alright was ultimately just wondering if it wasn't already done here

brisk coral
#

We do not have such a thing, all our guides are in english

earnest sky
#

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

earnest sky
earnest sky
turbid tide
#

Ugh pinger works if you set up correctly but why not just use %bungee_total%

safe vault
#

how can i get prefix of specified player? (i am using LP)

#

something like %luckperms_prefix_<player>%

meager nymph
#

wdym

safe vault
#

i need to get prefix of player by name

meager nymph
#

you can't

#

%luckperms_prefix%

#

this only

safe vault
#

but if i want to have player names with prefix in parkour leaderboard?

meager nymph
#

Idk you maybe can use javascript

safe vault
#

how

safe vault
#

so again my question is can i somehow get placeholder with prefix of specified player? even when offilne

silver minnow
#

maybe you can use the javascript expansion (I think that's what CozyLeprechaun94 was saying)

safe vault
#

but how???

silver minnow
#

look it up on the placeholderapi wiki (just a guess, I know that they have a wiki tho)

safe vault
#

that wiki didn't tell me how can i do it

safe vault
#

wtf

#

i told you

#

it did not tell me how to do it???

silver minnow
#

._.

#

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

safe vault
#

would you please give me specific examlpe

#

i have no clue what ParseOther is

silver minnow
#

look on the wiki.... I'll send a link to it

safe vault
#

oh

#

finnaly thats waht i wanted

#

thanks

silver minnow
#

np

eager swallow
#

hello

#

just found a problem

#

it's ok if i report it here?

meager nymph
#

yes

#

if it is papi related

eager swallow
#

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

#

so as you can see in first video everything works fine

#

but in second video you can see that a empty space appears

meager nymph
#

did you look into your files and check if you didnt have a extra letter or space ?

eager swallow
#

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?

turbid tide
#

You updated ProtocolLib as well?

#

@eager swallow ?

eager swallow
#

yep latest

#

4.5.1

turbid tide
#

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

eager swallow
#

i'm not using the placeholder from

turbid tide
#

oh where are you using it from then?

eager swallow
#

the animation was created with HolographicExtensions

turbid tide
#

oh I see

#

I'll have to check the wiki for that later

#

no0 idea how that works

eager swallow
#

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

junior musk
#

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?

eager swallow
#

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}

junior musk
#

and what did you put in your holo?

#

are you sure this started when you updated PAPI?

eager swallow
#

yep

junior musk
#

because it doesn't seem PAPi related at all

eager swallow
#

first video was recorder with papi 2.10.6

#

and after i upload 2.10.9

junior musk
#

since it doesn't even use the PAPI placeholder

eager swallow
#

yep that's the wierd part

turbid tide
#

ye but HE is meant to add placeholders to HD so maybe something broke

eager swallow
#

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

junior musk
#

then idk

turbid tide
#

have you tried the dev api PAPI? just in case maybe a dev build fixed

#

it ?

junior musk
#

I guess you would need to open an issue on HE's github

eager swallow
#

i'm trying now with dev build

#

IT FIXED

#

LOL

junior musk
#

ah x)

turbid tide
#

glad to hear

exotic knot
#

Solved ^^

soft shadow
#

Can you use placeholders inside placeholders?

silver minnow
#

no

#

well

#

you can with js expansion.. but

soft shadow
#

but?

silver minnow
#

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

soft shadow
#

I am trying to use %formatter_text_uppercase_<text>% but instead of <text> a placeholder

silver minnow
#

hmmmm

#

tbh I've never used js expansion

#

idk if it's possible

#

:/

soft shadow
#

I just don't know why you would need the formatter then? If i did uppercase_Hello I could just type HELLO

silver minnow
#

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

soft shadow
#

how?

silver minnow
#

edit: it's going to take me a few minutes to figure out ๐Ÿ˜‚

soft shadow
#

no problem haha thank you

frail otter
#

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 ^^^^^

silver minnow
#

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
silver minnow
frail otter
#

yes, but where do i put it XD

#

im sorry, im new to the plugins thing :/

silver minnow
#

......

#

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

frail otter
#

i want to put it before the users message

#

can i send u an example in dms?

silver minnow
#

no

frail otter
#

oh

silver minnow
#

the plugin should have that implemented

#

wait

#

are you using a chat plugin?

#

because tbh this isn't related to placeholderapi

frail otter
#

yes

#

yes it is

silver minnow
#

okay

turbid tide
#

what is your chat plugin?

silver minnow
#

^^
so you want to put this in a chat plugin?

turbid tide
#

does that chat plugin support PAPI? if it does not then nothing we can do

frail otter
#

its discordsrv

silver minnow
frail otter
#

yes ๐Ÿ˜„

silver minnow
#

๐Ÿค”

#

Oh

frail otter
#

so i want the chat from minecraft to say the users rank then the message!

silver minnow
#

ahhh

#

that makes sense

#

okay

frail otter
#

so it appears in discord in that format

#

sorry!

#

xD

silver minnow
#

so I've never used discordsrv, but I'll try looking it up

frail otter
#

thanks

turbid tide
#

they have a good wiki

silver minnow
#

welp

turbid tide
#

shouldn;t be hard to find something out on it

#

iirc

frail otter
#

wait

#

where do i put it, before the primary group so:
MinecraftChatToDiscordMessageFormat: "%powerranks_prefix% %displayname% ยป %message%"

turbid tide
#

does DiscordSRV support PAPI tho?

frail otter
#

yes

turbid tide
#

well then that should work

frail otter
#

it doesnt :/

mental night
#

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

upbeat yew
#

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...

silver minnow
upbeat yew
#

I've not found any, but this is a really good idea

silver minnow
#

I'm not skilled enough to make a bungee plugin ๐Ÿ˜ญ or use plugin messaging

upbeat yew
#

Me 2 xd

turbid tide
#

there are some APIs and plugins

#

one is on Songoda and the API is on spigot

mental night
#

The cursed word!!

turbid tide
#

not anymore lol

mental night
#

few

#

thought I was gonna have to decommission you

#

Pull the power port outta ya

#

you bot.

vivid sparrow
#

sonGOUDA

lethal panther
#

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.

lavish sail
#

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

meager nymph
#

why was that a swear word

#

songada

#

lol

meager nymph
#

did you download progressbar expansion ?

#

percentage: file: percentage.js engine: nashorn

#

did you do nashorn

#

can you send the js

#

=paste

tender vaporBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
โ€ข HelpChat Paste

#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
โ€ข HelpChat Paste

meager nymph
#

I said in paste

#

dude xd

tender vaporBOT
#
๐Ÿ“‹ Your paste, ! ฯŸ-ฯŸQ๐•ฌฮ›D Tฮฃฮ›M
https://paste.helpch.at/ugiqorihuz

A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.

meager nymph
#

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

cunning elk
#

is the expansion player open source?

novel moss
cunning elk
#

ty

unreal glade
#

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 ๐Ÿ˜

tender vaporBOT
#

@upbeat yew,

Hey!

Please respect the rules, be patient and don't ping staff members!

novel moss
#

@unreal glade i have a suggestion

#

Show the error code

#

Lmao how can we help without any info

unreal glade
#

Fair point lol

novel moss
#

I mean idk if i know how to help but maybe someone online can help

unreal glade
#

ERROR [PlaceholderAPI] Failed to load placeholder expansion from class: com.extendedclip.expansion.redisbungee.RedisBungeeExpansion

#

That's one of the many. ๐Ÿ˜‚

novel moss
#

It should be more

#

After that

unreal glade
#

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.

novel moss
#

Its not galistener its the expansions

#

You have the latest versions of them?

unreal glade
#

Ahhhh that makes sense.

#

I thought I did. I tried updating everything on papi but a few are orange and won't update.

novel moss
#

Idk what means orange

#

I guess thats all i could do

unreal glade
#

Orange means out of date on papi.

#

Like when you do /papi ecloud list installed

novel moss
#

Oh yeah makes sense

unreal glade
#

They should all be green.

#

I have four that are orange.

novel moss
#

Still besides checking with the owners of the expansions, i cant do anything

unreal glade
#

That's fair. How would I check with them?

novel moss
#

Find out who is the owner of the expansion and message him

unreal glade
#

Alright.

novel moss
#

Tho i dont see the owner of redis fixing it
RedisBungee is no longer being maintained.

#

Worth a shot with the others

unreal glade
#

Damn...

#

Alright thank you for all the help though ๐Ÿ˜ƒ

turbid tide
warm topaz
#

will agree with the first statement. not the last one tho ๐Ÿ™ƒ

turbid tide
warm topaz
#

๐Ÿ‘€

mild gale
#

I already downloaded the placeholders

vivid sparrow
#

Reload papi and make sure the plugin supports papi

mild gale
#

I'll replace it

#

what's the best scoreboard plugin to use?

vivid sparrow
#

Paid, Kiteboard, free, i'd say quickboard

turbid tide
#

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.

turbid tide
#

Made a few tests and seems to work. Please let me know if something doesn't work as intended

#

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

#

๐Ÿ‘

soft shadow
#

Does anyone know if it's possible to concatenate placeholders with js or anything?

limber flax
turbid tide
turbid tide
limber flax
#

Ok thanks, seems like I just needed to actually install the TownyChat expansion through papi

soft shadow
turbid tide
#

to create the code tho you need a bit of js knowledge

soft shadow
#

i don't have any js knowledge

#

I am trying to use the formatter placeholder to make the result of another placeholder uppercase

turbid tide
#

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

soft shadow
#

oh nice

#

so I don't need the formatter placeholder?

turbid tide
#

no

#

you need to set up a javsacript placeholder

#

following the wiki

#

and add this code to the js file

soft shadow
#

i want to use an existing placeholder

#

and make it uppercase

turbid tide
#

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

soft shadow
#

do I need to use the brackets

#

{}

turbid tide
#

yep

#

instead of %% the usual

soft shadow
#

Thanks!

turbid tide
#

because its a placeholder inside a placeholder

#

at least in the js expansion it works like this. in others it might not

soft shadow
#

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

brisk coral
#

What u trynna do?

soft shadow
#

%rel_factionsuuid_relation% returns the relation in all lowercase like "neutral" but I want it to be "NEUTRAL" for dchat

brisk coral
#
"%rel_factionsuuid_relation%".toUpperCase()
#

Should work I guess?

soft shadow
#

I will give it a try

#

Thank you

soft shadow
brisk coral
#

Ah try this then

var player = BukkitPlayer;
var relation = "%rel_factionsuuid_relation%";

function upperCase() {
  return PlaceholderAPI.static.setPlaceholders(player, relation).toUpperCase();
}

upperCase();
soft shadow
#

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

brisk coral
#

Oh lmao idk why I wrote that

soft shadow
#

Haha, it's still just capitalising the actual placeholder not the result

brisk coral
#

It's return no result

soft shadow
#

I did that

brisk coral
#

Also you sure the placeholder is correct?

soft shadow
#

rel_factionsuuid_relation

#

That's the placeholder I found

#

and it works without the js

#

just lowercase

brisk coral
#

If that doesn't work, then idk anymore

soft shadow
#

Thank you anyways!

brisk coral
#

You tried what I edited correct?

soft shadow
#
var relation = "%rel_factionsuuid_relation%";

function upperCase() {
  return PlaceholderAPI.static.setPlaceholders(player, relation).toUpperCase();
}

upperCase();```

That's what my code is rn
brisk coral
#

And what's the result

soft shadow
#

just %rel_factionsuuid_relation% in all caps

brisk coral
#

Not the right placeholder then

soft shadow
#

No but it is

#

thats me just using %rel_factionsuuid_relation% without any js

brisk coral
#

What version of papi and js expansion are you using

soft shadow
#

Papi = 2.10.9

#

idk how to find the exp vers

#

you don't need an expansion for factionsuuid

brisk coral
#

asking about the javascript expansion version

#

Also what chat plugin are you using

soft shadow
#

dchat

brisk coral
#

Can you show me the config for it

#

=paste

tender vaporBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
โ€ข HelpChat Paste

soft shadow
#

1.6.0

#

with your code i made the prefix prefix: '%javascript_toupper% '

brisk coral
#

Yeye that's correct, everything seems fine, most likely cause it's an internal placeholder so something might be cucked

soft shadow
#

oh I think it's because it's a Relational Placeholder

#

it works with placeholders that aren't relational

#

dang

brisk coral
#

Can you not just change it in the factionsuuid config?

soft shadow
#

no i can only change it's chat color

#

I changed it in lang

turbid tide
#

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}%

austere hawk
#

how come i always get this error when stopping server

mental night
#

#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

earnest sky
#

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

turbid tide
turbid tide
earnest sky
#

BungeeQuack? @turbid tide

turbid tide
#

^

earnest sky
#

Will test

#

It works flawlessly thanks @turbid tide you're incredible

novel moss
#
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 ๐Ÿ™‚

turbid tide
#
function getIsKit(){
  var kit = PlaceholderAPI.static.setPlaceholders("%essentials_kit_is_available_" + args[0] + "%");
  if(kit === "no"){
    return "nu";
  }
  if(kit === "yes"){
    return "da";
  }
}```
novel moss
#

oh

#

first time using js expansion

#

thanks lol

#

sigh

turbid tide
#

also that entrire code is just a waste

#

you could just use arguments for the entire placeholder

novel moss
#

wdym

turbid tide
#

gimme 3 minutes to finish this game

novel moss
#

xd sure

#

nvm i fixed the error but its still shows only no

turbid tide
#

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

brisk coral
#

Blitz leave

turbid tide
#

why?

#

yes I know I could just not use second if

brisk coral
#

Because.

turbid tide
#

no u leave

#

here

#

even better code

mental night
#

LEAVE

turbid tide
#
if(args[0] === "no") "nu"
"da"
#

this is js ^

#

xD

brisk coral
#
args[0] === "no" ? "nu" : "da"
mental night
#

ha

turbid tide
#

or that

brisk coral
#

If you really wanna cut the bullshit

turbid tide
#

I guess

mental night
#

or

#

args[1] +++ "yes" / "nu | "two"

turbid tide
#

what

#

you ok?

mental night
#

ok

turbid tide
#

so @novel moss this is the entire code you need in your js file args[0] === "no" ? "nu" : "da"

mental night
#

made by blitz stolen by frosty

turbid tide
#

and you call the placeholder like this: %javascript_iskit_{essentials_kit_is_available_daily}% for example

turbid tide
mental night
#

i would never lie

turbid tide
#

I trust you

brisk coral
#

You ain't ever seeing MT Sellinq.

turbid tide
#

MT?

brisk coral
#

MessageToggle

turbid tide
#

K Sellinq fixing MT for you rn

#

xD

mental night
#

Yay

novel moss
#

Ohhh

#

Yeah thats very smart

#

Not for me

mental night
#

MessageToggle shall see daylight!

novel moss
#

Lemme try

brisk coral
#

Watch it not work

turbid tide
#

it will

novel moss
#

Guess what

#

It works

#

Thanks :)

turbid tide
#

๐Ÿ‘

hexed ore
#

For some reason my redis bungee placeholders are not working

#

/papi parse me %redisbungee_total% comes out to 0

bitter steppe
#

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%");
hexed ore
#

is there any extra setup for redisbungee expansion to work? I dont understand

karmic marsh
#

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
hexed ore
#

oh wait I see

#

I am on 1.8.8 I need an older ver

#

topkek

#

cool works now

karmic marsh
turbid tide
#

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

safe vault
#
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

tender vaporBOT
#

@mossy helm,

Hey!

Please respect the rules, be patient and don't ping staff members!

turbid tide
#

ugh didn't you say it works correctly? Let me see if I still have it saved somewhere

#

try this then

novel moss
#

is update_interval capped at 10 seconds? cause it just wont update every second for me, only every 10 seconds

turbid tide
#

you talking about deluxemenus?

#

then no its 1

novel moss
#

yeah mb

bitter steppe
green cloud
#

why arent my placeholders working in gui plus?

hollow marlin
#

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

safe vault
#

OMG pls can somebody help me???

brisk coral
#

How about you wait patiently untill someone helps, when someone has time and knows the answer to your question, they'll help.

safe vault
#

ok, it just looks like you are ignoring me

mental night
#

We dont have to help if we dont want too

#

๐Ÿคทโ€โ™‚๏ธ

#

People have lifes too

#

or maybe some dont understand

#

take in all the equations

turbid tide
#

Ye

#

or you could all just ignore him

#

he literally just sent 2 messages. he been waiting for a while

turbid tide
#

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

mental night
safe vault
#

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

turbid tide
turbid tide
safe vault
#

hmm

#
function test() {
    var i = 1;
    var name = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%parkour_leaderboard_" + args[0] + "_player_" + i.toString() + "%");
    return name;
}

test();```

still not
turbid tide
#

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

brisk coral
#

#toString() is useless btw Blitz

safe vault
#

so the problem is with toSting()

turbid tide
#

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

safe vault
#

that doesn't work

turbid tide
#

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();```
safe vault
#

wdym with show it?

turbid tide
#

just use that

#

and tell me what it shows when you parse

turbid tide
#

yes

#

I just want to know what it returns

#

like the text

#

if it works or not

safe vault
#

invalid snytax

turbid tide
#

so Frosty what were you saying about that .toString() not being necessary? xD

brisk coral
#

It's not

turbid tide
#

well

#

then why does he get InvalidSyntax? wait fuck I just realised

#

...

#

@safe vault how are you calling the placeholder?

safe vault
#

/papi parse me

turbid tide
#

ye

#

but the actual placeholder?

#

%javascript_something...something%

#

how does it look?

turbid tide
#

you didn't understand me again

#

/papi parse me %javascript...

#

what do you type therE?

#

after papi parse me

safe vault
#

check the whole message

mental night
#

do /papi parse me %javascript_yourplaceholder%

turbid tide
#

wait but which gives you wrong syntax?

#

the first one or the second one?

safe vault
#

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

safe vault
#

can i somehow log to console?

safe vault
#

IDk

#

i managed to get it working

#
var holder = "%" + "parkour_leaderboard_".concat(args[0], "_player_", i.toString()) + "%";
var name = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, holder);

unreal glade
#

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

turbid tide
#

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

unreal glade
#

So remove IControlU?

turbid tide
#

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

unreal glade
#

I was trying to clean up my console and clear the errors.

turbid tide
#

iDisguise sends like 100 erors

#

its trying to retrieve info for some profiles but something they don't exist or something

unreal glade
#

I was going to remove iDisguise, And the server has plenty of storage.

turbid tide
#

ye then redownload ShowItem. you might have gotten a corrupted jar

#

ok so DeluxeChat error lets see

#

what's your server version?

unreal glade
#

1.12.2

turbid tide
#

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?

unreal glade
#

Yes I can, give me just a moment, So remove ID, ShowItem and reinstall, same with deluxechat.

#

And no

#

That's completely new.

turbid tide
#

ugh

#

you got another plugin that can format the chat?

unreal glade
#

Something is interfereing but I have no clue what placeholders pl is.

turbid tide
#

oh wait pl_prefix. isn't that chat control?

unreal glade
#

Chat control has the directory still but the .jar is gone.

turbid tide
#

[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

unreal glade
#

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

turbid tide
#

you removed ChatControl as well?

unreal glade
#

Yep.

turbid tide
#

if yes then restart

unreal glade
#

Both files.

turbid tide
#

and send another startup log

unreal glade
#

Alright

#

The new startup log

#

DeluxeChat is having issues and so is ShowItem still

#

And chestShop

turbid tide
#

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

unreal glade
#

Hmmm

#

One second

turbid tide
#

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'

unreal glade
#

Theres the new one

mint fable
#

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?

unreal glade
#

I would say both, a couple extensions are not updating, Those are Bungee, Player and playerinfo

mint fable
#

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

unreal glade
#

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.

turbid tide
#

wait you're using plugman?

mint fable
#

I believe the dev build of deluxechat should work on 1.12.2 if you want to try it @unreal glade

#

also, I didn't even mention all the plugins that aren't loading because of Skript

#

and then ItemHover

#

incontrolu is freaking out

turbid tide
#

ye but seems like DChat breaks because of ChatControl

#

restart your server Rewinder

unreal glade
#

Just did

turbid tide
#

because that log still shows ChatControl loading

unreal glade
#

I removed plugman

mint fable
#

ok send new log when you can

unreal glade
#

Working on it now, my FTP is being slow

turbid tide
#

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

unreal glade
#

Alright I'm gonna have to open the zip one second. It's not updating the latest log.

turbid tide
#

but

#

opening a zip is not rly going to help[

#

because we need the latest

#

after you just fully restarted your server

unreal glade
#

Hmmm, idk why the log isnt updating.

#

That's the pl.

turbid tide
#

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?

unreal glade
#

That's what it looks like,

turbid tide
#

ok so it works now?

#

what's not working anymore?

unreal glade
#

Prefixes

turbid tide
#

what are you using to show the prefix

unreal glade
#

I use LP

turbid tide
#

well yes

#

but what placeholder

unreal glade
#

Uhm

#

Let me check

#

prefix: '%deluxetags_tag%%vault_prefix%'

turbid tide
#

/papi parse me %vault_prefix% what does it return?

unreal glade
#

It kicked me saying PROXY lost connection to server

#

Yeah it just kicks me

turbid tide
#

when you do that command?

#

xD

unreal glade
#

Yep, I've done it four times xD

turbid tide
#

what the hell

#

any errors in console?

unreal glade
#

Everytime it kicks me saying [PROXY] Lost connection to server

turbid tide
#

but in console

unreal glade
#

For SURE latest log.

mint fable
#

bro

#

have you deleted ChatControl-Free-5.9.1.jar and ChatControl.jar or what

unreal glade
#

Yes

mint fable
#

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?

unreal glade
turbid tide
#

he did according to the plugin lists

#

but the logs are broken

unreal glade
#

The damn plugin is gone

mint fable
#

how were you able to send us a snippet?

unreal glade
#

Idk why it's activating her.

#

Wdym?

mint fable
#

the log is the wrong log

#

that's all

#

but you sent us a snippet of the error

#

how

unreal glade
#

Idk

tender vaporBOT
#

@unreal glade,

Detected Incomplete Paste:

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.

mint fable
#

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

unreal glade
#

It's a custom jar

#

And send me the link to the dev build?

mint fable
#

custom jars can break plugins as well. not saying it will, but I also don't know what's been done to it

unreal glade
#

Alright

mint fable
#

but I believe all clip's plugins are built against/for spigot

#

even paper breaks some plugins (maybe not clip's, but others)

unreal glade
#

That's understandable.

safe vault
#

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

turbid tide
#

I think its include not includes

safe vault
#

typeof players; returns "object"

vivid sparrow
#

Pretty sure the js expansion runs ECMA 5

safe vault
#

what does that mean?

turbid tide
#

5.1

#

no access to newer methods

#

than what the Nashorn engine has.

safe vault
#

so what should i do??

turbid tide
#

ugh idk for sure. No idea which are available and which are not

safe vault
#

when i want to replace array.includes(); ?

turbid tide
#

I mean you could just loop thru the array

#

and check each value

#

I guess

safe vault
#

oh ok

turbid tide
#

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

safe vault
#

ok thx

dusky basin
#

hey all quick question.. is the latest release of papi working on 1.16.4?

turbid tide
#

the dev builds do

dusky basin
#

perfect. I couldn't find the link for dev builds. thank you

gentle summit
#

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

turbid tide
#

You don't know how to create a new js placeholder? or you don't know what the actual code inside it should be?

gentle summit
#

i dont know what the code should be

#

i have the placeholder made already

turbid tide
#

is there a placeholder that returns true/false or something like that if you're in a town already?

gentle summit
#

yep

turbid tide
#

what's it?

gentle summit
#

%townyadvanced_has_town%

turbid tide
#

well that returns yes/no if you have a town right?

gentle summit
#

yep

turbid tide
#

and you want the js palceholder

#

to return something else?

gentle summit
#

yes

turbid tide
#

when they have a town and when they don't ?

#

k easyt

gentle summit
#

yes

turbid tide
#
"%townyadvanced_has_town%" == "yes" : "Message If Player Has Town" ? "Message If Player Doesn't Have Town"```
#

this is the entire code

#

its 1 line

gentle summit
#

...

turbid tide
#

make sure you're using latest version of JS expansion tho

gentle summit
#

it says : expected at the end

#

but when i add that it says expression expected

turbid tide
#

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 :

gentle summit
#

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

turbid tide
#

and if you're not in a town?

#

does it show the other one?

gentle summit
#

nope

#

still that one

turbid tide
#

oh

#

are you sure %townyadvanced_has_town% returns yes and no

#

when you think it does?

gentle summit
#

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

turbid tide
#

oh

#

no problem

gentle summit
#

is there a way to make it on separate lines

#

im trying to put it on the scoreboard

turbid tide
#

you'd probably need multiple placeholders or something

#

because I don't think \n will work

gentle summit
#

oh ok

turbid tide
#

but you can try

#

adding \n in the string

#

and se

gentle summit
#

i tried \n and it didnt

turbid tide
#

see*

#

oh

#

well I can edit the current one

#

to work with multiple lines

#

let me see

gentle summit
#

oh ok

turbid tide
#

how does it look rn?