#placeholder-api

1 messages · Page 179 of 1

turbid remnant
#

placeholder

#

i mean

turbid tide
#

just so you understand what's going on, one of your expansion is loading a class from the griefprevention plugin without telling spigot that the plugin is a soft depend

turbid tide
turbid remnant
#

do i need to download anything?

runic frost
#

Sure, I'm not on the PC right now, I'll send it when I get back home

turbid tide
turbid tide
west flame
#

So I wanted to know if it is possible to use a placeholder inside a placeholder

turbid tide
west flame
turbid tide
#

well the math expansion for example: %math_0_{player_health_rounded}/2% where {player_health_rounded} is a placeholder

austere hawk
#

can anyone send me placeholderapi dev builds? please
Im not know how to use gradlew.

I know how to use maven but grandlew no

tender vaporBOT
turbid tide
#

@austere hawk ^^^

austere hawk
#

okay thx

#

❤️

noble trellis
#

Does anyone else have a problem with Placeholder API /papi reload?

#

With the current version*

turbid tide
noble trellis
#

Updated it to Dev version and works good now! 🙂

turbid tide
#

👍

gleaming shadow
#

im using papi to show the essentials nickname in tab and it just shows in tab %essentials_nickname%

#

i did /papi parse me %essentials_nickname%

#

and it just says in chat this %essentials_nickname%

turbid tide
#

/papi ecloud download essentials

#

then /papi reload

gleaming shadow
#

i tried that

#

nothing happened

turbid tide
#

then please do a /papi dump and send the generated link over

gleaming shadow
turbid tide
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.

turbid tide
#

yeah ^^^

gleaming shadow
#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

gleaming shadow
runic frost
#

really sorry for late reply

turbid tide
# gleaming shadow https://paste.helpch.at/tesezohahe.md

Seems like you have the mysql expansion which is broken and when its loaded it just breaks the loader entirely. I recommend you delete the Expansion-mysql.jar from plugins/PlaceholderAPI/expansions and reastart your server

turbid tide
turbid tide
#

also if possible use a paste bin

#

to send the entire class

runic frost
#

the main class is a bit too big

#

I'll send the onEnable tho

gleaming shadow
#

thanks it works now

turbid tide
turbid tide
runic frost
#

Ok

turbid tide
#

I've already seen all I needed from the main class

#

the registration

runic frost
#

Alright 👍

turbid tide
runic frost
#

thank you 😄

#

It's working now

turbid tide
#

no problem 👍

blazing nest
#

Thanks for your prompt reply, guys! Good Support!

turbid tide
#

A bit confused. How are you making the placeholder? Are you making your own expansion? Or what exactly

#

that's up to the developer of the expansion to provide. we can't force them to do so if they don't want to.

#

(and yeah the ecloud one is updated by someone else. not clip. the PAPI one hasnt been updated in like 3 years)

gray flame
#

i've install plugins: PlaceHolderAPI, ProtocolLib, HolographicDisplays, executed commands /papi ecloud download vault and then /papi reload and still %vault_eco_top_balance_1% doesn't work on HolographicDisplays

#

Yeah "PlaceholderAPI Support"

olive venture
#

You are just using this in bad timezone

molten beacon
trim mist
#

Your quest expansion doesn't support the version of the expansion you're using

molten beacon
#

How did you figure that out by looking at it?

balmy marten
#

java.lang.NoClassDefFoundError: me/blackvein/quests/Quest

#

Was looking for something that didn't exist

#

hence Glare's reasoning for it not being support at the current version

molten beacon
#

any recommendation for how to fix it?

#

Well turning it on then back off again didn't work but deleting the file and redownloading it worked....

turbid tide
# gray flame Yeah "PlaceholderAPI Support"

Not sure if you wanted instant support but you might want to know its not even PAPIs fault. HD just doesn't support PAPI. You will have yo also install holographic extension

gray flame
#

Oh it works now

#

Thanks

#

Holographicextension

magic rock
tender vaporBOT
tacit hull
#

does anyone know why it doesn't count statistics from %statistic_deaths%? it is always set to 0.

warm topaz
#

make sure u have the statistics enabled in the bukkit/spigot.yml, whichever config its in

tacit hull
#

thanks

blazing nest
tender vaporBOT
blazing nest
# tender vapor

Don't @mention staff **unless they are actively in a conversation with you. **

turbid tide
turbid tide
blazing nest
blazing nest
turbid tide
blazing nest
turbid tide
#

oh boy. that looks awuful. that'd be 3 lines in javascript.

#

but looks pretty easy to do tho anyways

blazing nest
#

Can you tell me what it means to do through javascript?

#

I don't really understand this topic.

