#placeholder-api

1 messages · Page 195 of 1

plush dove
#

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

ancient spire
#

should I send it again?

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

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
#
FAQ Answer:

Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload

austere hawk
#

Itz_Beer!

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
# static epoch OK
Hey!

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

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

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
#
FAQ Answer:

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

turbid tide
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%

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

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

Oh ok

#

Chat Limit

mint fable
#

send it in a paste

#

?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
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
#
FAQ Answer:

Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload

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
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

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
mint fable
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%.```
tender vaporBOT
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

mint fable
#

It’s because you’re nesting too much

#

Gonna have to use JavaScript to do what you want most likely

rain delta
vagrant depot
#

Hi here, any way to fix "no breaking space" in placeholder?(with Vault) Have try to use "%vault_eco_balanced% %vault_eco_balance_fixed% %vault_eco_balance_commas%" but have a "NNBSP" with that :/

stone thorn
#

hey am having some trouble apparently..

java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed```

I use papermc (papi only plugin this happens too)

Fixed (listed above) ~ search zip file closed for answer.
grizzled lily
#

hello I have a problem the variables stopped working and I updated the plugin to the latest version and even so it does not stop

#

[11:08:23 ERROR]: [PlaceholderAPI] failed to load class files of expansions

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 restart and send that over please this

vagrant depot
mint fable
#

You want commas?

#

is that the one giving the NNBSP

grizzled lily
#

variable de player?

#

%player%? o {player}

tender vaporBOT
#
FAQ Answer:

Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload

mint fable
vagrant depot
mint fable
#

use {} around the vault one instead of %%

wet basinBOT
#

@mint fable Unknown expansion.

vagrant depot
mint fable
#

%formatter_number_format_{vault_eco_balance}%

vagrant depot
woven merlin
#

There is a problem with my placeholderapi plugin can anyone help?

#
com.extendedclip.papi.expansion.javascript.evaluator.LibraryInjectionException: Java Version: 10.0.2
    at com.extendedclip.papi.expansion.javascript.evaluator.util.InjectionUtil.inject(InjectionUtil.java:64) ~[?:?]
    at com.extendedclip.papi.expansion.javascript.evaluator.NashornScriptEvaluatorFactory.create(NashornScriptEvaluatorFactory.java:33) ~[?:?]
    at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.createNashornEvaluatorFactory(JavascriptExpansion.java:176) ~[?:?]
    at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.register(JavascriptExpansion.java:97) ~[?:?]
    at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:139) ~[?:?]
    at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:?]
    at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:?]
    at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?]
    at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:?]
    at java.util.stream.ReduceOps$5.evaluateSequential(Unknown Source) ~[?:?]
    at java.util.stream.ReduceOps$5.evaluateSequential(Unknown Source) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?]
    at java.util.stream.ReferencePipeline.count(Unknown Source) ~[?:?]
    at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?]
    at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.16.5.jar:git-Paper-772]
    at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Paper-772]
    at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1427) ~[patched_1.16.5.jar:git-Paper-772]
    at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:436) ~[patched_1.16.5.jar:git-Paper-772]
    at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1342) ~[patched_1.16.5.jar:git-Paper-772]
    at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1130) ~[patched_1.16.5.jar:git-Paper-772]
    at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-772]
    at java.lang.Thread.run(Unknown Source) [?:?]
