#placeholder-api

1 messages · Page 37 of 1

dusk ivy
junior musk
#

{target}

#

%parseother_{{target}}_{vault_eco_balance}%

dusk ivy
#

ok

junior musk
#

this isn't even a DeluxeMenus menu kekw

dusk ivy
#

No it's a playerprofile menu

dusk ivy
junior musk
#

/papi parse me %vault_eco_balance%

jovial cargo
#

Do y’all have op perms?

junior musk
#

doesn't matter

jovial cargo
#

Vault broke my eco placeholders when I had * perms

junior musk
#

I don't see how it could affect it

#

unless you were using them in an ajleaderboard leaderboard and had the bypass permission

dusk ivy
#

"/papi parse me %vault_eco_balance%"

this command work and display my real money

jovial cargo
#

Then what he gave you should work

junior musk
#

can you use %string_shuffle_{target}% in your menu?
and /papi ecloud download String
/papi reload

dusk ivy
#

but as a placeholder in my GUI menu, it display 2000$ and not my real money (7000$)

this is so strange

#

@junior muskI tried this in my menu , it display strange things

junior musk
#

what does it show?

dusk ivy
#

It change every 0.5 second xD

#

i try to write it

junior musk
#

if it shows those characters {target} shuffled, then that means your PlayerProfile plugin parses PAPI placeholders before the arguments, which means there's nothing we can do for your ParseOther placeholders

dusk ivy
#

gt}{rtae

junior musk
#

yeah

#

then we can't do anything

dusk ivy
#

Ohh okay... :/

jovial cargo
#

Is it cause too many placeholders in a placeholder?

jovial cargo
junior musk
#

no

jovial cargo
#

Oh

junior musk
#

the PAPI placeholders only receive {target} as literaly text, not its actual value (aka the player name)

jovial cargo
junior musk
#

have fun

dusk ivy
#

What is a DM ?

jovial cargo
#

DeluxeMenu

dusk ivy
#

Oh okay

jovial cargo
#

It requires DeluxeMenus

#

And it will solve your issue

dusk ivy
#

I have it, but I have to learn how to use it x)

Thanks a lot for your time and your answers

jovial cargo
#

I’ll make a menu when I get home

dusk ivy
#

Oh really? 😮

jovial cargo
#

Yeah, I’ll convert it. It’s not too much work

dusk ivy
#

Thanks a lot, you're a savior!

jovial cargo
#

I’ll be home in 20 minutes

dusk ivy
#

alright

jovial cargo
#

It should take me like 5-10 minutes to convert it over

#

So around 30 minutes total

dusk ivy
#

Okay sir!

torn trout
#

what is the command to import tags thiings to placeholder

austere nymph
#

I've searched (prob not asking the correct question), I want to have something like this set via Deluxe Menus(%deluxemenus_meta_hud_STRING_NotSet%) that through a DM can be changed by the player to either point to %vanish_playercount% OR %luckperms_expiry_time_veinminer.veinmine.*%.... OR any other placeholder I add for users to swap between all pointing back to %deluxemenus_meta_hud_STRING_NotSet%.

