#placeholder-api

1 messages ยท Page 17 of 1

velvet ingot
#

hello, is it possible to change placeholder output using formatter expansion?

#

and is so, how? ๐Ÿ˜…

candid siren
#

is there a placeholder for maximum amount of players that can join? i need it for tab

#

nvm found it

turbid tide
#

Yeah there was a change in the latest PlaceholderAPI version that changed how expansions are loaded so the ones built into plugins have priority if the same identifier appears twice. I know some work is still being done on this but I'd still suggest you talk to the developer to change the expansion name since it is a very generic one.

ocean beacon
#

how to make this possible %math_0_{player_z}-150% player_z = -10

vivid sparrow
#

how to make what possible?

sour igloo
#

I have this error

forest steeple
#

Hello all

#

my friend cannot contact his discord, from laptop or pc or phone ?

urban marsh
#

?not-discord

tender vaporBOT
#
FAQ Answer:

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

scenic meadow
#

Hello, I have a small problem, when I start my server the tabulator and the scoreboard show the %server_max_players% being that I have the latest version installed, and the only way to solve it is by doing /papi reload, is there a reason why it comes out like this ?

cobalt ibex
tender vaporBOT
turbid tide
#

it is not a standalone expansion

#

And what about PlayerList doesn't work?

cobalt ibex
fickle gorge
#

deluxetags breaks every chat format plugin out there when I add the placeholder for it
I am on 1.19.4 paper is there a version of deluxechat that fixes this

#

LPC is not supported

#

chatex breaks when using deluxetags, also chatformat is breaking

left phoenix
#

Does this happen with all tags or just a single tag

trim nest
#

Hi there

#

I'm getting a rather long console error of which I would love if someone could point me in the direction to fix it?
Currently using 2.11.3

turbid tide
trim nest
#

Aight

#

i'll have to see if I can figure out another placeholder

#

only using it to get the total amount of players on the network

brisk brook
#

Hello guys! I do have a precise question about PlaceholderAPI. It's possible today to return integers from nbts that I previously set as a placeholder?

#

Allow me, if possible, to give you all a practical example: I do have a nice armor equipped. I added to each of those armor pieces an nbt integer value, let's call for the sake if this test "coolness". Each piece has a custom integer value (hat = 2, chestplate = 3, leggings = 2, shoes = 1). I would return those integer values to do a global placeholder for example, %checkitem_getinfo:mainhand_nbtStrings:coolness% (in this case, this is for the mainhand I know) to return all of them together (in this case, it would return 8)?

#

Or this requires yes or yes to do a custom plugin using PAPI?

fickle gorge
#

it worked fine for LPC before, but now the only supported chat format plugin with hex and placeholders is chatformat for 1.19.4

#

all placeholders from all plugins works except deluxetags, I have luckperms placeholders, gangs etc working

#

whene I add deluxetags placeholder the chat breaks into vanilla, than I have to remove the pl and reload the chatformat and it works perfectly but I really need the tags

left phoenix
#

can you give an example of one of these tags

fickle gorge
#

sure

#

furry:
order: 2285
tag: '&#fbbc00โ™ฅ&#fb9d00F&#fc7d00u&#fc5e00r&#fc3f00r&#fd1f00y&#fd0000โ˜ฎ'
description: '&c'
permission: deluxetags.tag.furry
bwlo:
order: 2286
tag: '&c&kx&f&nCรกrtel de Sinaloa&c&kx'
description: '&c'
permission: deluxetags.tag.bwlo
bil:
order: 2287
tag: '&#00fb12$&#0cfb11B&#19fb0fi&#25fc0el&#32fc0cl&#3efc0bi&#4bfc09o&#57fc08n&#63fc06a&#70fd05i&#7cfd03r&#89fd02e&#95fd00$'
description: '&fGet this by reaching T10'
permission: deluxetags.tag.bil

#

my players use tags heavily I make custom ones for them to make it eula friendly u know I have to make money somehow

#

they miss their tags

left phoenix
#

