#placeholder-api

1 messages · Page 164 of 1

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
#
HelpChat Paste

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

viral seal
#

How can I fix this?

tender vaporBOT
#
Hey!

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

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

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

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

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
#
Hey!

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

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
#
HelpChat Paste

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

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
#
Uploading Images

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

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

#

so I had the same issue as @obsidian haven, that's why I wanted to add the expansion to the ecloud, however registration is locked.

obsidian haven
#

Did u also use "-" instead of "_"

silver minnow
#

If not, show us the code

serene tide
silver minnow
#

show us the code

#

since that means you didn't have the same issue :))

serene tide
#

well the expansion is not the issue

#

I just want to add the eazynick expansion to the ecloud

#

since it's in the same plugin which is not recommended by the wiki

silver minnow
#

🤔 whys it not recommended?

serene tide
#

Since it would be weird (and also make no real sense) to have this inside your plugin, we assume you make a separate jar-file as an expansion.

silver minnow
#

i think

#

maybe

serene tide
#

well I don't care, an external jar is good

silver minnow
#

🤨

#

you can DM FunnyCube, i think

serene tide
#

but how can I add the expansion to the ecloud

silver minnow
#

either that or u can just mention him here

#

but by making it on ecloud you're making users download the expansion in order to use it, instead of having it in your plugin

silver minnow
#

🤨

#

okay

serene tide
#

@balmy marten what do you recommend? internal class or external jar?

tender vaporBOT
#
Hey!

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

serene tide
#

._.

coral comet
#

how do i add the expansion for superior skyblock?

silver minnow
#

lol

trim mist
#

WhySoShy, they provide their own.

coral comet
#

do you know where i can find it?

trim mist
serene tide
#

Waffle King what do you recommend? internal class or external jar?

trim mist
#

For?

serene tide
#

for an expansion

trim mist
#

Is it your own plugin?

serene tide
#

cause some people have problems with it

#

yes

trim mist
#

I typically inline all my expansions into my plugins now.

serene tide
#

okay

trim mist
#

So I just update the plugin on Spigot if I need to make an update to the expasnion.

#

Else you have to remember to update it in multiple places 😛

coral comet
serene tide
#

it doesn't work for some people though

silver minnow
#

it's built-in to the plugin

trim mist
#

WhySoShy, do /papi dump and paste the link it provides you.

#

Okay so why doesn't it work for some people?

#

Need elaboration.

coral comet
#

the link is too long

trim mist
#

What

coral comet
#

wait xd

trim mist
#

Nice find dkim.

#

That'll be his problem.

silver minnow
#

now gimme support role 🥰

coral comet
#

it just says "Incorrect usage!"

silver minnow
#

/s

trim mist
#

/papi dump

coral comet
#

yeah it says that command doesn't exist

grim halo
#

my placeholderaip is not registerd %tm_tokens%

trim mist
#

What version of PlaceholderAPI are you on?

coral comet
#

2.9.2

trim mist
#

There's your problem

#

You're over a year outdated.

coral comet
#

do i need to be on the latest?

grim halo
wet basinBOT
#

@silver minnow Unknown expansion.

silver minnow
#

oops

trim mist
#

Both of you need to update.

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

Version:

v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.10 - Dev Builds
v2.10.10 - Dev Builds

trim mist
#

We don't provide support to either of those versions anymore.

#

I'll update that list here shortly.

grim halo
#

my placeholderaip is not registerd %tm_tokens%

silver minnow
#

ah alr

coral comet
#

okay thanks

silver minnow
#

was just going to ask if 1.15 and below didn't support lol

trim mist
#

Nah the latest 2.10.10 should work on all 1.8 - 1.17

silver minnow
#

nice

grim halo
#

my placeholderaip is not registerd %tm_tokens%

trim mist
#

You've said that 5 times now.

#

/papi dump

grim halo
trim mist
#

Please turn off pings on reply.

grim halo
#

ok