Caused by: com.extendedclip.papi.expansion.javascript.slimjar.resolver.UnresolvedDependencyException: Could not resolve dependency : me.lucko:jar-relocator:1.4
    at com.extendedclip.papi.expansion.javascript.slimjar.downloader.URLDependencyDownloader.lambda$download$0(URLDependencyDownloader.java:76) ~[?:?]
    at java.util.Optional.orElseThrow(Unknown Source) ~[?:?]```
gaunt osprey
#

Hello, I am using the "Pinger" placeholder in a network with local servers linked with bungeecord, I need to know with a variable if a server is online and this is done by the "Pinger" placeholder with its variable %pinger_isonline_<server-ip:port>%
But my server is a localhost, I put %pinger_isonline_localhost:<port of my server>%, but it doesn't work for me.

Is there a way to make this variable work with a localhost or some other placeholder that replaces it?

mint fable
#

Does 127.0.0.1 work?

open siren
thorny urchin
#

Hello I need help putting this plugin back onto an older version server please

#

I previously had this working on my 1.7.10 server but upgraded for a little while, I'm now back setting up my 1.7.10 and I cant get plugin to enable my service provider suggested version 1.4 but I don't know where to download

#

It's so I can config my infoboard

turbid tide
tender vaporBOT
#
FAQ Answer:

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

turbid tide
thorny urchin
#

?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

thorny urchin
tender vaporBOT
turbid tide
thorny urchin
#

Ok it fails to load that completely let alone enable it ill upload it now to get the log where do post the paste

turbid tide
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

thorny urchin
#

Placeholderapi

turbid tide
turbid tide
thorny urchin
#

Yea do I post link here

turbid tide
#

yup

thorny urchin
turbid tide
#

ugh. your server is modded

#

the plugin does not support modded servers

thorny urchin
#

ive used it on all my modded

turbid tide
#

I'm not sure how that works? Since the plugin was literally build on the spigot api not on forge. If you're using one of those weird af forge + spigot servers, we don't support those directly either. The plugin works just fine on spigot which means the problem is not really PlaceholderAPI. those hybrids are very well known for being bad.

thorny urchin
#

i have it sort of workin on 2.1.0

#

and one of the versions say ecloud is not enabled

turbid tide
#

2.1.0? that's a 6 years old version.

austere hawk
#

%server_countdown_dd.MM.yyyy-HH:mm_%server_time_dd.MM.yyyy%-20:00%

#

not working

#

invaild format and time

#

i need daily countdown

dusk elbow
turbid tide
ancient spire
#

what is the placeholder for a new line?

#

I always thought %nl% but that's not working :/

vivid sparrow
#

new line?

ancient spire
#

like in a message

#

text
text2

#

I'm pretty sure I've used one in the past but that was quite some time ago and now I have no clue what it was called

vivid sparrow
#

that's from another plugin, papi doesn't have that

shy furnace
#

My extension Player do not work idk why can someone help me

calm charm
#

do you know the placeholders to use for voteparty?

turbid tide
calm charm
tender vaporBOT
turbid tide
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.

shy furnace
#

?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

shy furnace
#

just to hold log

turbid tide
# shy furnace https://paste.helpch.at/kudopunano.md

Seems to be because of the essentials expansion. Since you don't have the essentials plugin it breaks and so does the loader. I recommend you either install essentialsx or remove the expansion if you do not want essentialsx installed

#

and then restart the server

shy furnace
#

i dont use essentials i have removed it now and im restarting it will take a few min

#

my player works now but my %aach_deaths% still dont work

turbid tide
#

mind sending a new startup log. and possibly a new papi dump

turbid tide
shy furnace
#

Advancements

turbid tide
#

ah

turbid tide
shy furnace
#

yea i can see that now when you say that but dont rember removing it

#

thx it works now your are a life saver ❤️

tender timber
#

Hello, what’s the placeholder for how many players online?

plush dove
#

is there a placeholder that checks how many of an item a player has and removes it?

#

checkitem remove needs an amount

#

checkitem amount can see how many

#

I guess I could combine it, but is there an easier way

mint fable
#

it's in the name 😂

plush dove
#

rip, so a javascript would be the way?

tender timber
#

Anyone know what the placeholder for how many players in the server

mint fable
#

%server_online%

frosty burrow
#

can i use papi parse --null yet

mint fable
#

I read back a little bit, but what is the purpose?

#

I saw the baltop thing

#

not sure what the importance of --null is

frosty burrow
#

I use command scheduler to execute parse command every 5 minutes

#

so... I want to parse placeholder in console

mint fable
#

just to see the info?

frosty burrow
#

the javascript placeholder updates the data

mint fable
#

oh not baltop anymore?

#

oh that wasn't even you

#

or it was

frosty burrow
#

baltop?

mint fable
#

Nevermind

mint fable
frosty burrow
#

oh it was not me

mint fable
#

Yes, and I'm just learning about --null

frosty burrow
#

i saw pr was merged but not supported yet in 2.11.1?

mint fable
#

Was just confused at first, but this dev build should have it ^

frosty burrow
#

thks i'll try it

rain hull
#

wondering what the best way to check the vanilla enchant level of the item in there hand e.g. %ironhelmet_protection_level%

mint fable
#

although it might have to go through javascript after

#

?checkitem

tender vaporBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.

mint fable
#

actually, player has it

#

%player_item_in_hand_level_<enchantment>%

rain hull
#

that returns a yes no though

#

im looking for like

#

if you hover over the iron_helmet item

#

itll say

#

Protection: %levelofprtection%

#

kind of looking for a way to show the player the current enchantment levels of the item they are holding in there hand

mint fable
#

%player_item_in_hand_level_<enchantment>% returns yes/no?

#

some of the method names are weird... so I could see it

#

but it sounds like it would return the level of <enchantment>

rain hull
#

hmm

#

im trying it

#

its not even parsing

mint fable
#

did you download the expansion with the commands?

rain hull
#

yes

#

twice

mint fable
#

what if you use PROTECTION

rain hull
#

ok ill try

#

opther random player placeholders do parse

#

that didnt work

mint fable
#

specify the protection

#

there's 5 types

rain hull
#

like this?

mint fable
#

what mc version

rain hull
#

latest

mint fable
#

hmm

#

i'm out of enchantment names

rain hull
#

yeah xd

mint fable
#

can you try a sword with sharpness

rain hull
#

ok

#

one sec

mint fable
#

and test DAMAGE_ALL and SHARPNESS

rain hull
#

NOTHING

#

n othing

mint fable
#

ah

#

ok

#

so

#

I think the method is no longer used

#

and fully removed

#

it's using a deprecated method so

rain hull
#

fuck

mint fable
#

try checkitem

#

?checkitem

tender vaporBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.

rain hull
#

i have worked on tha tone

#

it works for cehcking the level of specific

mint fable
#

/papi parse me %checkitem_getinfo:mainhand_enchantments%

rain hull
#

it gives it in a horrible way lmao

#

i just want an integer

mint fable
#

that should return something like PROTECTION:5

rain hull
#

not a printed list

mint fable
#

then you gotta use javascript to dissect it out

#

:L

rain hull
#

idk javascript lmao

#

do you know of a way to like

#

just show the item in deluxemenus

#

so if you hover it just shows the item that you are holding

mint fable
#

well the player_item_in_hand thing was good

#

:L

rain hull
#

yeah for papi but im kinda looking for something that legit

#

if you hover over it in the deluxemenu

mint fable
#

no

rain hull
#

its exacrtly like if you were hovering over it in the hotbar

mint fable
#

deluxemenus does not have that support

#

you have to build the item

rain hull
#

yup was trying that

#

plyaeritemin hand was poerfect

mint fable
#

lemme see

rain hull
#

until the enchant check doesnt owrk

#

lmao

mint fable
#

ah... newer versions

#

player is made on 1.12

rain hull
#

okay so whats that mean

#

not usable on latest

mint fable
#

no

#

i will export one

rain hull
#

ok

mint fable
rain hull
#

got it doing now

mint fable
#

which should be vanilla minecraft names

#

so protection

#

and sharpness

#

whatever you see in-game

rain hull
#

IT WORKS

#

UR A BEAST

mint fable
#

👍

rain hull
#

and it throws error if no enchant available

#

but if its a real enchant

#

returns 0

mint fable
#

well

rain hull
#

perfect

mint fable
#

it's only yours

#

😉

rain hull
#

damn no gifs haha

#

save me huge

#

was about to buy a javascript udemy course xd

mint fable
#

meh, just regex

rain hull
#

is that a course

mint fable
#

no

rain hull
#

xd

#

welp thanks for ur help

#

gona go to bed and work on this tomorrow

mint fable
#

👍 nice

#

I should too

honest hamlet
#

i need placeholderapi for this plugin
Guilds [30% Sale] 3.5.6.3

plush dove
#

is parseInt(PlaceholderAPI.static.setPlaceholders(OfflinePlayer, "%checkitem_remove_mat:CARROT,strict,amt:" + amount + "%")); correct in parsing a placeholder in javascript?

#

heres my javascript

junior musk
#

try to separate the first % from the rest of the placeholder "%checkitem... -> "%"+"checkitem...

mint fable
#

I just thought about it, and I feel you said it. But can’t you use amount and remove together?

#

Not amt, but amount

#

@plush dove

#

(On mobile so I can’t really check easily)

plush dove
#

So what im trying to do is check how many of an item a player has, remove it, and then output that number so I can use it

#

If I just did remove, it would remove it all, and output "yes"

mint fable
#

?checkitem

tender vaporBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.

mint fable
#

there used to be a note about that

#

ohhh there is a note, just kind of hidden in the scroll bar

#

lame

plush dove
#

ah

mint fable
#

%checkitem_remove_<modifier1>,<modifier2>,<...>% - Removes the items from the players inventory - Can be used with amount, it just has to be after. (Ex. %checkitem_amount_remove_<...>%) Please be careful as it does REMOVE ITEMS FOR GOOD

#

mb I didn't think of that the other day

#

for some reason I thought you tried it

mint fable
#

not remove_amount like I originally put

plush dove
#

yet it has to be after 😂

mint fable
#

ye

#

very pacific about it

plush dove
#

nope

#

still sends yes

mint fable
#

wot

plush dove
#

/papi parse me %checkitem_remove_amount,mat:CARROT,strict%

#

that, right?

mint fable
#

no

#

swap

#

also forgot the _

plush dove
#

swapped doesnt remove the items

mint fable
#

amount isn't a modifier, it's a placeholder type

#

%checkitem_amount_remove_mat:CARROT,strict%

plush dove
#

ah ok

#

yup, that works

mint fable
#

nice!

plush dove
#

:D thats nice

mint fable
#

my bad it took days to realize

#

😂

plush dove
#

happy you found it :D

#

thanks!

plush dove
#

alright, im back to using the javascript since I need to do some math for what im trying to accomplish

#

I currently have this: var amount = ("%" + "checkitem_amount_remove_mat:" + args[0] + ",strict" + "%");

#

This however doesnt parse the placeholder correctly

#

this also doesnt work: var amount = parseInt(PlaceholderAPI.static.setPlaceholders(OfflinePlayer, "%" + "checkitem_amount_remove_mat:" + args[0] + ",strict" + "%"));

#

it just gives me blank

plush dove
mint fable
#

if you're using js I recommend using the amount by itself then

#

and then in remove later

plush dove
#

yep, actually doing that now

mint fable
#

definitely going to need the setPlaceholders tho

plush dove
#

var amount = ("%" + "checkitem_amount_mat:" + args[0] + ",strict" + "%");

#

this sets the amount variable to "undefined"

mint fable
#

well

#

setPlaceholders

#

parse int

#

like earlier

#

prob don't have to parseint on the amount, but if you're using it for math you will for sure

plush dove
#

var amount = parseInt(PlaceholderAPI.static.setPlaceholders(OfflinePlayer, "%" + "checkitem_amount_mat:" + args[0] + ",strict" + "%")); still gives me undefined

turbid tide
#

how are you calling the placeholder?

#

%javascript_SOMETHINGHERE%

plush dove
#

%javascript_storagecrop_CARROT%

#

my file name is storagecrop.js

#

I do indeed have carrots in my inventory as well

turbid tide
#

ugh... welll

#

you're getting args[1] and args[2] and you're only ever passing 1 argument

#

that's what gives you undefined

#

not the amount

plush dove
#

oh, that was just the base thingy. I'm actually parsing %javascript_storagecrop_CARROT,25,2500%

turbid tide
#

you might have to parse args[1] and args[2] using parseInt()

#

try that

plush dove
#

if (amount + parseInt(args[1]) <= parseInt(args[2]))

#

that?

#

nope, doesnt work

#

im pretty sure the amount var is broken

#

because if I replace it with a number like 1

#

it works fine

rain hull
#

@mint fable hey man i got some issues with the placeholder agian xd

tender vaporBOT
rain hull
#

when i parse it it shows the correct value of 1

#

but in the deluxemenu

#

there is nothing

#

says 0

plush dove
#

it just doesnt seem to parse the placeholder

mint fable
#

@rain hull how are you opening the menu

glacial vigil
#

Did you guys know if there's a way to see all placeholders of a specific plugin?

rain hull
#

what do u men

#

mena

#
  • '[openguimenu] helmetenchanter'
mint fable
#

This might’ve been a bug, not sure if fixed or not (in dev builds)

ripe ocean
#

Hello everybody

#

i have a problem when I reload the plugin...

#

nobody know what is this error please to help me

plush dove
rain hull
#

@mint fable

tender vaporBOT
rain hull
#

ill try

mint fable
#

can try without pinging 😂

tender timber
#

Anyone know what the placeholder for server total players?

mint fable
#

%server_online%

tender timber
#

Thanks

limpid raven
#

does "%" -> Remainder operator (Modulo) works in papi placeholders? 🧐 I am trying to parse %math_0_5%4% also %math_0_(5%4)%, %math_0_((5)%(4))%, %math_0_(5)%(4)% and none works (got more tests than those btw 😮‍💨 ), so I am thinking it isn't supported, but well.. I am asking here to confirm it or to learn what I am doing wrong 😔

jagged gyro
limpid raven
jagged gyro
#

No problem ^^

#

I'm also having a problem with the %
Things like %math_0_100-10[prc]% doesn't work and I don't know why

#
[03:43:05 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_100-10[prc]%
[03:43:05 WARN]: [PlaceholderAPI] [math] Cause: '100-10%' is not a valid Math Expression.```
limpid raven
jagged gyro
#

