#placeholder-api

1 messages ยท Page 14 of 1

mint fable
#

ye

wise siren
#

bet

#

getting a test dummy on to punch rn

#

one moment

#

ok adding it on

#

didnt work

#

ok maybe it does work

#

i think the placeholder issue

#

is done

#

not its a matter of getting it to work on my armor set

#

so

#

thank you

mint fable
#

๐Ÿ‘

candid tangle
#

Why i dont see vault baltop placeholders? Theres so many tuts on youtube and its working for them

vivid sparrow
#

Baltop placeholders were moved to the essentials expansion since it is not a function provided by vault, but essentials

candid tangle
#

Why its not updating?

#

i have money and on top i have other value

spice oak
#

i have problem with papi and deluxemenus cause when i want to execute a command with %player_name% it dont works, this placeholder is even in example menu config, and the command dont work, because it says 'cannot find player named %player_name%' what can i do with it

#

?

random geode
#

make sure you have the player placeholder pack installed

spice oak
#

oh fuck

#

thanks broi

vivid sparrow
#

can you try to update the server expansion to the latest version (2.6.2)?

unborn hawk
#

Hi there, rather confused as to what is happening. This may seem very straight forward to some but after taking a massive break from the spigot library and java, i am so lost. This has only started happening recently.

Every time i use placeholderApi.setPlaceholders I get a NullPointerException. Here is an example code snippet:

@EventHandler // Listens for an event
public void onPlayerJoin(PlayerJoinEvent event) { // Runs when player joins the server
  Player player = event.getPlayer();
  String newChatMessage = PlaceholderAPI.setPlaceholders(player, "%luckperms_prefix%%player_name%" + ChatColor.GOLD + " has joined the server.");
        ChatColor.translateAlternateColorCodes('&', newChatMessage);
        event.setJoinMessage(newChatMessage); // Line 17
    }```
It gives me this in my console: 
```Caused by: java.lang.NullPointerException
    at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:72) ~[?:?]
    at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[?:?]
    at com.fluxx.welcomemessages.Event.onPlayerJoin(Event.java:17) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_361]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_361]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_361]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_361]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.16.5.jar:3096a-Spigot-9fb885e-af1a232]
    ... 14 more

I have all my dependencies setup and the events hooked into the main class. However unsure as to what the cause is directly. Many thanks.

vivid sparrow
#

do you use implementation() by any chance?

unborn hawk
#

Not that im aware of. I havent put that anywhere in the plugin.

vivid sparrow
#

no I mean in your build.gradle

#

or if you use maven, make sure the scope of the dependency is set to provided

unborn hawk
#

Sorry but im unsure what you mean, I use Intellij "Build Fragments" to do my building. Sorry for my lack of understanding but could you help me locate that?

vivid sparrow
#

ah, good luck with the built-in tool

unborn hawk
#

Oh is it not ideal to use that? I just dont understand as it was working fine earlier, and from what i can tell, i havent touched any other file other than the relevant classes

trim mist
unborn hawk
#

ok great ill look further, many thanks

stone edge
#

btw

newChatMessage = ChatColor.translateAlternateColorCodes('&', newChatMessage);

rose swan
#

Hello There,

i need help i use a Plugin that Dev told me i need the PAPI that the Plugin can work but idk what PAPI is and how it works i am new in Coding so i haven't much experience and with the Wiki of Papi i can't realy find out what to do can anyone help?

trim mist
#

Do you just need the plugin on the server?

rose swan
vivid sparrow
#

What do you even need?

rose swan
#

i got a code from another Plugin and the Dev told me i need to use PAPI but the Dev won't help me there because he say it's not his Plugin so he just gave me the link of the Plugin i would show you the code i got but i can't post Pictures here can i Post a link here?

tender vaporBOT
vivid sparrow
rose swan
#

Thats the code

rose swan
manic ingot
#

is placeholderAPI have a permission to use command ? I want my staff can using /papi parse to check some placeholder

prime sage
#

dependency 'me.clip.placeholderapi:2.11.2' not found

tender vaporBOT
#
Hey!

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

coarse lily
#

how to change this iron_ingot to this iron ingot ?

paper pewter
#

Hello! I have just updated the PlayerStats expansion, could someone verify it for me again? ๐Ÿ™‚

urban marsh
urban marsh
manic ingot
static surge
#

i got one problem

#

everything was fine then i did /papi ecloud download quests and now it doesnt work anymore

#

as i u can see there it says player biome not biome name and vault rank same think

#

suddenly those two thinks just broke pls someone help im almost done nothing works

vivid sparrow
#

remove the quest expansion ๐Ÿ™‚

static surge
#

how

vivid sparrow
#

when something breaks after you change something, revert the change

#

manually, from plugins/placeholderapi/expansions

static surge
#

omg lol

#

thanks

#

why would it not work

#

om one more think if u could know can u tell me pls how to add beautyquest that shows u the advance for example how many u killed or mined and much more u need

vivid sparrow
#

I guess the expansion is no longer needed for the new versions of the quest plugin

#

@patent merlin do you have a newer version of the expansion that works with the latest version of the plugin?

#

Caused by: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest

covert yarrow
#

please help

#

papi error's on startup once every 4-5 days

#

and breaks every single placeholder

sudden slate
covert yarrow
#

plsss

deep hollow
#

Hey ๐Ÿ™‚ Someone knows if I can rename an item with checkitem expansion?

sharp glacier
#

im currently using velocity and i have my lobby set on 1.19.3 and my uhc server on 1.8, and I need to check if the server has a motd; how would i do that?

#

with placeholder api

mighty wing
#

[20:17:06 WARN]: [PlaceholderAPI] Task #2315 for PlaceholderAPI v2.11.2 generated an exception
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:482) ~[server.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1039) ~[server.jar:git-Spigot-21fe707-741a1bd]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getPlayers(BungeeCordExpansion.java:120) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$200(BungeeCordExpansion.java:45) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:207) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) ~[server.jar:git-Spigot-21fe707-741a1bd]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [server.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [server.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-21fe707-741a1bd]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-21fe707-741a1bd]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]

tender vaporBOT
sharp glacier
#

is there a way i can get a server motd not the current server im on but another server?

sturdy loom
#

how do i make a math addition with a placeholder inside command and a changeoutput command where it changes that value to 0 if it says the number. (nested)

#

i need an example of it

patent merlin
tender vaporBOT
mint fable
vivid sparrow
neon fiber
#

PS: The placeholders are loaded, if anything.

paper pewter
# mint fable I can verify when I get the chance soon, just curious why keep it external vs. i...

Thanks a lot!
And honestly, I didn't know a lot when I first made the expansion and wasn't aware of the hassle it would be to maintain it as external. I had read the placeholderAPI wiki, which said internal and external were both valid choices, and I wanted to challenge myself, so I made an API for my plugin (also a first for me) and used that to create an external expansion. I'm quite proud of how it turned out, but I have come to see now why the first thing I was told in this discord is "oh we actually recommend making it internal" (which I found out after I made the whole thing ๐Ÿ˜†)

Long story short, I put quite a lot of effort into the expansion, and maintaining what I currently have seemed easier than moving it to inside my own plugin. I'd be open to make it internal in the future though, if that wouldn't impact the people currently using it too much.

sharp glacier
#

does placeholder work with velocity

trim mist
#

It does not go on the proxy itself

covert yarrow
#
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest
    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.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
    at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
    at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest
    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.3-DEV-165.jar:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
    ... 6 more