Reason is, we use Oraxen for Hud (Just above player's hunger bar) to show their veinminer time when they are using veinminer but we only have one hud we can use. I'd like it to be more dynamic.

I have no issues configuring Menus in Deluxe Menus, but I'm struggling on whether this is possible to do(without writing my own placeholder) to be able to dynamically change an existing placeholder to reference or in real-time refer back to a placeholder of my choice.
Suggestions please?

warm plover
#

Is there any resources out there that allow placeholders to be parsed in plugins that don't natively support it? ChatInjector used to do this but no longer can.

junior musk
#

probably, though I wouldn't recommend

warm plover
warm plover
#

Essentials not being able to parse placeholders in message when every other plugin can sucks ;-;

junior musk
#

Players may find ways to parse placeholders themselves

warm plover
#

ah..

#

rip, gotcha

junior musk
#

maybe not, but I wouldn't do it just in case🤷

warm plover
#

Hmm, trying to think of another way I might be able to do it

austere nymph
# warm plover Check ServerVariables, could help you with variable manipulation easier

Thank you, I looked through the plugin and while it looks cool I'm still not seeing how it would allow for One variable to look different for different people in the Hud(I could have easily missed it).

I may have found another way with %parseother_{username}{placeholder_without_percent_signs}% I might can do something like %parseother{playername}_{deluxemenus_meta_hud_STRING_NotSet}%. In the Help menu for hud the users would have options that set %deluxemenus_meta_hud_STRING_NotSet% = to vanish_playercount OR luckperms_expiry_time_veinminer.veinmine.* and additional options as I need them.

warm plover
#

Hm.. you might wanna combine parse other and the string expansions replace feature

mint fable
#

however, I have heard of people using luckperms meta to store variables like this

#

by giving the meta to the default group that is, hopefully, inherited by everybody, you can make "global" variables

#

pretty good idea imo

#

hence why I keep repeating it fingerguns

#

although I may have completely misinterpreted what you wanted to do lmao

mint fable
austere nymph
#

%utils_parse_{deluxemenus_meta_hud_STRING_NotSet}%
Yes ty everyone & CJ. I tried the parseother but this ended up working for me. Now the user's can change their hud between veinminer or other options as I build them. Appreciate all the suggestions.

mint fable
#

you don't need utils for that thonking @austere nymph

#

you can just use %deluxemenus_meta_hud_STRING_NotSet%

coral geyser
#

🥺

dark umbra
mint fable
#

the error refers to ProtocolLib

dark umbra
mint fable
#

nope, different plugin

dark umbra
#

Where would I go to get support for that the wiki sent me to this discord trying to get it for another plugin

mint fable
#

hmm, it doesn't seem to say it supports 1.20.x yet

#

you're quite out of date anyhow

dark umbra
#

Yeah I didn’t wanna use 1.20.4 bc then I thought builders would try to use new blocks if there were any and older versions couldn’t see them wasn’t sure how that all plus a lot of plugins don’t support the newer versions so this one seemed good

mint fable
#

no, i meant your protocollib is out of date

dark umbra
#

Oh rlly? I downloaded it right from the spigot site

mint fable
#

how long ago

dark umbra
#

Just now but now that I think about it I might of just downloaded just the api not protocollib itself

mint fable
#

hmm, it says you're loading 4.2.0

#

but, you need the dev build anyway

#

the one i linked

dark umbra
#

I will try that one here in a second so odd bc my test server uses the exact jars I loaded into this one and it works perfectly idk I’ll try the dev build

nocturne nimbus
#

Hi, is it possible to use the same placeholder for same type different objects?

#

for example if I have a house object with many instances and I want to display the amount of players in them for each one

junior musk
#

Uh, depending on how you do it, yeah you can use the same placeholder

#

not really sure how to detail nor if I understood

#

can you give more details as to how the placeholder would work? if it's the same placeholder, how'd you get different house objects? Based on properties the player has I'm guessing? If so, then yes that's possible

torn trout
#

is there a list of placeholder api addons?

junior musk
#

the second one only lists those that need to be downloaded, not the ones that may be included within plugins, and the first one lists both, but since new plugins are being made or updated and placeholders change, it's not 100% complete

torn trout
#

Alright tysm

coral geyser
#

How is Expand Strict support going?

shell tapir
#

Hey, I'm trying to create an expansion.
I created the class added the overrides and registered it.
In the console I now see the following
[14:41:51 INFO]: [PlaceholderAPI] Successfully registered internal expansion: season_balance [1.0.0]
However in TAB plugin I use %season_balance% placeholder and it shows as %season_balance% instead of the value.
Also when I use the /papi parse (assuming this parses placeholders) command it doesn't parse it.
Do I need to do anything else to make it work?

#

There is no need to do ecloud stuff for internal placeholders right?
Is there any disadvantage of using internal placeholders?
It's just a plugin for my own server so I figured internal placeholder makes sense but I can't get it working.

#

Oh nvm I got it, without the underscore it works

jovial cargo
shell tapir
jovial cargo
warm topaz
warm topaz
shell tapir
jovial cargo
#

Any way I can detect the exact nbt int an item has

shell tapir
jovial cargo
jovial cargo
#

for example, I want to use the changeoutput option for custom model data so armor_<armorType> works in deluxemenus with custom model data

warm topaz
#

checkitem expansion

jovial cargo
#

You have to specify the exact int that you are trying to look for

#

Oh wait, I think I can do it with %checkitem_getinfo:<slot>_<modifier1>,<modifier2>,<...>%

sturdy saffron
#

do i need to manually add something to papi with deluxemenus 1.10.2 in order for it to work properly?

#

dont even tell me version is outdated i already know that i just need it cuz using java 8

warm topaz
#

what isnt working exactly?

#

and yes, ur still outdated, 1.10.5 is the version if ur on 1.8
and java 8 support was dropped in 1.13.4

sturdy saffron
#

but it looks like

#

%player_name%

warm topaz
#

have u downloaded the player expansion?

#

?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

sturdy saffron
#

ye i didnt thats what i need

#

cuz i didnt see anything on the spigot page

#

lemme see if its enough

#

@warm topaz everything is working ty

swift grove
#

why the vault not found ? this vault_hasgroup_namegroup

#

why not found?

#

@warm topaz

tender vaporBOT
warm topaz
#

have u downloaded the vault expansion?

swift grove
#

yes

#

other vault found this no

warm topaz
#

oh that specific placeholder?

swift grove
#

vault_hasgroup_namegroup

junior musk
#

probably a new placeholder, try redownloading the expansion

#

I didn't know it existed until now 😅

swift grove
#

is this %vault_hasgroup_<group>%

#

and not found

#

&e%vault_hasgroup_superficie%" this a groupname

swift grove
junior musk
#

what does the placeholder return when you use it in /papi parse me <placeholder here>?

swift grove
#

I didn't try to farwethis command

#

i'm using /sb reload

junior musk
swift grove
#

give a name of placeholder

junior musk
#

did you put your placeholder in there?

#

/papi parse me <your placeholder here>

jovial cargo
#

Imma trick my users 😉

#

Imma make a command where if they run /pex it sends the ver info like the normal command does 🙂

swift grove
junior musk
#

what does it say in chat?

swift grove
#

The name of the placeholder in this case surface

junior musk
#

?imgur

tender vaporBOT
#
FAQ Answer:

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

junior musk
#

send a screenshot

swift grove
#

ok

#

?imgur

tender vaporBOT
#
FAQ Answer:

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

junior musk
swift grove
junior musk
#

what's the exact command you ran?

swift grove
#

im run /papi parse me superficie

junior musk
#

😐

#

you have to use the placeholder

#

the vault_hasgroup thing

swift grove
#

ok

junior musk
#

/papi info vault

swift grove
#

ok

junior musk
#

doesn't work for me either

#

idk why but I guess it's broken

swift grove
#

So I just take it off?

junior musk
#

yeah, don't use the placeholder

dark umbra
tender vaporBOT
junior musk
#

nvm that's the release

dark umbra
#

the 1.20.4 seemed to work

junior musk
#

all good then

vivid sparrow
jovial cargo
#

Will test all the placeholders provided by this expansion

junior musk
#

just test %vault_hasgroup_<group>%

jovial cargo
#

%vault_inprimarygroup_<group>% does not.

#

Im in tier7 and its my primary group but it says "no"

vivid sparrow
#

Hmm, does it return yes on the previous version?

jovial cargo
vivid sparrow
#

I mean, on 1.8.1

jovial cargo
#

Oh, let me try

jovial cargo
#

Trying 1.8.0

vivid sparrow
#

Then thats probably not the primary group in the api

jovial cargo
vivid sparrow
#

Try the groups placeholder

#

I think the first is the primary

jovial cargo
#

Ah

#

It uses the display name of the group and not the actual group name

#

It works, I was just trippin

vivid sparrow
#

Vault simply accepts whats provided by the eco/perms plugin, without any/much validations

jovial cargo
#

Makes sense

swift grove
tender vaporBOT
heavy valve
#

why it doesent work on the scoreboard?

#

using betterscoreboard but same with tab and others similar plugins

junior musk
#

try
/papi ecloud download Utils
/papi ecloud download Formatter
/papi reload
%utils_parse:2_formatter_text_replace_:__{img_{luckperms_prefix}}%

quick sorrel
#

or try use %img_(name of the image)%

#

in your case %img_owner%

junior musk
#

Yeah but it comes from the LP placeholder

heavy valve
junior musk
#

I'll see when I'm home

heavy valve
junior musk
#

sure

#

oh I know why

#

it has a space in it

#

%utils_parse:2_formatter_text_replace_ __{formatter_text_replace_:__{img_{luckperms_prefix}}}%

#

try that

#

@heavy valve

heavy valve
#

same

#

let me try on the scoreborad

junior musk
#

send a screen again

#

oh wait

#

I'm dumb

heavy valve
#

uh

junior musk
#

I wrote the formatter things outside of the img placeholder

#

I'll fix it in a few minutes

heavy valve
#

lol i didnt even check that

#

thank you

junior musk
#

%utils_parse:2_img_{formatter_text_replace_ __{formatter_text_replace_:__{luckperms_prefix}}}%

#

why am I even doing this on phone, in the train

heavy valve
#

works!

heavy valve
junior musk
heavy valve
#

seems cool

junior musk
#

uh

#

not all of them are there though

heavy valve
junior musk
#

but that won't show placeholders that come within other plugins

#

and I lost my internet connection

junior musk
heavy valve
junior musk
#

I don't think I made any wiki for Utils though 😅

#

I'll make one when I get home

#

if I think about it

jovial cargo
#

Utils has a wiki

junior musk
#

well either way, when you do /papi parse me %utils_
it'll show you the list of placeholders

junior musk
jovial cargo
#

I’ve checked it out before when trying to figure it out

junior musk
#

oh yeah, the Readme

jovial cargo
#

Yeah

junior musk
#

that's barely a wiki tho xD

jovial cargo
#

Eh, It works

junior musk
#

it has 2 placeholders out of like 10

jovial cargo
#

It helped me understand the usage

jovial cargo
junior musk
#

there parse, parserel, parseother, color, uncolor, trycatch, juts try too I think?, all thesesame but as relational placeholders, idk if there's more xD

#

escape and shortcut

#

parsesync

jovial cargo
#

Damn, that’s a lot

sleek harness
#

In a bit of a predicament. I have downloaded the CoinsAPI Placeholder, however the placeholder does not register still in my embed. I would provide a screenshot but it does not allow me to.

tender vaporBOT
#
FAQ Answer:

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

sleek harness
junior musk
#

I see a CoinsEngine expansion but no CoinsAPI one (only the jar)

#

check your startup logs, it might tell you why it didn't load

#

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

sleek harness
#

?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

tender vaporBOT
# sleek harness https://paste.helpch.at/kiwihereji.makefile
Detected Incomplete Paste:

I found BetterRTP v3.6.12 - plugin is disabled but no reason why it was disabled!
Please put your startup log found in /logs/latest.log into a new paste.

junior musk
#

[21:36:25] [Server thread/WARN]: [PlaceholderAPI] Cannot load expansion coinsapi due to an unknown issue.

#

rip

sleek harness
#

L

junior musk
#

where did you get the expansion from?

sleek harness
#

Server setup, should I reinstall it?

junior musk
#

nvm it requires a plugin

#

but the plugin doesn't exist anymore

#

why do you even need it since you have CoinsEngine?

sleek harness
#

The coinsengine placeholders arent working,

junior musk
#

using placeholders made for another plugin won't work either KEKW

#

which placeholders aren't working?

#

which ones aren't working? and what did you try as arguments?

sleek harness
#

The %coinsengine_balance_rounded_[currency]%, the argument is %coinsengine_balance_rounded_levelxp%

junior musk
#

/levelxp balance works I presume?

sleek harness
#

No, that isnt a command

junior musk
#

uh

sleek harness
#

I do /levels to see that placeholder

junior musk
#

then shouldn't it be %coinsengine_balance_rounded_levels% ?

sleek harness
#

levelxp is a currency in CoinsEngine

junior musk
#

nvm I'm dumb

sleek harness
#

Fixed, I had a dumb moment aswell

junior musk
#

wrong name?

sleek harness
#

Forgot to add the currency into the files 💀

junior musk
sleek harness
#

Anyway appreciate the help

junior musk
#

and here I was searching through every single line of code

#

I have a headache XD

sleek harness
#

My bad 👀

junior musk
#

dw

sharp geode
#

guys i wanna use placeholderapi in my mmoitems,language,stats.yml
soo anyone have idea ?

keen mica
#

You know how you can format an output of "yes" to be "Yes"

#

How can you do it to format a blank output from a placeholder to be something

#

This basically

sharp bloom
keen mica
sharp bloom
#

if if its null u want it to return N/A?

keen mica
#

I want it to return "Reveille" but I might need to change that return value too

#

For most people N/A works

sharp bloom
#

%changeoutput_equals_input:{worldguard_region_name_capitalized}_matcher:_ifmatch:&7Reveille_else:{worldguard_region_name_capitalized}%

#

ugh

#

just install the changeoutput expansion

#

/papi ecloud download changeoutput

#

/papi reload

keen mica
#

Thank you!! You've been exceedingly helpful

sharp bloom
#

idk if the color will work tho

#

no nvm it will

keen mica
#

It won't for me, but it demonstrates the logic I need

sharp bloom
keen mica
#

:)!

