#placeholder-api

150650 messages · Page 55 of 151

turbid tide
#

Are you using the plugin (deluxetags) pinned in #general-plugins ?? Then please read the entire mesage. It clearly states that you have to delete the old expansion since it nows comes inside the plugin

#

Sounds like a proble with one of the expansions you tried to download. Can't tell which tho. Maybe remove them and add them back 1 by 1 see when it breaks

tender vaporBOT
kindred oyster
#

OH sorry qwq

turbid tide
#

Expansion-deluxetags.jar

#

U clearly didn't tho

#

Since its still there

#

Go to plugins/placeholderapi/expansions

#

And delete that file I sent above

#

Then restart the server

kindred oyster
#

still got that issue

#

at least it parses it

#

just doesn't display

turbid tide
#

Can you do /papi parse me %deluxetags_tag% and see what it returns

kindred oyster
trim mist
#

I mean that just says it's not parsing the hex.

#

Blitz did you ever fully add hex to that? Idk if the expansion supported it.

kindred oyster
#

well there still is the general issue of just no translating placeholders as you can see in the tab of that img qwq

trim mist
#

Probably gotta talk to TAB about that.

#

If they parse via command then they are working.

kindred oyster
#

same thing happens with deluxe menus doe

#

example

trim mist
#

Well you don't have the jobs expansion running.

#

Sooo that would probably explain it.

faint ingot
#

hey, i got the Placeholder api plugin and downloaded statistic. i use %statistic_time_played% in my scoreboard as a placeholder to display the players time played, but its stuck and wont update its time, do you know how to fix this ? would greatly apreciate

silver minnow
faint ingot
#

scoreboard revision

silver minnow
#

Does it update? (if you use the command repeatedly)

faint ingot
#

"You must supply a target, and a message: /papi parse {target} {message}

silver minnow
#

/papi parse me %statistic_time_played%

#

there

faint ingot
#

stays the same all 5 times

silver minnow
#

what does it say?

faint ingot
#

it just displays the time in the chat

#

console doesnt say anything

#

the time stayed all 5 times the same

trim mist
#

That sounds like bukkit itself is not actually updating the statistic. For the statistic expansion we're purely the middleman iirc so the literal Statistic.PLAY_ONE_MINUTE or whatever is not updating.

kindred oyster
# trim mist Well you don't have the jobs expansion running.

"In addition to pre built placeholdrapi placeholders for Jobs plugin, now its have its own placeholders. Keep in mind that you can always check all possible placeholders ingame with /jobs placeholders command or even check what it would return with /jobs placeholder parse %jobsr_user_id% command." In theory they are built in and don't require a downloaded extension

trim mist
#

Okay well then you will need to contact JobsReborn for help. I don't think there's more I can do there.

#

I told you what I could see on my end in terms of what PlaceholderAPI + DeluxeMenus are seeing on your server.

kindred oyster
#

I could test by doing a dummy menu

trim mist
#

Go for it.

#

DeluxeMenus will not parse any jobs placeholders unless it's coming from a valid expansion. You do not have the JobsReborn PlaceholderAPI expansion on your server. Unless he's doing some hacky stuff to get into PlaceholderAPI + DeluxeMenus, they will not parse.

faint ingot
#

Fixed it by changing from true to= disable-saving: false in the spigot.yml if anyone asks again

crimson cove
#

Hey guys, just wanted to confirm - the 1.17 version of PAPI isn't available yet, right?

trim mist
#

That would be incorrect.

tender vaporBOT
knotty kite
vivid sparrow
#

Whats that?

knotty kite
# vivid sparrow Whats that?

It is what it shows when I do /tab cpu ||Plugin TAB Premium|| (it shows the placeholders that are being used and the ones that consume the most performance).
so use in actionbar / bossbar / scoreboard the javascript placeholders goes wrong.

vivid sparrow
#

Mind showing your placeholder?

#

The code I mean

tender vaporBOT
vivid sparrow
#

Whats the ... at the end?

#

Id suggest to use a java expansion, js expansion was meant for small stuff like replacing something or changing the output based on a condition

knotty kite
austere hawk
#

where can i download papi 1.17?

knotty kite
austere hawk
vivid sparrow
#

I cant think of anything, sorry Nel

austere hawk
#

where can i download papi 1.17?

tender vaporBOT
austere hawk
#

ty

inland wind
# austere hawk where can I find the variables to make a top balance in holograms? https://imgur...

Does this help?

`Vault
/papi ecloud download Vault

Economy
%vault_eco_balance%
%vault_eco_balance_commas%
%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_top_balance_#%
%vault_eco_top_balance_fixed_#%
%vault_eco_top_balance_formatted_#%
%vault_eco_top_balance_commas_#%
%vault_eco_top_player_#%
%vault_eco_top_rank%
Permissions
%vault_rank%
%vault_rank_capital%
%vault_ranks%
%vault_ranks_capital%
%vault_prefix%
%vault_rankprefix%
%vault_rankprefix_#%
%vault_suffix%
%vault_ranksuffix%
%vault_ranksuffix_#%
%vault_prefix_color%`

vivid sparrow
#

You have to enable the top function in papi config btw

austere hawk
tender vaporBOT
turbid tide
#

I am thinking of adding a different placeholder to output the hex as #aaFF00 but then its up to the other plugins to parse the hex

fathom crest
#

%server_countdown_HH.mm.ss_10.00.00% returns

#

0

turbid tide
#

that means its past 10

#

it doesn't count to the next day

#

it counts to the day you're in

fathom crest
#

damn

#

any way to do that?

turbid tide
#

it might be possible

#

hmm

#

I think you could do it using the server_time placeholder inside the countdoun placeholder but rn I can't see how

#

%server_countdown_dd.MM.yyyy HH:mm:ss_{server_time_dd.MM.yyyy} 10:00:00%

#

try this @fathom crest

thorn thunder
#

wouldnt that still be for the same day?

turbid tide
#

yeah

#

it would

thorn thunder
#

rip

turbid tide
#

hmm I am 100% sure I did it before but I Forgot hou

#

how*

#

it might've been javascript

#

yeah probably javascript expansion is the best choice here

fathom crest
#

Hmmm okay

austere hawk
turbid tide
#

read that

mental hearth
#

Hey, a question about the javascript extention for placeholderAPI:

`` if ( "%player_has_permission_server.vip.prefix.chat.green%" === "yes")

    return "&a[&a&lVIP&a]&r ";``