Caused by: java.lang.ClassNotFoundException: me.blackvein.quests.quests.IQuest
    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.3-DEV-165.jar:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
    ... 6 more```
#

how do i fix this piece of shit

#

it just randomly started doing this

#

i updated to dev ver

#

useless

turbid tide
covert yarrow
#

i dont have a quests expansion

turbid tide
#

execute /papi dump and send the generated link here

#

also have you tried restarting the server?

#

a full restart, not a reload or anything like that

covert yarrow
#

restarting it fixes it

#

i dont reload my server

#

the issue is, one out of ever 5 reboots, it breaks

covert yarrow
#

sec

#

pls help

#

every reboot its broken now

covert yarrow
#

omg

#

do i just update or delete that

turbid tide
#

delete

covert yarrow
#

okok lemme try that, ty

sharp glacier
#

simple way to get placeholder ui registered?

vivid sparrow
#

what? @sharp glacier

sharp glacier
warm plover
#

Heya, what are the slot ID's of the crafting slots for CheckItem?

mint fable
#

I don't think those slots are accessible

warm plover
#

Darn :/

mint fable
#

yep, looks like it's only accessible via click/drag events

vivid sparrow
#

isn't like you can put items there anyways

warm plover
#

Yeah but I need to disable those slots because it creates an exploit in my server

vivid sparrow
#

what?

junior musk
#

I got those from the Spigot wiki

vivid sparrow
#

nah that's for the click event probably

junior musk
#

oh he wants to use them with checkitem? no idea if that's possible

warm plover
# vivid sparrow what?

It allows people to craft in a certain section where they shouldnโ€™t be able to, thatโ€™s all

#

Iโ€™m using a plug-in to disable moving items to those slots, but it doesnโ€™t disable DRAGGING items across those slots

#

So people can still work around crafting, and for whatever reason I canโ€™t cancel the craft

patent merlin
tender vaporBOT
stone edge
mint fable
#

Makes sense, the slots don't exist unless the inventory is open

#

hence why you won't be able to check them

#

or... I'll do some testing

#

wording is always weird with spigot docs

#

@NotNull
InventoryView getOpenInventory()
Gets the inventory view the player is currently viewing. If they do not have an inventory window open, it returns their internal crafting view.

#

i will test and see, but slot numbers will be different so i'll have to consider that

stone edge
#

What i mention works at least to remove items from crafting grid to prevent duplications

regal yew
#

Hey, I need help. I am new to papi but i looked at examples and tried making my own expansion, i also put new PAPIExpansion().register(); in main already

but, when doing /papi list it does not show up

public class PAPIExpansion extends PlaceholderExpansion {

    @Override
    public boolean canRegister() {
        return true;
    }

    @Override
    public String getIdentifier() {
        return "ffa";
    }

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

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

    @Override
    public String onPlaceholderRequest(Player p, String identifier) {

        if (identifier.equals("kills")) {
            return String.valueOf(getKills(p.getName()));
        }
        else if (identifier.equals("deaths")) {
            return String.valueOf(getDeaths(p.getName()));
        }
        else if (identifier.equals("KD")) {
            if (getDeaths(p.getName()) == 0) {
                return String.valueOf(getKills(p.getName()));
            } else {
                DecimalFormat df = new DecimalFormat("#.##");
                double KD = (double) getKills(p.getName()) / getDeaths(p.getName());
                KD = Double.parseDouble(df.format(KD));
                return String.valueOf(KD);
            }
        }

        return null;
    }
}
final snow
#

How to create an account on the website?

#

it says registration is locked

vivid sparrow
#

do you have an expansion ready to publish?

#

@regal yew does %ffa_kills% not work?

vivid sparrow
#

Yes

final snow
stone edge
#

You should use uuid btw

undone willow
#

Hey guys I need help.
I installed a tabline.js and it used to work, Now it no longer doesn't after updating.
I registered it again but still nothing? what can I do?

#

[02:15:12 WARN]: [PlaceholderAPI] File: example.js for javascript placeholder: example is empty
[02:15:12 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: tabline

warm plover
#

Is there any placeholder that allows me to get a string after or before a certain character?

tender vaporBOT
# regal yew no D:
Hey!

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

regal yew
#

i forgot to turn off reply mention mb

junior musk
junior musk
junior musk
#

if it doesn't work, can you send your class where you register the expansion?

slow thorn
#

help

junior musk
#

can you send the second part of the error?

slow thorn
#

thats the whole part, i fixed it myself

vivid sparrow
#

Well, what was the problem?

slow thorn
#

well idk i jsut restarted my server

#

and it somehow fixed

vivid sparrow
#

Ah, classic

slow thorn
#

happens like everytime

vivid sparrow
#

@junior musk I remember seeing a "substring before" placeholder somewhere, hmm

junior musk
vivid sparrow
#

Uh

#

Welp, cant find it

#

It was probably a method xD

junior musk
#

%nested_string_substring_0,{string_indexOf_<someChar_<string>}_<string>%

#

should probably do the job

#

may not even needed Nested actually

#

but yeah

regal yew
#
public void onEnable() {
        plugin = this;
        this.registerEvents();
        new PAPIExpansion().register();
    }

try to override persist and set it to true
sorry but I dont understand D:

junior musk
#

and can you show your plugin.yml ?

regal yew
junior musk
regal yew
#

it works now, thx

junior musk
#

๐Ÿ‘

keen dirge
#

Hey everyone, my papi is version 2.11.2 and almost all https://prnt.sc/T5uDVCfsmi7f placeholders aren't working; does anyone have an idea why they dont work?

vivid sparrow
#

Do you have the expansions installed? /papi list installed

keen dirge
#

they used to work just fine

#

but now they dont at all? i also restarted the server and tried /papi reload

vivid sparrow
#

Try to parse one in chat

#

/papi parse me ...

keen dirge
#

parse?

#

i tried /papi parse me %pronouns_pronouns% but it gave me the ''an internal error occurred'' message

vivid sparrow
#

Check console

undone willow
dawn dew
#

I asked this a while ago and kind of forgot about it but is there any way to parse as someone who isn't online? I know cj89898 said no but perhaps with a plugin to fake pllayers?

mint fable
#

%team_color% was the placeholder in question

dawn dew
#

Oh alright my bad

#

I might be asking for a lot but do you think that could come in the future for %team_color%?

glacial crystal
#

ok so um were do i ask for help

tender vaporBOT
#
FAQ Answer:
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait

Source

warm plover
#

Yeah it doesn't let you use a character

cedar wave
#

hello i have a problem with deluxemenus, when in the menu i put "'[console] give %player_name% ITEM'" this doesn't work but if i put "'[console] give Antodirector ITEM'" (Antodirector is my nick) it works. I also tried with %player% %player_uuid% but nenache with them goes, this is the error in console: [22:24:19 INFO]: Invalid name or UUID
[22:24:19 INFO]: clear %player_name% minecraft:gold_block 1<--[HERE]. How come ?

#

i use placeholder-api

tender vaporBOT
#
FAQ Answer:

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

warm plover
#

uhhh what happened to %vault_prefix_color%

#

It doesn't work in game, just parses as %vault_prefix_color% and I can't find it in tab completion or on the wiki anymore

trim mist
warm plover
#

ah shoot, welp, just gotta downgrade

austere hawk
trim mist
#

Going to leave it for the time being. Need to talk with the team about the concept of this expansion.

austere hawk
#

If you have difficulty re-verifying this expansion please ping me after talking to the team

tidal sleet
#

Is Placeholders still broken in the latest paper update?

#

Yup placeholders is still broken

mint fable
#

Hmm, I don't think I've seen anybody else mention it yet, not sure if @trim mist has seen anything or not

#

Last I see, he couldn't reproduce your issue

trim mist
#

I just updated a server tonight to the latest build that has like 21 hooks and all worked fine ๐Ÿ™‚

austere hawk
#

%combatlogx_in_combat%

#

in this placeholder instead of just yes or no

#

its saying <red>No</red>

mint fable
#

I see 11.2.0.0 most recent github commit

Fix placeholder issues with new language system from BlueSlimeCore.

austere hawk
#

ok

tidal sleet
mint fable
#

any errors in your log?

#

besides the one you linked originally Caused byjava.lang.IllegalArgumentException: %aureliumskills_power% is not a PlaceholderAPI placeholder!

#

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

green crow
#

Is placeholder inside a placeholder possible?

#

What expansion do I need if it is

vivid sparrow
#

some expansions have native support, for others you need to use an expansion like nested

green crow
#

Let's say I have %ecopets_pet% and I want it inserted inside <id> of this placeholder %ecopets_<id>_current_xp%

would it be something like this? %nested_{ecopets_{ecopets_pet}_current_xp}%

green crow
#

Oh it works

#

Thank you

junior musk
#

you don't need the extra {} around the first placeholder, but yes, that's how it works

austere hawk
tender vaporBOT
austere hawk
#

sry for the ping

wise siren
#

is there a placeholder that shows how many potion effects a player has in an integer?

coarse lily
#

%math_2_0/0% = error ๐Ÿ™‚

mint fable
#

can't divide by 0

coarse lily
#

should be 0 reversed_fingerguns

junior musk
#

uh

mint fable
#

no...

junior musk
#

you don't know maths lol

mint fable
#

You can not divide by zero

#

That is a fact

junior musk
#

that's like, one of the most basic things you learn in school

mint fable
#

0/0 = everything

coarse lily
#

i know it

mint fable
#

or... well... error

coarse lily
#

%math_2_{statistic_player_kills}/{statistic_deaths}% thonking

junior musk
#

that is a better explanation

mint fable
#

make changeoutput

#

changeoutput if deaths is 0, make it 1

junior musk
#

I had the same idea x)

mint fable
#

or well

#

you could do that inside math

#

just min the value

#

or, max

#

max(1, {statistic_deaths}) maybe

#

maybe also MAX, not sure, we used it before tho

wise siren
#

if you cant divide 0 by something then technically 0 divided by said thing can be done 0 times which means the answer is 0

#

but ion know

mint fable
#

you can't divide by 0*

#

you can divide 0 by anything except 0

coarse lily
#

%math_2_{statistic_player_kills}/MAX(1, {statistic_deaths})% nice, its work

wise siren
#

ok

#

how many times can 0 go into 10

#

0 times right cause you cant do it

mint fable
#

you can't divide by 0

#

bruh

wise siren
#

lol

mint fable
#

i will not argue

wise siren
#

im kidding

#

anyways

mint fable
#

stupid shit

wise siren
#

anyways

#

placeholder for number of potion effects

#

?

tender vaporBOT
#
Placeholderapi
Useful Links & Information:

A resource that allows information from your favorite plugins be shown practically anywhere!
โ€ข Spigot
โ€ข Wiki
โ€ข Placeholder-List
โ€ข GitHub
โ€ข eCloud

wise siren
#

so if its not on those it doesnt exist

mint fable
#

not exactly, but most are on there

wise siren
#

also all the work we did with the changeoutput nestedx10000 placeholder was for zilch because the dev messed up an event activator

mint fable
#

if it's provided by another plugin, might not be on there

wise siren
#

;-;

mint fable
#

you could check all potion effects and add em up ๐Ÿ™ƒ

#

lmao

wise siren
#

we are gonna pretend that solution doesnt exist

mint fable
#

line 1, characters 5805

wise siren
#

if exhuasted, then quit

#

best if then clause

mint fable
wise siren
#

I will dm u and explain what the change output thing was for if you are interested

mint fable
#

damn devs smh

#

that was a long-ass placeholder

frank idol
#

support

#

?

#

19:16:01] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[19:16:01] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[19:16:01] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NullPointerException
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.NullPointerException

tender vaporBOT
#
Hey!

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

brazen path
#

Is there anything that regulates the update of %essentials_baltop_balance_formatted_<rank>%

I have this setup to display the top 5 balances on my server but for some reason the amounts are not updating to reflect the proper amounts on the player

prisma plover
#

PING ME with reply please, so i go to do /papi ecloud download player, it works then tells me to do /papi reload... i do that... and the issue is... after doing the reload part it doesn't save the install of the plugin/hook

vivid sparrow
#

@brazen path try to parse the placeholder in chat, if the value is different than the one on your hologram or where you have it displayed, check that plugin's update interval

brazen path
tender vaporBOT
brazen path
#

(not sure if the other message still sent due to alert) So I am getting the same result (between the parse and display), but its incorrect for sure

plush dove
#

Is there a placeholder for a number 0 through 10, but the greater an input, the higher the chance of getting a higher number?

#

so for example if I parsed it, theres a super high chance to get 0, slightly less to get 1, slightly less to get 2, and so on. But if I parse it with an input of 20, it has a higher chance of getting higher numbers

#

I'm assuming I use javascript for this

mint fable
#

I feel max + random maybe

#

EvalEx is pretty powerful

plush dove
#

Whats the MAX thing

mint fable
#

Use a log effect on the output maybe

#

max might not be useful here actually

#

Iโ€™m not a math genius lol sorry for the ping ๐Ÿ˜‚

plush dove
#

whooo? berry?

wise siren
#

no placeholder for weather is hindering me rn pls tell me I am missing it

#

cj come clutch up

zenith badge
#

The messages.yml file in deluxetags doesn't undertand placeholders in the Tags. Any tips?

vivid sparrow
#

I think papi support was added only for the tags, not the messages

mint peak
#

Do not understand why the item is not displayed have the so also again in the False format

vivid sparrow
#

wrong channel

paper pewter
prisma plover
#

PING ME with reply please, so i go to do /papi ecloud download player, it works then tells me to do /papi reload... i do that... and the issue is... after doing the reload part it doesn't save the install of the plugin/hook

ebon cypress
#

Is it possible to put a placeholder inside a placeholder? I would love to do %otherplayer_locx_%player%% or something similar

stone edge
#

try { }

ebon cypress
#

the plugin i'm using doesn't parse that

#

will I need to edit the plugin to do that or is there another way?

stone edge
#

what?

#

maybe using nested expansion

ebon cypress
#

i'll try that, thanks

#

I don't think that will work

austere hawk
#

Hmm, how would you do that? I could also like manually put in a list of quotes and fun facts myself, and just have the placeholder randomly return one of them if possible.

drowsy river
#

Hi, i'm trying to use the expansion "Server", which I downloaded from the ecloud command.
It's now in the expansions folder, but when it loads, it fails to load with this error:

 java.lang.NullPointerException: The expansion version is null!```

