#placeholder-api

150650 messages · Page 86 of 151

turbid tide
#

do you have the KillStats plugin? Some expansions require you have some extra plugin(s) to work

#

this is the case for the KillStats expansion

astral python
#

it takes an extension for its work it is possible to have the name or the link?

turbid tide
#

usually if the name is blue on the wiki it means that there's a plugin required. you can click on the name for it to open the link to the download page

#

anyways. the killstats plugin was not updated in years

#

you might want to get a newer plugin

#

like CombatStats

astral python
#

1.17

#

I'm in 1.18.2

turbid tide
#

should work afaik

#

you can try it tho

astral python
#

and what it is compatible with skript?

#

its doesn't seem to work too much

turbid tide
astral python
#

instead of what?? combat stats

turbid tide
#

oh. I Might've misunderstood your question

turbid tide
astral python
#

in fact it is a scoreboard that and made in skript on my other servers its works the api but not the one the

#

in fact I want to use the api killstats I implant it in my code but its does not work I have the plugins combat stats sa still does not work I do not know why I use skript for my scoreboard I do not know if it is the cause or not

turbid tide
#

you don't need to use the killstats expansion anymore

#

if you use combatstats, you use their expansion

astral python
#

I just told you that there is the extension but its does not work

crude yew
#

Thanks again! Found it! It was the javascript expansion, I'm guessing that rather than being the javascript expansion though it's one of the .js files or such

tame light
#

are you dumb or are you doing it on purpose? have told you that we have the extension but it does not work. not complicated to understand if?

astral python
#

I can't be a photo otherwise I would have directly shown what I had

turbid tide
astral python
#

you speak french ??

crude yew
turbid tide
tame light
#

okay let it go, have you managed

astral python
#

me ?

turbid tide
tame light
#

extention doesn’t work

turbid tide
#

its built inside the plugin

#

you don't need to download anything else

#

just the plugin itself

astral python
#

nothing actually works

turbid tide
#

do you have CombatStats installed on your server?

astral python
#

yes

turbid tide
#

if yes try this command: /papi parse me %combatstats_kills%

#

what does this command say? it should return a message in chat

astral python
#

0

tame light
#

1

turbid tide
#

ok so the placeholder works. now you use these placeholders in Skript. at least I believe Skript supports PlaceholderAPI

turbid tide
# turbid tide

there's multiple placeholders. you can see them listed here

#

or on the spigot page

tame light
#

yes its function but when we want to use the extention it does not work

astral python
turbid tide
turbid tide
tame light
#

%combatstats_kills%

turbid tide
# tame light 1

I'm not sure how Skript works. The placeholder works as you've mentioned above so my assumption is that Skript either doesn't support PlaceholderAPI or it uses a different format for them.

tame light
#

on my screen that I sent you is HolographicDisplay which is use

turbid tide
#

I believe it is {papi: combatstats_kills} but let me double check

#

yeah

crude yew
#

Is there a means to get information on the placeholders of an expansion if an expansion has no documentation?

turbid tide
turbid tide
#

so if its not on this link and not on their wiki/spigot page then not really

crude yew
#

Okay, thank you!

turbid tide
turbid tide
plush dove
#

I did /jsexp parse me <code>, and it returned carrot, which is what it should do

#

but if I do /papi parse me %javascript_block%, it returns air

turbid tide
#

send your javascript_placeholders.yml file in a paste bin

plush dove
#

yuppp, thats the issue

#

I thought I added it to the file already

#

haha.. thanks!

plush dove
#

I'm trying to make a javascript where theres an argument, and it checks if that argument equals something, and return text if it does

#

I was trying to base it off of the community javascripts

turbid tide
#

as long as you use it correctly

plush dove
#

REALLY?!

#

well

#

theres an error

#

hold on

turbid tide
#

might be bcz of this var crop = POTATOES;

#

might want to make it var crop = "POTATOES";

plush dove
#

kk

turbid tide
#

since it probably doesn't find a variable named POTATOES

plush dove
#

it works 0_o

#

did not expect it to

#

thank you so much

turbid tide
#

yeah. strings need to be declared in quotes

#

otherwise they're variables

#

and you have no variable called POTATOES

plush dove
#

👍

novel socket
#

Heyaaa! So I am using Mc 1.18.2 and papi 2.11.1 . But Everytime the server restarts or startup papi seems to stop working and only works after /papi reload. Can someone help me out with this issue?

manic sedge
#

Could you please tell me you solved this problem? I have the same problem as you. I am using papi 2.11.1 too. And i tried to use akarin 1.12.2 and purpur 1.18.2(1623) as server software. i tried to use dragonwell and zulu as jvm. This problem always happened.

manic sedge
#

incomprehensible error.. pls let me know if you solve it, thanks :)

cyan canopy
#

The placeholder https://api.extendedclip.com/expansions/scoreboardtags/ seems not to be working because it returns just the placeholder. I see it is made by Glare, an admin here, so I hope he or someone else here can help me out 😄

Steps:

  1. /minecraft:tag Itz_Robinnn list
    feedback: Itz_Robinnn has 1 tags: KeyIngeleverd

  2. /papi parse Itz_Robinnn %sbtags_has_tag_KeyIngeleverd%
    feedback: %sbtags_has_tag_KeyIngeleverd%

turbid tide
# novel socket Heyaaa! So I am using Mc 1.18.2 and papi 2.11.1 . But Everytime the server resta...

just seems like one of your expansions is broken. go to plugins/PlaceholderAPI/expansions/ and remove all expansions, restart and see if it happens. If it doesn't, then add half of the expansions back, restart and see if it happens, if it doesn't repeat. if it does then the expansion is in the half that you've just added so remove half of the half you just added and restart. if it still happens repeat if not you've found the expansion

turbid tide
turbid tide
#

now we can make sure its not b by you just doing /papi dump and sending the generated link here

cyan canopy
turbid tide
#

and then send it here

tender vaporBOT
turbid tide
#

read the above ^

cyan canopy
#

Failed to load expansion class ScoreboardTagsExpansion - One of its properties is null which is not allowed!

#

hmm

turbid tide
#

yeah. I assume its the version. this might be a plugin messing with the ClassLoader. or idk what else tbh

#

yeah it is the version. it says it

cyan canopy
#

So, no 1.18.2 support yet?

turbid tide
#

can you try updating paper to latest development build? Its most likely not going to fix it but its worth a try

turbid tide
#

but rather with the actual expansion's version

cyan canopy
#

Ah, okay, then I'll have to check with my colleague. He manages the version we run our server on

turbid tide
#

it uses reflection to get set the version itself. and so I believe that if there's a plugin or something like that that messes with the class loader the expansions that use this will just break

turbid tide
#

