#placeholder-api

1 messages ยท Page 23 of 1

tender vaporBOT
#
Hey!

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

elder gale
#

[14:34:01] [Craft Scheduler Thread - 7/INFO]: [VoidGen] VoidGen v.2.2.1 is available here: https://www.spigotmc.org/resources/25391/
[14:34:30] [ForkJoinPool.commonPool-worker-3/WARN]: [PlaceholderAPI] failed to post dump details
java.util.concurrent.CompletionException: java.net.ConnectException: Connection timed out
at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:113) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]

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.net.ConnectException: Connection timed out
at sun.nio.ch.Net.connect0(Native Method) ~[?:?]
at sun.nio.ch.Net.connect(Net.java:579) ~[?:?]
at sun.nio.ch.Net.connect(Net.java:568) ~[?:?]
at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?]
at java.net.Socket.connect(Socket.java:633) ~[?:?]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304) ~[?:?]
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174) ~[?:?]
at sun.net.NetworkClient.doConnect(NetworkClient.java:183) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:531) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:636) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380) ~[?:?]```
#
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179) ~[?:?]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142) ~[?:?]
at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:102) ~[?:?]
... 7 more```
#

in the consol

elder gale
#

this command work

tender vaporBOT
elder gale
#

but i don't take %essentials_baltop_player_1%

#

for to collect the first player with the most money

vivid sparrow
vivid sparrow
elder gale
#

work just this variable doesnt work: %essentials_baltop_balance_<rank>%

vivid sparrow
#

try %essentials_baltop_balance_fixed_<rank>%

elder gale
#

I was just told that essentials would have been infected after June 6th

#

by a virus

vivid sparrow
#

hmm?

elder gale
#

I don't know I asked for help elsewhere someone told me that since June 6 he had been infected and was no longer working very well

#

I wanted to put the latest essentialsX version but it doesn't work, do you have one that works?

#

in fact it's good essentials works but for the economy part it tells me none while the /eco works

pulsar willow
#

treid with spaces

#

around the /

#

still dosent work ๐Ÿ˜ฆ

junior musk
#

did you download the math and statistic expansions?

junior musk
#

?paste

tender vaporBOT
#
FAQ Answer:

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

elder gale
#

no the plugin now works surely a server error. but when I do /essentials version it puts me economy: none

#

i have essentialsX and essentialsXspawn

pulsar willow
#

Stats work

#

and math works with 1+2

junior musk
#

in which scoreboard plugin are you using the placeholders?

pulsar willow
#

All other placeholders work

#

Still dosent work when parsing

#

with papi

junior musk
#

and without the spaces?

#

and do you get a message in console when you run the parse command?

#

what's your Math version? (/papi info math)

elder gale
#

for essentials?

#

1.5.2

junior musk
#

was talking to SoNot

elder gale
#

oh sorry

junior musk
#

dw

#

as for Essentials, I'm also getting Economy Layer: None

#

but it seems to work fine

#

what doesn't work?

#

the baltop placeholders?

elder gale
#

yes

pulsar willow
#

[PlaceholderAPI] [math] Cause: '2 / 0' is not a valid Math expression.

elder gale
#

2 / 0 seriously?

pulsar willow
#

im sorry that my stats give that

#

flipped

#

still dosent work

#
[13:33:32 WARN]: [PlaceholderAPI] [math] Cause:       '2 / 0' is not a valid Math expression.```
#

Surely should still give output????

#

instead of just nto working

junior musk
#

nope, anything divided by 0 returns an error

#

can be fixed though

pulsar willow
#

how

junior musk
#

2sec

pulsar willow
#

alr nw

junior musk
#

just need to boot the game to try it

pulsar willow
#

I can try if you want

elder gale
junior musk
#

download Utils and ChangeOutput
@pulsar willow %utils_parse_math_{statistic_deaths}/{changeoutput_equals_input:{statistic_player_kills}_matcher:0_ifmatch:1_else:{statistic_player_kills}}%

junior musk
#

baltop placeholders seem to only work once you do /baltop at least once

pulsar willow
junior musk
#

math_2 _...

pulsar willow
#

cheers

junior musk
#

o_O /baltop doesn't even work anymore for me

#

welp, I'm not sure how Essentials' baltop system works, it's been a while since I've used it and it doesn't seem to work properly for me

#

I've also seen people having issues with it in the past, whether it was because it didn't support offline players or it didn't update, idk why but I don't have any other idea as to how to make it work

elder gale
#

/baltop and /balance show me different things it doesn't seem to update. vault and essentials work well together, don't they?

junior musk
#

there isn't one

#

do you need something?

junior musk
#

/baltop didn't update, thought a restart could fix it but now /baltop just doesn't work at all lol, it says Unknown chapter. instead

pulsar willow
#

How could I make it so this only ever shows 2 of the variables so either 1w 2d or 5d 4h or 7h 35m etc

elder gale
#

ok

elder gale
#

but %essentials_baltop_player_1% don't work. I need to retrieve the different players in order to do a manual ranking

junior musk
junior musk
pulsar willow
junior musk
#

I can't help, sorry

junior musk
#

it's mostly focused on parsing placeholders with nested placeholders & colors

elder gale
junior musk
#

if %vault_eco_balance% works correctly, you could use a plugin like ajLeaderboards

elder gale
#

Okay

#

but suddenly we can no longer make a menu manually with the placeholders? maybe it should be postponed for it to be put back, right?

junior musk
#

uh?

#

a menu for what?

elder gale
#

we can no longer recover for example the second richest player on the server with the placeholders, right?

junior musk
#

you can

#

with the ajLeaderboards placeholders

#

that's the main feature of the plugin

elder gale
#

a ranking menu of the richest players

junior musk
#

yeah

elder gale
#

Ok i go look this plugin

#

but it's a shame it requires going through another plugin before we could simply do it ourselves

delicate lily
#

Hello, I have a minimessage can I somehow put it in onPlaceholderRequest? so that the formatting is saved

warm plover
#

Hey there, I have a placeholder to show the players max durability in a math equation, I was wondering if it was possible to remove trailing 0's from this placeholder

#

%math_2:_{mmoitems_durability_max}/4%

#

For example, the max durability would show as 100.00, is it possible to just show 100?

junior musk
#

0

warm plover
#

Would it be possible for it to remove trailing 0s but not decimals? The placeholder will show a different number for various items

junior musk
#

I have no idea ๐Ÿ˜ญ

#

I've been looking for that but still have no idea

plush dove
#

Trying to make a javascript for loop

for (int i = 0; i < 4; i++) {
  return "Hello";
}
}

woodSelection();```
#

Gives Script error (check console)

jolly crystal
#

You provide no "word"

#

woodSelection("word")

twin bay
#

Hello, is there any javascript code to replace a custom character by an image using Papi javascript?

#

I tried one but its not working:

registerPlaceholder('character_image', (player) => {
  const caractereSpecial = player.replace(/&/g, 'ยง');
  switch (caractereSpecial) {
    case 'เฎน':
      return '****\textures\UI\ranks\owner.png';
    case 'โ€ข':
      return '****\textures\UI\icons\bullet.png';
    default:
      return '';
  }
});
#

