#placeholder-api

150650 messages · Page 130 of 151

wet orbit
#

its cool, but there's no file i can find and fix

#

If it were possible, I would fix it myself.

#

but i dont see that file

#

All this code is in a jar file that is better not to open, because you won't read or understand anything there anyway

fast kestrel
#

how to use placeholders on aternos

slow zealot
#

I am sorry :(

#

Wont happen again!

#

ill try!

#

is. this a plugin?

ocean beacon
teal quarry
#

What does rounding mean in %math_[precision]:[rounding]_<expression>%

junior musk
#

it rounds the expression either up or down depending on what you specify

teal quarry
#

hmm

teal quarry
#

do I need rounding?

junior musk
#

depends on what you want

teal quarry
#

trying to just go from #.### to #.##

junior musk
#

then you just need precision

#

though math should only show 2 by default

teal quarry
#

It doesnt

junior musk
#

but in any case, you can use %math_2_<expression>%

teal quarry
#

%math_6+({jobsr_user_jlevel_blacksmith}*0.03)% Shows 3

junior musk
#

%math_2_6+({jobsr_user_jlevel_blacksmith}*0.03)%

teal quarry
#

Awesome

#

I appreciate it

steel sorrel
#

I have some questions about the MySQL expansion.
If I fill out the settings.default section of the config am I then able to use a %placeholder% to refer to the host, port, database, user and password/

The reason I'm asking is because I'm tired of filling in the database details of half a dozen plugins on five servers...every time the database is reset or a password is changed.
It's easier to change it in one place than have to remember which plugins have database...

mint fable
#

you do not want users possibly getting access to your ip, port, database, user, AND password

#

as much as it might suck to have to change it in multiple places, that is the most secure way

#

If you have a program like NP++ you can use the search function within directories, not just single files. If that helps

steel sorrel
#

I do use Notepad++, and I have for several years.
I have a single file that I keep all the important bits on, such as database, bot tokens and backup codes. tat makes it easier to just copy pates.
It just sucks having to update a couple dozen files every month when sql and ftp passwords are changed.

jovial cargo
mint fable
steel sorrel
#

I do that now, but the problem is I have to go to each of the files, download them from the host, edit them and then upload them again.

mint fable
#

ah right

#

then maybe sounds like what makiil said might help

#

I have no clue

#

There are expansions you can use to just store a variable

#

but

#

I highly recommend against that for security purposes

#

please do not do that

#

do not make that information available via a placeholders

steel sorrel
#

You know better than I do on this subject, so I'll take your advice.

mint fable
rotund thorn
#

Hello

#

How can I get support here?

junior musk
#

?help

tender vaporBOT
short solar
#

hello im using autop rank and its not working

#
default to beginner:
  prerequisites:
    in group:
      value: default
  requirements:
    bedwars_stats_wins:
      value: 1
  results:
    command:
      value: lp user add parent beginner
    message:
      value: Congratulations, you have been promoted to beginner!
  options:
    display name: beginner
    auto choose: true
    show based on prerequisites: true``` %bedwars_stats_wins%
short solar
short solar
#
default to beginner:
  prerequisites:
    in group:
      value: default
  requirements:
    1 ; %bedwars_stats_wins%:
  results:
    command:
      value: lp user add parent beginner
    message:
      value: Congratulations, you have been promoted to beginner!
  options:
    display name: beginner
    auto choose: true
    show based on prerequisites: true```
little spruce
#

how can I make a spawner upgrade menu using Spawnermeta and deluxemenus

little spruce
rare dragon
#

Of that

little spruce
#

An example of how I can upgrade it to a zombie spawner

rare dragon
#

I can make one for you if you’d like

rare dragon
little spruce
#

Ok

torpid bone
#

no shot ppl try n get money for making menus lmfao

cosmic needle
#

XD

bronze shell
#

Would it be easy to create a placeholder that gives a different output depending on if the player is burning, or if the player is frozen ?

#

apparently nothing of the sort exists as of now but i need something like that, so i'm thinking of just doing it myself if it's doable

#

knowing that the burning and the frozen condition are not considered "status effect" by minecraft, unlike all the other potion effect

high dragon
#

Is there any placeholder to get the date of the first connection to a server¿?

short solar
#

how do i make it so if my placeholder %deluxetags_tag% is noting ten it will turn into &8&l[&7NONE&8&l]

#

is there a placeholder for this in papi?

short solar
# junior musk ?help
// Define a function to handle the custom placeholder
function customPlaceholder(player) {
    // Retrieve the value of %deluxetags_tag% for the specified player
    var deluxetagsTag = placeholderAPI.getPlaceholder(player, 'deluxetags_tag');
    
    // Check if the value is an empty string
    if (deluxetagsTag === '') {
        // Return the replacement text
        return '&8&l[&7NONE&8&l]';
    } else {
        // Return the original value
        return deluxetagsTag;
    }
}

// Register the custom placeholder with PlaceholderAPI
placeholderAPI.registerPlaceholder('javascript_tag', customPlaceholder);
``` can you fix the js?
junior musk
#

ChatGPT kekw

#
function tag() {
    let tag = "%deluxetags_tag%";
    return tag === "" ? "&8&l[&7NONE&8&l]" : tag;
}
tag()

and in your /plugins/PlaceholderAPI/javascript_placeholders.yml file, add

  tag:
    file: "<name of the file>.js"
``` while replacing the file name of course
neat basin
junior musk
#

not yet apparently lol

neat basin
short solar
#

tnx

#

done

junior musk
#

uh try this?

function tag() {
    var tag = "%deluxetags_tag%";
    return tag === "" ? "&8&l[&7NONE&8&l]" : tag;
}
tag()
short solar
#

omg it works tnx

mossy elk
#

Hi Hi, I'm new I was wondering if anyone can help me out, first time using this.

Theres a E-cloud for stastistics from spigotAPI and just stand alone individual player stuff.

But is there any plceholder for like global server stats: "like total_mobs_killed".

Basically any player-ish stats but like collecivly for the entire server added together. Like I want something like %statistic_mob_kills% but like all the players added up and all the mobs ever killed ever in the server

#

Also im using spark for my tps and ram monitoring but my placeholder for spark isnt working, says no download from E-cloud server available so im assuming its hardcoded but dosent work

mint fable
random pilot
#
- placeholder -
- '%javascript_itemattloreline_{javascript_itemattlore_NeutralDamage,%var_NeutralDamage_int%}%'

- javascript -
function attloreline() {
    var test1 = args[0];
    var test2 = args[1];
    /*var fire = args[1];
    var water = args[2];
    var earth = args[3];
    var lightning = args[4];
    var divinity = args[5];
    var darkness = args[6];*/
    return test1;
}
attloreline();

#

is this can anyway?

#

if i run this.

print
{javascript_itemattlore_NeutralDamage

idle osprey
short solar
#

is there a way to go from

text 1 [aad]
text 2 [daa]
text 3[ada]
text 4 [dda]
text 5 [add]
text 6 [ddd}
text 7 [aaa]

for a js placeholder?

#

please ping me

vivid sparrow
#

What

short solar
#

switshing test for a placeholder for tagsd

plucky wind
#

hey i have KDRatio papi downloaded for kill/deaths stats how do i reset everyone stats i did everything world folder deleted stats playerdata and they are still not reset

ocean iron
#

Hello !
I have an issue...

function questhistoire() {
    const metiersString= "%player_name%";
    return metiersString
}
questhistoire();
[PAPI] [Javascript-Expansion] An error occurred while executing the script 'parse-command
com.extendedclip.papi.expansion.javascript.evaluator.EvaluatorException: Failed to evaluate requested script.
        at com.extendedclip.papi.expansion.javascript.evaluator.QuickJsScriptEvaluator.execute(QuickJsScriptEvaluator.java:26) ~[?:?]
        at com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate(JavascriptPlaceholder.java:120) ~[?:?]
        at com.extendedclip.papi.expansion.javascript.commands.ParseCommand.execute(ParseCommand.java:69) ~[?:?]
        at com.extendedclip.papi.expansion.javascript.commands.router.CommandRouter.execute(CommandRouter.java:72) ~[?:?]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:1001) ~[purpur-1.20.1.jar:git-Purpur-2062]
...
Caused by: com.koushikdutta.quack.QuackException: ReferenceError: 'Loupric' is not defined
        at <javascript>.<eval>(?:1) ~[?:?]
        at com.koushikdutta.quack.QuackContext.evaluate(Native Method) ~[PlaceholderAPI-2.11.5.jar:?]
        at com.koushikdutta.quack.QuackContext.evaluate(QuackContext.java:600) ~[PlaceholderAPI-2.11.5.jar:?]
        at com.koushikdutta.quack.QuackContext.evaluate(QuackContext.java:615) ~[PlaceholderAPI-2.11.5.jar:?]
        at com.koushikdutta.quack.QuackContext.evaluate(QuackContext.java:653) ~[PlaceholderAPI-2.11.5.jar:?]
        at com.extendedclip.papi.expansion.javascript.evaluator.QuickJsScriptEvaluator.execute(QuickJsScriptEvaluator.java:24) ~[?:?]
        ... 26 more```
Any idea ? x)
plush dove
#

Is there a way to increase the max placeholder length? I'm parsing placeholders that are well beyond the max length and it's annoying finding workarounds 😅

junior musk
#

there's a max length?

plush dove
#

everything past some point gives this error: Caused by: java.lang.StringIndexOutOfBoundsException: start 136, end 172, length 102

junior musk
#

that's not the issue 😅

plush dove
#

oh?

junior musk
#

just Utils is half broken

plush dove
#

ah

#

-_-

junior musk
#

send the whole placeholder

plush dove
#

%utils_parse_javascript_cornHoeIndex_{math_0_40-{commandpanels_data-y}*9},largeCorn{javascript_inputOutputEval_{commandpanels_data-upgradepoints}==0,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem,{commandpanels_data-largecorn}==100,MaxLevel},{math_0_31-{commandpanels_data-y}*9},{javascript_eval_{commandpanels_data-largecorn}!=0,upArrow_{math_0_31-{commandpanels_data-y}*9},air}%

junior musk
#

and which Utils version are you using?

#

/papi info Utils

plush dove
#

thanks 😂

#

1.0.7

junior musk
#

should be fine

chrome sentinel
#

Hey, I'd like to create a placeholder that returns the ammoCount NBT value from the item the player is holding. However, %checkitem_getinfo:mainhand_nbtints:ammoCount% returns a whole bunch of text, specifically nbt:NBTTagCompound:pbs:{ammo:30,fm:1,lid:-734358647925573780 2L,mid:6981303501539724888L) instead of the actual value. Does anyone know how I could obtain the actual value?
Here's the nbt data of the item I'm holding when parsing the placeholder:
("pointblankreload_cooldown": (totalUninterruptedFireTime: 0, ammoCount: 0, lastSyncTime: ØL, correlationId: 8397, lastShotFiredTime: ØL, fireState: 0)), id: "pointblank:tmp", Count: 1b, tag: (GeckoLibID: 105L, pbs: (mid: 6981303501539724888L, ammo: 30, lid: -7343586479255737802L, fm: 1}}}], z: 3, id: "minecraftbarrel"}

plush dove
#

oop wait

#

I got it fixed

#

;-;

junior musk
#

how?

plush dove
#

changed the placeholder to %utils_parse_javascript_cornHoeIndex_{math_0_40-{commandpanels_data-y}*9},largeCorn{javascript_inputOutputEval_{commandpanels_data-upgradepoints}==0,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem,{commandpanels_data-largecorn}==100,MaxLevel},{math_0_31-{commandpanels_data-y}*9},{javascript_eval_{commandpanels_data-largecorn}!=0,upArrow,air}%

#

at the end

junior musk
#

missing a } ?

plush dove
#

I had a random math placeholder

#

nah

junior musk
#

or an extra ?

plush dove
#

had _{math_0_31-{commandpanels_data-y}*9} at the end

#

And that wasn't even needed in the first place

junior musk
#

uh okay

plush dove
#

no clue ¯_(ツ)_/¯

#

I'll keep testing, placeholder needs to be much longer anyways

junior musk
#

I do see that {javascript_inputOutputEval is not closed in your previous placeholder

junior musk
plush dove
#

wellll what I'm trying to do is pretty complex

#

I don't think I can move it all into one javascript

#

I mean technically it is, its all in the cornHoeIndex javascript, but the arguments for it are placeholders with placeholders, hence why I need the utils parse

#

see any missing {/} in here:
%utils_parse_javascript_cornHoeIndex_{math_0_40-{commandpanels_data-y}*9},largeCorn{javascript_inputOutputEval_{commandpanels_data-upgradepoints}==0,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem,{commandpanels_data-largecorn}==100,MaxLevel},{math_0_31-{commandpanels_data-y}*9},{javascript_eval_{commandpanels_data-largecorn}!=0,upArrow,air},{math_0_22-{commandpanels_data-y}*9},{javascript_eval_{commandpanels_data-largecorn}!=0,sweetCorn{javascript_inputOutputEval_{commandpanels_data-upgradepoints}<2,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem,{commandpanels_data-sweetcorn}==100,MaxLevel},air}%
?

#

huhhh papi parse dunescifye %javascript_inputOutputEval_{commandpanels_data-upgradepoints}<2,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem% gives an error, that checkitem placeholder is causing it. If I make it a utils parse, it works fine

junior musk
#

if you can do it with Utils, you can definitely do it in JS

plush dove
#

hmmm

#

alright I'll try

plush dove
junior musk
#

issue in your js

plush dove
#

mmm I see

#

the javascript uses eval(args[x])

#

its evaluating "{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no"

#

so trying to make it in one js, should I keep using the math placeholder?

#

for stuff like {math_0_40-{commandpanels_data-y}*9}

junior musk
#

why use the math placeholder while you can just do the operations in the script?

plush dove
#

kk

flint ingot
#

Hey I need help about my hacked account

chrome sentinel
#
plush dove
#

Whats the dangers of using the eval() statement in JS?

plush dove
short solar
#

i now that the probleem is i jsut need that tink just idk how to fix it

tender vaporBOT
mint fable
#

@flint ingot this

short solar
#

this is the discord the pluging sand me to

mint fable
#

@short solar that was not addressed to you...

short solar
#

o

flint ingot
#

I've emailed them already and sent a request form but I just got an email from Clyde bot that wasn't helpful because I can't change the email back

mint fable
#

but this discord will be of no assistance to you

flint ingot
#

Oh okay thanks anyways

#

What's this server for though

junior musk
#

?not-discord

tender vaporBOT
plush dove
#

it breaks my entire thing

#

easy fix

#

pog it works! I compressed it all into one javascript placeholder as recommended

#
    var list = ["air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air"];
    for (i = 0; i < args.length/3; i++) {
        if(eval(args[i*3])){
            var numbersArray = args[i*3+2].split('|');
            var output = numbersArray[0];
            for(b=0;b<(numbersArray.length-1)/2;b++){
                if(eval(numbersArray[b*2+1])){
                    output = numbersArray[b*2+2];
                    
                }
            }
            list[eval(args[i*3+1])] = output;
        }
        
    }
    return list.join("|");
}

cornHoeIndex();```


Is JS supposed to look this messy 😭
broken cipher
#

is there a way to have placeholder inside of placeholder inside of placeholder

#

3 way

sharp bloom
#

you can use the shortcut expansion ig

agile adder
#

hey guys, could anyone help a noob out?
When I run /papi parse me %player_name% the output is %player_name%
The startup logs look fine to me.
Here is dump from /papi dump
https://paste.helpch.at/ihuxinekoc

#

# No placeholders are provided with this plugin by default.
ok ok, sometimes typing my problem out gets the gears turning...

agile adder
#

I realized after I typed my question that I may have to manually down some expansions
I think I'm alright now.

#

it working now 🙂

waxen sigil
#

I have u problem with Expansion-player.jar

[03:27:06 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[03:27:06 INFO]: [PlaceholderAPI] Fetching available expansion information...
[03:27:07 WARN]: [PlaceholderAPI] Failed to load external expansion player. Identifier is already in use.
[03:27:07 WARN]: [PlaceholderAPI] Cannot load expansion player due to an unknown issue.
[03:27:44 INFO]: Carlos2025 issued server command: /papi unregister player
[03:27:47 INFO]: Carlos2025 issued server command: /papi reload
[03:27:47 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[03:27:47 INFO]: [PlaceholderAPI] Fetching available expansion information...
[03:27:47 INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8]```
#

I have to do "UnRegister and then reload" for it to work and it's a problem because I have to do it every time the server restarts.

I am using paper-1.18.2 - Java 17

junior musk
#

or mayhe you're using the broken AnimaBossbar plugin

waxen sigil
#

I only have one expansion in the folder

junior musk
#

Author: LagBug
I guess there's yet another plugin that registers its own Player expansion...

#

send your logs

#

it'll be easier to find which one did

vivid sparrow
#

Why are plugin's authors not shown in there lol

junior musk
#

idk

vivid sparrow
#

Update emailer, the author fixed the issue @waxen sigil

sterile gust
#

hello sorry to bother essentialsx sent me over to you guys and i wanted to see if you guys knew what is causing my issue i seem to be having a baltop issue and was wondering how i could fix it the hologram seems to be wrong and not doing it right i have images if needed

waxen sigil
sterile gust
#

you mean the vault plugin then yes

waxen sigil
#

Sometimes that happened to me use: "/papi ecloud download vault"

#

And /papi reload

sterile gust
#

sadly that didnt fix my issue im replacing the jar to make sure they are up to date and seeing if that works

vivid sparrow
#

The baltop placeholders are a part of the eseentials expansion

#

Go to the expansions folder, delete any essentials expansion you have there and download the latest

sterile gust
#

so idk if i fixed it or not do you know how i can fix my tab placeholder it keeps showing only the %player_name%

lunar coral
#

Hey! I'm trying to get this command to run from a yml config.

papi cmdparse --null execute as 135efcbd-9be0-4733-8ca6-88ae0362b9e2 run data merge entity @s {CustomName:'{"text":"TEST: %parseother_{ImmortalRhyme4}_{javascript_fbcs_{objective_score_Test},{objective_score_Temp_InHand_Stack_Size_Count}}%","color":"red"}'}

It runs fine through the console but yaml formatting doesn't seem to like the % symbols, as it gives the error: Plain value cannot start with directive indicator character %

Is there any way around this?

junior musk
#

send the yml file with the cmd

lunar coral
junior musk
lunar coral
#

that seems to work

#

thanks!

austere hawk
#

Hello, I'm attempting to run check item's remove placeholders and am getting the error stating remove placeholders must be enabled in the config.yml, yet I am missing a config.yml for PAPI. I found the config on Github but it seems to be missing anything to do with remove placeholders and also I do not know which folder I should place it in within the plugin directory

plush dove
#

Is there a placeholder that takes off the last x characters of a string?

plush dove
#

Just made one via js

mint fable
#

I would suggest updating papi if it's outdated

austere hawk
#

Where would i find it?

mint fable
#

I would also like to give you extra warning that you probably should not use the remove placeholders from checkitem for security reasons @austere hawk

#

That's why it was disabled by default in the first place

mint fable
austere hawk
#

It's just a little server with my friends, but out of curiosity what security reasons?

mint fable
#

users being able to parse placeholders

#

can happen in many different scenarios

austere hawk
#

cant i just permission block the papi commands?

mint fable
#

No, they wouldn't/shouldn't have access anyway

austere hawk
#

ah well thank you for the help! ill def try and mess with the version/build and see if that helps

mint fable
#

yep

#

What is your reason for needing/wanting checkitem remove placeholders? @austere hawk

#

I guess I never gave an alternative, but I would recommend just using the vanilla /minecraft:clear command

#

or, if you're using custom items, the plugin they come from might also have a remove command

mint fable
#

I just said "yep" without really reading lol

austere hawk
#

no its def missing but \o/

mint fable
#

v odd

tender vaporBOT
mint fable
#

if you want to share I'm a little curious

austere hawk
#

haha the alternative would be sucking it up and writing my own plugin but rn im just messing with shit and i made this altar thing that adds enchants to items after a puzzle but its supposed to cost an item to use

#

im sure most of the issues r just from me using a shitty free hosting service but i plan on moving to a better one soon once im more financially stable

mint fable
#

hmm, maybe, but that wouldn't really cause this issue

#

🤷‍♀️

#

but the vanilla clear command should work for this situation

#

I say should

#

it will

#

without a doubt

#

just has to have the right syntax

austere hawk
#

hmm i havent messed with any params for /clear before so i'll have to learn that

#

is there a way to make sure it only takes an unnamed item with no lore or enchants?

#

or to specify nbt values to match?

red mica
#

Hi. Does PAPI have a javadoc?

balmy marten
red mica
#

This is a wiki with guides, I need a javadoc for API reference, do you guys have an API reference, or are all the methods and classes explained in the wiki everything PAPI has?

red mica
#

Thank you

plush dove
lone abyss
#

hello, when I enter the commands they do not work, someone who can help me please

lone abyss
# plush dove What command

for example I use /papi parse username %server_name% and the chat responds with %server_name% and not with the server name

plush dove
#

Then /papi reload

#

Then try it again

#

And did you actually type "username" or your actual username

lone abyss
#

there if it worked for me, thank you very muchPlusOne reversed_fingerguns

plush dove
#

Anyone know a placeholder to get the value from vanilla /data storage command?

mellow lodge
#

Does placeholderapi work on bungeecord? because it doesn't seem to wanna load?

junior musk
#

it doesn't

#

it's a Spigot plugin

swift thistle
#

Hey, I have a question about the plugin I would like to create a placeholder for the AntiCheat Matrix for example something like (%server%) Since the developer of the plugin does not want to create his own placeholder for it, he recommended me to use PlaceHolderAPI unfortunately I have no experience with the plugin and do not know if something like this is possible to create and how:

An example of what I want to achieve is the following:

Matrix: Player XYZ Might be using KillAura on ( %server% Bedwars1)

hidden thunder
#

hi

#

I can't get the Essentials Chat format to recognize the %deluxetags_tag% variable

#

Could someone help me?

#

format: '{deluxetags_tag}{DISPLAYNAME}: {MESSAGE}'

junior musk
#

?tagess

tender vaporBOT
hidden thunder
#

I've followed these steps and it's still not working.

swift thistle
junior musk
junior musk
swift thistle
#

No only on Spigot

junior musk
#

then why do you need a %server% placeholder?

hidden thunder
#

It's already working, thank you very much and discuss the hassle

heavy valve
#

hey! i asked for some help some weeks ago, it was about a placeholder for a lp prefix with custom prefix, it was working fine on my survival, but now it actually stopped working on my lobby, even throug im using the same exact config: https://imgur.com/a/zqwdr6F
I added the same exact expansion for both server, any tips?

#

the %img_owner% placholder works, so its not something releated to the texturepack

#

ping me for any replies please

junior musk
#

🥲

#

oo actually

#

/papi ecloud download Formatter
/papi reload

fierce kestrel
#

Good evening I have a quick question, I use the essentials plugin and I put his afk placeholder in my dcp tab when a player is afk next to his nickname it writes yes and when this is not the case it says no and I'm trying to change it, does anyone know how to do it?

plush dove
fierce kestrel
kindred mirage
#

Hi,

I'm trying to make a placeholder for waterfall?

#
    @Override
    public String onPlaceholderRequest(ProxiedPlayer player, String identifier) {
        if (identifier.equals("coins")) {
            int coins = coinsManager.getCoins(player);
            return String.valueOf(coins);
        }
        return null;
    }

It seems that whenever I try this, it can't find the PAPI dependency.

#

Wait.. is PAPI even working for Waterfall or Bungee?

junior musk
#

PAPI is a Spigot plugin

#

not a Bungee one

kindred mirage
#

aight

shut scroll
#

net.minecraft.server.level.PlayerInteractManager field "net.minecraft.server.level.EntityPlayer.e" with illegal data type conversion to int

junior musk
#

/papi ecloud download Player
/papi reload

obsidian egret
#

why cant i download the papi teams

#

/papi ecloud download teams

#

it says there is non

junior musk
obsidian egret
#

bro you scared me

#

i though it was gone

obsidian egret
junior musk
#

?

obsidian egret
#

yeah i downloaded it

#

why isnt it working with my simplescore plugin?

#

im reloading it

#

its supposed to show the team that im in

junior musk
#

send a screenshot

#

?imgur

tender vaporBOT
obsidian egret
#

i sent it on private

#

cuz the link isnt working

junior musk
#

send the link you get when running /papi dump

#

and what does /papi parse me %team_name% say?

obsidian egret
#

it just says it on chat

#

but i want to put it on my scoreboard

junior musk
obsidian egret
#

yes

#

but i want to put it on my scoreboard

junior musk
#

😐

obsidian egret
#

well the plugin simplescore

junior musk
#

does it say %team_name% or the actual team name?

junior musk
#

this isn't a question you can answer by yes or no

obsidian egret
#

i didnt rea

#

d

junior musk
#

gg

obsidian egret
#

team name

#

the actual team

#

not %

junior musk
#

send your simplescore config

obsidian egret
#

okay

junior musk
#

?paste

tender vaporBOT
obsidian egret
#

the config.yml or the scoreboard.yml

junior musk
#

uh

#

send both just in case

obsidian egret
#

okay

#

ill send it on private because if i send it here it would be a mess

junior musk
#

?paste

tender vaporBOT
obsidian egret
#

my bad

junior musk
#

I don't see anything wrong

obsidian egret
#

hm

junior musk
#

did you get errors in console? maybe when reloading SimpleScore?

obsidian egret
#

let me see

#

nope

junior musk
#

I don't know then

#

it looks fine

obsidian egret
#

wait

#

i just realized something

#

the scoreboard isnt even loading

junior musk
obsidian egret
#

fr

#

idk how to fix that tho

junior musk
#

by switching to another plugin like TAB fingerguns

obsidian egret
#

yo bro

#

nvm

#

1 sec

vernal raptor
carmine siren
#

Does anyone know if there is a free plugin to be able to make more combos in pvp?

hot relic
#

Hello developers,

I'm facing an issue with the Deluxe Menus plugin. It seems that I'm unable to use purchase requirements in my Shop Cash menu for values above 1000. It works fine for values from 1 to 999, but beyond that, it's encountering some sort of failure. I would like to request a fix for this issue. https://prnt.sc/aq26Db-rLBem

mint fable
#

presuming that %ypoints_points% goes from 999 to 1K, not 1000

#

the raw placeholder should work

#

hmm, ypoints seems to only offer these two

%ypoints_points% - Returns player points.
%ypoints_formatted% - Returns player formatted points.
#

sounds like %ypoints_formatted% returns the 1K format maybe, but %ypoints_points% might be returning 1,000 instead of 1000 which also causes it to break

#

hmm, I can never remember if formatter works or not for this, but maybe you can use %formatter_number_format_:####_{ypoints_points}%

#

@hot relic

junior musk
#

there probably is a way to make it but I don't know how, which is why I just end up using formatter_text_replace_,__ 😅

sharp bloom
#

OKK i love when i come to ask a question here i end up finding the solution myself the moment i start typing

#

i was trying to parse someones localtime %utils_parseother:[{username}]_localtime_timezone_{geolocation_timezone}% and i ended up using this

mint fable
#

but i think that requires config or smthn

junior musk
#

well, formatter_text_replace doesn't, string_replacecharacters does

mint fable
#

ye

weak sage
#

Hi

#

for me it is not working with placeholderapi

sharp bloom
#

does anybody know a placeholder that returns a players version?

vivid sparrow
#

Viaversion

hot relic
mint fable
#

you'll need the expansion

hot relic
#

%formatter_number_format[[locale]:[pattern]]<number>%
%formatter_number_from:<timeunit>to:<timeuinit><number>%
%formatter_number_round[[precision]:[rounding]]<number>%
%formatter_number_shorten_<number>%
%formatter_number_time[<timeunit>]<number>%
%formatter_text_capitalize_<text>%
%formatter_text_length_<text>%
%formatter_text_lowercase_<text>%
%formatter_text_replace_[target][replacement]<text>%
%formatter_text_substring_[start]:[end]<text>%
%formatter_text_uppercase
<text>%

#

How do I use it?

#

I already downloaded the formatter

#

@mint fable

mint fable
#

did you read what we said earlier

#

try what we sent

hot relic
#

I am Brazilian

#

I do not understand very well

mint fable
#

parse in chat

#

/papi parse me %formatter_number_format_:####_{ypoints_points}%

hot relic
#

left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%formatter_number_format_:####{ypoints_points}%'
output: '4'
deny_commands:
- '[message] &c&lSeu Cash acabou sinto muito :('
right_click_requirement:
requirements:
anything_here:
type: '>='
input: '%formatter_number_format
:####_{ypoints_points}%'
output: '4'
deny_commands:
- '[message] &c&lSeu Cash acabou sinto muito :('

#

?

mint fable
#

Yes try

#

Does it work?

hot relic
#

[19:35:45 WARN]: [PlaceholderAPI] [formatter] Invalid placeholder %formatter_number_format_:####_{ypoints_points}%
[19:35:45 WARN]: [PlaceholderAPI] [formatter] Cannot convert {ypointspoints} into a BigDecimal.

mint fable
#

ah

mint fable
hot relic
#

não deu o erro mas continua não funcionando

#

Didn't give the error but it still doesn't work

#

left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%formatter_text_replace_,{ypoints_points}%'
output: '4'
deny_commands:
- '[message] &c&lSeu Cash acabou sinto muito :('
right_click_requirement:
requirements:
anything_here:
type: '>='
input: '%formatter_text_replace_,
{ypoints_points}%'
output: '4'
deny_commands:
- '[message] &c&lSeu Cash acabou sinto muito :('

hot relic
#

@mint fable

tender vaporBOT
austere hawk
#

What placeholder can I use to get the name of a server? %server_name% returns "A minecraft server". I'm using Velocity

obsidian egret
#

what placeholder can i use to put this action bar to my simplescore plugin?

plush dove
#

Papi config

rustic mural
#

Hi what params mean in the PlaceholderExpansion ?

And where i have to put the params ? Like "%placeholderIdentifier.params%" ?

public class SomeExpansion extends PlaceholderExpansion {

    private final SomePlugin plugin; // 

    public SomeExpansion(SomePlugin plugin) {
        this.plugin = plugin;
    }

    @Override
    @NotNull
    public String getAuthor() {
        return String.join(", ", plugin.getDescription().getAuthors()); // 
    }

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

    @Override
    @NotNull
    public String getVersion() {
        return plugin.getDescription().getVersion(); // 
    }

    @Override
    public boolean persist() {
        return true; // 
    }

    @Override
    public String onRequest(OfflinePlayer player, @NotNull String params) {
        if (params.equalsIgnoreCase("placeholder1")) {
            return plugin.getConfig().getString("placeholders.placeholder1", "default1"); // 
        }

        if (params.equalsIgnoreCase("placeholder2")) {
            return plugin.getConfig().getString("placeholders.placeholder1", "default1"); // 
        }

        return null; // 
    }
}
#

I'm new with papi ^^

junior musk
#

a placeholder follows this syntax: %identifier_params%

#

the identifier is what you have in your getIdentifier method, and params is what comes after

rustic mural
#

Ok i maybe miss that part 🤔

junior musk
#

so in this example, you have %example_placeholder1% and %example_placeholder2%

rustic mural
#

Ok thx u a lot 🫶

obsidian egret
#

yes

obsidian egret
#

please help me if u can

plush dove
#

is there a javascript where you can straight up parse javascript directly from the placeholder?

#

like rather than having a js file, it'd just be the placeholder

rustic prairie
#

is there a placeholder for sup skyblock?

austere hawk
#

I want to show ranks via simplescore and I installed that and placeholderapi and it does not show %luckperms_prefix%

dire barn
#

Is it at all possible to somehow make a placeholder that can show the TPS on a back-end server of a velocity network?
Even if I have to nest placeholders with the utils extension.

austere hawk
#

haha i figured it out

#

/papi ecloud

#

what uses %de_raw_player_balance%?

austere hawk
austere hawk
#

im about to nut everywhere

junior musk
junior musk
austere hawk
junior musk
#

there are/were some plugins that allowed that, but idk if they're still up to date

plush dove
junior musk
#

isn't eval just for math expressions?

#

nevermind, it definitely can do stuff

#

it's the same thing, it can run code

#

so yes, if anyone is able to parse the placeholder with their own code, your server goes bye bye

#

that's also partially why the JS expansion got unverified

junior musk
#

I have no experience with resources packs

tribal pagoda
#

%player_health%/%player_max_health%

How can I round it?
now is 20.0/20.0 i want 20/20

junior musk
#

%player_health_rounded%

tribal pagoda
#

THANKS 😘

tribal pagoda
#

How can i get sum of armor?

dire barn
junior musk
#

%server_tps_1%

#
%server_tps%
%server_tps_1%
%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%
%server_ram_free%
%server_ram_max%
%server_ram_total%
%server_ram_used%
#

though PAPI is a Spigot plugin

#

proxy plugins can't access it, unless they have some kind of bridge like TAB or BTLP

dire barn
#

I already use %server_tps% and others. Those are only showing the proxy.

junior musk
#

Proxies don't have TPS

#

so it's definitely showing your server's

dire barn
#

I stand corrected. I apologize.
I'm thinking of the RAM.

junior musk
#

which placeholder are you using?

dire barn
#

Which...for some reason isn't server_

junior musk
#

and which plugin are you using even

dire barn
#

&fRAM: &b%memory-used%&7/&b%memory-max%'

junior musk
#

so TAB

#

did you install the TAB-Bridge plugin on your backends?

dire barn
#

I'm using a pre-built tab config, which is not exactly the best formatted

junior musk
dire barn
#

Yes I have tab brdge on the back-end.
I'm working on the format on a stand-alone server, and moving the config to the proxy to see what it looks like on a back-end server. I have to do this because there doesn't appear to be a tab reload command on the proxy

junior musk
dire barn
#

yea, I'm just made of stupid today.
I left off at two in the morning, and started again just a moment ago. I haven't had my morning spicy bean juice yet.
Sorry for wasting your time, Tanguygab

junior musk
#

dw

dire barn
#

Okay, another question.
I've been struggling to get the server time zone using %server_time_h:mm a z%, but is only shows UTC.
Is there anyone that knows the simple date format well enough to suggest how I can get it to show the time for the server's physical location (In this case, Eastern)

#

I think I know why it's showing UTC.
Because the host has the server's time set to UTC. /)_-

tacit geyser
#

is there a placeholder for mob killed/block mined since I only found the statistic and it only gives me 0

dire barn
dire barn
#

It would give a number if it's greater than 0.

#

Try /papi parse me %statistic_mine_block:grass_block% and see.
Then mine a grass block (in survival) and check again

tribal pagoda
#

How can i get sum of armor?

dire barn
dire barn
#

Do you have the extension installed?
/papi ecloud download Statistic

tender vaporBOT
muted gulch
#

Are there any WORKING placeholders that can check if PvP is enabled in a world?

#

the %world_canpvp_<world>% placeholder always returns false for me

tacit geyser
#

still doesnt work

desert grove
#

Hi, I'm looking for a deathcounter

#

Was asking in TAB Plugin and they delivered me here

soft saddle
#

Hi, is there some event that is triggered when some placeholder changes value?

rustic prairie
#

@junior musk How do i display is top

#

with sup sb place holders

rustic prairie
junior musk
#

thanks for the double useless ping

ocean iron
#

Hello ! I have a big problem... My boss bar use a custom placeholder created with JSextension but, I think I have a memory leak.... https://prnt.sc/kWDtEOZu__Ys (The RAM is cap at 15GiB in my ptero but when I use my placeholder, the RAM continue to increase)

#
function food() {
    return Math.round(parseInt('%player_food_level%')/2);
}
food();
#

It cause my server a crash when It hit my pterodactyl server memory limit...

tribal pagoda
#

How can i sum 4 variables?

tacit geyser
#

is there a placeholder for mob killed/block mined since I only found the statistic and it only gives me 0
I already downloaded the papi for the statistic and I already parsed it, still doesnt work.

soft saddle
#

Hi, is there some event that is triggered when some placeholder changes value?

junior musk
#

nope

#

you have to run a repeating task to constantly check if a placeholder changed

astral canopy
#

can someone help me with worldguard regions? there are 2 regions

#

and i want to show like navigation

tribal pagoda
#

How to get sum of armor? %armor_amount_chestplate% return 1 idk why

#

🥺

vivid sparrow
#

What

#

Oh damn, that expansion is very old pepe_kek

ocean iron
#

Hello ! I have a big problem... My boss bar use a custom placeholder created with JSextension but, I think I have a memory leak.... https://prnt.sc/kWDtEOZu__Ys (The RAM is cap at 15GiB in my ptero but when I use my placeholder, the RAM continue to increase)

function food() {
    return Math.round(parseInt('%player_food_level%')/2);
}
food();```
It cause my server a crash when It hit my pterodactyl server memory limit...
austere hawk
#

how can i edit the mine_block in statistic with command?

junior musk
austere hawk
junior musk
#

there's no command for it

austere hawk
#

so how can i edit this

#

in server files?

junior musk
#

you either have to manually go in your main world's folder and into the stats folder or find someone to make you a plugin that adds commands to do that, unless one already exists

void grove
#

does anyone know if there is a way to show textures of items in chat? maybe using placeholders?

#

so use minecraft vanilla textures as a font

obsidian egret
#

like how can i display a scoreaboard on a placeholder?

vivid sparrow
#

what

obsidian egret
#

wait lemme show u

#

yeah i want to display it on a plugin called simple score

#

it does a scoreboard sidebar next to ur screen

#

but i dont want to display my coins on my action bar

#

sorry i didnt mention what was i displaying earlier

#

yeah so i want to display it on my scoreboard

#

is there a place holder for it?

#

and plus the scoreboard plugin is called simplescore

vivid sparrow
#

use the placeholder for coins in the scoreboard instead of the action bar, idk what the problem is tbh

obsidian egret
#

how can i use coins

#

for example can i add 100 coins if someone kills another person

#

or can i add it manually

#

this?

#

%simplecoinsapi_coins%

#

EssentialsX?

junior musk
tacit geyser
#

is there a placeholder for mob killed/block mined since I only found the statistic and it only gives me 0
I already downloaded the papi for the statistic and I already parsed it, still doesnt work.

hardy bay
#

Hello quick question does somebody know a Placeholder that tells in which player slot is a Elytra

mellow talon
#

sir

#

where can i get

#

open source placeholder of Player.

plush dove
#

how would you go about getting the nbt int of an item with checkitem?

#

for example %checkitem_getinfo:0_nbtstrings:PublicBukkitValues..executableitems:ei-id=% would return the executableitems ei-id id

dire barn
#

Where does %player_first_played_formatted% pull its information from? I ask this, because that placeholder is reporting that I joined my dev server 23/06/24 (June 23, 2024)

#

I deleted the playerdata thinking it was taking information from the file creation date...
Now it's reporting that I joined for the first time on 02/46/24 6_o

date_format: dd/mm/yy
Changed it to dd/MM/yy and that appears to have fixed it...

Edit:
For anyone searching for this in the future, it does indeed pull the data for this placeholder from the file creation date for the user's playerdata within the overworld folder.

junior musk
#

mm is for minutes😅

dire barn
#

I realised that after, I just wasn't going to say anything...

#

Awe, no gif for me

rain rock
#

How can show a different text in deluxe menu, when the placeholder is empty?

dire barn
dire barn
#

Who can I talk to from TeamVK, about the Enchantment extension throwing an error?

idle pumice
torpid mantle
#

Hello everyone. Please tell me how to display the value of online players from multiple servers
I suppose it should be like this

%math_bungee_grief-1+bungee_grief-2+bungee_grief-3%

there are several modes and I want to display the general online mode and in the mode there are several servers

torpid mantle
#

I have found a solution
%math_0_{bungee_grief-1}+{bungee_grief-2}+{bungee_grief-3}%

dire barn
vivid sparrow
dire barn
#

I swear I searched polymart... 🤔
I probably had a typo.

#

Thank you Gaby

pearl flicker
#

Hey, does someone mind helping me out on why I am getting an error. Still new too this stuff.
http://luigical.me/images/IryqjWnTRo.txt

I want to eventually make it so I can do something like %javascript_enchanthand_LOOT_BONUS_BLOCKS% and it would give me the level of the fortune enchant, but for now im not even doing variables and just hard coding this in.

Here is the error I am getting, I tried it without the Enchantment. as well, but that didn't seem to change anything, appreciate your time! http://luigical.me/images/Screenshot_03_03_nZGZn5L5uZ.png

warm topaz
pearl flicker
#

Its just built in...

#

All this time, for not.

#

Thank you, appreciate the help

rustic prairie
#

whats the date api?

#

for score board

#

and have it est time

quaint crane
#

hello, is there a way to getting player's nbt value or bool?
i need to parse and print local player's nbt value
{"ForgeCaps":{"epicstat:player_variables":{"player_lvl"}}}
someone tell me is it possible?

bronze shell
#

Is there a placeholder for max food value of a player? i cannot find anything like that

#

i know the max food value by default is 20 but i'd rather have a responsive value in case the player gets more/less food points by any means

junior musk
#

is it even possible to change the max food? o_O

bronze shell
#

i... don't know tbh but it doesn't sound like a far fetched possibility

junior musk
#

it's not

bronze shell
#

really?

junior musk
#

just checked and there's no maxfood in the Player class, only foodlevel & maxhealth

bronze shell
#

foodlevel being the current food point of the player i suppose

junior musk
#

yeah

bronze shell
#

alright, thanks

#

and just in case, you don't know about any placeholder for burning player and frozen player? 😭

junior musk
#

I don't see any

junior musk
#

lul

bronze shell
#

ah yeah, no images

junior musk
#

more placeholders for my Player-J17 expansion :D

bronze shell
#

ayooooooo

#

that would be awesome dude

#

i'm making a custom hud and i wanted to change the appearance of the health bar depending on the player status

#

i did wither, poison and absorption already

whole burrow
obsidian egret
#

how can i use this %unicode_<value>%

#

its not working when i use it on my simplscore plugin

mint fable
#

@obsidian egret it's just a number

#

the value

obsidian egret
#

\uE001?

mint fable
#

that's not the right format, no

#

Example %unicode_1000% would show က

obsidian egret
#

then whats the correct format?

mint fable
#

just a number

obsidian egret
mint fable
#

what is that

#

is the hex 0xE001?

obsidian egret
#

the custom unicode

#

not sure

mint fable
#

is that it?

#

because then you just put E001

obsidian egret
#

wait what

#

i dont understand

mint fable
#

the number you put is E001

#

%unicode_E001%

obsidian egret
#

well its a custom font

mint fable
#

yes

#

i figured

#

Try it

#

/papi parse me %unicode_E001%

obsidian egret
#

so this?

mint fable
#

E001 is the hex value for the unicode character that is replaced by your custom font

obsidian egret
#

nope

#

still doesnt work

#

oh wait

#

it worked

#

but the color isnt right

#

oh nvm thanks

mint fable
#

👍

obsidian egret
#

i figured it out too

mint fable
#

ya, gotta color it white

obsidian egret
#

alr thanks

mint fable
#

np

#

i'll change value to hex value

#

so you don't have to read the expansion description to see

hot cedar
#

hi

#

@warm plover

#

im sorry to ask here

#

but i cant write in general plugins

warm plover
bronze shell
#

@junior musk when you updated j17 with the placeholder we talked about yesterday, please do not hesitate to ping me, i'm highly interested ahah
and thank you, of course!!

junior musk
#

I'll try later

bronze shell
#

🙏

junior musk
bronze shell
#

bless you!!!!!

#

i cant even write bless you in caps omg

dim sapphire
#

I need a help

#

I downloaded placeholder api 2.11.5 but it's not working

#

I use in scoreboard but not working

#

😕

somber marten
#

Does someone know a placeholder to remove , & . from a placeholder

#

Right now if i parse the placeholder i get the first thing i need the second thing

100,000 -> 100000 (What i need)

But I want it to be clean to use in deluxe menus

bronze shell
#

and then in papi config once you have installed the expansion you create a part like this :

  string:
    replacements:
      coma:
        ',': ''
junior musk
#

otherwise, you can use the formatter expansion of you don't want to do it from config
%formatter_text_replace_,__{placeholder}%

bronze shell
#

yeah if it's just one char it's probably simpler

#

string is better to format multiple character differently i guess

junior musk
#

yeah

storm sorrel
#

Hey, I have a problem.. I installed PlaceHolderAPI 2.11.5 but when I download the expansions (/papi ecloud download), they install but when I do /papi reload nothing happens and the expansions are not active yet they are in the expansions folder. I tried to restart the server but nothing changed and even reinstalled the plugin either..

#

In the console no error is displayed

tender vaporBOT
mint fable
#

@storm sorrel send that over this

storm sorrel
mint fable
#

what did you try to download

storm sorrel
#

Player, Bungee, Statistic, Vault

mint fable
#

can you send a log where you are trying that?

#

as well as a papi dump if you can

#

?papi-dump

tender vaporBOT
storm sorrel
#

papi dump not working in-game and in console

proven bronze
#

is there a placeholder for a players current biome?

junior musk
#

%player_biome%

mint fable
#

can you send a list of the expansions in your expansions folder? @storm sorrel

#

or try deleting them all and redownloading what you need

#

easier that way

#

i believe one of the expansions you have is causing all external expansions to fail

storm sorrel
#
  • Expansion-bungee.jar
  • Expansion-player.jar
  • Expansion-statistic.jar
  • Expansion-vault.jar

I tried to delete the extensions and download them 1 by 1, the download for each is done correctly in the expansions folder, it is only by doing /papi reload that the extensions are not activated (still even after restarting )

mint fable
#

hmm

#

try deleting them all and maybe manually downloading them

#

@storm sorrel

storm sorrel
#

I put it in the expansions folder but nothing changes, no placeholder is displayed, /papi reload and /papi dump do not return anything

mint fable
#

ah so

#

hmm

#

what if you disabled the cloud in the config and restarted

#

might be having issues

#

very odd

#

oh, there is also a debug option if you want to set that to true

#

sorry, just noticed

storm sorrel
#

No placeholders are loading (they are still in the expansions folder but still the same problem) x), I'm sorry, this is also the first time I have a problem with the plugin

storm sorrel
mint fable
#

delete all the expansions too

#

then send another startup log

#

?startuplog

tender vaporBOT
austere hawk
#

Is there a way to use the output of a command as part of a placeholder, say I wanted to do a calculation %math_<whatever>{data get entity @e[type=minecraft:potion,distance=..4,limit=1] Motion[0]}%

mint fable
#

not that I'm aware of @austere hawk

austere hawk
#

its okay you can tell me to just write my own plugin lmao

mint fable
#

what?

austere hawk
#

im just trying to do the most overcomplicated things that would prob be fixed if i just broke down and made my own plugin haha

mint fable
#

An expansion like that* doesn't currently exist, you can create your own if you would like

#

but not something we'd put on the ecloud

#

*An expansion that parses commands and returns the response

#

i would be very careful if you create that expansion though

#

seems like a very high security risk

mint fable
storm sorrel
mint fable
#

weird issue

#

idk what the cause would be

grizzled heron
#

i was wondering if there was a way to call a username from an offline player.
Im setting up a hologram to call a rank prefix, and i found a placeholder from "otherplayers" to call a username. But when that player goes offline the tag dissapears.

also is there a way to call only a group prefix?

mint fable
#

you can't get those placeholders for offline users, no

#

once the user goes offline the data that stores their rank/permission information is uncached

solar scroll
#

Hey I use Math expression with PlaceholderAPI, I know how to make the precision change according to what I need but I'd like to make it adapt itself if it finds a 0 after a comma. For example, if it returns 0.0100, I'd like it to automatically return 0.01 without having to specify it in the Papi formula.
%math_3:_{deluxemenus_meta_SELL_STRING}*{deluxemenus_meta_AMOUNT_INTEGER}%

worthy dove
#

I need help guys. How are you doing? Ive been 3 days searching for a solution to this problem: I wanted to divide %vault_eco_balance% by 1000. So that the product always is shown divided by 1000, so i add 3 decimal places. Thanks!

worthy dove
#

No

#

I don’t understand anything about his idea unfortunely

#

What is the code for a division ?

storm sorrel
storm sorrel
#

I found the problem! When I have the EssentialsX plugin (stable version or build), PlaceholderAPI no longer works

mint fable
#

That is very interesting…

#

I’m at work right now, but intrigued

storm sorrel
#

Don't worry, I'll check with EssentialsX support too

deft wasp
#

donno how well it'd be if it had symbols in the string

#

/papi parse DaisyEseyad %checkitem_nbtstrings:SkullOwner:={Name:"Owo"}%
/papi parse DaisyEseyad %checkitem_nbtstrings:SkullOwner={Name:"Owo"}% neither of those work

#

/papi parse DaisyEseyad %checkitem_nbtstrings:SkullOwner..Properties..textures;Value=eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDMyZjg1MGFmZmFjNmJiNzQ5Y2JiZGJhYjQzZTg1MzQ2YWE5YzJjNjA5MGMzYzYxNmJmMzY4NmQzZmY4MjlhNSJ9fX0=% always returns "no"

#

also triied : and .. where the ; is

mint fable
#

i can't remember if skullowner info can be checked/compared

#

Could you hold the item and type /data get entity @s SelectedItem?

#

Send an image of the response

tender vaporBOT
mint fable
#

@deft wasp

mint fable
#

I noticed you had a ; instead of ..

#

Also, you might need to specify the material

#

so if that still doesn't work, add the material and try

#

I'm not positive it will work

#

if all the above doesn't work, try both methods again with textures....Value instead of textures..Value

deft wasp
#

/papi parse DaisyEseyad %checkitem_mat=PLAYER_HEAD,nbtstrings:SkullOwner..Properties..textures..Value=eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDMyZjg1MGFmZmFjNmJiNzQ5Y2JiZGJhYjQzZTg1MzQ2YWE5YzJjNjA5MGMzYzYxNmJmMzY4NmQzZmY4MjlhNSJ9fX0=%
/papi parse DaisyEseyad %checkitem_mat=PLAYER_HEAD,nbtstrings:SkullOwner..Properties..textures....Value=eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDMyZjg1MGFmZmFjNmJiNzQ5Y2JiZGJhYjQzZTg1MzQ2YWE5YzJjNjA5MGMzYzYxNmJmMzY4NmQzZmY4MjlhNSJ9fX0=%
both returned "no"

#

fixed mat=PL to mat:PL and still both are "no"

#

i think it only works with nested compounds, i looked at the github source code

mint fable
#

i was afraid of this

#

Yeah, not really double nested

#

like the [{ i guess

#

and it's still in the issues as a feature request :L

deft wasp
#

ahh

mint fable
#

hmm

#

let me see

deft wasp
#

could allow for something..0..something or even something..*..something

#

skbee said there was an issue implementing numeric lists as some nbt lists are weird. I am not sure what they meant by that tho.

mint fable
#

idk about the nbt

#

but for skulls specifically was my plan

#

waitt

#

oh that's odd

#

it looks like i was going to add support for hdb but never did

deft wasp
#

would be interesting for it to be its own modifier

#

headtexture:<value>,<uuid>,<signature>
noteblocksound:<sound>

#

also color:<color> for armor and potions (and firework star)

mint fable
#

hmm i prob have to take time to do this properly for heads

#

that's always the issue

deft wasp
#

ahh

#

ok

mint fable
#

seems complicated

deft wasp
#

yeah i blame bukkit for not giving an easy path to do player head stuff

broken cipher
#

Hello
Related to math papi expansion

I want to parse player_ping papi placeholder into it and using math to make sure it will only show 3 digits, so if someone has ping of 1500 it will show 150 (this is just rough example of what i need it to do)

mint fable
#

Would you want to show 999 or something if it's 1000 or more?

#

or just truncate it

broken cipher
broken cipher
mint fable
#

yeah that was my plan

#

but why no changeoutput?

broken cipher
#

because i will have too many nested placeholders if i use it

mint fable
#

you can do nested placeholders with utils expansion

broken cipher
#

i know i know, i just don't need changeoutput in this situation

mint fable
#

but my other plan is using string expansion

#

so is that going to be an issue?

broken cipher
#

i would actually use math for otherp laceholders but i just mentioned player_ping as example to better explain

mint fable
#

I don't really know what you want

broken cipher
#

ok so, this could be more simple

#

if player_ping placeholder goes above 999, i want to have it fixed at 3 digits (and max is 999)

#

nothing else than that, just capping to 3 digits

mint fable
#

%string_substring_0,2_{player_ping}%

broken cipher
#

because sometimes it happens that my players have ping of 214... int max

mint fable
#

Hold on

broken cipher
#

or negative int max (idk ok)

mint fable
#

I am asking what you want

#

not what is simple for me to do

broken cipher
#

i did not say that

mint fable
#

we can use changeoutput for the 999 thing, or just truncate it

broken cipher
#

i need this

broken cipher
mint fable
#

well there are 2 options there

#

do you have something else in mind?

#

%changeoutput_>=_input:{player_ping}_matcher:1000_ifmatch:999_else:{player_ping}%

#

that is the changeoutput one

mint fable
broken cipher
#

what would be more efficient, changeoutput or string in this case

#

i don't really care if player has 1500 ping at it shows 150

mint fable
#

I can't really say, changeoutput is coded in kotlin

#

it looks real efficient

#

but you're parsing ping twice

#

so

#

string then

#

and using math would be less efficient than both

broken cipher
#

oh wow

#

I'll try with string, thanks for both, i tested both

jolly field
#

hi is it possible to do with java script extension like i got a placeholder here, %pinger_players_testplugins.com:25565% this returns the amount of players in a server, and this %online% returns the current amount of players in the server we are, so possible we could use java script to combine both of the placeholders like if there are 100 players in %pinger_players_testplugins.com:25565% and 20 in the server we are rn, itll show 120

warm plover
#

%math_(pinger_1)+(pinger_2)% etc

mint fable
#

%math_{pinger_players_testplugins.com:25565}+%online%%
would work if %online% is parsed before papi placeholders, which I feel like it would be

#

if it isn't, then you can also use the server expansion for the local players

jolly field
mint fable
#

also you might want %math_0:_...

#

for 0 decimals

jolly field
#

doesnt seems to be working

#

okay nvm

#

fixed, thanks

viral orbit
#

hi, is anybody aware of any placeholders that can be used to display active effect timers? for example, having it display a haste effect on the action bar etc

night vale
#

How can I delete old statistics? I want it to go back to 0

worthy dove
#

Guys, im trying to divide the %vault_eco_balance% by 1000. But its not working, this is my code: ' &7%vault_eco_balance%$ %math_/1000%'

#

What is the right code? Thanks

#

&7%math_1:_{%vaulteco_balance%}/{1000}

#

not working neither

junior musk
#

%math_3_{vault_eco_balance}/1000%

worthy dove
#

Thanks!!! amazing

#

life saver

#

%math_3_{essentials_baltop_balance_fixed}/1000%$ is not working

#

idk why i did exactly the same, this is for a leaderboard on decent holograms

#

This is the full code line:

#
  • content: '&a%math_3_{essentials_baltop_balance_fixed}/1000%$ &6- %essentials_baltop_player_1%'
junior musk
#

aren't you missing a 1 at the end of the baltop placeholder?

#

yeah, you didn't specify the rank 1

#

for the baltop balance fixed placeholder

worthy dove
#

yep ur right

#

ur god

#

amazing guy

worthy dove
#

sorry for disturbing again, but the following line of code doesnt work on a holgram, its simply showing the letters, so something not working

#
  • content: '&a%math_3_{%vault_eco_balance%}/1000%$'
#

I just want a hologram to show the players balance

#

And i have vault installed on PAPI

junior musk
#

what's your Hologram plugin?

#

and what does it show ingame?

worthy dove
#

Decent Holograms

#

%math_3_{%vault_eco_balance%}/1000%$

junior musk
#

does it work in chat if you run /papi parse me %math_3_{%vault_eco_balance%}/1000%$ ?

worthy dove
#

with underscores before and after the 3, but it doesnt send on discord idk why

junior musk
#

oh wait

#

remove the inner %%

worthy dove
#

ok

junior musk
#

%math_3_{vault_eco_balance}/1000%

worthy dove
#

Done

#

ur right

#

Thanks man!!

junior musk
tardy epoch
#

hello, why is /papi ecloud download skript not working?

#

it is in the placeholders list

junior musk
#

it's not verified

#

so it can only be downloaded manually

#

there's 4 of them for some reason, try one of them

tardy epoch
#

ty

mint fable
#

the one by blake is the right one

#

sadly can't use the -papi command though because the name is not the url

wet basinBOT
#

@mint fable Unknown expansion.

#

@junior musk Unknown expansion.

mint fable
#

if you click the link it doesn't go to the right place

#

:L

junior musk
#

ah right

#

because it's skippi

#

for some reason

mint fable
#

and it hasn't been changed since it's not really official

#

so

#

🤷‍♀️

mint fable
#

a custom faction plugin?

#

I thought I linked you the wiki

#

no, have you developed with java before?

#

what faction plugin?

#

ah, well

#

medievalfactions5 has placeholders

solar scroll
#

Hey ! For extension "ParseOther" the player need to be online ?
%parseother_unsafe_{guilds_master}_{luckperms_meta_guildcolor}%

#

Oh, thanks :/

junior musk
mint fable
#

that is a bit odd, yeah

junior musk
#

we had this discussion with Naethan 2 minutes ago lol

solar scroll
#

About that? x)

junior musk
solar scroll
#

Oh wow xD

junior musk
mint fable
#

he does say to reach out as well

junior musk
#

he is on GitHub ¯_(ツ)_/¯

#

ah, alright

mint fable
#

it's not even java

#

it's kotlin

#

so 🤷‍♀️

junior musk
#

kotlin kekw

solar scroll
#

If I understand correctly, after doing a few quick tests, I can't parse a player who isn't online, right?

junior musk
#

you can parse placeholders for offline players, but not all placeholders support offline players

#

in your case, the %deluxemenus_meta placeholder relies on a Spigot mechanic which does not support offline players

junior musk
#

so the placeholder therefore doesn't support offline players

#

so... yeah, can't parse it for someone who's offline

#

LuckPerms' meta placeholders can for example

#

wait actually

#

no nevermind, I think they can't either

solar scroll
#

No it's luckperm meta in my placeholder x)

junior musk
#

I remember trying it, and was like "oh hey, since LP can read meta of offline players with its commands, surely it works in placeholders!" and then got massively disappointed 🥲

solar scroll
#

Aha 🥲

#

I'd have to find a way to save a player's choice in a menu even if he's offline

junior musk
#

well, if you just want to store it and not display it, you can use LP's meta commands

mint fable
#

store it when online anytime, use when online this yep

junior musk
#

and then when you want to display it when he's online, use the meta placeholdere

mint fable
#

actually you can store it when offline too nvm

junior musk
#

yeah

#

just displaying can't be done when offline

solar scroll
#

Actually, I need something to come back, in my case it's a color to change the color of the guild name :/

#

%parseother_unsafe_{guilds_master}_{luckperms_meta_guildcolor}% = %parseother_unsafe_NASTOUH_&b%
In ChatControlRed &bGuildeName I think it's a goner and my whole project will fall apart from now on x)

sweet terrace
#

My placeholders dont seem to be working on citizens. I have the placeholder: %utils_parseother:[lDashi]_essentials_nickname% which should make it return the nickname i'm using. It does when /parse and I have both Utils and Essentials expansions installed but just doesn't work on my citizens

warm plover
#

Could be wrong

sweet terrace
#

i had it working before, but i did a fresh install of everything including essentials and papi and just copied my citizens save file over

#

not sure what is different

mint fable
#

did you have another plugin to add papi support to citizens?

junior musk
#

iirc it does support PAPI but only in holograms, not in npc names

#

not 100% sure

remote hemlock
#

Hello, how i can get player_time with placeholder api pls ?

#

like i want to know how many time a player spend on my server

junior musk
remote hemlock
spiral solar
#

Hello everyone. I really need help, I want to check if the 10 slot in the player's inventory is empty. What should %checkitem_getinfo:10% it be equal to in order to check an empty?

junior musk
#

%checkitem_getinfo:10_mat:%

#

check if it returns AIR

quaint stratus
#

where can i see all the place holders

#

Anyone help

quaint stratus
#

ty

quaint stratus
#

is there a place holder to show what is my play time

sharp bloom
quaint stratus
#

does this only shows hours and not days?

#

or does it show both

sharp bloom
quaint stratus
#

ok

sharp bloom
#

replace the hours with days if u want days

quaint stratus
#

i have a problem but i cant send a pic

tender vaporBOT
quaint stratus
#

nvm

#

bad indentation of a mapping entry (43:7)

40 | 3: ''
41 | 2: '&7» &6&1Hours Played'
42 | 1: ' &7%statistic_hours_played%'
43 | - '&7&m+----------------+'
------------^
44 | - '&7&m------------------'
45 |

#

this is the problem

#

.

sharp bloom
quaint stratus
#

idk how to tell

quaint stratus
sharp bloom
#

?paste

tender vaporBOT
sharp bloom
#

and send the link for it

quaint stratus
#

can i put pics in it

#

i rly cant explain without pics 🥲

sharp bloom
#

?imgur

tender vaporBOT
sharp bloom
#

make a papi expansion that hooks into a plugin, otherwise probably not possible 💀

#

since they dont have any placeholders regarding these info

plush saffron
#

kristopher