#placeholder-api

150650 messages · Page 97 of 151

real skiff
turbid tide
#

hi @junior musk

#

Want me to verify your expansion?

#

🙂

junior musk
#

yeee

mint fable
#

looks like it might be because you're joining too quickly? seems related to ViaVersion @real skiff

#

does it happen every time you join

real skiff
#

yes it happens everytime when ppl joining

#

also there are some warnings about soft depends of vault, multiverse, essentials

#

is it fixable?

turbid tide
#

They are just telling you that some plugin, in this case expansions actually, are hooking into other plugins without declaring that in plugin.yml

real skiff
#

ty!

turbid tide
# real skiff ty!

That would be quite impossible since expansions can just be removed and added at any time, but the plugin.yml file can't be edited. But if you do hate them that much, there are a few simple solutions to stop them from showing. One of them would be to open the PlaceholderAPI jar with a zip explorer like WinRAR and edit the plugin.yml yourself. You will have to do this for every update of PlaceholderAPI however.

mint fable
#

I got no clue what that error means

#

related to adventure/viaversion/???

turbid tide
mint fable
#

oic

turbid tide
#

and there ight be some conflicts with the one PAPI shades in

#

Idk for sure

#

It seems it also has the same problem with ChestShop's shaded and relocated bukkit-platform

mint fable
#

ye

real skiff
#

but it seems no errors when i use minehut

#

compared to using Pterodactyl

turbid tide
#

Maybe a broken version of ViaVersion? Try reinstalling

real skiff
#

so its not papi's issue?

turbid tide
#

Doesn't look like it. It has the same issue with other plugins that relocate the same library

real skiff
#

alr ty again! ill ask in viaversion/chestshop

turbid tide
#

then you can try in ViaVersion

real skiff
#

tried multiple times already, same result coming

turbid tide
#

Umm. @junior musk. Question. Have you tested the expansion? You seem to be storing deaths and kills at this path: <uuid>.<type>.<world> But, when the placeholder %perworld_<type>_in_<world>% is used, the world you're actually parsing to the getValue method is type_world since you're only removing the in_ part from <type>_in_<world>.

junior musk
#

f

#

should have tested it 🥲

mint fable
#

😂

turbid tide
#

DW. We've all done this before. Especially me for DeluxeMenus 🤣

mint fable
#

every time

#

faster not to test

junior musk
#

fixed

real skiff
#

its still showing errors after i removed viaversion

mint fable
#

umm

#

are you sure

real skiff
#

im 100% sure i removed viaversion

#

but no idea why its still showing in error

#

plugin list

mint fable
#

v weird

#

I got no idea

turbid tide
# real skiff https://pastebin.com/mH29A600

I wonder if it's related to the via version expansion maybe? Do you have that installed? If you do try removing it. If not, make sure you've actually restarted after removing ViaVersion.

nimble zenith
#

Why is deluxemenues placeholders not auto updating?

stark jewel
#

Is there a placeholder for max server capacity?

vivid sparrow
#

%server_max%

stark jewel
#

Thank youuu!

#

Do I have to dl something to use it?

#

oh its %server_max_players%

warm plover
#

Is there a way I can get this text in multiple lines?

#

%checkitem_getinfo:0_loreequals:%

#

At the moment the lines are like |, but I'd like to use it in deluxemenus as a new line

#

I'm thinking maybe using JavaScript I can replace | as a new line though I don't know if you can even do that

warm plover
nimble zenith
warm plover
#

No idea then

nimble zenith
warm plover
#

No idea

mint fable
warm plover
#

but can you replace to a new line char?

mint fable
#

for what specifically

#

a message spanning multiple lines?

#

I'm willing to add a loreequals:1 to get a specific line maybe

#

but not atm, prob later tonight

mint fable
#

might be up to where you use the placeholder if it supports it or not, no clue

warm plover
warm plover
#

all good lol

stone fern
#

can soemone link me the expanstion that formats player exp

stone fern
#

I’ve tried adding the JavaScript to papi doesn’t show up when I do /papi ecloud download JavaScript and there’s no download option for the script itself on that website

sharp jay
#

manually install

stone fern
#

okay so iv'e added everythung but the %javascript_exp_points% is returning nothing

pure tree
#

Guys need help
How to link %cmi_baltop_name_[1-10]% and betonquest_HalloweenEvent:point.spooky_points.amount
In BetonQuest, I have the number of pumpkins collected counted.
And I want to make sure I have a top of 10 players.

sweet terrace
#

Hi, unsure if this is placeholder related or essentials related but with the essentials baltop placeholder, the output from 1 is actually the 2nd person. The 1st person isn't showing

mint fable
#

what if you use 0

sweet terrace
#

Oh 0 fixed it, thanks 😄

austere hawk
#

is there a placeholder that checks if you're a near a block?

#

for example lava

#

or within the radius of

vivid sparrow
#

No @austere hawk

tidal jewel
#

is there a placeholder for hungergames?

austere hawk
#

Failed to find an expansion named: javascript ??

errant stag
#

any idea how to fix that

magic rock
#

hi, placeholder cannot contain space and dash, right?

true heart
#

my javascript placeholder isnt working

#

function checkRank(){

    switch(rank){

        case "default":
            return "&c¡Buy now using /buy!";
            
        case "blowfish":
            return "&f戈";
            
        case "shark":
            return "&få±±";
            
        case "dolphin":
            return "&f卜";
            
        case "orca":
            return "&f廿";
            
        case "whale":
            return "&fæ°´";
            
        case "blue-whale":
            return "&fç”°";
            
        case "owner":
            return "&f㊗";    

        case "admin":
            return "&fâ­•";

        case "mod":
            return "&f⬛";

        case "helper":
            return "&f⤴";

        case "builder":
            return "&fâž¿";    
            
        case "youtuber":
            return "&fâž°";

        default:
            return "&cNone";    
    }
}

checkRank();```
#

my js file ^

#
  file: example.js

#

my javascript_placeholders.yml

#

it returns %javascript_example% ingame

#

can anybody help me?

delicate haven
#

slot modifier does not work with checkitem_remove.
removes the element from the slot closest to 0 but not the slot modification, eg slot:9.
%checkitem_remove_amt:1,slot:8%

mint fable
#

ya it'll just remove the first matching item, you can make an issue on github but no guarantees

#

Also, it's inslot:8 not slot so it might work? but probably not @delicate haven

delicate haven
mint fable
#

Huh?

#

What wiki...?

delicate haven
mint fable
#

it's definitely on there

#

says inslot not slot

#

i will change to inslot:<number> tho

delicate haven
#

Sorry, my english is not good 😅

paper pewter
true heart
kind verge
#

Hello wondering if it is possible to create custom placeholder through papi

sharp jay
tender vaporBOT
atomic oak
#
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2 (2).jar:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        ... 1 more
Caused by: java.lang.ClassNotFoundException: com.artemis.the.gr8.lib.kyori.adventure.text.TextComponent
        at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?  at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2 (2).jar:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]```
#

can someone explain this?

atomic oak
#

1.19.2

#

It was fine a while ago then it broke after a restart

#

didnt touch anything

magic rock
#

oh wait

#

you use spigot, right

atomic oak
#

yeah(?) purpur to be exact

