#placeholder-api

150650 messages · Page 94 of 151

tender vaporBOT
vivid sparrow
#

Do it manually

#

The paste command doesnt support new lines

junior musk
#

/papi reload works

vivid sparrow
#

No, I mean to create the paste manually

junior musk
#

you're using the Vault expansion for PlaceholderAPI but you're missing the Vault plugin, resulting in an error which prevents PAPI from loading all expansions correctly

#

either install Vault or go in /plugins/PlaceholderAPI/expansions and delete the Vault-Expansion jar

deep hollow
#

Hey, I'm using lorecontains:<string>~ on checkitem placeholder to tokens enchantment menu, but when checking Tokenator 1, it checks the Tokenator 10 too, there's a way on making it work?

Now using:

      requirements:
        1:
          type: string equals ignorecase
          input: '%checkitem_lorecontains:Tokenator 1%'```
vivid sparrow
#

Loreequals ?

deep hollow
#

Pickaxe has more than 1 lore

junior musk
#

that probably wouldn't work with multiple enchantments

deep hollow
#

and the place of the enchantment is not ordered

#

so a player could have it on lore 3 line, other on the 4 line, etc

#

so I don't think loreequals would work no?

junior musk
#

nope, and I don't think lorecontains has any way of doing what you want either

vivid sparrow
#

I'm 99% sure lorecontains means "one line contains"

#

and loreequals means "one line equals"

junior musk
#

doesn't seem to

vivid sparrow
junior musk
frozen yarrow
#

Can you make a second view requirement and invert the logic for lore DOESNT contain Tokenator 10

vivid sparrow
#

lorelinecontains and lorelineequals

junior musk
#

yeah

frozen yarrow
#

Well not exactly

vivid sparrow
#

If thats from tokenenchant, i think it has a placeholder to get the level of an enchantmen

frozen yarrow
#

what’s max level of tokenator

deep hollow
#

no no isn't for tokenenchant

#

I'm doing gems enchantments with playerpoints

frozen yarrow
#

you’d have to exclude 10-19 and everything above 100 xD

#

with my bandaid

vivid sparrow
#

gems enchantments is a plugin?

deep hollow
#

nope

#

using tokensgc

vivid sparrow
#

what

deep hollow
#

but I'm doing gems enchantments with playerpoints

#

basically enchantments buyable with playerpoints instead of with tokens

vivid sparrow
#

Do you have a system that uses one or two plugins and not 20? 🤣

#

Ok but I'm asking what plugin handles the enchantmens, idc about the whole system

deep hollow
#

Ah, tokensgc

vivid sparrow
#

Link?

junior musk
frozen yarrow
junior musk
vivid sparrow
#

%tokens_<enchantName>_level% - Shows the current level of the given enchantment applied to the item in hand of the player

deep hollow
#

yeah works fine with that placeholder, sorry to bother you, didn't know that placeholder exists 🤦

#

thanks all for the help ❤️

#

Btw, there's something to generate more levels to avoid doing it manually 100 times?

#

without having knowledge of python

vivid sparrow
#

Nope

junior musk
#

uuuuh, gl

vivid sparrow
#

And I wouldn't use the JavaScript requirement for that

#

I know it looks prettier or whatever, but is just extra overload for no benefit in this case

deep hollow
vivid sparrow
#

Yeah, and >=

deep hollow
#
      requirements:
        1:
          type: '>='
          input: '%tokens_Credits_level%'
          output: 1```
#

basically that

#

it's more optimized?

#

than javascript

fair pendant
#
java.lang.NoClassDefFoundError: org/bukkit/plugin/java/JavaPlugin
    at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
    at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
    at net.md_5.bungee.api.plugin.PluginClassloader.findClass(PluginClassloader.java:152)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
    at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:66)
    at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:59)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugin(PluginManager.java:340)
    at net.md_5.bungee.api.plugin.PluginManager.loadPlugins(PluginManager.java:250)
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:271)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
Caused by: java.lang.ClassNotFoundException: org.bukkit.plugin.java.JavaPlugin
    at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:103)
    at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:59)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
    ... 13 more```
#

help me pls

junior musk
#

PAPI is a Spigot plugin

#

not a BungeeCord plugin

vivid sparrow
fair pendant
junior musk
fair pendant
#

ahhh ok

austere hawk
#

pluginMain.getPlugin().getServer().broadcastMessage("{tasoLF_hearts}");

#

this doesnt cut it

vivid sparrow
#

PlaceholderAPI#setBracketsPlaceholders

austere hawk
tender vaporBOT
vivid sparrow
#

Np

gentle lintel
#

So I have my time set. I was wanting to add where it adds/changes to PM/AM depending on what time it is (real time).
%servertime_hh:mm%
What do I need to add to this ^ to add that AM/PM?

gentle lintel
#

Thank you so much! Also I know a server with the server logo on their scoreboard. Do you know how this is done?

tawny sun
#

how can I make holograms update?

#

now that holographic extension does not work on latest version

cloud salmon
#

Would it be possible to make a javascript to show how many players are on, but only those with perms. Also, check if player is in vanish, idk

cloud salmon
#

%supervanish_isvanished% returns a boolean

austere hawk
#

is there anyway to hook Papi into a discord.js bot?

trim mist
#

If you want to write a REST API that is ran on the server, sure.

deep hollow
#

Hey, someone knows if it's possible to use %server_countdown_HH.dd.MM.yyyy_11.15.08.2022% inversed?

#

like showing days/hours/minutes of time passed from a date

turbid tide
#

don't need javascript for that

#

you could just use the playerlist expansion.

cloud salmon
turbid tide
#

well you can set the condition to be a placeholder as well. not just permissions

#

@junior musk can you have multiple conditions with your PlayerList expansion?

junior musk
#

no, but the placeholder subtype can probably help

#

wait actually

#

I don't remember if I posted the update x)

#

nope

#

you can have multiple placeholder separated with +

tawny sun
#

how can I make holograms update?
now that holographic extension does not work on latest version

tawny sun
# junior musk

do i have to like remake all my holograms or somethign?

#

and does it still use the {fast} {medium} {slow} notation?

junior musk
#

always read the changelogs when updating

tawny sun
#

i'm confused, does this work with placeholderapi tho?

#
placeholders:
  '[x]': █
  '[/]': ▌
  '[.]': ░
  '[..]': ▒
  '[...]': ▓
  '[p]': •
  '[|]': ⎹
  '%outpost_specific_forest_capped_team%' = %outpost_specific_forest_capped_team%
#

this seems odd, am i doing it wrong?

#

i tried that

junior musk
tawny sun
#

ah i see

#

and it will update automatically..?

junior musk
#

I guess

tawny sun
#

alright

#

thanks

junior musk
#

the changelogs say that

PlaceholderAPI's placeholders are refreshed every tick (configurable in the future) and they are not optimized yet. Performance may be affected especially if there are slow placeholders

#

idk if he did add the config option though

tawny sun
#

i see

wide reef
#

for some reason on boot, i get

[PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:428) ~[PlaceholderAPI-2.11.3-DEV-160.jar:?]

but its resolved just by /papi reload, this is on placeholderapi 2.11.3-dev 160, this occurs on 2.11.2 aswell. i assume people are aware of this but not exactly sure what to do untill its patched if it hasnt already been.

#

worse thing is its intermittent, sometimes it boots fine sometimes it does this.

#

ok looking back at another issue relating, its a bug with pufferfish that has already been patched on a latest version...

#

kinda wish it was backported to 1.19.0

#

owell guess ill update to 1.19.2

umbral relic
#

Hello, good, does anyone know how I can put that progress bar in my holograms and that as the server fills up, the bar also fills up?

light dock
prime lintel
#

parse others is not working for deluxemenus

#

for me

#
      - '&#8FE6FC{player}''s Information:'
      - '&7➥ Money: &f%parseother_{player}_{vault_eco_balance_formatted}%' #%parseother_{player}_{vault_eco_balance_formatted}%```