gloomy marsh
#

any form to have 3 menus in one? (like when u put /guns and u r policie show police guns, terrorist or civil)

frozen python
#

hey, my expansions FunnyGuilds doesn't working can u help me? please

smoky spoke
#

how to use %worldguard_<Any WG Placeholder>_<Priority (Lowest number = Highest priority)>% ?

frozen python
smoky spoke
#

nop sorry

frozen python
#

😦

junior musk
junior musk
smoky spoke
junior musk
#

you're probably better off making 3 menus

junior musk
gloomy marsh
#

yeah it more related to factions

#

so player with specific faction have diferent access to guns/armor

junior musk
sharp bloom
#

thats what i ve done at least

austere hawk
#

What's the placeholder for checking the amount of players inside a server?

#

%server_online_events% doesn't seem to work

junior musk
#

%server_online_<world>% only check for worlds, not servers

#

%bungee_<server>% is what you're looking for

austere hawk
#

ohh, thanks let me try that one

junior musk
#

/papi ecloud download Bungee
/papi reload

jovial cargo
junior musk
#

material?

jovial cargo
#

Yeah

junior musk
#

%armor_material_<slot>%

jovial cargo
junior musk
#

helmet, chestplate, leggings, boots, I guess, I don't see why it'd be different

austere hawk
#

What about the status of the server? Like is it offline or online

jovial cargo
#

Placeholder-%parseother_{{player}}_{armor_material_helmet}%

austere hawk
#

How come is it saying that the server is offline?

#

%pinger_isonline_events%

jovial cargo
austere hawk
#

it's still saying that it's offline for some reason

#

nevermind I think i fixed it somehow

junior musk
#

Pinger is half-working half-broken tbf

jovial cargo
#

Pinger always works well for me

junior musk
#

it's acts weirdly sometimes 🤷

jovial cargo
#

Ah

#

This is missing a placeholder:

%player_item_in_hand%

junior musk
#

it's not

jovial cargo
#

Oh, Didnt realize its pages

#

👀 thats a lot of placeholders

junior musk
#

my Player expansion adds a few more as well

jovial cargo
junior musk
#

yeah I saw that

#

cool stuff

jovial cargo
#

Let me know if you want the build

junior musk
#

not atm

jovial cargo
#

Yeah, basically I did all this work for a profile menu that isnt mine. Yk that player I offered to help 2-3 days ago with converting the menu, well basically he wanted it all like that

junior musk
stone sky
#

hi, is there any ways to manipulate a papi data

#

a player on my server took advantage of an npc, and kill farmed for %statistic_player_kills%

#

I want to see if I could set the data pack into a set number

jovial cargo
mint fable
#

you can also manipulate the file to correct just the 1 value if needed

tender vaporBOT
stone sky
#

oops

jade bison
#

anyone know how i request a placeholder in tab

#

"%placeholder "custom_coins" from player%" &f'

#

this doesnt work

jovial cargo
#

Any way to get the number of the custom model data with placeholderapi?

i.e

I used to use armor_<armortype> and it would show the exact item with the custom model data. However I had to switch it to the armor placeholderapi expansion due to me wanting to fetch another users armor and not the user running the command. Any way I can get the custom model data of an item via PlaceholderAPI. I tried checkitem but that only checks if it has specific model data values however I want it to display the custom model data number of the item.

junior musk
#

maybe

jovial cargo
#

Nope

junior musk
#

I just need to find the slot number for each armor slot

#

and then use that in chekcitem

#

%checkitem_getinfo:<slot>_custommodeldata:

#

should work

jovial cargo
#

Nope

junior musk
#

wdym "nope" ?

jovial cargo
#

Shows stone

junior musk
#

what did you try?

jovial cargo
#

placeholder-%parseother_{{player}}_{armor_material_helmet}:{checkitem_getinfo:39_custommodeldata:}%

junior musk
#

wtf did you do

jovial cargo
#

is that not how you do it?

junior musk
#

you know that custommodeldata is used in the model_data: setting right?

#

idk if it supports placeholders though

#

oh yeah I think it does now in dev builds, so you should be fine

jovial cargo
#

But what if the item doesnt include custom model data

junior musk
#

then it'll probably just return 0 or smth

#

what if you try it yourself with /papi parse?

