#placeholder-api

1 messages · Page 9 of 1

clever plinth
#

Ohk

#

I only got expansion folder in Placeholderapi folder

mint fable
#

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

send that over, but I gotta go atm

clever plinth
mint fable
#

it looks like it timed out because of updater

#

can you disable it for papi?

pastel vortex
#

Guys, hi, i have bug with papi or vault, can someone help me?
I have papi for vault, prefixes in animatedsb working, but balance - no ( using %vault_eco_balance_fixed%)
UPD: I can show in voice channel, if you need

clever plinth
tender vaporBOT
clever plinth
#

Bro it's kinda weird but i delete place holder and reinstalled it and it fixed my problem

#

Thanks for your support

uncut matrix
dusty roost
#

Seems like PAPI broke in 1.19.3

#

Things like %player% dont work with excelentcrates as well as gadgetsmenu placeholders

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

dusty roost
#

Ive done that

#

Still looks like this

#

Also, Gadgetsmenu hooks into papi on its own, theres no ecloud

#

But has it like this

mint fable
dusty roost
mint fable
#

You have sent proof that you have not done that

dusty roost
#

which one?

mint fable
dusty roost
#

I did that though

mint fable
#

You downloaded the expansion

#

Nice

#

That's part of it

uncut matrix
#

%player% -> %player_name%

#

...

mint fable
#

Make sure to read whole prompts this

uncut matrix
#

cj you have experience using Javascript expansions?

mint fable
#

a bit, ya

dusty roost
#

So let me rephrase to make sure I understand. I need to go into other peoples code and change it to player_name?

uncut matrix
uncut matrix
mint fable
dusty roost
#

But that doesnt solve the issue that hooks show working but dont

#

Like with Gadgetsmenu

#

By update I mean from 1.19.2->1.19.3

#

Player_name fixed excellentcrates

#

Any idea whats breaking gadgetsmenu?

mint fable
#

?

dusty roost
#

Yes

mint fable
#

/papi parse me %mystery_boxes%

dusty roost
#

Shows {MYSTERY_BOXES} rather than the number. Their wiki says this:
`Requires PlaceholderAPI plugin before you can use these placeholders in any other plugins. There is no ecloud for GadgetsMenu, you can directly use these placeholders once you have GadgetsMenu & PlaceholderAPI.

To use a placeholder, you need to follow its syntax %gadgetsmenu_<placeholder>%.

Example: %gadgetsmenu_mystery_dust%, %gadgetsmenu_mystery_boxes%`

#

Ill try that now

mint fable
#

ah you're using the wrong placeholder

#

it's not {MYSTERY_BOXES}

dusty roost
#

Its out of the box though. No config changes

#

It works on my 1.19.2 server though xD

#

Why would it stop from 1.19.2 to 1.19.3

mint fable
#

are you on the latest version

dusty roost
#

I am

#
  • '&7Your have: &b{MYSTERY_BOXES} Mystery Boxes'
#

This is how their messages.yml is setup

#

They convert the {} to the papi somewhere in code

mint fable
#

{MYSTERY_BOXES} must be an internal placeholder

dusty roost
#

Likely ya

mint fable
#

does {MYSTERY_DUST} show?

dusty roost
#

Ill verify, brb

#

It works in that box

mint fable
#

Try restarting

dusty roost
#
  • '&7Your have: &b{MYSTERY_BOXES} Mystery Boxes'
mint fable
#

the hologram is FROM gadgetsmenu, right?

dusty roost
#

We have several times at this point to fix other plugins

dusty roost
mint fable
#

idk, i'd ask their support discord

#

unless they only give premium support

dusty roost
#

Gotcha, thinking its a them issue?

mint fable
#

It's an internal placeholder

dusty roost
mint fable
#

so yes

dusty roost
#

Thanks for the assistance!

mint fable
#

{MYSTERY_BOXES} is not papi

#

👍

dusty roost
#

I get a job as a software engineer on jan 23rd. I would like to donate when I get my first check for the assistance. Where should I go?

mint fable
#

Donate to charity

#

cancer research or somethin idk

#

grow some trees

#

👍

dusty roost
#

Alrighty 🙂

mint fable
#

All support here is voluntary, come and go, help and be helped

#

Appreciate it though

trim mist
#

Good luck at your job!

austere hawk
#

hello guys

#

I have a question about papi

#

I need to use the placeholder "%worldguard_region_name%" on my scoreboard to make sure players know in wich region they are

#

but it doesn´t work

#

It works for TAB and WorldGuard?

vivid ridge
#

Hello, i would like to know if it's normal if can't install the adon of Skript, thx

fervent spire
#

You should be able to install it. Not sure why you'd want to though.

vivid ridge
fervent spire
#

You need the Skript plugin installed as well

vivid ridge
neon tartan
#

Will it ever be possible to resolve certain placeholders on offline players? E.g. player statistic related ones

#

Right now it returns null when offline and only works when they are online

sharp jay
#

@neon tartan as far as I know its possible you can connect a db ig?

neon tartan
sharp jay
neon tartan
#

I think for example the %player_kills% one you cant fetch offline

sharp jay
#

well thats because thats how the placeholder was made

#

if you were to make a custom one it would be possible

neon tartan
#

Ah right, thats a shame

sharp jay
neon tartan
#

I understand, but I don't want to have to re-create 100s of placeholders within Analyse.

Analyse has a feature for server owners to track custom PAPI stats on their dashboard. Would be nicer as plug and play

#

As you guys have some official placeholders like the player ones

sharp jay
#

hmm

#

not up to me sorry

neon tartan
#

I understand, appreciated tho

trim mist
#

I don't even think %player_kills% is a placeholder.

#

It's under Statistics iirc.

#

Which since (1.16?) you can pull statistics of offline players.

neon tartan
#

Ah really, I'll have to double check, I just remember a customer mentioning it

#

It would save me a lot of code hassle if it does work since, because I had to make amendments around it

trim mist
uncut matrix
#

Alright ill move it thank you 😄

dense trail
#

Is there a placeholder that returns the block someone is looking at?

dense trail
#

Whats the correct way of making an expression that checks if a number is equal to or between -10 & 10

dense trail
#

no longer needed but thanks <3

ebon badger
#

Hello. Does anyone have an idea how can I format %luckperms_group_expiry_time% output? By default it looks like '1w 1d 1h 1m 1s'.
I need it to show only '1w', when expiration time is longer than 1w, 1h when it's longer than 1h and so on

twilit cradle
#

Heyy everybody ❤️

Soo I tried to Register to eCloud but it says:
Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us.
So I'm here. It's necessary because I need to add MythicalRaces expansion ASAP...
Any ideas what should I do?

junior musk
#

you just need to wait for an admin and they'll create your account

#

might want to specify the username you want as well

warm topaz
#

cc: @balmy marten

twilit cradle
#

Okay ❤️

#

Tysm ❤️

balmy marten
red lance
#

why'd they make it so you need to override the method

#

why couldn't they have just let you use some API method to add to already existing ones

shadow kelp
#

ok change of issues

#
[23:02:41] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: TestPlugin [1.0]
#

its successfully registered

#

but still the request method isnt called

#
@Override
    public String onRequest(OfflinePlayer player, String params) {
        if(params.equalsIgnoreCase("player_lives"))
        {
            return String.valueOf(plugin.getLives(player));
        }
        return null;
    }

    @Override
    public @Nullable String onPlaceholderRequest(Player player, @NotNull String params) {
        if(params.equalsIgnoreCase("player_lives"))
        {
            return String.valueOf(plugin.getLives(player));
        }
        return null;
    }