I could just give you custom jar where I make the version a fixed string, or you could try removing some plugins to see if it works like that. or just PlaceholderAPI and the expansion itself on the server

languid vessel
#

16.05 09:42:35 [Server] ERROR [PlaceholderAPI] Failed to load expansion class ScoreboardTagsExpansion - One of its properties is null which is not allowed!

#

how do i fix this error

turbid tide
#

we are just talking about this. above. it might be a plugin that messes with the class loader

languid vessel
#

what is that

turbid tide
languid vessel
#

sure

cyan canopy
#

Okay so presumably the ScoreboardTags expansion conflicts with another plugin and therefore doesn't work. What I can try is 1) update server to new paper version, 2) investigate with which plugin it conflicts and see if I can spare that plugin 3) buy a custom expansion

turbid tide
#

you don't need to buy it. I can just make 1 in a few seconds. the problem is that there's many expansions using the same system that you might want to use in the future and that won't work

#

for the same reason

#

anyways. if you want a fix just for this expansion, here it is

#

just go to plugins/PlaceholderAPI/expansions and replace the current Expansion-ScoreboardTags.jar with this jar

#

and then restart

cyan canopy
#

Oh how wonderful! Even though that may conflict again in the future? So the most sustainable solution is to try option 1 first?

turbid tide
#

well this exact expansion no. unless you use another version of it. but others yeah

#

well first, will most likely not fix but you can try. seconds is probably best

cyan canopy
#

hahaha, you have already made it! Thank you, I'll try it right away!

languid vessel
turbid tide
languid vessel
#

aight

#

btw

#

[Server] WARN [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend or softdepend of this plugin.

turbid tide
#

you can ignore those

languid vessel
#

is this causing

#

like players arent able to use milk

turbid tide
#

nahh

languid vessel
#

k k

cyan canopy
#

Update: it works!!! 😃 🥳
Thank you so much!

radiant plaza
languid vessel
#

WARN [PlaceholderAPI] Loaded class com.bencodez.votingplugin.VotingPluginMain from VotingPlugin v6.9 which is not a depend or softdepend of this plugin.

#

do i need to care about this?

junior musk
#

those Loaded class some.class.path from SomePlugin.... can be ignored, it's just a warning that Spigot shows because PlaceholderAPI doesn't specify that it's hooking into other plugins in its plugin.yml, but it doesn't affect anything

radiant plaza
#

You can fix it dw

junior musk
radiant plaza
#

Slide into DMs if you need assistance

junior musk
#

he thought milkbowl meant there was an issue with milk

radiant plaza
#

Are you sure about that

junior musk
#

pretty sure yeah

#

if you look at the discussion, it's pretty clear...

radiant plaza
junior musk
#

he's asking if it can cause issue with players not being able to drink milk

#

well, you know what

#

@languid vessel

languid vessel
#

back

junior musk
#

do yo have an issue wth milk?

languid vessel
#

or illegalstack?

radiant plaza
languid vessel
#

i do

radiant plaza
junior musk
#

oh okay

languid vessel
manic sedge
tender vaporBOT
turbid tide
#

👍

austere hawk
#

How do I clear PAPI stats? I am using ajLeaderboards and now im in a new season but the stats carried over after clearing playerdata..

turbid tide
#

ugh. ajleaderboard caches leaderboards

#

so you have to reset that database

austere hawk
#

or contact "papi support"

turbid tide
#

well what stats are you trying to reset? bcz like placeholderapi does not store any data?

#

every plugin stores their own data, placeholderapi just requests it and displays it

austere hawk
#

just statistic time played and player kills

turbid tide
#

that's stored in the world folder

#

wolrd/stats

austere hawk
#

ohhh

#

ok ty

turbid tide
#

or something like that

austere hawk
#

well i opened it and now the file explorer thing on minehut has crashed,

#

oh yeah so basically theres like thousands of .json

turbid tide
#

yeah. each file represents a player

#

that joined the server before

austere hawk
#

yeah i know but how am I gonna do it

#

there isnt a select all button on minehut

turbid tide
#

ugh. that idk

#

just delete the whole folder?

austere hawk
#

oh it'll remake it?

#

ok ill try

plush dove
#

I have an item that's name is "Farming Helmet (Farming Set)", but with color codes. How do I use checkitem to see if the name is that? Do I include the color codes?

#

The real name is "#9B5D29Farming Helmet &7(&bFarming Set&7)"

#

I tried that and it didn't work

plush dove
#

did some testing and seems like hex isnt checked

#

I just changed it to namecontains then

#

how would I make a javascript that checks if the helmet is something, if so, have 1. Then check the chestplate, if it is something, then add 1 to the first number. Same with leggings, boots, and mainhand

#

ok I semi got a thing for it to work

#
    return "4";```
So I have this, but it gives 1111. how do I add the four numbers together?
#

of course, I could work with 1111, but I do want to learn how to add the four numbers. Which is probably common knowledge to everyone 😅

#

ok, I removed the " and it works :)

vivid sparrow
#

If you are going to use Javascript, it is better to use bukkit methods

whole dove
#

hey, i was wondering how i can use placeholders inside of placeholders?

an example:

%luckperms_group_expiry_time_%luckperms_highest_group_by_weight%%

radiant plaza
#

like this %luckperms_group_expiry_time_{luckperms_highest_group_by_weight}%

whole dove
turbid tide
#

Expansions have to specifically support that

#

It won't work if they don't

whole dove
#

Alright, thanks

potent oxide
#

Hey, is anyone familiar with the CheckItem expansion? https://github.com/PlaceholderAPI/CheckItem-Expansion

im trying to use the remove function to remove just one item. Is this possible?

%checkitem_remove_namecontains:&d&lTest Item% (This removes the whole stack of the items all named the same thing)

#

Using checkitem_amount just returns the amount in the inventory

mint fable
#

use the amt modifier @potent oxide

#

%checkitem_remove_namecontains:&d&lTest Item,amt:1%

potent oxide
#

Thanks so much 🙂

novel socket
spare flax
#

Hey I'm Using NUVOTIFIER plugin and was wondering how to make it adter you vote a certain amount of times, you rank up

#

If you also don't know what I'm talking about go to my dms and I can tell you which server to join, as an example

#

@sharp jay can you help me with dis issue

spare flax
#

ok

#

i've just been waiting for so lonng, not on this server but 2 days to try to get this thing to work

sharp jay
#

Not by mentioning me

spare flax
#

please

#

im sorry

#

😭

austere hawk
#

I have this on my scoreboard "Towny: %townyadvanced_town%" it works just fine, but if I'm not in a town it doesn't show anything, how do I make it so if I'm not in a town it shows [None] instead of just showing literally nothing.

turbid tide
#

%changeoutput_equals_{townyadvanced_town}__[None]_{townyadvanced_town}% something like this might work

tender vaporBOT
austere hawk
#

Oh oops, my bad

austere hawk
#

when I put %playtime_time% it shows the hour minute and seconds
how do I make it so it only shows hours like this:
playtime: 2h

turbid tide
austere hawk
#

Okay, thanks anyways (:

plush dove
#

For the checkitem placeholder can you make it ignore capitlization

mint fable
#

no, but you could use it to retrieve the info and use javascript to ignore caps

plush dove
#

👍

turbid tide
#

download the vault expansion

#

/papi ecloud download vault /papi reload

remote tulip
#

I made all of these already but nothing :((

turbid tide
remote tulip
turbid tide
#

can you execute /papi parse me %vault_eco_balance% and see what the output is?

remote tulip
#

It says 0.0

#

Which is good because my balance is 0

turbid tide
#

hmm. the placeholder seems to work then. What scoreboard plugin do you use?

remote tulip
#

I make my own

turbid tide
#

are you parsing placeholders?

#

bcz it just seems like they're not parsed

remote tulip
#

How can I do it?

#

Or do I need to import it within Maven?

turbid tide
#

you need to import it and use PlaceholderAPI.setPlaceholders(Player, String);. let me get the wiki link

turbid tide
turbid tide
#

you have to move PAPI's under those

turbid tide
turbid tide
#

use that

remote tulip
#

Nice

turbid tide
#

👍

turbid tide
#

yeah. since you're going to use it in your plugin

remote tulip
#

Oh okay

turbid tide
#

in your actual codwe

#

code*

#

it will turn white when you'll use that class

remote tulip
turbid tide
#

strings are not mutable. you have to work with the output of the setPlaceholders method

#

for example

#
val balanceParsed = PlaceholderAPI.setPlaceholders(player, egyenlegtext)```
#

and then you set it in the scoreboard

remote tulip
#

oh okay

remote tulip
#

Ahh thanks for your help 😄

turbid tide
#

no problem

fossil sun
#

Statistics placeholders don't show offline players in leaderboards, is there a way around this?

#

like %statistics_player_kills% or %statistics_hours_played%

turbid tide
#

the statistic expansion only works for online players. so unless whatever leaderboard plugin has a way to show offline player's stats then no

fossil sun
#

cool, thanks for answering i'll look around for a leaderboard plugin that does that

turbid tide
#

ajleaderboards

#

should

median steppe
#

hello

#

when i use this placeholding in this format it works i get the value back but when a player joins i get this error but as the owner i can join and i dont get any errors i dont understand what i did wrong

#

19.05 07:24:44 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 07:24:44 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_{aureliumskills_power}/15%
19.05 07:24:44 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills' is not a valid number for precision!

i have talked to Levelled mobs support and they said i would have to talk to placeholder about my issue

/papi parse me %math_{aureliumskills_power}/15%

turbid tide
median steppe
#

Okay Ill try this thank you so much for your quick reply

median steppe
#

Sadly this did not work

#

19.05 11:34:39 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 11:34:39 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_0_{aureliumskills_power}/15%
19.05 11:34:39 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills_power}/15' is not a valid Math Expression.