jovial cargo
#
    material: placeholder-%parseother_{{player}}_{armor_material_helmet}%
    slot: 10
    priority: 1
    model_data: %parseother_{{player}}_{checkitem_getinfo:39_custommodeldata:}%```
#

It does an empty string

#

But would that work?

junior musk
#

I guess

jovial cargo
#

Nope, still shows stone

junior musk
#

btw you're missing quotes

#

around the model data placeholder

jovial cargo
#

Waiy

#

wait*

#

It might work

junior musk
#

otherwise you'll break yaml syntax

jovial cargo
#

Its working with an original diamond helmet

junior musk
#

by original, you mean one without any data?

jovial cargo
#

I dont use custom textures, this is for someone who does lol

junior musk
#

and what about with a model data?

#

ah

jovial cargo
#

He should be testing now

#

Man, armor-<armorType> should support other players

#

so I can do {player}-armor-<armorType>

#

Might ask for it

#

Would have made my life so much easier because armor-<armorType> gets the item with custom model data

junior musk
jovial cargo
jovial cargo
# junior musk what?

If I were to use armor-helmet as the material, It would display the item and it works with custom model data

junior musk
#

doubt

jovial cargo
junior musk
#

model data can't be set within the material as far as I know

junior musk
#

and why would ParseOther not work?

jovial cargo
junior musk
#

if the other player is wearing that same helmet, it should output the same thing

junior musk
#

doesn't answer my question but alright

jovial cargo
junior musk
#

still not what I asked

#

I was asking what it returned in /papi parse

jovial cargo
#

for what placeholder?

junior musk
#

the armor one

#

and try with parseother too

junior musk
jovial cargo
# junior musk the armor one

cant do the armor one as its integrated into deluxemenus and a material type, but with parseother it shows armor_helmet

junior musk
#

ah that's what you meant

jovial cargo
#

actually, it displays rmor_helmet

junior musk
#

okay, I understand now

#

the armor- stuff aren't placeholders, they're types of material prefixes

#

that's why I got confused

jovial cargo
#

%parseother_{{player}}_armor_helmet% <- why does parsing this delete the a in "armor_helmet"

junior musk
#

and of course they don't support ParseOther

jovial cargo
junior musk
jovial cargo
#

I guess Ill do it the hard way

junior musk
#

it should show the material, not the model data of course since it's defined in the model_data field, but should stil return the NETHERITE_HELMET material

#

try it in /papi parse and see what it returns

jovial cargo
#

parse which placeholder

junior musk
#

the one we're talking about?

#

the parseother one

jovial cargo
#

%parseother_{{player}}_{armor_helmet}% <- this?

junior musk
#

isn't it armor_material_helmet?

#

it is

jovial cargo
#

Oh yeah, I got that one down

#

%parseother_{{player}}_{armor_material_helmet}% shows DIAMOND_HELMET

junior musk
#

so it's correct?

jovial cargo
#

Yeah

#

But the display name and lore isnt copied over

junior musk
#

yeah of course

#

it's only for the material

jovial cargo
#

any way I can get the name and lore?

#

%player_armor_helmet_name%

#

found one for the name

junior musk
#

checkitem_getinfo

#

or actually player yeah

#

doesn't have lore, rip

#

then checkitem

jovial cargo
#

RIP

#

Checkitem only checks if lorecontains

junior musk
#

right

#

interesting

jovial cargo
#

No way to display lore of an item

junior musk
#

both lorecontains & loreequals show the lore wheb used in getinfo

#

so you're fine

#

just do %checkitem_getinfo:<slot>_loreequals:%

jovial cargo
#

Ah

#

I thought that it might

#

Weird way to get the lore but whatever lol

#

Rip doesnt display lore on new lines

junior musk
#

%formatter_replace_|_\n_{placeholder}%

jovial cargo
#

%parseother_{{player}}_{formatter_replace_|_\n_{checkitem_getinfo:39_loreequals:}}%

#

?

junior musk
#

right, that'll cause issues

jovial cargo
#

Yeah it did

junior musk
#

%utils_parseother:[{player}] _formatter_replace_|_\n_{checkitem_getinfo:39_loreequals:}%

jovial cargo
#

or like:
%utils_parseother:{{player}}_{formatter_replace_|_\n_{checkitem_getinfo:39_loreequals:}}%

junior musk
#

Utils has its own parseother function

jovial cargo
#

Yes, I have formatter installed

junior musk
#

send your menu

jovial cargo
#
    material: placeholder-%parseother_{{player}}_{armor_material_helmet}%
    display_name: "%parseother_{{player}}_{player_armor_helmet_name}%"
    slot: 10
    priority: 1
    model_data: "%parseother_{{player}}_{checkitem_getinfo:39_custommodeldata:}%"
    view_requirement:
      requirements:
        hasEquippedItem:
          type: string equals ignorecase
          input: "%parseother_{{player}}_{checkitem_inslot:39}%"
          output: "yes"
    lore:
      - "%utils_parseother:[{player}] _formatter_replace_|_\n_{checkitem_getinfo:39_loreequals:}%"```
#

Only item that Im using it on as of right now

junior musk
#

idk

#

try in /papi parse

jovial cargo
junior musk
#

😭

#

try to remove the _ in front of formatter

jovial cargo
#

Nope same output just without the _ in front

junior musk
#

sad

jovial cargo
#

%formatter_text_replace_[target]_[replacement]_<text>%

#

Isnt the usage different?

#

Fixed it

#

%utils_parseother:[{player}] formatter_text_replace_|_\n_{checkitem_getinfo:39_loreequals:}%

junior musk
#

aaah

jovial cargo
#

missed "text" in placeholder

junior musk
#

I f-ed up the code

#

oh

#

yeah that too

jovial cargo
#

The other placeholder probably worked too lol

#

Yeah, the other one works

#

%parseother_{{player}}_{formatter_text_replace_|_\n_{checkitem_getinfo:39_loreequals:}}% <- this one

junior musk
#

uh

#

okay

short solar
#

hi is there a placeholder that can do like 1-10 and give a random number betwen those numbers?

#

please ping me

#

nvm

jagged snow
#

%math_{objective_score_{wienorthdeerentdeckt}_{freunde}}+{objective_score_{wienorthdeerentdeckt}_{sonstiges}}%
There may be too many brackets, but is there any other way to sum up certain entries on the scoreboard?

junior musk
#

%utils_parse_math_{objective_score_{wienorthdeerentdeckt}_{freunde}}+{objective_score_{wienorthdeerentdeckt}_{sonstiges}}%

#

/papi ecloud download Utils
/papi reload

#

actually I'm not sure if it'll work correctly

#

%utils_parse_math_0_{objective_score_\{wienorthdeerentdeckt\}_\{freunde\}}+{objective_score_\{wienorthdeerentdeckt\}_\{sonstiges\}}%

#

try the first one, if it doesn't work, try the second one

hardy bay
#

is it possible to use a placeholder in a scoreboard placeholder like this:
%objective_score_NDXPGAIN_{target_block}%

ashen horizon
#

can i do config only formatted multiline strings without it making it a multiline string ingame? for readability within the config?

#

i want to use indenting

vivid sparrow
ashen horizon
vivid sparrow
#

Properties probably dont support this, and you have to find out how to do it for .conf

ashen horizon
#

can i do this to end up with < text

DiscordToMinecraftChatMessageFormat: |-
    <dark_gray>
        <
    </dark_gray>
        text
#

can i have it ignore indents completely

#

i guess it'll interpret it as spaces

#

wait can I do |4

#

does that mean it ignores 4 spaces?

vivid sparrow
#

Try and see

ashen horizon
#

how does the formatting bit of this work?

%player:playtime%/%player:playtime [formatting]% - The player's playtime.

vivid sparrow
#

That is not a placeholder made by us

junior gyro
#

Need bit help with papi using Statistic expension, so when players mine block for some reason it gives +2 but there some that give correct +1

sharp bloom
junior gyro
sharp bloom
#

or use a plugin that tracks the mines blocks or smth

barren iron
#

@warm topaz Good afternoon, I’m using the DeluxMenus plugin and I want to make a unique store so that I can create armor from certain items. Why do I use the ExecutableItems plugin? I created an item called serdsedragon and I want the plugin to check that I have this unique created item, I can’t find the PlaceholderAPI help me please

tender vaporBOT
warm topaz
#