Thank you for the explanation ^^
In fact, I just want to remove 10% from 100 without using 100*0.9

rain hull
#

@mint fable tried that way right now. no lukc

tender vaporBOT
rain hull
#

no luck*

#

sorry just saw to not ping you

#

wont happen again

mint fable
#

Can you send your menu?

#

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

and what are you typing in /papi parse

exotic dew
#

How do I use MySQL to store an existing placeholder?

#

I can't find any documentation on it

tired berry
#

hello, I want to ask, why is the iridiumskyblock expansion not available?

#

Plis why

#

Help

turbid tide
exotic dew
austere hawk
#

Hey! Some of my placeholders don't seem to be working...

#

id provide a screenshot but I guess you can't do that for reasons

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.

turbid tide
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.

austere hawk
#

wait, im trying a diff chat plugin

#

it might just be down to a bad plugin lmao

turbid tide
#

you can test placeholders tho

#

/papi parse me %placeholder_here%

#

if it works like that then its the chat plugin

#

most likely yeah

eternal jackal
#

%ezprestige_prestigetag%

turbid tide
austere hawk
#

/papi ecloud download Skript says that Failed to find an expansion named: Skript

austere hawk
#

I'm from Brazil, and I'm using Google Translate to speak here, I need the PlaceHolderAPI version that works for minecraft version 1.7.10