#

using args within the command for it

#

Plugin DeluxeMenus v1.13.5-Release generated an exception while executing task 1285717

mint fable
#

because you didn't use an arg, you just put player 😉 %parseother_{{player}}_{...}%

prime lintel
#

okay will try that

#

that works, thank you!

austere hawk
#

is there any placeholder to return the amount of players in a specific WorldGuard region

hybrid stone
#

do i need any expansions to run papi on a bungeecord server?

#

cus rn none of the placeholders are working

trim mist
#

PlaceholderAPI doesn't run on the proxy.

hybrid stone
#

@trim mist im not that smart with that you mean it doesnt run on the waterfall server or any server connected to it?

trim mist
#

It does not run on BungeeCord, Waterfall, Velocity.

hybrid stone
#

oh

trim mist
#

It runs on Spigot, Paper, etc.

hybrid stone
#

But my like connected servers

#

run on paper

trim mist
#

Yes, it can go on there.

hybrid stone
#

well the weird thing is its not working rn

#

bungeecord placeholders dont work (but ig thats why

#

but all regular ones also dont show up when i put them in a holo or parse them

tender vaporBOT
trim mist
#

Also /papi dump please

austere hawk
#

hey!

#

when i run /papi ecloud download insertextensionnamehere then /papi reload I lose all my extensions

#

except if they are from plugins

#

if i reboot i get the extension i downloaded + all my others back

#

if i try to register those extensions that didnt load nothing comes back

#

i'll get a papi dump and logs later

#

nevermind.. /papi dump responds with nothing

hybrid stone
#

?paste

tender vaporBOT
austere hawk
#

didn't i just say papi dump responds with nothing

#

don't have image perms awhh

tender vaporBOT
austere hawk
#

aand no embed perms

trim mist
#

Do you like... have commands off in your chat setting or something?

austere hawk
#

i used f3 d before hand

tender vaporBOT
austere hawk
#

same thing happens when i try to register an extension

austere hawk
hybrid stone
#

oh ur responding to him

austere hawk
#

you can disable command outputs

#

in settings

hybrid stone
#

who is he responding to

lethal sable
#

Hello, is there a way to show player's custom time (set by /ptime), the only placeholder I found is %player_time% but I believe it's in milliseconds

austere hawk
#

but it may not set by that

lethal sable
#

I use Localtime for real world time, I don't think it can actually show the time in game

#

which is what I need

austere hawk
#

oh in game time

#

let me see

lethal sable
#

yeah

#

/ptime changes the time for player only

austere hawk
#

yeea no idea

lethal sable
#

this is the output of %player_time%

#

it shows player's current time but in this weird format

#

Not sure if I can use this expansion somehow to transform it into hh:mm format

austere hawk
#

i doubt it

#

consider using skript to try and do that

lethal sable
#

I could use skript for that but I have no idea what that output actually is

#

and the length of the output is different each time so it could be tricky to split it and calculate the time

austere hawk
#

unix mills

lethal sable
#

I think that the easiest way to do this is to actually set the placeholder to %player's time% from skript

#

Not sure how performance efficient that would be but I'll try it

visual smelt
#

can i fill placeholders for offline players?

turbid tide
#

Some can't

visual smelt
#

ok thanks

turbid tide
#

Change the value after max with the maximum amount of players the server can have

turbid tide
turbid tide
#

Tho you could probably make one with the PlayerList expansion

light dock
tender vaporBOT
tender vaporBOT
austere hawk
#

PlaceholderAPI v.2.11.2
Math latest download extension

[PlaceholderAPI] [math] Invalid Placeholder detected! [PlaceholderAPI] [math] Placeholder: %math_0_{mmocore_experience}% [PlaceholderAPI] [math] Cause: '{mmocore_experience}' is not a valid Math Expression.

harsh garnet
#

what placeholder to use to show the kills

short shoal
austere hawk
#

I will try with %math_0_{player_health}%

austere hawk
austere hawk
#

It appears when a player logs in

#

@turbid tide Disase try to upload javascript

austere hawk
#

He sell the account

#

and hackers are trying to upload JavaScript

#

dont verify it

#

0.0.3

sharp jay
#

what? @austere hawk ?

austere hawk
#

see disease 0.0.3 code

sharp jay
#

Mind DMing me the name? and info

austere hawk
#

and 0.0.4

#

0.0.3 disase is javascript

#

download and watch the code

#

i cant now

#

the developer sell the account to a “Hacker”

#

@sharp jay plis check it

sharp jay
#

Having higher ups check

austere hawk
#

the Developer sell the account for upload javascript

vivid sparrow
#

Do you have proofs @austere hawk ?

paper pewter
#

Hello! I made an expansion and wanted to upload it to the eCloud, but I couldn't create an account on your website. It told me account creation is locked, and linked me to your Discord. Could you tell me how I can add my expansion to the cloud?

austere hawk
tender vaporBOT
austere hawk
vivid sparrow
random basin
#

Hi there, I'm trying to nest placeholders in featherboard but it doesn't seem to have compatibility with a lot of expansion packs, is there a better way to do it in PAPI? Currently my scoreboard parses "%moregradients_custom_{luckperms_meta_colors}_{luckperms_meta_cleanname}%" (Because the gradient effect that comes with featherboard also doesn't work for me on 1.19.1)
And when it shows up it only parses the {luckperms_meta_cleanname} on the board. Any ideas?

junior musk
#

try /papi ecloud download NestedPlaceholders
/papi reload
%nested_moregradients_custom_{luckperms_meta_colors}_{luckperms_meta_cleanname}%

random basin
#

I'll give it a shot, thanks friend

#

It worked!!! Thank you!

junior musk
#

👌

mint quarry
#

hello I was wondering on how to use the server countdown placeholder since I couldnt find a detailed tutorial on how to do it.

#

could I get a example?

magic rock
#

oh nvm i cant read

#

%server_countdown_<SimpleDateFormat>_<time>%
e.g. %server_countdown_dd.MM.yyyy_01.01.2020%

mint quarry
#

%server_countdown_18.08.2022_18.08.2022% like this?

magic rock
#

nope

#

%server_countdown_<SimpleDateFormat>_<time>%
the simpledateformat is dd.MM.yyyy in the example

#

next example:
%server_countdown_yyyy.dd.MM_2020.01.01%

mint quarry
#

%server_countdown_2022.18.08_2022.18.08% the cooldown is for tmr

magic rock
#

%server_countdown_2022.18.08_2022.18.08%

#

the bold thing

#

need to be simple date format

#

which looks like this dd.MM.yyyy

mint quarry
#

%server_countdown_18.08.2022_2022.18.08%

magic rock
#

no like

#

by <SimpleDateFormat> you will define how the time is "processed"

#

idk how to explain

mint quarry
#

um I dont quite understand but its day 18 then month by 08 then year 2022 right?

magic rock
#

but its day 18 then month by 08 then year 2022
you define that by SimpleDateFormat

#

if the SimpleDateFormat is dd.MM.yyyy then its day then month then year

#

if the SimpleDateFormat is MM.dd.yyyy then its month then day then year

mint quarry
#

so then the 2nd part would be the same as the first?

mint quarry
magic rock
#

wdym what config

#

SimpleDateFormat in the placeholder

#

%server_countdown_<SimpleDateFormat>_<time>%

#

in <SimpleDateFormat> you will define "format" how you specify the time

#

so if <SimpleDateFormat> is dd.MM.yyyy

#

and want the time to be 1st july 2023

#

then the <time> part will be 01.01.2023

mint quarry
#

oh ok so simpledateformat would then be the same as time?

magic rock
#

yea

mint quarry
#

ok so then how would I insert a specific time in the day like 3pm

mint quarry
#

alright I will try it

mint quarry
#

ok I got it to work since it said 0 the whole time because the timer for tmr reached below 24 hours

plush dove
#

uh

#

whered the javascript expansion go

#

👍 thanks

#

(i searched it up on the discord logs)

kind shoal
#

Hello

#

I am trying to make a website that can use info from my minecraft server to display statistics, does anyone know how I would go forward with this?, probably not the right place to ask but thought I'd give it a try 🙂

indigo grail
#

your own website? or some like tebex?

paper pewter
#

Hello! Who do I need to contact about getting an account to upload a new expansion to the ecloud?

vivid sparrow
#

Do you already have an expansion ready to be uploaded?

balmy marten
vivid sparrow
#

👍

tardy glade
#

what was the placeholder for player number (for example if im the 5th player to ever join the server it will return 5), i lost the english word

(ping if you know)

gleaming mango
#

Can someone tell me what the variables of the guild scoreboard are?

vivid sparrow
tardy glade
#

i dont use essentials there

lethal basin
autumn stream
#

How to make placeholder (JS), that can pick variables from placeholder (ex. %javascript_somehere1_somehere2_somehere3%) ?

junior musk
#

use {placeholder}

autumn stream
#

%javascript_{some1}_{some2}%?

junior musk
#

yeah

#

with actual placeholders, but yeah

autumn stream
#

so, i cant put there anything?

junior musk
#

what

#

you can put anything

#

wait

autumn stream
#

like %javascript_{color1}_{color2}%

junior musk
#

what do you want to do?

#

I don't understand

autumn stream
junior musk
#

what's your nickname plugin?

autumn stream
#

%player_name%.

#

var p = "%player_name%"

junior musk
#

You don't need JavaScript for that

#

%gradient_message_{#hex1}_{#hex2}_{player_name}%

autumn stream
#

i havent any other example

junior musk
#

and do /papi ecloud download Gradient
/papi reload

autumn stream
junior musk
#

I already gave you the entire placeholder

autumn stream
#

no.

junior musk
#

you just need to change the colors

autumn stream
#

so, other example

#

%javascript_tobin_{text}%
how to get text from js?

junior musk
#

args[0]

autumn stream
#

rlly? omgggg thanks!!!!

junior musk
#

sorry, it took me some time to understand 😅

autumn stream
#

oh. thanks! you best!

#

woooow. js expansion have a lot of functions.

junior musk
#

it stores them to a file, so yeah

#

but I've heard it had some issues, not sure

#

or maybe not

#

idk, try it and see I guess 😅

crimson ember
#

hi, I downloaded the placeholder "server" and gave papi reload and then added "%server_name%" to the tablist and it still shows me "A Minecraft Server" even though I have Lobby-01 in server.properties

turbid tide
crimson ember
#

change %server_name% ?

#

or?

turbid tide
edgy bolt
#

I am trying to add PlaceHolderAPI support to my plugin through maven. I have added the dependency and repository, but whenever I try to do something like this PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);, it gives an error. I tried to manually add the import statement, but that did not work either.

crimson ember
tender vaporBOT
crimson ember
#

sorry

turbid tide
crimson ember
#

server restart

edgy bolt
#

It just gives a red underline, and says that it is not a valid symbol

crimson ember
#

[19:04:45 ERROR]: Cannot load plugins\PlaceholderAPI\config.yml
org.bukkit.configuration.InvalidConfigurationException: while scanning for the next token
found character '%' that cannot start any token. (Do not use % for indentation)
in 'string', line 38, column 19:
server_name: %server_name%
^[19:04:45 ERROR]: Cannot load plugins\PlaceholderAPI\config.yml
org.bukkit.configuration.InvalidConfigurationException: while scanning for the next token
found character '%' that cannot start any token. (Do not use % for indentation)
in 'string', line 38, column 19:
server_name: %server_name%
^

crimson ember
#

hmm

edgy bolt
#

Here is what I used for the dependency and repository

Denpendency: <dependency> <groupId>me.clip</groupId> <artifactId>placeholderapi</artifactId> <version>2.11.2</version> <scope>provided</scope> </dependency>

Repository: <repository> <id>placeholderapi</id> <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url> </repository>

turbid tide
#

you're making the server name a server name placeholder?

#

that will literally do nothing and instead will just return back the placeholder itself

#

anyways put it inside quotes

#

server_name: "%server_name%"

turbid tide
crimson ember
#

it should display the server name in the tablist

turbid tide
#

you can't get the server name from server.properties with that placeholder

edgy bolt
#

That worked, thank you!

turbid tide
turbid tide
edgy bolt
#

ok

crimson ember
#

I was just wondering if it would be automatic

crimson ember
#

is there any way to automatically show server name in tablist?

turbid tide
#

just set the server name in your placeholderapi config.yml tho

#

its not that much work

#

to just set server_name: "Lobby-01"

#

and then use %server_name%

crimson ember
#

is not automatic or?

#

I can write that directly in the tablist, can't I?

vivid sparrow
#

No is not, the name used to be a setting in server.properties but it was removed

crimson ember
#

oh

#

😦

vivid sparrow
crimson ember
#

Hi, is there any way to count the number of players on multiple servers? but not on the whole bungee only on selected servers and to show it in one number

#

I want to make a minigame, but there will be more servers for it so that it points to the lobby from all those servers in one number

turbid tide
#

for example %math_0_{bungee_SERVER1}+{bungee_SERVER2}% would count the players from the servers SERVER1 and SERVER2

crimson ember
#

ok, thanks

paper pewter
crimson ember
paper pewter
autumn stream
#

[12:59:02] [Server thread/INFO] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Fetching available expansion information...
[12:59:02] [Server thread/ERROR] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Failed to load expansion class JavascriptExpansion (Is a dependency missing?)

turbid tide
autumn stream
#

yes

#

this is full

turbid tide
#

you should probably install the one from the ecloud as it is more updated

autumn stream
#

i get error when downloading from ecloud

#

also i use magma (forge+bukkit)

#

can this make error?

turbid tide
bold rune
#

Inotsleep thonking

velvet cosmos
turbid tide
velvet cosmos
#

Ty!

#

is there a way to keep the plugin btw? (Because i have the plugin)

#

nevermind i updated the quests plugin and it work xd

uneven eagle
#

is there placeholder for max players?

vivid sparrow
#

%server_max% I believe

uneven eagle
#

thanks

waxen whale
#

cj

#

I cant find what u told me todo

#

But what do i do

#

the what u gave doesnt work

mint fable
mint fable
simple cosmos
#

<@&639756260874387476> i have spam on my email to reset the password

#

and i don't even try to reset my Password

vivid sparrow
#

@simple cosmos

tender vaporBOT
visual smelt
#

any way to double change placeholders like the player pefix is a placeholder but i get that placeholder from a placeholder

#

sooo %player_perms% -> %img_adminrank% -> an image

#

how do i turn %player_perms% into image cos i just get %img_adminrank%

turbid tide
visual smelt
#

tysm

visual smelt
#

found it

lethal sable
#

Hey, does anyone know why %vault_eco_balance_formatted% returns money in this format?

#

It should be 48.50k (like before), now it shows up as 48.50$k

#

I've tried updating the expansion but that didn't work

visual smelt
#

anyone know how to remove one item using checkitem

tardy glade
#

@fathom raft

#

ask hier

mint fable
#

%checkitem_remove_mat:diamond,amt:1%

visual smelt
#

thanks

high swift
#

%essentials_msg_ignore% only showing false?

#

which im assuming is linked to /ignore

vivid sparrow
#

no is not, that is per player

#

Essentials msgtoggle emsgtoggle Blocks receiving all private messages. /<command> [player] [on|off]

north arch
#

Hello, is there an extension that supports showing users on a proxy (velocity)

#

I cannot find one anywhere

#

And unsure where else to ask, sorry if it's the wrong place

high swift
tender vaporBOT
vivid sparrow
turbid tide
#

so it tells you if your entire DMs are closed or not

high swift
#

oh

#

so whats the one I need?

turbid tide
turbid tide
#

or what exactly?

high swift
#

yeah

#

I have have toggle button

#

and need a placeholder to see if you have blocked that user or not

turbid tide
high swift
#

;-;

turbid tide
# lethal sable https://i.imgur.com/GnZaChK.png

So I've looked at the code and it seems like what happens is that the expansion takes the 48.500000 number and gives it to vault to format then appends the k at the end. So vault is adding the $. Or maybe a plugin that uses vault

#

yeah. it definitely seems like plugins can take over the format method from Vault. So one of your economy plugins is adding the $ at the end.

lethal sable
#

umm

#

the only plugin I remember which changed the economy was deleted, is it possible for the changed format to stay even after that?

turbid tide
lethal sable
#

it's handled by essentials

#

I'll check the configuration again, thank you!

turbid tide
#

or something like that

#

idk if that option also changes it in vault tho

lethal sable
#

nope, I was using the dev version before and then I uploaded a stable one

#

so that broke it for sure

#

I guess I'll have to regenerate my configuration

acoustic tusk
#

hello

#

how to use math expansion for another expansions? like %playerpoints_points%+%vault_eco_balance_fixed%

turbid tide
granite hound
#

hey there, papi is simply not working even after refreshing, redownloading the latest addons, and restarting the server

#

any troubleshooting tips?

#

trying to parse something doesnt work

#

nvm. for some reason the Quests addon completely broke everything

mortal jewel
#

Where do I use vault placeholders to customise how essentials /baltop command shows the format of balances? I would like it to display 1,000,000 as 1M rather than 1,000,000 etc

turbid tide
#

I think they let you customize colors but that's it

#

not how money is formatted

#

unless they have a config option directly in essentials maybe

austere hawk
#

I didn't understand how "Config" expansion works

plush dove
#

how can I do a javascript that chooses a string from a list of strings randomly?

plush dove
#
list.random();```
#

I tried that but gave an error

quasi spire
#

Suggestion

#

Bungee / Velocity

#

to have placeholder that checks if other server online or not

#

instead of having port forward and use pinger

plush dove
turbid tide
#

that method doesn't exist in javascript

plush dove
#

yep I raelized now lol

turbid tide
#

btw, you don't need to use JS for this at all. You can just use the String expansion instead

plush dove
#

oh

turbid tide
# austere hawk I didn't understand how "Config" expansion works

you declare config files in plugins/PlaceholderAPI/config.yml and then you can set options there and use a placeholder to display those options. for example if I add the example: /plugins/PlaceholderAPI/configs/test.yml, and I create that file and in it I put yml this: "is a test" and you use %config_example_STRING_this_DEFAULT-VALUE% it would display is a test.

#

it only supports yaml files and a few types: BOOLEAN, DOUBLE, INT (or INTEGER), LONG, and anything else would be considered a string

#

or rather it would get it as an object and run the #toString method on it

plush dove
#

bruhhh that would have been so useful for me a while back

lethal sable
#

Hi, latest stable version of Essentials breaks vault's %vault_eco_balance_formatted% placeholder. If you, for example, have 1000$, it will show up as 1$k. Is there a way to fix this?

#

Sorry if this is not the right place to ask, they told me that Essentials doesn't manage papi's placeholders and that they can't do anything about it

bold rune
sage stratus
crimson ember
#

Hi, isn't there some placeholder or plugin so I can edit the text (server name, links, etc...) only on the bungeecord server?

crystal prawn
#

[17:22:12 ERROR]: [PlaceholderAPI] Failed to load class files of expansion. java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] Caused by: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?] at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?] at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2.jar:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] ... 6 more Caused by: java.lang.ClassNotFoundException: com.artemis.the.gr8.lib.kyori.adventure.text.TextComponent at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?] at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?] at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2.jar:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?] ... 6 more

#

im getting this error after updating to 1.19

#

whenever i try reloading the papi

tender vaporBOT
vivid sparrow
#

that has nothing to do with papi

#

but with some expansion you use

crystal prawn
#

oh

#

idk what it is tho

paper pewter
#

That is mine, and that will be because you are probably not using PlayerStats version 1.7

#

So if you update PlayerStats, it should work 🙂

glad epoch
#

Just out of curiosity, I see some expansion owners are verified developers. Is it possible to obtain said role or do my expansions always need to be manually approved?

magic rock
#

Hi, can placeholder expansion have - in its name?

turbid tide
#

wait actually

#

it might. I know it can't contain _

#

let me check

turbid tide
magic rock
#

thx

turbid tide
# magic rock thx

I know that it doesn't like underscores and possibly might only accept lowercase letters but afaic tell that's all the limitations

hybrid leaf
#

hello, papi dont show custom javascript scripts and shows only %javascript-progress-bar% etc. i didnt get any error it looks like papi ignores js

#

oh, somehow js extension isnt downloaded but it was

#

what is the command to download it?

vivid sparrow
#

You have to download it manually for now

#

and after javascript should be an underscore _ not a dash -

hybrid leaf
#

oh thats why im getting error

hybrid leaf
hybrid leaf
vivid sparrow
strong edge
#

ehy umh-

#

[19:27:59] [Server thread/WARN]: [PlaceholderAPI] Cannot load expansion vault due to an unknown issue.

Why is not even showing the error?

#

tried enabling debug in config but seems to be kinda useless xd

kindred oyster
#

anyone else having issues with papi on startup? i've seen 2 servers today, one 1.19.1 another one 1.8.8 getting stuck on loading papi

strong edge
#

Mine is on 1.19 and was loading but i got the vault error

kindred oyster
tawdry pecan
#

nation:
type: 'string equals'
input: '%townyadvanced_nation%'
output: 'Testnation'

any idea why this is not work in dm?

indigo grail
#

requirements: notier: type: string equals input: "%placeholder%" output: "result"

#

must look like this one

#

the '' doesn't worl, you mus use ""

#

try this:

nation: type: string equals input: "%townyadvanced_nation%" output: "Testnation"

tawdry pecan
#

Unfortunately it still does not work

mint fable
#

can you send a picture of what that returns

tawdry pecan
#

cant send pictures here

tender vaporBOT
tawdry pecan
#

ah ok

tawdry pecan
#

another towny placeholder with "true" "false" output works.

tawdry pecan
tender vaporBOT
vivid sparrow
#

Try to add "" around the placeholder, maybe it has some space(s), or even color

#

"&c%placeholder%"

tawdry pecan
#

There are a lot of colours. Thought the output is always clean?

#

Like this?
requirements:
notier:
type: string equals
input: "%placeholder%"
output: "result "

rancid prairie
#

Is there any way to list guild war wins in a top 10 hologram?

vivid sparrow
#

@tawdry pecan no, I meant on the parse command, sorry

#

And use the actual placeholder, I'm on mobile and cb to type it all xD

tawdry pecan
#

yea... there is a space -.-

#

thanks haha

#

its really "output "

still sandal
#

Is placeholderapi include a restapi?

vivid sparrow
#

papi is not a rest api

#

it is a library used to display placeholders in various places in a minecraft server (menus, scoreboards, tablists, etc.)

still sandal
#

OK, ty.

still sandal
#

Does the api support wildcards?

vivid sparrow
#

for what?

still sandal
#

Advancements

vivid sparrow
#

it depends how the expansion is made

austere hawk
#

hello, what are the FULL essentials placeholers?

vivid sparrow
#

@austere hawk -papi essentials

austere hawk
#

not good

#

or full

balmy spear
#

hello im new with the placeholders but is there a placeholder that displays all player names?

languid merlin
#

Hey i got this error when i reload it

[17:18:48] [Server thread/INFO]: iDrunK issued server command: /papi ecloud download Player
[17:18:48] [placeholderapi-io-#1/INFO]: [PlaceholderAPI] Fetching available expansion information...
[17:18:52] [Server thread/INFO]: iDrunK issued server command: /papi reload
[17:18:52] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[17:18:52] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[17:18:52] [Server thread/ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/artemis/the/gr8/playerstats/statistic/request/StatRequest
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: com/artemis/the/gr8/playerstats/statistic/request/StatRequest
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        ... 6 more
Caused by: java.lang.ClassNotFoundException: com.artemis.the.gr8.playerstats.statistic.request.StatRequest
        at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        ... 6 more
paper pewter
paper pewter
#

(Or put PlayerStats on the server if you don't have it - you can't use the PlayerStatsExpansion without it)

ionic pumice
#

Can anyone tell me how to get an eCloud author account to upload ones expansions?

trim mist
#

Currently not open for new accounts. If you have an expansion for a plugin, just put it in the plugin itself.

jolly crystal
#

I honestly wondered why users don't do that in the firstplace.

#

Cause you need the plugins to use most of these expansions.

ionic pumice
paper pewter
#

I might have some insight there @jolly crystal

I recently made an expansion after some people asked if I could make placeholders for my plugin. I didn't know anything about PlaceholderAPI before that, so I looked into it and read all the guidelines. The wiki guides presented both options (making a separate jar vs working inside your plugin) as equally valid, and I couldn't find any reasoning as to which one is better. If I'd read anything on the wiki about one of the options being preferred, I would have gone with that. Eventually I decided to go with external, to keep my original plugin more concise and to-the-point in what it does (and to challenge myself to make a good API for my own plugin). I only found out you do have a preference after my expansion was all done and I had to join this discord to get an account for the ecloud.

I can now also see why the preference is there (given there's already been 2 people in here with version mis-match related errors for my expansion), but again, I didn't know that beforehand.

eternal onyx
gentle vigil
#

does PlaceholderAPI has an internal parse placeholder?

#

example: %papi_parse_{player}_{placeholder}%

junior musk
#

parseother

#

/papi ecloud download ParseOther
/papi reload
%parseother_{Tanguygab}_{vault_eco_balance}%

vivid sparrow
eternal onyx
#

Where can I find an old version of the expansion?

trim mist
eternal onyx
#

Thanks Glare

strong edge
urban marsh
#

@strong edge try removing it and doing /papi ecloud download <expansion>

brazen copper
warm plover
#

Is there a placeholder that would allow me to let's say replace any 1 2 3 4 5 6 7 8 8 9 0 to ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₈ ₉ ₀?

#

Like if a value contains any of the following, get replaced by the corressponding number

#

And is there a placeholder for the last amount of damage the player hit something for?

#

I see %player_last_damage% exists, but it's for last damage input, would something like %player_last_damage_output% exist somewhere?

vivid sparrow
#

no

warm plover
#

No to which?

vivid sparrow
#

Damage

warm plover
#

Hmm alright

vivid sparrow
#

As for replacing characters, you probably have to use javascript

warm plover
#

Shoot. Don't think I could since the damage thing doesn't exist

#

I'm using DecentHolograms and they have a damage hologram, but I want to use the smaller numbers instead of the normal ones and they don't directly support that

vivid sparrow
#

Rip

#

If this hologram has placeholders for last damage given, you can try to make a js placeholder and pass that damage placeholder as argument, if it works, then just add the replace logic

warm plover
#

It has {damage}

#

I'm guessing you mean a PAPI placeholder?

vivid sparrow
#

so %javascript_scriptname_{damage}% and then inside the script access it with args[0] and replace one of the number with your character

#

It may or may not work, worth a shot

warm plover
#

I might be able to figure it out, though I don't have tons of experience with js

#

I'll see, thank you!

vivid sparrow
#

is just a chain of replace('number', 'character')

warm plover
#

Ah

vivid sparrow
#

args[0].replace().replace()...

#

Are these numbers like those "small capital letters"?

warm plover
#

Yeah

#

Typically I wouldn't use those numbers, but I found plus & minus symbols that coincide REALLY well with them

#

I just think it would look neat for the damage/regen indicators.

#

This isn't finished, but something like this right?

  return args[0].replace('[', '');
}
damageIndicator();```
vivid sparrow
#

yeah

warm plover
#

Sweet, I'll give it a try. Thanks a ton for the help

vivid sparrow
#

Np

#

Tomorrow I will look into integrating something in the string expansion if Blitz is ok with it

warm plover
#

For sure, that'd be awesome

#

The formatter expansion has a replace thingy, it's just replace EXACT string and not replace all

vivid sparrow
#

Yeah

warm plover
#

A replace all strings option could open the door to a lot of sick things

vivid sparrow
#

I think about %string_replace_characters_<configuration>_<input>% where configuration is a map defined in config

small-capitals:
  A: <replacement>```
warm plover
#

That'd be really neat

#

You're a legend, it works

#

And looks great, too!

vivid sparrow
#

Np

vivid sparrow
vivid sparrow
#

@warm plover

papi parse GabyTM %string_replaceCharacters_small-numbers_1234%
[09:58:11 INFO]: ₁₂₃₄
papi parse GabyTM %string_replaceCharacters_small-numbers_1234aaa%
[09:58:16 INFO]: ₁₂₃₄aaa```
```yaml
  string:
    replacements:
      small-numbers:
        '0': ₀
        '1': ₁
        '2': ₂
        '3': ₃
        '4': ₄
        '5': ₅
        '6': ₆
        '7': ₇
        '8': ₈
        '9': ₉```
strong edge
turbid tide
#

umm. @vivid sparrow why add presist to the String expansion? That's only needed for internal expansions

vivid sparrow
#

I totally forgot that smh

#

Let me remove it, sorry

turbid tide
#

alright

vivid sparrow
#

done

turbid tide
#

merged btw

vivid sparrow
turbid tide
#

this with the persist or without?

vivid sparrow
#

without

turbid tide
#

alright. thanks. pushing an update on the ecloud now.

vivid sparrow
#

it takes a second to build

#

oky

turbid tide
# vivid sparrow oky

how the hell do I update? is it the add version button under the Versions page?

vivid sparrow
#

yes

#

very intuitive, ik

turbid tide
#

yeah :))