I don't understand this expansion can be invalid since it's an official and common expansion.
Can somebody help ?
austere hawk
mighty schooner
#

Hey, just a question out of curiosity:
how are you guys handling placeholders for offline players? Currently using placeholders in a ban command, but the offlineplayers name is always null if the person hasnt played before

vivid sparrow
#

well, what do you expect?

fleet notch
#

Hey, im having an issue with the plugin not hooking to any placeholders after a restart. But when i load the plugin everything hooks/works

prisma plover
mint fable
#

@ebon cypress use the parseother expansion

#

instead of otherplayer

mint fable
ebon cypress
warm plover
#

Does anyone know a placeholder were I can separate a string into multiple via a character?

#

For example:
%string_separate_\u_1_WOODEN_SWORD > WOODEN
%string_separate_\u_2_WOODEN_SWORD > SWORD

#

\u stands for _ in this example

#

Seems like something that would have to be made with the JS expansion but it's worth asking xD

trim mist
#

I don't think so, but I also think an actual expansion would perform better than using JS for that.

warm plover
#

Ah, I see

trim mist
#

Check the placeholders there

warm plover
#

Yeah, I actually use string already, sadly it doesn't have this feature

#

It has %string_substring_<startIndex>,<endIndex>_<string>% which is the closest thing, but sadly won't work for automation since it uses integers and not strings to "split" it

mint fable
warm plover
#

How does that work?

mint fable
#

hello indexof ell is 1

#

also %string_lastIndexOf_<string>_<match>%

#

should be easy to add i feel

#

a split

warm plover
#

Ah yeah

drowsy wind
#

hello

#

anyone here to help me

#

?

#

@mint fable@sharp jay

tender vaporBOT
sudden mist
#

hello

#

can anyone tell me balancetop of offline and online players placeholder for leaderboards ?

keen dirge
#

i restarted the server, the placeholders are downloaded

#

i got the right papi version

#

it used to work just fine until a week ago