I would like to check if the player has the permission server.vip.prefix.chat.green AND server.vip, would i just use && and compare both to "yes" ?

turbid tide
#

yeah that will work indeed

mental hearth
#

Thank you!

#

Hmm, doesnt seem to work

#

`` if ( "%player_has_permission_server.vip.prefix.tab.pink%" && "%player_has_permission_server.vip" === "yes")

    return " &d[&lVIP&d]&r";``
#

I checked, i have both permissions, with the script above it works fine, with the new one with the && it no longer works, (i have both of those permissions)

thorn thunder
#

The first expression needs the equals to "yes" as well

mental hearth
#

`` if ( "%player_has_permission_server.vip.prefix.chat.green%" === "yes" && "%player_has_permission_server.vip" === "yes")

    return "&a[&a&lVIP&a]&r ";`` like this?
thorn thunder
#

yes

austere hawk
#

does it have to be three ='s?

thorn thunder
#

Not neccesary in this case, but strict equals should still be preffered

mental hearth
#

Still doesnt work :/

mental hearth
#

Ah, i forgot "%" at the end of server.vip

#

thanks for your help

signal veldt
#

Hi, is there anyone able to explain why it pops up in the console and what does it mean? Is this some error or is it normal?

#

``
[21:20:07] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: player
[21:20:07] [Server thread/WARN]: [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend, softdepend or loadbefore of this plugin.
[21:20:07] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: vault
[21:20:07] [Server thread/WARN]: [PlaceholderAPI] Task #189 for PlaceholderAPI v2.10.9 generated an exception
java.lang.NullPointerException: Cannot invoke "java.lang.Class.getName()" because "clazz" is null
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:343) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:138) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:709) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1488) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:477) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1404) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1180) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at java.lang.Thread.run(Thread.java:831) [?:?]

``

silver minnow
#

Are you using this:

tender vaporBOT
silver minnow
#

¯_(ツ)_/¯

#

might have to use the dev build

signal veldt
#

I used this version
PlaceholderAPI-2.10.10-DEV-127.jar

#

So how do I use the dev version?

thorn thunder
silver minnow
#

I looked inside PlaceholderAPI-2.10.10-DEV-127.jar and the version is 2.10.10-DEV-127, but your error shows 2.10.9

signal veldt
signal veldt
signal veldt
thorn thunder
#

The exception is not from the version you downloadrd

#

The exception is from an older version

signal veldt
#

wait

signal veldt
#

Sorry, I sent the log from where I had this trouble earlier. Now everything is in order and no information is shown. I will show success

#

🤦‍♂️

#

im stupid 🙃

sour wadi
signal veldt
compact swallow
#

I'm sure this is asked a ton, but where is the documentation for creating a standalone extension?

#

I get most of it, but I'm not sure what package my class should be in

compact swallow
#

Another thing: If I wanted to to send a PluginMessage and get a response, how would I do it? I could use a CompletableFuture but I'm not sure how to register a listener

cerulean plaza
#

Hi, I'm new and I don't know much English but, by chance here is the placeholderapi for 1.17 somewhere?

warped forum
#

How can I use placeholder api's placeholders in signs?

tender vaporBOT
junior musk
#

I know CMI can do that but it's premium

mossy sleet
#

So I am getting this warning and no idea why