trim mist
#

...

#

=papi tokenmanager

#

Run those commands, use that placeholder.

grim halo
trim mist
#

There

serene tide
#

uhm where can I disable these pings

grim halo
trim mist
#

You've got to stop.

#

Nvm remove that jar. They have their own stuff now.

#

I have to go back to work. Someone else might be able to answer any other questions you have.

serene tide
#

does anyone know how to disable pings on reply?

#

can't find it in the settings

#

is it even possible?

serene tide
#

thanks 🙂

serene tide
#

did you get a ping?

warm topaz
#

nope

silver minnow
#

you just ghost pinged kaliber-

serene tide
#

rly I have to disable this every time

silver minnow
#

lol

#

shift + reply

#

disables it automatically

warm topaz
#

saw the ping before it was a ghost 🙂

silver minnow
serene tide
coral comet
tender vaporBOT
#
Hey!

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

trim mist
#

Send it here.

#

Someone will look at it and get back to you. I'm at work.

coral comet
#

okay, it was just how do i use the placeholders

signal jackal
tender vaporBOT
#
Hey!

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

distant rock
#

Hello, I from Belarus and i need in you help. I am setting up a server. Core: PaperSpigot 1.12.2. PlaceholderAPI version: 2.10.0 All Expansions are successfully launched when the server starts. BUT! Vault does not start, after the command / papi reload it is loaded and immediately finds it. But when you turn it on, it does not seem to be visible. There are not even errors in the console. What could be the problem?

hard basalt
silver minnow
#

Make sure you have the Vault plugin

hard basalt
#

or u can do /pl to see if vault is running or not

keen coral
#

Anyone have any idea why %statistic_player_kills% gives the value for animals bred with papi?

#

Seems to be for other statistics as well. Some work some dont

analog flax
#

Hello! How do I get my expansions verified on the PlaceholderAPI eCloud?

#

I've had two expansions on there for awhile but figured it was done automatically, but I hear I do need to get a staff member to do that?

vivid sparrow
#

Link to expansion and its code @analog flax

vivid sparrow
#

d;jdk StringJoiner