magic rock
#

hmm thats weird, that lib should be in Paper (Purpur), maybe it was relocated

atomic oak
#

i dont understand though, it was working well before the restart

junior musk
#

iirc Purpur is using an older version of the Adventure lib

atomic oak
#

oh wait. I think it might have to do something with an expansion

#

I deleted the recent one that I added and now its fixed when I restarted.

#

sorry for the trouble

junior musk
#

oh

#

then maybe it's that expansion using an outdated version of Adventure

#

which one was it?

atomic oak
#

i think it was playerstats

#

well I downloaded ^ this cus I thought I needed it for a plugin that doesnt show specific works. I guess not. it was shown on the tab complete though so I thought it was fine to do it

paper pewter
atomic oak
paper pewter
atomic oak
paper pewter
warm plover
#

%string_replacecharacters%

#

test: '1': |- hello a

#

Apparently this works thonking

mint fable
#

but for sending messages/lore?

#

I know that's multi line in yaml

warm plover
#

It works when parsing, just.. slightly flawed

#

It has a space on the new line

#

I'll try with lore in a sec

mint fable
#

where are you using it now

warm plover
#

Oh - it works with lore!

#
  '||': |-
    §r
    §r```
#

Just like that

mint fable
#

ye, but what does that do over a list

#

also, this is def not deluxemenus lol

warm plover
#

I'm using it with DeluxeMenus

#

That is just from a papi expansion

mint fable
#

what is item-lore

#

o what

warm plover
#

It's the config for the string expansion in papis config.yml

#

new feature, insanely powerful

#

Anyways, I'm using this because %checkitem_getinfo:0_loreequals:% parses lore as | for new lines

#

And with what I'm doing, I can REPLICATE items lore in slots and add my OWN lore to whereever

#

No matter how many lines it has

mint fable
#

ye, but how do you convert that to an actual new line

#

instead of just \n (which it does anyway)

#

idk why \n wouldn't work

#

it's weird

mint fable
#

it's just \n

warm plover
#

ah. new line works in dm.

mint fable
#

now that makes sense

warm plover
#

welp, over compliating things as always 😂

#

yeahhh \n work's perfectly, whoops xD

mint fable
#

noice

odd galleon
#

which expansions need for player level data

willow pewter
#

By running this command /papi parse me %server_time_d-L% I receive 12-10 in chat, as expected. But If i ran it 3 days ago would it be 09-10 or 9-10?

willow pewter
#

ok thanks :)

restive slate
#

is there a way to use PAPI placeholders to achieve a math Division/ result?

Basically I am trying to display Kills/Deaths ration, and I have 2 placeholders, 1 for kills and one for Deaths. I would like to display on an hologram only the final math result so Kills/Deaths

turbid tide
restive slate
mint fable
#

%math_2:_{player_kills}/{player_deaths}%

#

changed that a few times, good now for 2 decimal points

warm plover
#

Using string replace, can I have a replacement for if the placeholder results in

#

'' caused a papi error, ' ' didn't work, '&r' didn't work

mint fable
#

wym string replace

warm plover
#

%string_replacecharacters%

#

item-lore: '|': \n

#

It was that ^, we talked about it yesterday

#

this is for something else though using that expansion

restive slate
mint fable
#

what's your papi config @warm plover

warm plover
#

It's under

  'Dull Sword': '&61'
    '': '&60'
item-value:
  'Dull Sword': '&61'```
#

Basically, the end goal is to just have an automated selling system that uses the players item name

#

(its for a sell GUI that mirrors your inventory)

mint fable
#

hmm

#

idk about string replace but maybe changeoutput

warm plover
#

changeoutput was an idea I had but I can't use it sadly for this

mint fable
#

the config ig wouldn't really work for it

warm plover
#

%string_replacecharacters_item-value-display_{checkitem_getinfo:1_nameequals:}%⛃

#

so basically I'd have 3 placeholders in one

#

Maybe nested could do it? seems a little overly complicated tho

mint fable
#

i mean, javascript

warm plover
#

that also

mint fable
#

ohhh i see it replaces multiple at once

#

i mean, what are you trying to replace? because '' is nothing

#

now thinking about it

warm plover
#

oh wait

#

im a dummy

mint fable
#

You're trying to use character replace more as a phrase replace

warm plover
#

so basically that would only work for vanilla items

mint fable
#

or "change this string to that"

warm plover
#

but if I wanted it for items with a name

#

I'd need to request a new feature for the string expansion

#

for a replacement like changeoutputs else_output

mint fable
#

what

warm plover
#

okay so

mint fable
#

lost me there

warm plover
#

when parsing %checkitem_getinfo:1_nameequals:% on a vanilla item

#

it parses as

#

because it has no name

mint fable
#

``

#

well

#

nothing

warm plover
#

but in my server, all of the items have a custom name

mint fable
#

not a space tho

warm plover
#

so, any item that doesn't have a value to it, with a custom name, I would need to replace that to 0

mint fable
#

ya, you're trying to replace all instances of '' (nothing) to something else

#

which makes no sense

warm plover
#

it technically work work

#

but setting it to '' errors papi

mint fable
#

the other one is replacing all instances of Dull Sword to &61

#

no... it would not

#

there is infinite amount of nothing in a string

#

you can't replace nothing

warm plover
#

..ah

#

alright that makes sense

mint fable
#

You're trying to check "if string EQUALS nothing"

warm plover
#

but yeah I don't need that anyway

#

what I really need, which I realize now, is a the equivalent of else:<output-if-not-matched> in ChangeOutput in Strings replace placeholder

#

so that if it finds no matches to replace, it replaces to something else

mint fable
#

ya, there is no config one for equals

#

essentially what you need

#

i mean, if you wanna use js it's easy

warm plover
#

Could I use js to replace something in %string_replacecharacters_item-value-display_{checkitem_getinfo:1_nameequals:}%

#

just so I can keep the list of valued items

mint fable
#

ya, but you could also keep the list in js

#

avoid using 2(3) expansions for it

warm plover
#

yeah now that I think about it I would probably have to do that anyway

mint fable
#

either way would work

#

but i'd say just use js

warm plover
#

yeah, if I can figure it out it'll be easy

mint fable
#
var itemName = "%checkitem_getinfo:1_nameequals:%"

switch(itemName){
  case "Dull Sword":
    "&61"
    break
  default:
    "&60"
}
#

that prob works

warm plover
#

Got that error with it

mint fable
#

i edited it, try again now

warm plover
#

ohh alright

mint fable
#

possible cause

warm plover
#

Seems to always show &60

mint fable
#

does it equal Dull Sword or contain it

warm plover
#

Equals

#

%checkitem_getinfo:0_nameequals:% parses to Dull Sword

warm plover
#

&f

mint fable
#

ah

#

try adding that

warm plover
#

ah

#

had to add §f haha

#

yeah it's working now! tysm

#

Is there a way to make it read the args?var itemName = "%checkitem_getinfo:args[0]_nameequals:%"

#

Because its supposed to read from every slot, not just 1

mint fable
#

try var itemName = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%"+"checkitem_getinfo:"+args[0]+"_nameequals:"+"%")

warm plover
mint fable
#

try now

warm plover
#

absolute legend, it's working

mint fable
#