#

i have these two overridden (i dont know the difference)

#

but neither of them are reached

mint fable
#

you only need to override onRequest

#

?paste

tender vaporBOT
#
FAQ Answer:

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

mint fable
#

send the class this

mint fable
#

and your main class?

shadow kelp
mint fable
shadow kelp
#

what should the identifier represent

#

that part confused me

mint fable
#

your plugin

shadow kelp
#

ok

mint fable
shadow kelp
#

ohhh

#

so i should have the placeholder be limitedlives_player_lives

#

identifier_params

mint fable
#

your placeholder will be identifier_params, yes

mint fable
shadow kelp
#

say i want to place this in a scoreboard

mint fable
#

yes

#

that is what you use

shadow kelp
#

i will use %identifier_nameOfThePlaceholder%

mint fable
#

most likely %limitedlives_player_lives%

shadow kelp
#

yes

#

thanks

mint fable
#

👍

#

check with your scoreboard plugin to make sure

shadow kelp
#

my computer so bad i gotta shut down intellij just to launch my server and test it

#

or itll run out of memory

covert gazelle
#

Hello

#

how can I reset my statistic data

shadow kelp
#

like vanilla game stats?

mint fable
#

Vanilla stats are stored in server/World/stats/ folder, but if you're resetting the server don't forget about plugin stats like Heklo said this

prime sapphire
#

Hello, i need help

#

i have vault installed, but my delux hub score board is showing just this %vault_rank

prime sapphire
#

ehhhh

#

staff afk or wot

tender vaporBOT
prime sapphire
marsh notch
#

Hi, the placeholders on my holograph won't load. I want to put in the placeholders from the Hunger Games plugin, but it won't load. I used this one as an example:
%hungergames_lb_kills_p_1% and &a%hungergames_lb_kills_s_1%

tender vaporBOT
#
FAQ Answer:

HolographicDisplay + PlaceholderAPI

HolographicDisplay has added PlaceholderAPI support in v3.0.0-beta1 but in HologaphicDisplay v3.0.0-beta2 the format was changed format than the usual %identifier_arguments% one to {papi: identifier_arguments}.

For example %statistic_player_kills% should be used in HolographicDisplay as {papi: statistic_player_kills}

marsh notch
#

thx so much

fervent spire
coral fern
#

Do we again have a way to inject placeholders into plugins that do not have support? like ChatInjector

#

but by the plugin itself

sharp jay
#

uh hmm you can make a custom expansion to check there group then return a prefix?

#

you dont even need to make a full expansion tbh just a basic JS one

#

Why can’t you just use luckperms one

#

And it doesn’t have prefix ?

#

O

prime sapphire
#

but i fixed

#

it

#

:D

coral fern
tender vaporBOT
willow pewter
winter trail
#

Can someone say Why its not working?

#

i downloaded player and the %player_name% Dont show my rang

austere hawk
#

Hello, how does the expansion math work?

open stag
#

Hey, could someone help me out with PAPI? I developed an extension yet when I /papi parse it, it does not work.

turbid tide
#

can you execute /papi dump?

open stag
#

Just the placeholder doesn't parse.

#

Hm

#

Nevermind, it works.

austere hawk
willow pewter
willow pewter
austere hawk
raven sparrow
#

Was eazynick expansion removed?

willow pewter
#

I'm getting this error when installing the math expansion and restarting the server. I've tested without it and it works fine?