turbid tide
# blazing nest https://ibb.co/NTtyCW6 https://ibb.co/cr8GTgM
config:
  configs:
    NAME:
      file_name: FILE_NAME.yml
      paths:
        PATH1: PATH1.PATH-OPTION
        PATH2: PATH2.PATH-OPTION
      file_path: FILE_PATH```

so: NAME is whatever the placeholder name should be,
FILE_NAME is the name of the file you want to put the config in
PATH1/PATH2 the paths to compare to, 
FILE_PATH is the where the FILE_NAME file will be located at.
#

so basically to explain to you what the one you have does exactly

#

is

#

take the path hp.%player_health_rounded% which will be basically hp.20 for a player that has 20 health, and display whatever option is at that path in a file called hp.yml that you can find in plugins/PlaceholderAPI/hp.yml

turbid tide
blazing nest
#

By the way, something must have changed in the new version, because, for example, this is what the example configuration looks like. https://ibb.co/4NSYGYm

turbid tide
turbid tide
#

you might also have to update the PAPI config.yml for the new path format

blazing nest
turbid tide
#

but you might have to update the config

blazing nest
#

delete the config so that it is re-created?

turbid tide
turbid tide
blazing nest
#

Ah, got it. But I don't need hp, ahah. I just want to change the labels depending on the gm

#

I just don't understand how PAPI will understand that the values should change from gm (according to the new format)

turbid tide
#

well then add a new option

#

gamemode: /plugins/PlaceholderAPI/configs/gamemode.yml

blazing nest
#

okay

turbid tide
#

go to plugins/PlaceholderAPI/configs and add a gamemode.yml file

blazing nest
turbid tide
#

oh you already made it. right

blazing nest
turbid tide
#

then use %config_tabgm_STRING_tabgm.{player_gamemode}_DEFAULT-VALUE%

#

use this

#

placeholder

blazing nest
#

okay, i'll try to

blazing nest
turbid tide
blazing nest
#

It's just that he writes %health% in raw text

#

Oh, okay

blazing nest
turbid tide
#

if you still have your hp.yml file, add it to plugins/PlaceholderAPI/configs

#

then make sure this is set in plugins/PlaceholderAPI/config.yml: hp: /plugins/PlaceholderAPI/configs/hp.yml

#

and then use %config_tabgm_STRING_hp.{player_health}%

blazing nest
turbid tide
blazing nest
tender vaporBOT
blazing nest
#

Well, I did it a little differently. I left tabgm alone, created an additional tabgm2 file, where I compared the values. For gm adventure and survival, the value is {player_health_rounded}. As a result, it displays this way, in raw text. And when changing to INTEGER in datatype, it returns the value 0, although I have, for example, 20 hp. (https://ibb.co/w4ZZKGB https://ibb.co/rtT2bZf https://ibb.co/d7Hcxvb)

blazing nest
#

All... after 100 years, I realized how to do it, this option is working: %config_tabhp_CHAR_tabhp.color depending on the value of {player_health_rounded}%%config_tabgm_STRING_tabgm.{player_gamemode}_{player_health_rounded} &fЗдоровья%
where: tabhp - color depending on the value of {player_health_rounded}
tabgm - text value depending on {player_gamemode}
{player_health_rounded} &fЗдоровья - the default value, with the condition that we will not write anything for SURVIVAL in the tabgm config

boreal knoll
#

papi player

#

!papi player

spring grove
#

Hello

#

Papi is breaking my plugin by blocking spark tps api.

#

It always sends 0.

#

It only happens with placeholderapi on 1.18 server

#

Btw I know 1.18 is not officialy supported

spring grove
#

Fixed by adding as depend

rich rune
#

Hi, I have a problem, Placeholder api just isnt working.. I test anything by parse or special PAPI test plugin, but everyplaceholder is shown like %player% or %tps% or just %any_placeholder%, but not the real placeholder

#

Im using 1.18 latest paper with latest PAPI release

vivid sparrow
#

Make sure you use this jar @rich rune

#

And that you have the expansions installed

tender vaporBOT
#
FAQ Answer:

Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload

rich rune
#

Ok, so the playerlike works, but from plan, TAB or even basic like %afk% or %world% (shown as Bukkit at wiki) dont work

turbid tide
#

those are not PAPI placeholders

#

%player_world% is

rich rune
#

I dont get it, why are some working and some not ? For example placeholder from plan or tab are not working

#

Andi have their newest updated versions

#

Or %vault-prefix% is showing nothing

turbid tide
#

%vault_prefix% not -

#

also have you downloaded their respective expansions?

rich rune
#

I think so

junior musk
#

the - version is a TAB only placeholder

#

they won't work in other plugins, so you have to use the PAPI version (aka the one Blitz told you above)

rich rune
#

Okey, i got it thanks, but placeholder from PLAN %plan_player_time_active_raw% for example is not working too 😦

#

Just some are, and some not

junior musk
#

you should try to contact the author of the PLAN plugin then

rich rune
#

Yea, thanks i will try it, it looks not problem on PAPI side

unreal matrix
#

java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null any help?

manic imp
blazing inlet
#

Hello!. any news with javascript extension? my server uses this extension a lot and I can't find any information about it. Thank you

trim mist
#

What about it?

neon gust
#

for some reason, deluxechat isn’t parsing the placeholder %hexnicks_nick% even though papi can parse it with no stress, any idea why?

simple nova
#

any idea why

#

my half holograms broke and now showing raw placeholders ?

#

1.17.1

#

didnt touched anything for months

warm plover
#

Hi, I'm trying to use /papi parse me %playerlist_online,world,yes,amount,[playerlist_online\.normal\.yes\.0]House% to list players in a world with placeholders. %playerlist_online,normal,yes,0% parses as my name and the world name is called 0bviousleeHouse. It shows as 0 even if I'm in the world

misty sequoia
#

Is there a papi version that can support Minecraft 1.18?

magic rock
#

pinned message

#

top right

misty sequoia
#

im sorry

magic rock
#

did u find it?

misty sequoia
#

not yet

magic rock
#

are u on pc or mobile

misty sequoia
#

PC now

#

www

magic rock
#

in top right

#

is this button

misty sequoia
#

top right?

magic rock
#

like

leaden kraken
misty sequoia
#

oh

#

i got it

#

thx!

magic rock
turbid tide
simple nova
#

Got holoextension updated got protocollib updated

#

From nothing

#

Half broke

simple nova
turbid tide
#

I mean the thing is if it works with /papi parse its not really a PAPI problem. and I'm not really sure how to fix it. its very strange that some holograms work and some dont. never seen that beffore

warm plover
#

I tried to put the placeholder in a few different ways and it still didn't work ;-;

turbid tide
warm plover
#

Online players in a world called 0bviousleeHouse

#

Online players 0 is 0bviouslee

#

Which is the second placeholder in the placeholder

turbid tide
warm plover
#

I just want the amount

turbid tide
#

change list to amount

warm plover
#

And it’s using DeluxeMenus so I need to use a placeholder as world name

turbid tide
#

what placeholder. a PAPI placeholder?

#

or an argument?

warm plover
#

Yes, a placeholder

turbid tide
#

then

#

the internal placeholder will use {} instead of %%

warm plover
#

It always say 0 though that’s myissue

turbid tide
#

are you sure the papi placeholder returns a valid world name? and it doesn't modify it at all?

warm plover
#

It says my username (0bviouslee) and then I added House to then end and that is a valid world name

turbid tide
#

I'm still a bit confused. can I see the entire placeholder youre testing?

warm plover
#

%playerlist_online,world,yes,amount,{ playerlist_online.normal.yes.0}House%

#

The . Are supposed to be . As shown to use commas

#

Backslash

junior musk
#

uh

#

what are you trying to do exactly ? 👀

warm plover
#

I explained above

junior musk
#

showing amount of players in the world House ?

warm plover
#

I’m trying to get the amount of players in a world

#

But the world has a player name

junior musk
#

oh

#

I don't think that's supported

warm plover
#

I can’t use player list within player list?

junior musk
#

you can't use placeholders within playerlist

#

but I do have an idea

warm plover
#

That’s weird it says you can in the wiki

junior musk
#

uh

#

👀

#

where

#

I don't even know my own wiki lol

warm plover
#

[placeholder] for placeholderapi and {placeholder} for Java script I’ve tried both

junior musk
#

nah it's [placeholder] & {placeholder} both for any PAPI placeholders

warm plover
#

ah

junior musk
#

it does seem like it should work

#

though I'm not sure about the . in the placeholder

warm plover
#

It’s supposed to be a black slash .

#

I’m the wiki it says backslash. Is a comma

junior musk
#

only here

#

in the list-<format>

#

not in the world

warm plover
#

I see

junior musk
#

though I think I have an idea

warm plover
#

Sorry for such a weird use of this I’m making a gui that allows you to teleport to a players world with a browsing menu

#

Couldn’t see any other ways of doing it

junior musk
#

%nested_playerlist_online,world,yes,amount,{playerlist_online,normal,yes,0}House%

#

also requires the NestedPlaceholders expansion

warm plover
#

Yup getting that now, ty

#

That worked! Thanks so much

turbid tide
#

Tanguygab just saving everyone today

junior musk
#

👌

#

fixed by using 2 of my PAPI expansions lol

warm plover
#

I didn’t even know nested existed I really wish I knew sooner lol

earnest needle
#

So, I'm having an issue where I have PAPI on a Magma 1.12.2 server, and it loads fine on its own but when starting up with expansions, the server hangs as PAPI loads

#

The current workaround is starting the server with an empty expansions folder, downloading the required expansions with ecloud (currently need Luckperms expansion but I tested with others to make sure Luckperms wasn't causing the problem. Even 1st party expansions such as Player borke the server), and running /papi reload

#

This is, for obvious reasons, not a feasible solution, especially since we need to be able to have automated restarts

turbid tide
#

papi doesnt support manga. we know a lot of expansions break there so probably one of the expansions breaks and just crashes everything or something

trim mist
#

If you're the same person who opened the GitHub issue earlier, we already said we don't support Hybrid modules so we cannot and will not fix this. 🙂

earnest needle
#

im not the same person

tender vaporBOT
#
Hey!

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

earnest needle
#

oops

trim mist
#

Ahh okay, I'll link you to the conversation.

earnest needle
#

k

#

ty

trim mist
#

Yup! 🙂

earnest needle
#

does deluxechat by any chance support its own placeholders that don't rely on placeholderapi?

#

owait wrong channel ig

heady urchin
#

Having an issue with the Statistic addon

#

Those 2 parase's are 1 second apart

#

For some reason the playtime is increasing super fast, anyone know the issue and how to fix?

dense sequoia
#

Hey

#

Papi dont work

tender vaporBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

dense sequoia
dense sequoia
fervent spire
#

Have you done /papi ecloud download Luckperms then /papi reload

dense sequoia
#

The rank dissapear

fervent spire
#

What do you mean it disappear?

dense sequoia
#

O wait

#

Xd

#

I need test a thing

#

Oooh work

#

Ty

dense sequoia
#

For what the commands changed to /e

#

?

leaden kraken
#

What?

austere hawk
#

where can i download 1.18 developmental build?

fervent spire
#

Check pins

austere hawk
#

ah ty

wintry patio
#

How can I reset placeholders?

#

%voteparty_player_votes% how can I reset this in code

trim mist
wintry patio
#

Schubes is the owner, Im configuring his server

trim mist
wintry patio
#

But it was more so that I wanted to know how to reset it in code that I wrote

#

it doesn't matter what placeholder it is

trim mist
#

Well it pulls from the player data so you'd have to reset the data.

wintry patio
#

Im dumb

#

It was because it was running old code before the votes updated cuz its in a bukkit runnable

#

sorry its fixed

trim mist
#

Awesome!

#

You working on modifications to VP? Anything cool?

wintry patio
#

yeah, it jsut adds /vote and a message that runs every interval

#

to remind the player to vote

trim mist
#

Ahh cool!

wintry patio
#

I was a little suprised at first that VP didn't have it but then i thought that it made sense since its mainly a vote party plugin not mainly a vote plugin

trim mist
#

Yeah so it's slowly shifting over to be more of a voting plugin.

#

Not this upcoming update but soon I'm going to be adding a vote command to it.

#

Was originally against it since I had the mindset of it doing parties but over the past year I've expanded it to do so much more so I'm going to be adding in some more stuff like that.

wintry patio
#

oh sick, yeah I was using superbvote but that isnt in development anymore, and plus since VP counts votes and gives rewards I thought it would be a good idea to just make my own plugin to do what superbvote doesn't have yet lmao 😄

wintry patio
trim mist
#

VP is also open source so you could just modify it yourself if you know Kotlin, but if not, you can just hook into it's API 🙂

wintry patio
trim mist
#

You could just compile it yourself and use it, the payment is for the support and to support the time and effort that I put into it 😛

#

But I'm glad to see you using your resources and making your own projects.

wintry patio
trim mist
#

Totally fine 😛

wintry patio
#

I need to learn Kotlin tho, I just started using InteliJ, switching over from eclipse

trim mist
#

That's why all my public plugins are open source. I came from a place of little money so I know what it's like to not be able to buy everything, so I don't require people to pay to use my stuff.

#

That's a great decision. I used Eclipse for like a week before going full-time IntelliJ

#

6 years in or so now.

wintry patio
#

IntelliJ is great, especially with being able to upload directly to github

wintry patio
trim mist
#

I don't even use that feature, I have a 3rd party git client just to help me manage projects.

wintry patio
wintry patio
trim mist
#

Just easier and what I was used to. I used to use it.

wintry patio
#

oh, yeah its great using git hub. Until i built my own pc they were breaking alot and I was loosing all my data for plugins. Thats why im getting into it again now after like 3 years cuz I now have a good enough computer too lmao. But if i used intellij before I could just have uploaded it there and it wouldve been safe

trim mist
#

I'm off to bed. Take care.

wintry patio
#

Alright good chat, and thanks for the quick help 😄 Goodnight 😄

leaden wolf
#

Hey, I just randomly got this error when trying to reload my expansions?

[00:07:34 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/massivecraft/factions/RelationParticipator

Could someone tell me what that is ?

turbid tide
#

then restart the server

leaden wolf
silk thistle
#

Hi there, I was wondering if there is a way to only display placeholders on certain worlds or conditions ?

turbid tide
eternal yoke
turbid tide
#

either install the vault plugin or remove the vault expansion

eternal yoke
#

i have vault plugin

turbid tide
#

oh yes you do. thats strange

#

why would it not be able to load it

eternal yoke
#

idk

magic rock
turbid tide
eternal yoke
#

i already installed

turbid tide
#

you have a development build

#

from what I can see in the startup log

eternal yoke
#

means

turbid tide
#

not the 1.7.3 release

eternal yoke
#

wht

#

you sayy

#

how to solve

#

pls

#

say

magic rock
#

b131 is latest on spigot i think (not sure cant decomopile jar rn)

turbid tide
#

oh you're right. my bad

#

ok then @eternal yoke can you do /papi dump and send over the generated link?

eternal yoke
#

wait

magic rock
#

vault is disabled

eternal yoke
#

then how to enable

magic rock
#

nvm

#

i cant read

eternal yoke
#

what read??

magic rock
eternal yoke
#

16

#

for 1.17.1

turbid tide
#

also send that papi dump please

eternal yoke
#

i cant

#

because when i start my server it turn off automaticlly

magic rock
#

/papi ecloud download expansion /papi reload downloads newest expansion if you have that expansion already?

eternal yoke
#

wait i delete placeholder apl

magic rock
jolly barn
#

hello, for some reason I can't manage to get PAPI's translation working. this is my code:
PlaceholderAPI.setPlaceholders(player,"%player_name% {player_name} player_name");and I end up with what I started - %player_name% {player_name} player_name.
Any idea why it's not working?

info: using version 2.10.10, dependency (full, not soft) exists, Maven dependency also exists - 2.10.10, PaperMC 1.17.1, Java 16

magic rock
eternal yoke
#

wait

turbid tide
#

/papi ecloud download player then /papi reload

magic rock
#

nono

#

server is dying

#

because bungeeguard

#

@eternal yoke

eternal yoke
#

why

#

ohh

magic rock
#

"BungeeGuard] BungeeGuard is unable to listen for handshakes! The server will now shut down."

eternal yoke
#

ohh

magic rock
eternal yoke
#

no paper is very laggy

turbid tide
eternal yoke
#

purpur is better than paper

magic rock
#

you can use purpur

#

i think

#

🤔

#

if no

eternal yoke
#

waht

magic rock
#

contant author of bungeeguard to add fork support

eternal yoke
#

what

turbid tide
#

you're currently using spigot not purpur tho

eternal yoke
#

yes

jolly barn
#

thx!

magic rock
eternal yoke
#

i just deleted bungeeguard

magic rock
#

ok xd

#

you should still use purpur tho xd

#

"enabling 42 s" kinda oof

eternal yoke
#

when i delete bungee guard plugin

magic rock
eternal yoke
#

my server is working properlyy

#

thank you

#

heyy

dense sequoia
#

Any know for What my commands now start with/e?

scarlet valve
#

'%formatter_number_time_hours_{commandtimer_rotate_nextExecution}%'

#

is there something wrong with this placeholder ?

#

this should turn a number into hours right ?

mint fable
#

what does /papi parse me %commandtimer_rotate_nextExecution% return @scarlet valve ?

mint fable
#

if it returns a number, maybe try time_fromHours

scarlet valve
#

Sorry

#

Can i do it from console?

mint fable
#

try it

scarlet valve
mint fable
#

okay try the fromHours thing

#

see if that works

scarlet valve
#

without _

#

?

mint fable
#

%formatter_number_time_fromHours_{commandtimer_rotate_nextExecution}%

scarlet valve
#

This will change the tim from a number to hours like
HH:MM:SS?

mint fable
#

no

mint fable
#

seconds?

#

hours?

scarlet valve
#

Yes

#

Seconds

mint fable
#

okay let me get one

scarlet valve
#

I want to change from seconds to time

mint fable
#

hmm, i don't think you can do a custom format

#

it looks like what it shows is 1h 5m 7s

#

or something like that

#

is that good or do you want hh:mm:ss

scarlet valve
tender vaporBOT
scarlet valve
#

Sorry

mint fable
#

okay just use %formatter_number_time_fromSeconds_{commandtimer_rotate_nextExecution}%

scarlet valve
#

Thanks

clear comet
#

Hello! Sorry to bother you all, however I seem to have an issue with my placeholders unregistering every so often in my hub server. I'm trying to keep it as the vault and player expansions for the chat to work properly, but they unregister so often, would there be a thing I would have to do to prevent this? Let me know if you need any config files or what not.

verbal forge
#

does anyone know how I can reset some stats? like I do a reward for whoever has the most kills on thursday, how can I reset the kills every thursday?

tender vaporBOT
turbid tide
scarlet valve
#

I was looking for a placeholder that change

#

A number

#

To time

#

Like a countdown from numbers to hours and minuts

turbid tide
#

and what does that number give exactly/

scarlet valve
#

Seconds

#

24519

turbid tide
#

ok 1 sec

#

fromHours assumes you give it hours not seconds

#

oh wait he did tell you from seconds

scarlet valve
#

Yes

turbid tide
# scarlet valve Yes

%formatter_number_time_{commandtimer_rotate_nextExecution}% what about this? can yo utest it please

scarlet valve
#

Nope

#

Didlt work

turbid tide
scarlet valve
#

What kt says?

#

Just give the placeholder

#

It gives nothing

#

Doing parse command

#

Give nothing

#

I think i fixed it

turbid tide
#

alr nice

chrome heron
#
        <dependency>
            <groupId>me.clip</groupId> //Error
            <artifactId>placeholderapi</artifactId> //Error
            <version>{VERSION}</version> //Error
            <scope>provided</scope>
        </dependency>

Does someone know it gives out this error?
Dependency me.clip:placeholderapi:{VERSION} not found

junior musk
#

you have to actually use a valid PlaceholderAPI version

turbid tide
#

yeah replace {VERSION} with 2.10.10

chrome heron
#

Ok, thx alot!!

#

it did it again but with "Dependency me.clip:placeholderapi:2.10.10 not found" as the error

junior musk
#

did you add the repository?

chrome heron
#

yes

junior musk
chrome heron
#
        <repository>
            <id>placeholderapi</id>
            <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
        </repository>
turbid tide
#

send the whole pom in a paste bin

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

chrome heron
tender vaporBOT
#
📋 Paste Converted!
https://paste.helpch.at/ekedacepex

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

chrome heron
#

I have the PlaceholderAPI-2.10.10 jar imported as an external library in my project

turbid tide
#

you don't have to. maven also works. I Just haven't used maven before. probably send the pom in #development

chrome heron
#

Wait, i'm new to maven. So if you just use maven you don't need to import the jar?

turbid tide
#

yeah

ornate dome
#

Hey there, 2.10.10 is compatible with 1.18 spigot right?

austere hawk
balmy marten
#

We should have a release build soon™️

fervent spire
#

Papi already working on 11.18 an my plugins are stuck on 1.18. Papi is da future

eager swallow
#

hi guys

#

i have a problem, after i update the server to java 16 the javascripts are not working anymore

hallow mica
#

There way that papi will support mohist?

carmine veldt
#

We don't support anything that isn't spigot or paper

#

papi 3 may have better support for alternative forks, there's no guarantee though

fervent spire
#

Plus mohist does weird stuff with plugins

hallow mica
#

Papi 3?

#

Whats that?

fervent spire
#

PlaceholderAPI v3

carmine bay
#

Hello, is it still possible to use OfflinePlayer to parse placeholders in a plugin code?

turbid tide
carmine bay
#

okay

#

actually i've got a custom expansion that's not supposed to use any player data at all

#

and when i'm parsing my placeholders they're just empty

#

I'm trying to make a Discord bot which allows people on my discord server to send messages to the minecraft server chat, and my custom placeholder just gets the discord message string and the MC username that is related to that discord user in my database

#

so it doesn't interact with an online player's data at all

#

(and btw, if the person who sends the message on discord is currently online on the server, then it works without any problems, that's why i'm asking about OfflinePlayer)

eager swallow
turbid tide
turbid tide
#

and server version?

eager swallow
#

1.8.8

turbid tide
#

can you remove the javascript placeholders from your holograms and test them with /papi parse? see if it errors then

#

its up to plugins to support papi not the other way around

#

it will probably work tho since there's no major modification

#

other than version support

#

that is not a PAPI placeholder my friend

#

that is probably a simple score internal placeholder

#

yes. %player_ping%. make sure you've downloaded the player expansion /papi ecloud download player then /papi reload

#

maybe?

#

yes. its 1 5 and 15 seconds

#

use %server_tps_1%

#

no problem

tender vaporBOT
scarlet yew
#

Oof 😄

turbid tide
tender vaporBOT
scarlet yew
#

Yep I am

turbid tide
#

Expansions? well it depends on what you need. server expansion for example returns nice info about the server, player about the player etc. usually the identifier tells you what they help you with

turbid tide
eager swallow
#

acc the friend request please, i will send it in dm

turbid tide
turbid tide
eager swallow
#

maybe it's something wrong with .js files?

#

it worked on java 11

turbid tide
#

hmm didn't even think about that. but I kinda doubt it. can I see it maybe?

eager swallow
#
    var slots = %bungee_sz1% + %bungee_sz2% + %bungee_sz3% + %bungee_sz4% + %bungee_housing% + %bungee_skymines% + %bungee_oneblock%;
    return slots;
}
slots();```
turbid tide
#