ionic fractalBOT
#
public final class StringJoiner
extends Object```
StringJoiner has 6 methods, and  1 extensions.
Description:

StringJoiner is used to construct a sequence of characters separated by a delimiter and optionally starting with a supplied prefix and ending with a supplied suffix.

Prior to adding something to the StringJoiner, its sj.toString() method will, by default, return prefix + suffix. However, if the setEmptyValue method is called, the emptyValue supplied will be returned instead. This can be used, for example, when creating a string using set notation to indicate an empty set, i.e. "{}", where the prefix is "{", the suffix is "}" and nothing has been added to the StringJoiner.

Since:

1.8

vivid sparrow
#

Use that instead of a stringbuilder

analog flax
#

Sure, I can look into that- is that more optimal for a certain reason?

#

Oh, I see, it's better for compiling lists for that list part.

#

Yeah, makes sense, guess I overlooked that as it automatically delimiates elements to a comma separated string list

#

All right, I have done that. Are there any other changes I need to make - if not, I can update the expansions on the eCloud

lament agate
#

Hey, placeholder API is taking up a ton of resources on my server for no reason after updating to 1.17. can someone help?

#

Its always been down at the bottom of my timings report with vault and stuff like that, but after updating its coming up red

sharp jay
#

it shouldnt

lament agate
#

Yeah, thats why I'm confused

vivid sparrow
#

Send timings

lament agate
#

sure, one sec.

#

sorry, lost the old one, gotta make you a new one.

manic trout
#

hey if I have multiple placeholders that I want to add together how would I do that?

vivid sparrow
#

Add together using math? If do use the math expansion

manic trout
junior musk
#

%math_0_{placeholder1}+{placeholder2}%

vivid sparrow
#

0:*

junior musk
#

not needed

#

and yeah I tried

keen coral
lilac oxide
keen coral
#

Gotcha thanks. Some of them work so me don't. the placeholder for animals bred doesn't give the value for animals bred lol

noble tinsel
#

say i was using google cloud for servers (if that's even possible), would using loopback ips (like localhost and 127.0.0.1) work for the pinger extension?

#

they work in my self hosted server

mellow badger
#

hey so i receive this error message on my 1.17 server when i try to download the factions extension and reload papi. The faction plugin i use is uuid. has anyone experienced this yet?

[13:26:14 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/massivecraft/factions/RelationParticipator
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: com/massivecraft/factions/RelationParticipator
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more
Caused by: java.lang.ClassNotFoundException: com.massivecraft.factions.RelationParticipator
at java.net.URLClassLoader.findClass(URLClassLoader.java:433) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more

errant iron
#

Don't think you need the expansion

#

I think the expansion is for massivecraft factions, not factionsuuid

rain wharf
#

uhm

#

I just used paste lol

errant iron
#

You don't have DiscordSRV?

rain wharf
#
[06:07:14 INFO]: [PlaceholderAPI] Fetching available expansion information...
[06:07:14 INFO]: [ChestShopNotifier] Found rows: 0
[06:07:14 INFO]: [ChestShopNotifier] Done.
[06:07:16 INFO]: ShadowHacker issued server command: /papi reload
[06:07:16 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[06:07:16 INFO]: [PlaceholderAPI] Fetching available expansion information...
[06:07:16 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: github/scarsz/discordsrv/dependencies/jda/api/entities/Role
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: github/scarsz/discordsrv/dependencies/jda/api/entities/Role
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
        ... 6 more
Caused by: java.lang.ClassNotFoundException: github.scarsz.discordsrv.dependencies.jda.api.entities.Role
        at java.net.URLClassLoader.findClass(URLClassLoader.java:433) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
        ... 6 more```
I'm not sure why, but PAPI doesn't work for me with LP, when I download it through papi ecloud and reload, it just shows error in console.. Can provide full log if it's needed .. I'm trying now dev version instead
#

I don't and I'm not sure why it says that error

#

I deleted it

#

Do i need to remove it?

errant iron
#

Yes

#

Or you need to get it

#

It's trying to find DiscordSRV

rain wharf
#

Yeah, I can see that, but idk why and also why LP doesn't work, let me do this first

#

What command can i use for that? I tried unregister or so, but there's only others

errant iron
#

use for what

rain wharf
#

To fix it not looking for discordsrv? 🤔

#

or what should i do with it

errant iron
#

do /papi dump

rain wharf
errant iron
#

Expansion-discordsrv.jar

#

have you considered that might be why it's looking for discordsrv

rain wharf
#

So I need to remove it from its directory then ^^ didn't knew it was there like that when it didn't showed ingame

errant iron
#

it didn't show in game because it couldn't load beacause it couldn't find the plugin lmao

#

that's what that whole big error meant

rain wharf
#

👍

#

Ok, so.. That error was somehow blocking its ability to find other extensions etc, so I got it working, thanks Star ^^ ❤️

errant iron
#

mhmm

gleaming condor
#

hi im running a bungee cord server and want to get the current servers online in one of the servers shown on my server selector and its not working. this is the stuff ive got on the deluxe hub plugin config for the server selector

#

i want it to be like that

#

have the total players

gleaming condor
#

fixed it

mellow badger
#

so ive removed the faction extention but the placeholders still dont work on my feather board...

kindred wigeon
#

Basically I’m getting kicked with this reason

I seem to be getting kicked with this message
[16:29:29 INFO]: Fantom250YT lost connection: Internal Exception: java.lang.IllegalArgumentException: Attempt to get it.unimi.dsi.fastutil.ints.IntList field "net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy.a" with illegal data type conversion to int

I have been speaking in purpur discord and that have said it is a placeholder plugin issue so here I am. - Apparently used to be a single int now its an array - thanks