What happens if you do `/papi parse me %deluxetags_tag% while they're active

fickle gorge
#

let me see

#

cant paste

#

this

left phoenix
#

do you by any chance use plugman to load plugins

fickle gorge
#

yes, but it was 2 days ago, the server restarted on it self 4 times since than

#

auto restart

#

so this is a clean start

left phoenix
#

Try reinstalling placeholderapi with a new jar

fickle gorge
#

I tried delux dev and latest

#

I did, this is the dev and stable also same

#

clean restart

left phoenix
#

wack uh

fickle gorge
#

do you recommend

#

a version for 1.19.4

#

that I should try

#

I also deleted all extentions

#

and installed one by one

#

there is no extension for deluxetags

left phoenix
#

i believe there's a fucky wucky jar somewhere

fickle gorge
#

tags did work for chat manager, but that one does not support hex

#

my luckperms prefixes are hex

#

I hope new version of LPC comes out

#

it worked fine on that

#

mojang did something with the caht

#

chat

left phoenix
#

the issue from what I know is the installation of deluxetags or placeholderapi you have

fickle gorge
#

ok I will try different placeholder apis and deluxe tags versions on a test server

left phoenix
#

all i can say is carefully redownload both jars Shruge

fickle gorge
#

when this happened before the dev gave me some daily jar, that fixed it

#

long ago

#

it happened to me in 1.19.2 or something

#

and that helped

#

this is my second update to 1.19.4

#

yeah I will go test jars thanks for help

#

thats a good start

#

if all fails I will try to code a chatformatter in skript language

#

always wanted to do that

#

code should be as simple as

#

on chat:
set the chat format to "%player% said %message%"

#

XD

#

I will try that and see if it accepts deluxetags

left phoenix
#

i almost guarantee you it isn't a chatformat problem if you can't parse the placeholder

fickle gorge
#

yeah you are right

#

thats a valid point

#

I will go start testing

#

thanks

twin blaze
#

Any placeholders that get the name of the item? " %player_item_in_hand_name% " doesnt work unless you use an anvil

daring mesa
#

Is there a way to use placeholders in economyshop gui plugin?

#

In the lores

#

example:
%betterteams_name%

#

or %vault_rank%

magic thicket
vivid sparrow
#

"The expansion version is null"

magic thicket
tender vaporBOT
teal wedge
#

I have a vault placeholder that says &4&lOWNER but instead of it being coloured it just shows up with the &4&l, how can i make it coloured?

#

(%vault_prefix%)

meager trench
digital spade
#

is it possible to use 2 placeholders in one?

#

Like I wanna get an image using %img% but I want the image name to be %vault_group%

#

like %img_%vault_group%%

turbid tide
#

try that

turbid tide
tender shore
#

Hello, I've been trying to use the scoreboard objectives expansion with another plugin, but I've not been able to make it work (probably because of the other plugin), I'm trying to use the player name variable for something, it should be like this, right? %objective_score_{EPS-ZombieKill}_{%player_name%}%

twin blaze
orchid isle
#

whats the correct format for this?
%checkitem_amount_<goldingot>%

vivid sparrow
#

mat:gold_ingot perhaps

orchid isle
sharp bloom
orchid isle
sharp bloom
#

u sure u have the checkitem expansion installed?

sharp bloom
orchid isle
sharp bloom
#

ye lol

digital spade
tender vaporBOT
turbid tide
# digital spade tried that already, no luck ๐Ÿ˜ฆ

I know there's an expansion that's called nested or something like that. that expansion should allow you to parse internal placeholders even more than one time. @junior musk is the one that might be able to help with that tho as I've never used it.

digital spade
#

thanks mate

turbid tide
#

ah. it is called utils now. /papi ecloud download utils then /papi reload and it seems the way to use it is like this:

%utils_parse:2_{img_{vault_group}}%

#

@digital spade

turbid tide
digital spade
junior musk
#

it's only when the placeholder returns another placeholder

digital spade
#

gonna say

#

its showing the % in the text

#

with the image

#

so it does work

#

but also showing % before and after the image

junior musk
#

remove the {} around the entire placeholder

#

just keep them around the vault one

sharp bloom
#

^

digital spade
#

worked

#

brilliant

#

thanks man

sharp bloom
#

%utils_parse_img_{vault_group}%

sinful cradle
turbid tide
#

@balmy marten

balmy marten
#

Have you got an expansion ready to publish that's also on github?

cold knot
#

Hey, got a weird question. I'm using AnimatedScoreboard as scoreboard plugin & papi ofcourse, to display my rank value. but for the default players I don't have an prefix (and I don't want one). Is it possible somehow through papi or the scoreboard to display like an "X" when they have no rank? Don't know if this related to papi, or the scoreboard itself.

sinful cradle
tender vaporBOT
balmy marten
#

We'll feel free to ping me when it's up

sinful cradle
#

Ok ๐Ÿ‘

junior musk
teal wedge
tender vaporBOT
cold knot
junior musk
#

here's the syntax

#

you can use the equals option, use the {vault_rank} in the input (you need to use {} because %% would just break the syntax), matcher: because you want to check when it's empty, the text that you want to display (I guess X as you said), and {vault_rank} in the else

cold knot
#

So reading the github and how you've explain this should work then?

%changeoutput_equals_input:{vault_rank}_matcher:equals_ifmatch:X_else:{vault_rank}%

junior musk
#

the matcher should be empty

cold knot
#

So this?

%changeoutput_equals_input:{vault_rank}_matcher:_ifmatch:X_else:{vault_rank}%

junior musk
#

sounds good

cold knot
#

Let me try it

#

Looks like the placeholder works, but when putting myself back on default rank it doesn't display the X in my scoreboard.

junior musk
#

/papi parse me %changeoutput_equals_input:{vault_rank}_matcher:_ifmatch:X_else:{vault_rank}%

#

and /papi parse me %vault_rank%

cold knot
#

Looks like it's giving me the output Player (for my defualt rank)

junior musk
#

put that next to matcher: then

cold knot
#

Looks like right now it's returning the X with it, but for some reason it's still not displaying in my scoreboard

junior musk
#

did you change the placeholder in the scoreboard?

cold knot
#

Yeah, I did

junior musk
#

what does it show in the scoreboard?

#

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

cold knot
#

I'm already seeing the problem if I'm right, apparently i'm using %vault_prefix%, to display my rank due to my color setup, but since the default rank has already the value of &7 to just display a gray color in my chat & tab, so there's probably the issue.

junior musk
#

then use the vault_prefix placeholder instead of the vault_rank one

cold knot
#

And then instead of Player in my matcher i should put &7 in the matcher?

junior musk
#

yeah

cold knot
#

Looks like it's returning the X in my /papi parse me but still not displaying in my scoreboard

#

Using this right now %changeoutput_equals_input:{vault_prefix}_matcher:&7_ifmatch:&c&lโœ˜_else:{vault_prefix}%

junior musk
#

what did you use in the scoreboard?

#

and can you send a screenshot of the scoreboard?

cold knot
#

Sure, one moment (I'll blur out few things)

junior musk
#

or just crop, but yeah, sure

cold knot
cold knot
junior musk
#

and it shows correctly in your chat with /papi parse?

#

and what if you change group? does anything shows?

cold knot
cold knot
junior musk
#

can you send your scoreboard config?

#

?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

cold knot
#

Yeah sure, one moment

junior musk
#

I'm not sure what's wrong, are you sure you reloaded your scoreboard plugin correctly?

cold knot
#

Yeah I did

junior musk
#

what if you try %changeoutput_equals_input:{vault_rank}_matcher:Player_ifmatch:&c&lโœ˜_else:{vault_prefix}% ?

cold knot
#

One second

#

Put in the placeholder u sent but still not working, scoreboard still shows nothing.

#

Huh, with papi parsing this right now, it returns with &7

junior musk
#

wot

#

uh

#

/papi parse me %vault_rank%

cold knot
#

Woops, my fault. You've putted player in english, but we're using the dutch translation of Player, so forgot to change that. But looks like it's working now.

junior musk
#

oh xD

#

is it working in scoreboard as well?

cold knot
#

Yeah, it displays the X now

junior musk
#

perfect ๐Ÿ‘

cold knot
junior musk
#

no idea why it didn't work previously, maybe the color code broke something?

#

idk how FeatherBoard works, never used it

cold knot
cold knot
junior musk
#

oh, I thought it was FB because of the syntax xD

cold knot
#

Ah

#

Now time to see if I can do the same for my "Team" value

junior musk
#

wait it legits is the exact same syntax

#

wtf

cold knot
#

confused

junior musk
#

yeah

junior musk
#

any placeholder should work

#

should

cold knot
#

yeah testing it now haha

#

Ha, first try. Got it working. Anyways thank for the help ๐Ÿ‘

sharp bloom
junior musk
sharp bloom
#

oh

junior musk
#

but I agree, Sublime Text ftw

twin blaze
tender vaporBOT
twin blaze
#

ill try it

tender vaporBOT
magic thicket
twin blaze
magic thicket
#

cloud_sorting: name

#

could it be this ?

glossy fox
#

anyne know why im getting this error?

'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: me.clip:placeholderapi:jar -> duplicate declaration of version 2.11.1 @ line 109, column 21

twin blaze
turbid tide
turbid tide
#

or is this just an error in your server

twin blaze
magic thicket
#

I downloaded it again but still the same error

twin blaze
magic thicket
twin blaze
#

Unless you want to extract the jar file and modify class files

turbid tide
#

If you're using maven, put your pom.xml file in a paste service and send it here, if you're using gradle, do that with your build.gradle file

glossy fox
#

`

#

wow thanks discord

turbid tide
#

put it in a paste bin

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
#

don't send the file

twin blaze
#

Blitzs, I am starting to think that it is impossible to get the item type from (STONE_SWORD) to (Stone Sword) - '[player] uadd name %checkitem_getinfo:mainhand_nameequals:% &eโ˜…' So if the player is holding a Diamond Sword It would change it to (Diamond Sword โ˜…)

turbid tide
glossy fox
turbid tide
#

remove 1

twin blaze
glossy fox
#

oh im such an npc

#

thank oyu

turbid tide
#

no problem

turbid tide
twin blaze
#

I can check

twin blaze
twin blaze
#

This place holder only works with named items

#

If I name the diamond sword to "Bob" and then run it through this command - '[player] uadd name %checkitem_getinfo:mainhand_nameequals:% &eโ˜…' It will become "Bob โ˜…"

turbid tide
#

not sure how you'd make this work unfortunately

twin blaze
#

Unless there is a placeholder expansion that formats "DIAMOND_SWORD" to "Diamond Sword"

turbid tide
#

I'm afraid I do not know any

#

technically you could make a javascript placehjolder for that but you need to know some javascript.

deep hollow
#