warm plover
#

Awesome, thanks so much

raw grotto
#

ah hello

vivid sparrow
#

?

raw grotto
#

the plugins from ecloud aint working

feral crest
raw grotto
#

i didnt

timid sparrow
#

Does anyone know of any placeholders that display a list of all the current online players (not a count)

paper pewter
paper pewter
# raw grotto https://imgur.com/a/axrBdMU

That is a java-version error though, and I'm not sure where that one is coming from. The expansion and PlayerStats itself are both built with java 16, and that should work on 1.16.5... If you still get this error after downloading PlayerStats, let me know and I'll see if I can help

raw grotto
#

nvm i have reinstalled it, i think something was wrong with it

#

but after reinstall it worked

paper pewter
#

Perfect 🙂

elfin viper
#

How do I use CheckItem to detect nbt that I add to items using other mods xD

#

I tried the approach written above, but it didn't work very well

tough oriole
#

1

short shoal
elfin viper
mint fable
#

Send a picture of /papi parse me %checkitem_getinfo:mainhand_nbtstrings:% while holding the item @elfin viper

tender vaporBOT
mint fable
#

/papi parse me %checkitem_getinfo:mainhand%

elfin viper
#

name:Test mat:REDSTONE amt:1 data:0 lore:Test enchanted:false nbt:

#

The nbt: is empty

mint fable
#

/data get entity @s SelectedItem

#

?imgur

tender vaporBOT
mint fable
#

send picture

#

will be easier

elfin viper
#

My version is 1.12.2 xD

mint fable
#

oh my

#

well it doesn't look like it's gonna work with checkitem

elfin viper
#

Yeah, I'll just have to see what else I can do

mint fable
#

what are you trying to check? Switch:1b ?

#

checkitem will only work for int and strings

elfin viper
#

Yes, the Switch

#

ok

#

Well, it shows up when I change the type

#

Thanks for the answer. What do I do when I get it xD

mint fable
#

%checkitem_remove_nbtints:Switch=1% could remove it

#

although if you have multiple items you might want to also specify material, amount, etc.

elfin viper
#

Okay, thanks

tender vaporBOT
urban marsh
#

Whom pinged me?

strong edge
#

But the message has been moved to the paste

sacred talon
#

Hi i have an error regarding placeholder api on startup how would i go about posting it ?

drifting dragon
#

my placeholderapi in 1.19 somtimes does not start . and after reloading papi it works . also it have a problem with bungeecord placeholder extention .

cursive ermine
vivid sparrow
#

Update the server expansion

#

@turbid tide should make it version specific tbh

teal glacier
#

hellos. im creating an internal expansion for a plugin rn. i want to make it so that %pluginname_block_blocktypehere_total% returns a value from config. how can i accomplish this?