#
java.lang.NullPointerException: null
        at me.gabytm.placeholderapi.config.ConfigExpansion.register(ConfigExpansion.java:56) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:139) ~[?:?]
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
        at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?]
        at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
        at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:605) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?]
        at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.5.jar:git-Paper-517]
        at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Paper-517]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:950) ~[patched_1.16.5.jar:git-Paper-517]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:175) ~[patched_1.16.5.jar:git-Paper-517]
        at java.lang.Thread.run(Thread.java:834) [?:?]```
thorn thunder
#

@vivid sparrow ^

tender vaporBOT
vivid sparrow
#

idk why that happens tbh

thorn thunder
#

That seems to be a diff config expansion than on github tbh

vivid sparrow
#

I use the expansion on my server and works just fine

thorn thunder
#

ah

vivid sparrow
#

yes

thorn thunder
#

is it os?

mossy sleet
#

Well I downloaded the config expantion from the ecloud with /papi ecloud install

vivid sparrow
#

uh I only have it on my pc

#

but I will push it soon

turbid tide
#

yeah the ecloud one's been broken for a while now

mossy sleet
tender vaporBOT
mossy sleet
#

Than it is ok

turbid tide
#

yeah you'll have to wait for gaby to update it

slate parrot
#
WARN Factions is attempting to register placeholder via a placeholderhook class which is no longer supported!
#

Does anybody know of a way to get around this, or be able to use placeholders from factions?

turbid tide
compact swallow
#

And how could I register a listener?

junior musk
#

everything should be explained on the wiki page I sent

slate parrot
turbid tide
junior musk
#

iirc there's an updated version on the ecloud

turbid tide
#

are you sure the placeholders weren't moved in the ppugin?

junior musk
#

isn't the plugin abandonned?

turbid tide
#

ecloud only has 1

#

version

turbid tide
#

ohhh it was renamed

slate parrot
#

and reuploaded by someone else

turbid tide
#

@slate parrot got o plugins/placeholderapi/expansions and delete the Expansion-Factions.jar

slate parrot
#

aight, I'll check if this works

turbid tide
#

and then do /papi ecloud download factionsupdate

#

then /papi reload

slate parrot
#

it's not a verified expansion, so i gotta download it manually

turbid tide
#

ah yeah

slate parrot
#

it's probably made by someone else who had the same problem

turbid tide
#

just don't forget to delete the old one

slate parrot
#

Finally works! ty

balmy marten
#

I'll unverifiy the old one

compact swallow
junior musk
#

if you want to use events in the PlaceholderExpansion class, I think you can directly implement Listener and use the events, should be registered as one automatically (or at least it did for me when I tried)

compact swallow
#

what about PluginMessageListeners

junior musk
#

uh

#

you could implement Taskable and register the channel in the start method

#

and then implement the plugin msg class and use it

compact swallow
#

Could you provide an example/documentation

junior musk
#

I don't think there's one

dire violet
#

Hello, i have problem with PlaceholderAPI motd pinger. It ping motd from server.properties but i want to see the motd which makes the plugin for minigames, can somebody help me please?

junior musk
#

not possible

dire violet
junior musk
#

🤷

quiet cloak
#

How updated is the placeholder-api?

tender vaporBOT
turbid tide
#

^ 1.17 support

#

and some more

quiet cloak
#

Thank you

static blaze
#

How can I know the placeholders of a plugin?

turbid tide
#

well there's a few options

#

but some are also just listed on the specific plugin's wiki or spigot page

#

depends from developer to developer

static blaze
#

The plugin I have is not in the list

turbid tide
#

can you give me a link?

static blaze
#

From the plugin?

#

of*

#

Oh

turbid tide
#

have you scrolled down a bit?

static blaze
#

I just saw them

turbid tide
#

they're listed

#

xD

#

yeah

static blaze
#

yes

#

sorry

#

xd

#

Thanks

#

And how can i use the placeholders?

turbid tide
#

you just place them in your scoreboard or wherever you want to display them

#

you do need a plugin that supports them tho

#

so you can't just use any tab/scoreboard/chat plugin etc

#

you need one that supports PAPI

static blaze
#

For example

#

I want to use a placeholder

#

for my EssentialsChat

turbid tide
#

ess chat doesn't support PAPI

static blaze
#

;-;

turbid tide
#

you need another chat plugin

static blaze
#

okay thanks

turbid tide
#

or actually

#

you might be able to use ChatInjector

#

to use them in EssChat

#

but I Think its a bit broken

#

at the moment

static blaze
#

okay

#

i will search

#

IS WORKING

turbid tide
#

yeah I'm aware

#

but does it not show everything llowercase?

analog belfry
#

Hey! Is it possible to make papi ignore certain characters in a placeholder for a specific plugin? Or is this up to the plugins developer?

lofty crow
#

hello, i understand that placeholder api hasnt been updated for 1.17, but is there a way to make it work, i was looking at the #852317810394267708 and it has javascript expansion, what exactly does that do?

tender vaporBOT
thorn thunder
#

1.17 version is available here ^

lofty crow
knotty kite
stable pollen
#

is there papi for 1.17.1?

tender vaporBOT
turbid tide
#

@stable pollen get it from here ^^^ latest one

stable pollen
#

ty

turbid panther
#

how do i pass arguments to mysql placeholder

turbid tide
#

%maysql_WHATEVER_QUERY_YOU_WANT_TO_DO%

#

idk how mysql works xD

turbid panther
#

yea i know how to specify the specific query, but how do i pass data to that query

compact swallow
compact swallow
turbid panther
#

?

compact swallow
#

Have you created a connection?

turbid panther
#

yea but how do i pass data to the sql query?

compact swallow
#

You can implement taskable and read from your config section

turbid panther
#

like idk some numbers and text or something

#

thats not hard coded into the sql query

#

like arguments for javascript placeholder

#

like javascript_name,1,2,3,4 or what ever it was

compact swallow
#

Like a prepared statement?

turbid panther
#

yea

compact swallow
#

You are using MySQL, correct?

turbid panther
#

yes

#

i know what prepared statements are, but i have no idea how do pass data to the placeholder from outside the placeholder 😄

compact swallow
#

Oh

#

The only way you can pass data to your placeholder is the String placeholder that you recieve

turbid panther
#

its what i receive, but how do i send?

#

lets say i have a sql query that looks something like that 'SELECT x FROM y WHERE z = {some random data that should be passed to mysql placeholder}'

compact swallow
#

What?

#

You prepare a statement, the execute it

turbid panther
#

how do i get that random data to that query?

#

what is the syntax for that placeholder

compact swallow
#

I'm not sure what you are asking

turbid panther
#

um

#

lets say i have a command that receives input from player

#

that then runs a placeholder with that player command input

#

idk command be like /search test

#

how do i get that 'test' to that mysql placeholder

#

it can be any string

wraith swallow
turbid panther
#

just do papi list lol

#

but im getting the same error

wraith swallow
#

and my placeholders arent working in the scoreboard i have so idk

#

but i can parse them in chat

turbid panther
#

lmao why don't insert queries work?

turbid tide
#

Are you using holographic display? Then you also need the plugins: Holographic Extension and protocol lib

wraith swallow
#

my placeholders don't work on my survival server but they do on the hub when I have the same expansions and protocollib installed on both

turbid tide
#

Check the startup log. Usually when there's a problem it will tell you

errant iron
#

Which placeholders exactly don't work?

#

Which placeholder

#

like the %something%

#

give me an example

#

what placeholder are you trying to use

#

run /papi parse me %crazyenvoy_time_left%

#

and show me what it returns

#

do /papi dump

#

and send the link here

#

what

#

?startuplog

tender vaporBOT
errant iron
#

Send that ^

wraith swallow
silver minnow
#

the plugin author has to manually support placeholderapi

wraith swallow
#

deluxe hub

#

the placeholders work on my other server so I'm confused lol

silver minnow
#

hmmmm

silver minnow
wraith swallow
#

yeah haha

silver minnow
#

huh

#

so only one server

wraith swallow
#

yeah that's why I'm confused lol

silver minnow
#

try deleting this folder: /plugins/PlaceholderAPI and copy and paste the PlaceholderAPI folder from the server it works from

#

¯_(ツ)_/¯

tender vaporBOT
#

🔨 A user has been caught in our great nation using off-brand products, they've been dealt with accordingly

silver minnow
#

O

tender vaporBOT
silver minnow
thorn thunder
#

oh

#

what happened

silver minnow
#

nothing :))

vivid sparrow
#

Dkim being dkim

silver minnow
#

😒

thorn thunder
#

what?

#

whats secretive?

silver minnow
#

the ban thingy

silver minnow
#

and i guess how it works?

thorn thunder
#

How did you even trigger that?

silver minnow
#

either that or gaby didn't like how we were talking about it

thorn thunder
#

Songoda?

#

oh

errant iron
#

shush shush

#

a user has been caught using off-brand products

silver minnow
#

purge #2? 🥲

errant iron
#

and that is all there is to be said 🙂

silver minnow
thorn thunder
#

What is the off-brand product here?

silver minnow
#

uh

#

n-nothing

thorn thunder
#

oh are you on a modified client?

silver minnow
#

cAPS gaby

thorn thunder
#

leaks?

silver minnow
thorn thunder
#

leaks of what?

errant iron
#

plugin leaks yugi

thorn thunder
#

ohhh

silver minnow
errant iron
#

of premium plugins

thorn thunder
#

ok

vivid sparrow
#

Lmao yugi

thorn thunder
#

xD

vivid sparrow
#

Good morning

silver minnow
#

Good night

#

it's 8:35 for me

#

at night

thorn thunder
#

Its still mid-night for me

#

3:35am

silver minnow
#

oh

vivid sparrow
#

Why are we on the same timezone yugi lol

thorn thunder
#

lol

vivid sparrow
#

Weird

thorn thunder
#

uh

#

🥴

vivid sparrow
#

Where do you live, yugi?

wraith swallow
silver minnow
#

hmm

wraith swallow
#

the config i have for the scoreboard is:

  lines:
    - "&7&m----------------------"
    - "&7&lInformation:"
    - "&5&lName: &d%player_name%"
    - "&5&lRank: &d%luckperms_prefix%"
    - "&5&lBalance: &d$%vault_eco_balance_fixed%"
    - "&5&lClaim Blocks: &d%griefprevention_remainingclaims%"
    - ""
#

would there be anything with that could cause the placeholders to not work?

silver minnow
#

not sure

#

looks fine to me though

wraith swallow
#

thats why im confused lmao

#

since i can do /papi parse me %player_name% and that shows

dim cypress
#

since now PAPI has been updated for 1.17 support, and the change of JSONMessage to Kyori, does it means better hex support (from placeholders)?

carmine veldt
#

the change from jsonmessage to kyori just affects commands

near nimbus
little berry
#

Hi all, with the latest PLacholder update, 2.10.10, do we still need the Javascript-Expansions installed in the expansions folder?

austere hawk
balmy marten
#

Looks to be an issue with that quest expansion

formal tinsel
#

is there a placeholder for nicknames?

balmy marten
turbid tide
vivid sparrow
#

I know

turbid tide
#

he's not in india btw

#

I don't remember exactly but he said Oman I tihnk once

#

oh wait you moved to #dev-general thought you just didn't finish the conversation xD

#

and its Qatar yeah. my bad

turbid tide
little berry
#

oh great I will keep it in the expansions folder then - ty

formal tinsel
tender vaporBOT
tender magnet
#

a lot of plugins have their own placeholder for names

formal tinsel
#

attempting to use for TABS to call users by nickname as the "welcome [player]"

#

nvm got it

#

it does work across just needed to be %essentialsnick%

balmy marten
#

oh nvm, just saw ur latest messages.

turbid tide
#

yeah TAB has its own placeholders. its supposed to cache them or something so its better

idle girder
#

why the %essentials_jailed_time_remaining% not working??

turbid tide
#

are you on the latest build of Essentials Expansion?

#

also the development builds of EssentialsX?

idle girder
turbid tide
#

then you need to get em

#

the method that placeholder uses only exists in the 2.19 version

idle girder
#

oh

#

umm

#

I'm from aternos so.. i cant download plugins 😦

turbid tide
#

oh then you will have to wait for 2.19 to launch. nothing else we can do

idle girder
#

and when its going to happend

#

when they release the 1.17 update?

turbid tide
#

yeah idk. should be soon but can't 100% confirm

idle girder
#

ok thx for help

crude peak
#

I'm a bit confused. In my plugin I want to access placeholders from other plugins. What is the syntax for this?

#

do I call one of the functions in me.clip.placeholderapi.PlaceholderAPI ?

warm topaz
#

PlaceholderAPI.setPlaceholders(Player, String)

compact swallow
#

I'm trying to create an Expansion that uses a PluginMessagingChannel, but my BungeeCord proxy never receives the message. I can send code if anybody wants to help.

crude peak
turbid tide
#

use a paste bin

austere hawk
#

Hi

#

What is it about this?

#

PlaceholderAPI Effect Potions

austere hawk
#

@turbid tide

tender vaporBOT
turbid tide
#

yes?

austere hawk
#

i have a question

tender vaporBOT
#

There is no time to wait! Ask your question @austere hawk!

austere hawk
#

i can make When I drink the potion depending on what potion to drink Will it expire in a few minutes? in the placeholderAPI

turbid tide
#

I am afraid I Don't really understand what you want.

austere hawk
#

Ex

silver minnow
#

austere hawk
#

wait a minute

#

I want When I get any effect and then use with placeholder

turbid tide
#

so you want to show how much until an effect expires?

austere hawk
#

Show all effects received and time is running out

#

about that

turbid tide
#

yeah I Don't think you can. you might be if you know some javascript

vivid sparrow
#

@junior musk any idea if it's possible to use a different color for 'ping'?

junior musk
#

uh

turbid tide
#

%server_ping% ?

junior musk
#

what ping?

#

is that even a placeholder?

#

you mean %player_ping_colored% ?

vivid sparrow
#

wait, I mean in TAB

junior musk
#

welp,

#

doesn't exist

vivid sparrow
#

forgot to say that lol

junior musk
#

oh

#

the yellow-number-in-tablist?

vivid sparrow
#

yes

junior musk
#

well

#

you can guess by the name of the feature

vivid sparrow
#

=/

junior musk
#

got a bypass but requires the Premium version

vivid sparrow
#

interesting

true coyote
#

Hi,
I have little problem with papi:
when I join my server my ping placeholder is 0 and with time is slowly getting higher. Do you know, how to fix that?

turbid tide
#

oh wait ping

#

lmao

#

I can't read

#

no pretty sure there is no fix to that. it takes a bit to update I think. it also might be that wherever you use it, caches it as well

#

for example I think TAB caches it

junior musk
#

if he has TAB on Bungee with the bridge for PAPI placeholders then yeah, it has to wait for a bit to get the bridge's response with the placeholders' values

#

but %ping% would work fine since it's not a PAPI placeholder but a TAB one

true coyote
#

Ok thanks, ill try

kindred oyster
#

Okay so do you guys remember this error?

#

well

#

the dependencies issue doesn't show up if papi is not present

#

Example with papi:

#

Example without papi:

errant iron
#

ah is that the 100+ plugins error

kindred oyster
#

yeah+

#

But now it does make sense, with all the testing I did, PAPI was the easiest way to tell if softdepends were broken so I never did remove it

balmy moth
#

how to use teams expansion?

rare wave
balmy marten
rare wave
balmy marten
#

You installed it?

#

Just remove it if you don't use it

#

Will be in the /plugins/PlaceholderAPI/expansions folder

rare wave
#

thanks

slow crystal
#

is there an expansion that will show System.currentTimeMillis

turbid tide
#

server time shows that but it formats it I think

#

think it uses java simple date format tho and you can set the format

slow crystal
#

i dont think simpledateformat can format it as just the number of milliseconds

#

js it is ig

turbid tide
#

yeah I think it can only format the milliseconds until the next second.

chrome sentinel
#

Is there a placeholder for how many players are in a specific world?

turbid tide
#

yeah. you can use the playerlist expansionj

chrome sentinel
#

thanks

austere hawk
#

Hi Dev

#

%player_has_potioneffect_<effect>%

#

when i use it So why is it an empty space?

#

I got the Effect

ebon olive
#

having errors on all scoreboard atm, "Internal Exception: java.lang.NullPointerException: Cannot invoke “java.util.Collection.iterator()” because “players” is null" when players try to join ://

#

scoreboard plugins

#

anyone got any ideas why?

thorn thunder
#

Sending the actual stacktrace may be helpful

#

=paste

tender vaporBOT
viral seal
tender vaporBOT
frank nova
turbid tide
frank nova
pure wraith
#

Is there a way to get %player_x% with a bunch of decimals?

vivid sparrow
#

no but can be done

pure wraith
#

How can it be done

vivid sparrow
#

%player_(x/y/z)_long%

trim mist
#

If it works fine, feel free to go ahead and deploy to eCloud.

vivid sparrow
#

ye like I have access lmao

#

clip didn't wanted to make me an account

trim mist
#

Smh my head.

pure wraith
#

Thanks so much works perfectly. This would probably be very helpful for others in the eCloud.

vivid sparrow
#

go for it glare

trim mist
#

Will do shortly. Deploying the new JavaScript Expansion to the eCloud.

vivid sparrow
#

oh wait, ecloud

#

for a second I thought about jenkins

trim mist
#

Yeah, don't you have permission to deploy to eCloud?

vivid sparrow
#

yea i do

ebon olive
#

sorry for the late reply

glad pike
#

Hello, I'm having issues with the %server_countdown% placeholder... I'm trying to run a countdown 1 month later, but it says I have just under 7 days left. I've played around with a few different formats and dates but I'm having the same issue unless it's just a couple days difference. Any ideas how to fix this??

glad pike
molten copper
#

has anyone had a problem with placeholderapi using an absolute SHITEton of memory?

balmy marten
#

Most likely an expansion

molten copper
#

OH you know what, I did not think about that.

balmy marten
#

things that contact leaderboards can

#

like baltop

#

eg

molten copper
#

I thought I would ask as I know the js engines are getting a revamp

#

gotcha

errant iron
#

yeah if you need baltop, we have a dev version of the essentials expansion that includes their baltop placeholders and they are way way way more efficient

molten copper
#

oh perfect, I do need that rofl

#

I've had this headache for the whole weekend with the 1.17 update and server's been OOMKilling on me all weekend

errant iron
#

Oh it does require the 2.19 dev version of Essentials

molten copper
#

10/4

#

thanks 🙂

errant iron
#

This is merely a frontend for the Essentials baltop cache. You may need to run /baltop after a restart to initialize the baltop cache.

#

the baltop placeholders are:

%essentials_baltop_balance_fixed_<position>%
%essentials_baltop_balance_formatted_<position>%
%essentials_baltop_balance_commas_<position>%
%essentials_baltop_balance_<position>%
%essentials_baltop_player_<position>%
#

all the balance ones return the money formatted in different ways, and the player one returns their essentials display name, so like their nick or something

#

oh and positions start at zero

#

so like the #1 spot is 0 in position terms

molten copper
#

is there any reason why placeholderapi would be using up a ton of ram? it creeps up slowly until it crashes the server

#

I'm not using any leaderboard expansions, just like 5 javascripts to read values of other placeholders and return another value

#

i've just found part of my answer. when I unload TAB by nezamy, memory uptick stops in its tracks.

balmy marten
#

What placeholders are you using in ur tab?

inner cedar
#

I'm having an issue with placeholder api breaking with %player_displayname% where its showing the vault prefix from luckperms, when its supposed to only show the name of the player. I tried updating to the latest version and it didn't work. So i downgraded, and it still is broken.

#

What its showing: §x[Mod] §x[Lion]§x DarkChroma
What its supposed to show DarkChroma

#

I found the issue. It's EssentialsX

#

I updated from EssentialsX-2.19.0-dev+202-a098055 to EssentialsX-2.19.0-dev+221-1556b91

#

Which caused placeholders from the 'Player' extension to break.

lofty valve
#

What engine javascript expansion uses now?

turbid tide
#

by default its still nashorn

turbid tide
#

I think

lofty valve
turbid tide
#

its shaded in the plugin now. Java removed it since java 15 but its the one that worked best. over 6 engines have been tried.

#

into the expansion*

#

not the plugin

turbid tide
willow lodge
#

why %player_ping% doesnt work, im using 1.17 purpur

junior musk
#

redownload the player expansion

willow lodge
#

okey

#

works thanks

low remnant
#

can u tell me please that by using placeholderAPI like to display player name we use %player_name% so what should i use to display balance and available claim blocks

turbid tide
#

%vault_eco_balance% for money if your economy plugin supports vault

low remnant
#

ohh and claim blocks available

turbid tide
#

what claim plugin do you use?

low remnant
#

essentials

turbid tide
#

ugh

#

look at this list. if its not here then none

low remnant
#

is essentiald not good plugin for claiming?

turbid tide
#

I couldn't tell you. never used it for that

low remnant
#

which should i use

turbid tide
#

well I Know Lands is good

low remnant
#

ohk i will try that

turbid tide
#

but there's also GRiefDefender, GRiefPrevention, LandLOrd, PRotectionStones

low remnant
#

in my plugins folder there is griefpreventiondata folder also is that for claim?

turbid tide
#

data idk

low remnant
#

griefprevention.jar file

turbid tide
#

oh yeah that one is for land claiming as well

low remnant
#

so for it api command for claim blocks

#

thnx

normal kettle
#

I dont understand how this placeholder is flickering

rigid wharf
#

Does anyone here do Javascript? One of my plugins has a playtime placeholder, but it returns like this (image)
https://media.discordapp.net/attachments/731716941022101627/864172960453361684/unknown.png?width=334&height=36
The dev told me I should use the PAPI javascript addon to format this
Perhaps with PlaceholderAPI's javascript expension. You'll have to split the placeholder with : so you can get the hours, minutes and seconds seperate and format it into something like "Your total playtime is 318 hours, 21 minutes and 50 seconds"

but i don't do much javascript so i am a little confused lol

turbid tide
rigid wharf
#

%networkmanager_playtime%

turbid epoch
#

https://pastebin.com/jYHAGU3i
For this it registers my expansion

[16:07:20] [Server thread/INFO]: original_crystals```
But when i execute the command `papi parse _LightDream original_crystals_crystals`
I only receive this
```[16:07:35] [Server thread/INFO]: original_crystals_crystals```
turbid tide
rigid wharf
#