[11:27:24 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed

Full server log (includes full error): https://mclo.gs/Aow4UnY

deep hollow
twilit needle
#

Hello, I have a question: Is it possible to parse a placeholder in a placeholder which is in another placeholder? Example, using formatter placeholder to format a math placeholder which gets a value from mysql placeholder

mint fable
willow pewter
mint fable
#

How though?

#

Are you manually downloading or using the command?

#

or have you tried both?

willow pewter
#

/papi ecloud download Math

mint fable
willow pewter
#

Ok

mint fable
#

Wait I think I got confused a bit, you want a remove all data feature?

#

should be pretty easy you just need to run Data.clear()

deep hollow
mint fable
#

so not ALL data?

#

or is that the only thing you use this data script for?

#
    else if (args.length == 1) {
        if (args[0].equals("removeall"){
          Data.clear();
          return "yes";
        } else {
          return getUsage(args[0]);
        }
    }

should be able to modify this portion as such to add a removeall placeholder

deep hollow
#

so I only use that script

#

so if I remove all data it will be good too

mint fable
#

Why do you need to format after math?

twilit needle
#

Because a million for example has too many zeros

#

I would like to have a separator

mint fable
#

Ah, and what's the math part for?

twilit needle
#

Item prices, 1 obdisian $10,000 and 512 $512,000

mint fable
#

Because I want to avoid using javascript here if possible because every time you run a placeholder its gotta start a new engine which might cause some lag

twilit needle
#

I take a price from mysql 10,000 multiple it by number of blocks

deep hollow
#
function runPlaceholder() {
    if (args.length == 0) {
        return getUsage("no args");
    }
    else if (args.length == 1) {
        if (args[0].equals("removeall") {
          Data.clear();
          return "yes";
        } 
        else {
          return getUsage(args[0]);
        }
    }```
deep hollow
#

it's giving error, I'm using that

mint fable
deep hollow
#

oh wait

#

it was a ) lel

twilit needle
mint fable
#

icic

mint fable
deep hollow
twilit needle
#

Does it cause more lag or breaks something? Or any other reason its not recommended

mint fable
#

could cause lag

#

maybe not noticeable

#

but

#

how often is the script run?

#

would it be run*

twilit needle
#

I use deluxemenus, so everytime a player opens a menu to buy/sell that item

mint fable
#

1 parse and only for the specific item?

#

shouldn't be too bad

sharp sail
#

Hey cj, do you know if there is any exploit related to javascript extension with the parse sub command ?

twilit needle
#

Mostly 4 items per menu, but a few of them have up to 32

sharp sail
#

Seems like someone tried to in a server of a friend of mine

mint fable
#

😉

sour stump
#

/papi parse Deluded_ %essentials_baltop_player_1% just returns the placeholder

sharp sail
#

ty tho

mint fable
#

online server?

#

idk

#

weird...

#
var mysqlPl = "%mysql_...%"
var blocksPl = ""
var mysql = parseFloat(mysqlPl)
var blocks = parseFloat(blocksPl)

function fun(){

  if(!isNaN(mysql) && !isNaN(blocks)){
    return "error"
  }
  return mysql*blocks.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
}
#

@twilit needle this might do what you want

#

with some plug and play

#

put your mysql and blocks placeholder in

craggy turtle
#

hi what is the syntax for concat placeholders?

deny_commands:
          - '[console] lp user %player_name% permission unset %luckperms_meta_perks{perk_number}%'
#

am i doing that right?

#

hey what happens when you run /papi parse me %player_kills%

#

also does the plugin that you are using the placeholder in support placeholderapi?

floral notch
#

I have PlaceholderApi

#

and in the scoreboard i dont have this

#

i have for example %vault_rank%

robust marsh
#

I can't download the killstats expansion could does any one know how to?

craggy turtle
#

did you guys try /papi ecloud download [tab complete expansion]

sharp jay
#

Why are you posting in multiple channels

craggy turtle
#

could anyone troubleshoot a section of my DM config that isnt working. for some reason it always succeeds even though the permission isn't set

click_requirement:
      requirements:
        already_equipped:
          type: has permission
          permission: perks.goldfish
          success_commands:
          - "[message] This perk is already equipped!"
          deny_commands:
          - '[console] lp user %player_name% permission unset %luckperms_meta_perks{perk_number}%'
          - '[console] lp user %player_name% permission set perks.goldfish'
          - '[console] lp user %player_name% meta set perks{perk_number} perks.goldfish'
          - '[console] lp user %player_name% meta set material{perk_number} cooked_salmon'
          - '[openguimenu] upgrades<delay=3>'
#

i did /lp user clear and it still says I have the permission... weird

#

its cause i was OP

#

XD

#

i should really deop myself for times like these

kindred belfry
#

basically

#

left_click_requirement: expression: '%vault_eco_balance% >= 350' deny_commands: - '[sound] VILLAGER_HIT 100' - '[message] &a&lSH&f&lOP&7 » &cNon hai abbastanza denaro!'

#

in my config

#

just isnt working

kindred belfry
#

i can still buy things even though i am at 0 balance

#

can somebody help me please

tender vaporBOT
#
Valid Config!

OmegaWeaponDev, I checked your config and, it's valid!

+ Correctly Formatted```
#
Valid Config!

Danilo, I checked your config and, it's valid!

+ Correctly Formatted```
fervent spire
kindred belfry
#

please teach me

fervent spire
#

An you need to format it like

left_click_requirement:
      requirements:
        <requirement name>:
          type: has money
          amount: <amount>
hazy talon
#

/ver list

tender vaporBOT
#
Placeholderapi - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1
1.18.2

Version:

v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest

#
Deluxemenus - Version List
Spigot:

1.8.8
1.12.2
1.16.5
1.17.1
1.18.2

Version:

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

tender vaporBOT
#
Placeholderapi - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1
1.18.2

Version:

v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest
v2.11.1 - Latest

warped hemlock
#

can someone help?

tender vaporBOT
#
Hey!

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

warped hemlock
#

;< sorry

tender vaporBOT
heady lance
balmy marten
#

Do you have an expansion ready to publish?

dry stirrup
#

Hey is the Java expansion for placeholderapi available on 1.16?

tender vaporBOT
#
Hey!

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

odd galleon
#

when will bungee expansion update? it showing in papi update but when i do papi ecloud update bungee it download version 1.0.1. but after that i do papi reload and again it show bungee have update. any solution of it

grand maple
#

How come the expansion bungee says one update available but when i do /papi ecloud update and restart the server it still says 1 update available?

dry stirrup
#

can someone help me identify what %javascript_inv% belongs too? its jacking up deluxemenus

balmy marten
#

Papi already has bstats that tracks expansion usage so there's no need

trim mist
mental nest
#

Good morning and Happy New Year!

Wondering if I can add more/ custom biomes to %player_biome_capitalized%

We run the datapack Terralith which adds a bunch of new biomes, but unfortunately these will only display as 'Custom' in the API. Was hoping I can manually add the custom biomes somewhere so that they can show up for our players 🙂

#

I should also mention that F3 does register the custom biome names, just not the %player_biome_capitalized%

warm plover
#

Is there a way I can stop this error?

#

This should be valid, not sure why it's having issues %math_0:_({aureliumskills_power}-11)%

#

huh, now it's just not working at all

warm plover
#

If you look in your javascript_placeholders file you'll find it

dry stirrup
#

I had to manually download it

warm plover
#

What does %javascript_inv% parse to?

dry stirrup
#

Nothing

warm plover
#

What's wrong with DeluxeMenus then?

dry stirrup
#

I’m not at my Pc tho I’m just going off of memory, Ik that 1 for sure

#

So it’s a shop, and it’s suppose to check if a players inventory is full. I don’t think the placeholder is registering cause it is automatically assuming the players inventory is full even when it is not. It is part of a requirement

warm plover
#

For checking if a players inventory is full*

dry stirrup
#

But i can easily change the values, but there is a lot of stuff

#

Just thought it would be easier to fix it

warm plover
#

You might be better off using %player_has_empty_slot%

#

It'll parse as a simple yes or no haha

dry stirrup
#

Yea I did that for one page that worked

#

Guess I’ll do it for all

#

Not to mention I gotta change the prices to reflect my eco, don’t think people wanna pay 15k for dirt

dry stirrup
warm plover
#

Is it a shop?

dry stirrup
#

Yes

mint fable
#

You could add price to that as well, but then it's possible to abuse it

#

so that's why I ended up making a custom expansion (later turned plugin) for DeluxeShop to store items with prices

dry stirrup
tender vaporBOT
dry stirrup
#

Thanks!!

mint fable
#

i think I also have it on BuiltByBit

#

ah, but github has the jar too so that's better

mint fable
dry stirrup
#

Yes please, lots of modded servers need it

warped hemlock
dry stirrup
tender vaporBOT
sharp jay
dry stirrup
sharp jay
#

where does it say that

dry stirrup
#

one second

dry stirrup
# sharp jay where does it say that
org.bukkit.plugin.InvalidPluginException: Unsupported API version 1.18
    at org.bukkit.craftbukkit.v1_16_R3.util.CraftMagicNumbers.checkSupported(CraftMagicNumbersMixin.java:304) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoaderMixin.java:141) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:394) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:301) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
    at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServerMixin.java:381) ~[arclight:arclight-1.16.5-1.0.24-551ec3ff]
    at net.minecraft.server.dedicated.DedicatedServer.handler$zpp000$arclight$loadPlugins(DedicatedServerMixin.java:637) ~[?:?]
    at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServerMixin.java:160) ~[?:?]
    at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServerMixin.java:1879) ~[?:?]
    at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServerMixin.java:232) ~[?:?]
    at java.lang.Thread.run(Thread.java:829) [?:?]```
sharp jay
#

Ohh

#

@mint fable

mint fable
#

ah ya idk how to fix that, but you just gotta change it in the plugin.yml

#

@dry stirrup open the jar with winrar or somethin and edit the plugin.yml api version to your version

lunar coral
#

hi, im trying to install the math expansion but it's saying it failed to find it

lunar coral
#

how?

sharp jay
#

click that download button

#

at the bottom

lunar coral
#

do i just drag this into the plugins folder?

sharp jay
#

nope

#

papi folder > expansions

lunar coral
#

ok, thanks

sharp jay
#

np

lunar coral
#

what goes in the <math expression> section?

#

like do i type it "plus" or like "+"

sharp jay
#

example %math_{player_health}/2%

lunar coral
#

ok thanks

sharp jay
#

np

lunar coral
tender vaporBOT
lunar coral
#

oops

#

my luckperms meta is set to an integer just to clarify

tender vaporBOT
dry stirrup
tender vaporBOT
dry stirrup
#

oh mb i forgot

dry stirrup
#

oh nvm im an idiot and never pasted in the pages from github

mint fable
#

ah

dry stirrup
#

thats what im supposed to correvt?

#

correct*

mint fable
#

yep follow the setup

dry stirrup
mint fable
#

they aren't used, where did you see those?

dry stirrup
#

they auto added themselves

#

from the config that we pasted in

mint fable
#

uh

#

huh?

#

ah i see

#

you can remove those files and remove the entries for them from the deluxemenus config

dry stirrup
#

oh ok

#

also everything is stone in the shop

#

oh nvm

#

didnt have math placeholder in

mint fable
#

also if I made that on 1.18 the default config probably has 1.18 items

dry stirrup
#

yea

#

noticed that lol

mint fable
#

Meant to be customized fs, a lot of extra ones you'll never want

dry stirrup
#

yea

#

ty :D\

#

now to set up prices

dry stirrup
#

hey cj im getting an error but the text is too long to say and i can't upload files

mint fable
#

?paste

tender vaporBOT
#
FAQ Answer:

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

mint fable
#

@dry stirrup this

dry stirrup
#

like the site is kind of down

mint fable
#

workin for me

dry stirrup
#

can i use my server provider's pastebin?

mint fable
#

you can use another pastebin

dry stirrup
mint fable
#

update deluxemenus if you're not on latest maybe

dry stirrup
#

mb mb

willow dune
#

Is there a problem with PlaceHolderAPI atm?

#

With ECloud

trim mist
#

Looks fine?

willow dune
#

Somehow the placeholders from all my plugins using ecloud are not working anymore.

#

Other hooked placeholders are working fine.

trim mist
#

Got a /papi dump?

willow dune
#
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: me/blackvein/quests/Quest```
Could it have something to do with this?
#

I will look into that!

#

Oh, removing that expansion did the trick.

#

Thanks for your quick response!

trim mist
#

👌

floral crane
#

Hello
how do i parse or display unicode character in the Javascript expansion ?

#

when i use a unicode character, it gives me a square

smoky spoke
#

is recursion possible with javascript placeholder expansion?

rare abyss
#

why %player_ping% not showing?
on tagname with TAB plugin

floral crane
rare abyss
#

its stuck with 0ms

austere hawk
#

any help?

austere hawk
#

ahh ok

#

thought it was a builtin placeholder

wide reef
#

it does say on the ecloud page

hasty cobalt
#

Does anyone know when papi support will be added to essentials?

mint fable
hasty cobalt
#

Essentials because I am trying to use a placeholder in the /bal command

mint fable
#

Well that would be up to them to add support

#

not sure if you could make a plugin that does that externally or not, but I think essentials would be open source so if you do it externally might as well just build it internally

hasty cobalt
#

Oh very true I just wasn't sure thank you for your help 🙂 have a great day

rare abyss
waxen knot
#

hello, how do i put placeholder to scoreboard with this?

            return String.valueOf(PlayTime.playTime.get(player.getUniqueId()));
        }```
#

nevermind figured.

olive schooner
#
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: example
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder rng_ench isn't initialized! Defaulting to global
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: rng_ench
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder specialid isn't initialized! Defaulting to global
[18:44:34 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: specialid```
#

can help with this?

#

server version: 1.19.3 r2

#

not work time on ExecutableItems

turbid crown
#

Do help me please, if you go to the bottom you should see my attempt at making 2 placeholders, im not sure what to do so id really appreiciate it if someone could take a look? https://hastebin.com/meqopofuwo.kotlin

mental nest
frank gazelle
#

i get this error

#

when removing vault. Is this a dependency because it doesnt say this anywhere

vivid sparrow
#

yes it is a dependency

gusty flax
#

i have a problem , i don't see the place holder %player_name% in the scoreboard ( title manager )

#

can you help me ?

fervent spire
#

?player

tender vaporBOT
#
FAQ Answer:

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

gusty flax
#

thx :D

#

but didn't work with luckperm and other plugin :(

#

can you help me ?

fervent spire
#

Did it work with titlemanager

gusty flax
#

but it didn't work here

#

idk why

rose herald
#

Hi

gusty flax
#

?luckperms

tender vaporBOT
#
FAQ Answer:

This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.

If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.

rose herald
#

Im having an error, how can I should send the error ?

#

there

#

pastebin

#

?

#

What can I do

gusty flax
#

corrupted plugin ?

rose herald
#

Wdym

gusty flax
#

do you have vault ?

rose herald
#

Ye

#

I did papi reload, corereload, fb reload and it worked

#

after a restart on sv

#

it went crazy

rustic pewter
#

how can a make an account on the papi site?

warm topaz
runic frost
#

Are there any placeholders for statistics per player since a time? I'm trying to find how many crops someone has harvested since 1st Jan for example

trim mist
#

I do not believe so.

runic frost
#

Alright thanks

#

I'll start making a plugin

trim mist
#

👍

balmy marten
void lark
#

Hi, I’m trying to output random warp with its own multiple data (name, description, owner, etc.) through single identifiers. My goal is to reach these holograms (through %w_randomname% and %w_randomdescription%, …) to display every f.e. 3 seconds. I have a list of warps: Shop, Event, Spawn. Now, I'm getting every 3 seconds random name (f.e. from Shop) and again random description (f.e. from Event). All I want it to be synced - get random warp and then get all its data at one moment... but currently I'm getting each independently. I appreciate your help. Here is my current code:

@Override
public String onPlaceholderRequest(Player player, String identifier){
    if(player == null) return null;

    List<Warp> allWarps = plugin.getWarps("ALL");
    Warp randomWarp = plugin.getWarps("ALL").get(new Random().nextInt(allWarps.size()));
    
    if (identifier.equalsIgnoreCase("randomwarpname")) {
        Bukkit.broadcastMessage("" + randomWarp.getDisplayName());
        return randomWarp.getDisplayName();
    }

    if (identifier.equalsIgnoreCase("randomwarpdescription")) {
        Bukkit.broadcastMessage("" + randomWarp.getDescription());
        return randomWarp.getDescription();
    }
}

fierce glacier
#

hello, I have a little problem, I don’t know how to change the formatting of the date of the first join to my server by exchanging the day with the month so from "month/day/year
hour/minute/second" to so day/month/year hour/minute/second

lucid lance
#

inside of your custom placeholder, is it possible to return an already existing placeholder?

#

would i do return "%some_placeholder%"; or would I have to do something else to parse it?

coarse sable
austere hawk
#

How is the date formatted? In %player_last _played%

#

I know the formatted version exists, but I wanna know how %player_last_played% works for a script.

twilit torrent
#

I have a confirmed memory leak issue with the javascript-expansion

With the expansion enabled, my server ram usage creeps up to full capacity until it freezes and a forcekill/restart is required (all i did was log into the server and afk)

After removing the expansion my ram usage is steady

radiant dagger
#

what is wrong in this?

#
  • content: '&e&1==Richest=='
    height: 0.3
    • content: '&61. %ajlb_lb_essentials_baltop_player_default_1_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_1_alltime_value%'
      height: 0.3
    • content: '&62. %ajlb_lb_essentials_baltop_player_default_2_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_2_alltime_value%'
      height: 0.3
    • content: '&63. %ajlb_lb_essentials_baltop_player_default_3_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_3_alltime_value%'
      height: 0.3
    • content: '&64. %ajlb_lb_essentials_baltop_player_default_4_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_4_alltime_value%'
      height: 0.3
    • content: '&65. %ajlb_lb_essentials_baltop_player_default_5_alltime_name% &7- %ajlb_lb_essentials_baltop_player_default_5_alltime_value%'
      height: 0.3
      actions: {}
#

it says board does not exist

mint fable
#

I think you should be using %vault_eco_balance% not the essentials baltop placeholder

radiant dagger
#

I already got helo

coarse sable
trim mist
#

I'll try to look at it before bed!

coarse sable
#

Thanks 🙏

trim mist
coarse sable
#

Great. Thank you!

junior musk
# void lark anyone help with this, please?

I'd recommend implementing the Taskable class, override the start method and register a new repeating task every 3s which sets a global int variable to a new Random().nextInt(allWarps.size())
This way, in the onRequest method, you'll get the same warp for all placeholders and it'll switch every 3s

void lark
junior musk
#

well I'm on phone atm, but you need to implement the Taskable class and override start()

void lark
#

Thank you

void lark
#

and how do I register my Taskable class? 😄 I cannot find any examples for this

tall edge
#

I am making a reward system and there is a reward for "one month" and when using the variable %statistic_time_played:days% it does not work because those 30 days are instantly changed to a week and it is impossible to claim, what can I do?

orchid isle
#

i cant use /papi ecloud download Math

#

it gives the error "Failed to find an expansion named: Math"

junior musk
junior musk
junior musk
tall edge
junior musk
#

statistic_days_played is for all of your time played in days, while statistic_time_played:days is just the day part of statistic_time_played

tall edge
#

Okaaay ty

magic wasp
#

I'm looking for a place holder, which shows how many armor attribute player have. I have looked through the ecloud list and there is an Attribute, however I can't download this and it's not in the existing expansion list

#

can some one help me please

junior musk
magic wasp
tender vaporBOT
magic wasp
#

thanks

arctic loom
#

Would appreciate if someone with the rights for it could actually aprove Formatter's latest version... It seems it isn't from what I saw?
Also, math too.

austere hawk
#

Bug - Custom biomes show up as "CUSTOM" instead of biome name.

austere hawk
#

placeholder api on bungeecord, how? I need this to motd to use %bungee_total%

arctic loom
tender vaporBOT
trim mist
#

Yeah we have to manually verify them all for security reasons for the time being.

latent crow
#

I need to do a progress bar on featherboard with autorank

#

someone can help?

austere hawk
#

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

fervent spire
#

YOu can ignore that

austere hawk
#

🆗

glossy fox
#

does anyone got the javascript for java 8?

sacred relic
#

can we make custom placeholder ?

#

that include number in that place holder as a output ?

glossy fox
#

does anyone know why i get the com/github/benmanes/caffeine/cache/Caffeine error?

#

adding the maths 1.2.6 expansion to my server

light lagoon
#

Where is the "Statistics" placeholderapi extension data stored?
I'm trying to reset deaths and kills...

vivid sparrow
#

world data

light lagoon
#

ive resets stats so many times

#

lol

#

and restarted

#

so many times

#

idk why its not working

buoyant plover
#

I am using AdvancedServerList plugin to show placeholders in motd.
And it is like this in the config: "Water", "%tntrun_status_Aqua%", "%tntrun_player_count_Aqua%" , "%tntrun_maxplayers_Aqua%"
And Pinger expansion to parse it on server
So in server list it looks like this:
https://imgur.com/NGrBwSM

But when I parse it using pinger it looks like this:
https://imgur.com/V3WgL0k

So here is the difference:
https://imgur.com/a/oyJxgBr

#

How can I make Pinger to show exact same thing as in server list?

buoyant plover
#

Or alternatively... Can I somehow use/parse placeholder on another server?

stark iris
#

Does anyone know what this error is, every time I turn on the server and when the server boots up, it will give me this error

vivid sparrow
#

Whats EXRPExpansion ?

stark iris
tender vaporBOT
stark iris
#

citizensplaceholder, deluxemenus, discordsrv, emf, essentials, excellentcrates, gsit, mmoitems, mythiclib, oregen3
player, playerkits, playerpoints, plugin, superior, tst, vault, viaversion

vivid sparrow
#

Can you send the exprexpansion?

stark iris
#

expansion, what do you mean??

vivid sparrow
#

Take a screen shot of your expansions folder

stark iris
vivid sparrow
#

No

#

plugins/PlaceholderAPI/expansions

stark iris
stark iris
#

Since this channel doesn't allow me to send pictures, I've sent the pictures to you separately, I hope you can help

tender vaporBOT
#
FAQ Answer:

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

vivid sparrow
#

Do you have ezrankspro installed?

stark iris
#

because I made the rank with deluxemenu

vivid sparrow
#

Remove the expansion ezrankspro

stark iris
#

I fixed it thank you so much

lucid frost
#

Hey it is possible to show players the time in their timezone using Localtime expansion for example in a scoreboard using %localtime_timezone_<TimeZoneID>% ?

tulip axle
#

hello!

#

im having an issue, every single time i start my server i have to register all of my placeholders again and it used to not do this

#

i have to use /papi register every single time

tulip axle
#

[19:29:02 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.

tulip axle
#

fixed

tender vaporBOT
#
📋 Your paste: Кусь
https://paste.helpch.at/miwenawaje

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

rugged rapids
austere hawk
#

Any placeholder to check the date?

#

For example if today is January 10

rugged rapids
austere hawk
#

ah

#

or to check how much is left for a date?

#

I want to make a Rewards that the player has to connect a certain day and play a certain time

stone edge
junior musk
austere hawk
# junior musk %server_time_dd%

It is that I want to make some Rewards that the player has to connect on a certain day and play for a certain time, like 5 minutes, on the same day

solid helm
#
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:428) ~[PlaceholderAPI-2.11.2.jar:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.IllegalStateException: zip file closed
        at java.util.zip.ZipFile.ensureOpen(ZipFile.java:831) ~[?:?]
        at java.util.zip.ZipFile.getEntry(ZipFile.java:330) ~[?:?]
        at java.util.jar.JarFile.getEntry(JarFile.java:518) ~[?:?]
        at java.util.jar.JarFile.getJarEntry(JarFile.java:473) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:189) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:129) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:147) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:124) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:574) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
        at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?]
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:524) ~[?:?]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
        at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
        at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
        at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?]
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:524) ~[?:?]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
        at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
        at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.2.jar:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:405) ~[PlaceholderAPI-2.11.2.jar:?]
        ... 2 more``` anyone knows how to fix this? every time i update expansions this happen
#

maybe not even because of updating

#

because i didnt update em and this still happened

velvet tinsel
#

hello

#

i have a very big problem

#

%statistic_mine_block%

#

returns wrong amount of blocks

#

some blocks add to this statistic by 2, while some add to it by 1

tulip scroll
#
[16:15:24] [Server thread/WARN]:     at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
[16:15:24] [Server thread/WARN]:     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
[16:15:24] [Server thread/WARN]:     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[16:15:24] [Server thread/WARN]:     at java.base/java.lang.Class.forName0(Native Method)
[16:15:24] [Server thread/WARN]:     at java.base/java.lang.Class.forName(Class.java:375)
[16:15:24] [Server thread/WARN]:     at com.extendedclip.papi.expansion.server.ServerExpansion.<init>(ServerExpansion.java:64)
[16:15:24] [Server thread/WARN]:     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[16:15:24] [Server thread/WARN]:     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
[16:15:24] [Server thread/WARN]:     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[16:15:24] [Server thread/WARN]:     at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[16:15:24] [Server thread/WARN]:     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[16:15:24] [Server thread/WARN]:     at PlaceholderAPI-2.11.2 (1).jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:438)
[16:15:24] [Server thread/WARN]:     at PlaceholderAPI-2.11.2 (1).jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:173)
[16:15:24] [Server thread/WARN]:     at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
[16:15:24] [Server thread/WARN]:     at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
[16:15:24] [Server thread/WARN]:     at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
[16:15:24] [Server thread/WARN]:     at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
[16:15:24] [Server thread/WARN]:     at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
[16:15:24] [Server thread/WARN]:     at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
[16:15:24] [Server thread/WARN]:     at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[16:15:24] [Server thread/WARN]:     at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
[16:15:24] [Server thread/WARN]:     at PlaceholderAPI-2.11.2 (1).jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:350)
[16:15:24] [Server thread/WARN]:     at PlaceholderAPI-2.11.2 (1).jar//me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46)
[16:15:24] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101)
[16:15:24] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
[16:15:24] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1173)
[16:15:24] [Server thread/WARN]:     at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[16:15:24] [Server thread/WARN]:     at java.base/java.lang.Thread.run(Thread.java:833)```
What's that, how can i fix?
tulip scroll
jovial karma
#

LocalTime expansion shows the wrong time?

#

when i first set it up it was showing the right time, now it's showing a time that is 4 hours behind?

wide radish
#

anybody have an example of how to retrieve information about a specific player using their name as a placeholder in the format of %javascript_example_<PlayerName>%?

smoky spoke
#

is there a way to parse a placeholder properly despite the target player being offline?

mint fable
smoky spoke
#

tysm for the info

fleet ocean
#

Anyway to see what expansion needs updated? I have 8 total palceholder hooks registered and it keeps telling me 1 needs updated. I've updated all in game commands wise and it still seems to pop up.

blissful anvil
#

So for deluxetags its not showing in chat...

mint fable
#

what chat plugin

blissful anvil
#

I am just using essentials since Deluxechat doesnt support 1.19

mint fable
#

Okay, won't be placeholderapi related, but follow these steps in order

#

?tagess

tender vaporBOT
#
FAQ Answer:

DeluxeTags showing in essentials chat:
1. Stop the server.
2. Turn off the papi_chat option in the DeluxeTags config. deluxe_chat in older versions.
3. Turn off the format_chat option in the DeluxeTags config.
4. Put {deluxetags_tag} in your EssentialsChat chat format. (In essentials config)
5. For Versions Below 1.8.2: Replace all the placeholders in the DeluxeTags config
%placeholder% to {placeholder} (Ex: %deluxetags_tag% to {deluxetags_tag}).
6. Start the server.

blissful anvil
#

awesome

#

I was forgetting to turn off the papichat

#

thank you

uncut folio
#

is there a placeholder to pick random item from list of minecraft?

trim mist
#

Not that I'm aware of.

frosty void
#

Hi! I have a question! is there a placeholder for player deaths, but only deaths by other players. So something like this?

%player_death_by_player%
%player_pvp_death%
%player_only_by_player_death%

tender vaporBOT
#
Possible Solution Found:

Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.

stark iris
#

Does anyone know this error, please help me

#

SuperiorSkyblock2's error

halcyon folio
#

can you help me I have javascripts that replaces the placeholder with a word and why does it replace only if the player has admin permissions

compact shore
#

Placeholder pinger not working.
Always writes offline even if the server is on.
I use velocity as a proxy.
How to solve it?

mystic iris
#

what is the placeholder for essentialsx mail unread numbers Please help

gloomy crater
#

Is there a way to (re)enable color codes in papi parse commands? I can swear it was a thing ages ago, but both &e and <yellow> no longer seem to work

wicked chasm
#

is there any placeholder that output client time ? or not possible?

austere hawk
#

how do I change vault eco bal and griefprevention remainingblocks formattion from 11.11k to 11.1k

vivid sparrow
#

download it manually

ashen vessel
#

Anyone know if there is a way to show top rank with Rankup 3 without creating my own placeholder expansion?

#

Look to show Top rank 1, 2, and 3

#

Tried showing top player on track with luckperms but that didnt work

brazen temple
#

hi, does PAPI it work with MiniMessage?

vivid sparrow
#

Work with MM as in?

brazen temple
#

I want to add run_command to my PAPI

#
ChatHelper.sendMessage(target, listOf(
            PlaceholderAPI.setPlaceholders(target,"%img_offset_100%%img_invite_accept% %img_offset_80%%img_invite_deny%"),
            PlaceholderAPI.setPlaceholders(target,"%img_invite_island%"),
            PlaceholderAPI.setPlaceholders(target,"%img_offset_85%Gracz <red>Lisu_S3 <gray>zaprosił Cię"),
            PlaceholderAPI.setPlaceholders(target,"%img_offset_85%na swoja wyspe - <red>Lisowisko"),
            " ",
            PlaceholderAPI.setPlaceholders(target,"%img_offset_130%Czy chcesz dołączyć?"),
            " ",
            " ",
            " ",
            " "))
vivid sparrow
#

You need to parse the mm string afterwards

brazen temple
#

do i have to write the message as Component mm?

fun sendMessage(sender: CommandSender, messages: List<String?>) {
        val finalMessage = StringBuilder()
        for (message in messages) {
            finalMessage.append(message).append("\n")
        }
        sender.sendMessage(colorize(finalMessage.toString()))
    }
ashen vessel
tender vaporBOT
vivid sparrow
#

No i do not

vivid sparrow
warm maple
#

Why with the placeholderAPI plugin my ./hub no longer works

thorn karma
#

If it's really not working cuz of papi, then you should find a replacement for it

ashen vessel
#

I'm trying to make it so it shows the list of people with this permission but when I use "list" it just shows up as the placeholder in plain text.... If I use "amount" instead of "list" it does return the number of people with this permission. I thought this was because I can't convert a number to a string but it works when I replace the place holder with "test". Please help.

   "28%":
       "0-0": "%playerlist_online,perm,yes,list,weight.28%"
       "else": "%playerlist_online,perm,yes,list,weight.28%"```