Hey, does nested has been replaced or not yet?

tender vaporBOT
deep hollow
#

as I can't download it through ecloud

#

sorry for the mention

junior musk
#

it's utils now

#

it's literally said in the message you replied to

deep hollow
#

but it's nested working bad on performance or it just has been changed to utils?

#

because I'm using nested in some gamemodes

junior musk
#

just renamed to utils

#

maybe slightly more performant

deep hollow
#

oh okay okay

#

tyy

raw rune
#

how to use \n separator in playerlist expansion?

junior musk
#

oh, I forgot to add that back

#

I'll do it when I get home

#

well, unless you are using an old version of the expansion

#

if you're using PlayerList 3.0.0, then wait until I get back home

sharp bloom
#

i have a question related to playerlist too. So i have a gui for the list with player skulls in dm but if there is an "empty" player it ll return a a steve skin is there a workaround so i can make a an item with higher priority?

junior musk
#

well you can either use ChangeOutput to return the player name you want when the placeholder returns Offline, or if you're using 3.0+, you can change the value directly in your PAPI config.yml

sharp bloom
#

ik for the view requirement lol ๐Ÿฅฒ

ocean beacon
#

you made the menu yet ?

uncut folio
#

so it does work but even works when player has armor or tool enchanted with it so giving rewards without taking the book, anyway can i fix it?

  'blast_protection1':
    material: enchanted_book
    amount: 1
    slot: 10
    display_name: '&dBlast Protection 1'
    lore:
      - ""
      - "&7Trade level I book for 1 shard."
    hide_attributes: true
    hide_encaantments: true
    hide_effects: true
    hide_unbreakable: true
    priority: 1
    left_click_requirement:
      requirements:
        item1:
          type: string contains
          input: "%checkitem_enchantments:blast_protection=1%"
          output: "yes"
          deny_commands:
          - '[sound] ENTITY_VILLAGER_NO'
    left_click_commands:
    - '[console] shard give %player_name% 1 PROTECTION_EXPLOSIONS'
    - '[placeholder] %checkitem_remove_mat:enchanted_book,enchantments:blast_protection=1,amt:1%'```
sharp bloom
mint fable
#

right now all your view requirement does is check if any item has blast protection 1

#

/papi ecloud download math
/papi reload
/papi parse me %math_0:_{Crates_Koth}+{Crates+Commun}%

#

@fervent zephyr

mint fable
#

verified now, but will take time to reflect in-game

fervent zephyr
#

ok

mint fable
#

oh you're on older java

#

what mc version?

fervent zephyr
mint fable
#

Please send paste links of text, not images

#

it helpps a lot

fervent zephyr
#

link?

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

fervent zephyr
#

ok

mint fable
#

You'll need to use an older version of the math expansion

#

not sure which one

mint fable
#

also the formatting might be different...

fervent zephyr
#

1.1.0?

mint fable
#

i mean, ya probably, but idk which is the latest version that works for you

#

so you get the best experience you can

mint fable
#

i would go through each version and read the changes

#

or go through the github maybe

#

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

fervent zephyr
#

its works version 1.1.0 math

mint fable
#

yes, hopefully no issues

#

format will be different

#

not %math_0:_...% anymore i think

fervent zephyr
#

The provided value was invalid!
Reason: Unknown operator ':' at position 2

#

@mint fable

#

oh sorry ping-staff

junior musk
#

he legit just told you that

#

check his last msg

mint fable
#

%math_{Crates_Koth}+{Crates+Commun}[precision:0]%
@fervent zephyr

#

try

fervent zephyr
#

it does not work

mint fable
#

it is exactly %Crates_Koth%?

fervent zephyr
#

[12:49:00 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_{Crates_Koth}+{Crates+Commun}[precision:0]%
[12:49:00 WARN]: [PlaceholderAPI] [Math] Cause: '{Crates' is not a valid number for precision!

mint fable
#

O.o

#

math 1.1.0?

fervent zephyr
mint fable
#

bruh

fervent zephyr
fervent zephyr
mint fable
#

what the heck

#

I just informed you that older versions have a different formatting

#

so i looked for the old formatting

#

then you updated to the new formatting

lavish garden
small moon
#

hi, im trying to add a placeholder to one animatedscoreboard

#
  • "&fโ–ช Vote: &f%voteparty_votes_required_party%"
#

but ingame.. is shows as %voteparty_votes_required_party%, it will not show the #

trim mist
analog oar
#

Hello,Im not at coding and I need someones help please. I have a problem with my scoreboard its not working right I dont know what else to do Im hoping you could help me

#

I tried using Placeholder but It doesnt work

mint fable
#

@analog oar what scoreboard plugin are you using

analog oar
#

TAB

mint fable
#

Can you elaborate on "not working right" and "I tried using Placeholder but It doesnt work"?

analog oar
#

It says Money : %vault_eco_balance% but it should say Money: number

mint fable
#

Did you download the vault expansion?

sharp bloom
#

bruh how are you an empty user ๐Ÿ’€

analog oar
#

No, Ill try it

analog oar
mint fable
#

makes it hard to... talk to you

analog oar
#

Sorry

#

I just downloaded the expansion Ill just restart the server

#

It works

#

thanks soo much I was trying to figure this out the whole day

raw rune
#

How can I use player's displayname instead of player's nickname in playerlist expansion?

mint fable
#

I think that a specific option would need to be added for something like this

#

If you're trying to get 1 specific person, it could probably be done, but very complicated

raw rune
#

it's not working ๐Ÿ˜ฆ

mint fable
#

What isn't working?

raw rune
#

a oh, it displays player's name

lament marsh
ocean beacon
steel veldt
#

Was running into the same issue. Long story short, the API it relies on has relatively strict rate-limits (which may not have been present when the expansion was first made, also doesn't help that the expansion basically spammed the API with requests) and will throw an HTTP 429, which inadvertently will result in "failing" to get the players timezone. As there were no connection handlers for timeout / retryDelay, nor any caching of player timezone, it would more often than not hit a 429 and fallback to the default timezone.

#

I've forked the expansion, & added basic caching as well as a retryDelay, which mostly solves the aforementioned issues.

shell tapir
#

Hi everyone I just got a message from one of my customers with a weird LinkageError stacktrace, I have not seen this before and I'm not sure whats causing the problem. Has someone seen this before?

Caused by: java.lang.LinkageError: loader org.bukkit.plugin.java.PluginClassLoader @529702aa attempted duplicate class definition for me.clip.placeholderapi.PlaceholderAPI. (me.clip.placeholderapi.PlaceholderAPI is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @529702aa, parent loader 'app')
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
    at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:?]
    at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:?]
    at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:?]
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:?]
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:?]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:102) ~[patched_1.8.8.jar:git-PaperSpigot-445]
    at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:193) ~[patched_1.8.8.jar:git-PaperSpigot-445]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:98) ~[patched_1.8.8.jar:git-PaperSpigot-445]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:87) ~[patched_1.8.8.jar:git-PaperSpigot-445]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
    at com.andrei1058.bedwars.support.papi.SupportPAPI$withPAPI.replace(SupportPAPI.java:55) ~[?:?]
    at com.andrei1058.bedwars.api.language.Language.getMsg(Language.java:98) ~[?:?]
    at com.andrei1058.bedwars.arena.Arena.addPlayer(Arena.java:518) ~[?:?]
    at com.andrei1058.bedwars.listeners.joinhandler.JoinListenerBungee.onPlayerJoin(JoinListenerBungee.java:182) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) ~[patched_1.8.8.jar:git-PaperSpigot-445]
    ... 15 more
#

Im not saying this is a PAPI bug but because it does have something to do with papi, I thought this might be the best place to ask.

steep tree
#

im assuming the placeholder does work? did you define the placeholder hook twice on startup? @shell tapir

#

although ive never seen this error before

junior musk
#

are you shading PAPI maybe?

signal torrent
#

Hello y'all

#

%progress_bar_{math_{statistic_kill_entity:chicken}+{statistic_kill_entity:pig}}_m:2000%

#

I'm trying something like this

junior musk
#

use the Utils expansion

#

%utils_parse_<placeholder>%

#

%utils_parse_progress_bar_{math_{statistic_kill_entity:chicken}+{statistic_kill_entity:pig}}_m:2000%

signal torrent
#

You're a legend

#

lol

#

Thanks man

shell tapir
#

But after changing it back to H2 it was still not happening. although that could have been the cache of LP

#

Weird stuff but its fixed now, not 100% sure what caused it but hey ๐Ÿคทโ€โ™‚๏ธ

raw rune
#

how to download javascript expansion for 8 java?

sharp bloom
#

guys i have this placeholder %ecobits_top_achievements_1_name% from a custom plugin but it returns the prefix/suffix too. Is there a way that i can parse it to be similar to the %player_name% one?

shell tapir
# shell tapir I wasnt able to reproduce it myself but I am quite sure it was due to a problem ...

I just got the linkage error again but with a different plugin. (TAB)
Its again complaining about a duplicate class definition, I have checked if PAPI has been shaded in any of the plugins I am using and didnt find any.
java.lang.LinkageError: loader org.bukkit.plugin.java.PluginClassLoader @7750a8c attempted duplicate class definition for me.clip.placeholderapi.PlaceholderAPI. (me.clip.placeholderapi.PlaceholderAPI is in unnamed module of loader org.bukkit.plugin.java.PluginClassLoader @7750a8c, parent loader 'app')

turbid tide
shell tapir
ocean beacon
sharp bloom
#

meh idk they told me that its a heavy plugin :/

ocean beacon
junior musk
#

it's really not

gleaming sun
#

Hello, I can't integrate my VoteParty into my scoreboard. How to do ?

#

%voteparty_votes_total%

#

%placeholderapi_voteparty_votes_total%

#

{voteparty_votes_total}

#

{placeholderapi_voteparty_votes_total}

#

Nothing works

balmy marten
tender vaporBOT
#
FAQ Answer:

Spigot Account Linking
To get support for a premium plugin owned by Clip or Glare you will need to verify your spigot account using /spigot in the #bot-commands channel. After you have successfully linked your spigot account you should ask your question in the coresponding channel for that plugin. If you have already linked your account and want to update your roles, run this command /spigot check.

gleaming sun
#

it's good

sharp bloom
#

is there a way to return a placeholder like the %player_name% with gradient colors?

#

so the whole name ll be gradient

twin blaze
#

How can I use checkitem NBT with this data {display:{Name:"{\"text\":\"54\",\"underlined\":true,\"color\":\"white\",\"italic\":false}",Lore:["{\"text\":\"- Material used in Boss summoning\",\"color\":\"gray\",\"italic\":false}"],Enchantments:[{id:"minecraft:unbreaking",lvl:1}]}}

#

I looked at the documentation and example but I am still confused

sharp bloom
#

to check the amount

#

checkitem is the best expansion fingerguns

mint fable
#

umm idk if that's gonna work

#

lol

#

color, underline, italic adds a little complications to name

#

%checkitem_namecontains:54,lorecontains:Material used in Boss summoning,enchantments:unbreaking=1%
This should work

#

I did namecontains to ignore color/formatting, but you can try adding the color/underline maybe &f&n54 or &n&f54 or maybe with ยง instead of &

#

fyi Kristopher: nbtstrings follows this formatting: nbtstrings:<string>=<string>

#

some more info can be found in the tutorial I made

tender vaporBOT
#
FAQ Answer:

CheckItem NBT Tutorial
Check out [this tutorial](#1071634786310967296 message) for information on how to check and remove items
with specific nbt data from a player via the CheckItem Expansion

unborn kettle
#

how can I return colored message with javascript?

sharp bloom
#

give an item to u that has that nbt and parse the placeholder for u from the console

#

it worked for me thonking

#

ye nvm

#

it returns all the items ๐Ÿ’€

#

in my defense i only use the PublicBukkitValues

turbid tide
high star
#

Interesting little problem I'm encountering...I've got %math_{spark_tps_1m}/20*100%, problem is spark returns a formatting code in the placeholder. Any easy way I can strip formatting from a PAPI placeholder result, ideally using only PAPI?

mint fable
#

what is the format it returns

#

or you just mean like &a5

high star
#

section symbol, but yeah

mint fable
#

could be replaced with string

#

%string_substring_<startIndex>_<string>%

high star
#

oh, that's convenient, didn't know that expansion existed

mint fable
#

probably the best bet

#

but you'll need to use utils to parse multiple placeholders

high star
#

literally just all the string methods PAPI-ified, that'll be good to keep in mind

#

yeah was about to ask, thanks

mint fable
#

%utils_parse_math_{string_substring_1_{spark_tps_1m}}/20*100%
try this

#

I did 1 because idk if it was just the & or also &a

#

whatever it is

#

so you can do 1/2 for index

high star
#

is utils built in? Not seeing it on the placeholder listing

mint fable
#

no

#

tanguygab has to make a pr

high star
#

ah ๐Ÿ‘, I'll dig up the ecloud page later

#

...or that works

mint fable
#

/papi ecloud has some commands you can use fyi

#

list, info

twin blaze
#

For its job yeah but all PAPIEX have there own uses

sharp bloom
mint fable
#

hard to cover it all ๐Ÿ˜ญ

#

when can chat gpt just look at the github issues and implement them c'mon

twin blaze
tender vaporBOT
twin blaze
#

It kinda works

#

But not really. It uses the examples but a lot of the time it gets the variables wrong

#

I use it to help me generate repetitive configs

#

So I don't have to type everything out

thick sorrel
#

help, i ran the commands and installed the server addon part, but when i use a variable from it, it says cant understand this expression
its the tps module inside my scoreboard btw

twin blaze
wooden thicket
#

checkitems How do I use namecontains modifiers with rgb color checks?

#

%checkitem_amount_PAPER,custommodeldata:10007,namecontains:#ff6497ยป #bcbcbcเธ–#aeaeaeเนˆ#a0a0a0เธฒ#929292เธ™#848484เธซ#767676เธด#686868เธ™%

#

doesn't work

twin blaze
# sharp bloom ye that was wrong

what would be the right way. I have tried but I cannot figure it out. I have tried many things but have not gotten it right. are the strings written without the brackets in the place holder

#

I unable to find a decent example of checkitem use of NBT data

wooden thicket
#

%checkitem_amount_PAPER,custommodeldata:11111,namecontains:&#ff6497test%

sharp bloom
ancient plank
#

Hello, I got a problem. The PlaceholderAPI Vault expansion doesnt work on my 1.19.2 server. I did /papi ecloud download Vault and /papi reload, but its not working. I tried to download it manually and put it in the expansion folder, but its still not working. Can anyone help me?

delicate vigil
#

how do i add my essentials x balance to scoreboard?

ancient plank
#

You need Vault and then you use a Vault Placeholder.

delicate vigil
#

but it doesnt work

#

%vault_eco_balance% i used this

ancient plank
#

Vault is also not registered if I do /papi list.

delicate vigil
#

Yeah i have that problem aswell

ancient plank
#

Can anyone help?

delicate vigil
#

i have found the problem

#

you need to download expansions for the plugin ur using like vault what im guessing you want to use.

#

download the extensions you need and then go to ur files for the minecraft server you are using go to plugins placeholder api extensions and paste

#

reload server

#

and it should work

#

it did for me

mint fable
#

Usually resolve to checking other things like lore, cmd, custom nbt, etc.

#

tried many ways

#
#RRGGBB
&#RRGGBB
&x&R&R&G&G&B&B```
iirc none of these worked, even with `ยง`
#