yeah nah. shouldn't be a problem

eager swallow
#

oh okay

edgy delta
#

hey

#

Can some1 tell me the placeholder of tps in minecraft?

#

would really appreciate it!

carmine veldt
#

%server_tps%

edgy delta
tepid oak
#

Is there a version of papi for 1.18?

#

nvm

turbid tide
tender vaporBOT
turbid tide
#

here ^

#

or pinned messages

alpine kayak
#

Why does %server_name% return 'A minecraft Server' while in the server.properties its server-name=Lobby-1
Ah I see, is there a placeholder to get the one from server.properties

turbid tide
alpine kayak
#

Is there a way to get the one from server.properties?

turbid tide
alpine kayak
#

Ah okay, I'll write my own one ig

#

Is it normal that the RedisBungee extension no longer works?

turbid tide
#

well I mean it hasn't been updated in a long while.

alpine kayak
#

Ah okay 👌

austere hawk
turbid tide
#

First of all

#

don't use plugman

austere hawk
#

i only use it to check versions of plugins and stuff cus im lazy

turbid tide
#

second of all update your essentialsx

austere hawk
#

i have replaced it with cmi

#

well, atleast tried

turbid tide
#

then remove the essentials expansion

#

go to plugins/PlaceholderAPI/expansions

#

and delete the jar from there