verbal sun
#
var name = "%cmi_playtimetop_name_1%";

function check(){
    var answer = `%parseother_${name}_cmi_user_playtime_hoursf%`
    return answer;
}

check();

This give me an error. What i do wrong?

#
javax.script.ScriptException: <eval>:4:14 Expected an operand but found error
        var answer = `mi_user_playtime_hours`
                     ^ in <eval> at line number 4 at column number 14
verbal sun
#

as i see it cant work with `, but how i can interpolate variables then?

lone ferry
#

I'm at the latest 1.19.2 paper build and using PAPI 2.11.2. The /papi dump, /papi reload and /papi register do not work. When I restart the server, sometimes the expansions downloaded from ecloud doesn't load. I don't see errors on console and PAPI loads all other expansions that were connected automatically.

latest.txt available in https://paste.helpch.at/raw/onareforiy

can someone can help?

eternal path
#

Hello so I am using InteractiveBoards and I want to display a players rank! we are using Luckperms

#

Anyone???

modern spire
#

Are there placeholders for who has the most max hearts? (When they fully healed)

merry jetty
#

Everytime my server restarts papi seems to break. After i reload the plugin it's working again. Any idea how to solve?

runic frost
#

hey, I am using the Gradients ecloud addon. Can I make there be a &l between each gradient too?

silk jewel
#

for my Lifesteal server in my Network

heady wind
#

Hi! Can I get some help? I'm trying to integrate PlaceholderAPI to my plugin. I'm creating a PlaceholderExpansion as an Internal Class in my plugin. It throws an exception when I try to register it. Somehow the PlaceholderAPI is not available.

https://paste.helpch.at/xulabupole.typescript

tender vaporBOT
heady wind
# tender vapor

Holy cow... this is awesome, congrats to the person that coded that bot

vocal coral
#

Currently i'm trying to use placeholderAPI on lores it does work for the GUI on ultimatekits but once i claim the kit the placeholder doesn't work are placeholders support on claimed items?

vocal coral
# sharp jay Uh interesting

It's just showing the %player_name% but on the gui it shows the playername only on the items it doesnt work when i claim it.

sharp jay
#

Dont think thats how it works @vocal coral think ultimatekits gotta support it

vocal coral
#

Ah okay thanks!

#

Is there an good kit plugin that support it?

#

That you know off

sharp jay
#

Hmm not on the top of my head

lofty valve
#

Hi, can someone help me making a KDR placeholder? Rn i'm doing
%math_{statistic_player_kills}/{statistic_deaths}% but it does not work if player has 0 deaths. Any way i can workaround this?

#

like, using 1 if deaths is zero and the actual value if it's not

turbid tide
#

You can try something like %math_if({statistic_player_kills} == 0, 0, {statistic_player_kills}/{statistic_deaths})%

tender vaporBOT
# arctic loom Uhm.....
Hey!

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

arctic loom
#

Common now Barry. They tagged me first!

kindred lodge
#

Lol

prime plank
#

I want to show if the player is matchmaking or not on simple score... I have this scorboard objective and if it
equals 1 > then i want green text saying 'Matchmaking'
equals 0 > then i want red text saying 'Not Matchmaking'

I dont know if I should ask help from placeholderAPI or SimpleScore

agile peak
#

Anyone know a solution to this?

[12:26:59 INFO]: [PlaceholderAPI] Loading PlaceholderAPI v2.10.2
[12:27:20 WARN]: java.net.ConnectException: Connection timed out: connect
[12:27:20 WARN]: at java.net.DualStackPlainSocketImpl.connect0(Native Method)
[12:27:20 WARN]: at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
[12:27:20 WARN]: at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
[12:27:20 WARN]: at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
[12:27:20 WARN]: at java.net.AbstractPlainSocketImpl.connect

white flame
#

lol

trim mist
agile peak
#

didn't know, thanks

trim mist
#

Mhmm. Highly suggest updating.

fair pendant
#

help pls i updated all my expansions but this one still giving error

tender vaporBOT
#
📋 Your paste: Not Ismail
https://paste.helpch.at/bizegonuju

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

tight garnet
#

Hello! I somehow lost the Placeholder API expansion for voteparty and couldn't find it in the ecloud... from where I can download it?

deep hollow
vivid sparrow
#

@deep hollow @twilit torrent @green osprey can you guys give this a try? I've tested it myself on different threads and for different players and the results are fine

#

For QuickJs I need to check their docs closer

twilit torrent
green osprey
# vivid sparrow For QuickJs I need to check their docs closer

u can simply make pretty same thing, but u will need a bit rework factory, like this:

interface ScriptEvaluator {
 // some other methods...
 void close();
}

class MyScriptEvaluatorFactory {
 final List<ScriptEvaluator> evaluators = new ArrayList(1);

 ScriptEvaluator blah(...) {
  evaluators.add(inst);
 }

 void close() {
   evaluators.forEach(ScriptEvaluator::close);
 }
}
tender vaporBOT
vivid sparrow
#

aight

deep hollow
tender vaporBOT
green osprey
#

this one: --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED

tender vaporBOT
#
Hey!

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

plush dove
#

for changeoutput is there a notequals case?

#

oh wait I figured it out

keen agate
#

Hello, I'm having problems with an extension, I need to change the format

vivid sparrow
#

Ok

steel gorge
#

@mint fable, yo! can you remind me what do i need to do for verify my expansion?

tender vaporBOT
steel gorge
#

Servertime (it was verified before the new verify policy was introduced)

warm light
#

Hello !

#

can someone help me ?
I recently added a scoreboard on my server but placeholders are not put in the scoreboard, it show me "%luckperms_prefix% or more expansions, so someone knows how to fix it ?
Thanks

fair pendant
tame willow
#

It is generally more about your scoreboard plugin thean PAPI but be sure about you installed correct expansions

sleek grove
# fair pendant idk what to do ?

I could be mistaken, but it looks like you removed the RandomTeleportExpansion plugin from your server but left the placeholder expansion in your papi folder. Remove the RandomTeleportExpansion papi expansion from your folder papi expansion folder and you should be fine I think.

analog flax
#

many thanks

mint fable
#

No problem, but I'm curious why not include an internal expansion?

#

That way people can use your placeholders without having to use the cloud

analog flax
#

"I've made the expansion for v1, you guys have this overcomplicated system to let me separate it from the main plugin, guess i'll just keep doing this lol"

mint fable
#

essentially just gotta copy the class file, not too much, but I understand

#

easier

#

lol

analog flax
#

yeah I know, I totally could just do that

#

then again like, let's be real, this entire ecosystem could and possibly should just be deprecated in favour of official hooks for a few plugins

#

and authors told to put it in their plugins

mint fable
#

they can and are

analog flax
#

downloading jars to servers over the internet must be a headache

#

is it? did I miss the announcement

mint fable
#

expansions are moreso for "I need placeholders for this plugin that provides an api but doesn't do it themselves"

#

or "i need placeholders but have no plugin"

analog flax
#

interesting

#

well I missed the memo

mint fable
#

idk how long, but as long as I can remember

#

🤷‍♂️

#

but William, am i crazy

analog flax
#

it's not clear to me reading that

mint fable
#

or is half the expansion missing?

analog flax
#

huh?

mint fable
#

returns nothing?

analog flax
#

the expansion targets jdk16+

#

your IDE is doing weird stuff

#

because it uses the lambda switch-case

mint fable
#

lemme see ya

analog flax
wide reef
#

specifically with newer return switch cases

analog flax
#

I reccommend intellij community's decomper

#

it's good for this sort of thing

mint fable
#

im gonna fucking blow up trying to edit a text file in a folder blocked by the system

analog flax
#

lol

analog flax
mint fable
#

It's entirely up to you

#

you don't have to do it one way or another, I was just curious

#

I personally just feel it's easier to include it in mine

analog flax
#

sure, but I don't trust myself to pick the smart and obvious choice lol

analog flax
#

that would be it I believe

#

it's built into IDEA community

mint fable
#

oh wait is it inside intellij

#

o

wide reef
#

i use the With a Plugin (Internal Class) method

mint fable
#

hmm

#

i guess I have intellij lol

#

ya i got no idea how to open the file smh

mint fable
#

do you use another decompiler?

wide reef
mint fable
#

icic

wide reef
#

i think the reason why is that jdgui only supports java 8, or atleast it refused to open with jdk 17 as main java, so it doesnt support any of the new functions that dont get automatically converted back

#

or something like that

mint fable
#

I just opened it with jdk17 and it didn't do nothin

#

earlier it did refuse though, maybe cause it was open already? idk why

#

different folder now though, so maybe why

#

@analog flax verified

analog flax
weary fable
#

Anyone else having issues installing the Expansion of GriefPrevention for PlacehodlerAPI?

sharp jay
sharp jay
eternal void
#

[07:43:22 WARN]: [PlaceholderAPI] Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.4.57 which is not a depend or softdepend of this plugin. [07:43:22 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms [5.4-R2] [07:43:22 INFO]: 1 placeholder hook(s) registered! [07:43:22 INFO]: [ViaVersion] Finished mapping loading, shutting down loader executor! [07:43:22 INFO]: Done (22.055s)! For help, type "help" [07:45:43 INFO]: Couldn't find veraion command, did you mean version?

[07:45:43 INFO]: Couldn't find veraion command, did you mean version?

Just an FYI for the DEV team.

mint fable
#

fyi about what?

eternal void
#

[07:45:43 INFO]: Couldn't find veraion command, did you mean version?

mint fable
#

You wrote veraion instead of version

#

so it suggested version

eternal void
#

no, it came up like that in console, after restart. It's your plugin.

#

I was just making you aware of it.

mint fable
#

Could you provide an entire startup log by chance?

#

I don't even think this is related to papi at all

#

PAPI just seems to be near the end of your startup sequence

#

I did not receive this message in my console

errant iron
#

yeah definitely not PAPI lmao

#

likely an automated script you wrote or MyCommand or something spelled it wrong

hushed flame
round marsh
#
org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.11.2

error go brr

#

happens when i do /papi reload

#

ive reinstalled plugin, restarted server

#

still wont work

vivid sparrow
#

full error @round marsh

round marsh
#

alr

round marsh
vivid sparrow
#

any startup errors?

round marsh
#

il check

round marsh
#

also the plugin deletes itself on server restart

#

idk y

austere hawk
#

why the Javascript expansion is not there on the ecloud?

vivid sparrow
vivid sparrow
#

you have to download it manually

austere hawk
#

oh

round marsh
tender vaporBOT
# round marsh well it does
Hey!

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

round marsh
#

bruh

deep hollow
#

Hey Gaby good morning

#

do you know why I'm getting this error every time I start the server?

vivid sparrow
#

no I do not, sorry

round marsh
deep hollow
#

😢

frosty reef
round marsh
frosty reef
round marsh
#

coz i made a dumb move with my purchase

#

im gonna swap to pebble once i run out of creds

#

i can give u panel access if u wanna take a look at whats wrong

#

@frosty reef

frosty reef
#

i aint touching exaroton lmao

urban marsh
round marsh
patent flame
#

Is there a way to add decimal points to placeholders? I currently have a belowname placeholder showing my health but I want it to be in 10.0 format instead of just 10. I currently have this ```yml
"%math_{player_health}/2%"

