#placeholder-api

1 messages Β· Page 108 of 1

small snow
#

yes

brisk coral
#

And by parsing, you mean using /papi parse me %placeholder%, or something else?

small snow
#

yes

#

and wherever they are used

#

another weird thing is placeholder from one plugin work on 1.15.2 and dont work on a 1.13 server

#

and other way around with a different plugin

#

....

#

probably the plugins fault ill figure it out

#

πŸ™ƒ

near scroll
#

Where is PAPI 3

brisk coral
#

Soonℒ️

balmy marten
#

It's being worked on, no eta atm

nova crane
#

Hello, is there any placeholder that compares two cooldowns and show the closest cooldown to you?

turbid tide
#

I mean you could use javascript

nova crane
#

I don't really know how to do it. I searched for similar placeholder to make an idea about the js, but didn't found any.

turbid tide
#

what are you using for cooldowns?

nova crane
#

javascript placeholder

turbid tide
#

oh so the cooldown expansion. Can you also give the placeholders you want to compare?

jade flume
#

Guys do anyone know a good papi profile plugin?

turbid tide
#

papi profile? as in showing data about a player?

jade flume
#

Yes

turbid tide
#

do you want a GUI or just text in chat?

jade flume
#

Gui

#

One

turbid tide
#

you could use DeluxeMenus to make a profile menu

jade flume
#

Hmmm...

#

Would it help to do /profile player name

turbid tide
#

yep

#

you could do that

nova crane
#

for example I want %javascript_cooldown_1_86400% and %javascript_cooldown_100_604800% (24h and 1 week)

turbid tide
#

can you do /papi parse me %placeholder% with both and tell me what it returns pls?

nova crane
#

23 hours 11 minutes for cooldown_1

jade flume
#

@turbid tide i can't add social media with it right?

turbid tide
#

wdym by social media?

jade flume
#

Like twitter for every player

#

Fir example

turbid tide
#

oh @nova crane then I don't think I can use javascript for that.

jade flume
#

For*

turbid tide
#

nope iiAhmed. Unless you have a plugin that returns a placeholder with all that information

jade flume
#

Hmmm.. imma create that

nova crane
#

Ah ok.

#

I was working on a daily rewards with the 7 days streak option, but the problem is that the menu works only the half way. (you can't claim previous days, so you can only claim higher days). But the problem is after the cooldown is finished, then you can claim the previous day. (So when you will reach day2, the day1 will be available for claiming also). And i was thinking for the past few days how to fix this. I came with the idea to add 1 week extra for each cooldown (day 1 was 24h so after that to be 8 days.. and day 7 to be 14 days cooldown). This thing works well after the first week of waiting. So you have to wait 1 week in order for it to work. Then I was thinking how to make the first week to work, so I came with another idea, to use two cooldowns, 1 that is for 1 week, so you won't be able to claim previous day before 1 week, and other cooldown for 24h that activates after you claim the previous claim. Sorry for this long message, but maybe you have another perspective how i can make this? I ask you only for a theoretical idea which I can put into practice.

jade flume
#

I need more brain cells to understand wdym

turbid tide
#

yeah I kind of got lost xD

jade flume
#

Same lol

nova crane
#

πŸ˜‚πŸ˜‚

turbid tide
#

you need to read half of each sentence for it to make sense

#

but why do you need the day 1 to be claimable in day 2 as well?

#

also you could do this using minimum requirements

junior musk
#

I did a Daily Rewards menu with TrMenu recently, it wasn't easy x)

nova crane
#

because this is like a ladder, you need to claim day 1, then day 2

#

and so on

turbid tide
#

yeah but you want to claim day1 and day2 in day2 right?

jade flume
#

If your time isnt right and maybe broken u can use TimedRewards plugin

turbid tide
#

or did I got it wrong?

nova crane
#

let me explain somehow, so day 1 = 24 hours, day 2= 48 hours and so on. The problem is when you will reach day 2 after 48 hours, the 24 hours cooldown from day 1 will run out, so you will be able to claim also day 1.

#

I don't want that

turbid tide
#

oh

junior musk
#

If you want an idea of what I did, I checked for %server_time_u% (returns the day in number, so Monday =1, tuesday = 2...) so if this placeholder = the day you want, only this one will be claimaible, others won't

nova crane
#

and at the end of the 7 days you will have 21 rewards insted of 7. That's the problem I have

turbid tide
#

oh I thought you want like a ladder or something so if you don't claim a reward in day 2 you won't be able to claim day 3 anymore but have to go to dayt 1

jade flume
#

My brain

turbid tide
#

you can do what Tanguygab suggested

#

just check the day

nova crane
#

oh I thought you want like a ladder or something so if you don't claim a reward in day 2 you won't be able to claim day 3 anymore but have to go to dayt 1
@turbid tide that's another problem that i have

turbid tide
#

so if it is monday give 1 reward

#

and so on

nova crane
#

If you want an idea of what I did, I checked for %server_time_u% (returns the day in number, so Monday =1, tuesday = 2...) so if this placeholder = the day you want, only this one will be claimaible, others won't
@junior musk thank you for the suggestion, i will try!

junior musk
#

here's my menu if you want x) You don't have to care about the menu design cuz it isn't DeluxeMenus, just the requirements/conditions, check what I checked (wait wa..) and if you have questions ask me x)

nova crane
#

thank you, i appreciate it

jade flume
#

"my brain isn't available atm please try again later (if u want to leave a message press F)"

junior musk
#

x)

jade flume
#

Wrong letter

junior musk
#