turbid tide
#

if you execute /papi parse me %aureliumskills_power% what does that return?

median steppe
#

with my skills 1.88

#

sorry without the /15 it returns 28

turbid tide
median steppe
#

yea if i divide it

#

/papi parse me %aureliumskills_power/15% like that

turbid tide
#

/papi parse me %aureliumskills_power/15% wait this exact command returns 1.88?

median steppe
#

/papi parse me %{aureliumskills_power}/15%

turbid tide
#

ugh. you mean the math one?

#

/papi parse me %math_0_{aureliumskills_power}/15% right?

median steppe
#

yes im sorry about that

turbid tide
#

hmm. and you still get an error?

#

while you execute the command I mean, if you check the console

#

you get an error?

median steppe
#

yea

#

19.05 11:15:14 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 11:15:14 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_0_{aureliumskills_power}/15%
19.05 11:15:14 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills_power}/15' is not a valid Math Expression.
19.05 11:16:36 [Server] INFO [ExcellentCrates] Auto-save: Saved 1 online users | 0 offline users

turbid tide
#

wtf. if it works why is it erroring. hmm 1 sec

median steppe
#

it happens every time a player joins

turbid tide
#

oh. are you using the placeholder in a message or something like that?

median steppe
#

featherboard Plus Levelled Mobs*******

#

can that be it?

#

its still works though featherboard

#

i can see the 1.88

#

i'm tech using it for my server combat level

#

its working real well aside from the error

#

you may be on to something i removed it from featherboard and theres no more error

turbid tide
#

can you show the exact placeholder you have in featherboard

#

like copy paste it here

#

and put it into ` here `

#

so it looks like this

median steppe
#

&b&l> $setting_label-color$&lCombat Level: &b%math_{aureliumskills_power}/15%

#

i cant do the 0 on the scoreboard if i do it shows way do many Extra Numbers like this 1.88.888888888888888888888888888888888

#

but even more then that

turbid tide
#

that character is above the TAB and under the Esc buttons

median steppe
turbid tide
#

hmm.

median steppe
#

o i didnt mean to ping

turbid tide
#

try %math_2:_{aureliumskills_power}/15%

median steppe
#

okay

turbid tide
#

I wonder if the scoreboard is just updated too fast and the aurelium placeholder just doesn't work bcz the player is not fully connected yet. that could also be a problem

median steppe
#

let me lower the intervals

#

raise i mean but no that didnt work

#

19.05 12:44:10 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 12:44:10 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_2:_{aureliumskills_power}/15%
19.05 12:44:10 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills_power}/15' is not a valid Math Expression.

median steppe
#

weird i think your right when i turned up the intervals then logged on again i still get the error and the placeholder breaks this time not showing the value but the placeholder itself, Then on the next update its fixes the placeholder

turbid tide
median steppe
#

yea it shows normally

turbid tide
#

since the error you show, says its trying to divide the actual text {aureliumskills_power} by 15. so clearly the placeholder isn't parsed. And I've looked at the code and the only reason I see would be that

median steppe
#

okay well it works perfect mixing it with Levelled Mobs so worse come to worse ill just take it off the scoreboard

turbid tide
median steppe
#

yea but only on Loggon so may i can just spam hide it

turbid tide
#

you could in theory use something like ConsoleSpamFix or whatever its called

median steppe
#

cause it does make the rpg feel so much more like a real one

#

yea i have it ill give it a go, But i do owe you a big Thank you for your help! and time

turbid tide
#

no problem 👍

plush dove
#

Is there a placeholder to list all the players on the bungeecord instance

turbid tide
#

just the amount. not their names

ancient spire
#

hey

#

is there a way to not use a placeholder by putting a certain character in front of it?

#

Or something of the likes