most likely due to how the name is stored then accessed, since it's stored as a json, not just a string #aabbccTest

wild wagon
#

hi, I recentl;y updated the vault extension, but now the %vault_eco_balance_formatted% no longer includes the currency symbol and dropped the 2 decimals. Is this an issue or intended design? Is there a config file option to change the 'formatted' format?

mint fable
#

what version did you update from? just asking because I never remembering it having the currency symbol ๐Ÿ˜‚

#

check the papi config for options @wild wagon

wild wagon
#

I used a version I downloaded last year, it is about 14k in size, current one is just 9k

#

papi config has no option for formatting, that's why I asked here

mint fable
#

What did formatted use to show for you? For example what did 1234567890 look like

mint fable
wild wagon
#
  vault:
    baltop:
      check_delay: 30
      cache_size: 100
      enabled: false
    formatting:
      thousands: k
      trillions: T
      quadrillions: Q
      billions: B
      millions: M```
#

there is no option to format โ‚ฌ#.##0,00 or something simmilar

mint fable
#

there is a dp

#

and a commas

#

and for the currency symbol, I believe you will need to add that to wherever you want it

wild wagon
#

both witout currency symbol and without the proper decimal symbol

mint fable
#

Checkout the formatter expansion

sharp bloom
#

u can add the currency symbol yourself? no?

wild wagon
#

yeah, I just put the old one back

mint fable
#

ooh actually I meant numberformatter

#

but both would work

wild wagon
#

the old expansion that is, works just fine

mint fable
#

ok lol

wild wagon
#

cant find anywhere if there is a version of the expansions, papi just reports there a newer version, but no version numbering

mint fable
#

uh

#

there are commands but i don't have a server up right now

#

/papi info <expansion>

#

/papi ecloud info <expansion>

#

all versions are also on the ecloud here (manual download)

vivid sparrow
#

I dont think the expansion has ever added the currency prefix to the result

wild wagon
#

ah, the good one is 1.7.1

mint fable
#

might be a custom vault one

mint fable
#

maybe somebody modified your 1.7.1 vault expansion to add currency symbol and change the decimal format for you? @wild wagon
Do you know where you got it? or if that sounds plausible?

wild wagon
#

version not working for me is 1.8.1

#

I got all from papi ecloud ?

mint fable
#

do you mind sending me the jar?

#

very curious

wild wagon
#

sure, but cant upload here I think?

vivid sparrow
#

what is the result of the placeholder with 1.7.1 and with 1.8.1?

mint fable
#

i sent an fr

thick sorrel
#

why wont place holder api work, ive re ran the commands, it says place holders registered, but it says cant understand this expression on skript reload

#

wait nvm got it

#

how would i make this variable player speicifc. %vault_eco_balance_formatted%

wild wagon
vivid sparrow
#

it is player specific @thick sorrel

thick sorrel
vivid sparrow
#

I don't use skript

wild wagon
#

with 1.7.1 I get โ‚ฌ80.12k with 1.8.1 I get 80k

vivid sparrow
#

that's.. weird

wild wagon
#

might be other plugins messing with it, but not sure, if I put the 1.7.1 back it works as before

wild wagon
#

THis was changed between 1.7.1 and 1.8.1 of the vault expansion ?

vivid sparrow
#

yeah

#

I thought you were talking about the commas placeholder, that's why I said the code is the same

thick sorrel
#

so how do i do it

wild wagon
#

I like progress, but also options, is there a way to format the %vault_eco_balance_formatted% with a config.yml option in the future ? like format: โ‚ฌ#.##0,00

vivid sparrow
#

you are looking for the commas placeholder

thick sorrel
vivid sparrow
#

formatted returns the balance with the prefix k, M, B, etc.

thick sorrel
#

yea i get that

vivid sparrow
#

but yeah I will look into adding an option for this

#

dialed we are not talking to you.

thick sorrel
#

but im returning none.

wild wagon
#

I use a plugin called angeschossen/lands for claiming land on a SMP, it might also change the format, not sure. but with old vault expansion it works as expected, with newer expansion I just get a rounded number

wild wagon
vivid sparrow
#

again, what you are requesting is already done by the commas placeholder, but without the possibility to change the format and the currency symbol can be added manually

thick sorrel
vivid sparrow
#

we are still not talking to you

thick sorrel
#

wow

#

ok

#

im just trying to get help

vivid sparrow
#

ok then wait

thick sorrel
#

the stuff me and the other guy are just similar, i got confused, sry

wild wagon
#

thx for the effort, I will use the old expansion for now, I can work on changing all the config on several servers in due time, setting the old one back is the easy fix for me right now.

#

Also, neither formatting correctly uses my nations decimal and thousands separator anyway ๐Ÿ™‚

#

we use . for thousands, and , for decimals ๐Ÿ˜‰ Including a future currency_symbol: โ‚ฌ, currency_thousands_separator: ,, currency_decimal_separator: . would be greatly appreciated so I can switch those two.

thick sorrel
#

im using the %vault_eco_balance_formatted% variable, but its returning <none>, someone pls help

#

its in a scoreboard btw

mint fable
#

am i crazy

vivid sparrow
#

eco.format() does that

mint fable
#

this is why i don't get involved in vault shit

wild wagon
#

lol

mint fable
#

ah

#

man

#

why do i waste my time on this ๐Ÿ˜ญ

wild wagon
#

all in a days job ๐Ÿ™‚

mint fable
#

job ๐Ÿ™ƒ

#

๐Ÿ˜‚

thick sorrel
mint fable
#

that wasn't for you

thick sorrel
#

holy fuck

mint fable
#

holy fuck what?

vivid sparrow
#

if you want a quick answer, we dont use skript.

mint fable
thick sorrel
#

omfg ima kms

mint fable
#

please don't ๐Ÿ™‚

thick sorrel
#

nah screw this, ill just format the variable independently, this help is completle bs

mint fable
#

I don't even know what you want

vivid sparrow
#

yeah sorry for using java and not using skript lmao

mint fable
#

Everybody here is volunteer, come and go, not know everything

#

I literally could be helping you while in a meeting

#

and just leave for 30 minutes

#

and come back

vivid sparrow
#

the reason why you are getting "none", whatever that means, has nothing to do with papi

thick sorrel
mint fable
#

"ignored", nobody ignored intentionally

#

Please do not think as such

#

I asked you to parse your placeholder in chat

#

you have not done anything of the sort

#

If you parse it in chat using papi commands and it works, the problem lies outside of papi

#

If it doesn't work, the problem lies within papi

#

If you want support, help us help you

#

don't just complain we're not helping you

#

Earlier you asked a question we literally do not know the answer to. If the issue lies within skript you should probably talk to the skript discord...

#

I have had no issue helping people setup scoreboards with plugins that directly support PAPI.

bronze creek
#

Hi there, I'm trying to write a plugin that will allow server owners to run commands when players get a set of advancements.

            String parsedCommand = command.toString();
            Bukkit.getLogger().log(Level.INFO, parsedCommand);
            parsedCommand = PlaceholderAPI.setPlaceholders(p, parsedCommand);
            Bukkit.getLogger().log(Level.INFO, parsedCommand);
            Bukkit.dispatchCommand(Bukkit.getConsoleSender(), parsedCommand);
        }```