austere hawk
#

Dude, thank you very much! Really, I've been 5 days, practically without sleep, trying to solve a bug about the simplesclans placeholders! Seriously, it helped a lot!!

ripe ocean
ripe ocean
tender vaporBOT
# ripe ocean Saberfaction
Hey!

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

mint fable
#

try removing the expansion

#

it might not need it

ripe ocean
#

Ok

tired berry
tender vaporBOT
tired berry
#

but it has to use placeholders

#

and I don't know what to use?

short shoal
tired berry
#

Hmm?

#

K

frozen atlas
#

Hello All.
Sorry but i got this error on my 1.12.2 server using last PAPI version 2.11.1 :<
[me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Failed to load expansion class StatisticsExpansion - One of its properties is null which is not allowed!
https://pastebin.com/YGiDNcA2

gritty stone
#

How do I use a placeholder inside a placeholder so if I do
%random_number_1_%random_number100_1000%% would send anything from 1 to 1000

#

We are trying to get TAB to work with items adder image with luckperms

#

/papi parse me %img_%luckperms_primary_group_name%%

#

_NOT_FOUNDluckperms_primary_group_name%

gritty stone
gritty stone
#

Please ping with answer or questions

turbid tide
#

%placeholder_{nested_placeholder}%

#

so {} instead of %%.

#

but again if the expansion doesn't support it, it won't work

ripe ocean
warm topaz
#

if u don't have the quest plugin installed, remove the quests expansion from the expansions folder

ripe ocean
#

thanks

crystal prawn
#

whast the placeholder to show how many total hearts u have and not the current health

ripe ocean
#

how can i do that with the money placeholder, i can make it so when in my "deluxemenu" baltop, i choose to see the daily or semester or menstrual or always baltop? is it possible to do that?

tender vaporBOT
turbid tide
#

@fading radish try %parseother_{kommetatest}_{playerpoints_points}%

#

please keep it to just 1 channel. but what placeholders exactly?

fading radish
turbid tide
#

not really sure I understand what you mean

#

no. not possible with deluxemenus. at least from what I understand you want to do.

crystal prawn
#

whast the placeholder to show how many total hearts u have and not the current health

limber ice
#

@vapid orchidjavascript placeholders in Papi might do what you want

ripe ocean
#

how can i do that with the money placeholder, i can make it so when in my "deluxemenu" baltop, i choose to see the daily or semester or menstrual or always baltop? is it possible to do that?

proud heron
#

I cant find the placeholders for Gradient

limber ice
#

@proud heronhttps://api.extendedclip.com/expansions/gradient/

gloomy crater
#

any idea if the gradient message papi expansion supports markdown like <bold> and <italic>? anything we tried didnt work and maybe we're missing something

#

using %gradient_message_#B200FF_#DBBAFF_<bold>Server Name%

vivid sparrow
#

mini message also has a gradient tag

gloomy crater
#

I believe it suffered from the same issue. lemme check rq

#

<gradient:#0000BF:#BF0000>Server Name</gradient> works, but <gradient:#0000BF:#BF0000><bold>Server Name</gradient> doesnt

#

would need to mention its being used with TAB

junior musk
#

TAB doesn't use MiniMessage

#

though it should work with &l right after the first gradient tag

#

<gradient:#0000BF:#BF0000>&lServer Name</gradient>

gloomy crater
#

so many possibilities and I forgot about that one lol

#

thanks

placid smelt
#

Whats the name of the guy here [I think hes a helper] that make GUIs for people?

#

Used to be like TERFFLOWERS

#

or something like that

turbid tide
supple fiber
#
[19:58:27 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...```


guys I’m doing this plug-in with placeholderapi and it is loaded correctly as it says but it is not shown inside the server, even as installed.

PapiExpansionClass:  https://pastebin.com/AjSVTrsQ
How I register it:

```        if(Bukkit.getPluginManager().isPluginEnabled("PlaceHolderAPI")) {
            this.getLogger().info("PlaceholderAPI plugin detected. You can use our Expansion! (Name: CreditCards)");
            this.getLogger().warning("Server reloads can break the Placeholders System! Restart only.");
            new CardPlaceholders(this).register();
        }```
*(That's in the onEnable)*
turbid tide
supple fiber
#

r u kidding me?