turbid tide
ancient spire
#

I've tried disabling my latest installed extensions but that didn't fix the issue either

turbid tide
#

as I was saying, that was never a thing in PlaceholderAPI itself. Unless the plugin you were using it in had this specific functionality.

ancient spire
#

ok

#

Can I disable papi via command?

#

to check if that fixes the issue

turbid tide
#

the entire plugin? no.

#

if you want to disable it, remove it from the plugins folder and restart the server

ancient spire
#

btw there was a placeholder I unregistered and now I can't get it back

#

is that normal?

turbid tide
#

what placeholderand how did you unregister it

ancient spire
turbid tide
ancient spire
turbid tide
turbid tide
ancient spire
#

ah ok good to know

ancient spire
turbid tide
#

have you restarted since you've unregistered it?

#

alr. do that and let me know

ancient spire
#

I removed it from the plugins folder and just added it again

#

It still sees player as a placeholder even though papi wasn't even installed anymore

#

Any idea why that is?

turbid tide
#

%player% is not a PlaceholderAPI placeholder

#

that's probably an internal placeholder of that specific plugin

ancient spire
#

It's just player actually

#

that's why I was confused

turbid tide
#

every PlaceholderAPI placeholder has a specific pattern

#

%identifier_<arguments>%

#

if it doesn't look like that its not a PlaceholderAPI placeholder

ancient spire
#

could it be essentials that messes with the chat format?

turbid tide
#

hmm? what would?

#

ohh

#

misunderstood the question

#

I mean essentials only changes the format if you have the EssentialsChat plugin installed

ancient spire
#

prefixes:

  • default;&a**[Player]** &f;&a[Player] &f
#

the [player] is used as a placeholder for some reason

turbid tide
#

I mean as I've said before, its most likely something that the chat you use for formatting has built in

#

plugins can make their own internal placeholders not related to PlaceholderAPI

#

so most likely whatever chat formatting plugin you use, has one

fluid yacht
#

Hey, how would I set the material of a delxue menu itemto the item that successfully trigers %checkitem_mat:SHIELD,namecontains:&fSteel Guard%

#

Or alternatively does anyone know how to get the output of what slot # the checkitem placeholder finds an item in?

austere hawk
#