material: executableitems-<your item>

#

i believe you will need to be using the new dev builds for executable items support

#

?dm-builds

tender vaporBOT
barren iron
#
  • '&7Сердце: &b%executableitems-serdsedrak%&7/&b1'
#

for some reason it doesn't work..

#

For nbt data you can use joins by putting them ..in a string. Example (%checkitem_nbtstrings:PublicBukkitValues..executableitems:ei-id=Free_Money%) ^ but how to do it correctly?

sharp bloom
#
click_requirement:
  requirements:
    has_ei:
      type: '>='
      input: '%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=Free_Money%'
      output: '10'

like that

barren iron
#

how can I implement this in DeluxMenus so that this element is taken from my inventory with verification

#

@sharp bloom I'm sorry, but where should I put my unique item between what to put, write the text please

sharp bloom
#

and then use the /ei take %player_name% <id> <amount> in the click_commands: to remove it

barren iron
#

@sharp bloom
click_requirement:
requirements:
has_ei:
type: '>='
input: '%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=serdsedrak%'
output: '1'
deny_commands:
- '[message] &cУ вас недостаточно &6&lЗлато &cдля покупки!'
- '[close]'
left_click_commands:
- '[console] ei take %player_name% serdsedrak 1'
- '[console] ei give %player_name% shlemdragon 1'

#

for some reason it doesn’t work when I press exchange it just gives out without receipts and that’s it... maybe something else

golden cloud
#

Hi guys! Can someone help me figure out how do I fix the problem with this. I want to append the party members as a text once it is done with loop.

Here is my javascript. I'm encounterin internal server error when I run the javascript placeholder.

  var partyCount = parseInt('%mmocore_party_count%');
  var placeholdersText = "";

  for (var i = 1; i <= partyCount.toFixed(); i++) {
    placeholdersText += `%mmocore_party_member_${i}%`;
    if (i < partyCount) placeholdersText += "\n";
  }

  return placeholdersText;
}

generateMinecraftPlaceholders();
junior musk
#

send the error

#

I'm not sure if the JS version the JS expansion uses supports ` `, but could be that

#

?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

junior musk
#

NumberFormatException: For input string: "${i}"

#

oh

#

so yeah, it didn't work

#

oh I think I know why actually

golden cloud
junior musk
#

the JS expansion parses all placeholders in the script before actually running it

#

so it parsed it without waiting for {i} to be replaced

#

placeholdersText += "%"+"mmocore_party_member_"+i+"%";

#

first % is in its own string to avoid parsing

#

I guess `mmocore_party_member_${i}%` could work for the rest but idk and Discord doesn't like ` within ` xD

golden cloud
#

Oh I see but how you parse it tho? It just returns this result

junior musk
#

smh I'm half-working rn

#

placeholdersText += PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%"+"mmocore_party_member_"+i+"%");

#

it's almost 4pm and I only just woke up

golden cloud
#

:)))

junior musk
#

I was gonna say, can you even call this a day ? and then you edited your msg XD

barren iron
golden cloud
#

I am about to put a mmorpg party system with the use of happyhuds.

junior musk
#

and when you click on the item, what happens? does it say you don't have the right item, or does it say it worked but doesn't take the item?

barren iron
junior musk
#

yeah okay

golden cloud
#

Thank you so much! You are genius!

barren iron
junior musk
#

try the /papi parse command and tell me what it ereturns

#

ah I know

#

you're using click_requirement, while you're also using left_click_commands

#

you have to either use click_requirement and click_commands, or use left_click_requirement and left_click_commands

barren iron
junior musk
#

but you did, it's all good

barren iron
# junior musk I was refering to this

left_click_requiremen:
requirements:
has_ei:
type: '>='
input: '%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=serdsedrak%'
output: '1'
deny_commands:
- '[message] &cУ вас недостаточно &6&lЗлато &cдля покупки!'
- '[close]'
left_click_commands:
- '[console] ei take %player_name% serdsedrak 1'
- '[console] ei give %player_name% shlemdragon 1'

junior musk
#

forgot a t at the end of requirement

barren iron
#

still no check

junior musk
barren iron
# junior musk

Lord hallelujah may God grant you health and good luck and may you be helped in the same way thank you very much kind man

valid monolith
#

Hello, i would like to put my expansion to the ecloud. But i do not have rights to register.

junior musk
#

Send a direct message to funnycube with your email and username

steep arch
#

why would bungee_total return 1 while 4 people are online

#

(using velocity)

junior musk
#

excellent question, I have no idea, this expansion is weird

steep arch
#

💀

valid monolith
junior musk
#

ah

#

uh

#

give me a minute

#

are you sure you don't have DMs disabled yourself on this server?

#

I think funny has them enabled

#

I'll tell him anyway

valid monolith
#

uhm

#

jup itscenabled

junior musk
#

alright, I asked him

steep arch
junior musk
#

I don't know

#

we don't even know where the issue comes from 🤷

#

it should work fine, but MC's weird sometimes

finite imp
#

Hello everyone, I apologize if I'm writing in the wrong chat, but I wanted to suggest you use placeholders in items: material:
There are many tasks to use for example: material: '%checkitem_getinfo:11_mat:%'
Thus, I show in the menu the item that the player has in slot 11, if there is no item then it is air or empty, using a placeholder you can make conditions if there is an item and if not
I'm sorry, I'm writing through a translator

junior musk
#

already possible

#

placeholder-%checkitem...

finite imp
#

@junior musk I checked it doesn't work
or have you already updated?

junior musk
#

send your menu

finite imp
#
menu_title: '&0Sale'
open_command:
- salei
size: 54
items:
  9:
    material: structure_void
    slot: 0
    display_name: '&c&lSale:&f %checkitem_getinfo:9_mat:%'
    lore:
    - '&cshift right click = &a⛁ %checkitem_getinfo:9_amt:%'
    view_requirement:
      requirements:
        Perm:
          type: '>='
          input: '%checkitem_getinfo:9_amt:%'
          output: 1

    shift_right_click_commands:
      - '[console] p give %player_name% %checkitem_getinfo:9_amt:%'
      - '[console] item replace entity %player_name% container.9 with air'
      - '[refresh]'
junior musk
#

material: structure_void
?

finite imp
#

And I want it like this:

menu_title: '&0Sale'
open_command:
- salei
size: 54
items:
  9:
    material: '%checkitem_getinfo:9_mat:%'
    slot: 0
    display_name: '&c&lSale:&f %checkitem_getinfo:9_mat:%'
    lore:
    - '&cshift right click = &a⛁ %checkitem_getinfo:9_amt:%'
    view_requirement:
      requirements:
        Perm:
          type: '>='
          input: '%checkitem_getinfo:9_amt:%'
          output: 1

    shift_right_click_commands:
      - '[console] p give %player_name% %checkitem_getinfo:9_amt:%'
      - '[console] item replace entity %player_name% container.9 with air'
      - '[refresh]'

junior musk
#

material: 'placeholder-%checkitem_getinfo:9_mat:%'

finite imp
#

seriously, does this work??? I'll try now... This was not in the documentation

jovial cargo
finite imp
#

@junior musk Thanks a lot.
But there is still a caching problem, I don’t know how to get rid of it.
Can only be solved with the command /dm reload

junior musk
#

I think that was fixed in dev builds

finite imp
#

You are simply super! Thanks for the tips!
There is also a question: How can I use filler material so that the translation from Minecraft is used?

junior musk
#

I don't know if that's possible

finite imp
#

Thanks, we'll look for it

finite imp
#