#

and then restart the server

turbid tide
austere hawk
#

The plugman is like a bad plugin or?

turbid tide
#

well its "reloading" features. so we usually just don't recommend using it at all but if you really just use it for plugin info I Don't think its a problem. I am not actually sure how the info command works for it so can't be sure

austere hawk
#

works now, thanks

dawn hinge
#

i'm trying to import papi compatability in my plugin, but the docs doesn't tell me what to do

#

it lets me use placeholders from other plugins or whatever in my plugin

#

i want to create a placeholder that can be used in other plugins

#

how would i go about doing this

austere hawk
#

Is there a working Java 17 JavaScript expansion?

austere hawk
#

I don't like placeholders on holograpich

#

they do not go*

turbid tide
turbid tide
#

you can however get them to work using the addon called HolographicPlaceholders or the other one called HolographicExtension

#

and also you'll need ProtocolLib

dawn hinge
#

internalclass most likely

turbid tide
# dawn hinge internalclass most likely

well you can have them either way. internal means it will just come with the plugin. it will be easier for the users to set up (well they'll have to do no setting up) but it will be harder if you want to update just the expansion alone.

#

I personally just do it inside my plugins (internal class)

austere hawk
turbid tide
#

latest will probably work

dawn hinge
#

thanks for your help

#
        <repository>
            <id>spigotmc-repo</id>
            <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
        </repository>
        <repository>
            <id>sonatype</id>
            <url>https://oss.sonatype.org/content/groups/public/</url>
        </repository>
        <repository>
            <id>placeholderapi</id>
            <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>org.spigotmc</groupId>
            <artifactId>spigot-api</artifactId>
            <version>1.8.8-R0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>me.clip</groupId>
            <artifactId>placeholderapi</artifactId>
            <version>2.10.10</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>```

intellij doesn't like the dependency for papi
#

i ignored the error and when trying to create the class, i cant because it isnt imported properly

#

any idea?

turbid tide
dawn hinge
#

alright

dawn hinge
turbid tide
#

no problem

dawn hinge
#
    public String onPlaceholderRequest(OfflinePlayer p, String params) {
        UUID uuid = p.getUniqueId();
        Integer kills = SQLGetter.getKills(uuid);
            if(params.equalsIgnoreCase("kills")) {
                return kills.toString();
            }
            return null;
        }```
this should make %kills% return the kills from mysql db right
#

ehm Could not load 'plugins/KitPVP-1.0-BETA.jar' in folder 'plugins' org.bukkit.plugin.UnknownDependencyException: PlaceholderAPI

turbid tide
#

it should make %identifier_kills% return the kills

#

also make sure you have PlaceholderAPI actually installed

dawn hinge
#

smh i uploaded PAPI to the wrong folder

#

%kitpvp_kills% doesnt return anything - what am i doing wrong?

    public String getIdentifier() {
        return "kitpvp";
    }``` ^ identifier
dawn hinge
turbid tide
#

well if you don't override it wont work

dawn hinge
#

"Method does not override method from its superclass" is what intellij throws when i override

turbid tide
#

are you extending PlaceholderExpansion?

dawn hinge
#

I am

#

this is my import ```import me.clip.placeholderapi.expansion.PlaceholderExpansion;

#

any idea?

turbid tide
#

no. I am not sure

wicked ocean
#

im using a deluxechat

#

but

turbid tide
simple nova
#

[21:28:52 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[21:28:52 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_0_{griefprevention_bonusclaims}+{griefprevention_accruedclaims}%
[21:28:52 WARN]: [PlaceholderAPI] [Math] Cause: '{griefprevention_bonusclaims}+{griefprevention_accruedclaims}' is not a valid Math-Expression.

#

1.18

wicked ocean
granite palm
#
int progress = -1;
String papiClass = "me.clip.placeholderapi.PlaceholderAPI";

if(ReflectedObject.hasClass(papiClass))
{
    ReflectedMethod method = new ReflectedObject(ReflectedObject.getClass(papiClass)).method("setPlaceholders", //Method
        new Class[]{Player.class, String.class}); //Parameters (Player, String)
    String progressString = method.invoke(String.class, player, "%progress%");
    System.out.println(progressString); //%progress%

    try
    {
        progress = Integer.parseInt(progressString);
    }
    catch(NumberFormatException ignored)
    {

    }
}

I am trying to replace "%progress%" to a number (EzRanksPro placeholder, is installed), but instead of a number I get the original String back

vivid sparrow
#

what the ...

#

do you know papi has an api, right?

granite palm
#

Yes

#

I am using it

vivid sparrow
#

Well, not here at least

#

%progress% is not a valid placeholder

granite palm
#

It is, @high swift sent me

vivid sparrow
#

No, it is not.

#

It may be, but inside ezrankspro config file

granite palm
#

Yes

turbid tide
#

Welll thats not papi placeholder

high swift
#

%displayname% - players displayname
%world% - players current world
%rank% - players current rank
%rankup% - players next rank (if they have one)
%cost% - cost to rankup
%cost_formatted% - formatted cost to rankup
%balance% - players balance
%balance_formatted% - players formatted balance
%difference% - amount still needed
%difference_formatted% - formatted amount still needed
%progress% - rounded % of rankup cost obtained
%progressexact% - exact % of rankup cost obtained
%rankprefix% - players current rank prefix defined in this file
%rankupprefix% - players next rank prefix defined in this file
%lastrank% - last rank available
%lastrankprefix% - last rank available prefix
%rankup_cost_<rankname>% - show the cost for a specific rank
%rankup_cost_formatted_<rankname>% - show the formatted cost for a specific rank
%rankup_is_completed_<rankname>% - show if a player has completed the specified rank

turbid tide
#

that's ezrankspro placeholder

granite palm
#

I understand that

vivid sparrow
#

Placeholders that can be used only on ezranks config. Outside of it, you use placeholders that starts with %ezrankspro_...%

vivid sparrow
#

Why do you use reflections though ..?

granite palm
#

Because I also want support with other plugins who don't use PAPI and I also want to make replacing placeholders optional

#

But for that you have to understand the concept of the plugin

vivid sparrow
#

No, I don't

turbid tide
#

lmao

vivid sparrow
#

if Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")
then PlaceholderAPI.setPlaceholder(player, string)

Simple as that

granite palm
#

Ok will do

#

Is PlaceholderAPI the class extending JavaPlugin?

vivid sparrow
#

No

#

Thats PlaceholderAPIPlugin

granite palm
#

Oh it's a static method

vivid sparrow
#

Yes

granite palm
#

Just use it as check then

vivid sparrow
#

What?

turbid tide
#

you don't have to?

granite palm
#

Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")

#

If the plugin exists

vivid sparrow
#

The plugin name is not given by a class

granite palm
#

Yes

vivid sparrow
#

So?

#

Anyways

#

Use what I've sent, there's no reason to use reflections

granite palm
#
if(Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI"))
    PlaceholderAPI.setPlaceholders(player, "%ezrankspro_progress%");
vivid sparrow
#

There's also a method to get an expansion by id and then replace placeholders iirc

granite palm
#

Which one?

vivid sparrow
#

Though, for such things I would suggest to do it this way ONLY if there's no api or another way to access the data directly

vivid sparrow
granite palm
#

There is no way to access it, I have tried serval ways

vivid sparrow
#

Have you tried to add the ezranks jar to your plugin?

granite palm
#

The EzRanksPro API just doesn't have a method for it

vivid sparrow
#

Since the expansion isnt built into the plugin, it has one for sure

#

Decompile the expansion and see how it is done

granite palm
#

But it always returns 0

vivid sparrow
#

?

granite palm
#

public int getRankupProgress(final Player player) {

#

Always returns null, doesn't matter how far your balance is

vivid sparrow
#

Where did you got that from?

granite palm
#

Also
[21:02:09 INFO]: [AdvancedReplacer] [STDOUT] %ezrankspro_progress%

int progress = -1;

            if(Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI"))
{
    String progressString = PlaceholderAPI.setPlaceholders(player, "%ezrankspro_progress%");
    System.out.println(progressString);

    try
    {
        progress = Integer.parseInt(progressString);
    }
    catch(NumberFormatException ignored)
    {

    }
}
#

I can't upload images here?

tender vaporBOT
granite palm
granite palm
austere hawk
tender vaporBOT
austere hawk
#

Oh right

turbid tide
#

or what about it is broken

austere hawk
#

Yeah I'm about to paste it

#

Keep in mind it was working fine before updating to java 17 ^

#

I saw there was an open issue about it on github too from 7 days ago

turbid tide
#

well until that gets fixed yo uhave to use adoptium instead of using openjdk then if its already reported as an actual issue

keen dirge
#

Hi cuties, my placeholder stopped working out of nowhere?

#

I got version 2.10.10-DEV-null

#

no idea how it just stopped working out of nowhere

ornate dome
#

Hey guys, is there a way to intercalate 2 different scoreboards from two different plugins using PAPI?

pliant pulsar
turbid tide
turbid tide
tender vaporBOT
turbid tide
#

^ this. also you got any errors? if not generate a startup log and send it over

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.

hybrid python
#

Today I updated the servers, probably like most of them, in connection with this exploid.
I have a problem with PlaceHolderAPI in the Lobby, I do not use Essentials, but I constantly download this library in the extension and after removing it and typing /papi reload everything starts working nicely.

#

Log:

java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net / ess3 / api / IEssentials
at java.util.concurrent.CompletableFuture.encodeThrowable (CompletableFuture.java:315) ~ [?:?]
at java.util.concurrent.CompletableFuture.completeThrowable (CompletableFuture.java:320) ~ [?:?]
at java.util.concurrent.CompletableFuture $ AsyncSupply.run (CompletableFuture.java:1770) ~ [?:?]
at java.lang.Thread.run (Thread.java:833) ~ [?:?]
Caused by: java.lang.NoClassDefFoundError: net / ess3 / api / IEssentials
at java.lang.Class.getDeclaredMethods0 (Native Method) ~ [?:?]
at java.lang.Class.privateGetDeclaredMethods (Class.java:3402) ~ [?:?]
at java.lang.Class.getDeclaredMethods (Class.java:2504) ~ [?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda $ findExpansionInFile $ 6 (LocalExpansionManager.java:367) ~ [PlaceholderAPI-2.10.10.jar :?]
at java.util.concurrent.CompletableFuture $ AsyncSupply.run (CompletableFuture.java:1768) ~ [?:?]
... 1 more
Caused by: java.lang.ClassNotFoundException: net.ess3.api.IEssentials
at java.net.URLClassLoader.findClass (URLClassLoader.java:445) ~ [?:?]
at java.lang.ClassLoader.loadClass (ClassLoader.java:587) ~ [?:?]
at java.lang.ClassLoader.loadClass (ClassLoader.java:520) ~ [?:?]
at java.lang.Class.getDeclaredMethods0 (Native Method) ~ [?:?]
at java.lang.Class.privateGetDeclaredMethods (Class.java:3402) ~ [?:?]
at```
#
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda $ findExpansionInFile $ 6 (LocalExpansionManager.java:367) ~ [PlaceholderAPI-2.10.10.jar :?]
at java.util.concurrent.CompletableFuture $ AsyncSupply.run (CompletableFuture.java:1768) ~ [?:?]
... 1 more```
turbid tide
#

it breaks the expansion logger

#

since it can't find the essentials plugin

hybrid python
#

I sincerely apologize for any misunderstandings, but I use the translator 😄

pliant pulsar
hybrid python
#

That's what I do, but the problem is that after restarting the server, this library is downloaded automatically ^^

turbid tide
turbid tide
hybrid python
pliant pulsar
turbid tide
#

you can download an older version maybe but not sure

pliant pulsar
#

An older version of Placeholder?

turbid tide
#

of the math expansion

pliant pulsar
#

how?

turbid tide
#

/papi ecloud download math 1.0.6 then /papi reload

pliant pulsar
#

mmm

#

nice try

#

xD

#

Downloading an older version of PlaceholderApi might work or does it not matter?

#

1.2.0 is works

#

😮

#

1.0.3 no works, 1.2.0 yep, 1.3.0 no works, xD

wicked ocean
#

How to use a advenced achievements placeholder?

austere hawk
#

any1 know why this is happening?

turbid tide
#

if its set to true then maybe your hosting is blocking connections

hybrid python
# turbid tide yes

All the time is downloading Mi Essentials library, I checked several times by restarting remove and in the logs at the beginning it is ok only when the player sticks to the server then such a library is created and automatically placeholders stops working and after deleting and typing /papi reload is ok.

turbid tide
#

I'm not really sure why that happens. PAPI shouldn't download the expansion itself. maybe another plugin is but can't really be sure

austere hawk
#

i get that message when i try and download an expansion now

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.

austere hawk
#

i dont think its a problem with papi

#

coz its happening with other plugins too

turbid tide
#

yeah. your host might be blocking the connections

#

or maybe a plugin

austere hawk
#

ill ask them

#

ty anyways

turbid tide
dim belfry
#

Hello, i seem to be having a issue with javascript, if this code is in the js folder, it crashes PAPI, however i do not see a issue with it, could someone help? https://paste.helpch.at/aqizeralup.js

#

it was working fine before 1.18

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.

dim belfry
trim mist
#

Are you on the latest PlaceholderAPI dev build? If not, please update to that, and see if that fixes it. If it doesn't, remove the JS expansion, startup PAPI again and give us the results of /papi dump

hybrid python
# turbid tide I'm not really sure why that happens. PAPI shouldn't download the expansion itse...

Fuck yea i fix that!
1. stop server
2. delete extension -> essentials
3. Edit config.yml -> cloud_enabled: false

It is known how we start the server at the beginning, everything has to be downloaded properly and it will not work.
However, if what we need or what we need is already on the server, we do what I wrote above and the problem disappears 🙂 .
I checked 3 times on the server and it's fine.

tender vaporBOT
tender vaporBOT
trim mist
#

Do you know your exact Java version + build? If you have ssh access to the machine, you should be able to do java -version

dim belfry
#

its the ptero Java default for 17

trim mist
#

Fuck.

#

Okay.

#

Something in Java 17.0.1 between build +12-36 and +12-39 broke the Javascript Expansion

#

I just don't have time to figure out what it is for the time being.

dim belfry
#

ah, that would make sense

trim mist
#

Cause I am running +12-35 and have not had any issues. It's so weird.

dim belfry
#

Yeah, it seems to be fine without code, but as soon as i touch adding code, it loses its mind

#

real annoyance since its a space in my chat, so if JS is disabled it breaks my chat

dim belfry
#

Thats where im fucked, cos i would just install a earlier build of OJDK, or Adoptium, but i cant cos im on a host

hybrid python
hybrid python
dim belfry
#

My host tried, but without a different yolk, they cannot do it, Pterodactyl could prob add another yolk, but that would prob need to come from PAPI staff rather then some random

#

and to make another yolk, anyone can do it, but im not that skilled

hybrid python
# dim belfry and to make another yolk, anyone can do it, but im not that skilled

Mhm, I have to fly myself, I bit my fingers after today's explode and the need to update the servers and I only did it in the Lobby xD.
And this is the fault of these "programmers", God bless Microsoft, they introduce something that should be checked 1000 times.
But this is how only $ counts, unfortunately 😦

(sorry for the mistakes, I'm using the translator)

primal skiff
#
[22:03:17 WARN]: [PlaceholderAPI] Task #77 for PlaceholderAPI v2.10.4 generated an exception
java.lang.NoSuchMethodError: me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()Lme/clip/placeholderapi/expansion/manager/LocalExpansionManager;
        at alexdev_.buycraftapi.BuyAPI$1.run(BuyAPI.java:141) ~[?:?]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) ~[patched.jar:git-PaperSpigot-"4c7641d"]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched.jar:git-PaperSpigot-"4c7641d"]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]
silver minnow
#

¯_(ツ)_/¯

tender vaporBOT
#
Placeholderapi - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1

Version:

v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest

primal skiff
#

Thanks 4 the support ❤️

silver minnow
#

probably because the error means that BuyCraftAPI is trying to access PlaceholderAPI code that doesn't exist

silver minnow
gloomy rivet
#

Where can I find the development builds?

junior musk
#

?papi-builds

tender vaporBOT
rugged widget
#

how to have a fallback placeholder

#

where if their is no %townyadvanced_town_formatted% then return No Town

eager swallow
gloomy crater
#

How would I go about nesting statements, so the 2nd check occurs if the first check succeeds? ```js
if (arenaState == "§6Running" && twoArenas.indexOf("arenaRegion")) {
var arenaRegionMulti = arenaRegion + "2";
var arenaTwoState = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "mobarena_arena_" + arenaRegionMulti + "state" + "%");
var arenaInfoMulti = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "mobarena_arena
" + arenaRegionMulti + "_" + args[0] + "%");
return arenaInfoMulti; // Replace this with the next check below
}

if (arenaTwoState == "§6Running" && threeArenas.indexOf("arenaRegion")) {
var arenaRegionThree = arenaRegion + "3";
var arenaInfoThree = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "mobarena_arena_" + arenaRegionThree + "_" + args[0] + "%");
return arenaInfoThree;
}
return ArenaInfo;

vivid sparrow
#

That's correct

gloomy crater
#

its already nested?

thin coyote
turbid tide
# thin coyote Error 502

yeah. the jenkins is currently down due to some issues. you can find a build in the pinned messages

trim mist
#

Jenkins back online.

primal skiff
#
[11:26:52 WARN]: [PlaceholderAPI] Task #83 for PlaceholderAPI v2.10.10 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
        at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:490) ~[patched.jar:git-PaperSpigot-"4c7641d"]
        at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1136) ~[patched.jar:git-PaperSpigot-"4c7641d"]
        at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108) ~[?:?]
        at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45) ~[?:?]
        at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201) ~[?:?]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) ~[patched.jar:git-PaperSpigot-"4c7641d"]
        at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched.jar:git-PaperSpigot-"4c7641d"]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched.jar:git-PaperSpigot-"4c7641d"]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]
turbid tide
tender vaporBOT
urban monolith
#

Hi, PlaceHolderAPI out at 1.18? if yes then give a link

trim mist
cinder oyster
#

Hi, you have placeholders like %server_ram_total%, %server_tps%, could you add like %server_mspt%, it would be very helpful to see these statistics :)

orchid fog
trim mist
#

Means you don't have the right factions or you're using the wrong expansion

turbid tide
shrewd pumice
#

help me

limber ice
#

/papi ecloud download Animations
/papi ecloud download Vault

#

@shrewd pumice.

#

/papi reload

turbid tide
#

also /papi ecloud download player then /papi reload

limber ice
#

Animations was in tablist

shrewd pumice
#

thats dosent work

#

@turbid tide

turbid tide
#

/papi ecloud download listplayers then /papi reload

#

the animations we cannot fix

#

those are not PAPI placeholders

shrewd pumice
#

OKEY BUT that

#

is from PlaceHolders

turbid tide
#

/papi ecloud download statistic then /papi reload

shrewd pumice
#

thx

prime totem
#

i have a problem and its that i cant use placeholders in featherboard

#

i put the placeholder and it doesnt work it shows {player}

#

i downloaded all expansions and everything

turbid tide
#

%player_name% is tho

prime totem
#

but it worked for me in other versions

#

but i have other placeholders that doesnt work too

turbid tide
prime totem
turbid tide
prime totem
#

thank you

prime totem
tender vaporBOT
turbid tide
#

%server_time_FORMAT%

#

so %server_time_dd MMM yyyy% for example

rich flint
#

I have a questionm, so in the onRequest of PlaceholderExpansion....

#

the params that are passed...

#

Im trying to detect the placeholder, as well as a number set within it, but I am not sure what the params contains exactly

#

does params come in as %plugin_placeholder% or does it come in as placeholder...

#

If that makes sense..

#

Im simply trying to add a top X placeholder.

leaden kraken
#

%identifier_text_here%
The String parameter in the onRequest method would return everything after the identifier_ part

#

@rich flint

ripe slate
#

Hello, i've just bought your plugin, i've read in discussion that i needed to enter the discord to get the update to 1.17.1, how do i do it?

#

"deluxechat"

fervent spire
ripe slate
#

@fervent spire i have linked spigot account, now?

#

Where is update of DeluxeChat for 1.17.1

#

?

fervent spire
granite palm
#

[AdvancedReplacer] [STDOUT] %ezrankspro_progress% Why does this placeholder not replace? I have ezrankspro installed and have invoked this method: String progressString = PlaceholderAPI.setPlaceholders(player, "%ezrankspro_progress%");

turbid tide
granite palm
#

Ok

turbid tide
granite palm
#

Returns %ezrankspro_progress%

turbid tide
#

^^ execute those commands

granite palm
#

Ok

#
/papi ecloud download ezrankspro
/papi reload

These?

turbid tide
#

yeah

granite palm
#

Ok done

#

Now /parse works

turbid tide
#

should work in your plugin as well

#

tanguygab. wasn't sure if the expansion is required anymore. I know one of helpchats plugins (not deluxetags) moved to not using external expansions anymore. It might've been glares plugin. had to double check

granite palm
#

Ok it works so that's fine, will tell this to my friend

junior musk
#

🤷 he's got the plugin, so if the expansion didn't register, that means it still requires the one on the ecloud

turbid tide
#

either that or something went wrong while loading the internal one

junior musk
#

true

#

would probably have broken PAPI though

turbid tide
#

not necesarely. plugins can have fallbacks. I guess. you never know. xD

junior musk
#

yeah but I think PAPI breaks down when one of the expansion fails, idk

turbid tide
#

yeah yeah. but I was thinking more of the plugin not being able to find PAPI or something. also if you try and catch on registration it might not break PAPI

granite palm
#

/papi parse me %ezrankspro_progress% always returns 100 or 0, never one in between

#
rankups:
  A:
    order: 1
    prefix: '[A]'
    rankup_to: B
    cost: 1000.0
    rankup_actions:
    - '[broadcast] &6&l>&b&l> &6%player% &eranked up to &7[&e&l%rankup%&7]'
  B:
    order: 2
    prefix: '[B]'
    rankup_to: Z
    cost: 1000.0
    rankup_actions:
    - '[broadcast] &6&l>&b&l> &6%player% &eranked up to &7[&e&l%rankup%&7]'

I have set this cost to 1000, but if I give myself 500 it does return 100 not 50

turbid tide
#

that might be an issue with ezrankspro itself

granite palm
#

Probably my config is wrong?

turbid tide
#

youll have to link your spigot account if you want help with that one

granite palm
#

I can't, my friend has bought this plugin

#

I only use it for testing

#

Because I want to make a plugin for him

tender vaporBOT
#
FAQ Answer:

Not the owner of the server?
If you're not the owner of the server and you're the one requesting the support you'll need to first get the owner who purchased the plugin to join and run through the verification system listed in #spigot-linking, once linked they just need to give us the thumbs up that you're with them.

granite palm
#

@high swift is the person

#

But he is offline, and I still want to continue my work...

#

@high swift Please ping me if you are online

turbid tide
#

I'm afraid the rules don't allow me or anyone else until an account was linked and you confirmed as a developer for them

granite palm
#

Yes I understand

urban monolith
#

Where to find the PlaceHolderAPI for 1.18 ?

tender vaporBOT
urban monolith
turbid tide
urban monolith
#

thx

turbid tide
#

no problem

urban monolith
#

he's at 1.18?

turbid tide
#

yeah

urban monolith
#

Okay

cinder oyster
#

Bliiiiiiitz, hey
I have a question for you, but I doubt you will answer ;D

urban monolith
#

I have errors in the console : (

turbid tide
turbid tide
turbid tide
#

you can open an issue on github for it. what is mspt?

junior musk
#

a Paper thing

turbid tide
#

milliseconds per tick?

turbid tide
urban monolith
#

When the PlaceHolderAPI will be stable and will be released on Spigot?

cinder oyster
turbid tide
#

yeah. that's not happening in the server expansion then. since it would only work on paper I guess. it would create a lot of confusion. you could ask in #915480942246780968 to get an expansion made just for this I guess

turbid tide
urban monolith
#

ok

turbid tide
#

@junior musk how do you access mspt in paper? is there a server method or something for it?

junior musk
#

I think it in the Server class yeah

turbid tide
#

cant seem to find it in server

#

oh is it tickTimes?

junior musk
#

getAverageTickTime

turbid tide
#

Ic

#

well if you want @cinder oyster I can make you an expansion just for that in a second. this could also possibly be done in the Javascript expansion if you want that. but idk if that's a good idea. lol

#

@cinder oyster do you want them to have different formats? because currently. I am adding %mspt_mspt% which will return a value like this 10.0. I am also adding a %mspt_mspt_raw% which will return like the whole double value. 10.00000001 or whatever decimals it will have

cinder oyster
#

Bliiiitz, I found what I needed

#

But thanks for the answer

junior musk
#

RIP Blitz

turbid tide
#

alr

turbid tide
junior musk
#

oh oki

eager swallow
loud sluice
#

Hello, Placeholder Works on 1.18-1.18.1?

light zodiac
#

HellO!

light zodiac
#

Anyone can tell me why this is not working? "%server_countdown_u.H.mm.ss_5.23.59.59%"

scarlet valve
#

if you can check this out it will help

turbid tide
#

or one of their placeholders maybe

scarlet valve
#

yea it was working fine

#

but suddently it start acting like this

turbid tide
#

well that's all I Can really do for you. might want to contact the developer of that plugin

scarlet valve
#

ok thanks

turbid tide
light zodiac
#

Hmm

#

It's not possible to make it countdown past Friday?

turbid tide
#

well you gave it day 5 of the week. so it will count until day 5 of the current week.

light zodiac
tender vaporBOT
turbid tide
light zodiac
#

7.17.35.03