vivid sparrow
#

I don't remember, do they work on /papi parse?

#

what's weird is that one of them works

keen dirge
vivid sparrow
#

ok and whats the error?

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

keen dirge
#

let me check

vivid sparrow
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.

keen dirge
#

oh

vivid sparrow
#

my guess is this pronouns expansions breaks the loading of the other expansions

keen dirge
keen dirge
#

how can i turn it off to test?

vivid sparrow
#

actually, try to remove the pronouns placeholder from your chat format for a test

keen dirge
#

omgg

#

it works now

vivid sparrow
#

great, report the problem to the author then

keen dirge
vivid sparrow
#

np

#

when a placeholder doesn't work somewhere, try it in chat as well

#

idk why it didn't throw an exception when you talk, it is probably supressed

paper pewter
tender vaporBOT
tender vaporBOT
prisma plover
#

PING ME with reply please, so i go to do /papi ecloud download player, it works then tells me to do /papi reload... i do that... and the issue is... after doing the reload part it doesn't save the install of the plugin/hook

https://paste.helpch.at/iqevenayok this is my dumpfile

warm plover
#

Putting this inside your expansions folder

prisma plover
#

Iโ€™ll try

minor crystal
vivid sparrow
#

@arctic loom I've tried to check the code but I CBA to dig that deep

mint fable
#

Also there's no guarantee I'll see a message unless pinged lol

arctic loom
#

Nothing my plugin handles.
It just gets an OfflinePlayer based on cached player UUID and gives that to PAPI.
So it's probs the placeholder not accepting offline players (or it being null... idk). @vivid sparrow @minor crystal

vivid sparrow
#

@minor crystal what placeholder are you using?

minor crystal
vivid sparrow
#

yeah that placeholder requires a player to be online

minor crystal
#

So.. Why...

#

Is it possible to fix?

vivid sparrow
#

because it will get the size from player's world

minor crystal
#

Hm, Ok I understand

vivid sparrow
#

%worldborder_fromWorld_{world name here}_size% - the { } are required

minor crystal
#

Ok, thanks, I will try later

vivid sparrow
#

typo, it is fromWorld not fromName*

wraith kernel
#

What papi ecloud extension would i have to install for decent holograms?

mint fable
#

Whichever ones you need/want

#

if you want %player_name% get player

tender vaporBOT
#
Placeholderapi
Useful Links & Information:

A resource that allows information from your favorite plugins be shown practically anywhere!
โ€ข Spigot
โ€ข Wiki
โ€ข Placeholder-List
โ€ข GitHub
โ€ข eCloud

mint fable
#

list here this

severe spear
mint fable
#

is the other user offline?

#

If so, the luckperms placeholder probably won't work for offline players, and there is no way to "fix" this.

arctic loom
arctic loom
mint fable
#

they are

arctic loom
#

That's an.... interesting choice

mint fable
#

parseother_{}_{}

#

it was so I could use _ at first

#

and kept it

nova turret
#

So I have the placeholder %menoliamarket.market1% put when I tried the common command /papi parse me %menoliamarket.market1% it resend me %menoliamarket.market1% So if someone know why? tell me please !!! (PING ME ! ||@nova turret ||)

tender vaporBOT
#
๐Ÿ“‹ Your paste: Weeno
https://paste.helpch.at/olorecicel

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

#
๐Ÿ“‹ Your paste: Weeno
https://paste.helpch.at/oporacocup

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

mint fable
#

You formatted it with javascript? thonking

tender vaporBOT
#
๐Ÿ“‹ Your paste: Weeno
https://paste.helpch.at/ukivurewiz

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

mint fable
#

but, it looks to me like you coded it for %menoliamarket_market.1% where 1 is the market name

#

try that

dreamy drift
#

Probably a really dumb question to ask, but here it goes. Why and when did Papi switch from {Example_Placeholder} to %Example_Placeholder%. Reason why I'm asking - I tried to use the placeholders from my 1.16 FB config on 1.19 (They no longer work) and now I cannot find 1:1's of the old {Example_Placeholder} in the new format.

vivid sparrow
#

Placeholderapi never switched the format. Previously, FB had its own placeholderapi version and then max switched to ours. @dreamy drift

dreamy drift
vivid sparrow
#

D:

severe spear
minor crystal
tender vaporBOT
tender vaporBOT
#
Unknown Resource!

I couldn't find a resource with the name or id of Deluxe menu

#

v1.16.2 by InactiveResource
The original "json" chat formatting plugin

Downloads:

6,432

Rating:

4.4โ˜…

Reviews:

372

pallid hedge
#

any way to reset statistic playtime and kills ?

coarse lily
pallid hedge
coarse lily
#

then going to playerdata

#

if you clear that

pallid hedge
#

ok thanks ๐Ÿ˜„

coarse lily
#

you will clear all player data like kills, deaths, inventory, ender chest, etc

pale jay
coarse lily
#

new knowledge has been acquired

pale jay
#

I've always deleted the stats folder too when I've had to clear stats for example pre launch. Just player data might do it too ๐Ÿคท

surreal spindle
#

Having issues with %bungee_total% and %bungee_servername% placeholders

#

I updated PAPI to latest version and downloaded the latest Bungee extension and now only %bungee_total% is loading

#

I also have issues with placeholders freezing playercounts

surreal spindle
#

When I updated the bungee extension and updated PlaceholderAPI it broke

turbid tide
surreal spindle
#

I will update it and do that command

#

do you know why an older version of Expansion-bungee.jar would work but not the newer one?

surreal spindle
heady urchin
#

Having an issue with the Progress expansion not parsing color codes

#

Anyone know a fix

#

Tried minimessage & legacy formatting

south remnant
#

Can anyone give me a hint?
Is there a placeholder that shows the coordinates of where the player is looking?

gusty hemlock
#

For placeholders that return a string of values, for example worldguard member placeholder, is there an easy way or expansion that allows me to "break up" the string into multiple substrings?

vivid sparrow
#

no

gusty hemlock
#

Dangit

#

ty

final snow
#

Help

#

When I try to register to the website it says to contact on discord

#

who am I supposed to contact?!

trim mist
#

What is your use-case for needing to have an account?

final snow
trim mist
#

Then add it inside your plugin

#

You don't need it externally in the eCloud.

final snow
#

all I need to do is to extend PlaceholderExpansion and add my placeholders to there?

final snow
#

How to create a parameterized placeholder? My plugin has a int getTimesMined(Material material) method and I want to create a placeholder like: %myplugin_diamond_timesMined

#

the diamond can be replaced with any Material ofc

#

couldn't find anything on the wiki

trim mist
#

That isn't specific to PlaceholderAPI. Just use Java string splitting

final snow
trim mist
#

You could try that sure, I have no idea if it'll work or not.

final snow
#

because otherwise I have no idea

trim mist
#

Well it works with the Essentials expansion, you could try it, or make the variable you need at the end of the placeholder.

final snow
trim mist
#

No? Just split the string and get the last entry and get it as a material and handle it as you would in your plugin.

final snow
#

materialName = substring(lastIndexOf('_'), params.size());

trim mist
#

Okay that's fine

final snow
#

alright, thank you

trim mist
#

Please stop pinging with your replies.

amber silo
distant solstice
#

Hello everyone. Is it possible to return a PlaceHolder but force to write in CAPS ?

mint fable
#

uppercase @distant solstice this

#

%string_uppercase_{player_name}%

distant solstice
#

so like this %luckperms_primary_group_name% -> %string_uppercase_{luckperms_primary_group_name}%

#

ok thank you verry much cj89898

shy ridge
#

Trying to create a plugin that gets an integer from a placeholder and then updates the int. How can this be done? Basically how do I convert a placeholder from config.yml or something to an integer

vivid sparrow
#

Interger#parseInt

shy ridge
#

But that does not connect the placeholder to the integer?

vivid sparrow
#

ah

#

parse the placeholder first with PlaceholderAPI#setPlaceholders and then turn it into an int

shy ridge
#