Does anyone know why this doesn't work? %math_%bungee_Hub-1%+%bungee_Hub-2%%
And presents this error
[00:55:21 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [00:55:21 WARN]: [PlaceholderAPI] [math] Placeholder: %math_% [00:55:21 WARN]: [PlaceholderAPI] [math] Cause: '' is not a valid Math Expression.

stark shard
#

No one here is paid to help, so do not beg. People volunteer to help here

#

U need to download protocollib plugin

#

Also replace Essentials with ForgeEssentials since u arent using bukkit

#

Also I dont think papi works on non bukkit servers

#

Unless u have a reason, i suggest using paper as ur jar file and use plugins not mods

#

Mods are mainly for singeplayer worlds

carmine veldt
#

many, many mods are made with multiplayer in mind

#

think your vault expansion may be corrupted, try redownloading

#

the vault expansion

austere hawk
#

Just /papi reload

#

No need to restart

ancient spire
#

How can I register an extension that I have previously deleted?

#

it shows when I type /papi list but it doesn't work

#
Generated: May 20, 2022 at 2:23:59 PM UTC

PlaceholderAPI: 2.11.1

Expansions Registered:
  regionclaimplus       [Author: 3ricL (Ericdebouwer), Version: 1.1.4]
  ...

Expansions Directory:
  Expansion-playertime.jar
  Expansion-player.jar
  Expansion-viaversion.jar
  Expansion-autorank.jar
  Expansion-statistic.jar`
#

and I know it's been in the expansion directory before (I deleted it 😅)

#

I’ve tries to add it back but it’s not working for me :c

ancient spire
#

ah and btw I don't get any errors in the console

stark shard
#

So restart the server

plush dove
#

https://paste.helpch.at/sebafexiqo.js I have this javascript, would this be correct in storing the placeholder %checkitem_give_mat:{deluxeshop_{args[0]},name},amt:{deluxeshop_currentAmount}% as a variable and using it in a function?

turbid tide
tender vaporBOT
turbid tide
ancient spire
plush dove
#

Sorry, I have basically 0 experience. So I need to move the argument and math operations out of the string, would this be it:

  if (args[1] > "1") {
    return eco give %player_name% args[1]*%deluxeshop_{args[0]},buy%;
  }
  return "msg dunescifye no";
}```
turbid tide
ancient spire
#

it's already a txt file

turbid tide
#

and you copy the content and put it on that website and send the link

ancient spire
#

ah I see

turbid tide
#

yeah. you place text there, and it generates a custom link so I don't need to download anything

#

and you don't need to send files

plush dove
turbid tide
#

they're what you call in a placeholder

plush dove
#

ahh ok

#

Im an idiot for not realizing that

#

how would I go about storing it in a variable?

turbid tide
#

for example if my placeholder is named test and I do %javascript_test_ARG0,ARG1% I'd have arg[0] which would be ARG0

#

and arg[1] which would be ARG1

plush dove
#

👍 got it

#

could you give me a quick example of storing something in a variable?

turbid tide
#

I'm already working on editing your code

plush dove
#

oh, ok, thank you. Sorry for the trouble

turbid tide
#

for stone for example

turbid tide
ancient spire
plush dove
# turbid tide is there a reason you're making variables?

So I have a shop made from DeluxeMenus, and when players buy items, sometimes they buy more than their max amount of items they can hold. The checkitem placeholder gives a number if the player can't hold the excess, so I was going to use that number and multiply it by the price of that item, which I use the item variable to check the item price, and then give the player that amount of money

turbid tide
# ancient spire ok thank you ^^

hmm. that's strange. I've took a look and [18:20:53] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: regionclaimplus [1.1.4]

ancient spire
#

it just doesn't work

turbid tide
#

oh

#

have you tested them with /papi parse me?

ancient spire
#

when I type /papi list then it even displays it as green

ancient spire
turbid tide
#

if you do /papi parse me %regionclaimplus_region_name% for example

#

what does it say?

ancient spire
#

it's a blank message

turbid tide
turbid tide
#

since it shows empty

ancient spire
#

ah now it works

#

but it displays the region name instead of the owner

#

oh wait

#

nvm xD

#

ah yea it works in a region

turbid tide
#

I assume its supposed to return an empty string when you're not in a region

#

and that's what's happening

ancient spire
#

it just says my username

#

that's it

#

1 sec

#

Claim of %regionclaimplus_region_owner%
Lyox (my username)

turbid tide
#

it says that where?

ancient spire
#

the first line when I enter the region

#

and the second one when I use parse me

turbid tide
#

it still shows as %regionclaimplus_region_owner%

ancient spire
#

yes

turbid tide
#

instead of what its supposed to?

#

but if you try it with /papi parse me %regionclaimplus_region_owner% it works?

ancient spire
#

yea

turbid tide
#

what plugin do you show to send the message?

ancient spire
turbid tide
#

wait. so its working or not? bcz I'm getting confused

#

xD

ancient spire
ancient spire
#

so the command

#

not in the config file for some reason

turbid tide
#

then I'm assuming whatever you use to send the message doesn't support PAPI

ancient spire
#

it does

turbid tide
#

possibly just in that specific space.

turbid tide
ancient spire
#

mh that's odd

#

in the config?

turbid tide
#

yeah

#

in that same place

#

where this one is not working

ancient spire
#

there are just 2 placeholders

#

and none of them works

#

I've tried that already

turbid tide
#

yeah but any PlaceholderAPI placeholder

#

like %player_name%

cold temple
mint fable
#

update your expansions

#

I'd recommend all of them

ancient spire
turbid tide
ancient spire
#
flags:
  - use: "allow"
  - pvp: "allow"
  - fire-spread: "deny"

  - greeting: "Claim of &d%player_namer%"
    # everybody but the owner will be greeted
    group: "all"

    # allow both owners and friends to break/place
  - block-place: "allow"
    group: "members"
  - block-break: "allow"
    group: "members"

  - feed-delay: "2"
  - heal-max-health: "3.5"`
turbid tide
ancient spire
#

Did I do something wrong in the conifg?

turbid tide
#

it doesn't accept PlaceholderAPI placeholders there

#

in that specific message

#

most likely

#

maybe contact the plugin's author

ancient spire
#

ah that sounds like a good plan :D

#

Thank you for your help ^^

turbid tide
#

no problem

mint fable
#

how can we tell if parseInt fails @turbid tide

#

because it will return yes if all are given

turbid tide
mint fable
#

ye ik

turbid tide
#

that's how you know

mint fable
#

ya...

cold temple
mint fable
turbid tide
cold temple
#

Gotcha kk 😛

plush dove
#

I'll just try them all

mint fable
mint fable
#

fix it on the top, add the s

#

setPlaceholders

#

instead of setPlaceholder

plush dove
#

👍 works great!

#

what can I put for the bottom part

#

if they have enough inventory space

#

can I just put blank and it wont send any console command?

mint fable
#

sure

#

might say unknown command in console

#

but

turbid tide
#

it will send. just empty. you might get an unknown command message

plush dove
#

yep, I changed it to [takemoney] and now I'm working on a message for it

#

'[message] %changeoutput_>=_{javascript_buymore_{item}}_1_Your inventory didn''t have enough space, giving {math_{javascript_buymore_{item}}*{deluxeshop_{item},buy}}_${math_{deluxeshop_currentAmount}*{deluxeshop_{item},buy}} has been taken out of your account%'

#

Unfortuntely this doesnt work 😅

mint fable
#

why would you use changeoutput instead of just using javascript to send the messages you want to

plush dove
#

Yea, too many nested placeholderes

#

ahhh

#

your righttt

mint fable
#

also, you'd be parsing the give placeholder twice

plush dove
#

AHH your right

plush dove
#

could I have another argument in the placeholder, like %javascript_buymore_{item},arg2%, and the arg2 argument either gives an amount of money to give back, or give a message

#

so for example %javascript_buymore_{item},1% would give me the amount of money to give back to the player, and I would use that placeholder in the [givemoney] action

#

But if I do %javascript_buymore_{item},2% it would give me the message saying how much money is given back and I would use that placeholder in the [message] action

#

ugh this wouldnt work because the giveitem checkitem placeholder is still parsed twice...

junior musk
#

use , instead of _ for multiple arguments in js

plush dove
#

oh ok

#

nothing works since I can only have the placeholder parsed once...

#

if I let it run the command eco give, then it would say taken $200 and then give $200, which looks ugly

mint fable
#

what if you use the js expansion to give the money as well

#

instead of take, only give

#

and only through a js placeholder response

plush dove
#

hmm

#

yea I could

#

thanks

plush dove
#

is there a way to have two console inputs in one [console] action?

#

so like [console] give %player_name% 100 +++ say hi

#

hmm well nvm I'll just do what you suggested

#

alright yea this is too complex, ima just, leave it with no message :)

minor sinew
#

Hello, is there a javascript addon for java 8?

#

looks like its not loading on my java 8 server

turbid tide
#

not anymore. version 1.6.0 is the latest that supported java 8 I believe

minor sinew
#

👍 thanks!

stable ridge
#

how do i add kills and deaths ?

#

or the place holder for it?

civic solstice
#

how can i display online player from one off my servers on a bungeecord?

radiant plaza
civic solstice
radiant plaza
#

/papi ecloud download Bungee

#

/papi reload

#

Use placeholder %bungee_<servername>%

radiant plaza
#

@lean wyvern use pastebin

#

?paste

tender vaporBOT
lean wyvern
#

sorry

civic solstice
lean wyvern
radiant plaza
civic solstice
radiant plaza
#

You're in vanish mode i guess

civic solstice
lean wyvern
lean wyvern
#

someone know how to solve this?

near bear
#

Hello

#

where can i see the placeholderapi versions history for a old version of papi ecloud download ESSENTIALS

#

?

long steppe
#

who would I talk to to get a verified ecloud account? was directed to come here since registration is locked 😄

warm topaz
#

cc: @balmy marten

placid light
#

one very simple question
i can't seem to find in code, related to Pinger PAPI expansion
there is generated option in PlaceholderAPI folder in config.yml called pinger.check_interval and by default it's 30
is 30 here ticks or seconds?

Thank you in advance!

ancient spire
#

Is there a placeholder that lets me display prefixes?

ancient spire
#

which one?

ancient spire
radiant plaza
ancient spire
#

I have installed those

#

but it doesn’t work for me

#

maybe I‘m just typing it wrong

#

:/

ancient spire
radiant plaza
#

What 😕

radiant plaza
ancient spire
radiant plaza
ancient spire
#

but it has no placeholders

#

I use LuckPerms for groups tho

radiant plaza
#

that's outdated

ancient spire
#

it is

#

but it still works

radiant plaza
#

okay wait

#

@ancient spire run /papi ecloud download LuckPerms

#

'/papi reload' after that

ancient spire
#

and what is the placeholder?

radiant plaza
#

%luckperms_prefix%

ancient spire
#

thank you 😄

radiant plaza
turbid tide
#

I don't think that's currently possible. no

#

well not exactly a PAPI issue. more like an outdated expansion. You could open a Pull Request on the expansion's page for this but idk who if anyone is maintaining the expansion anymore

#

no problem

steady girder
#

Hey, Having a problem with PAPI and DeulxeTags. Everything is fine upon first install, but after a reload of papi all placeholders don't work. No errors in console. Anyone seen this before?

turbid tide
turbid tide
#

no need to download the external expansion after btw. that's what breaks it.

#

the expansion is not needed since 1.8.1 or 1.8.2

#

of deluxetags

steady girder
#

noted

#

its been a while

turbid tide
#

👍

plush dove
#

how do I make a math placeholder that doesnt give decimals

#

I did %math_2:0_100/sqrt({clv_player_level})% but if the placeholder is high enough, it gives me a number like 3.2

#

nvm doing 1 fixes it

#

no it doesnt

stable ridge
#

what is the kills and deaths placeholder ?

balmy marten
long steppe
#

👍

radiant plaza
plush dove
#

I have 2 as the precision but it can give me stuff like 3.2

golden galleon
#

[PlaceholderAPI] failed to load class files of expansions
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:412) ~[PlaceholderAPI-2.11.1.jar:?]
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$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.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:113) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:128) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:105) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:574) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.1.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[PlaceholderAPI-2.11.1.jar:?]
... 7 more

#

Does anyone know where this error is?

meager ravine
#

do PlaceholderAPI suport Realistic seasons ?

reef viper
#

I am getting the error
[PlaceholderAPI] failed to load class files of expansions
when trying to setup the placeholderAPI on my scoreboard (kiteboard), i am trying to use the vault expansion... anyone know any fixes?

mild halo
#

hi, i need help with changing placholder text w javascript expansion

austere hawk
reef viper
#

idk, im a messenger

#

The dude is banned from joining discord servers right now

mellow rock
#

Can anyone help me with papi? For some reason when I load the Player expansion after papi reload I do not get any additional placeholders in the /papi list and the Player placeholders do not work. However, /papi parse me %player_world% gives the correct world in the chat.

tender vaporBOT
austere hawk
frosty burrow
#

Anyone knows how to save array data using javascript expansion?

static epoch
#

hi guys,
is SaberFactions available with papi?

ancient spire
#

how can I view my coordinates?

austere hawk
#

Is there a player count placeholder that doesnt count vanished and spectator players?

vivid sparrow
vivid sparrow
ancient spire
vivid sparrow
#

%player_x% %player_y% %player_z%

ancient spire
#

ty

vivid sparrow
#

ask them

plush dove
#

for math, can I have placeholders within placeholders

#

like %math_1:0_{changeoutput_equals_{checkitem_inslot:39,mat:LEATHER_HELMET,namecontains:Farming Helmet &7(&bFarming Set&7)}_yes_1_0}+{changeoutput_equals_{checkitem_inslot:38,mat:LEATHER_CHESTPLATE,namecontains:Farming Chestplate &7(&bFarming Set&7)}_yes_1_0}

plush dove
#

👍

turbid tide
#

if you want complex stuff like this you might want to try one of the scripting expansions

#

like the javascript one

raven sparrow
#

Is there anything that displays a player’s experience overall

turbid tide
#

%player_levels%

plush dove
# turbid tide like the javascript one

I already have it on a JavaScript thing, but I'm passing the placeholder a lot, and it sometimes creates lag. I was trying to test if using JavaScript or putting it all in math would be less laggy

vivid sparrow
#

Time for an actual expansion and apis over placeholders

austere hawk
static epoch
tender vaporBOT
full cedar
#

Can we merge the value of two placeholders?

stark shard
#

Wym by that? Like have them together?

#

If so just do %placeholder% %otherplaceholder%

#

And it could be like world and time next to eachother

full cedar
#

No

#

I mean is

#

Like I'm using bungee placeholders

#

And in my lobby server

#

I setuped a hologram

#

Showing how much players in my minigames server

#

So I want to merge the two placeholders of both minigames and one more server

#

Like %bungee_minigames_minigames2%

#

Like it will merge the value of both placeholder and show it in 1 number

full cedar
buoyant tide
#

I just did?

full cedar
#

But how ?

#

@buoyant tide

#

How to do that idk about that

stark shard
#

I never used it before

#

Maybe something like …[placeholder]+[secondplaceholder]

#

Use {} sorry

#

@full cedar

full cedar
#

Okay

#

Let me try it

#

I also never used it

#

Like I have to merge both of this so what I have to do

#

%bungee_server1%

#

%bungee_server2%

stark shard
#

Maybe %math_{bungee_server1}+{bungee_server2}%

full cedar
#

Hmm okay let me try

stark shard
#

U could use javascript possible

full cedar
#

Wth

#

When I added math expansion

#

Other Placeholders also stopped working

#

It ruined my all placeholders

buoyant tide
#

Just from adding math expansion?

full cedar
#

Ye

#

And then doing /papi reload

buoyant tide
#

All placeholders? Or just some?

full cedar
#

Bungee

buoyant tide
#

Try a server restart

turbid tide
tender vaporBOT
ancient spire
#

Is there a placeholder to display the overworld coordinates in the nether?

turbid tide
#

you can use math

ancient spire
#

oh I can?

#

how

#

like display it the right way already

turbid tide
#

yeah. just multiply the coordinates by 8

#

%math_{player_x}*8%

ancient spire
#

thank you ^^

full cedar
#

Whenever I download math

#

Placeholderapi stops working

#

It's says this version is compiled with the most recent version 55 and something

turbid tide
#

to run the math expansion

full cedar
#

Can't it work in 8?

#

Bec my server version is 1.8.8

turbid tide
#

nope.

#

and if you're on 1.8.8, switch to paper. paper 1.8.8 will work with java 11

full cedar
#

It not works

#

I'm using paper

#

It create a huge log

#

Whatever let me try

#

Still

#

It creates a very endless log

#

If I use java 11 with 1.8.8

#

Isn't any other way I can do that?

#

I updated the server to 1.12 and all started working

fading wave
#

Hello

#

I have a problem when I try to put the extension TownyChat but when I /papi reload, placeholderapi crashes.

stark shard
#

Paper 1.8 doesnt mean u use it

fading wave
stark shard
#

Just type /papi reload and send me the message that comes after it in ur console

fading wave
#

Ok

stark shard
#

?paste

tender vaporBOT
turbid tide
fading wave
#

No ah ok I have to install it, I'll see if it works

full cedar
hollow tusk
#

Hello im trying to use placeholder api and CheckItem-Expansion for the plugin conditional event in order to check if a player has an item so that if they don't I can give it to them but I get a warning when doing this:
'%checkitem_mat:EMERALD,nameequals:&5&lMenu% !equals execute actions1'

pliant pulsar
#

I have some regions created to use them as shops, and when that shop is rented by a player it works perfectly (it is a separate plugin that is linked to WG), the user can place, break, etc but when I use this placeholder I get an empty result:

https://i.gyazo.com/a76911c7b736ed5a7717755db8416b99.png

#

i using 1.18.2

#

PAPI: 2.11.1

#

%worldguard_region_owner:Lobby,-42,84,-486%

#

Returns an empty string.

#

%worldguard_<Any WG Placeholder>:<World>,<X>,<Y>,<Z>%

mint fable
#

just checked, seems accurate

hollow tusk
#

i see I was just doing it wrong, im trying to learn and don't really understand how !equals works I also can't find and answer to it online is there like wiki or cheatsheet to see what these all mean:
equals
!equals
equalsIgnoreCase
startsWith
ect?

mint fable
#

so if you want to check if the player does NOT have the item use this

#

'%checkitem_mat:EMERALD,nameequals:&5&lMenu% equals no'

#

then you put whatever action you want in the actions:

hollow tusk
#

ooooooh I see thank youuu!

mint fable
#

👍

mint fable
#

is there an owner?

pliant pulsar
#

Nothing in console 😦

#

Yes, of course, there an owner

mint fable
#

does region_name return the region name there?

pliant pulsar
#

Wait, in the config where the region is the owners: {} is empty, I'm using AdvancedRegionMarket, maybe I'm doing something wrong and that's why it's not the owner, although it's strange because before in 1.18.1 it worked for me, it stopped working when I updated to 1.18.2.

Anyway, it's quite late and I'm working in 5 hours, tomorrow I'll be here and I'll tell you if I've solved it or not...

Thx 🙂

mint fable
#

/rg info <region> would show you the direct owner via wg

pliant pulsar
#

👍

calm garnet
#

:3

mint fable
#

it'll probably only work when the other person is online, but you can use parseother

supple fiber
#

Hi guys, I created a plug-in with the use of placeholderapi. I used JAVA 8 in 1.16.5 but unfortunately placeholders are not registered in 1.18 with java 17, what could I do in your opinion to create a multicompatibility?

steep knot
#

hello, how instal PAPI on network (velo + paper servers)? i need drop jarFile to all servers or only velocity prexy plugins folder?

turbid tide
#

all servers. no proxy support as of now

pliant pulsar
# mint fable anything in console?

Yesterday it didn't work for me, I don't know why, today I have reset the config of that plugin and the placeholder is working, it must have been some casual error I imagine without importance, certainly too rare because I haven't touched anything. head-%worldguard_region_owner:Lobby,-15,84,-485%

pliant pulsar
#

Sorry Barry

#

🙂

#

Nice bot

austere hawk
#

I'm with a problem in placeholderapi i am using it in my host Titan Hosting

mint fable
#

?paste

tender vaporBOT
mint fable
#

@austere hawk this

#

post the whole error

#

@austere hawk what are you trying to send?

austere hawk
#

the link

mint fable
#

that's not the whole thing

#

?startuplog

tender vaporBOT
austere hawk
#

Oh ok

#

Chat Limit

mint fable
#

send it in a paste

#

?paste

tender vaporBOT
austere hawk
mint fable
#

I'd say check the config and disable the ecloud

austere hawk
#

It don't appear look

mint fable
#

no config made?

austere hawk
#

no

mint fable
#

I'd say try reinstalling the plugin

austere hawk
#

I did

#

Nothing changed

mint fable
#

I'm near the end of my thoughts

#

only other thing I can think is maybe 1.8 is too old? (specifically 1.8)

#

maybe try 1.8.8 or 1.8.9 if you can?

#

Other than that, just wait here and hopefully somebody else can help

austere hawk
#

I will try a sec

#

no

deft anvil
#

Hello, I'm attempting to use PlaceholderAPI#setPlaceholders but I also have a custom placeholder I use within my plugin, being %PREFIX% which I use within my Locale.
I'm having a weird issue where when the message is being parsed, PAPI is translating but then it is leaving my %PREFIX% placeholder in lower-case.

Parsing: %PREFIX% %vault_rank_prefix% %player_name% but output is
%prefix% [Owner] Oliver

Anyone have any ideas?

sharp jay
#

@deft anvil %PREFIX% is not a placeholder

#

Ohhh

#

is /papi parse me %PREFIX% displaying anything?

deft anvil
#

%PREFIX% is a placeholder I use internally

#

The issue is, I'm using #setPlaceholders, then the string being returned is in broken case, meaning my internal %PREFIX% placeholder isn't being translated

#

No

silver minnow
#

nvm

#

pretty sure I heard this issue before

#

lemme see if I can find a response

deft anvil
#

'%STAFF_PREFIX% %PLAYER%&r &7has joined &9%SERVER%&7.'
being parsed through #setPlaceholders outputs
%staff_PREFIX% %player% has joined %server%.
meaning my code won't replace, because of the change in case

mint fable
#

I have also noticed this

#

it happens with setBracketPlaceholders too

#

I think an issue was opened

#

sadly the latest build still has the issue

deft anvil
#

I had an existing language system, but wanted to support PAPI also, so people could add custom placeholders from external plugins, but this is my current issue

mint fable
#

there is no issue opened

deft anvil
#

I'm out of date?

mint fable
#

It looks like this issue has re-emerged then? @carmine veldt I'll tag you since I see you touched this last

mint fable
#

so maybe it was fixed for setPlaceholder

#

give it a try and let me know

deft anvil
#

Generated: May 25, 2022 8:35:03 PM UTC PlaceholderAPI: 2.11.1
I'll have a try with the dev build

mint fable
#

imma be apologizing to piggy soon I bet

turbid tide
#

Pretty sure they fixed it. Might not be on Jenkins yet tho

mint fable
#

ok

plush dove
#

is there a way to turn something like COOKED_PORKCHOP into Cooked Porkchop?

plush dove
mint fable
#
const mySentence = "HelpChat is an awesome discord";
const words = mySentence.split(" ");

for (let i = 0; i < words.length; i++) {
    words[i] = words[i][0].toUpperCase() + words[i].substr(1);
}```
<https://www.freecodecamp.org/news/how-to-capitalize-words-in-javascript/>
vivid sparrow
#

For one letter words substr(1) will throw an erro

jolly crystal
ebon flicker
#

Hello !
I don't know if I'm dumb or what, but PAPI doesn't replace placeholders in this code 🤔 :

                    Bukkit.getOnlinePlayers().forEach(player -> {
                        String messageReplaced = MessageUtils.setupMessage(player, tournamentMessage.getMessage());
                        player.sendMessage(messageReplaced);
                    });

It works in others messages, but it looks like it doesn't work in forEach 🤔

turbid tide
#

what's this method? MessageUtils#setupMessage

ebon flicker
#

Ah, just saw I have 2x the same method

#

But w/e that's not the problem

turbid tide
#

are you sure the placeholders work at all on your server? have you tested them with /papi parse for example?

ebon flicker
#

Well, I was right, I'm dumb.

#

Was using the wrong placeholder 😒

turbid tide
#

👍

ebon flicker
#

Sorry for this waste of time and ty for your help

turbid tide
#

but it would be better as it would change based on the player's language I guess.

plush dove
turbid tide
#

well yeah. its a lot more complicated than what yapper gave you

austere hawk
#

Hi, will math placeholder api work in my own plugin?

turbid tide
#

you have to add support for PlaceholderAPI yourself

unique arch
#

can someone help me when i use %player% in the deluxemenu plugin it returns it as %player% not the players name

junior musk
#

?player

tender vaporBOT
unique arch
#

ok no this is not working

#
items: 
  'stone':
    material: STONE
    data: 0
    amount: 1
    slot: 5
    priority: 1
    display_name: '&bCreate Server'
    lore: 
        - '&6Create a server to play on with your friends!!'
        - '&aLeft click to create.'
        - '&cRight click to close.'
        - ''
        - '&cRequires &7&l[&3VIP&7]&r'
    left_click_commands: 
        - '[message] &aGenerating %player_name% a world.'
        - '[player] mvc %player_name% normal'
        - '[console] mvtp %player_name% %player_name%'
    right_click_commands: 
        - '[close]'
    update: true
turbid tide
unique arch
#

yh

#

ok nm i fixed it

sharp jay
#

nope

plush dove
#

I have this javascript, where it should capitlize the first letter of every word, but it gives me blank as the output

#

I do /papi parse me %javascript_blank,test sentence%

turbid tide
#

_ instead of comma

plush dove
#

got this error

turbid tide
#

yeah. change const to var

plush dove
#

I removed the "let"

#

and it now works

#

but also doesnt

#

it now gives me "Discord" as the output every time

turbid tide
#

send the code again

#

@plush dove

plush dove
#

Yep, that works!

#

thanks!

plush dove
tender vaporBOT
plush dove
#

https://paste.helpch.at/nudecaduma.cs I have this code and I'm trying to make something like COOKED_PORKCHOP into Cooked Porkchop. The capilization of the first letter works, but that only works if its all lowercase. So I'm trying to transform it into all lowercase by adding mySentence.toLowerCase(); on the third line, but it seems to not affect the result and return it in all caps without the underscore. If I remove the for loop and keep the toLowerCase(), then it returns in all lowercase. What did I do wrong?

toxic garden
#

Where is there a list of everything that I parsed?

mint fable
limber ice
limber ice
#

thanks

limber ice
vivid sparrow
#

NPE, pretty obvious what the problem is

fading wave
#

Hello,

I would like to know if it is possible to make a top 5 ranking of the players who have broken the most blocks etc... ?

limber ice
#
    public boolean canRegister() {
        return (plugin = (Statz) Bukkit.getPluginManager().getPlugin(getRequiredPlugin())) != null;
    }```
#

I checked this morning to make sure it was not a missing description in the Statz jar, it is not missing

slate glade
#

Hey, none of my placeholders work, like nothing. I tryed to delete the plugin folder than restart it, and redowloaded the expanisons

#

after i restart the server again

#

all of them are broken

#

any ideas why?

#

i need an response asap

austere hawk
slate glade
#

one sec

austere hawk
#

my god that's a mess

#

Seems like PAPI started up correctly though

#

@slate glade Can you do /papi reload and see if there's anything in the console?

#

And which placeholders aren't working?

vivid sparrow
#

@limber ice send the full code

limber ice
vivid sparrow
#

You are using plugin on getVersion(), and at the point getVersion() is called by papi, the variable is null

limber ice
#

that would be version of Statz?

#

would this work return String.valueOf(1.4);

#

since I can not fix Statz 1.4

#

that seem to work, now to test the placeholders

slate glade
#

and they just stopped working out of the blue

rain delta
#

Having trouble on relational placeholders

#
      return "%luckperms_suffix%";
    } else {
    return "%luckperms_prefix%";
    }
  }```
I'm trying to check the receivers 'pack' variable and execute this statement
junior musk
#

is the pack variable another PAPI placeholder?

vivid sparrow
#

is that javascript?

#

because if you are trying to get the actual suffix/prefix, currently that doesn't also parse the placeholders, it will literally be %luckperms_[suffix/prefix]%

junior musk
#

I ended up making him an expansion

#

he wanted to use relational placeholders to check if the viewer had the pack or not

rain delta
#

I had to make a separate plugin

#

Got that figured out

#

%progress_bar_{math_{vault_eco_balance}/{prisonranksx_nextprestige_cost}}_c:&b■_p:&f■_r:&7■_l:10_m:100_fullbar:&fReady to &f/prestige%
A much simpler issue I'm dealing with is this placeholder telling me this error:

[11:26:12 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{vault_eco_balance%
[11:26:12 WARN]: [PlaceholderAPI] [math] Cause: '{vault' is not a valid number for precision!
[11:26:12 INFO]: [Progress] Couldn't get the number from {math. The progress will be 0%.
[11:26:17 INFO]: [Progress] Couldn't get the number from {math. The progress will be 0%.```
slow thorn
#

somebody know what % is claims blocks?

mint fable
mint fable
rugged widget
#
[05:00:43 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NullPointerException
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI-2.11.1(1).jar:?]
        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$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.NullPointerException
[05:00:43 INFO]: [AuctionHouse] Found PlaceholderAPI plugin```
anyone know what this means
silver radish
#

Version Server:
This server is running CraftBukkit version 3484-Spigot-b6d12d1-7bc728a (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT)

Version Papi plugin:
PlaceholderAPI (2.11.1)

Error:
These commands do not return a response.

Commands:
/papi parse me %world_nearbyEntities_50%
/papi parse DonKolia %world_nearbyEntities_50%

This bug has been around since 1.12.2...thanks for your help.

rain delta
# mint fable you're missing a precision, I added `0` which will round it to a whole number. `...

still didn't work 😦

[20:25:13 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_{vault_eco_balance%
[20:25:13 WARN]: [PlaceholderAPI] [math] Cause: '{vault_eco_balance' is not a valid Math Expression.
[20:25:13 INFO]: [Progress] Couldn't get the number from {math. The progress will be 0%.
[20:25:18 INFO]: [Progress] Couldn't get the number from {math. The progress will be 0%.```
rain delta
#

My thing is, this is displaying correctly as a standalone placeholder:
%math_2_{vault_eco_balance}/{prisonranksx_nextprestige_cost}%

#

But when I put it into the progress bar it doesn't work:
%progress_bar_{math_2_{vault_eco_balance}/{prisonranksx_nextprestige_cost}}_c:&b■_p:&f■_r:&7■_l:10_m:100_fullbar:&fReady to &f/prestige%

#

and gives me the above errors