As an alternative to Oraxen / ItemsAdder *

plush dove
#

Ok so I was able to get my thing to work:

for (i = 0; i < args[0]; i++) {
  if (args[1] == args[2+i]) {
      return args[3+i];
  }
}
return args[1] + args[2+i] + args[3+i];
}

inputOutput();```
But the issue is that I parse `%javascript_inputOutput_4,3,1,a,2,b,3,c%`, where if args[1] (3 in this case) equals 1, it gives a, if it equals 2, it gives b, and if it equals 3, which is does, it gives c. It should give c, but it doesn't. If I put 2 or 1 in for args[1], it works fine, but whenever it's on the last case it doesn't. Any idea?
#

ok I asked ChatGPT and it helped me out ๐Ÿ˜‚

#

nvm it made my problem worse

plush dove
#

I got it to work!

rare bramble
#

does somone know how to get these placeholders working?

#

can i download them somwhere? they arent in the ecloud

junior musk
#

you probably just need the plugin installed

rare bramble
#

i have

junior musk
#

which placeholder are you using and where?

rare bramble
#

{corearena_player_phase}
Scoreboard.

Also tried
%corearena_player_phase%

junior musk
#

does it work in /papi parse me %placeholder% ?

rare bramble
#

nothing

junior musk
#

what does it show in chat?

rare bramble
#

%corearena_player_phase% get this back

junior musk
#

does corearena show in /papi list?

rare bramble
#

yes

junior musk
#

try to reach out to the developer then

#

maybe they didn't list the placeholders correctly

rare bramble
#

oke

#

i did connect them but they are slow ๐Ÿ™‚

junior musk
#

can't really do anything since the plugin is paid

#

I can't check the code to make sure which placeholders work

rare bramble
#

what you need?

junior musk
#

I would need the plugin to be open-source but it's not so you'll have to wait for the dev to answer

rare bramble
#

oke

twin bay
#

Guys

#

I don't know why my PAPI javascripts are not loading, got no errors

#

I try to transform a unicode ingame to a text in console

ionic lodge
#

@balmy marten could you please verify Enchantment papi expansions on eCloud site? Thanks.

tender vaporBOT
ionic lodge
#

how does this rule work? not allowed to ping staff yet, eCooud site says "ask a staff member in the Discord"??

stone edge
#

funnycube said it was ok to ping him for important things

jolly crystal
#

Ask... not ping. But ^^^

ionic lodge
# jolly crystal Ask... not ping. But ^^^

ask without ping?? how does it work when the instruction was to "ask a staff" ? I hope "staff members" have to "search their unpinned name in questions in this channel. It sounds very impractical rule and instruction.

balmy marten
#

don't stress, I've seen your request

jolly crystal
balmy marten
ionic lodge
balmy marten
ionic lodge
tender vaporBOT
ionic lodge
#

but i will put them on Github release page.

fossil tusk
#

Is there a placeholder or way to determine whether it is day or night in the player world?

deep hollow
#

Hey @junior musk sorry to bother you again ๐Ÿ™„

#

%utils_parse_changeoutput_equals_input:Vacio_matcher:{servervariables_value_skin_active}_ifmatch:&e_else:&7(Nivel {servervariables_value_skin_{servervariables_value_skin_active}_level}&7)%

#

but this placeholder is parsing that for some people, do you know why?

#

it was working well with nested

junior musk
#

what version of Utils?

deep hollow
#

Utils-Expansion-1.0.2

junior musk
#

weird

#

not on pc atm, I'll try later

deep hollow
#

I think the issue is here {servervariables_value_skin_{servervariables_value_skin_active}_level}, like it doesn't parse first the placeholder from inside

deep hollow
junior musk
#

just to make sure it loaded the right version

deep hollow
#

sure, here you are

junior musk
#

should be fine

#

I'll test then

deep hollow
junior musk
#

@deep hollow /papi parse me %servervariables_value_skin_active% | %servervariables_value_skin_Vacio_level%

junior musk
#

it worked fine for me (I used other placeholders because I didn't have servervariables)

deep hollow
#

yeah that's weird

junior musk
deep hollow
#

but the thing is that if servervariables_value_skin_active returns Vacio (Empty), it doesn't have to parse level placeholder

junior musk
#

then why do you use the level placeholder?

timid tapir
#

hmmm lol

junior musk
#

if you don't need it, don't use it xD

deep hollow
#

because if the skin isn't Vacio, it should show the level of that active skin

junior musk
#

use the level placeholder with your active skin in the parse cmd

#

wait you did

#

it's Vacio

#

so the placeholder is broken

#

your active skin is Vacio, you tried the level placeholder with Vacio (your active skin) and it didn't work

#

so it's the level placeholder that's broken

deep hollow
junior musk
#

okay

#

uh

deep hollow
#

it worked fine with nested so that's why I think it's weird

junior musk
#

%utils_parse_changeoutput_equals_input:Vacio_matcher:{servervariables_value_skin_active}_ifmatch:&e_else:&7(Nivel \{servervariables_value_skin_{servervariables_value_skin_active}_level}&7)%

#

wait wtf

#

the input is Vacio and the matcher is {server_variables_value_skin_active} ?

#

well, it doesn't really change much

#

usually, people do the opposite but alright xD

deep hollow
junior musk
#

I mean, input should be the placeholder and matcher should be what it's supposed to return

deep hollow
junior musk
#

but it doesn't matter

#

try this placeholder %utils_parse_changeoutput_equals_input:{servervariables_value_skin_active}_matcher:Vacio_ifmatch:&e_else:&7(Nivel \{servervariables_value_skin_{servervariables_value_skin_active}_level}&7)%

deep hollow
#

Sure will try this one

#

what does this?

junior musk
#

prevents Utils from parsing the level placeholder

#

so ChangeOutput will parse it only when necessary

deep hollow
#

okay okay

#

thanks! ๐Ÿ˜„

crisp crystal
#

If %purpur_player_afk% gives "false". Is there anyway to make the placeholder don't show anything?

#

And if it gives true- it should display &7&lAFK

#

So, to make it more clear, %purpur_player_afk% gives the outcome either true or false.

#

I want to change to if it gives false, it makes the placeholder blank

#

if true, it displays &7&lAFK

crisp crystal
#

ty

crisp crystal
#

%changeoutput_<options>_input:<input>_matcher:<matcher>_ifmatch:<output-if-matched>_else:<output-if-not-matched>%
This is the placeholder I was looking for!

Is this correct setup? (Check two messages up)
%changeoutput_contains_input:contains_matcher:{purpur_player_afk}_ifmatch:_else:&7&lAFK%

mint fable
#

your input should be {purpur_player_afk}

#

also, I would prboably use equals instead of contains

#

right now you're checking if false contains false

#

which is always true

crisp crystal
#

Okay

#

I updated the message

mint fable
#

ya... not quite right

#

your input should be {purpur_player_afk}
also, I would prboably use equals instead of contains

#

change the matcher back and fix the input

crisp crystal
#

%changeoutput_equals_input:{purpur_player_afk}_matcher:false_ifmatch:_else:&7&lAFK%

#

Like this?

mint fable
#

ya

crisp crystal
#

Yep it seems to work perfectly!

#

Big thanks!

mint fable
#

np

pale storm
#

Hello ! I was wondering if a placeholder exists, somewhere for a player's head, like the placeholder shows the player's head skins ?
(Not the item player head, but like a 2D texture of it)

plush dove
#

is there a placeholder that gets the item of a name and its color codes

plush dove
#

DM keeps showing [DeluxeMenus]: Invalid meta action! Make sure you have the right syntax. even though it's fine, and it works as well

wheat kayak
#

hello

#

i us %checkitem_amount_HAY_BLOCK,checkitem_mat:HAY_BLOCK%

#

= 256 of 128

#

some players, will sometimes skip the check, in the inventory do not have this item but still active

hasty iris
#

I have 2 servers a and b. How can I show the placeholder "%crazyenvoys_cooldown%" on server a on server b? so the remaining time of the event will also appear on server b

violet void
lean nymph
#

http://pdom.icu/url/3merm

Is there a placeholder that makes text move like a scroll/ticker? (To ensure players can see the whole prefix & name when it's too long inside TAB?)

fleet pilot
#

..

vivid sparrow
limpid oxide
#

Does anyone know how to get Statistics palceholder api
In diffrent world by Multiverse plugin

tidal saffron
#

Hello guys i have a problem can any one help me?

#

ive want to add the "money" to the scoreboard for this ive added the Vault expension but it still says just the PlaceHolder name on the score board

austere hawk
#

i need help with something

#

my leaderboards isnt working

#

it says bdne

#

but the placeholder are all correct

#

Nvm someone already dmed me

pale storm
#

So I'm using a plugin for server managment that allows me to reload plugins.
It is helpfull for me when I update my plugins or corrects bugs, but my placeholders aren't updated when I reload my plugin,
I got a log saying: [PlaceholderAPI] Failed to load expansion chasetag. Identifier is already in use.

junior musk
#

that's because PAPI changed something in 2.11.3, either ask the plugin's dev to unregister his PAPI expansion when disabling or just restart the server instead

pale storm
#

How do I unregister my expansion onDisable() ?

#

nvm

#

.unregister()

junior musk
#

when you initialize the expansion class, save it in a variable and call unregister() on it

#

yeah

limpid oxide
#

Does anyone know how to get Statistics palceholder api
In diffrent world by Multiverse plugin

Example:

World_nether = 12 kills
survival: 4 kills
Kitpvp: 65 kills

golden shale
#

%math_1000-{player_balance}% how would this look correct

junior musk
#

vault_eco_balance instead of player_balance

golden shale
#

dope thanks

#

how to round the number?

#

the rounded vault placeholder

junior musk
#

math_0_...

golden shale
#

oh

limpid oxide
#

Does anyone know how to get **Statistics **placeholder api
In diffrent worlds by **Multiverse **plugin?

Example:

World_nether = 12 kills
survival: 4 kills
Kitpvp: 65 kills

Pls someone tell me I have been waiting for 18 hours for help

junior musk
#

not possible

#

at least with the Statistic expansion it's not

#

you'd need a plugin that keeps track of player kills per world

runic birch
#

how can i delete data from Statistic? I want to clear/delete the kills etc

junior musk
#

go in your world folder, playerdata folder, and delete the files of your players

#

or open them with a probram like UniversalMC that supports .dat files and delete the specific statistics

runic birch
#

i deleted whole playerdata folder and its still there

junior musk
#

you have to delete it while the server is off

#

otherwise, everything will come back when the server stops and save all data

runic birch
#

oh okay

runic birch
junior musk
#

you removed the files from the main world folder right?

runic birch
#

yes

junior musk
#

idk then

runic birch
#

:/ k ty for help

junior musk
#

sorry

runic birch
#

np <3

pale storm
#

Is there any ways, or any existing placeholders to get the 2D player head image?

junior musk
#

placeholders can only return text

#

unless you use a plugin like ItemsAdder that uses resource packs to add images

pale storm
#

What should I do next?

junior musk
#

I'm not sure, I've never used ItemsAdder before, but they have a wiki with quite a lot of stuff that you could check

#

or you could also ask on their own Discord server

pale storm
#

Yeah I've read this wiki thousand of times xD
Never seen somethings talking about player heads

junior musk
#

right

#

:/

#

it's listed on the wiki

#

Barry's mad

pale storm
junior musk
#

I just said it's listed on the wiki ๐Ÿฅฒ

#

oh wait

pale storm
#

OH WOW

#

LIKE

#

ITS

junior musk
#

uh

pale storm
#

Ok ok sorry

#

perfect

junior musk
#

idk if it supports dynamic player heads though

#

oh it says it does

#

well then maybe yeah

#

idk what's the placeholder though

#

probably the usual %img_<imageName>%

#

but idk what images you need

pale storm
#

The head of a certain player

#

like for e.g. %img_<player_name>%

junior musk
#

it was made by the same dev that made ItemsAdder so you could try to ask on their Discord server anyways

pale storm
#

I'll try, thanks you for help!!

pale storm
junior musk
#

they use them in books though

#

so I thought they had a placeholder to use it elsewhere as well

pale storm
#

I think that's the /e from itemsadder but not sure

#

I'll try to dig deeper

#

I think its inventory only

โœ…2D head in inventory
โœ…2x2 2D head in inventory
sharp bloom
#

r u trying to add it as an item in a menu?

#

if so thats what i have @pale storm

material: 'head-%player_name%'
model_data: 10001
pale storm
#

No no, I don't want a head item, I'm trying to have it as an image, like to be displayed as same as emojis

sharp bloom
#

ohhhhh

#

like in the chat or smth?

pale storm
#

exactly

#

Chat, Titles, etc...

#

Did you found a way ?

warm plover
earnest topaz
#

can someone help me?

austere hawk
ocean beacon
#

how to use tempdata

tawdry shuttle
#

okay I may be dumb, but how the heck do I use the playerlist hook to get a list of banned players

#

trying to get the list so i can use it in dmenu

warm plover
#

Is there any placeholder for distance from x, y, z

sharp bloom
#

%math_0_SQRT((({player_x}+101)^2)+(({player_y}-155)^2)+(({player_z}+31)^2))%m thats what i have for example

#

when the location is negative use + and when its positive use -

warm plover
#

gosh I hated Pythagorean theorem

sharp bloom
#

m2 bestiee

warm plover
#

Insanely impressive though, thanks!

#

Mind if I borrow that ๐Ÿฅบ

sharp bloom
#

ye use it i dont mind

#

i ve used it for quests

#

its a solid 10

warm plover
#

love it

sharp bloom
#

it makes it very easy for players to navigate

#

cause i have it on the bossbar

warm plover
#

That's where I'm going to use it too

#

I can't believe how well that works I'm so excited to use it lol

#

Tysm

sharp bloom
ocean beacon
#

๐Ÿ˜„

merry basalt
#

what is the difference between %statistic_hours_played% and %statistic_time_played:hours% i have a scoreboard gui for each user and it seems to be resetting their total time played every 24 hours and i currently have the scoreboard set to display %statistic_time_played:hours%

mint fable
#

time_played:hours is supposed to be used with time_played:weeks and so on

#

to show like a 7w 5d 23h 27m 10s sort of format @merry basalt

merry basalt
#

ah okay! so how do i prevent the scoreboard from resetting the hours played? its the only placeholder resetting

#

heres how it set up^

mint fable
#

use the other placeholder

#

%statistic_hours_played%

merry basalt
#

thank you!

regal yacht
#

how to use papi variable in papi variable? how to nested

wild tree
#

hello everyone, I have a problem with the plugin at 1.20, yesterday it worked fine, but today it stopped working and gives errors if they are needed, then I can throw them off

balmy marten
#

It's most likely an expansion rather than placeholderapi itself

#

check the logs to see what's causing it

wild tree
#

here's what it says in my console

#

[18:17:18 ERROR]: Unable to load plugin plugins/PlaceholderAPI-2.11.3.jar
com.velocitypowered.api.plugin.InvalidPluginException: The plugin file PlaceholderAPI-2.11.3.jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.getSerializedPluginInfo(JavaPluginLoader.java:154) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.loadCandidate(JavaPluginLoader.java:64) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:96) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:345) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:227) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.Velocity.main(Velocity.java:69) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]

#

but on Velocity it worked fine yesterday

junior musk
junior musk
#

you can only use it on Spigot

wild tree
#

he died and how did he work for me then

junior musk
#

I have no idea but PAPI has never supported anything other than Spigot

#

even if you got PAPI to run on Velocity, it would be pointless since no Velocity plugin would hook into it

wild tree
#

well, how did he also work with the TAB plugin for me

#

I can even throw a screen that it worked

junior musk
#

that's different, TAB has a bridge plugin that you install on Spigot to retrieve PAPI placeholders and send them to the main plugin on Velocity

limpid oxide
junior musk
#

I don't know any

pulsar willow
junior musk
#

you can switch the placeholders

#

change statistic_deaths by statistic_player_kills and vice versa

ocean beacon
#

how can i input material id have _ as args[0] in javascript expanasion ?
like oak_sapling

#

maybe i should use args[0] + "_" + args[1]

junior musk
#

just use _ in the Javascript placeholder

#

arguments in JS are separated by , and not _

boreal peak
celest heath
#

Weird question but does anyone know of a placeholder that can pull a string out of another placeholder? For example if a placeholder gives a list <name>, <name>, <name> is there a placeholder that can sorta and pull each one of those out? So: %placeholder_<first name>%, etc, etc

brittle cave
#

I'm having an issue with PAPI. It says my expansion is registered yet none of the placeholders are working. I've double checked everything is spelt correctly yet still nothing. My expansion shows in /papi info too so I am very confused

mint fable
#

can you share your class and how you're testing the placeholder?

#

I would recommend using /papi parse me %identifier_placeholder% to test them

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

brittle cave
#

I am trying to test it with Tab but still no luck

mint fable
#

your identifier can not contain _

brittle cave
#

ah

#

ok

#

that would explain it then

brittle cave
#

๐Ÿ‘

mint fable
brittle cave
#

ah ok

stray fable
#

Hi

#

i have a error

#

mclogs

#

i am use PandaSpigot fork 1.8.8

plush dove
#

How can I get the material in my mainhand only if it's not named?

#

so checkitem getinfo mat combined with strict

#

tried /papi parse me %checkitem_getinfo:mainhand_strict,mat:%

#

but that returns mat:BEEF for some reason

#

and it still returns that if I rename the beef

mint fable
#

you'd have to use changeoutput or something

#

%checkitem_getinfo:mainhand_mat:% will return the mat no matter what

austere hawk
#

Good afternoon, I need help with a problem, when I start the server it keeps loading, this is solved by deleting the expansions_name.jar, from what I could see in the console it keeps analyzing these files. I left it for a whole afternoon to verify that it was not some time

#

Server Magma 1.12.2

#

[18:50:18] [Server thread/INFO] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Placeholder expansion registration initializing...

mint fable
#

Did you have an expansion named expansions_name.jar?

#

@austere hawk

austere hawk
mint fable
#

Which expansion was it

#

Or did you just delete them all

austere hawk
#

I have 3 vault, player and server

mint fable
#

And it gets stuck loading with those 3?

austere hawk
#

I don't know exactly, I tried deleting 1 by 1

mint fable
#

English only please and thank you

austere hawk
#

sorry my bad xd

mint fable
#

Does your server load with those 3 expansions?

austere hawk
#

it was out of habit

mint fable
#

Or is it getting stuck with those 3?

austere hawk
#

When I start it and download the expansions it works fine, then when I want to reboot it doesn't load unless I remove all the expansions

#

there is no one in particular that causes it

mint fable
#

Hmm, can you send a log and a dump?

tender vaporBOT
#
FAQ Answer:

PAPI Dump
To generate a PAPI dump, execute the command /papi dump. Then you can copy the link by clicking on it in chat and selecting the COPY LINK button.

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

austere hawk
#

won't let me send files

#

?paste

tender vaporBOT
#
FAQ Answer:

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

austere hawk
#

I think that's what you asked me, sorry for taking so long, it's complicated.

mint fable
#

also, I found something odd in finaleconomy

#

the way it registers the expansion is... not quite right anymore

#

i wonder if deleting that would fix anything

austere hawk
mint fable
#

hmm

mint fable
austere hawk
#

no

#

the console crashes, which won't let me type.

mint fable
#

can you delete the expansions, start the server, download them, reload, stop server, send log?

#

it is also possible using 2.11.2 fixes the issue

austere hawk
#

okay

lone ferry
#

What happened to the Teams expansion? I can't install it anymore

[03:17:46 INFO]: Failed to find an expansion named: teams

#

skript expansion is also gone

#

is there a reason?

soft ocean
#

does papi support 1.20.1?

#

or is there a dev build or like what version of papi support 1.20.1

vivid sparrow
#

Update your expansions, the plugin works fine.

sudden kindle
#

Hey I'm trying to register my expansion for my plugin but I can't get it working, I followed all the steps on the wiki but I'm still just getting "0 placeholder hook(s) registered!"

mint fable
mint fable
#

?paste

tender vaporBOT
#
FAQ Answer:

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

sudden kindle
#

aw man discord didnt do funny mardown things

mint fable
#

If you need an online player I would use onPlaceholderRequest FYI

#

onPlaceholderRequest**

sudden kindle
#

mkay

mint fable
#

You never check if the player is valid or not, just a tip

#

Your version returns โ€œvoidlevelingโ€?

#

Donโ€™t think itโ€™s an issue, but not accurate

sudden kindle
#

oh right i just copy pasted the other one lol

mint fable
#

Hmm, do you have placeholderapi as a soft depend?

sudden kindle
#

yep

sudden kindle
mint fable
#

Can you send a startuplog over

#

?startuplog

tender vaporBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

sudden kindle
#

sure

mint fable
sudden kindle
#

maybe, im not really sure lol

mint fable
#

If you use onPlaceholderRequest, the default onRequest method will only pass online players through

#

Cut it off early

#

I gotta hop in the shower might be able to take a look at the log and stuff before work, but no guarantee

sudden kindle
#

alright ๐Ÿ‘

mint fable
#

Although having the info here will be helpful for others too

sudden kindle
#

doesn't seem like theres anything too interesting in there tbh

tender vaporBOT
#
Hey!

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

mint fable
#
        if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            // <-------
            new PlaceholderHook(this).register();
        }
sudden kindle
#

sure

#

[15:35:36 INFO]: VoidLeveling has been enabled!
[15:35:36 INFO]: PlaceholderAPI found!

mint fable
#

/papi dump

sudden kindle
#

oh wait hold on

mint fable
#

/papi parse me %void_level%

sudden kindle
#

what the hell

#

it suddenly started working

mint fable
#

o

sudden kindle
#

without me doing anything

mint fable
#

same papi version and all?

sudden kindle
#

yeah

mint fable
#

right i see

#

odd

sudden kindle
#

i would send a screenshot but i cant embed lol

mint fable
#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

sudden kindle
mint fable
#

did you change the version by chance?

sudden kindle
#

i dont think so

mint fable
#

hmm

sudden kindle
#

oh wait

#

yeah i did

mint fable
#

hmm, interesting to see if that's the case

#

because versions could also be like 1.5b-273dc

#

๐Ÿคทโ€โ™‚๏ธ

#

if it continues to work, then great ๐Ÿ˜„

sudden kindle
#

huh thats kinda weird

#

i changed it from "voidleveling" to "1.0"

mint fable
#

right

#

@lone ferry try papi 2.11.2 I think that's what i've seen others say when this bug is encountered

#

@austere hawk Same goes for you I would suggest.

If you can/want: send a startuplog where you have the expansions already in the directory, turn on the debug: true in the papi config, start server then stop it(might not be able to since it gets stuck), send log

soft ocean
tender vaporBOT
soft ocean
#

opes sorry

teal spire
# tender vapor

I might be the only blind, but where is the rules channel or message? ๐Ÿ’€

soft ocean
#

so any1 knows how do i update the expansions to papi?

plush dove
#

Is there a way to get the name of an item, hex color and color codes and all

#

like it'd say &6Example

#

rather than color code it

tender vaporBOT
tender vaporBOT
#
๐Ÿ“‹ Your paste: possiblycryptic
https://paste.helpch.at/ogiqizodum

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

wet minnow
#

how do i use placeholders in decentholograms? it says only to use numerical and alphabetical characters

mint fable
mint fable
#

what are you trying

mint fable
#

hmmm

wet minnow
mint fable
#

usually identifiers are always lowercase

#

the identifier is level not bskyblock?

#

ah I see....

wet minnow
#

No idea, that's what it says on the placeholders api website thing

mint fable
#

try level instead of Level

#

idk why they did that

austere hawk
#

Yo, how would I get/view all the placeholders of a plugin? It's not listed on their overview page

#

I would at least like to be able to use the player extension

wet minnow
#

I'm trying to use placeholders with deluxeholograms to show top islands for skyblock however none of them work and just return the placeholder in the %'s

I'm trying to use these placeholders:
%Level_bskyblock_topvalue#rank#% Island level of the #rank#-th island in the Top 10 1.9.0
%Level_bskyblock_topname#rank#% Island owner's name of the #rank#-th island in the Top 10

junior musk
#

send a screenshot

#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

junior musk
#

also show the output in chat of /papi parse me %placeholder%

unkempt anvil
#

Anyone think they could help me with ItemsAdder and adding Placeholders to the items from it?

junior musk
unkempt anvil
#

Oh, so they dont have it?

#

Do you know if Oraxen has Papi support?

junior musk
#

idk, you said you needed it so I assumed it doesn't work

unkempt anvil
#

Why cant i send pictures bruh

tender vaporBOT
junior musk
wet minnow
junior musk
junior musk
#

to get the value of the player at # position

wet minnow
#

also i did '/papi parse me %Level_bskyblock_topvalue1%'
and it still just returned %Level_bskyblock_topvalue1%

junior musk
#

the placeholder is incorrect

#

%Level_bskyblock_top_value_#rank#% you're missing a _ between top and value, as well as between value and 1, and you kept the # in the other placeholders in your screenshot
%Level_bskyblock_top_value_1%

stone axle
#

I have a question. Is it possible to create a custom placeholder with the help of PAPI (with the wiki). Can other plugins use this custom placeholder?

junior musk
#

you can make your own placeholders with PAPI, and any plugin that supports PAPI will be able to use it

#

check the wiki to see how to create your own placeholders

stone axle
#

Thank you โค๏ธ

#

For example I want to create specific ores mined placeholder. The data abt the ores where shall i store it? What would you recommend? ;d

junior musk
#

maybe in a database or a yml file, idk, the latter one may not be very efficient with a lot of players

stone axle
#

Aight thanks โค๏ธ

prime totem
#

Hey so placeholders dont work, ex: beasttokens, none of beasttokens placeholders work and with other plugins too what can i do?

mint fable
prime totem
#

no numbers

mint fable
#

/papi dump

mint fable
#

?startuplog

tender vaporBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

prime totem
#

sure

mint fable
#

can you send that over? beasttokens expansion doesn't seem to be registering

prime totem
#

yea

mint fable
#

same for tokenmanager

#

aaand jobs

prime totem
#

not the only plugins tho

#

the ones that dont appear in /papi ecloud dont work

mint fable
#

like playerkits?

#

or deluxemenus?

#

also, /papi list should be local expansions

#

/papi ecloud list shows ones on the ecloud

prime totem
mint fable
#

like... playerkits?

#

Can you name one?

prime totem
#

erankup

#

tokenmanager

#

beasttokens

#

and etc

mint fable
#

erankup is also not registered

#

I just listed those 2

prime totem
#

?paste

tender vaporBOT
#
FAQ Answer:

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

mint fable
#

playerkits would work fine

#

same for deluxemenus

#

hdb

#

emf

#

they are all registering properly

prime totem
tender vaporBOT
mint fable
#

hmm that's weird

#

it says erankup registers fine

prime totem
mint fable
#

working?

prime totem
#

erankup works

mint fable
#

ok

prime totem
#

but tokenmanager, beasttokens, jobs, etc nop

mint fable
#

hmm, try latest papi version to see if that fixes anything

#

i'll keep looking

prime totem
#

omg it was just the version

#

how stupid

#

lol, thanks ๐Ÿค—

mint fable
#

๐Ÿ‘

zinc elk
#

I have a question, I can't find an expansion that works in game on Minecraft for a KDR stat, or a Killstreak Stat. Anyone know any expansions that work ingame for this?

junior musk
#

Utils, Math, ChangeOutput and Statistic:
%utils_parse_math_{statistic_player_kills}/{changeoutput_equals_input:{statistic_deaths}_matcher:0_ifmatch:1_else:{statistic_deaths}}%

abstract spoke
#

How do I change refresh time?

#

pls ping on reply

sharp bloom
abstract spoke
sharp bloom
#

oh :/

abstract spoke
#

nvm fixed it through bungee api i belive

#

still thanks

austere hawk
#

how can i delete data from Statistic? I want to clear/delete the kills etc. deleting stats folder doesnt work i deleted the whole world folder it didnt work

ocean beacon
#

javascript expansion, what was wrong ?

const main = [ { 
      prefix: "&cMainPrefix",
      mItem: "something here...",
      mMoney: "something here..."
} ];

function callValue(){
  var value = args[0];

  if (value == "prefix") return main.find().prefix;
  if (value == "item") return main.find().mItem;
  if (value == "money") return main.find().mItem;
}

callValue();
vivid sparrow
#

find() expects a condition

slow crystal
#

but given that it was a StackOverflow im guessing something like mItem contains a placeholder that is referencing your placeholder

#

i.e. it's recursive

vivid sparrow
#

What StackOverflow?

junior musk
#

no idea what they're trying to achieve tho

vivid sparrow
#

Yeah idk

halcyon frost
#

hi i want all char replace to a space using formatter but dont know how to target all char
/papi parse me %formatter_text_replace_<target>_ _fnfa8234na%

inner wolf
#

I'm making [Staff Mode] Player appear above the nickname, but it doesn't work, so I have the variable is with TAB of NEZNAMY.

&4[Staff Mode] %staffplusplus_session_inStaffMode_@player=<playername>%

austere hawk
#

how can i delete data from Statistic? I want to clear/delete the kills etc. deleting stats folder doesnt work i deleted the whole world folder it didnt work

vivid sparrow
#

statistics are stored in the world data, your default world.

austere hawk
#

bro

#

i deleted the

#

world folder

#

it doesnt work

junior musk
#

you have to do it while the server is turned off

austere hawk
#

yeah it was off

junior musk
#

was it the world folder that is named in your server.properties next to level-name ?

austere hawk
#

lemme check

#

ye

junior musk
#

weird

#

not sure what's wrong then

#

try checking your other world folders

austere hawk
#

changing level-name will work?

#

it will create a new default world

#

so wont use the data on old one

#

i already deleted it but maybe its parsing from somewhere else

junior musk
#

uh, well if you deleted the old world it already should create a new one

#

idk

#

try it and see

austere hawk
#

ye

#

it created new one

#

lemme try wait

junior musk
#

though also try checking out other world folders

austere hawk
#

i did none has player stats

austere hawk
#

it created new world folder named like world2 it doesnt have any data but it still doesnt work

jagged nymph
#

I tried to login into my discord account and then I got the 2fa code I looked it in the app wrote it in and then it always says that the code is wrong but its right?

#

anyone help me please else I cannot login to my main account

austere hawk
#

someone probably hacked ur account

#

and added another 2fa

jagged nymph
#

what do I do now

austere hawk
#

try to recover it with phone number

#

if u cant

#

cry over ur acc

#

๐Ÿคฃ

jagged nymph
#

what do u mean recover it with รผ

#

phone number

#

u mean connect it with it?

austere hawk
#

no

#

i mean

jagged nymph
#

2fa?

#

with phone number

austere hawk
#

if u linked ur phone number to ur acc before

#

just do

#

forgot my password

#

with ur phone number

#

if it doesnt work gg its gone

jagged nymph
#

yea but I cant reset my pass cuz I need 2fa code

#

:///

#

if I click on the thing to reset my pass I can write my new pass in there and then it asks for the 2fa code

#

but how did someone hack into my acc if they also need 2fa

#

bruhhh

#

Im confused as fuck

tender vaporBOT
#
FAQ Answer:

Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.

ocean beacon
#

why it return item_not_exist ? javascript expansion

// args[0] = "name"
// args[1] = "grass_block"

let item_not_exist = "empty";
const itemList = {
    "grass_block": { name: "2 colors block", buy: 50, sell: 4.50 },
    "shulker_shell": { name: "purple thing", buy: 5000000, sell: 0.1 },
};
function changeValue(args) {
    let value = args[0];
    let id = args[1];

    if (value === "name") {
        const item = itemDictionary[id];
        return item ? item.name : item_not_exist;
    }
}
rustic wolf
#

Hello guys, i have encountered some weird bug with Deluxemenus: every time i try to refer to the player's name with a placeholder its shows "%player_name%" instead of the actual name of the player, i also tryed "%player%, {player},{player_name}". PlaceholderAPI 2.11.3 is installed. I tryed DM version 1.13.7(newest) and the 1.14.0 (DEV 164) also, but got the same results. My server runs 1.18.2 paper. Other placeholders just works fine. Any ideas?

ocean beacon
rustic wolf
#

U would save me a ctrl+c+v if u just started whit this in the general channel ๐Ÿ˜‚

rustic wolf
vivid sparrow
#

@ocean beacon the object is named itemList and you use itemDictionary

ripe warren
#

is it just me or is papi not working fully?

junior musk
#

what's not working?

ripe warren
#

the placeholders

vivid sparrow
#

Also, you dont need to define args, they are defined by default, idk what happens if you do.

junior musk
#

which ones?

ripe warren
#

all of them

junior musk
#

give me an example

ripe warren
#

%luckperms_primary_group_name%

vivid sparrow
#

smh barry

junior musk
#

does it work in /papi parse me <placeholder>?

ripe warren
#

i just gives me %luckperms_primary_group_name%

junior musk
#

did you download the expansion from the ecloud?

ripe warren
#

yea

junior musk
#

does LuckPerms show in /papi list?

vivid sparrow
#

Do a /papi reload

junior musk
#

and can you show your console logs when you do /papi reload?

#

yeah

ripe warren
#

i cant reload

junior musk
#

why?

ripe warren
#

it does not show anything

#

idk

junior musk
#

uh

#

does /papi even work?

ripe warren
#

yea

#

that works

#

its just reload

vivid sparrow
#

/papi dump

junior musk
#

did you get an error in console?

ripe warren
#

i think

junior musk
#

if yes, send it

#

?paste

tender vaporBOT
#
FAQ Answer:

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

ripe warren
#

[INFO] ArtiDoot issued server command: /papi reload
[PlaceholderAPI] Placeholder expansion registration initializing...
[PlaceholderAPI] Fetching available expansion information..

#

thats it

junior musk
#

is there nothing else? o_O

ripe warren
#

in the console

vivid sparrow
#

Can you download expansions?

#

/papi ecloud sownload server for example

ripe warren
#

bruh

vivid sparrow
ripe warren
#

oh yea my server is running 1.20

junior musk
#

can you send the link of /papi dump as Gaby asked earlier?

ripe warren
#

that does not work

junior musk
ripe warren
#

nope

#

always been 1.20

junior musk
#

o_O

vivid sparrow
#

That doesnt make any sense

junior musk
#

yeah

#

xD

ripe warren
#

xD

vivid sparrow
#

Restart the server and send the latest log

junior musk
#

can you go to your PAPI folder and delete the expansions folder? and then /papi reload

#

or that

ripe warren
#

i've tried that before

#

i still cant reload

junior musk
#

try as Gaby said

ripe warren
#

where can i send it

junior musk
#

the server log?

#

?paste

tender vaporBOT
#
FAQ Answer:

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

ripe warren
junior musk
#

the server hasn't fully started yet

#

or the log is cut

ripe warren
#

oh

junior musk
#

do /papi list and /papi reload work now?

ripe warren
#

1 sec

#

now that works

junior musk
#

now try to download the LuckPerms expansion and again and /papi reload

ripe warren
#

that worked

junior musk
#

๐Ÿ‘Œ

ripe warren
#

my other server has the same problem

junior musk
#

try to delete the expansions folder and restart there as well

ripe warren
#

i think its working

#

thanks!

#

nvm

#

im trying to download the player expantion and now i cant reload

junior musk
#

any errors?

ripe warren
#

nope

#

same problem

junior musk
#

also, when you ran the download command, which version did it say it downloaded?

ripe warren
#

2.0.5

junior musk
#

that should be fine thonking

#

are you using Aternos?

ripe warren
#

no

junior musk
#

what's your server hosting?

ripe warren
#

pebblehost

junior musk
#

oh, didn't know they also used mcpaste

#

you can upload custom jars right?

ripe warren
#

yea

junior musk
ripe warren
#

i think that worked

junior musk
#

nice

#

weird but nice xD

ocean beacon
#
if (args[0] === "tien-ban-thanh-cong" && (args[1] === "c" || args[1] === "confirm")) {
    let tienBan = ((itemList.find((element) => id === element.id).sell) * soLuong).toFixed(3);
    if (args[2] === "f") tienBan = tienBan.replace(/\B(?=(\d{3})+(?!\d))/g, ","); // why i cant use this ?
    return input.replace("%vat-pham%", vatPham).replace("%so-luong%", soLuong).replace("%tien-ban%", tienBan);
}

// currunt
if (args[0] === "tien-ban-thanh-cong" && (args[1] === "c" || args[1] === "confirm")) {
    let tienBan = ((itemList.find((element) => id === element.id).sell) * soLuong).toFixed(3).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
    return input.replace("%vat-pham%", vatPham).replace("%so-luong%", soLuong).replace("%tien-ban%", tienBan);
}
winter patio
#
java.util.concurrent.CompletionException: zip file closed (expansion file: /home/container/plugins/PlaceholderAPI/expansions/Expansion-checkitem.jar)
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:433) ~[PlaceholderAPI-2.11.3.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.lang.Thread.run(Thread.java:1589) ~[?:?]
Caused by: java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:832) ~[?:?]
at java.util.zip.ZipFile.getEntry(ZipFile.java:330) ~[?:?]
at java.util.jar.JarFile.getEntry(JarFile.java:516) ~[?:?]
at java.util.jar.JarFile.getJarEntry(JarFile.java:471) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:195) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:588) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:155) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:130) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.entrypoint.classloader.group.SpigotPluginClassLoaderGroup.lookupClass(SpigotPluginClassLoaderGroup.java:43) ~[paper-1.20.1.jar:git-Paper-71]
at io.papermc.paper.plugin.entrypoint.classloader.group.SimpleListPluginClassLoaderGroup.getClassByName(SimpleListPluginClassLoaderGroup.java:37) ~[paper-1.20.1.jar:git-Paper-71]
at io.papermc.paper.plugin.entrypoint.classloader.group.LockingClassLoaderGroup.getClassByName(LockingClassLoaderGroup.java:34) ~[paper-1.20.1.jar:git-Paper-71]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:173) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:150) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:575) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.3.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:411) ~[PlaceholderAPI-2.11.3.jar:?]
... 2 more```
#