I'm trying to use PlaceholderAPI to adapt the String of the command to replace placeholders like %player_name% with usernames, and any other placeholders server admins may place into the commands via the config file. However, I'm seeing that the %player_name% does not get replaced with my username, so instead I get an error "Invalid name or UUID" in the console. Am I doing something wrong?
mint fable
#

Do you have the player expansion @bronze creek ?

bronze creek
bronze creek
#

good to know

mint fable
#

indeed

wooden thicket
tender vaporBOT
knotty pendant
#

Hi! why could that happen?
[06:43:57 WARN]: [PlaceholderAPI] There was an issue with loading an expansion.
[06:43:57 INFO]: 0 placeholder hook(s) registered!

mcmmo expansion. its in the folder. does not show up on /papi list

https://paste.helpch.at/kuwuzuxeno.makefile

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.

#
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

smoky spoke
#

%checkitem_getinfo:mainhand_lorecontains:2%
did i do it right about how i want to get what's written in a specific lore line of an item?

sharp bloom
#

what exactly u wanna use the placeholder for

smoky spoke
#
lorecontains:<text>
Checks if the item's lore contains <text>* ~
Combined with getinfo you can specify a number for <text> and the specific lore line will be returned
#

the 3rd line

sharp bloom
mint fable
#

so 0 is line 1
1 is line 2