Like this?

    @Default
    public void onCheckPapi(Player player) {
        count++;
        PlaceholderAPI.setPlaceholders(player, String.valueOf(count));
    }

I don't really understand how creating placeholders work I think

vivid sparrow
#

perhaps you should read the header at the top

#

what do you want to do exactly?

shy ridge
#

I want to create a command that tells the player how many times it has been used, using a placeholder, so the placeholder is connected to the integer counter. So it adds 1 to that int every time it's used.

#

So I need to create a PlaceholderExpansion right?

vivid sparrow
#

yes

shy ridge
vivid sparrow
#

I don't get the "update in config" part

shy ridge
vivid sparrow
#

Increase the value and then display it with a placeholder

#

placeholders have to be set on a message or something that will be sent to the player

#

the setPlaceholders method won't send the message automatically

#
methodToIncreaseCount();
player.sendMessage(setPlaceholders(player, "You have used the command %placeholder here% times");```
shy ridge
#

Ahhh I see, still not sure why the player is used as first arg in the setPlaceholders method though.

vivid sparrow
#

because placeholders can be player specific

#

e.g. %vault_eco_balance% will display the balance of the player provided as argument

#

while %server_online% will display the same value (the amount of players online) regardless of the player that's provided or if it is null

shy ridge
#

Ahhh I see, so it's not always used but just always there

#

Alright, thanks, testing now

vivid sparrow
shy ridge
#

Hmm it doesn't work https://paste.helpch.at/ibikacoweg.typescript

player.sendMessage(PlaceholderAPI.setPlaceholders(player, "The command has been used %papi_count% times"));

Any idea why? It just writes The command has been used %papi_count% times when using the command

vivid sparrow
#

you are registering an expansion, each expansion has an unique identifier (vault, server, player etc) and then what's after the first underscore is passed to the onRequest method

shy ridge
#

Ahh I see, so which type is this?

vivid sparrow
#

you can have any identifier you want, that was just an example, it needs to be a single 'word' without an underscore

#

%vault_eco_balance% -> vault is the identifier, eco_balance is what gets sent to onRequest(OfflinePlayer, String)

shy ridge
#

Ahhhh alright, thanks

#

Iโ€™ll test it in a bit

peak ether
#

Is there a way to wait till all the expansions have finished loading after /reload ing the server?

vivid sparrow
#

yes, dont use /reload

shy ridge
tender vaporBOT
shy ridge
#

Oops sorry for the ping

shy ridge
#

Got it working, thanks for the help ๐Ÿ™‚

sharp raft
#

How can I transfer the coin on the site into the game?

sharp raft
#

Support?

#

who have idea?

trim mist
#

That's a very vague question. What is "the coin on the site"?

sharp raft
trim mist
#

Can you upload that image to imgur and re-send? Not opening.

tender vaporBOT
mint fable
#

Could you elaborate on what that image shows?

amber silo
mint fable
#

might be corrupt

#

try a fresh download off spigot

sharp raft
mint fable
#

What database

#

Please provide as much info as you can

#

you sent a picture of a website and nobody else knows what it is

sharp raft
#

and I want to transfer it to the game that's it

mint fable
#

I would be careful though, every time you call the placeholder it's going to query the database, which could be multiple times per second

#

I don't think the expansion caches, but not sure

#

would probably be weird if it cached

sharp raft
#

๐Ÿ‘

amber silo
tender vaporBOT
amber silo
#

o srry

sharp glacier
#

does placeholderapi work on all proxy servers if placed in proxy?

vivid sparrow
#

No, papi doesnt support any sort of proxy, it is a spigot plugin

wooden zealot
#

[23:28:30 WARN]: Could not pass incoming plugin message to PlaceholderAPI v2.11.2 java.lang.IllegalStateException: java.io.EOFException at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:383) ~[server.jar:1.8.8-R0.2-SNAPSHOT] at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?] at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:428) ~[server.jar:1.8.8-R0.2-SNAPSHOT] at net.minecraft.server.v1_8_R3.PlayerConnection.a(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT] at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT] at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils.lambda$0(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_362] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_362] at net.minecraft.server.v1_8_R3.SystemUtils.a(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT] at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$2(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_362] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[?:1.8.0_362] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_362] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[?:1.8.0_362] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_362] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_362] at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_362] Caused by: java.io.EOFException at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340) ~[?:1.8.0_362] at java.io.DataInputStream.readUTF(DataInputStream.java:589) ~[?:1.8.0_362] at java.io.DataInputStream.readUTF(DataInputStream.java:564) ~[?:1.8.0_362] at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:381) ~[server.jar:1.8.8-R0.2-SNAPSHOT] ... 17 more

#

what's this error?

mint fable
#

try this mirror through discord

#

idk what's up with yours

amber silo
mint fable
#

possibly

#

the class is probably getting relocated or something

#

you only have one placeholderapi right?

amber silo
#

But I had a server already with mods/plugins but it never gave me that error

mint fable
#

can you send the entire startuplog

#

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

mint fable
#

especially with modded, changes happen weirdly

amber silo
#

Ok now I'll pass you the latest logs

swift vortex
#

palceholders dont work with deluxetags pls help

mint fable
#

if there is suppport for mixin i would ask them

amber silo
mint fable
#

there is nothing we can do about modded

amber silo
austere hawk
#

please help me with math placeholder, i want to use it for played time like that, played: <%statistic_minutes_played%/60>

surreal spindle
#

%bungee_count_total% placeholder is working for me with new updated Expansion-Bungee.jar but the %bungee_count_<server-name>% is just returning 0 on everything I try

vivid sparrow
#

@surreal spindle

%bungee_total%
%bungee_<servername>%```
surreal spindle
#

those don't work with the new Bungee-Expansion

#

look at the pinned message

#

I will pay someone for them to help me fix this lmao

#

I need my placeholders working like asap

#

they either are 0 or freeze on all realms

vivid sparrow
#

a players needs to be online on that server

surreal spindle
sinful pecan
#

Hello. I put placeholderapi in my server but with bedwars1058 it don't work

#

Pls help me

tender vaporBOT
#
Help Menu:

Various Commands for Barry.

๓ € ๓ € ๓ € /Help General

โ€ข General Bot/Guild Commands

/Help Misc

โ€ข Miscellaneous Commands

/Help Level

โ€ข XP and Level Commands

/Chatreaction Help

โ€ข ChatReaction Help

austere hawk
#

can someone tell me whats wrong with that placeholder? %math[1]:[prc]{statistics_minutesplayed}/60% it just shows up as text

mint fable
#

%math_[precision]:[rounding]_<expression>%
[precision] and [rounding] do not include the []

#

only for the [prc] specifically

#

but what are you using [prc] for?

#

it's modulus

austere hawk
mint fable
#

are you just wanting to show a % sign before the number?

austere hawk
#

no

mint fable
#

okay, I don't see why yoou need a % there

austere hawk
#

for example: 2892 minutes will show up as 48.2 hours

#

like that

mint fable
#

%math_1:_{statistics_minutesplayed}/60%

#

just checking if you needed the % or not, this should do what ya need

stuck nest
#

Hi, any info?

deep hollow
#

Hey, does nested has any limit?

#

papi parse xNekio %nested_math_(({tokens_Tokenator_level}*4.5)*{changeoutput_equals_input:2.0_matcher:{autosell_global_multiplier}_ifmatch:2_else:1})+(({tokens_Tokenator_level}*4.5)*{changeoutput_equals_input:2.0_matcher:{autosell_global_multiplier}_ifmatch:2_else:1})*(({formatter_text_replace_x__{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:39_loreequals:6}}}+{formatter_text_replace_x__{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:38_loreequals:6}}}+{formatter_text_replace_x__{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:37_loreequals:6}}})/100)%

#