what is issue?

#

it causes when i installed DiscordSRV

raw thicket
#
24.07 05:50:18 [Server] [WARN] [PlaceholderAPI] [math] Placeholder: %math_{ultraprison_fortune_level_raw}+50[precision:0]%
24.07 05:50:18 [Server] [WARN] [PlaceholderAPI] [math] Cause:       '150+50[precision:0]' is not a valid Math expression.```

Anyone know how to fix this
vivid sparrow
raw thicket
#

sorru i didnt add the math stuff my dev did

vivid sparrow
#

Go where you use that placeholder, on newer version it is no longer [precision:#], I think it is smth like %math_(precision):(rounding)_math equation here%

raw thicket
#

so in the placeholder api plugin, under expansions?

vivid sparrow
#

So it should be %math_0:_{ultraprison_fortune_level_raw}*50%

#

No, ask the dev where they used the placeholder

#

The placeholder comes from a papi expansion, but the error doesnt tell where it is used.

raw thicket
#

grrr i have no contact with them

#

they left and said nothing

#

ill try find it

vivid sparrow
#

See if your FTP client allows you to do some global search

raw thicket
#

i use filezilla

#

what would i search for tho

vivid sparrow
#

Actually, it doesn't seem to have an option to search the content, but only by file name.

raw thicket
#

yeah

vivid sparrow
#

You can download the server locally (if you exclude the jars and data files, it should be quick)

#

And most text editors (e.g. VSC) have global search

vivid sparrow
raw thicket
#

might be a skript

raw thicket
#

but i already have the whole thing downloaded

vivid sparrow
#

Open the plugins folder in VSC and press ctrl + shift + f

#

And it should open a dialog in the left side where you put the text you want to find

raw thicket
#

Ah found it!

sharp jay
#

๐Ÿคฆโ€โ™‚๏ธ

raw thicket
#

its in deluxe menus haha

#

thank you and fml

vivid sparrow
#

Nice

raw thicket
#

so i change %math_{ultraprison_fortune_level_raw}+50[precision:0]%

#

to

#

%math_0:_{ultraprison_fortune_level_raw}*50%

vivid sparrow
#

Try first in chat with /papi parse me, I hope I got it right xD

raw thicket
#

i dont think it worked

#

i cant send screenshot tho

tender vaporBOT
raw thicket
vivid sparrow
#

What placeholder did you use?

raw thicket
#

%math_0:_{ultraprison_fortune_level_raw}*50%

#

that

vivid sparrow
#

Hmm

#

Any console warning?

raw thicket
#

im dumb

#

i was testing on the wrong enchant

#

it works

#

im sorry

#

%math_{ultraprison_fortune_level_raw}+25[precision:0]%

so this would change to

%math0:{ultraprison_fortune_level_raw}*25%

#

and so on right?

vivid sparrow
#

No, you need a _ after math and one after the colon

vivid sparrow
raw thicket
#

ah

#

thank you

#

all working now!

gloomy marsh
#

Exist any form to do anything like this?:
%Advancements_playerCompletedAmount_<essentials_baltop_player_1>%

fierce kestrel
#

well hello I have a little problem with the rankup plugin I would like to put a progress bar but it does not work with the diamond can you help me

&eObjet DIAMOND : 5 %progressbar{rankup_requirement_item_DIAMOND_5_percent_done}_c:&d|_p:&d|_r:&3|_l:20_m:100_fullbar:&a&lTerminรฉ !%\n

or if you find something else like for example a percentage progression like you have completed the mission to have 5 diamonds at 80% for example you see?
to answer me come in mp or ping me

warm plover
#

Hey there, how can I make a JavaScript placeholder to replace all , in a placeholder result with nothing

junior musk
#

you don't need JS

#

you can use formatter

warm plover
#

I do sadly

#

Working on an old version

junior musk
#

old version of what?

warm plover
#

Java/MC

junior musk
#

so?

warm plover
#

Formatter doesn't work on the version of Java the servers uses

junior musk
#

what are your mc and java version?

warm plover
#

I could see if the owner would want to update but it's not mine haha

#

1.12.2 and Java 11

junior musk
#

could update to java 17, but alr

#

if you can't and want to use JS, then do placeholder.replace(",","")

warm plover
#

I'll see if they can use 17 first then if not go with JS lol

warm plover
#

Alrighty yeah, java 17 doesn't work sadly

#

I'm trying to use this but it's giving me an error when parsed

function prestigeraw(){
  return placeholder.replace(/ /g, ",");
}
prestigeraw();```
#