noice

warm plover
#

thank you so so much

mint fable
#

yep, i'm off to get some grub

warm plover
#

alright, tysm again haha

vivid sparrow
#

that's just a warning caused by spigot's library loading system, it is harmless

open locust
magic rock
#

its smth like {papi: placeholder} not %placeholder%

open locust
#

Exemple for my plugin ?

austere hawk
#

is there a total experience earned alltime placeholder?

turbid tide
austere hawk
#

Thanks Blitz

#

But what useful statistics should I add to a leaderboard

#

I already have the common ones

turbid tide
inner wind
#

Hey, im using placeholder api 2.11.2 on version 1.19.2 and every time i restart my server the scoreboard that i have setup requires me to run /papi reload for the placeholders to load, but its only the placeholders i downloaded using /papi ecloud download

stone fern
#

how do i get the exp placerholder to return 5,584,930 instead of 5584930

austere hawk
#

yo is there a blocks traveled placeholder?, maybe %statistic_walk_one_cm%, but is that blocks?

mint fable
#

try it

#

/papi parse me <placeholder>

#

walk 2 blocks

#

and if it is actually CM, use math to multiply it by 100

#

%math_0:_{statistic_walk_one_cm}*100%

austere hawk
#

does walking include sprinting as well?

mint fable
#

try it

#

if not, just use math and add em all together

#

😉

austere hawk
mint fable
#

sprint, crouch, climb, boat, horse, whatever

misty ivy
#

Someone please help me with the click requirements

#

Private message me I have questions

sharp jay
#

?help

tender vaporBOT
high swift
#

hiya

#

Anyone know what ScriptEngine is?

#

Please @ me

floral plank
#

people have been answering you for a while, that error is not an issue