My dears, please help me again...
The thing is that fills don't work in filling
How can I make this work?
%math_0:_{checkitem_getinfo:9_amt:}*{javascript_shop_SALE,{checkitem_getinfo:9_mat:}}%
individually each placeholder works
{checkitem_getinfo:9_mat:} = STONE
{javascript_shop_SALE,STONE} = 5
{checkitem_getinfo:9_amt:} = 64
This is how it works:
%math_0:_{checkitem_getinfo:9_amt:}*{javascript_shop_SALE,STONE}%
help me please

#

Error in console:
[03:30:35 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [03:30:35 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0:_{checkitem_getinfo:9_amt:}*{javascript_shop_SALE,{checkitem_getinfo:9_mat:}}% [03:30:35 WARN]: [PlaceholderAPI] [math] Cause: '64*1}' is not a valid Math expression.

sharp jay
#

does /papi parse {javascript_shop_SALE,{checkitem_getinfo:9_mat:}} work even?

tender vaporBOT
# jovial cargo It wouldnt
Hey!

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

jovial cargo
#

Too many placeholders in a placeholder

#

Try %utils_parse_math_0:_{checkitem_getinfo:9_amt:}*{javascript_shop_SALE,{checkitem_getinfo:9_mat:}}% @finite imp

#

Dont forget to do /papi ecloud download utils

finite imp
#

Thanks, I'll try

#

Tell me what data storage systems are available in placeholders, for example db, mysql, sqlite. convenient to work with

mint fable
#

lol i made my own expansion/plugin for this

#

for storing item prices

balmy marten
valid monolith
tender vaporBOT
tender vaporBOT
valid monolith
#

Sorry!

#

It's an very simple concept but it works good

balmy marten
austere hawk
#

why does this happen

#
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.CompletableFuture$AsyncSupply@1962fa3a rejected from java.util.concurrent.ThreadPoolExecutor@1bf4817c[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
        at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2065) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:833) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1365) ~[?:?]
        at java.util.concurrent.CompletableFuture.asyncSupplyStage(CompletableFuture.java:1782) ~[?:?]
        at java.util.concurrent.CompletableFuture.supplyAsync(CompletableFuture.java:2005) ~[?:?]
        at org.metadevs.buycraftapi.data.Request.getAllPayments(Request.java:43) ~[?:?]
        at org.metadevs.buycraftapi.payments.Query.loadPayments(Query.java:44) ~[?:?]
        at org.metadevs.buycraftapi.tasks.Tasks$1.run(Tasks.java:34) ~[?:?]
        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.1.jar:git-Paper-68]
        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.20.1.jar:git-Paper-68]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.20.1.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]```
lament gale
#

hi guys

#

is there a way to integrate placeholders on a external website? like visitors can see how many players are there online etc etc?

turbid tide
#

No idea why it does that though. You might need to contact their developers.

turbid tide
lament gale
#

ok thanks

warm topaz
#

wasnt there a rest api plugin made before? idk if it stil works

jovial cargo
#

%utils_changeoutput_equals_input:{parseother_{{player}}_{checkitem_getinfo:39_loreequals:}}_matcher: _ifmatch:&7_else:{parseother_{{player}}_{formatter_text_replace_|_\n_{checkitem_getinfo:39_loreequals:}}}%

#

Any idea why this shows the whole placeholder

mint fable
#

%utils_parse_...

#

@jovial cargo

jovial cargo
#

So if use parse first and get rid of {{player}} and parseother out of the equation

mint fable
#

%utils_parseother:<player>_...

#

then you can get rid of parseother

jovial cargo
#

Alright. Got it.

#

Will that space work in changeoutput. I want to check if the lore is blank/doesn’t exist

mint fable
#

don't put a space

#

just put nothing

#

remove the space, should work

jovial cargo
#

Alright

tender vaporBOT
#
Hey!

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

jovial cargo
jolly matrix
#

hey, With a friend we are trying to made a deluxemenu that is only accessible with a specific tag.
In other words, is there a placeholder that refer vanilla tag ? ( with the /tag <user> add ... command )
because I can find a placeholder for scoreboard objective but not for tags, and I don't know if it exist or not

vivid sparrow
#

There is no placeholder for this, but I guess it can be added to one of the expansions

wet basinBOT
#

@vivid sparrow Unknown expansion.

#

@vivid sparrow Unknown expansion.

#

@vivid sparrow Unknown expansion.

junior musk
vivid sparrow
#

Fucking hell

junior musk
#

it is Objectives

vivid sparrow
#

Stupid bot

junior musk
#

but idk why it doesn't find it

wet basinBOT
#

@vivid sparrow Unknown expansion.

junior musk
#

oh wut

#

ScoreboardObjectives

vivid sparrow
#

Yeah 😐

#

Nope, no way it gets added in this expanion, at least not by me :)))

junior musk
#

yeah, the expansion's code is weird, or I think it was last time I checked

jolly matrix
#

yeah I installed ScorboardObjectives

#

but I does not support tags

sharp bloom
#

aight i need help

#

is this a skill issue or utils not parsing the maths properly

#

but lets take values instead cause thats tricky

vivid sparrow
#

Skill issue, 500 char long placeholder

sharp bloom
#

the error i get is this

[17:19:30 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[17:19:30 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_min((10-10[prc]1)/1%
[17:19:30 WARN]: [PlaceholderAPI] [math] Cause:       'min((10-10%1)/1' is not a valid Math expression.
sharp bloom
#

but it seems that it doesnt get parsed after the ,

vivid sparrow
#

10-10%1 ?

sharp bloom
#

cause it returns this

[17:19:30 INFO]: %math_0_min((10-10[prc]1)/1%, ({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id={deluxemenus_meta_woodworkitemrequirement2_STRING_AIR}}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id={deluxemenus_meta_woodworkitemrequirement2_STRING_AIR}}[prc]{deluxemenus_meta_woodworkitemrequirement2amount_STRING_0})/{deluxemenus_meta_woodworkitemrequirement2amount_STRING_0}))%
sharp bloom
#

%math_0_min(10-10[prc]1)/1% would work fine and return 10

#

but i m trying to make it so %math_0_min((10-10[prc]1)/1, (10-10[prc]1)/1)%

#

and utils doesnt seem to parse after the ,

#

smh wait lemme correct the placehodler a sec :/

vivid sparrow
#

10 mod 1 is just 0 btw

sharp bloom
#

OKK its just an example

sharp bloom
#

and it returns the text

sharp bloom
#

and it returns 10

#

OKK this is such a headache

#

is there a limit to the characters that utils parse or smth?

#

idk

vivid sparrow
#

Thats a sign from God

sharp bloom
#

womp womp

#

found the solution

#

oof

#

i had a random % before the ,

sharp bloom
ocean beacon
#

how to get the last day of month with placeholder ?

junior musk
#

I don't think there is one for that

#

you could make one with JS tho

ocean beacon
sharp bloom
#

would be a perfect placeholder ngl

#

to make a monthly reward system

#

u can still make it meta based or simply by making 12menus for every month tho

junior musk
#

Here's a JS script if you need BukkitServer.getClass().forName("java.time.YearMonth").now().lengthOfMonth()
or BukkitServer.getClass().static.forName("java.time.YearMonth").now().lengthOfMonth() if you're not using QuickJS

#

1 line kekw

junior musk
#

yeah I tested

sharp bloom
#

ugh barry

#

oke w/e

junior musk
#

lul

sharp bloom
#

ig no gifs allowed here :/

mint fable
jovial cargo
tender vaporBOT
tiny geode
#
[18:41:14 INFO]: [Azurite] Enabling Azurite v5.0.8
[18:41:16 INFO]: [PlaceholderAPI] Successfully registered internal expansion: azurite [1.0]
[18:41:16 WARN]: java.lang.NoClassDefFoundError: org/bukkit/event/inventory/EquipmentSetEvent
[18:41:16 WARN]:        at java.lang.Class.getDeclaredMethods0(Native Method)
[18:41:16 WARN]:        at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
[18:41:16 WARN]:        at java.lang.Class.privateGetPublicMethods(Class.java:2902)
[18:41:16 WARN]:        at java.lang.Class.getMethods(Class.java:1615)
[18:41:16 WARN]:        at me.keano.azurite.modules.framework.Module.checkListener(Module.java:29)
[18:41:16 WARN]:        at me.keano.azurite.modules.framework.Module.<init>(Module.java:25)
[18:41:16 WARN]:        at me.keano.azurite.modules.pvpclass.listener.ArmorLegacyListener.<init>(ArmorLegacyListener.java:23)
[18:41:16 WARN]:        at me.keano.azurite.modules.pvpclass.PvPClassManager.<init>(PvPClassManager.java:84)
[18:41:16 WARN]:        at me.keano.azurite.HCF.onEnable(HCF.java:162)
[18:41:16 WARN]:        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321)
[18:41:16 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332)
[18:41:16 WARN]:        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407)
[18:41:16 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:359)
[18:41:16 WARN]:        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318)
[18:41:16 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408)
[18:41:16 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372)
[18:41:16 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327)
[18:41:16 WARN]:        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267)
[18:41:16 WARN]:        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563)
[18:41:16 WARN]:        at java.lang.Thread.run(Thread.java:750)
[18:41:16 WARN]: Caused by: java.lang.ClassNotFoundException: org.bukkit.event.inventory.EquipmentSetEvent
[18:41:16 WARN]:        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:92)
[18:41:16 WARN]:        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:87)
[18:41:16 WARN]:        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
[18:41:16 WARN]:        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
[18:41:16 WARN]:        ... 20 mor

hello, someone knows the reason for this error?

#

azurite is not the problem we think the owner and me

junior musk
#

azurite requires features from newer server versions

jovial cargo
junior musk
#

no idea what that is

jovial cargo
#

- "%utils_parseother:[{player}]_changeoutput_equals_input:{checkitem_getinfo:39_lorecontains:}_matcher:{checkitem_getinfo:39_lorecontains:}_ifmatch:{formatter_text_replace_|_\n_{checkitem_getinfo:39_loreequals:}}_else:&7No lore%"

Issue: If the item has lore; It works. If it does not; It shows: https://prnt.sc/0kyE7fmfirtS

junior musk
#

feels like an issue with Utils, not sure what could have gone wrong

#

I'll check when I have the time

jovial cargo
junior musk
#

I'm not sure

#

unless the placeholder returns a %

#

but it didn't seem to

jovial cargo
#

Im having my dev modify checkitem to include a getinfo modifier of "haslore" which will output yes or no and it should fix it

junior musk
#

so it's possibly a mistake on my side when trying to parse multiple levels of bracket placeholders

jovial cargo
jovial cargo
#

Input and matcher are the exact same placeholder so it will always match

#

So yeah, I guess I have to wait for my dev

junior musk
#

yeah I saw that, but that doesn't change the fact that the Utils placeholder failed to marse several placeholders

jovial cargo
#

It is an issue with utils

junior musk
#

well, it might not be Utils actually, maybe formatter simply doesn't like empty inputs

jovial cargo
#

This should work but sends the else statement for an item with no lore

jovial cargo
junior musk
junior musk
jovial cargo
#

Its very peculiar

junior musk
#

try without the string_length anyways

#

- "%utils_parseother:[{player}]_changeoutput_equals_input:{checkitem_getinfo:39_lorecontains:}_matcher:_ifmatch:_else:{formatter_text_replace_|_\n_{checkitem_getinfo:39_loreequals:}}%"

jovial cargo
#

Thats what I tried initially

junior musk
#

do you have TAB?

jovial cargo
#

Yeah

junior musk
#

/tab parse me %checkitem_getinfo:39_lorecontains:%

jovial cargo
junior musk
#

welp

#

prob broken

jovial cargo
#

Yeah

junior musk
#

I'll check tomorrow

jovial cargo
#

Ok

jovial cargo
#

I think

#

It was formatter

#

Didnt like being in another placeholder

#

- "%utils_parseother:[{player}]_{formatter_text_replace_|_\n_changeoutput_equals_input:{checkitem_getinfo:39_loreequals:}_matcher:_ifmatch:_else:{checkitem_getinfo:39_loreequals:}}%"

#

This is the fixed version

#

@junior musk

#

What a peculiar resolution though

jovial cargo
#

Hmm, however if there is a % in the lore. It breaks the entire placeholder

#

Anyone know of any fixes

simple coyote
#

Is it just me, or does the Essentials baltop not refresh the data in the placeholders unless the Essentials baltop command is executed? Is there a solution for this?

dark umbra
simple coyote
junior musk
short solar
#
function getLevels() {
  var world = BukkitPlayer.getWorld();
  var players = world.getPlayers();
  var totalLevel = 0;

  for (var i = 0; i < players.size(); i++) {
    var currentPlayer = players.get(i);
    // Assuming you have a placeholder for player levels, adjust it accordingly
    var playerLevel = PlaceholderAPI.static.setPlaceholders(currentPlayer, "%clv_player_level%");

    // Parse the level as an integer, default to 0 if parsing fails
    var parsedLevel = parseInt(playerLevel) || 0;

    // Add the parsed level to the total
    totalLevel += parsedLevel;
  }

  // Ensure the total level is at least 0
  totalLevel = Math.max(totalLevel, 0);

  return totalLevel;
}

getLevels().toString();
junior musk
#

/100

short solar
#

huh?

junior musk
#

divide by 100

short solar
#

i dont now how

#

one sac i ask chatgpt

junior musk
#

😐

#

/100

short solar
#

returns noting a empty line

junior musk
#

/ = division

#

simple math

short solar
#
function getLevels() {
  var world = BukkitPlayer.getWorld();
  var players = world.getPlayers();
  var totalLevel = 0;

  for (var i = 0; i < players.size(); i++) {
    var currentPlayer = players.get(i);
    // Assuming you have a placeholder for player levels, adjust it accordingly
    var playerLevel = PlaceholderAPI.static.setPlaceholders(currentPlayer, "%clv_player_level%");

    // Parse the level as an integer, default to 0 if parsing fails
    var parsedLevel = parseInt(playerLevel) || 0;

    // Add the parsed level to the total
    totalLevel += parsedLevel;
  }

  // Ensure the total level is at least 0
  totalLevel = Math.max(totalLevel, 0);

  // Divide the total level by 100
  totalLevel /= 100;

  return totalLevel;
}

getLevels().toString();```
junior musk
#