Like this:
1 Week 6 Days 29 Minutes 34 Seconds

turbid tide
#

at start and end

turbid epoch
#
[16:11:39] [Server thread/INFO]: %original_crystals_crystals%```
#

same

turbid tide
#

your identifier

#

should not have _

#

I think

#

either make it originalcrystal or idk

turbid epoch
chrome sentinel
#

Is it possible to have something like an npc or a player head of a placeholder?

turbid tide
#

idk if that will fix but its a "rule" xD

turbid tide
#

I think Citizens + Denziens allows you to set skins of NPCs based on placeholders

turbid epoch
turbid epoch
#

xD

turbid tide
chrome sentinel
turbid tide
turbid tide
rigid wharf
#

Oh yea

#

Forgot about that part.. But yes

turbid tide
#

its a bit ugly.

#

well very ugly

#

but I think it should work xD

rigid wharf
#

I will try it in just a second, tysm

rigid wharf
turbid tide
rigid wharf
#

Lol

turbid tide
#

idk why

rigid wharf
#

It parsed:
39 Minutes322 Seconds
My actual playtime:
1 Week 6 Days 10 Hours 39 Minutes 7 Seconds

turbid tide
#

ugh

rigid wharf
#

53 Minutes24 Seconds

turbid tide
#

and what does the placeholder return again?

#

the network playtime one

rigid wharf
#

322:53:24

turbid tide
#

and 322 is hours

#

53 is minutes

#

24 is seconds right?

rigid wharf
#

Should be, yes

turbid tide
#

oh XD

rigid wharf
turbid tide
#

ok that's an easy fix. 1 sec

rigid wharf
#

👍

turbid tide
rigid wharf
#

[16:56:10 WARN]: javax.script.ScriptException: TypeError: minutes.toFixed is not a function in <eval> at line number 1

turbid tide
#

oh I guess I should probably parse them to integers.

rigid wharf
#

Works except for 1 thing, says I have more weeks than I actually have

#

Like, I have 1 week

#

It says I have 2

turbid tide
rigid wharf
#

It works! :D

turbid tide
#

👍

turbid tide
#

{}

#

instead of %%

stable pollen
#

any1 who knowsa good plugin that supports placeholder api that have placeholder for top 10 of top mobs killeed?

turbid tide
#

leaderheads or ajleaderheads

stable pollen
#

Can i use this in hd?

turbid tide
#

hd?

stable pollen
#

Holo Displays

#

is ajileaderheads right?

turbid tide
#

yeah as long as you have HolograhpicExtension and ProtocolLib yeah

stable pollen
#

okay

#

cause I cant find it

turbid tide
#

ajleaderboards

#

and leaderheads

#

they are 2 different plugins

stable pollen
#

cant find a pl with that name

#

nvm found it

#

ty

#

any idea where I can find a plugin for top mob killers

#

like to count it

pure plover
turbid tide
#

update your player expansion

pure plover
stable pollen
#

when I use the math placeholder

#

to add 2 values

#

I have .000 at the end

#

can any1 explain how to use %math[precision]:[rounding]<expression>% and do not have

#

the .000 at the end

junior musk
#

%math_0_<expression>%

stable pollen
#

ty

junior musk
#

[precision:#] was the old way, got replaced in newer versions of the Math expansion

stable pollen
#

ty

serene saddle
#

However how do i display the time and date for example.

13/07/2021 | 10:22 Am

for example:

Date | Time

turbid tide
serene saddle
strong raptor
#

so after the update many old plugins broke and not working, does that mean I am stuck at the placeholder api before the update, couldn't the dev just made a compatibility mode option

#

installing the
PlaceholderAPI 2.10.10 means the end of deluxetags and many other plugins that require no update since they are chat plugins

#

problem is deluxetag is made by you guys

#

and it breaks with latest placeholder api is ironic

#

you didn't update that since last year!

turbid tide
#

ugh

#

maybe explain what breaks, how breaks, what versions of deluxetags u use?

strong raptor
#

I am on 1.17.1 paper

turbid tide
#

and as a matter of fact, deluxetags was last updated apr 1 2020 on spigot

#

pinned

strong raptor
#

deluxetags 1.8.1

#

ok last year but the tags doesn't show up in chat

turbid tide
#

can you please go to #general-plugins and read the pinned message and use that build of deluxetags?

strong raptor
#

it just shows like %delux_tag% or something

turbid tide
#

but please do read everything

#

%deluxetags_tag%

#

that's the placeholder

strong raptor
#

ok

#

I know, I didn't change the placeholder

#

but only place holder is showing tags don't show if I update placeholderapi

#

reverting to older version it works

#

I will go read

#

thanks for your help

turbid tide
#

👍

strong raptor
#

how do u fix the rest of it tho

turbid tide
#

rest of?

tender vaporBOT
turbid tide
#

restart your server and send a FULL startup log please

#

read above to see where you can find it ^^^

strong raptor
#

sorry bro

#

but my scoreboard

#

ranks

#

tab

#

everything shows %something% when updating

turbid tide
#

can u please provide the startup log? we'll start from there and take them 1 by 1

strong raptor
#

ok

#

cant upload here let me find mcpaste

tender vaporBOT
turbid tide
#

use this one ^^^

strong raptor
turbid tide
#

guess that works too

strong raptor
#

yeah it hides player ips

turbid tide
#

ah cool

turbid tide
strong raptor
#

all %luckperms placeholders

turbid tide
#

alright. can you do /papi parse me %luckperms_prefix% and tell me what the command returns?

strong raptor
#

I don't know I have 50 players online i had to revert back to old version

turbid tide
#

no. I mean rn

strong raptor
#

ok

#

no output

turbid tide
#

absoultely nothing? empty space?

strong raptor
#

yes

turbid tide
#

can you try this then? /papi parse me %luckperms_group%

strong raptor
#

the output is %luckpersms_group%

#

also last deluxe tags breaks chatex, but I guess thats a chatex problem

turbid tide
#

can you do /papi ecloud download luckperms then /papi reload. then check the console, and see if any errors showed up.

strong raptor
#

I did that, and also deleted old ones

#

didn't solve it for me

#

I tried before that papi update all

turbid tide
#

it tells you to go to plugins/PlaceholderAPI/expansions and delete the deluxetags expansion from there. its no longer needed

#

and then a server restart might be required

strong raptor
#

I will download a local copy of my plugins folder

#

and setup a test server and start fixing stuff there

#

this might be fault of other plugins

#

that didn't update to fit the new papi

#

but I don't expect them to do

#

thanks for your help blitz

#

my plugins folder is 18 gb

#

so when that finish downloading I will launch a test server

leaden holly
#

Hey! Does anyone know if there is a placeholder extension or plugin that can show a player with a certain tag?

unique leaf
#

[18:20:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:326) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:920) ~[?:?] at java.util.zip.ZipFile.getEntry(ZipFile.java:347) ~[?:?] at java.util.zip.ZipFile$1.getEntry(ZipFile.java:1126) ~[?:?] at java.util.jar.JarFile.getEntry0(JarFile.java:578) ~[?:?] at java.util.jar.JarFile.getEntry(JarFile.java:508) ~[?:?] at java.util.jar.JarFile.getJarEntry(JarFile.java:470) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:165) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:119) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:131) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at java.lang.ClassLoader.loadClass(ClassLoader.java:576) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?] at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?] ... 2 more

#

What does this mean?

#

I get this error when doing /papi reload

trim mist
#

Can you provide the generated link you get from /papi dump?

tender vaporBOT
trim mist
#

Please update your PlaceholderAPI and see if it still occurs.

magic rock
#

Hi, I want to uppercase some placeholders, what is better? JS or Formatter expasion or it doesnt matter?

warm topaz
#

does formatter even do that?

#

id say js anyway

vivid sparrow
#

Formatter obv lol kali

#

Pure java code over js

warm topaz
#

i thought formatter only does numbers

#

in that case then yea formatter

#

ah

vivid sparrow
#

Noob

warm topaz
#

☹️

warm topaz
#

it was added back with the daddy expansion i believe

junior musk
#

why is there even a %daddy% placeholder? 👀

#

welp nvm, doesn't do anything based on GitHub

turbid tide
#

say papi in spanish

junior musk
#

talking about that

silver minnow
junior musk
#

why list %daddy% as a placeholder while it only adds /daddy and there isn't even any placeholder

turbid tide
#

idk

#

it doesn't care xD

#

dadi can do whatever the fuck he wants

#

btw its bcz papi bot takes the placeholders from here

warm topaz
#

😈

turbid tide
#

so basically it is clip's fault I guess xD

#

lmao

#

I love how it also ads /father

#

xD

junior musk
junior musk
turbid tide
#

I goues %daddy_ANYTHING% is what it should've been but not as nice

junior musk
#

meh, not like it matters anyway x)

turbid tide
#

true. but its daddy

#

he does whatever he wants

junior musk
#

yeah

leaden holly
#

Hey! Does anyone know if there is a placeholder extension or plugin that can show a player with a certain tag?

turbid tide
#

what kind of tag?

leaden holly
#

Like a player tag. Using the command /tag add you can tag a player

turbid tide
#

where is that command from? like I'm confused

leaden holly
#

It is a basic minecraft command

turbid tide
#

oh no idea then. don't think there is something for that

leaden holly
#

Dang

junior musk
#

there's a /tag cmd ? 👀

#

oh yeah there is, since 1.13, didn't know about that

turbid tide
#

oh wait doesn't the scoreboard objective expansion do this?

#

not sure

trim mist
#

Is it scoreboard stuff?

#

Hmm.

junior musk
#

I don't think it does

#

it tracks scoreboard objectives, not scoreboard tags

trim mist
#

Ahh

#

Guess it's time someone made a ScoreboardTags expansion.

junior musk
#

or rename the ScoreboardObjectives expansion into Scoreboard and add placeholders related to scoreboard tags

#

so we don't end up with tons of related expansion that could be merged in one

trim mist
#

Problem with that is it isn't ours.

junior musk
#

ah

#

then yeah, rip

trim mist
#

I mean I could create an expansion but the only placeholder would be has_tag_<tag>

#

Or something like that.

leaden holly
#

If you want to, go ahead! You don’t have to though.

trim mist
#

Give me a little bit 🙂

leaden holly
#

Really?

#

Thank you! I've been needing one for a game I am making.

trim mist
#

@leaden holly Want to try this out? The placeholder should be %sbtags_has_tag_<tag>% and it will return true / false if they have it or not. Case sensitive.

leaden holly
#

Thank you so much! I'll try it out in a couple!

trim mist
#

Thanks. Let me know how it goes.

leaden holly
#

It works perfectly! Is there a way to make it so if it comes back true, it shows the persons name?

trim mist
#

Uh I don't think that's really the purpose of the check?

#

It's simply checking if they have the tag or not?

leaden holly
#

Ah. Would it be possible though to display a players name if they have a tag with a placeholder?

trim mist
#

Uh

silver minnow
#

js expansion maybe

trim mist
#

This is an X Y problem here.

#

You need to elaborate on the problem and how that would be a solution.

leaden holly
#

Ok, what do you need to know? I'm just a bit confused.

trim mist
#

Well the whole purpose of a placeholder is to return data so theoretically you would take that data it returns and do stuff with it. Not have it return data based on what it originally returned?

leaden holly
#

Oh ok. So basically, I am looking for a plugin/extension that shows the name of the player who has a specific tag. I need this for a tablist so it shows a player in a specific location on the tablist.

trim mist
#

Yeah I think we're on the same page. You could even use js like dkim said but that's not my expertiese.

turbid tide
#

or PlayerList

leaden holly
#

Ok, how would I do that?

trim mist
#

Blitz am I right in what I said here? It's confusing, right?

turbid tide
#

it returns a list of players based on requirements. and those requirements could be what a placeholder return

#

and you could either return the full list or just the name of the n player in the list

#

1 sec. will provide wiki

leaden holly
#

Ok!

turbid tide
#

and your placeholder will look something like this:

#

%playerlist_online,placeholder,yes,list,sbtags_has_tag_<tag>||true%

#

you can get the idea from here

#

and the wiki

#

going to sleep now. gn

leaden holly
#

Ok! Thank you so much Blitz & Waffle King!

trim mist
#

Yup! Thanks Blitz. I went ahead and released the expansion to the eCloud so others can use it too.

leaden holly
#

Perfect! Thank you so much!

#

Works perfectly!

tidal minnow
#

hi on there is place to send a suggestion ? i want to placeholderapi support it ?

turbid tide
tidal minnow
#

ok thanks :3

vague bridge
#

I have huge issues with papi lagging my server

carmine veldt
vague bridge
#

yeah hold on sorry

#

im trying to figoure out which expansion is causing lag

thorn thunder
#

timings report?

vague bridge
#

this was with placeholderapi with all expansions i need enabled

#

and this

#

as soon as i disabled all expansions server started to bread again

#

this is list of my expansions:
expansion bungee, essentials, javascript, localtime, luckperms, ontime, player, playerlist, playtime, server, statistics, vault, viaversion, votingplugin, world

#

so far i reinstalled player and vault, lag didnt return

#

i think its javascript expansion

#

tps became unstable first few seconds when i relaoded papi with that expansion installed

#

that tps loss on graph is when i installed javascript expansion

#

soon after i deleted it and tps came back to normal

thorn thunder
#

I see

#

Ill try sending you a jar with some changes in a bit

mossy ether
#

hey

thorn thunder
#

Give that a shot

#

Wait

#

@vague bridge Are you on the latest js-expansion?

#

If so, please send a ss of your placeholderapi config where you have the values for the js expansion

vague bridge
#

I managed to resolve the issuse. I reinstalled it and made in tab config refresh rate of JavaScript way higher from 100ms to 10000

#

It works fine now however on 1.16 it worked normally on 100ms

#

I'll send you when i get home

hard basalt
#

what is ur java version ?

vague bridge
#

16

hard basalt
#

oh

#

latest js version right ?

vague bridge
#

Yes

#

I updated everything

#

To latest version

hard basalt
#

do u have some script made before ?

#

the update

vague bridge
#

Yeah

#

It worked on 1.16 fine but on 1.17 it became very demanding

hard basalt
#

k

#

im not sure if it worth upgrade to 1.17.1 now

thorn thunder
unreal spoke
#

ok so I am very new to making plugins with PlaceholderAPI, basically I am trying to implement placeholerAPI to a plugin that has many different variables. So the placeholders I am looking to create are '%variables_variablename%' '%variables_variablename1%' etc. I have attempted to look through one of my friends plugins on how to implement it, but I have no idea how to. I have looked at the API and quite frankly, I do not understand what to do. I am very new to coding and need help.

unreal spoke
#

I'l take a look thanks

wild sable
#

can someone help me my placeholders arnt working with placeholderapi

#

im using featherboard

vague bridge
# thorn thunder Alrighty
# PlaceholderAPI
# Version: 2.10.10
# Created by: extended_clip
# Contributors: https://github.com/PlaceholderAPI/PlaceholderAPI/graphs/contributors
# Issues: https://github.com/PlaceholderAPI/PlaceholderAPI/issues
# Expansions: https://api.extendedclip.com/all/
# Wiki: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki
# Discord: https://helpch.at/discord
# No placeholders are provided with this plugin by default.
# Download placeholders: /papi ecloud
check_updates: true
cloud_enabled: true
cloud_allow_unverified_expansions: false
boolean:
  'true': 'yes'
  'false': 'no'
date_format: MM/dd/yy HH:mm:ss
debug: false
expansions:
  player:
    ping_color:
      medium: '&e'
      high: '&a'
      low: '&c'
  server:
    tps_color:
      high: '&a'
      low: '&c'
      medium: '&e'
    server_name: A Minecraft Server
  javascript:
    debug: true
    github_script_downloads: false
    engine: javascript
    argument_split: ','
    use_quick_js: false
  vault:
    baltop:
      check_delay: 30
      cache_size: 100
      enabled: true
    formatting:
      thousands: k
      trillions: T
      quadrillions: Q
      billions: B
      millions: M
  localtime:
    date_format: dd/MM/yyyy hh:mma
  bungee:
    check_interval: 30
hard basalt
turbid tide
#

Its not needed since 5.0.0

#

Maxim switched to PAPI

#

But he needs to be on 5.0.0+

hard basalt
#

k

signal jackal
#

hope they update it placeholer for plugin Ontime (link: https://dev.bukkit.org/projects/ontime ). The placeholer i need is %Ontime_current_login%, wat it can do ? this just see a play time but when you log out it will reset and i very like it you can see pictures to know wat i want :3 HOPE THEY UPDATE IT

turbid tide
chrome sentinel
#

Is it possible to have an item based on a placeholder, so the item is different for everyone?

obsidian haven
#

Can anyone tell why my placeholder is not being registered? Can't find a solution.

https://paste.helpch.at/uzozukirot.java

Inside my onEnable:

            new GangPlaceholderRegistry(this).register();
        }```