mighty drift
#
java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0```
velvet tinsel
#

%statistic_mine_block:DIAMOND_ORE%

#

doesn't work

#

i mine diamond ores

#

doesnt update

placid light
#

@warm topaz i risk to get muted/banned for tagging but i must
Hi legend, will you ever think of adding unlimited amount of elseif:<something> to your ChangeOutput papi expansion

warm topaz
#

not really

#

for anything more complex you should use javascript

mint fable
#

I want an equals version of the replaceCharacters in the string expansion

#

well, I don't want it really, but

#

yakno

placid light
#

it's extremely needed

#

i mean ok we can use else: for that

#

but i am sure i needed notequals once and couldn't make it the other way

#

i forgot what i was working on...

#

i use changeoutput more than avg mc server maker

#

i even "backported" it for java8 xd

mint fable
placid light
steady hornet
#

~~1. %deluxetags_tag%
2. {deluxetags_tag}

2 is what the wiki tells me to use for chat formatting but doesn't work! 1 works then I test in /placeholderapi parse me %deluxetags_identifier% but doesnt work in chat formatting.

Please let me know how to fix so that tags can display in chat!

Thank you!!

p.s. using essentials for the chat formatting 🙂~~

#

found info on server that might help! thank you 🙂

placid light
steady hornet
mint fable
lavish forge
#

does papi work on bungee?

floral plank
#

no

lavish forge
#

alr

#

ty

final tapir
vivid sparrow
#

com.ordwen.odailyquests.quests.player.PlayerQuests.getTotalAchievedQuests()
Contact the dev of your dailyquests plugin @final tapir

final tapir
#

Ok

plush dove
#

whats the expansion where you input something, it checks it in a file, like the price of an item, and returns the output, which would be the price

heady lance
#

hello

#

how can i check placeholder?

#

String towny = placeholderapi.getplaceholder(Towny); or idk

sonic atlas
#

Does anyone know why it says I don't have enough tokens if I have 10,000 on my account

quiet reef
#

Hi, can anyone tell me why the "/papi reload" command doesn't work? (Plugin: PlaceHoldersAPI)

sharp jay
#

Do not double post.... remove your message this also isnt the correct channel...

quiet reef
#

Sorry

quartz hemlock
#

Hi, I'm glad I'm a new minecraft configurator, could someone teach me the format or the mathematical function to make the hearts of the players appear in percentage in the nametag? I have already downloaded math from the ecloud, thx

plush dove
molten copper
#

does the javascript expansion work on 1.19?

sharp jay
#

ye

spring flume
tender vaporBOT
sonic atlas
#

Exception in thread "Craft Scheduler Thread - 7"
[13:10:14 WARN]: org.apache.commons.lang.UnhandledException: Plugin DeluxeMenus v1.13.3-Release generated an exception while executing task 2318
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalArgumentException: No enum constant me.ilucah.advancedarmor.armor.BoostType.
at java.base/java.lang.Enum.valueOf(Enum.java:240)
at me.ilucah.advancedarmor.armor.BoostType.valueOf(BoostType.java:3)
at me.ilucah.advancedarmor.placeholders.Placeholders.onRequest(Placeholders.java:76)
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:160)
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70)
at com.extendedclip.deluxemenus.menu.MenuHolder.setPlaceholders(MenuHolder.java:97)
at com.extendedclip.deluxemenus.menu.MenuItem.getItemStack(MenuItem.java:591)
at com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$1(Menu.java:262)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more

#

does anyone know what the problem is

vivid sparrow
#

there's a problem with one of your advancedarmor placeholders

#

it probably expects a value and you didn't provide one

brittle swallow
#

How or were can I put a placeholder to show in tab in witch faction you are from?

brittle swallow
#

@warm topaz

tender vaporBOT
brittle swallow
#

can you help?

sharp jay
#

@brittle swallow lets not ping staff

sharp jay
plush dove
#

When parsing %parseother_{mycommand_playerdata_tpa}_{javascript_tpa}% it brings my tps down to 16 for a split second, lagging everything out

#

%mycommand_playerdata_tpa% is a variable string my MyCommand

#

Javascript TPA is a javascript function that just compares values

#

I replaced javascript tpa with player gamemode and it still lags out

#

hmm ok I found the exact issue, parsing parseother with an empty mycommand variable lags out the server

placid light
#

where to download latest papi JS expansion?

#

like the latest latest some dev build

#

i have heard that there is exploit in it so i want to find the most latest one (sorry if i shouldn't write this here)

#

please tag me whoever reply me

austere hawk
#

Why does /jsexpansion reload no longer work?

plush dove
#

For config expansion

echo saffron
#

Hello

#

there is no placeholder that returns a value of true or false

#

from another place holder

vagrant dune
#

is there any placeholder to view the number of players in a region in worldguard?

sharp jay
#

nope

plush dove
plush dove
woven mauve
#

Anyone know why String isn't finding the String expansion on the ecloud?
(grabbed it manually, just curious)

paper pewter
#

Hello! I have just updated the PlayerStats expansion and added version checks in there with proper feedback, to hopefully reduce the amount of people coming in here with a NoClassDefFoundError. Could someone look at my expansion to get it verified again?

Link to source code:
https://github.com/Artemis-the-gr8/PlayerStatsExpansion

ancient hazel
#

I want my placeholder to return a Component, can this be done?

floral plank
#

is the closest you can get

ancient hazel
#

Thanks

echo saffron
#

%changeoutput_equals_input:{luckperms_has_permission_kit.vip.emperador}_matcher:yes_ifmatch:§a§r%playerkits_cooldown_Emperador%_else:§4§rBloqueado%

#

it's okay?

heady lance
#

hello i using placeholder api

#

and char colorizer

#

but its shows &

#

when i join

#

e.setJoinMessage(PlaceholderAPI.setPlaceholders(player, colorize("&8(&a+&8) %vault_prefix%%player_name% &7sunucuya katıldı.")));

tender agate
#

hey

#

did i make it

#

right ?

#

String plenary ="&6Star &r %funnyguilds_g-tag% &e %player_name%";

#

PlaceholderAPI.setPlaceholders(target, plenary);

#

i want to set a rank before nickname using placholderapi and funnyguilds

placid light
echo saffron
#

For example if a variable is empty you can make it change to a text

mint fable
#

I'd remove the config part of the papi config and try to reload

plush dove
#

Alright thanks

#

Odd, there's no section in there for it

#

Any idea?

mint fable
#

hmm

#

maybe purpur is interfering? idrk

plush dove
#

Hmm, tried it on my Skyblock and same issue. Lemme test it on paper

plush dove
#

Same issue on paper

mint fable
#

what if you tried adding

configs:
  example: '/plugins/PlaceholderAPI/configs/example.yml'

to your config

#

@plush dove

lilac shoal
#

Is there a way to return json component in JavaScript expansion?

#

I need to return
{"translate":"Pog"}

mint fable
#

well it's just a string that it returns, but should be possible to return it in a json format

#

can't see why not

mint fable
#

maybe try an older version, it will have a different config i think

#

otherwise, 🤷‍♂️

tender agate
#

Can someone answear me

trim mist
#

That is how you resolve placeholders in a string, yes.

austere hawk
#

is there a placeholder that checks a player's first join date?

sharp jay
#

@austere hawk you can try %player_first_join_date%

cedar ledge
#

How to convert time into seconds (for example I have 1h 30m 45s), I need this for making progress bar

mint fable
#
var time = "%playtime_time%";
var weeks = parseInt(time.match("(?:\\d*(?=w))"));
var days = parseInt(time.match("(?:\\d*(?=d))"));
var hours = parseInt(time.match("(?:\\d*(?=h))"));
var minutes = parseInt(time.match("(?:\\d*(?=m))"));
var seconds = parseInt(time.match("(?:\\d*(?=s))"));
var total = 0;
if(!isNaN(weeks))
  total += weeks*604800;
if(!isNaN(days))
  total += days*86400;
if(!isNaN(hours))
  total += hours*3600;
if(!isNaN(minutes))
  total += minutes*60;
if(!isNaN(seconds))
  total += seconds;
total.toFixed();
#

you can use js, I made this script in the past

tender vaporBOT
mint fable
#

more info about js expansion this

woven widget
#

javascript extension is not installed!!! Please help

tender vaporBOT
tender agate
#

how can i send

#

a name tag

#

prefix and suffix

#

top of the player

short shoal
austere hawk
#

ty adam

paper pewter
zealous ledge
#

Is there someway to check the response of a placeholder and set the value to something else?

magic rock
#

yes, using JS expansion

dense trail
#

Hey there

#

Any reason why the statistics placeholder no longer updates?

#

/papi parse me %statistic_mine_block:WHEAT,CARROTS,POTATOES,BEETROOTS,MELON,PUMPKIN,SUGAR_CANE,BAMBOO%

#

Been using this placeholder and for some reason it no longer tracks the amount of the specified crops I've destroyed.

#

Doesn't matter if i'm opped or not.

dense trail
#

Anyone?

solar scroll
#

Hey ! Is there a placeholder for server planning?

trim mist
#

Server planning...?

wanton moon
#

Is there a way i can spoof players onto my server using math?

vivid sparrow
#

players++;

wanton moon
fast reef
#

is there a way to put placeholders inside a placeholder which is inside a placeholder?

%javascript_numberSuffix_{math_2_{gemseconomy_balance_dollars-asc}+{gemseconomy_balance_wallex-asc}}%

I need to create this placeholder but it doesn't work

glass sky
#
  net.minecraft.network.protocol.login.PacketLoginInStart@4aa27f3b[
    a=marssxii
    b=Optional.empty
    c=Optional[79264ec5-ed3e-4953-b625-037460a56ad5]
  ]
[Fri 21:55:38 INFO Server/LoginListener] UUID of player marssxii is 79264ec5-ed3e-4953-b625-037460a56ad5
[Fri 21:55:38 WARN] java.lang.NullPointerException: Cannot invoke "org.bukkit.entity.Player.getInventory()" because "p" is null
[Fri 21:55:38 WARN]     at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.onPlaceholderRequest(CheckItemExpansion.java:628)
[Fri 21:55:38 WARN]     at PlaceholderAPI-2.11.2(1).jar//me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:35)
[Fri 21:55:38 WARN]     at PlaceholderAPI-2.11.2(1).jar//me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119)
[Fri 21:55:38 WARN]     at PlaceholderAPI-2.11.2(1).jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71)
[Fri 21:55:38 WARN]     at PlaceholderAPI-2.11.2(1).jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99)
[Fri 21:55:38 WARN]     at ExtraContexts.jar//me.lucko.extracontexts.calculators.PlaceholderApiCalculator.calculate(PlaceholderApiCalculator.java:27)
[Fri 21:55:38 WARN]     at ExtraContexts.jar//me.lucko.extracontexts.calculators.PlaceholderApiCalculator.calculate(PlaceholderApiCalculator.java:12)
[Fri 21:55:38 WARN]     at me.lucko.luckperms.common.context.manager.ContextManager.calculate(ContextManager.java:144)
[Fri 21:55:38 WARN]     at me.lucko.luckperms.common.context.manager.QueryOptionsCache.supply(QueryOptionsCache.java:54)
[Fri 21:55:38 WARN]     at me.lucko.luckperms.common.context.manager.QueryOptionsCache.supply(QueryOptionsCache.java:42)
[Fri 21:55:38 WARN]     at me.lucko.luckperms.common.cache.ExpiringCache.get(ExpiringCache.java:64)
``` There is more to the error but i cant send files here
#

I'm not sure what i can do to fix this

#

I'm using papi 2.11.2

#

From what I see it might have to do with checkitem but i dont know how to fix the issue

#
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
    at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544)
    at org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:2033)
    at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108)
    at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45)
    at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201)
    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1473)
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446)
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397)
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173)
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305)
    at java.base/java.lang.Thread.run(Thread.java:833)```
glass sky
#

^ didnt fix issue

fast reef
vivid sparrow
#

you can only have one { } placeholder

fickle plinth
#

Any idea why this JavaScript isn't working?

paper pewter
slim rune
#

hi guys

#

I cant see vault, baltop settings in placeholderapi config

#

Im using essentials and vault

paper pewter
#

Thank you! 😄

lone ferry
#

Hi! Is there any way to fix this problem?

tender vaporBOT
placid light
#

is there like a placeholder or some way that i can make (maybe custom javascript papi placeholder?) that %date_next_day% will output date which is +1 day of current day

For example if today is 23-10-2022, the %date_next_day% will output 24-10-2022

Of course, it is important that if today is (for example) 31-08-2022, the %date_next_day% will output 01-09-2022 (so it will not actually do 31+1 but it will go to next month, just like it should)

#

if this type of placeholder already exists please let me know and feel free to tag me

vivid sparrow
#
var date = new Date();
date.setDate(date.getDate() + 1);
return date.getDate() + '-' + (date.getMonth() + 1) + '-' + date.getFullYear();```
Try this javascript @placid light
placid light
vivid sparrow
#