that's exactly that

short solar
#

its returning noting

#

empty line

junior musk
short solar
#

maby if its under the 0. it returns 0?

junior musk
#

but you said it returns nothing?

short solar
#

yes

junior musk
#

then it can't be that

#

did the placeholder work before?

short solar
#

yes

#

also it needs to start at 1.

#

so the number wond be lower te nit shut be

#

im using math now to make the heath higher by 1.0&level%%

#

so if 20 it will be 1.20

#

made it divide by 10

junior musk
short solar
#

o how to fix it?

#

one sac

#
function getLevels() {
  var world = BukkitPlayer.getWorld();
  var players = world.getPlayers();
  var totalLevel = 0;

  for (var i = 0; i < players.size(); i++) {
    var currentPlayer = players.get(i);
    // Assuming you have a placeholder for player levels, adjust it accordingly
    var playerLevel = PlaceholderAPI.static.setPlaceholders(currentPlayer, "%clv_player_level%");

    // Parse the level as an integer, default to 0 if parsing fails
    var parsedLevel = parseInt(playerLevel) || 0;

    // Add the parsed level to the total
    totalLevel += parsedLevel;
  }

  // Ensure the total level is at least 0
  totalLevel = Math.max(totalLevel, 0);

  return totalLevel/=10;
}