#

so something like %plugin_block_gold_block_total%

teal glacier
#

resolved. i split up the params by _ and limited to the first _ before the block name itself. returned plugin.getConfig().blahblahyouknow

paper oxide
#

why i can't install js extension?

wanton wyvern
#

Is it possible to retrieve information about other proxies on bungeecord.
Example, I am in Server B and I want to retrieve information about Server A.
I use /papi ecloud download Pinger but that doesn't give as much information.

#

👀

wanton wyvern
#

?

teal glacier
#

you'll have to create custom expansions for that

#

could modify the existing bungee exp

hearty forge
#

do placeholderAPI works in 1.19.1?

trim mist
#

Yes

covert lintel
#

is ther a placeholder that formats a number as KMBT for thousands,millions ect?

turbid tide
turbid tide
vivid sparrow
#

The server expansion

#

But anyways

turbid tide
#

for the tps stuff?

#

and only enable it on supported versions?

vivid sparrow
#

Basically, though on 1.17+ the class and method for tps should be the same judging by the code

covert lintel
tender vaporBOT
covert lintel
#

pls

drifting dragon
#

my 1.19 placeholderapi some times not start when server started
and i should reload plugin for registring extentions . and bungeecord extention not works well

#

:(

wanton wyvern
#

how do i retrieve if a particular proxy/server is whitelisted

sacred dew
#

Yo guys

#

U know a placeholder that show another team member (instead of me)?

#

His name and health

sacred dew
#

Someone can help me?

elder palm
#

ParseOther?

austere hawk
#

Hi guys,

Stupid question here: /papi parse --null %bungee_survival_new% it should show the amount of people, but it comes back with 0. On all my other servers this is working without any issues.

sacred dew
#

Yo guys, Im trying to get my team mate health and i dont know how to do it, someone can help me?

shut sundial
#

I'm currently having an issue where placeholders load on startup but fail to work in all aspects (scoreboard, tablist, chat) unless a /papi reload is sent after a restart anyone able to help me with this? also version is 2.11.2 running Purpur 1.19.2 Please ping me on reply thanks

sacred dew
#

somebody knows what placeholder i have to use to do a timer?

cloud mortar
#

Recently I added the placeholder for claims to the tab, but it isn’t syncing to how many the user actually has

sacred dew
#

somebody knows what placeholder i have to use to do a timer?

topaz dust
#

im having issue with placehodlers rn

#

Can someone take a look for a sec

topaz dust
turbid tide
#

then you can use the server_countdown placeholder

sacred dew
#

Nop

#

A timer from 0 to something else

turbid tide
#

doubt there's just an expansion for it

turbid tide
sacred dew
#

like %statistic_time_played% but not

sacred dew
turbid tide
#

I'm afraid I don't.

topaz dust
turbid tide
topaz dust
#

what?

cloud mortar
#

Recently I added the placeholder for claims to the tab, but it isn’t syncing to how many the user actually has

turbid tide
turbid tide
#

does it sync there?

sacred dew
#

thanks

sacred dew
tender vaporBOT
tender vaporBOT
sacred dew
#

this plugin havent placeholders, right?

turbid tide
#

but might be worth contacting the developer and asking for the specific feature

upper oxide
#

I am using a host that when the server is offline it shows a message "SERVER OFFLINE CONNECT SERVER AT <LINK>"

That makes the PAPI Pinger expansion get confused and say that the server is online and when trying to connect the command explodes

#

How can I solve that?

sharp jay
#

Cant really be solved @upper oxide

upper oxide
#

Oh

#

F

#

Is there any similar expansion that can check if the server is working or not?

grave escarp
#

on the git hub theres a thing that says request to add place holders where would i do that

turbid tide
verbal meadow
#

are there plugins that show the /baltop?

floral plank
#

any economy plugin

dapper orbit
#

hello, my javascript placeholders doesn't work with --null parse. Is there something i need to do to work or is it impossible?

undone holly
#

/papi parse me %oraxen_{luckperms_primary_group_name}_tag%
/papi parse me %luckperms_primary_group_name%
/papi parse me %oraxen_god_tag%

#

I have nested placeholders

swift lake
verbal meadow
#

Essentials placeholders arent showing the top baltop player (the owner which is me) but instead is showing the 2nd top (a default member)
i have the baltop exception permission set to false so i dont get excluded

indigo grail
#

you have the expansion?

indigo grail
#

"/papi reload"

#

?

#

oh no, the xpansion doen's work for that

#

XD

jaunty raven
#
[10:01:32] [placeholderapi-io-#1/INFO]: Successfully downloaded expansion Essentials [1.5.1] to file: Expansion-essentials.jar
[10:01:32] [placeholderapi-io-#1/INFO]: Make sure to type /papi reload to enable your new expansion!
[10:01:32] [placeholderapi-io-#1/INFO]: [PlaceholderAPI] Fetching available expansion information...
>papi reload
[10:01:35] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[10:01:35] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[10:01:43] [Server thread/ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?]```
#

alright so, essentials expansion doesn't want to install, this issue has never happened to me before, I recently moved to 1.19 is this the problem?

indigo grail
jaunty raven
indigo grail
#

yep

#

i have it

indigo grail
indigo grail
#

the placeholder will look like %formatter_text_substring_:5_{placeholder}%

paper pewter
lost glacier
#

Finding a Java dev who can create Minecraft plugins

#

We will pay for 1 plugin

#

Mean if you make 20 plugin we will pay you for all

lost glacier
#

@short shoal

#

Bro this is server coders needed

#

I am finding a coder

short shoal
tardy crow
#

oh nvm i just updated to latest and it worked in 1.8.8

high swift
turbid tide
#

so you'll either have to upgrade your server version or downgrade your PAPI version. Either that or you can use the section symbols

#

instead

austere hawk
#

How do I make a KDR placeholder?

#

Is there already something that can do this without installing an extra plugin

indigo grail
#

hmm yea

#

use the papi expansion "statistic"
the placeholders are:

Kills= %statistic_player_kills% Deaths= %statistic_deaths%

austere hawk
#

kill death ratio

indigo grail
#

yea

#

just use math expansion

austere hawk
#

dividing it doesn't work because if the player has no kills or death, it just errors out

indigo grail
#

hmmm

indigo grail
#

i have no idia, just using PAPI idk if it posibble

#

this must be possible, pls!!! doit possible!!! xD

%math_{changeoutput_equals_input:{statistic_player_kills}_matcher:0_ifmatch:1_else:{statistic_player_kills}}/{changeoutput_equals_input:{statistic_deaths}_matcher:0_ifmatch:1_else:{statistic_deaths}}%

indigo grail
#

but i can't help, i don't know javascrip :3

primal steppe
#

Whats an easy way i can use papi to store player meta, so i could execute a command like /setplayermeta {string} so when i parse %examplemeta% as the user it returns {string}

#

is there something like an extension i can use to make it really simple to set up?

turbid tide
turbid tide
#

You also update the data using placeholders not commands.

primal steppe
#

Okay tyy!

austere hawk
turbid tide
# austere hawk thanks so I just use %javascript_calculate% as the holder?

you first have to do couple more things. go to plugins/PlaceholderAPI/javascript_placeholders.yml and add yml calculate: file: calculate.js then do a reload (/papi reload) and go to plugins/PlaceholderAPI/javascripts/calculate.js and add the code I gave you above in there. After that you do another /papi reload and you'll be able to use %javascript_calculate%

indigo grail
austere hawk
turbid tide
#

if you have 5 player kills and 2 mob kills

#

that will say you have 52 kills in total

turbid tide
wicked knoll
#

How I can check if a bungeecord proxy server is online?

I was using Pinger but after I setup firewall for the ports to be secured it now shows offline even if they are online.

cosmic prairie
cosmic prairie
#

did that

#

it all works APART FROM

#

it seems to be the essentials expansion that is causing it to stop working?

#

i delete them all, reload, then add them all back with /papi ecloud download player, vault, server, etc which all worked then it all broke again when i added the essentials one

junior musk
#

make sure you're using the latest version of EssentialsX

deep hollow
#
    combo = ((tokens * 1000000)/40).toFixed(0);    
    return (tokens + combo).toFixed(0);
    }```
#

sorry my ignorance, but how can I sum two numbers?

#

it's returning that

junior musk
#

show the entire script

#

I think you mean combo here

deep hollow
#

Combo is same tokens amount

#

but I want to multiply it x2 depending on their combo level

#

so if they've combo level 50, it will give a half of tokens amount

#

if they've 100 combo level, it will give the same combo amount + tokens

junior musk
#

remove the toFixed here

junior musk
#

instead of multiplying combo and assigning to combo

#
       combo = ((tokens * 1000000)/40).toFixed(0);    
->     combo = ((combo * 1000000)/40)
deep hollow
#

oh yeah you're right

#

thanks @junior musk!

#

Why is showing 10001000 instead of 2000?

#
    }```
junior musk
#

show the new script

deep hollow
#

can't get that sorry to bother you

junior musk
#

you didn't parseInt

deep hollow
#

on var?

junior musk
#

yeah

#

therefor, it tries to add the 2 strings together

deep hollow
#

ah it works

#

doing parseint on return

#

instead of on var

junior musk
#

could work

#

though I'm not sure if strings would work correctly with this line combo = (gems / 100) * 100;

#

but if it works then all good

junior musk
#

👍

deep hollow
#

worked doing parseint on var, thanks again!

deep hollow
#

Hey again, anyone knows how to avoid printing scientific notation on javascript?

#
    var charity = parseInt("%tokens_Charity_level%");
        
    return (30000000000000000000 * charity);
    
}
charity();```
#

this one shows 1.5e+21

#

(charity can be only 1-100)

junior musk
deep hollow
#

prison op economy

junior musk
#

yeah but like, why wouldn't you want it to show as +e?

#

it's so long

#

not even the chat could have it on one line

deep hollow
#

yeah but I use numberSuffix to make it like 3S

junior musk
#

alright

#

wait actually

#

I think it should work even with the scientific notation

#

well, idk how your number suffix is done

deep hollow
#

for essentials you mean?

#

i'm using community script number suffix

#

javascript

junior musk
#

and does it not work with scientific notations?

deep hollow
#

oh wait I think it works

#

but I can't use vault to give player's money

junior musk
#

yeah, as I thought

junior musk
#

right

#

wait did you try?

#

maybe it could work even though I doubt it x)

deep hollow
#

yeah I tried it xd

#

using /eco give 1.5E21

#

it gives you 1.52$

junior musk
#

what about 1.5e+21?

deep hollow
#

yeah same

junior musk
#

ah

#

welp

#

apparently it supports k and stuff

#

wait nvm

#

it got declined

deep hollow
#

yeah

#

they didnt accept it

rocky pier
#

How can I reset the data of a PlaceHolder to 0?

turbid tide
#

for example, the statistic expansion just takes data offered by spigot from world/stats/ and world/playerdata

#

there's plugins out there that store data inside a mysql database for example and have placeholders that display that data

#

you'd have to remove the data from the database

uneven eagle
wicked knoll
sterile lantern
#

Whats this eror?

#

anyone help

turbid tide
deep hollow
turbid tide
#

that is supposed to do exactly that

#

well help you do it

deep hollow
#

there isn't a method to avoid using this stackoverflow method right?

turbid tide
deep hollow
#

perf ty!

turbid tide
#
function charity() {
    var charity = parseInt("%tokens_Charity_level%");
        
    return (30000000000000000000 * charity).toLocaleString('fullwide', {useGrouping:false});
    
}
charity();```
#

try this @deep hollow

#

can't confirm it will work but worth a try

turbid tide
#

so if the number is 0.586084736227728377283728272309128120398 it will become 0.5860847362277284

deep hollow
#

yeah it shows 1.5e+21 instead of 1.5E21

#

but not the whole number

turbid tide
#

hmmm

#

are you sure you reloaded?

deep hollow
#

yeah with papi reload

junior musk
turbid tide
#

it wasn't rounding just the decimals

#

it is rounding any number bigger than 16 digits

#

1241552951346262351532583285.25 becomes 1241552951346262300000000000