Everything else work like it should, just not the placeholder part, so I know the methods within should work. 
I might have registered it wrong, since it's not being logged in the console by PlaceholderAPI like other plugins do.
silver minnow
#

show us GangPlaceholderRegistery

tender vaporBOT
obsidian haven
#

It's the link I provided

silver minnow
#

o

#

🤦

obsidian haven
#

😛

silver minnow
#

lol

silver minnow
#

does it show up?

obsidian haven
#

I'll test 2 sec

silver minnow
#

alr

obsidian haven
#

It's a bit weird, because after my plugin loads, it says:
[20:48:15 INFO]: [PlaceholderAPI] Successfully registered expansion: gang

However, later on it says this:

[20:48:15 INFO]: Running delayed init tasks
[20:48:15 INFO]: No expansions were registered!
[20:48:15 INFO]: Done (5.967s)! For help, type "help"```
#

on start-up

silver minnow
#

hmm

obsidian haven
#

papi list displays gang

silver minnow
#

oh

#

then what about /papi info gang?

obsidian haven
#
Status: Registered
Author: BeastyBoo
Version: 1.0.0```
silver minnow
#

and if you use any of its placeholders what happens?

obsidian haven
#

I'm not able to send a picture here, however it just says; %gang-top%

tender vaporBOT
silver minnow
#

- or _?

#

try %gang_top%

obsidian haven
#

wait

#

I might be dum

silver minnow
#

lol

#

it won't work if you use -

obsidian haven
#

Ehm, don't mind me. I was wrongly informed on my end! Thanks for your time xD

silver minnow
#

uhhh np xD

serene tide
#

hi there