vivid sparrow
#

iirc it is %math_<decimals>_<equation>%

austere hawk
#

how would i remove the numbered lines

#

like the numbers beside each line

austere hawk
#

there is no expansion ListPlayers

#

And in the wiki it is

#

/papi ecloud download ListPlayers
%listplayers_in_world_<worldname>%

misty sedge
#

I might be stupid but it says there is a few ecloud packages that have an update so i run /papi ecloud update all and it just doesnt seem to update them

safe folio
#

Whats the placeholderapi to display the status of a specific player like if he online/offline

chrome sentinel
#

Hey, I am getting this error every time I restart the server. None of the placeholders work until I run /papi reload. I have 4 expansions installed: essentials, player, server and vault. Does anyone know how to fix this error?
https://pastebin.com/HNujPcuH

steel gorge
tender vaporBOT
vivid sparrow
#

@stone edge why dont you make a pr to the string expansion made by blitz to add the capitalization placeholders?

stone edge
#

bc idk how to do those complex things xd

#

i learnt the git thing just because the IDE tells you what to do xd

#

(Thats why my plugins are not open source xD)

steel gorge
#

fixed btw

gilded lantern
cosmic compass
#

I am using Towny and was told I can use PlaceHolderAPI to look for towny.townless permission node on a player and make my own prefix, but not sure how to do that or where to look