Latest @placid light

placid light
#

i will download latest from eCloud, i hope that's the one

placid light
#

however thanks a lot

vivid sparrow
#

Np

#

It will return 1 not 01 though, I will send you a version that adds the 0 later

placid light
#

i probably need to check if date has only 1 number and if yes i return '0' + date.getDate() + <...> (and if not i return same without '0')

placid light
placid light
#

it seems like it will always return month + 1, that's why i don't understand it, but it doesn't actually (but why)

#

literally looks like a magic trick lol

placid light
vivid sparrow
placid light
#

so what will it return if date is 31st of October

#

will it return 1-11-2022?

#

because then month need to be +2

#

or does the 31+1 adds +1 for month and goes to 1 (date)?

#

ok nvm anything i wrote
because today is 23rd date, i added +7 to it and did the output and, it said 1-11-2022

#

so it works

#

very nice

#

@vivid sparrow can i donate you!

tender vaporBOT
warm haven
#

how do i submit a problem with a movie

#

how do i find out my local admin support

vivid sparrow
reef tusk
#

Good evening, sot having a problem with the Checkitem extension.

I can't get the value of a specific NBT, it gives me all the NBTs in the item.

This is the placeholder
%checkitem_getinfo:mainhand_nbtstrings:MMOITEMS_ITEM_ID%

vivid sparrow
#

hold the item in hand and type /data get entity [your name] SelectedItem then send here the nbt

drowsy bramble
#

Why when I put the plugin and it loads but nothing comes out on the right?

rich pendant
#

Hello, I would like to know if I can show the %playtime_player% on the vanilla tab

#

I can display the hearts a player has on the tab but I don't know how to display the %playtime_player% value on there

keen spear
#

I was wondering is there was an expansion that let me parse specific placeholders from other players

lets say %PlayerName_{%external_plugin_placeholder%}

I was considering otherplayer but they dont seem to have an option for external plugin parses

tender vaporBOT
sharp jay
#

o

#

saw your edit

#

whats the plugin? wym

keen spear
# sharp jay called otherparse

no its fine, theres one expansion called otherplayer and the one you meant which is parseother, they are not the same but the one you mentioned is exactly what I needed thx <3

sharp jay
#

np 🙂

austere hawk
#

Can we make custom placeholder with deluxe menu ?

#

Like gems of hypixel skyblock

sharp jay
humble saddle
glad hazel
#

Hello, i really need help, when i tried to show how much potion of heal in inventory of player on scoreboard, the scoreboard crashed and hide , i have last version of PAPI,
I write that on scoreboard : {placeholderapi_checkitem_amount_potiontype:instant_heal} ( on featherboard so i write placeholderapi in front )

glad hazel
#

And Also for cooldown bar with essentials kits

#

Timer

austere hawk
#

I have internet connection but I cant join my own server or anything

#

Other plugins wont "find updates"

#

My node says there is no issue on their end so im looking at every error to see what could be causing this

austere hawk
austere hawk
#

Can you help me ?

#

Plz

#

Hello sir

austere hawk
# sharp jay Ye?

Can you help me plz if you have any video or you can tell me step plz

sharp jay
#

Do you know how to code?

austere hawk
#

Java or python?

sharp jay
#

Java

austere hawk
#

Umm littie bit

sharp jay
#

You need to know how to code in order to make a custom expansion

austere hawk
#

Do you have any video ? To make it

austere hawk
sharp jay
#

You can use vault like normal money sort of eco or find another plugin and use there placeholders

austere hawk
sharp jay
#

I told you just how to do it

#

you can call it gems

glad hazel
#

Hello, i really need help, when i tried to show how much potion of heal in inventory of player on scoreboard, the scoreboard crashed and hide , i have last version of PAPI,
I write that on scoreboard : {placeholderapi_checkitem_amount_potiontype:instant_heal} ( on featherboard so i write placeholderapi in front )

glad hazel
#

can someone help me please

vivid sparrow
tender vaporBOT
vivid sparrow
#

@austere hawk

austere hawk
#

Hello!
Can anyone help me out on how to reset a placeholder completely... Like the value stored till now...

warm topaz
#

what placeholder

austere hawk
#

Like how to reset the values stored till date of statistics placeholders

warm topaz
modern spire
#

How do I fully reset a leaderboard? I use ajleaderboards

mint fable
#

what is the placeholder for the leaderboard @modern spire

unreal raven
unreal raven
#

thx

languid vessel
#

is there a placeholder where I can get the time between to times with dates

vivid sparrow
#

that's how you would do it in java

languid vessel
#

hm

unreal raven
#

Hello, is there a way to edit %server_uptime% format? Just to remove the seconds?

steady hornet
#

hi, I have PlaceholderAPI expansions that won't update is there a place to download them manually please?

tender vaporBOT
random crescent
#

%server_countdown_HH:mm:ss_23:00:00% why its always display 0

#

help me please 😦

modern spire
random crescent
mint fable
modern spire
#

so I just delete stats folder?

mint fable
#

Vault balance would be stored wherever your economy plugin stores them

#

Yes but that deletes all stats for all players just FYI

modern spire
#

yea im doing a full server restart lol (bedsides ranks)

mint fable
#

I would delete the player data folder too, that contains inventories and locations and what not

#

If you haven’t

#

Always back up though don’t go blaming me

#

😂

half briar
inland umbra
#

is there anyway to delete all placeholder data?

sharp jay
inland umbra
sharp jay
#

each placeholder is different

inland umbra
#

well mainly ones from pvplevels

sharp jay
#

You would do that from pvplevels db

#

You reset there db

inland umbra
#

how?

sharp jay
#

you using mysql?

inland umbra
#

no

#

my server is on minehut

sharp jay
#

then its prob a .db file or something

#

ohh

#

idk how minehut works do you got access to files?

#

like deleting a file

inland umbra
#

yes

sharp jay
#

open the pvplevels folder

#

in the plugins folder

inland umbra
#

tried that

sharp jay
#

make sure to stop the server first

inland umbra
#

I did

sharp jay
#

This is a permissions

#

I mean command

inland umbra
#

ok well I have pvplevels running into ajleaderboards

sharp jay
#

use the cmds

inland umbra
#

there is no /pvplevels group

#

ok well could you at least help me reset Statistic?

sharp jay
#

ya go into the world folder

inland umbra
#

k

sharp jay
#

go to the world in which you want to reset you stats and achievements under the saves folder, and within that world folder open the stats folder and delete the file there (it should be a bunch of gibberish, which is your player UUID).

inland umbra
sharp jay
#

your server offline?

inland umbra
#

no

sharp jay
#

stop it first

inland umbra
#

the folder now only has my uuid in it tho

sharp jay
#

yaaaa its caching yours

#

cuz your online as you reset it

inland umbra
#

ok

#

ok thank you

sharp jay
#

np

austere hawk
#