that one is parsing, but if I add another {formatter it's giving this error

junior musk
#

not needed

#

the number is only needed when the placeholders output other placeholders

#

yeah, it's confusing

mint fable
#

I didn't really look

#

and disconnected

deep hollow
junior musk
#

there's nested placeholders (placeholders resulting in other placeholders) and inner placeholders (placeholders as arguments in other placeholders)

mint fable
#

i thought they were going deeper tho

#

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

junior musk
#

I have no idea

deep hollow
#

papi parse xNekio %nested_math_(({tokens_Tokenator_level}*4.5)*{changeoutput_equals_input:2.0_matcher:{autosell_global_multiplier}_ifmatch:2_else:1})+(({tokens_Tokenator_level}*4.5)*{changeoutput_equals_input:2.0_matcher:{autosell_global_multiplier}_ifmatch:2_else:1})*(({formatter_text_replace_x__{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:39_loreequals:6}}}+{formatter_text_replace_x__{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:38_loreequals:6}}}+{formatter_text_replace_x__{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:37_loreequals:6}}}+{formatter_text_replace_x__{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:37_loreequals:6}}})/100)%

#

that one gives the error from before

mint fable
#

you might just be limited from input

junior musk
#

which error?

deep hollow
junior musk
#

oh

deep hollow
mint fable
#

nah looks like it's taking it all

junior musk
#

yeah

deep hollow
#

yeah that's weird :S

junior musk
#

maybe there's a { or } missing

#

I'll check

deep hollow
#

Yeah that's what I thought

#

i'm basically checking all armor slots to check if player has armor and set the boost amount

lone ferry
#

Hi! Where I can make a suggestion for deluxemenus?

trim mist
#

This channel is fine

wooden zealot
#

[23:28:30 WARN]: Could not pass incoming plugin message to PlaceholderAPI v2.11.2
java.lang.IllegalStateException: java.io.EOFException
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:383) ~[server.jar:1.8.8-R0.2-SNAPSHOT]
at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:428) ~[server.jar:1.8.8-R0.2-SNAPSHOT]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT]
at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT]
at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils.lambda$0(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_362]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_362]
at net.minecraft.server.v1_8_R3.SystemUtils.a(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT]
at net.minecraft.server.v1_8_R3.MinecraftServer.lambda$2(Unknown Source) ~[server.jar:1.8.8-R0.2-SNAPSHOT]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_362]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[?:1.8.0_362]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[?:1.8.0_362]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[?:1.8.0_362]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_362]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_362]
at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_362]
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340) ~[?:1.8.0_362]
at java.io.DataInputStream.readUTF(DataInputStream.java:589) ~[?:1.8.0_362]
at java.io.DataInputStream.readUTF(DataInputStream.java:564) ~[?:1.8.0_362]
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:381) ~[server.jar:1.8.8-R0.2-SNAPSHOT]
... 17 more
what's this error?

lone ferry
# trim mist This channel is fine

Great. It would be great to add an option to check if the player has a permission on a certain server. I'm trying to create a shop based on player points and I have some packages (permission based) that can be purchased per server (Survival, SkyBlock etc) but DeluxeMenus can't verify if the player has the permission on a specific server, it just checks if the player has the permission

tender vaporBOT
mint fable
#

I have not seen any cross-server placeholders like that myself though

#

Another thing for permissions is that the placeholders wouldn't work if the user isn't online anyway

#

the user is only cached in the permission plugin while they're online

#

if it didn't cache, it would have to call the database every single time to retrieve the value which could be multiple times per second/tick

#

if you happen to be storing your permission info in mysql, there is a mysql expansion... but use at your own risk due to the issue mentioned above this

junior musk
#

only things I changed in your placeholder are the Tokens and AutoSell placeholder (which I replaced by server_online so it gives a number) because I didn't have those plugins

deep hollow
#

the yes placeholders, are boost number from armors, like 2, 10, etc

#

with 3 formatter placeholders it works, but when I add the 4, it gives the error :S

austere hawk
#

Heya

#

the Bungee expansion is not working for me

#

The %bungee_total% returns the correct number

#

but %bungee_<server name>% returns 0

#

%bungee_Gens% = 0

#

%bungee_Lobby% = 0

#

even though am on one of them

#

still the result is 0

#

@mint fable

tender vaporBOT
austere hawk
#

sorry I was clicking ur profile

#

and it magically right-clicked and sent the message

urban marsh
austere hawk
#

i did

#

no work

gilded lantern
#

could someone explain me how to setup a countdown with this placeholder? %server_countdown_<SimpleDateFormat>_<ActualDateAndTimeBasedOnSDFSpecified>%

#

well i know how the simple dateformat can be set for the time.. but how to set a countdown with this? an example would be great

wooden zealot
trim mist
#

I've been told there only two scenarios for that error to occur:

  • The server having the player count requested is offline
  • You caught Bungee taking a dump or performing some housekeeping
limber ice
#

did they change the Javascript expansion name?

austere hawk
#

yo guys i cant do /papi reload

trim mist
austere hawk
#

nothing happens

trim mist
#

Do it from console