turbid tide
turbid tide
mellow badger
#

all g now

#

thx

turbid tide
#

👍

kindred wigeon
hexed panther
#

any way to get number of players in the end?

#

%server_online_world_the_end% seems to have problem with the underscores

#

because it works for a normal overworld

#

but in the end it always returns 0

turbid tide
#

when you try /papi parse me %server_online_world_the_end% do you get any errors in the console?

#

because the expansion doesn't deal with the underscors in the world name at all

#

gets everything after online_

hexed panther
#

using /papi parse just outputs the raw placeholder string, but in all the other places it works...

#

i will try redownloading server

turbid tide
#

try a server restart as well

#

after that

hexed panther
#

Ok, turns out there is a conflict with CMI having the same placeholder...

turbid tide
#

oh

#

wait cmi has exact same placeholder?

austere hawk
#

Rip

hexed panther
#

I redownloaded server, and using /papi parse works as expected

#

but other than that, CMI has their own version apparently...

austere hawk
turbid tide
#

was expecting it to be like %cmi_CUSTOM_HERE%

#

or something

hexed panther
#

most of them are like that

#

but for some reason this one is not

#

ok, they helped me over there, thanks !

errant iron
#

CMI what a meme

hexed panther
#

you are supposed to just write the world name without underscores worldtheend

errant iron
#

well that's weird

mossy sleet
#

What is the placeholder for the server ping?? and than colored?

hexed panther
# errant iron CMI what a meme

well yes, but it does a lot of things better than essentials, and I don't use most of its features, so I stayed with it...

turbid tide
#

%player_ping% for ping

errant iron
#

not in my experience

mossy sleet
turbid tide
#

and %player_ping_colorized% for colored one

#

UGH

#

The ping.. is the time it takes

#

for a player

#

to send information

#

to the server

#

and back?

errant iron
#

🥲

turbid tide
#

it will be different for each player

hexed panther
#

for example better handling of offline player data or their home system

mossy sleet
#

ok

errant iron
#

and those are small boons compared to the bloat and brokenness you get with CMI lmao

turbid tide
#

Star u ever used XParticles? bcz I can't anymore

errant iron
#

plus it costs money

#

nah g

hexed panther
#

i was a long time essentials user myself, but switched to CMI, and if you don't update too often and wait for them to fix stuff, it works great

#

however it gets unstable, thats why the slow updating

errant iron
#

maybe it's part of being a developer, but their whole process and the bloat makes me very weary

#

and the fact that you have to treat it like debian lmao

#

what a meme

hexed panther
#

the dev keeps adding new stuff and does not care too much about the bugs

mossy sleet
#

How do I get an placeholder from another player to see the balance of that specifick player?

junior musk
#

you could use the ParseOther expansion

mossy sleet
#

ParseOther expansion it is than

#

wait where did the embed go

junior musk
#

it removes itself 5m after I think

mossy sleet
#

so What I want to do it show the balance of the player that has the most money

#

but that changes

junior musk
#

%parseother_{the_player_name_here}_{vault_eco_balance}%

#

oh

#

the one that has the most money, well you could use the balance top placeholder I guess

#

%vault_eco_top_balance_1% needs to be enabled in PAPI's config though

#

actually I'm not sure if it's 1 or 0 for the first player

mossy sleet
#

well I want to do the top 10

#

would that be possible??

junior musk
#

you can change the number

mossy sleet
#

oke thank you

junior musk
#

so you can use multiple times the placeholder

#

with different number each time

mossy sleet
#

Oke

#

Thank you

mossy sleet
#

but now I don't see the balance

#

with 0 not and with 1 not

junior musk
#

what placeholder did you use ? the vault top ?

mossy sleet
#

%vault_eco_top_balance_#%

junior musk
#

and did you enable baltop in PAPI's config?

mossy sleet
#

O that is the thing that I forgot

junior musk
#

:D

mossy sleet
#

it has been a long day