austere hawk
#

Question, if anyone can help! I'm running itemsadder's rpghud addon, in addition to realistic seasons. RS has an actionbar display for the temperature and it continuously switches back and forth between the rpghud and the temp. Disabled the temp display and now looking for a solution to have them both up at the same time. I thought it would be as simple as pasting %rs_temperature% somewhere, but it stopped seeming like that an hour ago. Thanks to anyone with thoughts!

cedar crest
#

hello , does anyone have placeholder list for 1.8.8 version ?

cobalt cave
#

how do i get the javascript expansion

stone edge
stone edge
misty sedge
#

I might be stupid but it says there is a few ecloud packages that have an update so i run /papi ecloud update all and it just doesnt seem to update them

near peak
#

Anyone know why when I use the "Server" placeholder I end up with just getting a "1"? It seems to be parsing the current server and not the one I want it to so I'm confused on how I can parse another server thats not the one I am on

stone edge
#

there is a bungee expansion i think. use it

near peak
#

Also there's only
"Server"
"ServerWebsite_Expansion"
and "Servertime"

#

Does Papi work on a proxy?

stone edge
#

idk, i dont use velocity

#

papi is a spigot plugin and will probably always be

cobalt cave
#

also how to i get the value of a placeholder in javascript

stone edge
#

you just use the placeholder and it gets replaced iirc