austere hawk
#
12.03 04:23:40 [Server] [INFO] java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: me/zhanshi123/globalprefix/cacher/PlayerData
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1176) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1647) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1614) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
12.03 04:23:40 [Server] [INFO] Caused by: java.lang.NoClassDefFoundError: me/zhanshi123/globalprefix/cacher/PlayerData
12.03 04:23:40 [Server] [INFO] at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.lang.Class.privateGetDeclaredMethods(Class.java:3373) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.lang.Class.getDeclaredMethods(Class.java:2480) ~[?:?]
12.03 04:23:40 [Server] [INFO] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
12.03 04:23:40 [Server] [INFO] ... 6 more
12.03 04:23:40 [Server] [INFO] Caused by: java.lang.ClassNotFoundException: me.zhanshi123.globalprefix.cacher.PlayerData
12.03 04:23:40 [Server] [INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:432) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.lang.Class.privateGetDeclaredMethods(Class.java:3373) ~[?:?]
12.03 04:23:40 [Server] [INFO] at java.lang.Class.getDeclaredMethods(Class.java:2480) ~[?:?]
12.03 04:23:45 [Server] [INFO] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[?:?]
12.03 04:23:45 [Server] [INFO] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
12.03 04:23:45 [Server] [INFO] ... 6 more```
#

i did

#

first time happening

trim mist
#

Do you have an expansion called PlayerData or GlobalPrefix? If so, remove it. You don't have the plugin to go with it.

#

Yeah it's called GlobalPrefix

#

Remove it from the expansions folder and reboot. Should fix it.

austere hawk
#

oh im slow

#

thats my bad

#

i didn't even notice

trim mist
#

๐Ÿ™‚

austere hawk
#

tysm

limber ice
#

when I try to update via download it's not in list

#

only J is JetsPrisonMines

#

Also Autorank expansion is built in the plugin and the papi installed list it's gold, is there a way to get that to update to green?

trim mist
#

It's not a verified expansion

#

You have to download it from the website.

sinful pecan
#

Hello. I put placeholderapi in my server but with bedwars1058 it don't work plsss help me

#

Hello. I put placeholderapi in my server but with bedwars1058 it don't work

tender vaporBOT
#
Help Menu:

Various Commands for Barry.

๓ € ๓ € ๓ € /Help General

โ€ข General Bot/Guild Commands

/Help Misc

โ€ข Miscellaneous Commands

/Help Level

โ€ข XP and Level Commands

/Chatreaction Help

โ€ข ChatReaction Help

sinful pecan
#

/help misc

trim mist
#

Looks like that plugin manages it's own placeholders. I'd suggest reaching out to the developer of the plugin.

sinful pecan
#

Where I can ask him

trim mist
#

I'd recommend looking at the SpigotMC page for any contact details.

sinful pecan
#

Ok

#

Thanks

#

When I go to discord support it send me to this discord

#

Hello. I put placeholderapi in my server but with bedwars1058 it don't work so where i can ask

#

/

vivid sparrow
sinful pecan
#

Ok

deep hollow
#

Hey, sorry for this dumb question ๐Ÿ˜‚

#

but how can I show lore line 1 of a diamond_pickaxe in my inventory? %checkitem_getinfo_mat:diamond_pickaxe_loreequals:1%

#

tried that but it's returning yes

vivid sparrow
#

I think there was a way to show an item from player's inventory

#

Item in main hand (main_hand).
Item in off hand (off_hand).

deep hollow
#

oh yeah, main hand works

#

but why does loreequals:1 doesn't give the entire lore line?

#

%checkitem_getinfo:mainhand_loreequals:1%

#

it always removes the last character I think

vivid sparrow
#

idk, that looks like a condition not a getter

deep hollow
#

and there's a way to show entire lore of main hand item on deluxemenus?

vivid sparrow
#

doesn't material: main_hand do that already?

deep hollow
#

damn didn't know that haha

#

ty again ๐Ÿ™‚

gilded lantern
tender vaporBOT
sterile pulsar
#

Trying to make it so a players time is accurate to what it displays on a tablist plugin. how can i make it work?

#

been told to use %localtime_time% But not sure how i can make it work on the tab plugin? as i needed placholder API for it to work?

#

Any help would be appreciated. it's the last thing i need to do for overhauling my tab list. just want to get it done.

#

i have done /papi ecloud download LocalTime & reloaded.

sterile pulsar
#

figured it out myself. Lol who needs support

cyan kestrel
junior musk
deep hollow
#

Hey, someone knows why when I use {changeoutput_>_input:{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:39_loreequals:6}}_matcher:0_ifmatch:{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:39_loreequals:6}}_else:0} is returning me 0 but when I use it with math expansion (%nested_math_{changeoutput_>_input:{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:36_loreequals:6}}_matcher:0_ifmatch:{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:36_loreequals:6}}_else:0}%) it returns an error..?

#

it's like with math, isn't doing the entire changeoutput

coarse lily
#

why you use math ?

vivid sparrow
#

xNekio, have you ever consider to use custom plugins?

deep hollow
#

Because I'm including this changeoutput in another math placeholder

deep hollow
#

also I don't know java haha

coarse lily
#

so why don't you use %nested_math_0_<a random number>*{changeoutput_>_input:{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:39_loreequals:6}}_matcher:0_ifmatch:{formatter_text_replace_&eโ™ &fBoost: &e__{checkitem_getinfo:39_loreequals:6}}_else:0}%

deep hollow
#

yeah works well if you've slots in 36, 37, 38, 39

#

but if you remove an armor on these slots, you receive (An error ocurred...) and then you can't parse it

vivid sparrow
deep hollow
#

that's why I use changeoutput, if the boost is higher than 0, then print the boost number, if not (no armor), then print 0

deep hollow
#

that's a placeholder that will be parsing each block broken for every player, as it will be giving tokens

#

or someone is doing paid comissions here? So I can create an external plugin for getting boosters from 4 armor slots?

vivid sparrow
#

Just because it "can" be done with 20 papi placeholders doesnt mean you should do it

deep hollow
#

For which reason, not optimized using a lot of placeholders?

vivid sparrow
#

What do you think?

deep hollow
#

But won't be the same running the same expressions on a java plugin than with placeholderapi expansions? I mean, it will be same perfomance no?

#

or I'm wrong

mortal wind
#

Hey all, Im looking for a way to send papi placeholder data from one server to another server over some sort of database. Its a placeholder that shows a countdown timer from a plugin on one server i want people to be able to see everywhere. Is there currently any way to send papi placeholder data across servers? Thanks

vivid sparrow
limber ice
#

is there a way to verify my expansion in my plugin?

vivid sparrow
#

hm?

cyan kestrel
high comet
#

the docs say onPlaceholderRequest(Player, String) is a thing but I'm not seeing it in me.clip.placeholderapi.expansion.PlaceholderExpansion
(I'm using placeholderapi version 2.11.2)

#

and chat gpt insists it should be there lol

mint fable
#

Please do not use chatgpt as reference

high comet
#
You must choose between one of these two methods for handling the actual parsing of placeholders:

onRequest(OfflinePlayer, String)
If not explicitly set, this will automatically call onPlaceholderRequest(Player, String). This method is recommended as it allows the usage of offline players, meaning the player doesn't need to be online to get certain information (i.e. name).
onPlaceholderRequest(Player, String)
If not set, this method will return null which PlaceholderAPI sees as an invalid placeholder.
The Player can be null, so keep that in mind when handling your placeholders.

neither of those are there

mint fable
#

I don't know what part you're using chatgpt to help you with

#

but it can cause a lot of issues

high comet
#

I downloaded the placeholderapi jar from spigot and imported it into intellij

#

oh I see it now
it extends PlaceholderHook
I'm an idiot

heady lance
#

how i can use keybind component in placeholders

#
                KeybindComponent swap = new KeybindComponent("key.swapOffhand");
                return swap.toPlainText();
#

its returning key.swapOffhand

vivid sparrow
#

toPlainText

#

And you can not do that

#

Maybe you can use it in a plugin that uses MiniMassage

heady lance
tender vaporBOT
gilded lantern
#

could someone explain me how to setup a countdown with this placeholder? %server_countdown_<SimpleDateFormat>_<ActualDateAndTimeBasedOnSDFSpecified>%. well i know how the simple dateformat can be set for the time.. but how to set a countdown with this? an example would be great

coarse lily
#

%server_countdown_dd/MM/yyyy_1/1/2024%

high comet
#

does placeholderapi not support bungee?
I get this error:

WARNING Error loading plugin PlaceholderAPI
13.03 03:47:45 [Server] INFO java.lang.NoClassDefFoundError: org/bukkit/plugin/java/JavaPlugin
high comet
#

is there a fork or something for bungee?

#

I'm trying to make my own placeholders for serverlistplus

stone edge
#

This is a spigot plugin

high comet
#

then why is there a bungee expansion? is that meant for the backend servers?

stone edge
#

bungee expansion is to get data from bungee servers, online players in the whole bungee or specific server for example

high comet
#

ah ok

tawdry jasper
#

Not Sure the best place to ask, Im using PlaceholderAPI and DiscordSRV and want to show player count in the Discord Bot Presence, have tried to use the place holder {players_online} and {playersonline} however just shows as {players_online} rather then the actual value

stone edge
#

First of all DSVR supports placeholderapi?

#

if not, ask them to support it or ask if they made a built-in placeholder

#

to display online players

junior musk
#

I'm pretty sure it supports PAPI placeholders

#

though it's %%, not {}

tawdry jasper
#

I tried %% as well haha

junior musk
#

do the placeholders you used work when you use /papi parse me %placeholder% ?

tawdry jasper
#

Looks like I might have got the answer will post here once I know hahaha

#

Turns out it's %online%

junior musk
#

yeah, using DiscordSRV's own placeholders works as well, but regarding PAPI placeholders, idk what could be wrong

mint fable
#

players_online isn't a papi placeholder

#

server_online is

junior musk
#

oh yeah, didn't notice lol

coarse lily
#

Tanguygab, are you here ?

dense spade
#

Hello, can I somehow use PAPI to show how much it will cost to get my pickaxe enchanted with all of my tokens (on an enchant like fortune or something) %tokenenchant_XXX_affordablelevel% is a new placeholder that allows a player to enchant as much as he/she can with the tokens they own, but the price is something I can't understand how to make vk tried helping me but it didn't work (

mint fable
#

and you won't need to use the affordablelevel placeholder

#

%tokenenchant_<enchantment>_costmax%

safe rose
mint fable
#

Yes, but I don't think it's needed in the situation

dense spade
#

because it doesn't suit what I need from it

mint fable
#

Yes, then I misunderstood

dense spade
#

A good example to understand what I mean:
If I can buy 50 unbreaking levels and the max is 100 that placeholder will just show me how much 100 levels will cost, and not show me how much 50

#

would cost

mint fable
#

aha

#

so yoou need to do affordablelevel-currentlevel

#

lets see

safe rose
# mint fable aha

isn't there a way to embed another placeholder inside a placeholder?

mint fable
#

%nested_tokenenchant_unbreaking_cost_{math_0:_{tokenenchant_unbreaking_affordablelevel}-{tokenenchant_unbreaking_level}}%
This should work if tokenenchant accepts {placeholders}

#

you need the nested expansion and math expansion

#

/papi ecloud download nested
/papi ecloud download math
/papi reload

mint fable
junior musk
#

I'm so glad I made that expansion, it seems a lot more useful than I had imagined

mint fable
#

1000%

junior musk
#

all of that because of a ticket on TAB's support Funny

mint fable
#

I just had to know how it worked lol ๐Ÿ˜‚

junior musk
#

it was a pain to make

mint fable
#

i bet

junior musk
#

and it was even more of a pain to realize I f-ed up by using HashMaps instead of LinkedHashMaps, breaking the whole expansion

#

took me 2 hours to change 2 words

mint fable
#

so sad

junior musk
#

I was so done ๐Ÿ˜‚

coarse lily
#

๐Ÿฅด

junior musk
#

wait wut, aren't you supposed to have a level role?

coarse lily
#

idk thonking

#

that fun

junior musk
#

there's a bug in the matrix reversed_fingerguns

mint fable
#

apparently soo

coarse lily
#

i'm the special one ๐ŸคŒ

junior musk
#

He's the chosen one!

coarse lily
#

i think playerlist expansion broken

junior musk
#

how so?

coarse lily
#

idk, i should have some test about this

junior musk
#

can you at least tell me what's broken? xD

coarse lily
#

%playerlist_online,normal,yes,5% that should be player name if server have 5 player online, right ?

#

the return is offline

junior musk
#

it's the name of the 6th online player

#

because it starts at 0

coarse lily
#

ah, didn't try this

#

๐Ÿฅด

coarse lily
#

no, my tier 0

dense spade
#

It doesn't really work, it worked but

#

I tried switching Unbreaking to Efficiency

#

and it's 0 now

junior musk
mint fable
#

3 times

dense spade
#

%nested_tokenenchant_Efficiency_cost_{math_0:_{tokenenchant_Efficiency_affordablelevel}-{tokenenchant_Efficiency_level}}%

mint fable
#

try efficiency?

dense spade
#

Still +0

junior musk
#

try parsing each placeholder individually to see their outputs

dense spade
#

Oops, parsing error, I added a %. It works now

mint fable
#

nice

dawn dew
#

Hey I am having issues using DeluxeTags ๐Ÿ‘€

when I list my tags with /tags list Deltatron i have the example one
when I use /papi list it shows that deluxetags is present as a hook(?)
but when I do /papi parse me %deluxetags_tag% I get An internal error occurred while attempting to perform this command

this is the log from when I run it https://mclo.gs/SxPqsEC

mint fable
#

delete the deluxetags expansion from the plugins/placeholderapi/expansions/ folder

#

the expansion is now internally included with the plugin

dawn dew
#

Is it? I tried it, it didnt work

mint fable
#

hmm

#

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

mint fable
#

can you send that over

dawn dew
#

Sure

#

https://mclo.gs/MmtH75I
btw its not cut off when I run it nothing else is shown in console rather than the command that I ran

mint fable
#

don't download the expansion again

dawn dew
#

Sorry?

mint fable
#

at the end of the log you ran /papi ecloud download DeluxeTags

#

you shouldn't

dawn dew
#

Ah alright. Why is that?

dawn dew
#

OH.

#

I thought when you meant that you meant in ecloud

mint fable
#

having the expansion causes the issue

dawn dew
#

Im sorry

#

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

mint fable
#

all good, working now?

dawn dew
#

Yep

#

Thank you :D

mint fable
#

np

dawn dew
#

Also there might be a edit needed in the github page

minor crystal
#

hi guys, I've got this placeholder to get a radius of the world, not diameter %math_2:_{worldborder_fromWorld_{world}_size}/2%, but it doesn't work, what can be the problem

[PlaceholderAPI] [math] Cause: 'Insufficient arguments._size}/2' is not a valid Math Expression
[PlaceholderAPI] [math] Invalid Placeholder detected!```
vivid sparrow
#