junior musk
#

dw

#

I had a bad day as well

#

my MC account wasn't working anymore ;-;

mossy sleet
#

I couldn't login

#

and have waited for 5 months on the support team

junior musk
#

ah

#

I waited half a day

#

5 months?

#

damn

#

respect

#

5 months without MC, I wouldn't survive

mossy sleet
#

I had bought another account because it took to long

#

and I asked for a refund

#

And they where going to look in to that

#

I have now been waiting for 3 months

#

so

#

ehm

junior musk
#

=/

mossy sleet
#

we can conclude minecraft support sucks

junior musk
#

I see that

frozen cargo
#

error

vivid sparrow
#

@frozen cargo

tender vaporBOT
#
📋 Your paste, danechek
https://paste.helpch.at/upuruluqeh

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

errant iron
#

You need Java 11

final lantern
#

even if i m not using 1.17? 🤔

errant iron
#

Yep

#

Also you need Java 16 for 1.17

#

It's very good practice to update your version anyways, running on legacy versions gives you less compatability and a lot less optimizations than newer versions

#

Java 8 came out in 2014, you're literally using a 7 year old program and expecting it to run new stuff

final lantern
#

ooh gotcha

#

ty

hard basalt
#

the placeholder %player_colored_ping% is handle by extentsion player right ?

errant iron
#

yes

hard basalt
#

it seem to be color inverted ..

#

the color of low ping ( mean good connection) is having the color of bad connection

hard basalt
#

can any1 fix this or should i define a javascrip placeholder to fix it ?

drifting dome
#

help me

#

i want to know

gilded ermine
#

is there a way to tell how many players are in a world?

gilded ermine
#

Thanks

thorn thunder
#

No

#

Theres proper instructions on the github wiki

silver minnow
balmy marten
#

You can pr the papi wiki

drowsy isle
#

the new javascript expansion is very laggy compared to 1.16, i noticed it has been reported few times

drowsy isle
vivid sparrow
#

Can I see the code of one placeholder?

drowsy isle
#

sure one sec

drowsy isle
# vivid sparrow Can I see the code of one placeholder?
function saturationbar(){
    var scaling = 10;
    var value = '%survivalplus_player_saturation%' / 20 * scaling;
    
    var bar = '';
    var j = 0;

    for(var i = 0; i < value; i++){
        bar += '|';
        j++;
    }

    bar += '&8&l';

    for(var i = j; i < scaling; i++){
        bar += '.';
    }

    return bar;
}

saturationbar()

They worked fine on 1.16 i had no issues

vivid sparrow
#

I see

drowsy isle
#

i had them in TAB in 1.16 at 100ms refresh rate and it worked fine, now it lags even with 5000ms

static solar
turbid tide
#

do you have an account already on the ecloud? if not ask one of the admins when you see them online to make you one. and for the wiki, you just PR the changes

#

I don't remember how you pull request a change on the wiki but I'd assume just like you do with the code? you fork, change, and then open a pull request

austere hawk
turbid tide
austere hawk
#

Oh neat! Thank you

rigid wharf
#

Would there be a way with the javascript expansion to check if a placeholder is equal or greater to something, and then do a command?

pure wraith
#

Is there an expansion or placeholder that could return the amount of characters in an input?

austere hawk
balmy marten
#

The formatter expansion was built on a newer version of java

#

if you want to use it update your java version

balmy marten
vivid sparrow
#

@austere hawk use java 11

worldly fjord
#

Hey could i get a little help

does any one know how to register an expansion again after reloading the placeholder plugin?

vivid sparrow
#

persistent() true

thorn thunder
#

Use the latest version

worldly fjord
tender vaporBOT
#
Hey!

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

worldly fjord
#

sorry 🙂

#

i forgot

magic elk
#

Hi, I can't create my own extension and make it appear on the holographic display ... can someone help me?

turbid tide
magic elk
#

okey

#

ty ^^

turbid tide
#