f (it's a f, not a F x))

jade flume
#

Thanks for the message

#

Will cost 200 $ (paid)

#

πŸ˜‚ πŸ‘

nova crane
#

Sorry for that @jade flume , I use to over detail useless things when I'm trying to explain something πŸ˜„

jade flume
#

Bro im jk πŸ˜‚ no worries lmao

ancient marsh
#

Can anyone help me with HolographicDisplays and PlaceholderAPI?

junior musk
#

install HolographicExtension and ProtocolLib

ancient marsh
#

Yeah I’ve done that

#

I did /holo create test {slow}%mineresetlite_A_percentage_mined%

#

But it stays at 0% the entire time

#

Even when 50%+ of the mine is gone

junior musk
#

add {medium} before the placeholder

#

instead of {slow}

#

it will maybe update faster

ancient marsh
#

Slow is a 5 second delay

#

But I’ll try it

#

Still the same thing

junior musk
#

what if you do /papi parse me %mineresetlite_A_percentage_mined% ?

ancient marsh
#

Huh that’s says 0 also

#

That’s odd

#

A mine does exist

junior musk
#

then there's a problem either with the placeholder, either with that plugin

#

try with a instead of A ?

ancient marsh
#

Okay

#

Still 0

junior musk
#

contact the dev then I guess

ancient marsh
#

Okay

#

Thank you

past lily
#

Does anyone know of a placeholder that counts UP from a specified time?

austere hawk
#

i believe there is

#

@past lily

past lily
#

That just prints local time?

austere hawk
#

%localtime_timezone_<TimeZoneID>%

past lily
#

That's not what I'm looking for, I want to display how long a "faction season" has been running

austere hawk
#

oh

#

%server_uptime%
@past lily this might work

past lily
#

The server restarts every 12 hours, already tried that :/

austere hawk
#

ok

past lily
#

found countdowns but not countups haha

austere hawk
#

%playtime_serveruptime%

#

but for that u will need a plugin

past lily
#

again, that's only counting the server uptime, as I've said the server restarts every 12 hours

austere hawk
#

rlly

#

did u check mvdw placeholders ?

past lily
#

All good, imma make a custom one. Just thought I could be lazy and save myself 15 minutes

#

don't own any of his premium plugins and don't intend to either πŸ™„

austere hawk
#

ok

ocean jacinth
#

What are the PremiumVanish placeholders?

ocean jacinth
#

thanks

warm topaz
#

np

manic imp
#

So i downloaded papi update, latest one, but now after restart no placeholsers work...

#

There areno errors in the console

manic imp
#

Could someone please help me, because this error happened on live server.

austere hawk
#

Is there a placeholder to get another players coordinates

mint fable
#

use those 2 combined

austere hawk
#

ahh ty

untold perch
#

Hey so I have Papi downloaded and I downloaded the Player extension from the eCloud. I have tried /papi parse WiredOrange %player_displayname% but its not working. Any ideas?

mint fable
#

any errors?

#

did you reload?

#

/papi reload

untold perch
#

Oh odd, I just restarted I figured it would have reloaded papi as well

#

Thanks

mint fable
#

it would have

#

did you download the expansion after restarting?

untold perch
#

Nope

manic imp
#

What could be the reason of placeholderapi now parsing any placeholders without errors?

#

i mean there are no errors

mint fable
#

example

#

what

manic imp
#

like

#

%server_online%

#

not working

#

i have server expansion installed

#

it was working for a while, but everything broke down when i updated papi

warm topaz
#

does server expansion show in /papi list?

mint fable
#

?startuplog

tender vaporBOT
#
FAQ Answer:

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.

manic imp
#

Yes.

mint fable
#

send that over as well ^

manic imp
#

wait a moment.

mint fable
#

send it over after typing /papi parse me %server_online% actually

manic imp
#

oh

#

in the chat it is showing everything

#

so it has to do something with holographic displays

warm topaz
#

do u have holographic extension?

manic imp
#

Yes

warm topaz
#

paste the startup log as cj said

manic imp
#

i reinstalled these plugins and it seems to fix the problem

warm topaz
#

πŸ‘

zealous shadow
#

lines 807-837

tender vaporBOT
#
πŸ“‹ Paste Converted!
https://paste.helpch.at/toyikarize

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

mint fable
#

papi can't connect to the cloud

#

you'll have to download expansions manually

tender vaporBOT
#
Placeholderapi
Useful Links & Information:

A resource that allows information from your favorite plugins be shown practically anywhere!
β€’ Spigot
β€’ Wiki
β€’ Placeholder-List
β€’ GitHub
β€’ eCloud

mint fable
#

from the eCloud ^

zealous shadow
#

@mint fable so will it affect the plugin?

#

or just make me have to install manually?

#

and is there anyway to fix it or no?

warm topaz
#

just install it manually

#

it wont affect it anything

zealous shadow
#

alright

warm topaz
#

?ecloudblock

tender vaporBOT
#
FAQ Answer:

Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

zealous shadow
#

just a bit annoying but ty

mint fable
#

you might be able to disable it in config

zealous shadow
#

the warnings?

mint fable
#

the ecloud

zealous shadow
#

but what would that do for me?

#

would it just get rid of the warnings

mint fable
#

yes

#

isn't that what you want?

zealous shadow
#

yea that will help

cunning elk
#

Hey guys

#

Im unable to use animations placeholders on my menu

#

This was supposed to blink

#

&a%animations_Blink_<7>%

vital bronze
#

Hi, does anyone know why the Vote Party plugin does not work for me in the FeatherBoard plugin?
[ERROR] [FeatherBoard] Error in placeholder: {voteparty_votesneeded}

sharp jay
vital bronze
#

thanks

turbid tide
#

@cunning elk deluxemenus doesn t update unless you use the refresh action so animations are not supported

mint fable
#

well

#

you can use update

#

it only updates certain things

#

but it should work for animations

#

@cunning elk ||cc: @turbid tide ||

#

=wiki deluxemenus update

tender vaporBOT
#
Wiki Result:

GUI - HelpChat Wiki
Note that DeluxeMenus won't update the item itself (Change the item). This is
only possible by executing a [refresh] command in the items [[left/right-clickΒ ...

mint fable
turbid tide
#

update won t help

#

because the placeholder wont refresh

mint fable
#

depends on where it's being used

#

the placeholder does

#

read the wiki

turbid tide
#

well I ve tried and it does not unless you use refresh

mint fable
#

it specifically states that it updates the placeholders

#

that is why it's there

#

did you add update: true to your item?

#

it only does it on lore and name

turbid tide
#

yep

mint fable
#

that's why it's there πŸ˜‚

#

it could've just been bugged

#

it could be bugged still

#

πŸ€·β€β™‚οΈ not sure

turbid tide
#

maybe

#

i ll test it again later

mint fable
#

what version were you on?

#

ok

turbid tide
#

on latest dev

#

i was on 1.12.1 i think

stoic moon
#

I have a problem with holograms I have recorded how many players are on a particular map (world) but when I enter it does not show the number it needs to be corrected /hd reload

jade flume
#

U can put the {medium} placeholder before it to test

heady falcon
#

@mint fable I see people struggle with the papi version syntax of Animations

tender vaporBOT
#

@heady falcon,

Hey!

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

mint fable
#

Ah was that the issue?

heady falcon
#

So my idea is to make it support the native language, something like:

mint fable
#

I didn’t look too close myself

heady falcon
#

%animations_<fade>....</fade>%

#

Then its portable between all versions, and people wont get confused

mint fable
#

True

heady falcon
#

You think thats a decent idea?

mint fable
#

I like it

heady falcon
#

Infact, I dont know why I did it the other way before...

mint fable
#

Hindsight 20/20

heady falcon
#

I'll release an update this week hopefully

vapid bane
#

Hello. Why are messages displayed 3 times when the server starts? PAPI-2.10.6

tender vaporBOT
#

Please post your latest full startup log to a ?paste and spigot version.

nova crane
#

Hello, i'm getting this error in console and I don't really know why

#

Error in requirement javascript syntax - %server_time_u% > 1 && %luckperms_meta_rewardday%.indexOf(1) <= 0

turbid tide
#

could you paste your requirement?

#

ah

#

wait

nova crane
#

sure

turbid tide
#

you need "%serverr_time_u%"

#

always put the placeholders in ""

nova crane
#

i tried that before and the same problem

tender vaporBOT
#
πŸ“‹ Paste Converted!
https://paste.helpch.at/wisuxereri

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

turbid tide
#

same with luckperms

#

but idk if using indexOf works

#

in a javascript expression

nova crane
#

i think that's the problem, i can click infinite times and receving the reward

turbid tide
#

because you don't have variables and you can't do %placeholder%.indexOf

#

only variable.indexOf

nova crane
#

i put the "". I'm not receiving the error in console anymore, but it doesn't work

turbid tide
#

so you'll need to either use javascript placeholders or get another way of doing it

nova crane
#

ah i understand

vapid bane
#

?paste

tender vaporBOT
#
FAQ Answer:

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 - Usage
β€’ Hastebin

nova crane
#

don't you have another way to do it in your mind? This daily menu gives me a brain damage and I can't really know how to make it work

turbid tide
#

well to be honest Idk what you did there xD

vapid bane
#

Version: 1.12.2

turbid tide
#

because I thought you want every day a different reward for 7 days

#

and then it restarts

brisk coral
#

That's a yikes

#

Why you gotta use leaked shit?

turbid tide
#

they even have a free version Detro ..

nova crane
#

so is based on what Tanguygab send me yesterday, but it was made in trmenu and i tried to rewrite it in deluxemenus

turbid tide
#

ok so xGeorge let me explain you what I've understood from what you said you want

nova crane
#

sure

turbid tide
#

Monday - reward1, Tuesday - reward2, Wednesday - reward 3, Thursday - reward 4, Friday - reward 5, Saturday - reward 6, Sunday - reward 7

#

and then the next monday it starts again with the same rewards

#

right?

nova crane
#

yes

vapid bane
#

So what about messages that are repeated 3 times?

versed warren
#

@vapid bane YIKES CHIEF

vapid bane
#

ok

versed warren
#

o7, don't use cracked plugins

#

adios.

warm topaz
#

πŸ‘‹

mellow skiff
#

Hey! I'm getting this error https://paste.helpch.at/hepajotuxu.pl
Aparently it has to do something with a Javascript script I have... Any idea on how to fix it?
The script works fine if I parse it manually, but that error appears only sometimes... And I dont seem to be able to recreate it. Apart from that, I dont see any errors that show me where the error happens on my script.

The placeholder is being used on a Hologram, so the error appears just when a player logins.

turbid tide
#

can you paste the javascript here?

#

also do placeholders usually work in holograms?

mellow skiff
#

Yes! I have a few working on holograms..

#

The exact placeholder that is on the hologram is %javascript_bobielcarterochecar_holo%

turbid tide
#

huh is the argument required ?

#

I don't rly understand what this js does but I think that the argument does that

#

not sure tho

#

also if you add a refresh to the hologram does it spam the error?

#

oh wait @mellow skiff in javascript_placeholders.yml in PlaceholderAPI have you set the engine for this placeholder?

mellow skiff
#

also if you add a refresh to the hologram does it spam the error?
@turbid tide Nop

oh wait @mellow skiff in javascript_placeholders.yml in PlaceholderAPI have you set the engine for this placeholder?
@turbid tide Nop, should I?

turbid tide
#

You could try

#

engine: 'nashorn'

#

add this under the file line

#

of that placeholder

mellow skiff
#

OKey, I will try, thanks

turbid tide
#

so just tested it and it doesn't give me any errors

#

its probably something inside.

mellow skiff
#

Hum

#

Right now it didnt happen, I'll see if it happens again in the future

turbid tide
#

wait a minute

#

is it suppose to be arg[0] and not args[0] ?>

mellow skiff
#

Em

turbid tide
#

var argumento = arg[0];

#

oh wait I'm dumb

#

because there is an arg variable

mellow skiff
#

Ohh okey

turbid tide
#

Anyone here can help me out? I am trying to use getOnlinePlayers to get only a player from that list. So for example player1 or player5 etc. Rn it usually returns [CraftPlayer{name=BlitzGamer_88}]

old barn
#

How to reset placeholders?

#

;/

heady falcon
#

@mellow skiff Hi did you fix your issue

mellow skiff
#

Im not sure, why?

heady falcon
#

We spoke on github

#

hologaphic extension πŸ˜„

mellow skiff
#

Ohh!!!! you are the creator of it!

#

:O

#

engine: 'nashorn'
I did that and I hadnt gotten the error. Yet.

turbid tide
#

maybe open a issue on HE's github

scenic ingot
#

PlaceHolders working on website?

warm topaz
#

wut

scenic ingot
#

I mean if i connect my server with mysql to my website place holders will works?

#

Or another way to connect to website?

vivid sparrow
#

you need a player object to parse the placeholders

#

some work without (such as 'server' placeholders), others accept an OfflinePlayer and others only Player

scenic ingot
#

ok

austere hawk
#

@final shadow sorry for ping but is this true?

tender vaporBOT
#

@austere hawk,

Hey!

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

austere hawk
#

Clip is this true?

#

sorry for ping

#

I'm not sure if it's true or not

trim mist
#

Not entirely sure, to be honest, but it's definitely something we're taking account for PAPI v3. I've worked on servers with 30 - 40 expansions and haven't noticed any issues.

final shadow
#

The performance impact is minimal tbh. In the case of the image you are talking microseconds. If the issue was something worth worrying about it would have been brought up by thousands of people

#

If you read that whole thread you would see my replies

austere hawk
#

I'm reading rn

#

Interesting

#

U are right tho

final shadow
#

There are more basic plugins that would cause more strain than papi

#

Also to note that the performance of placeholders regardless of what papi you use will always be affected by the implementation for the placeholder from whatever plugin

#

Hey I also want to state the fact that over all of the years and even right now with over 30000 servers using the plugin, I don’t think I ever recall anyone saying PlaceholderAPI is killing my server

vivid sparrow
#

^

brisk coral
#

papi is killing my server

austere hawk
#

F

nova crane
#

Hello, I have a problem with the nameequals in this placeholder '%checkitem_mat:STONE,amt:64,data:0,nameequals:&fStone%' . Did I write it right?

turbid tide
#

well I am not sure but I think that it doesn't actually accept color codes.

#

I know it breaks a lot when people try checking for colors in lores and names

nova crane
#

I tried without any color but still doesn't work

turbid tide
#

this is weird

nova crane
#

I tried also to use **strict **instead of nameequals, but the problem is they can only sell the amount specified (For example if there are 16 stone available for sell and they have 64, they have divide the stack to be able to sell)

#

and that's a problem, they can't just click to sell like they normally do

turbid tide
#

well you could add a sell all button

nova crane
#

that's what I did, but is not that easy friendly for the players and that's the problem

turbid tide
#

why is it not easy to implement? all you have to do is make 2 math placeholders

#

%checkitem_mat:STONE,amt:64,data:0,strict%

#

try this

nova crane
#

I tried also to use **strict **instead of nameequals, but the problem is they can only sell the amount specified (For example if there are 16 stone available for sell and they have 64, they have divide the stack to be able to sell)
Still this problem, if the amount is 64 there is no problem but if the amount is lower than 64 and they have a stack they can't sell until they have that amount in their inventory

#

for example %checkitem_mat:COAL,amt:4,data:0,strict% , if I have 4 coal in inventory it works, but if I have 64 it doesn't

turbid tide
#

so you want to be able to sell even if you have 1 or 2 or 3 etc?

#

then you'll have to use the math placeholder

nova crane
#

no, you will be able to sell only if you have 4 it doesn't work for -4 or +4

so you want to be able to sell even if you have 1 or 2 or 3 etc?
@turbid tide

turbid tide
#

then just change amt:64

#

to amt:4

nova crane
#

still doesn't work because because strict only checks if you have that amount strictly in your inventory (you can have 1000 coal in your inv but if you don't have 4 coal separatly it doesn't work)

#

i tested it

turbid tide
#

well then remove strict

#

I gues

nova crane
#

then players would be able to sell renamed items infinite times, that's the problem I had in the first place

#

that i've been trying to fix with nameequals: or strict:

junior musk
#

what if you try with Β§ instead of & for the color code in the nameequals?

nova crane
#

hmm good idea, let me try

#

nope

turbid tide
#

well why do you need the color to be white?

#

%checkitem_mat:STONE,amt:4,data:0,namecontains:stone%

junior musk
#

then players would be able to sell renamed items infinite times, that's the problem I had in the first place

#

that's why

turbid tide
#

oh that makes sense

nova crane
#

i don't really need the color to be white, i need to be able to check only the normal items

#

not renamed ones

turbid tide
#

wait a minute

nova crane
#

and I thought of using white because i can't simulate that

junior musk
#

wait, what?

turbid tide
#

%checkitem_amount_mat:STONE,data:0,strict%

#

what if you use this as a check?

junior musk
#

you can check directly without a name if it is the normal item

turbid tide
#

so the one I've just sent seems to work

#

had 64 stone and 64 cobble renamed to stone

#

and it only shows 64

nova crane
#

you can check directly without a name if it is the normal item
@junior musk how?

#

%checkitem_amount_mat:STONE,data:0,strict%
@turbid tide i tried it now, still not working

turbid tide
#

how?

#

I don't understand

#

because for me it works just fine

junior musk
#

ooooh I think I understand

nova crane
#

right_click_requirement: requirements: anything_here: type: string equals input: '%checkitem_amount_mat:STONE,data:0,strict%' output: 'yes' deny_commands: - '[message] &c&lError &8Β» &fYou don''t have &e64 x stone &fto sell.'

turbid tide
#

also

junior musk
#

you want to check for stones, not renamed, but not for stones renamed right?

turbid tide
#

what tangu sayd

#

you can just remove the name

#

contains

#

and strict

#

just leave the mat

#

and it will check for material stone onoly

#

without checking the name

nova crane
#

that's what I did in the first place, i made the shop without any strict or nameequals and players could sell renamed items

turbid tide
#

I don't get it. you have mat:STONE

junior musk
#

wut

turbid tide
#

hey shouldn't be able to

#

only stone

nova crane
#

wait 1 sec to send you a video or something

turbid tide
#
          type: '>='
          input: '%checkitem_amount_mat:STONE,data:0,strict%'
          output: 4```
#

also

#

this is how you use the one

nova crane
#

still not working

#

receving the deny command because the placeholder don't check the inventory correctly

turbid tide
#

can you do /papi parse me %checkitem_amount_mat:STONE,data:0,strict% with stone in hand and without?

#

also with stone and with other items renamed to stone

nova crane
#

Without in hand - 64

#

In hand - 64

#

Reanamed - 64

#

i had 64 of each

#

Ah my bad, I had Stone renamed to something else in inventory, if i have another item renamed to stone i get 0

turbid tide
#

wait so if you only have 64 cobble renamed to stone it says 64?

#

so it should work then

#

the requirement I've sent above

nova crane
turbid tide
#

can you paste the item in here?

#

the entire one

nova crane
#

Sure

junior musk
#

forgot a '

#

before the 4

nova crane
#

oh, lol

#

didn't notice

#

now is working

junior musk
#

btw I think the '' shouldn't be necessary

heady falcon
#
PAPI ANIMATIONS EXPANSIONS EXAMPLE
IDENTIFIER: ANIMATIONS

%animations_<TAGNAME>TEXT</TAGNAME>%
WITH IMPLICIT BOOLEAN PRESENT:
%animations_<TAGNAME BOOLKEY>TEXT</TAGNAME>%
WITH EXPLICIT BOOLEAN PRESENT:
%animations_<TAGNAME BOOLKEY=TRUE>TEXT</TAGNAME>%

EXAMPLE:
%animations_<FADE IN>Fading In</FADE>
%animations_<SHINE START=&9 MIDDLE=&1 END=&9>TEXT</SHINE>

@mint fable This is what they will look like, and it will support all the same ones as KiteBoard, so 1 single documentation

nova crane
#

btw I think the '' shouldn't be necessary
@junior musk where?

junior musk
#

around the 4

nova crane
#

it works well anyway

tender vaporBOT
#

@heady falcon,

Hey!

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

junior musk
#

πŸ‘€

#

Niall, how dare you? πŸ‘€ πŸ‘€

#

x)

nova crane
#

now it no longer allows renamed items to be sold

heady falcon
#

☹️

nova crane
#

Thank you so much for helping @turbid tide and @junior musk

turbid tide
#

no problem xD

#

what's up niall?

heady falcon
#

Fine I was replying to CJ on something

turbid tide
#

oh I have a question for you

old barn
#

How to reset placeholders?

warm topaz
#

depends which placeholder

old barn
#

time playerd

#

played

#

i think it's server placeholder

balmy marten
#

/world/stats I believe is where its stored

#

But backup everything before you delete anything

old barn
#

I deleted it, but nothing happend

balmy marten
#

Make sure the server is stopped when you delete them

old barn
#

oo, ok

#

thx

heady falcon
#

oh I have a question for you
@turbid tide ?

tender vaporBOT
#

@heady falcon,

Hey!

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

turbid tide
#

I've pasted a link under

heady falcon
#

Oh I see

turbid tide
#

that guy was having problems using js placeholders in holograms

#

I couldn't recreate it for some reasons

heady falcon
#

He was referred to me from vault

turbid tide
#

oh ok.

heady falcon
#

I'll take a look

#

Args out of bounds

#

In the nashorn engine what is args?

turbid tide
#

arguments that you give when you call the placeholder

#

it goes like this: %javsacript_filename_arg1,arg2,arg3,etc%

#

so you can use the same javascript in multiple cases

#

instead of just one

#

I saw that it has something to do with arguments but couldn't figure out what

mint fable
#

nice @heady falcon i'm looking forward to it

austere hawk
#

can i show motd in the menu?

humble nymph
#

I've got no idea what im doing wrong. I have vault, /papi ecloud download Vault says no updates, but /papi parse me %vault_eco_balance% just outputs %vault_eco_balance%

Im on 1.12.2 if it matters

trim mist
#

Have you done /papi reload since downloading the expansion?

humble nymph
#

it wont let me download the expansion.

#

says i have no expansions to download

#

but ive restarted the server many times.

tender vaporBOT
#
FAQ Answer:

Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

humble nymph
#

ty. ill talk to my host rq

sweet dew
#

does placeholderapi need protocollib?

#

because when i disable protocollib

#

placeholders of the holograms are not showing

#

(sorry my english is bad)

mint fable
#

no

#

holographic extension does

wet creek
#

hey, what placeholder is the one that has essentials eco balance formatted like this?

ionic night
#

I think it's: %vault_eco_balance%

strong urchin
#

On my build server, there is a placeholder hook registered as clearlagtimer, but I cannot seem to download it on my skyblock server

heady falcon
#

placeholders of the holograms are not showing
@sweet dew Protocol lib is needed for the placeholders to work in Holograms

neat fern
#

is there a placeholder to show either daytime or nighttime?

vivid sparrow
#

Pm or am you mean?

#

If do, server_time and the SimpleDateFormat for am / pm

neat fern
#

no i mean to either show "day" or "night"

vivid sparrow
#

Oh, you can use js

#

return ticks >= 0 && ticks =< 13000 ? "Day" : "Night";

#

@neat fern

tribal seal
#

Hello there

#

I got one question about the math lib

#

the math placeholders anyway

#

i got this placeholder, is it well formated? math_{ping}-{0.7*{ping}}

junior musk
#

%math_{player_ping}-(0.7*{player_ping})%

#

verify that you have all required expansions
/papi ecloud download Math
/papi ecloud download Player
/papi reload

heady falcon
#

What does that do?

#

Decrease the ping by 70%?

junior musk
#

🀷

tribal seal
#

Yeah since the ping placeholder is broken :3

#

im using this on a mvdw placeholder

#

but its showing nothing

junior musk
#

if you do it on a plugin that only supports MVdWPAPI it won't work

tribal seal
#

Well mdvw has a placeholder to parse from PAPI

#

{placeholderapi_<placeholder>}

junior musk
#

yeah but it won't work with the Math placeholder

#

the {} will conflict

tribal seal
#

Oh i cant use more than one pair of these?

junior musk
#

nope

tribal seal
#

Hmm is there any other way to do that?

junior musk
#

I think MVdW plugins have their own math thing

balmy marten
#

also you could do all the math is js placeholder

junior musk
#

<math>expression</math>

#

that too

tribal seal
#

Hmm let me check that out

junior musk
#

oh and then, yeah it would be {ping} I guess for MVdWPAPI

tribal seal
#

Yeah i think ping will be for MVDW

#

so inside the brackets i can use that? <math>expression</math>

junior musk
#

I think

tribal seal
#

well the ping shows normally but math is not working

#

I got this one {<math>{ping}-0.7*{ping}</math>}

junior musk
#

<calc>

tribal seal
#

Only the {ping} is working xD

#

huh

#

this will work but

#

it needs something to dont show that many digits

#

xD

junior musk
#

Arguments
round: Rounds the result (<calc round>5/3</calc>)

tribal seal
#

oh

#

my god

hasty dome
junior musk
heady falcon
#

@mint fable Any way you can give me access to the Placeholder api wiki?

tender vaporBOT
#

@heady falcon,

Hey!

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

heady falcon
#

Or I can send you over the details to put on there

tribal seal
#

Ok so the mvdw is ok

#

What about the papi placeholder tho?

#

How can i use this placeholder and round it also? %math_{player_ping}-(0.7*{player_ping})%

junior musk
#

[precision:0]

turbid tide
#

%math_[precision:0]{player_ping}-(0.7*{player_ping})%

#

you can change 0

junior musk
#

at the beggining or the end

#

I think it also work in the middle but idk

turbid tide
#

you can change 0 to 1,2,3,4,etc. and thats how many digits it will have after .

tribal seal
#

Oh ok, let me try that out

#

Perfect, thank you very much guys

turbid tide
#

no problem

neat fern
#

return ticks >= 0 && ticks =< 13000 ? "Day" : "Night";
@vivid sparrow what is the placeholder for ticks?

tender vaporBOT
#

@neat fern,

Hey!

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

turbid tide
#

wasn't it server_ticks ?

vivid sparrow
#

It should be per world

#

try a java method

neat fern
#

let me check

vivid sparrow
#

Player.getWorld().getTicks() or smth

neat fern
#

but if the player changes there time sing ptime wouldnt it change it?

#

i need everyones time to be the same

vivid sparrow
#

idk

mint fable
#

I can't @heady falcon

#

did you make a pr?

heady falcon
#

Can you PR wikis?

mint fable
#

what are you trying to do

#

just open an issue

#

or send it here

#

πŸ€·β€β™‚οΈ

trim mist
#

It really would be nice if you could PR wikis

mint fable
#

idrc

#

it really would be

#

uh

#

did you delete your expansion?

#

or rename it?

#

oh i gotta tell cube

#

it brings you to /animations instead of /animationexpansion

#

no idea where animationexpansion came from (original name?) but

balmy marten
#

probs

#

clip setup that not me

mint fable
#

ah

#

damn clip

heady falcon
#

Uh..

#

I didnt change the name

mint fable
#

clip's problem now so

heady falcon
#

Is it the same on the in-game interface?

mint fable
#

?

heady falcon
#

Oh wait..

#

I think when I first uploaded it a few years ago I named it animations expansion

mint fable
#

prob

junior musk
#

read the text at the top of the page

shrewd rune
#

i can install papi on bungeecord?

junior musk
#

nope

humble nymph
turbid tide
#

@shrewd rune you need to install Papi on all your servers but not on bungee

#

MoMo I am not 100% sure but it might be AutoRank's fault when they hook into PAPI

mellow skiff
#

Does anyone knows why when I install ChatControl my java script placeholders stop working?

#

If I remove chatcontrol the placeholders work again xD

turbid tide
#

try this

mellow skiff
#

already tried that

turbid tide
#

try moving the engine under the file

mellow skiff
#

under the file?

turbid tide
#

it goes like this:

#

name

#

file: name.js

#

engine: nashron

mellow skiff
#

ohh okey

#

Nop :c same problem

#

Already asked on ChatControl's discord, lets see if they have an answer

worthy frigate
#

Hi, I need help with PlaceholderAPI.

Do you know if it is possible to pull the first letter of a placeholder?

turbid tide
#

you can using javascript

worthy frigate
#

Would this be possible using skript?

turbid tide
#

idk. I don't use skript and most people here don't either xD

#

if you want to learn how to use placeholderapi javascript

worthy frigate
#

OK ill be sure to look into both!
thanks!

mellow skiff
#

ChatControl also have a scripting feature.. maybe thats why it makes the one from PAPI stop working? I really dont understand why ChatControl can make Javascript stop working

flat quartz
#

Is there going to be a python placeholder script expansion?

warm topaz
#

i very highly doubt it

flat quartz
#

At this rate it should be called Script-Expansion and allow chosing between Js, Python, Java, etc. Whatever the javax scriptengine supports

#

Super easy stuff

heady falcon
#

Wonder if there is a scriptengine to run python?

willow flame
#

Probably

#

I would imagine one exists

versed warren
#

I assume bc of gemseconomy

willow flame
#

Yep

versed warren
#

Vault and GemsEconomy

#

however, I removed Vault

#

and it worked fine

#

but I can't remove vault bc its important

lyric lion
#

Hi. Can I somehow use three+ placeholders in one? Example: %prisonranksx_rank_displayname_{math_%prisonranksx_currentrank_name%+1}%
If someone knows - please, tag(ping) me

tender vaporBOT
#
πŸ“‹ Your paste, Skylar
https://paste.helpch.at/ajivefiyeh

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

flat quartz
#

@lyric lion I wrote a script that does that. It's really complicated so I will break it down for ya ;)

Integer i = -1;
for(i = 0; i <= numberOfRegexMatchesForPlaceholdersInProvidedInputString + 1; ++i)
{
input=  PlaceholderAPI.setPlaceholders(input);
}
return   input ;
#

Now I know what you're thinking....Yako, won't that try to parse %prisonranksx_rank_displayname_{math_% as a placeholder? The answer is no. The reason? Because I tried it and it worked fine πŸ™‚

lyric lion
#

😱

Thanks.

tall torrent
#

Hi, whenever my players execute a command (/event) a custom menu from a deluxemenu with a PlaceHolderAPI - The expansion that I am using is called "Parkour" or "Parkour Expansion"), It crashes the server instantly. This has happened multiple times, here's one of the logs https://paste.helpch.at/acuzusamag.bash

I am not sure if this is placeholderapi related or deluxemenu related yet. but I just concluded that it might be placeholder. Thank you for the help πŸ™‚

tall torrent
cunning charm
#

Unlikely, @tall torrent. Read the error message properly.

#

java.sql.SQLException: The prepared statement has been finalized

#

[Parkour] Course 'parkour4' was not found in the database. Run command '/pa recreate' to fix.

tall torrent
#

Unlikely, @tall torrent. Read the error message properly.
@cunning charm Hi! We've read that error messsage and we tried that, it did execute though but crashes continuous. Not all logs have that line btw. As for our temporary fix, We unregister the "parkour" expansion from papi and deleted it's jar on the expansion folder. Afterwards, there were no more crashes.

cunning charm
#

Are you sure? Because the error message says that parkour4 was not found in the database and there is a database error.
I don't think PlaceholderAPI usually crashes a server when an error occurs, simply just unregisters the expansion?
Try fixing your parkour.

#

@tall torrent

tall torrent
#

We did fix the database more than 3x though but we'll try that again. Thank you.

cunning charm
#

Well you should probably look into it more

#

since this isnt placeholder api causing the initial issue

tall torrent
#

Well you should probably look into it more
@cunning charm Alright. Thank you

cunning charm
#

πŸ‘

austere hawk
#

@inner egret looking for build? dm me

hasty dome
#

help me πŸ˜„ The specified placeholder statistic is not an MVdWPlaceholderAPI or PlaceholderAPI placeholder

turbid tide
#

what is the placeholder you tried to use?

hasty dome
#

PlaceholderAPI 2.10.6

turbid tide
#

no I mean what placeholder you tried to use since you got that message

#

%statistic_time_played%, %statistic_mob_kills:ZOMBIE%, etc

hasty dome
#

%leaderheads_name_statistic_player_kills_alltime_1%

turbid tide
#

what does /papi parse me %statistic_player_kills% return?

hasty dome
#

%statistic_player_kills%

turbid tide
#

do /papi ecloud download Statistic /papi reload

#

and then try

hasty dome
#

it still does not work

turbid tide
#

/papi parse me /papi parse me %statistic_player_kills%

#

what does it return now?

hasty dome
turbid tide
#

server version?

#

also if you do /papi list does statistic show there?

hasty dome
turbid tide
#
/papi ecloud download Statistic 1.7.0
/papi reload```
hasty dome
#

thanks

jade flume
#

What do i get from putting papi in bungeecord?

turbid tide
#

nothing

jade flume
#

Does it even work

#

There

turbid tide
#

it won't work

#

PAPI doesn't support bungee

jade flume
#

Hmm weird lol

turbid tide
#

if you want to use it you need to install it on every server but not on bungee

#

same with the expansions

#

you need them on every server

jade flume
#

It's in softDepend in a bungee.yml file in discord

#

Link

#

Plugin

turbid tide
#

link to PAPI?

#

=pl PlaceholderAPI

tender vaporBOT
#

v2.10.6 by clip
A resource that allows information from your favorite plugins be shown practically anywhere!

Downloads:

367,120

Likes:

708

Reviews:

337

jade flume
#

I can't attach files

#

Yeet

#

Btw this is the link of the file

turbid tide
#

idk. Probably doesn't need PAPI to be on bungee to use its placeholders

unique arch
#

There isn't a placerholder like that, or?:

%<argumentnumber>_<placeholder>%

#

So I woud like to display a specific part of a placeholder

turbid tide
#

what? I don't rly understand

#

ohh

#

you could possibly use javascript

#

what placeholder are you trying to use that for?

unique arch
#

I want to get members of a faction (plugin is "feudal"). There is a placeholder where all players of the faction are.
Like PayerX PlayerY PlayerZ

Then I want to get each player and make a GUI with UltraCustomizer for settings for the leader.
xd

turbid tide
#

yeah you can do that with javascript then but you need to know some javascript

#

you can learn more on how to use them here

unique arch
#

Okay thxπŸ‘

barren citrus
#

is there a placeholder to get a player's duration of time they've been online for? I know there's the one that displays time on the server in total, but is there one just for the current join instance?

turbid tide
#

if you install LastLoginApi

#

then yeah

barren citrus
#

is that the only way?

turbid tide
#

probably there is another one but not that I know of

quasi peak
unique arch
#

xd what is wrong here?

String rank;
int argument;
int length;

function getRank() {
    argument = arg[0];
    rank = pasreString(%feudal_kingdom_members%);
    length = rank.length();
    length--;
    if(argument < length) {
        rank = rank.arg[argument];
    }else{
        rank = "Click to add a player";
    }
    return rank;
}
getRank();
brisk coral
#

"pasreString"

unique arch
#

oh

#

hm still id doesnΒ΄t work

heady falcon
#

Can someone update the wiki i made an issue

vivid sparrow
#

Whats that, js or java?@unique arch

#

Because js doesnt have String and int, only var, let and const

#

@quasi peak any errors / messages in console?

quasi peak
#

@quasi peak any errors / messages in console?
@vivid sparrow

[18:16:54 INFO]: Bredy1K issued server command: /papi reload
[18:16:54 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: chatprefix
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: chatregion
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: chatsuffix
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: suffixquality
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: movedistance
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: moveearth
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: tablistafk
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: tablistname
[18:16:54 INFO]: [PlaceholderAPI] Successfully registered expansion: javascript
[18:16:54 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[18:16:54 INFO]: [PlaceholderAPI] Successfully registered expansion: nicknamer
vivid sparrow
#

Show your javascript_placeholders file

quasi peak
#
chatprefix:
  file: chat_prefix.js
  engine: nashorn
chatregion:
  file: chat_region.js
  engine: nashorn
chatsuffix:
  file: chat_suffix.js
  engine: nashorn
suffixquality:
  file: suffix_quality.js
  engine: nashorn
movedistance:
  file: move_distance.js
  engine: nashorn
moveearth:
  file: move_earth.js
  engine: nashorn
tablistafk:
  file: tablist_afk.js
  engine: nashorn
tablistname:
  file: tablist_name.js
  engine: nashorn
vivid sparrow
#

Try to set it to JavaScript

#

Or remove it

quasi peak
#

okay, let me test it now. thank you schooltm!

vivid sparrow
#

Np

quasi peak
#

Np
@vivid sparrow Hello, I've tested and it didn't fixed, same errors.

vivid sparrow
#

Weird

quasi peak
#

removed/chang it to 'javascript', I've restart my server.

vivid sparrow
#

Expansion version?

heady falcon
#

Can someone update the wiki i made an issue

unique arch
#

Because js doesnt have String and int, only var, let and const
@vivid sparrow

Yeah I fixxed it already but thx xd

quasi peak
#

Expansion version?
@vivid sparrow javascript extension is 1.5.3, my PAPI version is 2.10.6

#

yes it's that

vivid sparrow
#

Glad someone updated the js expansion -.-

quasi peak
#

@vivid sparrow so it can't be fixed now until someone can update the js expansion right? 😭

heady falcon
#

Glad someone updated the js expansion -.-
@vivid sparrow Can you update nimations documentation

#

I put issue outlining details

vivid sparrow
#

ask cj

#

@mint fable

quasi peak
#

love you

vivid sparrow
#

does it work?

quasi peak
#

i'm testing it, wait πŸ˜†

#

no it did not work

#

@vivid sparrow

vivid sparrow
#

what happen if you remove the engine part?

#

I don't have it and works just fne

quasi peak
#

yeah i've removed the engine part

#

this still happens

vivid sparrow
#

weird

#

can you create a test script?

#
test:
  file: test.js```
quasi peak
#

can you create a test script?
@vivid sparrow Tested. The error message becomes [18:53:31 WARN]: [PlaceholderAPI] File: test.js for javascript placeholder: test is empty

vivid sparrow
#

add smth in there

quasi peak
#

and it becomes [18:54:35 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: test, the same error again

#

script:

function test() {
    return 0;
}

test();
vivid sparrow
#

that's weird

quasi peak
#

i remember this happens suddenly someday ago

#

maybe because there is a plugin conflict with it

#

let me test it out... if you have any solutions pls tell me

#

will you be there wait for me?

heady falcon
#

@bronze bison Thank you looks great

tender vaporBOT
#

@heady falcon,

Hey!

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

bronze bison
#

πŸ˜„

quasi peak
#

that's weird
@vivid sparrow After a 2h 40min test, finally I found what caused this bug, it's ChatControl Pro, this plugin will make PAPI's javascript extension broken after excute /papi reload

tender vaporBOT
#

@quasi peak,

Hey!

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

quasi peak
#

I use ChatControl Pro 8.6.6, and it has a custom JS placeholder function. Maybe the PAPI reload bug is caused by this.

severe sphinx
#

Okay so. I am having an issue with chat color. I am being told you guys may be the problem but I doubt that you are. Do you do anything wacky with chat to make chatcolor not work on line 2?

trim mist
#

We support 100s of plugins here. Which are you referring to?

severe sphinx
#

the placeholder api

trim mist
#

We don't write anything, PlaceholderAPI strictly reads data from other plugins and passes it along.

severe sphinx
#

mhm. If I were to provide a picture of all the plugins we have could you possibly diagnose the issue?

#

is it worth a shot?

#

ill post in general plugins 2

rare lily
#

Why thonking

mint fable
#

@heady falcon did you open an issue?

heady falcon
#

Aboody sorted it thanks!

#

I need to hang about this channel more alot of people come here regarding the expansion

mint fable
#

o nice

#

tru tru

lyric lion
#

One minute

mint fable
#

you can put anything after the _ and i'm honestly not sure if you even need it

#

you can test for me lol

lyric lion
#

Now it looks like &b%math_{prisonranksx_prestige_name}*5[precision:0]%%percentsign_% &3&l-> &b%math_({prisonranksx_prestige_name}+1)*5[precision:0]%%
And it works. Thanks.

mint fable
#

v nice

mint fable
#

@lyric lion I changed it to this ^

#

and it's now on the ecloud and validated so you can download it in game hopefully within 2 hours

pale helm
#

So my console is getting spammed with this...

[18:42:35 INFO]: [NametagEdit] As the error above suggests, you do NOT have any placeholder plugins installed. The placeholder API is merely an interface, it requires other plugins to function. This is NOT an issue with NametagEdit.

NametagEdit is working just fine, and I have papi on the server... Is there anyway to remove it?

lyric lion
#

You my hero ❀️

mint fable
#

what is the error above...?

#

=paste

tender vaporBOT
#
HelpChat Paste

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

mint fable
#

put your log there

pale helm
#

Just spams my console with that

mint fable
#

can you send the full startup log?

#

or at least the first part of it where it starts?

#

lol

#

that can help

warm topaz
#

lol?

junior musk
#

||why in this channel and not in #off-topic... people really never read channels' topic||

opal furnace
#

ok

opal furnace
short drift
#

Hi I have a problem with Statistic expension
/papi ecloud download statistic works but when I restart my server Statistic Expansion could not load
Error: https://paste.helpch.at/huwexebide.css
(Sorry for my english πŸ™ )

turbid tide
#

have you done /papi relaod after you did /papi ecloud download statistic

#

?

short drift
#

Yep

#

It's the same error

#

Hum I insisted on the download / reload and it's resolved
but now the problem is that the placeholder %statistic_time_played% does not work, the time is frozen

turbid tide
#

wdym by its frozen? if you do it now and after 2 minutes its the same time/

short drift
#

Yes, actually my "game time" it's 2h 59m 30s and it does not refresh
I used /papi parse me %statistic_time_played% it's same Time does not refresh πŸ€”

turbid tide
#

that is weird

#

maybe the expansion is broken

#

do other statistic placeholders work?

short drift
#

Yep I try %statistic_mine_block% and not refresh after mining πŸ€”

turbid tide
#

yeah then the expansion is maybe broken

#

what's your server version?

short drift
#

1.12.2

turbid tide
#

go to plugins/PlaceholderAPI/expansions and delete Statistic from there

#

then download it from there

#

and add it in the same folder again

#

and do /papi reload

short drift
#

After this, all Statistic placeholder are "broken" it displays the expression

turbid tide
#

even if you added it to the folder

#

and then did `/papi reload

short drift
#

Yes i just did

turbid tide
#

ok so go back to that folder and delete the statistic expansion

#

do /papi reload

#

then do /papi ecloud download Statistic 1.7.0 and /papi reload

#

and test it after

short drift
#

:sad: It's same The time does not refresh but display values

#

Oh, i reset my spigot.yml and now the time works πŸ€”
Thanks anyway ^^

turbid tide
#

yeah weird

#

stuff

junior musk
#

we can't see the full placeholder

#

and try without the[] around bskyblock

willow flame
#

Do you have the Bentobox/BSkyblock expansions installed?

junior musk
#

it's built-in the plugin

#

and @austere hawk you still didn't gave us the full placeholder you used

austere hawk
#

Hello

rare lily
#

Can't you just color it in the scoreboard config?

clear dust
#

Can some one help me with my .Js having a hard time parse a string saved in a var.

#
var p1 = "notch";


function getplayer() {
   if (args.length == 1) {
       p1 = '%bgj_'+args[0]+'_1_player%';
       p2 = parseString(p1)
   }

   return p2;
}

getplayer();

#

tried a few bits clearly the above did not work 😦

rare lily
#

Define "doesn't work"

#

Is it giving script error or anything else returned

clear dust
#

script error because of the p2= line

#

if i just return p1 it prints out the joined text with out resolving the placeholder.

rare lily
#

parseString() isn't even a thing on default js

#

You don't have to parse it ofc

clear dust
#

well i need to do something to it because its just returning the line
%bgj_ArgumentHere_1_player%

vivid sparrow
#

parseString() isn't even a thing on default js

clear dust
#
var p1 = "notch";


function getplayer() {
   if (args.length == 1) {
       p1 = '%bgj_'+args[0]+'_1_player%';
   }

   return p1;
}

getplayer();

#

if i then run /papi parse me %javascript_phead_Colours%
it gives me back %bgj_Colours_1_player% I need it to then resolve that to a value ( should be a players name )

turbid tide
#

I am pretty sure you can't do that

clear dust
#

was only trying to do it because, Dm dont seem to want to let me use an argument inside a placeholder inside the head- of a material setting.

Basicly I had this head-%placeholder_{arg}_last_of_placeholder% The placeholder returns a name just fine when used outside of the heads material but for some reason does not get a name when used in the head I think just guessing that the {arg} is not getting processed before it trys to resolve the placeholder or head resulting in no name being found. Was hoping by moving it to js to force its hand, but alas it seems i cant pass an arg into js and use that to build a placeholder to resolve...

#

resorted to making one menu per stat display rather than dynmicly changing the placeholder to each arena's name with an arg.

junior musk
#

material: head-{arg} should work just fine

austere hawk
#

hello

#

can someone help me with this SPAMMING error

turbid tide
#

seems to be a problem with how titlemanager hooks into papi

#

not sure tho

austere hawk
#

i have a

#

javascript in the titlemanager scoreboard

turbid tide
#

iof you remove it does it stop spamming?

austere hawk
#

i dont know

#

look at the

#

placeholder

#
var permission5 = "%parties_party%";

function anything() {
  if (permission5 === "") {
    return "&dJoin one!";
  } else {
    return "&d%parties_party%";
  }
}
anything()
turbid tide
#

I mean you can try and remove it

#

to see if it works

austere hawk
#

i mean it takes a lot to load

#

aaaah

#

maybe because titleamanger sqlite database

#

of players

#

i removed all the players

#

but didnt remove that file

clear dust
#

material: head-{arg} should work just fine
@junior musk Yes it does but put that arg as part of a placeholder and it fails

junior musk
#

that placeholder
%placeholder_{arg}_last_of_placeholder% doesn't exist

#

so it would explain why it doesn't work

clear dust
#

I used that as an example I have a parkour plugin that has a placeholder that requires the arena name as part of the placeholder. It returns a player name

junior musk
#

what's the placeholder?

clear dust
#

I’m at work on my phone, bit if I remove the arg from the placeholder and fill it with text it works

junior musk
#

aaag I see what you mean

clear dust
#

It’s from blockyjump parkour

junior musk
#

yeah I think I had the same problem before

#

placeholderapi placeholders parse before arguments placeholders

clear dust
#

Yeah means u can’t use an argument as part of a placeholder seems wrong I’m sure that works in other parts just not as a head material

junior musk
#

idk, it didn't work for me in commands

clear dust
#

It’s working in my lore

#

And display name I’m using the same placeholder there with the arg

junior musk
#

the new args update wasn't out when I was still using DeluxeMenus

#

latest was 1.12.0

#

so it may have changed

reef sinew
#

Is there a placeholder that can determine if a certain player is online? I'm trying to make a staff GUI, and I think it'd be cool so people can see if the staff member is online or offline.

rare lily
#

%player_online%?

reef sinew
#

Well, yes, but like a specific player.

#

Well. wait

#

Thanks. πŸ™‚

rare lily
#

Np

reef sinew
#

%parseother_{NickPlayzMC}{player_online}%

#

Is that right? ^

#

Is there any way to capitalize the placeholder? Right now it says "no", but it really bugs me that it isn't capitalized.

cunning charm
#

You can make a list of open commands.

#
open_command:
- help
- ehelp```
#

oh i see

#

What should happen when an argument is entered

#

like /help jbbbb

#

Open another GUI?

#

Yeah, so do something like

open_command:
- help
- help test```
#

Other than that, DM doesn't have support for wildcards or anything

nimble goblet
warm topaz
#

contact super mob coins author

#

theyre using an old method to hook into papi

nimble goblet
#

ah okay

jade flume
#

Guys :( i got recommended to have "DeluxMenus" as a profile plugin but there is one problem

#

I can't view offline player profile

#

Like why?

#

It's so important

radiant owl
#

i need some help

tender vaporBOT
#

@radiant owl,

Possible Solution Found:

This error occurs when there is a mismatch in versions between the expansion and luckperms itself,
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion
Once installed restart your server.

tropic forge
#

Can somebody help? I want to setup a custom messaging thing where it shows their rank & username, similar to how hypixel has it where it is "To [MVP+] {user}" and "From [MVP+] {user}" I use LuckPerms and Im unsure of the thing to put in the config that shows both their rank prefix and their username corresponding to their rank colour.

unborn smelt
#

Hello! I am having issues. I have to do /papi ecloud download server and then /papi reload every time the server is restarted.

#

It stops working when i restart

cunning charm
#

Can somebody help? I want to setup a custom messaging thing where it shows their rank & username, similar to how hypixel has it where it is "To [MVP+] {user}" and "From [MVP+] {user}" I use LuckPerms and Im unsure of the thing to put in the config that shows both their rank prefix and their username corresponding to their rank colour.
@tropic forge you'd need to use placeholders

#

otherwise, you'd need a plugin that would support groups and use a different format for each group and has a config like:

mvp: "&b[MVP] %name%"
mvpplus: "&b[MVP+] %name%```
#

Hello! I am having issues. I have to do /papi ecloud download server and then /papi reload every time the server is restarted.
@unborn smelt are there any errors in the console when its restarted?

#

Doesnt sound normal

unborn smelt
#

@cunning charm

cunning charm
#

?

tropic forge
#

@cunning charm I know, idk which placeholder I need

cunning charm
#

%luckperms_prefix% and then set the group prefix with /lp group mvp meta addprefix 5 "&b[MVP] &b".

#

The plugin doing DMs would need to support PAPI though

junior musk
#
var list = BukkitServer.getOnlinePlayers();
var amount = BukkitServer.getOnlinePlayers().size();

function onlineList() {

    if (args[0] < amount) { 
        return list.get(args[0]).toString().replace("CraftPlayer{name=", "").replace("}", "");
        }
    else {
          return "offline"
              }
}
onlineList();

does this look good or is there a better way to do it instead ? cuz I'm not that good in js x)

brisk coral
#

jesus

#

That formatting

junior musk
#

there

#

better ?

brisk coral
#

No

#
var list = BukkitServer.getOnlinePlayers();
var amount = list.size();

function getOnlinePlayer() {
  return args[0] < amount ? list.get(args[0]).toString.replace("CraftPlayer{name=", "").replace("}", "") : "Offline";
}
getOnlinePlayer();
junior musk
#

;-;

#

I suck ok ?

brisk coral
#

Also, list.get(), would return the instance, so you could just do this

#
var list = BukkitServer.getOnlinePlayers();
var amount = list.size();

function getOnlinePlayer() {
  return args[0] < amount ? list.get(args[0]).getName() : "Offline";
}
getOnlinePlayer();
junior musk
#

I tested that but it returned CraftPlayer{name=<player name here>}

brisk coral
#

If you just print out the get()

#

What does it show?

junior musk
#

I'm launching my test server, I can provide a screen

#

wut

#

ah

#

you used getName

#

yeah I'm stupid...

#

it works, thanks πŸ™‚

jaunty sand
#

Hello ! I would love to use the Pinger Placeholder, but our server isn't in English so it looks weird to have "Online" next to our lang. I found with NotePad++ where the message "&aOnline" is located, if I modify that I guess the extension will not work anymore. How can I translate it? Or could someone just make that little tiny change for me?

junior musk
#

You can change it in your PlaceholderAPI config I think

#

yup

jaunty sand
#

oops I didn't know that I see it thanks !

junior musk
#
  pinger:
    offline: '&cOffline'
    check_interval: 30
    online: '&aOnline'
jaunty sand
#

yup ! thanks for the quick answer

bright locust
#

any idea?

turbid tide
#

so when I do /papi reload I don't get any error and the expansion loads.

#

but when I use it I get a script error

#

Caused by: jdk.nashorn.internal.runtime.ParserException: <eval>:1:171 Expected an operand but found error I have no idea what this means because I can't find anything wrong

mint fable
#

@mellow skiff yo