Not sure if this is correct, not great with JS lol

vivid sparrow
#

just do replace(" ", ",")

#

although, hmm, that error might no have anything to do with your code

warm plover
#

darn..

raw thicket
ocean beacon
#

it not display as i want :/

loud pawn
mint fable
#

update your expansions

#

/papi ecloud update all

#

@loud pawn

haughty berry
#

so im having a situation where i
/papi ecloud download math
/papi reload
/papi list -> does not show math
and parsing something like %math_5+3% doesnt parse

#

nvm i forgot to check console

[02:13:21 ERROR]: [PlaceholderAPI] com/ezylang/evalex/EvaluationException``` it just does that lol
mint fable
#

?startuplog

tender vaporBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

mint fable
#

can you send that over

haughty berry
#

do you need anything from it besides papi-related logs?

haughty berry
mint fable
#

better to send the whole log

haughty berry
#

ok

#

?paste

tender vaporBOT
#
FAQ Answer:

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

haughty berry
mint fable
#

I would try updating placeholderapi first

haughty berry
#

oh its outdated

#

wtf

twilit needle
#

Is it possible for the math placeholder to return 10,000 instead of 10000?

vivid sparrow
#

no

mint fable
#

formatter should be able to as well

dense trail
#

Does anyone know what's wrong with my code here

function checkAndPrintPlaceholders() {
    const placeholders = [];
  
    for (let i = 1; i <= 10; i++) {
      const placeholderName = `%Level_aoneblock_top_name_${i}%`;
      const value = getPlaceholderValue(placeholderName);
      if (value === "") {
        placeholders.push("Empty spot");
      } else {
        placeholders.push(value);
      }
    }
  
    // Print the placeholders
    console.log(placeholders.join(', '));
  }  
  
  checkAndPrintPlaceholders();
#

Trying to have it go over all %Level_a_oneblock_top_name_1 to 10% baiscally to then check if its empty or not.

#
Caused by: java.lang.IllegalArgumentException: No group with name {i}
shadow ruin
#

Hello ! i have an issue, player without perm see this :

#

%palce_holder%

#

instead of the placeholder ^^ (i'm OP on the serv and i see the placeholder correctly)

topaz fjord
#

Hey there guys

mint fable
#

oh nvm my bad

#

try this though, shouldn't need regex

#
    for (let i = 1; i <= 10; i++) {
      const placeholderName = "Level_aoneblock_top_name_"+i;
      const value = getPlaceholderValue("%"+placeholderName+"%");
delicate lava
#

Hey, I'm unsure if this is where I would ask this question, however I have 2 questions. If this is not the right place just let me know

  1. Is there a way to format a number into a nicer number (for example 1000000 into 1m)
  2. Is there a way to format a time from seconds into hours, minutes, and seconds (for example 120 into 2m)
mint fable
#

you can use the formatter expansion for both things

#

if you click download it will bring you to the ecloud, which links to the source, which links to the wiki

#

probably easier to click it myself

delicate lava
#

%formatter_number_format_%player_total_exp%% Would I have done this wrong? It does not show a number

delicate lava
mint fable
#

Huh?

#

The expansion allows you to use placeholders from other expansions such as the Player expansion.
To use a placeholder, make sure to use the bracket-format instead of the percent one (i.e. {player_name} instead of %player_name%).

#

it says it right there

delicate lava
#

Fixed! THank you

fossil barn
#

hi can i put a placeholderapi in the model_data in a deluxemenu?

mint fable
#

if you can't in the latest release, try the dev build

tender vaporBOT
mint fable
#

@fossil barn this

#

oh ya, that would do it

dense trail
mint fable
#

hmm

#

can you send the whole thing

dense trail
#
function checkAndPrintPlaceholders() {
  const placeholders = [];

  for (let i = 1; i <= 10; i++) {
    const placeholderName = "Level_aoneblock_top_name_"+i;
    const value = getPlaceholderValue("%"+placeholderName+"%");
    if (value === "") {
      placeholders.push("Empty spot");
    } else {
      placeholders.push(value);
    }
  }

  // Print the placeholders
  return (placeholders.join(', '));
}  

checkAndPrintPlaceholders();
mint fable
#

mmmmm

#

very confused

#

what about

#
function checkAndPrintPlaceholders() {
  var placeholders = [];

  for (let i = 1; i <= 10; i++) {
    var placeholderName = "Level_aoneblock_top_name_"+i;
    var value = getPlaceholderValue("%"+placeholderName+"%");
    if (value === "") {
      return "Empty Spot, "+i;
    }
  }
  return "No Empty Spot";
}  

checkAndPrintPlaceholders();
dense trail
#
[04:36:15 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'islandtop
javax.script.ScriptException: <eval>:4:11 Expected ; but found i
  for (let i = 1; i <= 10; i++) {
           ^ in <eval> at line number 4 at column number 11
mint fable
#
function checkAndPrintPlaceholders() {
  var placeholders = [];

  for (var i = 1; i <= 10; i++) {
    var placeholderName = "Level_aoneblock_top_name_"+i;
    var value = getPlaceholderValue("%"+placeholderName+"%");
    if (value === "") {
      return "Empty Spot, "+i;
    }
  }
  return "No Empty Spot";
}  

checkAndPrintPlaceholders();

@dense trail

tender vaporBOT
mint fable
#

Okay I didnโ€™t think getPlaceholderValue existed

#

I was confused when I saw it in your script

#

PlaceholderAPI.setPlaceholders(BukkitPlayer, <insert the string here>)

@dense trail

#

Sorry for formatting, on mobile

warm sequoia
#

%utils_parse_changeoutput_equals_input:{pixelmon_party_slot_1_form}_matcher:None_ifmatch:_else:{pixelmon_party_slot_1_form}%

#

anyone wanna take a stab at fixing that?

#

idk if I am allowed to ping the utils guy but

mint fable
#

Doesnโ€™t look like utils is needed for this @warm sequoia

warm sequoia
#

๐Ÿ˜ฎ

mint fable
#

I can take a closer look when on desktop in a few

#

Looks fine to me at first glance

warm sequoia
#

ok let me test w/o

mint fable
#

Even with the utils

warm sequoia
#

yeah