getLevels().toString();
``````js
function getLevels() {
  var world = BukkitPlayer.getWorld();
  var players = world.getPlayers();
  var totalLevel = 0;

  for (var i = 0; i < players.size(); i++) {
    var currentPlayer = players.get(i);
    // Assuming you have a placeholder for player levels, adjust it accordingly
    var playerLevel = PlaceholderAPI.static.setPlaceholders(currentPlayer, "%clv_player_level%");

    // Parse the level as an integer, default to 0 if parsing fails
    var parsedLevel = parseInt(playerLevel) || 0;

    // Add the parsed level to the total
    totalLevel += parsedLevel;
  }

  // Ensure the total level is at least 0
  totalLevel = Math.max(totalLevel, 0);

  return totalLevel;
}

getLevels().toString();
#

number 2 works

junior musk
#

don't use /= if you're returning on the same line, use /

#

well I guess it works, but it's not really useful

#

and I still get nothing

#

could just be me

short solar
#

yes but no number how to fix it?

#

maby the placeholder is not seen as a int?

junior musk
#

I think my JS is broken

#

nevermind, it works fine

short solar
junior musk
#

idk, I got the number

#

it shows correctly

short solar
#

can you give code?

#

papi parse --null %javascript_levelx%
[09:43:59 INFO]:

#

thats what shows up

junior musk
#

that's exactly why it didn't work for me either

#

it requires a player

#

since you're getting the player's world

short solar
#

/papi parse me %javascript_level% works

#

/papi parse me %javascript_level0% not

#

level0.js

junior musk
#

send your javascript_placeholders.yml

short solar
#

where

junior musk
#

here

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

short solar
#

o thats why

#

tnx it works

junior musk
#

?

#

you forgot to add it there?

short solar
#

it works now

#

yes

#

how do i make it so its 16 it will be 1 and ten return totalLevel/20

this is for dungeon level 2

and it needs a reset

short solar
zealous vault
#

How can I make %player_current_exp% have a comma

jovial cargo
jovial cargo
#

Download it from here and then drop it into /placeholderapi/extensions

zealous vault
#

and then /reload?

jovial cargo
zealous vault
#

/papi reload

jovial cargo
zealous vault
#

didnt

#

work

jovial cargo
#

parse it

#

do /papi parse me %number_round-thousand-separator-two-decimals_{player_current_exp}%

#

send me what it says

zealous vault
#

sends back

#

%number_round-thousand-separator-two-decimals_{player_current_exp}%

jovial cargo
zealous vault
#

ok one sec

jovial cargo
#

Alright, now do /papi reload and try the placeholder again

zealous vault
jovial cargo
jovial cargo
#

%formatter_number_format_{player_current_exp}%

#

^ Try that placeholder

#

That one works no matter what

zealous vault
#

YES

#

Thanks!

jovial cargo
#

No problem!

rigid imp
mint fable
#

didn't even know we had that link

rigid imp
#

i use this redirect a LOT so it would be nice if it got updated 🙂

mint fable
rigid imp
safe rose
#

I tried to use papi 2.11.x from repo.extendedclip.com in gradle, but i get > Could not download placeholderapi-2.11.5.jar (me.clip:placeholderapi:2.11.5) > Could not get resource 'https://repo.extendedclip.com/content/repositories/placeholderapi/me/clip/placeholderapi/2.11.5/placeholderapi-2.11.5.jar'. > Could not HEAD 'https://repo.extendedclip.com/content/repositories/placeholderapi/me/clip/placeholderapi/2.11.5/placeholderapi-2.11.5.jar'. it works fine with 2.10.9. Is there anything special I need to use 2.11.5?

balmy marten
grim arrow
#

Hey! What input should I use with this worldguard placeholder?

  • ' &#FBE200&l| &fPvp &b%changeoutput_equals_ALLOW_input:_matcher:{worldguard_region_has_flag_pvp}_ifmatch:&aEnabled _else:&cDisabled &m%'
barren iron
# jovial cargo https://api.extendedclip.com/expansions/number/

Good afternoon, please tell me how I can write a solution so that this icon opens only when a person has these 2 permissions because I set 2 like this and I already have access, but I want 2 permissions to be checked at once
- ''
view_requirement:
requirements:
perm_check:
type: '!has permission'
permission: quest.15
view_requirement:
requirements:
perm_check:
type: '!has permission'
permission: queest.15
left_click_commands:
- ''
- '[sound] BLOCK_LEVER_CLICK'

tender verge
#

!has_permission means doesnt have permission

#
  requirements:
    perm_check:
      type: 'has_all_permissions'
      permissions:
        - quest.15
        - queest.15
left_click_commands:
  - '[sound] BLOCK_LEVER_CLICK'```

this will allow the command to be run only when both quest.15 and queest.15 permissions are present on the player.
#

and checks for the perms at the same time*

broken cipher
#

is there epoch papi expansion? like %server_epoch% to display epoch unix time

jovial cargo
barren iron
#

even put it before permission
type: '!has_all_permissions'
exclamation mark also checked nothing

jovial cargo
#

No, do

View Requirement:
requirements:
perm_check:
type: has permission
permission: your permission
newperm_check:
type: has permission
permission: your permission

barren iron
#

if I'm doing something wrong, excuse me, I'm trying to develop myself if it's not difficult to write exactly how, otherwise, according to every rob, everything is different as if the solutions don't work

barren iron
barren iron
# jovial cargo That works

[18:30:21 INFO]: Julia_Life issued server command: /deluxemenu reload
[18:30:21 WARN]: [DeluxeMenus] Requirement type at path: items.quest_1_locked.view_requirement.requirements.uuuperm_check is not a valid requirement type!
[18:30:21 WARN]: [DeluxeMenus] Requirement type at path: items.quest_1_locked.view_requirement.requirements.uuusperm_check is not a valid requirement type!

barren iron
dusky field
#

so i was gonno use the speed attribute but it kept giving me 0.10001 something something im just wandering how to round it

dark bough
#

Hi! I'm trying to use the parseother expansion placeholders inside a math placeholder (%math_2_({parseother_{Olimposz}_{mmoitems_stat_attack_damage}})*1.1%) but for some reason it doesn't work. The console throws the following error: https://paste.helpch.at/wipisipufi.rb
Thanks for help in advance!

ocean beacon
dark bough
#

Thank you!

dark bough
ocean beacon
dark bough
#

Thank you very much, eternal gratitude

grim arrow
#

Hey! What input should I use with this worldguard placeholder?

  • ' &#FBE200&l| &fPvp &b%changeoutput_equals_ALLOW_input:_matcher:{worldguard_region_has_flag_pvp}_ifmatch:&aEnabled _else:&cDisabled &m%'
stone edge
#

is it necessary to use "ALLOW" there?

#

just wondering, never saw it before

grim arrow
#

I mean I don't know what I need to use I tried with ALLOW , YES, and TRUE