thers placeholderapi bungeecord?

warm topaz
#

no

austere hawk
#

okay im upload plugin in hub server and serverONE

but not work in scoreboard tab and hologram

tender vaporBOT
austere hawk
#

anyone know how to fix it?

vale galleon
#

Hello

#

I am using placeholderapi player hook

#

And i have a bungeecord network

#

So the problem is i am using znpcs in lines so i added %player_online%

#

And in my server no one online

#

But it is showing

#

yes

#

@fervent spire can you solve it sir

fervent spire
#

Since you randomly pinged me. No.

vale galleon
#

Ok sorry

#

Please tell me

runic fox
#

can i change the colour code of placeholders somehow?

#

if i add a colour code to the front it does not change it

sharp jay
#

@runic fox does the plugin already have a set color?

#

I mean

#

placeholder

#

or is it white

vivid sparrow
#

It can also be forced to be white

sharp jay
#

ya true

vivid sparrow
#

If you cant change the color by adding a code before, then the placeholder returns a value with a color

half briar
austere hawk
#

can anyone help me with the gradients api?

#

%gradient_message_{#24CAEA}_{#00395}_messagewithcolors%&lCoreSurvival &7(%online%)

#

why would this message not be working

#

@sharp jay could you please help me?

austere hawk
#

oh whoops

#

I didnt know that

#

so sorry

#

ping me when response

sharp jay
#

?help

tender vaporBOT
austere hawk
#

@sharp jay cmon man

vale galleon
#

Hello

#

I am using player online placeholder

#

I have 0 players on my server

#

But it is saying yes players

wide agate
#

Is it somehow possible to send a placeholder from the subservers to the proxy so that you can use it on the proxy? If yes, could someone help me?

tender vaporBOT
runic fox
#

its just pitch black

runic fox
#

nvm it worked sorry

analog warren
#

how to download javascript 1.8.0?

austere hawk
#

you meant javascript expansion?

#

you have to manually download from eCloud website

wicked swan
#

Hello everyone. Can you please give a sample of checking a certain item in the player's inventory

#

I read the wiki and don't quite understand what modifiers means (I didn't understand which team is responsible for checking the item in the inventory)

obsidian charm
#

Hi i have a question

#

its not possible do with an placeholder this

#

%img_%prymacore_clan%%

mint fable
#

no

drowsy jackal
#

Does anyone know how to make the playtime in the statistics work toghther?

#

Right now I have 3days and 95hours of playtime

#

so if i had 1 day and 1 hour of playime

#

it wouldnt say 1 day 25 hours

cunning sparrow
#

It’s so confusing ^ I’ve been trying to do this…

mint fable
#

yes

#

oh shoot 1 sec I think I got the wrong script

#

uh

tender vaporBOT
mint fable
#

actually use formatter

#

lol

#

%formatter_number_time_secs_{statistic_time_played:seconds}% idk the statistic placeholder

#

@drowsy jackal

mint fable
drowsy jackal
#

okiee

drowsy jackal
#

lemme take a look

drowsy jackal
#

@mint fable I cannot find anything

drowsy jackal
#

Oh sorry my bad

mint fable
#

wym

drowsy jackal
#

like

#

i cannot find out how to work it

mint fable
#

/papi parse me %formatter_number_time_secs_{statistic_time_played:seconds}%

drowsy jackal
#

It dosen't work :/

mint fable
#

or possibly %formatter_number_time_secs_{statistic_seconds_played}%

drowsy jackal
#

yeah dosent work

#

currently

#

i did %statistic_hours_played%

#

and that worked

mint fable
#

looks like it changed on the wiki %formatter_number_time_fromSecs_<number>%

drowsy jackal
#

sorry for all of this

#

thanks for the help btw ❤️

mint fable
#

/papi parse me %formatter_number_time_fromSecs_5%

#

what does that return

drowsy jackal
#

Nothing

#

sadly

mint fable
#

very weird

drowsy jackal
mint fable
#

well since formatter isn't working for some reason you could try math expansion

mint fable
#

/papi parse me %math_0:_{statistic_seconds_played}/86400% days

drowsy jackal
#

That worked

#

How can I put the hours aswell?

#

I want it to be (days)d (hours)h

#

that is really good

mint fable
#

well, if you want it to be just one placeholder you'll need to use javascript or something

#

but if you can add more math placeholders, then just do that

#

divide by the amount of seconds in a day/week/hour

#

also, just realized you'll need js either way

#
var seconds = parseInt("%statistic_seconds_played%")
var total = 0
var out = ""
var weeks = " weeks "
var days = " days "
var hours = " hours "
var minutes = " minutes "
var seconds = " seconds"
if(seconds>=604800){
  out += seconds/604800 +weeks
  seconds = seconds%604800
}if(seconds>=86400){
  out += seconds/86400 + days
  seconds = seconds%86400
}if(seconds>=3600){
  out += seconds/3600 + hours
  seconds = seconds%3600
}if(seconds>=60){
  out += seconds/60 + minutes
  seconds = seconds%60
}
out += seconds/60 + minutes
out
#

this is the script i sent earlier, not tested

tender vaporBOT
mint fable
#

I deleted it because formatter exists

#

but... 🤷‍♂️

drowsy jackal
#

cant we use the same sort of math expression

#

but opposite

#

where hrs go into days

#

but it displays that

mint fable
#

well you have to subtract the weeks from the days

#

because otherwise you're gonna get the same effect

#

1 week 7 days

drowsy jackal
#

well right now i see 4 days

#

i used to see 3

drowsy jackal
#

I am big dum in math

mint fable
drowsy jackal
#

where do I go sorry haha

#

😅

#

I am on the wiki

drowsy jackal
#

%math_0:_{statistic_seconds_played}/3600% hours

mint fable
#

it's no different than %statistic_hours_played%

mint fable
#

use the javascript I sent and test it

drowsy jackal
#

oh okay

drowsy jackal
mint fable
# tender vapor

You can't use /papi ecloud ATM so you have to get it manually from the ecloud

drowsy jackal
#

but how can I get it manually?

mint fable
#

from the ecloud

tender vaporBOT
mint fable
#

from the one barry sent

austere hawk
#

How to display a player's group without color codes as a placeholder?

vale galleon
#

How to display server hostname

#

And also how to display how many players are there in the server

tropic marsh
#