Where do you get {world} @minor crystal ?

minor crystal
#

world is the name of the world

vivid sparrow
#

Replace {world} with world and it should be fine

minor crystal
#

Ok

vivid sparrow
glass flume
#

Iโ€™m having a issue getting papi to work we use 1.16.5 and Java 16 and we canโ€™t get place holders. [13:43:34 INFO]: iDevelop issued server command: /papi reload
[13:43:34 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[13:43:34 INFO]: [PlaceholderAPI] Fetching available expansion information...
[13:43:34 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: com/andre601/formatterexpansion/FormatterExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.UnsupportedClassVersionError: com/andre601/formatterexpansion/FormatterExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.lang.ClassLoader.defineClass(ClassLoader.java:1017) ~[?:?]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) ~[?:?]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:555) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:458) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:452) ~[?:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at java.net.URLClassLoader.findClass(URLClassLoader.java:451) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:405) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?]
... 6 more

tender vaporBOT
glass flume
#

Nope

#

My issues says itโ€™s a incompatible Java version but we have it setup exactly how it should be

tender vaporBOT
#
Possible Solution Found:

The plugin (or program) you are trying to use was compiled using a newer Java version than the one you using.
To find what version you need, start from 52 which is Java 8 and for example, 60 is Java 16. (8 + 8 = 16 => 52 + 8 = 60)

autumn stream
#

where to download javascript expansion?

autumn stream
#

ye, ty

#
a(){
var c = "" 
var d = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfgjklzxcvbnm1234567890"
for(var b = 0; b<10; b++) {
  c+=d[Math.round(Math.random()*61)]
}
return c
}
a()
#

return nothing

junior musk
#

add function in the first line of your script

coarse lily
#

how to use changeoutput ?

junior musk
#

you specify a placeholder, a text that you want to replace, and the text you want it replaced with

coarse lily
#

whats the matcher ?

#
%changeoutput_ignorecase_input:{statistic_time_played}_matcher:d h m s_ifmatch:days hours minutes seconds_esle:{statistic_time_played}%
#

like this ?

limber ice
#

is there a way to verify expansion built into plugins?

vivid sparrow
#

only ecloud expansions needs to be verified

limber ice
#

so my expansions will always be orange

#

or is orange or green have to mean up to date

vivid sparrow
#

I guess papi gets confused when you have an expansion with the same identifier as one from the ecloud, and it checks the version

vivid sparrow
#

verified means it can be downloaded with /papi ecloud download <name>

limber ice
#

so the if the identifier were the same then it would think it's up to date maybe?

vivid sparrow
#

no, it's the opposite of what I said

#

and it is just a guess, if you have a self made expansion that uses the server identifier for example and it has a different version that the server expansion from the ecloud, papi will probably display it as "needs update"

limber ice
#

well, the ones I have on ecloud are fine, just for autorank it was decided to move expansion to plugin

#

I guessed that from how spigot updater works

vivid sparrow
#

no Ironic

#

I'm 99% sure it is what I just said, papi thinks the expansion is the same as the one from the ecloud and it does a version check

limber ice
#

I'm not home to test any ideas in my head, just bored at work with a ton on snow falling

vivid sparrow
#

you can not do anything about this, but I could un-verify the expansions from the ecloud, that would probably stop papi from checking the version

junior musk
#

maybe disable the ecloud in the config?

#

better than unverifying an expansion imo

limber ice
#

no thats ok, if you do that the people using the older version might ge confused

vivid sparrow
#

yeah it is your call

limber ice
#

I do know most of my users are on 1.16.5 or older

#

Hope I can figure out the SQL feature I want to add

open thunder
#

[23:29:24 WARN]: [PlaceholderAPI] Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.4.58 which is not a depend or softdepend of this plugin.

#

Way to remove this warn ?

vivid sparrow
#

It is harmless. Add LuckPerms as soft depend of papi.

limber ice
#

I just realized Autorank expansion I was talking about was made by clip, his last version was 1.1.0, when I checked version of current installed expansion it came bas current version of autorank