cobalt cave
#

in javascript?

stone edge
#

in the .js file

#

i remember there was a method also you can use inside your code

#

but dont remember very well, check the wiki

hard basalt
#

is this outputing number right ?

var group = "%luckperms_current_group_on_track_ranks%";
function mbody() {
    var outp = 19;
    switch (group) {
        case "newcomer":
            outp = 19;
            return outp;
            break;
        case "serf":
            outp = 20;
            return outp;
            break;
        case "peastant":
            outp = 23;
            return outp;
            break;
        case "servent":
            outp = 26;
            return outp;
            break;
        default:
            outp = 19;
            return outp;
    };
};
mbody();
mint fable
#

yes, you can take out some though

var group = "%luckperms_current_group_on_track_ranks%";
function mbody() {
    switch (group) {
        case "newcomer":
            return 19;
        case "serf":
            return 20;
        case "peastant":
            return 23;
        case "servent":
            return 26;
        default:
            return 19;
    };
};
mbody();
steel gorge
mint fable
#

ya

steel gorge
mint fable
#

can ask here, no?

steel gorge
hard basalt
#

i end up using expression within the menu since slot dont work with placeholder

brittle ruin
#

Hi, about the ParseNear placeholder %playerlist_online,nearby,no,list,3%. Is it possible to get only 1 player name from the nearest?
Like if there are multiple player nearby, only get the 1 only nearest player.