gradients dont work, ive tried everything and it still just refuses to show any sort of gradient
%gradient_message_{#ff008c}_{#8f70ff}_messagehere%
on decent holograms all it shows is %gradeient_message[UnderscoreX3]messagehere%

#

yeah its downloaded

#

tried V1.0 and V2.0 both do jack.

vestal mason
#

Anyone know why im getting this error when trying to download the essentials expansion?

java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials```
vestal mason
#

nvm i think i figured it out lmao

opaque forge
tropic marsh
#

When an unofficial 1.16 gradient expansion works better than the 1.18.2 possibly 1.19.2 'official' gradient expansion lmfao laughably bad gradient expansion

#

no?

#

literally talking about how bad the 'official' gradient expansion is 2 days of working with it only to find out im wasting my time and just downloaded some 1.16 expansion for PAPI and it works wonders

turbid tide
shadow robin
#

any knowledge of "no route to host" errors occurring recently?

shadow robin
#

Thanks for the info

nocturne pike
#

are there any expansions for stripping formatting (ampersand or section char)

nova crane
#

Hello, I have a guestion regarding String Expansion. I see that you can have multiple sets of replacements like bellow:
string: replacements: big-numbers: '0': Ⴀ '1': Ⴁ '2': Ⴂ '3': Ⴃ '4': Ⴄ '5': Ⴅ '6': Ⴆ '7': Ⴇ '8': Ⴈ '9': Ⴉ '$': Ⴊ '.': ⁢Ⴐ ',': Ⴐ small-numbers: '0': ₀ '1': ₁ '2': ₂ '3': ₃ '4': ₄ '5': ₅ '6': ₆ '7': ₇ '8': ₈ '9': ₉

#

Is it possible to have multiple sets of the vault?
vault: formatting: thousands: Ⴋ trillions: Ⴌ quadrillions: Ⴍ billions: Ⴎ millions: Ⴏ

#

The problem I have is that I have 2 menus with 2 different positions of the same placeholder.
First menu works perfect.
The problem is with the 2nd menu, because you see, when I put the placeholder, the numbers are positioned where I want, but the problem comes with the "formatting" because it keeps the position of the first menu.
I'm using unicode that are replaced with custom textures '

#

Looking from other perspective at this, is it possible to move the text UP or DOWN somehow like you use negative spacing to move the text right or left? Not from default.json (using ascent:)

mint fable
#

you could use javascript to make custom formats
Here is a script I've made

var num = Number(args[0]);

function formatNum(num){
    var suffixes = ['', 'k', 'm', 'b', 't', 'qd', 'qn', 's', 'sp', 'o', 'n', 'd', 'ud', 'dd', 'td'];
    var decimals = 2;
    for(i=0;i<suffixes.length;i++){
        if(num>=1000){
            num = (num/1000);
        } else {
            return num.toFixed(decimals)+suffixes[i];
        }
    }
    return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}

formatNum(num);
nova crane
#

To be easier to understand here are some pics

teal glacier
#

im using a bungeecord plugin to store data for every player in a map. is it possible to add placeholderapi into the plugin on bungee, and create a separate expansion for the spigot servers to get data from said bungee? would this have any major performance impacts?

#

or should i just add mysql support and slap the plugin onto every spigot server? i would still like to know how to do the above though.

nova crane
nova crane
#

I don't understand how to work with it at all or how to intergrate it with the vault balance placeholder

mint fable
#

var num = "%vault_eco_balance%"

teal glacier
twin prawn
#

Is there a placeholder that shows if a player has accepted the resource pack? I have checked the wiki but just before i make my own i thought i might as well check

vivid sparrow
#

No, you would have to use PlayerResourcePackStatusEvent

topaz dust
#

Can anyone help me with sumn? So I recently just reinstalled all of my plugins but now my placeholders won't work

tender vaporBOT
twin prawn
#

Argh i always forget to remove the ping

topaz dust
fervent zephyr
#

Hi

#

Ask placeholder PlayerList

#

%playerlist_online,perm,yes,amount,prueba.1+prueba.2+prueba.3+prueba.4%
Example:
UnLocked: 4/12

brazen temple
#

hey, what do i have to do to be able to use PAPI on my scoreboard?

sharp jay
#

@brazen temple what scoreboard plugin?

#

Do you have papi installed

brazen temple
#

my plugin

#

I use ItemsAdder and need PAPI in my scoreboard and chat

sharp jay
#

So your own scoreboard plugin? did you check our wiki on how to add support?

brazen temple
sharp jay
tender vaporBOT
umbral otter
#

does PAPI support Adventure API components?

vivid sparrow
#

no

burnt sluice
#

help

#

no cloud expansions are available to this time

sharp jay
#

?ecloudblock

tender vaporBOT
sharp jay
#

@burnt sluice ^^^

burnt sluice
#

ok

#

thanks

#

install 1 expancion and served me then install another and served me but the first one stopped serving me

tender vaporBOT
tender vaporBOT
burnt sluice
sharp jay
burnt sluice
#

doesn´t work

sharp jay
#

any console errors

#

?paste

tender vaporBOT
brazen temple
#

I tried to set variables with IA like this, but I guess that's not correct

 board.updateLines(
            PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &c&lScoreboard-r &4<"),
            PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%"),
            PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &fNie posiadasz jeszcze swojej wyspy"),
            PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &fwpisz &c/is create <nazwa>&f, aby"),
            PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &fstworzyć wyspe"),
            PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%"),
            PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%"),
            PlaceholderAPI.setPlaceholders(player, "%img_offset_-500%&4> &fPLAYZERIA.NET")
        )
frosty reef
vivid sparrow
#

yes

#

some hosts, mostly free ones I believe, block external connection due to security reasons

frosty reef
#

Ah, yeah i use oracle cloud for my free servers nowadays, so i have havent experienced stuff like that

simple nova
#

what was the placeholder that count permissions ?

#

for example i write the perms in the placeholder and it counts how many of them i got and return an number

vivid sparrow
#

@simple nova

simple nova
vivid sparrow
#

Pff the message was deleted

twin shadow
#

help me please

plucky parcel
#

no

ancient rune
#

hi i have error idk what i can do

[18:50:39 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[18:50:39 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_{deluxemenus_meta_Counter_INTEGER_1}*10%
[18:50:39 WARN]: [PlaceholderAPI] [math] Cause: '{deluxemenus_meta_Counter_INTEGER_1}*10' is not a valid Math Expression.
[18:50:39 ERROR]: [DeluxeMenus] Error in requirement javascript syntax - %math_0_{deluxemenus_meta_Counter_INTEGER_1}*10% <= %vault_eco_balance_formatted%
[18:50:40 ERROR]: [DeluxeMenus] Error in requirement javascript syntax - %math_0_{deluxemenus_meta_Counter_INTEGER_1}*10% <= %vault_eco_balance_formatted%

undone pecan
plain anvil
#

i got some issue, when i gave myself more than 1000 dkcoins, i can't buy anything, its telling that i not enough coins to buy... helppppp

finite cedar
#

Hi! How do i set motd, with the player name? I have tried but, there is something i'm doing wrong 😅

foggy oak
austere hawk
latent ember
#

hellol

#

is it ok to post a pic of what I got in here

#

I am new to trying to setup a Minecraft server

obtuse grove
#

Hi i am trying to set up a leaderboard for parkcore. Im using ajparkcore and holographic display plugins, The parkcore plugin has a placeholder and i am wanting to know if i can use it, ive been trying to i just dont know how idk if i need to set it up

hybrid leaf
hybrid leaf
vivid sparrow
#

delete the quests expansion @hybrid leaf

hybrid leaf
#

but i got newest ver of expansion from ecloud page

#

i deleted quests expansion but i need it so what can i do?

sharp pine
#

Can anyone please make me a snippet of onPlaceholderRequest which takes 2 perimeters in the placeholder, like %placeholder_perimeter1_perimeter2%

vivid sparrow
#

@sharp pine the string argument of the onRequest method will give you anything that's after the identifier %identifier_<this>%. Is your job to split at _ or whatever else you want to do with the input

austere hawk
#

is it possible with the javascript expansion to create a placeholder that returns a specific text?

mint fable
#

yes

#
"text"
#

that's the entire file fingerguns

austere hawk
long sierra
#

How would I make a plugin that adds a new placeholder called %player_enderdragon_kills%? I want the placeholder to show how many times a player has killed the ender dragon and I would like to use it with a leaderboard plugin so that it displays the top 10 ender dragon kills for each top player.

vivid sparrow
#

there's no statistic for ender dragon kills afaik, so you would have to store them on your own

long sierra
undone pecan
velvet ingot
#

Hi, any idea how to deal with this?

vivid sparrow
#

use a placeholder that returns the time in seconds?

#

it literally says 14m 16s/30*100 is not valid

hybrid leaf
#

i get this when i want to download Quests expansion
Failed to update expansions: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest

vivid sparrow
#

If thats the newest version of the expansion, you are probably using and old version of the plugin

austere hawk
#

how do i check for a water bottle with checkitem expansion?

%checkitem_amount_mat:water_pot,strict%

i ve tried water_bottle water_pot water_potion and nothing works

vivid sparrow
#

there's no water bottle material, it is a potion with no effect

austere hawk
#

then how do i check for the potion with no effect :d

vivid sparrow
#

@mint fable

mint fable
#

uh

#

hold it and type /data get entity @s SelectedItem

#

send a picture here

austere hawk
#

i cant send pics here 🤨

tender vaporBOT
austere hawk
#

its {id:"minecraft:potion", tag: {Potion: "minecraft:water"}, {Count: 1b}

#

%checkitem_amount_mat:potion,potiontype:water,strict% ye i found it thank u :d

river marsh
#

[18:43:24 ERROR]: Could not load 'plugins/PlaceholderAPI-2.11.1.jar' in folder 'plugins'

#

Someone know why my placeholder dont start?

#

PlaceholderAPI have dependencies?

#

if i install last version i have same error:
[18:43:24 ERROR]: Could not load 'plugins/PlaceholderAPI-2.11.1.jar' in folder 'plugins'

vivid sparrow
#

The full error would be helpful

river marsh
# vivid sparrow The full error would be helpful

sorry

[18:43:24 ERROR]: Could not load 'plugins/PlaceholderAPI-2.11.1.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/google/gson/Gson
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at java.base/java.lang.Thread.run(Thread.java:833) [?:?]
river marsh
#

sorry

Caused by: java.lang.NoClassDefFoundError: com/google/gson/Gson
at me.clip.placeholderapi.expansion.manager.CloudExpansionManager.‹clinit›(CloudExpansionManager.java:64) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPIPlugin.‹init›(PlaceholderAPIPlugin.java:76) ~[?:?]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ~[?:?]
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128) ~[?:?]
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347) ~[?:?]
at java.base/java.lang.Class.newInstance(Class.java:645) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.‹init›(PluginClassLoader.java:76) ~[gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[gbinvl_minecraft_spigot_1.8-R0.1-SNAPSHOT.jar:git-Spigot-550ebac-7019900]
... 6 more
vivid sparrow
#

Update to 1.8.8

river marsh
vivid sparrow
#

No

vivid sparrow
hollow plover
#

Do I install Placeholderapi on my proxy or backend servers or both?

vivid sparrow
#

Papi can run only on spigot servers

#

So that would be backend I guess?

hollow plover
#

K thanks

austere hawk
half basalt
#

anyone know how i can show cd in deluxemenu?
Example:
player can take 1 free diamond in dm and than i give 24h permission, after than permission will disappear player can take again diamond.
how can i show how much time is left before the perm disappears?

fervent frigate
#

hi

velvet ingot
#

Hello, is it possible to transform placeholder output like "30m 20s" to just seconds like "1820"?

mint fable
#

you can use javascript and use this script I made for the playtime placeholder

var time = "%playtime_time%";
var weeks = parseInt(time.match("(?:\\d*(?=w))"));
var days = parseInt(time.match("(?:\\d*(?=d))"));
var hours = parseInt(time.match("(?:\\d*(?=h))"));
var minutes = parseInt(time.match("(?:\\d*(?=m))"));
var seconds = parseInt(time.match("(?:\\d*(?=s))"));
var total = 0;
if(!isNaN(weeks))
  total += weeks*604800;
if(!isNaN(days))
  total += days*86400;
if(!isNaN(hours))
  total += hours*3600;
if(!isNaN(minutes))
  total += minutes*60;
if(!isNaN(seconds))
  total += seconds;
total.toFixed();
tender vaporBOT
mint fable
#

@velvet ingot this

paper pewter
velvet ingot
tender vaporBOT
naive wigeon
#

Hi, I'm trying to use PAPI inside my plugins, however it throw me this error:

#
java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.PlaceholderAPIPlugin.getInstance()" is null
        at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:72) ~[MultiCommands.jar:?]
        at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[MultiCommands.jar:?]
#

And here's my code:

joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);
junior musk
#

did you add PlaceholderAPI in your softdepend/depend in your plugin.yml ?

naive wigeon
#

yep

junior musk
#

can you send your server logs?

#

?paste

tender vaporBOT
naive wigeon
#
softdepend:
  - MultiMaintenance
  - PlaceholderAPI
#

wait the whole logs?

junior musk
#

yeah

#

to make sure that PAPI is loaded before your plugin and not after

naive wigeon
#
[15:14:39 INFO]: [UltraRegions] Enabling UltraRegions v1.6.9
[15:14:40 WARN]: [UltraRegions] Loaded class me.clip.placeholderapi.expansion.PlaceholderExpansion from PlaceholderAPI v2.11.2 which is not a depend or softdepend of this plugin.
[15:14:40 INFO]: [UltraRegions] Loading Plugin...
[15:14:41 INFO]: Preparing start region for dimension minecraft:greymane
[15:14:41 INFO]: Time elapsed: 239 ms
[15:14:41 INFO]: [UltraRegions] Successfully loaded in 1179 ms
[15:14:41 INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.11.2
[15:14:42 INFO]: [PlaceholderAPI] Fetching available expansion information...
[15:14:42 INFO]: [PlaceholderAPI] Successfully registered expansion: uregions [1.0.0]
[15:14:42 INFO]: [UltraRegions] Hooked into PlaceholderAPI
[15:14:42 INFO]: [MultiCommands] Enabling MultiCommands v0.86.1
[15:14:42 INFO]: ---------------+ MultiCommands v0.86.1 +----------------
[15:14:42 INFO]:
[15:14:42 INFO]: Enabling commands:
[15:14:42 INFO]:

PAPI is been loaded before MultiCommands (my plugin)

junior musk
#

👀

#

do normal PAPI commands work ? like /papi list

naive wigeon
#

yessir

#

oh i can't send pictures

tender vaporBOT
naive wigeon
#

that's dumb

#

I don't have any others error except these

#

don't I have to do something to enable the hook from my plugin to PAPI maybe?

junior musk
#

I don't think so 👀

naive wigeon
#

Jsut checked again, PAPI is not built inside my jar too

#

PlaceholderAPI class that I use in my plugin comes from papi plugin jar

junior musk
#

did you open your jar with WinRar/7Zip ?

#

to check if the PAPI classes were in it

naive wigeon
#

yep