no problem 👍

magic elk
#

It's works

#

ty so much!!

tough swallow
#

Hello I'm new here and I have a question about sharing placeholder variables between spigot server in a Bungee network

turbid tide
#

that's not possible at the moment. well you could make your own plugin to share them like that but papi doesn't have that by default

thorn thunder
#

Not of papi

#

Of js-expansion

#

Use the latest one from ecloud

tough swallow
#

@turbid tide I'll try Bungee messaging channel this could help I think, thank you for your time

turbid tide
#

you download it by downing /papi ecloud download javascript then /papi reload

tough swallow
turbid tide
tough swallow
turbid tide
#

all good. you could still manually download it from the ecloud but don't see why xD

gray panther
#

May be the wrong area to ask since its not a plugin made by this business. But MDvW won't hook with Placeholderapi it seems? Through Featherboard.

#

Any thoughts on this, as to why?

Server version 1.17.1 all plugins updated to latest build.

errant iron
#

you're using this format?

gray panther
#

right

#

I am

#

It was working post update to 1.17.1

errant iron
#

it worked on 1.17?

turbid tide
#

ugh featherboard moved to PlacehodlerAPI. you don't need MvDWPlaceholderAPI anymore

#

if you're on version 5.0.0+ of featherboard all you need is PlaceholderAPI

errant iron
#

oh yeah I was wondering about that

turbid tide
#

and you just use them like you would normaly do

#

%placeholder%

errant iron
#

wasn't mentioned on the mvdwpapi spigot page

turbid tide
#

it was mentioned on FB page tho

#

update

#

I think

#

dk if on the front page

errant iron
#

FeatherBoard 5 is currently a BETA version for Java 16 and Spigot 1.17 - DO NOT DOWNLOAD IT FOR A PRODUCTION SERVER. If you are a new buyer, please use 4.30.0 instead under the "Versions" tab page. 👀

#

also holy shit 21% vat

#

is that in addition to the 18 euro?

gray panther
turbid tide
#

I think he has to pay 21% of the 18 euros

gray panther
#

Thank you all

errant iron
#

stupid eu

turbid tide
#

yeah. but we get healthcare xD

errant iron
#

hey there are countries that get healthcare that aren't in the eu

turbid tide
errant iron
#

canada, for instance

gray panther
#

lol

turbid tide
#

xD

#

yeah I do same

#

I mostly use dev builds

gray panther
#

Same hahaha

#

Appreciate your help. Thank you.

errant iron
#

blitz lives on the edge

#

like running arch updates every day

turbid tide
#

xD

austere hawk
#

Is there a way to get this to run on the bungee server itself? I've got a plugin on it that i need a placeholder for

austere hawk
#

Ill try it, might not work though as the server is 1.17

proud heron
#

Hey guys how do I use placeholder math?
I tried this
%math_{server_ram_max}/1024%
got value: 8.000

but want to remove the .000
tried this
%math_{server_ram_max}/1024[precision:0]%
but got an console error

errant iron
#

%math_0:{server_ram_max}/1024%

turbid tide
#

nope

#

%math_0_{server_ram_max}/1024%

errant iron
#

ugh

#

someone needs to make an faq about that

#

I never remember the exact format

proud heron
#

Thanks :)

turbid tide
#

%math_DECIMALS:ROUND-TYPE_MATH-HERE%

#

also there's a wiki for that

#

or at least the placeholderapi list

#

explains it

errant iron
#

doesn't say you can omit the rounding and the colon

turbid tide
proud heron
#

but you were correct

errant iron
turbid tide
errant iron
#

so you're specifying the precision

#

but not rounding

turbid tide
#

but you could also do %math_#:_MATH-HERE%

#

and also %math_MATH-HERE%

#

also %math_:#_MATH-HERE%

#

pretty sure

errant iron
#

blitz you should add that to the wiki

#

that would be very pertinent information

turbid tide
errant iron
#

I don't see where it does