mint fable
#

this CC: @junior musk I see you don't do it currently, but would it make sense to sort the Nearby subtype by distance at the end? (I know you would have to store the distance as well in a map instead of a list maybe)

mint fable
#

but if it is possible, tanguygab would know, if not, maybe could be added 🤷‍♂️

brittle ruin
#

ah my bad, its PlayerList xD

mint fable
#

would that not work

#

%parsenear_3_player_name%?

solid berry
#

What am I doing wrong with FeatherBoard? Using correct placeholders.

brittle ruin
tender vaporBOT
mint fable
#

sorry tanguygab lol

mint fable
#

you gotta use placeholderapi placeholders now, full list here:

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
#

but you need factions and vault

#

4 different placeholders available, not sure what rounded did for you

%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_balance_commas%```
solid berry
#

Weird, even with Vault that doesn't work.

mint fable
#

with the vault expansion?

solid berry
#

Might have the wrong plugin installed, you have the link?

mint fable
#

uh, you need placeholderapi installed for featherboard to work

#

so if it's working it's installed

mint fable
solid berry
#

It is installed.

mint fable
#

download vault expansion with these commands

mint fable
solid berry
#

Ahh I understand now. Thank you, much easier than before.

solid berry
#

CJ, I'm trying to add a placeholder in essentials chat format to display a faction. I'm not having any luck.

#

I also used %factionsuuid_faction_name% but then it removes everything in the format when you reload essentials.

junior musk
tender vaporBOT
junior musk
#

I'll try when I get out of bed

junior musk
frank sluice
tender vaporBOT
errant iron