#

If it doesn't work could you possibly open an issue on github

sharp bloom
#

idk for me it returns all the lores ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

#

in a lore

#

when i try to parse the placeholder

#

Hello

mint fable
#

either should work but ๐Ÿคทโ€โ™‚๏ธ

sharp bloom
sharp bloom
#

oh wait

#

yuh

mint fable
#

yuh, as in...?

#

not workin on 2.6.8?

sharp bloom
#

yee

mint fable
#

welp ill have to look at that sometime I guess...

sharp bloom
#

%checkitem_getinfo:mainhand_loreequals:2% thats what i use

mint fable
#

if you have time coudl you possibly open an issue on github?

sharp bloom
#

and it returns all the lore

mint fable
#

if not all g

sharp bloom
#

even the %checkitem_getinfo:mainhand_loreequals:10% which doesnt exist

#

suree i will

mint fable
#

thanks โค๏ธ

sharp bloom
#

when i use the %checkitem_getinfo:mainhand_lorecontains:1% it is supposed to return only the lore 2 right?

uncut matrix
#

How do I fix this issue? I have assigned the engine: 'nashorn' onto every js placeholder.

[13:11:31 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: example
[13:11:31 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: cooldown
[13:11:31 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: servertime
uncut matrix
sharp bloom
uncut matrix
#

Yes

#

I can run the /jsexpansion commands

uncut matrix
#

Fixed the issue, looks like my Javascript expansion jar was corrupted or something ๐Ÿ˜‚

hallow cypress
#

can I use ParseOther with an internal placeholder of another plugin that uses {} instead of %%?

rancid nexus
#

I'm using minecraft 1.8. And version 1.12.0 of Deluxe. Whenever I put a placeholder it looks like this, as if I had not configured the colors.

tender vaporBOT
#
FAQ Answer:

Colors not showing up with placeholders?
Some plugins rely/relied on PAPI to color placeholders.
This feature was removed in v2.11.2 of PlaceholderAPI.
If you still need to use those plugins you can download PAPI v2.11.1 here.

high star
#

quick question, if I register multiple expansions, 1 with identifier <servername>, and 1 with <servername>-<somethingElse>, would that cause any issues? I assume using a _ in the ID if part of the id is the ID for another expansion would cause issues, but I expect using something else should be fine, correct?
(@ me pls)

#

(xy, due to how different the logic is, I want to have the expansion that serves as a format converter - basically wrappers for the various Adventure component serializers in a seperate expansion from my main placeholders)

vivid sparrow
#

You can not use _ in the id, but - will be fine and the two expansions will be treated individually

high star
#

excellent, that's what I assumed, just wanted to make sure it wouldn't cause any hidden problems

austere hawk
#

@sharp jay

tender vaporBOT
austere hawk
#

hey

#

Not in dms use a proper channel unless your paying

sharp jay
#

Do not ping me

austere hawk
#

excuse me

sharp jay
#

Im not helping in private message

austere hawk
#

you is cold

#

okay

#

its for that im moving here

sharp jay
#

Be patient and someone will help you when they are free or know the answer

austere hawk
#

okay lol

tender vaporBOT
#
Deluxemenus - Version List
Spigot:

1.8.8
1.12.2
1.16.5
1.17.1
1.18.2

Version:

v1.10.5
v1.13.5 - Latest
v1.13.5 - Latest
v1.13.5 - Latest
1.13.5 - Latest

mint fable
#

@smoky spoke are you around by chance?

#

wondering what version of mc you're using %checkitem_getinfo:mainhand_lorecontains:1% on

#

seemed to work fine for me, I'm on 1.19.3 tho

smoky spoke
#

1.19.3

#

i'll retry

mint fable
#

kristopher tried and had evidence of it failing but idk their version

smoky spoke
#

works on 1.19.4 but do you want me to test at 1.19.3 ?

mint fable
#

no, works on 1.19.3

#

maybe kristopher is in an older version

#

and you might just not have had latest checkitem when testing earlier

smoky spoke
#

ill check rq

mint fable
#

g2g, will check back later

#

i responded to kristopher on the issue on github so they'll see it too

smoky spoke
#

now stuff works
strange

sharp bloom
mint fable
unkempt widget
#

So I'm ha
If there's something I can change whether a config setting or whatnot,

sharp bloom
#

i posted my versions n everything on github

mint fable
#

I saw, was hoping you could possibly test with spigot @sharp bloom ?

sharp bloom
#

spigot as of spigot jar? ๐Ÿ˜€

mint fable
#

?

sharp bloom
#

that's a crime ๐Ÿ’€

#

who uses spigot over paper

#

but ye i can give a test

mint fable
#

Everything we make is made for spigot

#

Paper causes issues ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

sharp bloom
#

where can i even find the spigot jar :/ ?

#

oh nvm

#

nop same thing

#

i posted a screenshot on github

mint fable
#

Can you post a startuplog here or there

#

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

sharp bloom
#

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

Nice all workin now

#

Just wrong version

sharp bloom
normal lintel
#

with %math_2:_{statistic_player_kills}/{statistic_deaths}%
when one or both are 0, it doesn't work

vivid sparrow
#

Yeah ofc, you can not divide by 0 (deaths)

#

do a MAX(1, {statistic_deaths})

ocean beacon
wraith berry
wraith berry
#

as i'm not allowed to send files here, send me a friend request and i'll send it to you

#

that was a lot of sends

sharp bloom
#

damn alonso has an expansion with the iridium api and i just find out about this?

ocean beacon
#

%moregradients_custom_#rrggbb-#rrggbb-modifier=&l_{player_name}%

normal lintel
#

Right now with placeholderapi, if I run %math_2:_{statistic_player_kills}/{statistic_deaths}% and one (or both) is zero it breaks, and doesn't fill in the placeholders. How can I make it just say zero (0/0), or in the case of 1 kill and 0 deaths, etc 1 k/d, 0 kills, 1 death, 0 k/d, 0k 0d, 0 k/d?

ocean beacon
#

How can I make it just say zero (0/0)

normal lintel
ocean beacon
mint fable
#

are you wanting to show the actual ratio?

ocean beacon
mint fable
#

like 3/2 would show 1.50 kdr

normal lintel
#

it looks weird

mint fable
#

@normal lintel

mint fable
normal lintel
#

how would i put them together tho

mint fable
#

What are you wanting to show if the player has 0 kills and 0 deaths?

#

0.00? %math_2:_{statistic_player_kills}/max(1,{statistic_deaths})%

#

1.00? %math_2:_max(1,{statistic_player_kills})/max(1,{statistic_deaths})%

#

0/0? some sort of changeoutput placeholder possibly (if you want it #/# only when it's 0/0)

ocean beacon
#

i don't think this max(1,{statistic_player_kills}) necessary

mint fable
#

1/1 = 1

ocean beacon
#

right

#

0 kdr

mint fable
#

ye

#

weird

#

1 kdr

#

not as weird

ocean beacon
#

like 2/3

#

0.66

mint fable
#

ya, just gotta get gude

#

anything under 1.00 is just bad

ocean beacon
#

default value must be 0

normal lintel
#

yea

coral ibex
#

2

#

papi ecloud download javascript
[12:25:59 INFO]: Failed to find an expansion named: javascript

#

please fix

balmy marten
#

It's not an issue

junior musk
balmy marten
#

o, feel free to pr

junior musk
#

And small suggestion to avoid those kind of issues in the future, could PAPI return a message like This expansion has not been verified by PlaceholderAPI's staff! If you still want to use it, go to <link> and follow the manual installation steps! ?

#

well, not sure if that would really help since a lot of people don't even update their plugins, but I guess it could still help a little xD

balmy marten
#

fixed the placeholder list page

turbid tide
#

verified PlayerList @junior musk

turbid tide
#

the reason the numbers are so nice is bcz it still supports 1.8+

junior musk
#

wasn't expecting that

#

I was also expecting people to not update to the latest version because of colors not being parsed anymore

onyx orchid
#

any place holder api for kill counter?

vivid sparrow
#

%statistic_kills%

onyx orchid
#

any ecloud download for that?

vivid sparrow
#

statistic

onyx orchid
vivid sparrow
#

np

onyx orchid
#

what about death count, and another question is there anyway to make the placeholder bold

onyx orchid
junior musk
vivid sparrow
#

bold? Just add &l before

still stream
#

INFO]: [PlaceholderAPI] Successfully registered expansion: mcmmo [1.0]
[PlaceholderAPI] Failed to load expansion mcmmo. Identifier is already in use.
[PlaceholderAPI] Cannot load expansion mcmmo due to an unknown issue.

balmy marten
#

Please provide your server log and a papi dump

tender vaporBOT
#
FAQ Answer:

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

#
FAQ Answer:

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

prisma sonnet
#

Hey guys

#

How can I add placeholders to my own plugin?

#

Like %xplugin_stats_<player name%

#

And %xplugin_top1%

mint fable
#

@prisma sonnet Follow this tutorial this

#

good to read the top of the page, but the Internal class is what you want

split hamlet
#

Hi, I have problem with loading expansions into PAPI

#

I downloaded expansion by /papi ecloud download PlayerTime and when I reload by /papi reload it says that 0 expansions have been loaded

prisma sonnet
#

Uh, hey

#

How can I get the second argument of placeholders?

#

Like %smallcaps_convert_A witch showed up then.%

#

I want to obtain the A witch showed up then. part.

junior musk
#

uh, in Java?

#

or with another placeholder?

prisma sonnet
#

In Java.

junior musk
#

if you're making your own expansion in Java, get the params String, split it by _ and get index 1

prisma sonnet
#

Oh, params contains everything after the identifier, right?

junior musk
#

yup

sturdy loom
#

how do i make it so if a server is offline it outputs X and if its online it outputs Y i want for my server scoreboard for online

prisma sonnet
#

Hey guys

#

So this is my class

#

And it doesn't gives any output

gray scroll
golden glade
#

https://paste.helpch.at/efogodisib.csharp being spammed this error in concole. There is no denizen ecloud expansion installed or placeholder being used in the "featherboard". It's being spammed every 2 seconds

#

(ping when there's an asnwer)

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

kindred badge
#

anyone here not have temu?

#

I just need 4 people

#

Dm me for more info for my help

prisma sonnet
#

Hey guys!

#

How can I allow players to use placeholders inside my placeholder?

turbid tide
#

That way users can use {bracket_placeholders} inside your %ampersand_placeholders%.

Example: %myexpansion_{otherexpansion_placeholder}%

turbid tide
# prisma sonnet Any examples?

Code implementation?

    @Override
    public String onRequest(final OfflinePlayer player, final String params) {
        final String parsedParams = PlaceholderAPI.setBracketPlaceholders(player, params);
        if(parsedParams .equalsIgnoreCase("placeholder1")){
            return plugin.getConfig().getString("placeholders.placeholder1", "default1");
        }
        
        if(parsedParams .equalsIgnoreCase("placeholder2")) {
            return plugin.getConfig().getString("placeholders.placeholder2", "default2");
        }
        
        return null; // Placeholder is unknown by the Expansion
    }
prisma sonnet
late stag
#

Kann mir wer helfen

drowsy shale
#

Hi everyone,
I create a plugin and I try to implement a placeholder on it, I follow some guide and I have do that:


    private final ThamosCore thamoscore;

    public VotePlaceholder(ThamosCore thamoscore) {
        this.thamoscore = thamoscore;
    }
    @Override
    public String getIdentifier() {
        return "votes";
    }

    @Override
    public String getAuthor() {
        return "Kedarin";
    }

    @Override
    public String getVersion() {
        return "1.0";
    }

    @Override
    public String onPlaceholderRequest(Player player, String identifier) {
        if (identifier.equals("votes")) {
            // Rรฉcupรจre le nombre de votes ร  partir du fichier de configuration
            FileConfiguration config = thamoscore.getConfig();
            int votes = config.getInt("votes", 0);
            return Integer.toString(votes);
        }
        return null;
    }```
In my Main class:
```    public void onEnable() {

        // Instancie l'objet VoteCounter avec le fichier de configuration votes.yml
        this.voteCounter = new VoteCounter(new File(getDataFolder(), "votes.yml"));
        if( Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")){
            
            new VotePlaceholder(this).register();
        }```

In the logs I have: [PlaceholderAPI] Successfully registered expansion: votes [1.0]

But when I do /papi parse Kedarin %votes% it only show %votes% if someone know what I do wrong, thanks ๐Ÿ™‚
junior musk
#

%votes_votes%

#

identifier is the part after the first _

#

well it's technically params, but you named it identifier

drowsy shale
#

I try too

#

Didn't work as well

junior musk
drowsy shale
#

return %votes_votes%

junior musk
#

does votes show in /papi list?

drowsy shale
#

No

junior musk
#

did you do /papi reload?

#

try to override the persists method and set it to true

drowsy shale
#

I have restart

junior musk
#

like here

drowsy shale
#

I dont have a persist method

junior musk
#

I know, add it

drowsy shale
#

I try

#

It work well, many thanks !! ๐Ÿ™‚

junior musk
#

by the way, maybe change identifier to params to avoid confusion

#

because a placeholder is %<identifier>_<params>%

#

you can keep it if you want, it's just to not make mistakes

drowsy shale
#

Yeah I will change, it will be easier in the future

severe dawn
#

is there a way to change the placeholder refresh time?

junior musk
#

placeholders aren't refreshed by PAPI, it's up to the plugin that parses them to refresh them

gloomy delta
#

Hi, if a plugin is not recognizing PAPI being loaded in the server, would that be on the plugin or PAPI?

PAPI is loading prior to the plugin, but the plugin says it can't find it. This only seems to happen for my server, other developers//players are not reporting the same thing.

Is there any kind of T/S steps I can try?

#
# onEnable
if (PluginSupport.PLACEHOLDERAPI.isPluginEnabled()) new PlaceholderAPISupport().register();
# PluginSupport#isPluginEnabled signature
public boolean isPluginEnabled() {
  return plugin.getServer().getPluginManager().isPluginEnabled(name);
}
errant iron
#

Are you sure papi is loaded? Send what /papi dump gives you

vivid sparrow
#

yeah as long the plugin is loaded and enabled it should work

gloomy delta
#

Oddly enough, I also have DecentHolograms installed and it doesn't recognize that either.

#

(console output for CC)

austere hawk
#

Please tell me what could be wrong, I created the menu, added it to the config (enabled)
Fine...

I gave the rights that I created to open the menu and the rest all the rights that you need

And the fact is that when I checked the functionality of the menu in operator mode, everything was fine
And now I noticed that when I open the menu, everything happens as usual
But I can't use the menu functions, that is, I can shuffle items from the menu into inventory or discard them
AND Buttons just don't work in survival mode, operator mode bases

gloomy delta
#

are you sure it isnt %pvpstats_kills%?

#

%slipcorpvpstats_kills%

#

or %sps_k% (to use this you need to run /pvpstats config set shortPlaceholders true)

austere hawk
#

/papi ecloud download Statistic

%statistic_mob_kills%
%statistic_player_kills%
%statistic_kill_entity:<MobType>%
%statistic_entity_killed_by:<MobType>%

gloomy delta
austere hawk
#

Why, when there are light aggregates

austere hawk
gloomy delta
gloomy delta
#

did you run the command

austere hawk
#

with /op I can use the menu the way it should be
Press buttons, move through the menu or move to the spawn using the button in the menu

gloomy delta
#

Did you try the long version?

austere hawk
#

In normal player mode, no rights /op, Buttons in the menu can be moved in the same way as it is done in the chest
The buttons have a description, they are located as I placed them, but they do not function

austere hawk
gloomy delta
#

try /papi parse me %slipcorpvpstats_kills%

austere hawk
#

Oh

#

(

gloomy delta
#

Sorry AllFire, that command wasn't for you

austere hawk
#

It's 6 o'clock in the morning, I didn't go to bed and after all night of trying to solve this problem - turned off the computer

Okay, can you wait a couple of minutes?

gloomy delta
#

try /papi parse me %slipcorpvpstats_kills%

#

What is the output?

austere hawk
#

you are telling me?? ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

gloomy delta
#

But I wouldn't spend too much time on it, maybe get some shuteye and try again tomorrow

#

You have 23 kills

#

So it is working

#

What scoreboard plugin are you using

#

okay

#

yes

#

one moment

#

hm, sternal board is not loading for me one sec

austere hawk
#

Me too ยฐ>ยฐ

gloomy delta
#

@austere hawk - I also use TAB and recommend it

#

Sternal board isn't even updating the board for me

stone edge
#

You can contact SternalBoard dev

austere hawk
#

Try the one I posted above.

#

It's fully customizable

#

Yes, the scoreboard is better

#

Just try

gloomy delta
#

it supports the scoreboard as well

ocean beacon
#

TAB is the best -o-

austere hawk
#

)

frank geode
#

wda

turbid tide
# prisma sonnet Would that break split by _ method?

Hello and sorry for the very late reply.

The thing is, you don't actually have to use split by _ if you don't want to. It is just a standard of splitting multiple arguments. The params parameter is just a string that you can do whatever you want with it.

example:
for the placeholder: %identifier_abc_123-12412+523643q423/^SDG{another_placeholder}%
params would be: abc_123-12412+523643q423/^SDG{another_placeholder}.

Now you can process that params string however you want. You can parse bracket placeholders, you can split by +, by 123 you can take just a part of it, it is all up to you. If you don't recognise that string you can say that's not a valid parameter and just return null.

sage fox
#

[Mon 11:38:07 INFO Minecraft] [Progress] Couldn't get the number from {changeoutput. The progress will be 0%.
[Mon 11:38:07 INFO Minecraft] [Progress] Couldn't get the number from {changeoutput. The progress will be 0%.
[Mon 11:38:07 INFO Minecraft] [Progress] Couldn't get the number from {changeoutput. The progress will be 0%.
[Mon 11:38:07 INFO Minecraft] [Progress] Couldn't get the number from {changeoutput. The progress will be 0%.
[Mon 11:38:07 INFO Minecraft] [Progress] Couldn't get the number from {changeoutput. The progress will be 0%.
[Mon 11:38:07 INFO Minecraft] [Progress] Couldn't get the number from {changeoutput. The progress will be 0%.
[Mon 11:38:07 INFO Minecraft] [Progress] Couldn't get the number from {changeoutput. The progress will be 0%.
[Mon 11:38:07 INFO Minecraft] [Progress] Couldn't get the number from {changeoutput. The progress will be 0%.
[Mon 11:38:07 INFO Minecraft] [Progress] Couldn't get the number from {changeoutput. The progress will be 0%.
I fixed the bug in the plugin that made the call and progress is still trying to get a variable that does not exist.

turbid tide
prisma sonnet
tender vaporBOT
tender vaporBOT
prisma sonnet
#

what

#

i just replied.

#

So I'm asking if this setting bracket placeholders would break my splitting by _ method?

turbid tide
#

But I'd suggest you parse the bracket placeholders before splitting

#

Otherwise you can end up with stuff like this:
placeholder %placeholder_arg1_{placeholder_2}%
splited args: arg1, {placeholder, 2}

prisma sonnet
#

Couldn't write here because of the formatting

turbid tide
vagrant cedar
#

On startup i get this error

[12:37:59 WARN]: [PlaceholderAPI] Failed to load expansion upun. Identifier is already in use.

Even if it isn't any other expansion with the upun identifier. How can i fix this?

turbid tide
tender vaporBOT
prisma sonnet
#

Hey!

#

How do I use #setPlaceholders() function without giving any player?

#

Because the console might execute the command too.

turbid tide
#

or an OfflinePlayer

#

but for console, pass null

prisma sonnet
#

I guess a null would work for both conditions

turbid tide
#

I believe a fix for itis being worked on

turbid tide
#

Yeah. That issue appeared in the latest release. That is a decent temporary fix

sage fox
tender vaporBOT
tender vaporBOT
turbid tide