#placeholder-api

1 messages Ā· Page 53 of 1

crystal nebula
#

šŸ‘ awesome, thanks!

junior musk
#

you have an extra _

#

and what did you expect it to do?

crystal nebula
#

replace spaces with underscores

junior musk
#

you made it so a space would be replaced by nothing

#

ah

#

try \_

#

otherwise, you'll need to use the String expansion's %string_replaceCharacters placeholder

crystal nebula
#

Ok I'll try that

junior musk
#

/papi ecloud download String
/papi reload
-> <server folder>/plugins/PlaceholderAPI/config.yml

#

/papi reload
%string_replaceCharacters_underscore_Testing, 1, 2, 3%

lone sandal
#

https://ctrlv.cz/g8sxHello,

I would like to make some kind of placeholder to represent the slots on the server. Is it possible to do it somehow?

vivid sparrow
#

@lone sandal see the progress expansion

fringe parcel
#

hello, is it possible to use more than one placeholder in the change output?

like
%changeoutput_=_input:{checkitem_nbtstrings:PublicBukkitValues..executableitems:ei-id=itemId,amt:64_and_anotherplaceholderhere}_matcher:yes_ifmatch:message_else:message%

snow bolt
#

help pls

granite remnant
#

I've been out of the loop for quite some time, but I'm slowly getting back into Minecraft server building (just as a fun hobby for my wife and I to play.)

Server: 1.21.4 (Paper)
PAPI Version: 2.11.7-DEV-200

Essentially, I'm having an issue (likely post a server reboot, since my server reboots automatically at 3am), where the extensions are all de-registered. I'm forced to login to my server and manually re-registers all my extensions with /papi register %ext%.

I'm not quite sure why, perhaps it's a conflict, perhaps a consequence of the dev build I'm using? Not 100% sure.

Wondering if anyone has any advice on areas to troubleshoot. I'm going to read through my server logs to see if I can find anything else. If additional information is needed to troubleshoot, please let me know.

List of expansions:

01/27/2025  09:55 PM             1,019 Expansion-ascii.jar
01/27/2025  09:55 PM         1,427,604 Expansion-changeoutput.jar
02/04/2025  11:24 AM           190,256 Expansion-checkitem.jar
02/04/2025  11:24 AM            33,329 Expansion-formatter.jar
02/04/2025  11:24 AM             4,256 Expansion-griefprevention.jar
02/04/2025  11:24 AM             4,256 Expansion-healthbar.jar
01/27/2025  09:55 PM            18,961 Expansion-luckperms.jar
01/27/2025  09:55 PM            27,394 Expansion-mcmmo.jar
01/27/2025  09:55 PM             3,757 Expansion-multiverse.jar
02/04/2025  11:24 AM            22,302 Expansion-player.jar
02/04/2025  11:24 AM            20,218 Expansion-server.jar
01/27/2025  09:55 PM            12,034 Expansion-statistic.jar
02/04/2025  12:24 PM            10,873 Expansion-vault.jar
01/27/2025  09:55 PM             7,105 Expansion-world.jar
02/07/2025  01:35 PM               976 worldAliases.yml
01/27/2025  09:55 PM             2,788 WorldAliasExpansion-1.0.0.jar

Here is a pruned version of my server log, with every instance of PlaceholderAPI.

https://mclo.gs/hYU7OOj

snow bolt
#

help

wise rune
#

I can’t add my phone number even tho I deleted my account with the phone number in it, what to do

tardy kettle
#

TAB scoreboard won“t show essentials balance, the placeholder doest work

tender vaporBOT
tardy kettle
#

does anyone know the balance placeholder for essentials? I tried %essentials_baltop_balance_<rank>% but it gave me invalid ID

magic hawk
#

Does anyone know how to reset the data of placeholders forplayers? Ive tried deleting stats folder and more.

unique bronze
#

Trying to use changeoutput to change the output when nothing is returned by the placeholder from luckperms
%changeoutput_contains_input:{luckperms_group_expiry_time_byle}_matcher:_empty_ifmatch:nie posiadasz tej rangi_else:{luckperms_group_expiry_time_byle}%
%changeoutput_equals_input:{luckperms_group_expiry_time_vip}_matcher:_empty_ifmatch:nie posiadasz tej rangi_else:{luckperms_group_expiry_time_vip}%
but sadly if its empty when a user doesnt have a group applied it still returns nothing

halcyon warren
#

why does my %luckperms_prefix% or %vault_prefix% returns this?

#

the text with colour codes

#

and

#

not with colours?

#

&#3A6AE6&lį“&#2C8EEC&lį“”&#1DB2F3&lÉ“&#0FD5F9&lᓇ&#00F9FF&lŹ€&r &#00FFFF

#

it returns this

#

and my another rank is &7

#

and it still says the &7

vivid sparrow
#

It is up to the plugin displaying the placeholder to color it

halcyon warren
#

then idk the luckperms are weird then

#

:(

subtle gorge
#

Does anyone know why the %statistic_jump% placeholder doesn't work in 1.8?

#

Same for this placeholders: %statistic_walk_one_cm%

shut coral
#

hey! has anyone solved the %statistic_mine_block% double count issue? or is there no solution?

quartz orbit
#

is there a simple mspt placeholder? i know spark has one but i only need a single number, not multiple

inner shadow
marble crystal
#

Good evening everyone!

I would like to know how can we know the total points (playerpoints) the player has put on the store?

In my example I want to give a reward if the player puts 150€ on the server but the placeholder %playerpoint_points% is not possible

elder marsh
patent vale
#

I have some players who are seeing placeholders in their side menu instead of the values, but nobody else has had this problem. Anybody know how/where to start looking to fix it?

waxen shell
#

I know this message is from ages ago but, does this still work in 1.21.4 ? (I just tried the expansion but the death location placeholder doesn't seem to work for me... and It's the one I need 😭 )

junior musk
#

any errors?

#

it should still work

mossy tide
#
[18:26:54 WARN]: [PlaceholderAPI] There was an error in parsing the number string: .residencefly_max_seconds
[18:26:54 WARN]: [PlaceholderAPI] There was an error in parsing the number string: .residencefly_max_seconds
[18:26:54 WARN]: [PlaceholderAPI] There was an error in parsing the number string: .residencefly_max_seconds
[18:26:54 WARN]: [PlaceholderAPI] There was an error in parsing the number string: .residencefly_available_seconds
[18:26:54 WARN]: [PlaceholderAPI] There was an error in parsing the number string: .residencefly_available_seconds
[18:26:54 WARN]: [PlaceholderAPI] There was an error in parsing the number string: .residencefly_available_seconds

#

šŸ¤” what happened

lapis geode
junior musk
#

the 2 can be increased depending on how many times you want to reapply placeholders

lapis geode
#

awesome thanks

azure imp
#

for something like %objective_scoreposhigh_{playtime2}_{2}%
am i able to divide by 20 to get playtime in minutes for a hologram?

#

the normal playtime placeholder wasnt downloading

hollow socket
#

Hello all, i have plugin OneBlock :star: ItemsAdder & Oraxen blocks support :zap: and Placeholder %ob_lvl% for this doesn't work. Can you help me?

#

@idle coral

tender vaporBOT
fathom token
#

I need help with the placeholder api, so the placeholder never gave me problems, but it simply isn't detecting some placeholders, does anyone know what it could be?

tardy tartan
#

Hi Can someone help me, I would like to see if there is an placeholder that counts all crops harvested, I need this placeholder for Leaderboard stats

cold pasture
#

hello. Any idea why starting server I always get this error?

#

[17:19:23 WARN]: java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
[17:19:23 WARN]: at com.extendedclip.papi.expansion.server.ServerExpansion.<init>(ServerExpansion.java:60)
[17:19:23 WARN]: at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
[17:19:23 WARN]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
[17:19:23 WARN]: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
[17:19:23 WARN]: at PlaceholderAPI-2.11.6.jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:453)
[17:19:23 WARN]: at PlaceholderAPI-2.11.6.jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:173)

#

it started appearing from version 1.21.1

normal mountain
#

What %% value do I use to show the Essentials player balance on a scoreboard?

manic ingot
#

anyone know how to remove space from a placeholder have output like this:

3mo 2w 3d
warped mason
#

anyone know an alternative for checkitem? (need to check nbts in an item)

prime oracle
swift glen
#

i am getting a error

#

how can i fix it

vivid sparrow
#

Ok

valid sonnet
#

hi how do I display the amount of keys the player has, I use the plugin excellent crates.

fleet crow
#

what error, I can help you. bro.Aditya</>

vital ore
#

every time i reload papi i get the error "java.util.concurrent.CompletionException: invalid entry CRC (expected 0xadfcdef3 but got 0xbadd6385) (expansion file: /home/container/plugins/PlaceholderAPI/expansions/Expansion-playertime.jar)"

#

i also got it with the pinger expansion

#

it's doing it with every expansion

tardy tartan
#

Hello, I need an Placeholder for all crops harvested, also if anyone know how to give the top players points for each leaderboard section that would be great. I will also pay money if someone helps me to make this leaderboard system.

wicked mica
mint hazel
#

/papi ecloud download Attribute

#

that says attribute does not exists

#

someone can help with that?

mint hazel
#

nvm fixed it

tardy tartan
slate thunder
#

Hi, I want to put a variable inside a variable, but I don't know how to do it.

When I print img_luckperms_highest_group_by_weight_tag, it says luckperms_highest_group_by_weight_tag_NOT_FOUND.

I also tried utils_parse_img_luckperms_highest_group_by_weight_tag, but it still doesn't print.

Sorry, I'm using Google Translator.

junior musk
#

%utils_parse_img_{luckperms_highest_group_by_weight_tag}%

#

almost had it

#

make sure you do have the LP expansion (/papi ecloud download LuckPerms & /papi reload)

slate thunder
#

Thank you so so much!!!

tropic solstice
#

hello i just have a quick question is there a placholderapi expansion i have to download for factionsuuid to work the relation color is not working im using the correct format

marble crystal
#

If you have a solution 🄲🄲

pseudo gorge
#

how can i make papi display player count from another multiverse world

junior musk
pseudo gorge
zenith salmon
#

hello. its possible to calculate a sum of 2 placeholders using math?

dull blaze
junior musk
#

define "doesnt work"

junior musk
dull blaze
junior musk
#

?

dull blaze
#

I will understand well

junior musk
#

Well I'm the one that doesn't understand now lol

dull blaze
#

Is it possible to make a hologram that will display the number of players on another server? do you know? @junior musk

junior musk
#

you can use a plugin like DecentHolograms to do that

dull blaze
junior musk
#

%bungee_<server>%

dull blaze
#

ok, never mind, I reset the server and it fixed itself

fathom token
#

guys pls

#

i need help

tender vaporBOT
#

There is no time to wait! Ask your question @fathom token!

fathom token
#

with place holders

turbid gate
#

Hey! Are there any placeholders for the Typewriter plugin? I'm trying to retrieve the active and past quests in particular.
Typewriter is showing up in the active placeholder hook list when typing /papi list but whenever i try to run /papi ecloud placeholders Typewriter, it's saying "There is no expansion with the name: Typewriter

turbid gate
#

Any idea how i would be able to fetch those placeholders on a HTML website? Or is there no possible way to do that

gentle prawn
eager halo
#

hey, does anyone know how I can uninstall the ParkourExpansions addon from PlaceholderAPI?

spring wave
#

Heya.
iirc there was an expansion that let you return a string if a parsed placeholder returns a specific value?
We use a placeholder that returns true or false (pvp toggle plugin), but we want it to display "PvP On" if true and "PvP Off" if false, but I can't find the expansion.

#

Anybody remember what the expansion was, if any?

halcyon citrus
broken creek
#

Hey! im trying to make it so when "%oa_is_in_voicechat% is 1 to return šŸ”Š else return šŸ”‡, ive tried a couple of stuff but nothing has worked atp so im here..

broken creek
#

so stupid tbh

gentle prawn
#

I think you are not supposed to use the % when putting a placeholder inside another one

broken creek
#

or if u wanted to do like a %math% thing in there

#

u couldnt

gentle prawn
#

the thing inside the {} are other placeholders in that example

#

All arguments can be replaced with other placeholders, wrapped in {}

broken creek
#

hm

#

so instaid of % { and } ?

#

il try it

spring wave
golden trench
#

Anybody know if there is a placeholder that I can use to see how many people have joined my server? Like if somebody is the 85th person to ever join, a placeholder for the join message that says #85 for example

ancient vault
#

Hello!
Is it possible to load placeholders in a .js file from the Javascript extension?

#

bcs that doesnt work:'

function checkHome(position) {
    var homes = "%huskhomes_homes_list%";
    var homeList = homes.split(", ");
    if (homeList.length >= position) {
        return homeList[position - 1];
    } else {
        return "false";
    }
}

checkHome(1);
#

it just prints %huskhomes_homes_list%

tawny kindle
#

in the Items Edit ?...

#

in item Lore

junior musk
junior musk
#

If it is, then maybe try with PlaceholderAPI.static.setPlaceholderes(BukkitPlayer, "%huskhomes_homes_list%"), though that shouldn't be needed

junior musk
valid crystal
#

Hello! Why does this happen when referring to statistics? Unknown statistic 'jumps', check https://helpch.at/docs/1.12.2/org/bukkit/Statistic.html for more info

junior musk
#

I mean, the message speaks for itself

valid crystal
#

But the Statistic extension is installed and is displayed correctly in the scoreboard

junior musk
#

I know the expansion is installed, otherwise you wouldn't have that warning in console.

#

The warning is telling you that you're using a placeholder with the jumps statistic, which doesn't exist

#

And you have the list of statistic linked as well where you can see that it's actually jump with no s

valid crystal
simple fog
junior musk
#

then you're not using the placeholder in the scoreboard but somewhere else

junior musk
valid crystal
junior musk
#

the issue is simply that you're using %statistic_jumps% in some plugin, which is an invalid placeholder (the correct placeholder is %statistic_jump% with no s)

valid crystal
#

I use %statistic_player_jumps%

junior musk
valid crystal
#

Thank you. I used %statistic_jump% and it works.

cursive narwhal
#

guys, do you have any ideea on how to pass an argument from the /papi parse to the js file?

cursive narwhal
final wyvern
#

hey is there a way to get the data from another user with a placeholder? like for example i would like to use %playtime_time%, but instead of showing my playtime i would like to get shown the one from the other user

golden trench
manic ingot
#

anyone know how to remove space from a placeholder have output like this:
3mo 2w 3d

final wyvern
bronze shell
#

@mint fable Hello! I'm currently making a custom party HUD using your parseother expansion. It works as intended but i'm having an issue and i wanted to know if you had any idea for a workaround edit 3 hours later: solution found

gentle cloak
#

so my server ran out of storage due to an issue, we resolved the issue (deleting no server data), now placeholder data is gone. ideas on how to fix it?

plain turret
#

Please, can anyone help me resolve this?

Server thread/WARN]: [PlaceholderAPI] Cannot load expansion vault due to an unknown issue. [16:56:37] [Server thread/WARN]: [PlaceholderAPI] Cannot load expansion luckperms due to a missing plugin: LuckPerms

warm topaz
#

do u have LuckPerms plugin?

plain turret
warm topaz
#

delete both files from the expansions folder and download them again

#

may be worth doing it with the plugins too

plain turret
austere hawk
#

help how to make extension

#

i want to have placeholder for pluginn that isnt in ecloud

smoky spoke
#
minecraft:diamond_sword[enchantments={levels: {"mythic:ender":1}}]

how to write a checkitem placeholder that checks for this custom enchant?

winter jacinth
#

Ik this is probably asked aton here but is it possible for placeholders in lores of items or would I need something besides placeholderAPI

austere hawk
#

help how to make extension
i want to have placeholder for pluginn that isnt in ecloud

candid bronze
#

Hi, Nice to meet you.

proven olive
#

hello, i have a velocty network and i want to display the playercount of my server "survival" in the server "lobby" using a hologram. Im not sure which placeholders to use. can someone help?

strong kettle
#

Hi Nice to meet you every body!

unreal orbit
#

My server is not able to contact "api.extendedclip.com" using port 80 (http) but can 443(https). Is this expected

#

Its causing issues as its saying 0 items found

tender vaporBOT
unreal orbit
gentle prawn
winter jacinth
#

lores are a default mc feature no? how could I make lore support placeholders

gentle prawn
#

are you talking about using placeholders in the normal vanilla give command or something

winter jacinth
#

if I use for example itemedit to set lore of a item lets say %player_name% it doesn't set it to a placeholder

#

that appears to be issue w placeholderapi not supporting lores not itemedit

smoky spoke
# sharp bloom the name of the level?

actually nvm
the goal really is to check if the custom enchant exists in the held item

the player placeholder worked just fine
%player_item_in_hand_level_MYTHIC:ENDER%

onyx iron
#

Hey, I wanted to ask a question. Im currently using the TAB plugin for my scoreboard and wanted to know if theres a way to make it so if a player isn't in a town, the placeholder would display "None"
It is now set as:
- 'Town: %townyadvanced_town%'
If a player is in the town, it works fine, but if a player is not in a town, It just remains blank. I wanted to know if theres a way so if a player isnt in a town, the placeholder would read out "None"

austere hawk
#

Im getting this: 0 placeholder hook(s) registered!


    private static ICraftTokens plugin;

    public PlaceholderAPIHook(ICraftTokens plugin){
        this.plugin=plugin;
    }

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

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

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

    @Override
    public String onPlaceholderRequest(Player player,String params){
        if (params.equalsIgnoreCase("bal_survival")){
            return String.valueOf(getters.getBalance(player,"survival"));
        }

        return null;
    }
}```
and ive registed in my main: ```if(Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            PlaceholderAPIHook = new PlaceholderAPIHook(this);
            getLogger().info("Placeholder API and Hooks enabled too.");
        }```
i get the logger.info in the console but the hooks arent avaliable :/
junior musk
#

you have to call the register method on your expansion instance

austere hawk
#

I did. Still nothing

junior musk
#

send your logs

#

?paste

tender vaporBOT
austere hawk
#

There’s no errors in the logs

junior musk
#

not looking for errors, looking for your log message and the ones that come before

austere hawk
#

Okay I’ll start the server up now paste the log

junior musk
#

sorry, went to bed
from what I can see, the expansion loads correctly
is it not showing in /papi list?

#

which placeholder did you use and where? (as in, in which plugin)

austere hawk
#

oh its working now :/

#

thanks @junior musk dont k what happened but its working now haha

desert depot
#

please

vivid sparrow
#

Why dont you ask them lol

stuck iron
#

hey I have a problem when I join my server in Minecraft versions below 1.20.6 the placeholders don't appear. WHY?

tropic otter
#

anyone know of a way to shorten a placeholder expression to its own placeholder? i need to convert this:
%changeoutput_>_input:{tm_tick}_matcher:12699_ifmatch:{changeoutput_<_input:{tm_tick}_matcher:23300_ifmatch:true_else:false}_else:false%
into this:
%is_night%
i just need this in a context, but the way contexts are evaluated doesnt give the ability to include placeholders within placeholders (as far as im aware). the expression always evals to false}_else:false when trying via lp contexts, but using the papi test feature it returns true/false

sage marsh
#

I have this placeholder:
%string_substring_{string_lastIndexOf_{luckperms_prefix}_&#}_{luckperms_prefix}%
I was wondering if anyone could tell me how to do conditions (if-else) in papi? I.e. if the lastIndexOf evaluates to -1 the whole placeholder should evaluate to ?

solar scroll
#

Hey! I would like my argument "player" to work in this "requirement" section input

menu_title: 'Profile'
register_command: true
open_command:
  - profile
args:
- player
size: 36

items:
  isonline:
    display_name: "&aConnectƩ"
    material: lime_dye
    slot: 9
    priority: 2
    view_requirement:
      requirements:
        isonline:
          type: string equals
          input: "%parseother_{player}_{player_online}%"
          output: "yes"
#

I have this error in my console

[20:21:41 WARN]: [DeluxeMenus] Plugin DeluxeMenus v1.14.0-Release generated an exception while executing task 1122
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
        at ParseOtherExpansion.onRequest(ParseOtherExpansion.java:40) ~[?:?]
        at PlaceholderAPI-2.11.6 (5).jar/me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.6 (5).jar:?]
        at PlaceholderAPI-2.11.6 (5).jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.6 (5).jar:?]
        at DeluxeMenus-1.14.0-Release (6).jar/com.extendedclip.deluxemenus.menu.MenuHolder.setPlaceholders(MenuHolder.java:102) ~[DeluxeMenus-1.14.0-Release (6).jar:?]
        at DeluxeMenus-1.14.0-Release (6).jar/com.extendedclip.deluxemenus.requirement.InputResultRequirement.evaluate(InputResultRequirement.java:21) ~[DeluxeMenus-1.14.0-Release (6).jar:?]
        at DeluxeMenus-1.14.0-Release (6).jar/com.extendedclip.deluxemenus.requirement.RequirementList.evaluate(RequirementList.java:21) ~[DeluxeMenus-1.14.0-Release (6).jar:?]
        at DeluxeMenus-1.14.0-Release (6).jar/com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$5(Menu.java:378) ~[DeluxeMenus-1.14.0-Release (6).jar:?]
        at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:78) ~[paper-1.21.4.jar:1.21.4-177-e5a8ee8]
        at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.21.4.jar:1.21.4-177-e5a8ee8]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.21.4.jar:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
rare sky
#

hello

#

        1:
          type: ">="
          input: "%luckperms_check_permission_essentials.warps.nether%"
          output: 1
          deny_commands:
            - "[message] §f &8Ā» &cƖnce Netherı AƧmalısın!"```

I want to query permissions using changeoutput, I did it this way but it didn't work. I couldn't figure out what to write in the matcher section, I read your wiki but didn't understand. Could you please help me? I really need it.
#

Note: I want to query the permission "essentials.warps.nether."

#

@sharp jay

tender vaporBOT
iron quest
#

i want to create a menu that displays all users groups in a track (luckperms groups)

so like it shows the jobs they have on that track in a list

Jobs track:

  • group 1
  • group 2
#

is it possible with placeholderapi itself or would i need to create/add another plugin to do this

mint hazel
#

Attribute¶
papi ecloud download Attribute

Adds placeholders to access Attributes. (Minecraft wiki)
The expansion can be used only on 1.9+

#

/papi ecloud download Attribute does not work

junior musk
rare sky
# junior musk https://api.extendedclip.com/expansions/attribute

        1:
          type: ">="
          input: "%luckperms_check_permission_essentials.warps.nether%"
          output: 1
          deny_commands:
            - "[message] §f &8Ā» &cƖnce Netherı AƧmalısın!"```

I want to query permissions using changeoutput, I did it this way but it didn't work. I couldn't figure out what to write in the matcher section, I read your wiki but didn't understand. Could you please help me? I really need it.
#

Note: I want to query the permission "essentials.warps.nether."

junior musk
#

I'm pretty sure that LuckPerms placeholder returns yes/no and not true nor 1

rare sky
# junior musk I'm pretty sure that LuckPerms placeholder returns yes/no and not true nor 1

I see, you changed it to "yes" but it still didn’t work. You can’t figure out what to do, and you really need help. Please share your current code so we can find and fix the issue together!

"%changeoutput_>=_input:{luckperms_check_permission_essentials.warps.nether}_matcher:yes_ifmatch:&aāœ”_else:&c✘% &fNether AƧmalısın"

          type: ">="
          input: "%luckperms_check_permission_essentials.warps.nether%"
          output: yes
          deny_commands:
            - "[message] §f &8Ā» &cƖnce Netherı AƧmalısın!"```
junior musk
#

replace ">=" by string equals

#

and put yes in "quotes" in the requirement

rare sky
red reef
#

Hello, I want to create a thermometer item, which will change its texture somehow using placeholder %rs_temperature% (from realistic seasons plugin). But I don't know how to do it, the only thing I can think of is running "/item modify" command on each slot and modifying item's data. But this would be very computationally expensive.
Is there any placeholder which is able to modify item located anywhere in player's inventory without extreme calculation cost?
Maybe there's an easier way to achieve this, like some tag-related mechanic in resource-pack that will change item's texture completely client-side?

turbid tide
winter jacinth
static robin
#

how can i use an placeholder but for an player, like as an example %statistic_hours_played_%player_displayname%?

rocky lark
#

do you use ajleaderboard for the placeholder?

static robin
#

to who goes this question?

rocky lark
#

you

static robin
#

no

#

i only want to know how i can a placeholder inside a placeholder

rocky lark
#

you should use ajleaderboard and add statistic_play_time_displayname

#

there is no other way afaik

static robin
#

why i should use another plugin?

#

if there is no expression.. wow

rocky lark
#

placeholderAPI allows you to use the placeholders and download their builds from ecloud

#

ajleaderboard allows you to make custom placeholders

static robin
#

i am using skript for making custom placeholders.

rocky lark
#

i may be wrong, you can ask someone else too

rocky lark
#

but you still can`t do placeholder in another placeholder

rocky lark
winter jacinth
#

rip

strong kettle
#

Hi everyone! I'm a Help-Chat fan and looking for someone to work with on a freelance project. I plan to donate to this server and share it with others.
Does anyone know the best way to donate? I'd like to hear from someone who has donated before.
If you like Help-Chat and want to work with us, you don't need any experience or technical knowledge. Let's connect and build something great!

serene jackal
#

Hi, is soon will papi support folia?

rapid bobcat
#

Is there any place holder to return how many of a certain block a player has in their inventory?

prime oracle
#

Guys how do i use placeholderapi on skript.

command /erankup:
permission: op
trigger:
# Fetch the highest group by weight using PlaceholderAPI
set {_rank} to placeholder "%luckperms_highest_group_by_weight%"
execute console command "lp user %player% parent set {_rank}"
wait 0.5 seconds
execute console command "lp user %player% promote rankup"

#

nvm j got it

#

nvm i dont

civic torrent
#

how to download papi ecloud download interactive chat

bold merlin
#

anyone have any issues with PAPI on 1.21.4 and the Eco plugins EcoBits specifically

topaz field
#

Anyone know how to make MSPT %server:mspt% show with decimal numbers?

serene jackal
warm topaz
serene jackal
#

okay, i found it, it's works

cinder orchid
#
%math_1-20%%

how does it work to make a percentage in a placeholder

austere hawk
cinder orchid
#

thx

celest frost
#

Hi there
everyone I have a plugin that doesnt take @p in its syntax for example I cant use : /samplecommand @p
if i install Placeholder API can i use it as /samplecommand %player% ?

or does it require that plugin to do something to be able to support this?

remote frigate
#

hi

#

how do i

#

make it so that deluxemenus uses placeholders from another plugin?

cunning charm
#

Maybe you should ask in the specific plugin’s support as there probably will be some equivalent of %player%

celest frost
#

I knew that there is nothing like @p in it wanted to bypass it somehow because they aren't planning on adding it

remote frigate
novel spear
#

Whats the best option to call a suspending kotlin function that returns the value for a placeholder extension? Is there a kotlin corountines "addon" or something like this?

austere hawk
honest mantle
#

hi, how do I get the current world time? I'm using %world_time_*{player_world}*% and it doesn't work...

remote frigate
honest mantle
manic stone
#

i need to return the data from a database query to a placeholderapi placeholder? how do i do it properly ? i wanted it be async if possible

junior musk
#

make your expansion extend Taskable, override the start() method and run a repeating task that fetches data from your db and caches them in a Map

#

then simply retrieve values from your Map in your onRequest method

dire bear
#
[14:39:28 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[14:39:28 WARN]: [PlaceholderAPI] [math] Placeholder: %math_3 + floor(3 * (%
[14:39:28 WARN]: [PlaceholderAPI] [math] Cause:       '3 + floor(3 * (' is not a valid Math expression.
[14:39:28 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[14:39:28 WARN]: [PlaceholderAPI] [math] Placeholder: %math_1 + floor(9 * (%
[14:39:28 WARN]: [PlaceholderAPI] [math] Cause:       '1 + floor(9 * (' is not a valid Math expression.
[14:39:28 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[14:39:28 WARN]: [PlaceholderAPI] [math] Placeholder: %math_1 + floor(6 * (%
[14:39:28 WARN]: [PlaceholderAPI] [math] Cause:       '1 + floor(6 * (' is not a valid Math expression.
[14:39:28 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[14:39:28 WARN]: [PlaceholderAPI] [math] Placeholder: %math_1 + floor(4 * (%
[14:39:28 WARN]: [PlaceholderAPI] [math] Cause:       '1 + floor(4 * (' is not a valid Math expression.
[14:39:28 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[14:39:28 WARN]: [PlaceholderAPI] [math] Placeholder: %math_1 + floor(3 * (%
[14:39:28 WARN]: [PlaceholderAPI] [math] Cause:       '1 + floor(3 * (' is not a valid Math expression.
[14:39:28 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[14:39:28 WARN]: [PlaceholderAPI] [math] Placeholder: %math_1 + floor(5 * (%
[14:39:28 WARN]: [PlaceholderAPI] [math] Cause:       '1 + floor(5 * (' is not a valid Math expression.


#

idea? šŸ˜‰

junior musk
#

you're trying to use a % inside a math placeholder

#

send the entire placeholder you're using

dire bear
#
    - "&5āžœ &7Schutz: &d%math_3 + floor * 3 * (%libreforge_item_level_cozy_boots% - 1) / 99%&7/&56"
    - "&5āžœ &7Haltbarkeit: &d%math_1 + floor * 9 * (%libreforge_item_level_cozy_boots% - 1) / 99%&7/&510"
    - "&5āžœ &7Dornen: &d%math_1 + floor * 4 * (%libreforge_item_level_cozy_boots% - 1) / 99%&7/&55"
    - "&5āžœ &7Federfall: &d%math_1 + floor * 5 * (%libreforge_item_level_cozy_boots% - 1) / 99%&7/&56"
    - "&5āžœ &7WasserlƤufer: &d%math_1 + floor * 3 * (%libreforge_item_level_cozy_boots% - 1) / 99%&7/&54"
    - "&5āžœ &7SeelenlƤufer: &d%math_1 + floor * 4 * (%libreforge_item_level_cozy_boots% - 1) / 99%&7/&55"
junior musk
#

replace the %% around the libreforge placeholders by {}

remote frigate
#

@junior musk

#

is it possible

#

to give the item itself on a menu to the player?

remote frigate
#

like

dire bear
#
    - "&5āžœ &7Schutz: &d%math_3 + floor * 3 * ({libreforge_item_level_cozy_boots} - 1) / 99%&7/&56"
#

?

remote frigate
#

is there a way

#

for me

#

it

#

wait

#

dumbass discord

dire bear
#

or {%placeholder%}

remote frigate
#

display_name: '&2į“„į“į“į“į“É“ Źœį“‡ŹŸį“į“‡į“›'
enchantments:
- AQUA_AFFINITY;1
- PROTECTION; 1
- RESPIRATION; 2
left_click_commands:
- '''[console] /give %player_name% diamond_helmet[trim={pattern:wild,material:emerald},custom_name='["",{"text":"į“„į“į“į“į“É“ Źœį“‡ŹŸį“į“‡į“›","italic":false,"color":"dark_green"}]',enchantments={levels:{aqua_affinity:1,protection:1,respiration:2}}]'''

dire bear
#
[14:47:57 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[14:47:57 WARN]: [PlaceholderAPI] [math] Placeholder: %math_1 + floor(3 * ({libreforge_item_level_cozy_boots} - 1) / 99)%
[14:47:57 WARN]: [PlaceholderAPI] [math] Cause:       1 + floor(3 * ({libreforge is not a valid integer number.
remote frigate
#

is it possible to give the item i have listed above directly to the player

#

because

#

if i try to use the /give command it messes up the hypotheses

#

and just disables the command

#

@junior musk

junior musk
#

what does it say in chat?

dire bear
#

but cosole warnings

junior musk
#

/papi parse me %math_1 + floor(3 * ({libreforge_item_level_cozy_boots} - 1) / 99)%

#

and what about /papi parse me %math_1+floor(3*({libreforge_item_level_cozy_boots}-1)/99)% ?

junior musk
#

then it's working?

remote frigate
#

it doesnt work

#

@tangyu

#

@junior musk

#

it isnt working

junior musk
junior musk
remote frigate
#

what

manic stone
junior musk
#

I don't have any example, and yeah it's basically just a timer
You could fetch only the values that were requested instead of all of them, as in, in your onRequest method, check if the data you want is in the map.
If it is, then return it, if it's not, add it to a list and return "Loading..." or smth.
Then, in your timer, fetch all the data in the list and put the values in the map

manic stone
#

hm

#

ok thanks

cinder orchid
#

how glow item in deluxemenus gui please

junior musk
#

?dm-glow

tender vaporBOT
cinder orchid
#

thx

remote frigate
#

left_click_requirements:
requirements:
HasKey:
type: Javascript
expression: '%coinsengine_balance_raw_commonkeys% >= 1'
deny_commands: '[console] execute at %player_name% run playsound minecraft:entity.villager.no playerr %player_name% ~ ~ ~ 100000'

#

anyone know why this doesnt really work?

#

im trying to mkae it so that the plugin checks whether player has enough keys or not

#

but it doesnt wok

#

work

#

@mint fable

tender vaporBOT
remote frigate
#

pls

remote frigate
#

@mint fable

tender vaporBOT
remote frigate
#

@junior musk

sage helm
#

guys

#

i did dowloaded the statistic from ecloud but my data text in game not update

junior musk
sage helm
#

Yah

manic stone
sage helm
#

I forgot

#

Turn off disable saving stats

#

Lol

#

Sorry

junior musk
#

what kind of data are you fetching from the db?

manic stone
#

the whole row, i would serialize it to an object, the key is player uuid

#

i have 2 placeholder, one returns a list joined together, one return a string

junior musk
#

so you fetch the row based on the player's uuid right?

#

you could have a map holding both a player and your object, then check in onRequest if the player is in the map

#

if the player is in the mai, you get your object and return it however you like

#

if the player isn't in the map, you'd add it to a list

in your repeating task timer (in your start() method), you'd fetch all the rows for all players in that list

#

I'll get on pc in like 10min, I'll try to give you an example

junior musk
#
    private final Map<Player, YourObject> cache = new HashMap<>();
    private final List<Player> requestedPlayers = new ArrayList<>();

    @Override
    public void start() {
        Bukkit.getScheduler().runTaskTimerAsynchronously(getPlaceholderAPIPlugin(), () -> {
            // fetch data for all players in requestedPlayers
        }, <delay>, <period>);
    }

    @Override
    public String onRequest(OfflinePlayer player, String params) {
      if (player == null) return "";

      if (!cache.containsKey(player)) {
        requestedPlayers.add(player);
        return "Loading...";
      }
      
      YourObject data = cache.get(player);
      
      // handle data & return
    }
manic stone
#

ok thanks you, i understand that now :d

jade pewter
#

Hi this DeluxeMenu command doesn;t work for me

#
  • '[console] give %player_name% apple 1'
#

- '[console] give %player_name% apple 1'

#

This doesnt work

manic stone
jade pewter
#

Sorry I realised I didnt have the Player papi expansion

#

Which I didnt realise I needed

manic stone
#

ok, good luck

austere hawk
#

Hello šŸ‘‹

public class GradientExpansion extends PlaceholderExpansion {

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

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

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

    @Override
    public @Nullable String onRequest(OfflinePlayer player, @NotNull String params) {
        Gradient gradient = new Gradient();
        gradient.addColor("#D91A1A");
        gradient.addColor("#6B1F20");
        gradient.addColor("#212224");
        return gradient.generateName(Objects.requireNonNull(player.getName()));
    }```

I made this small extension  and did this to register it 
```java
    public void onEnable() {
        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new GradientExpansion().register();
            getLogger().info("Registered Gradient Expansion!");
        }```
#

How ever when I run /papi parse me %hoplin_gradient% it returns the placeholder to me

#

:(

#

I followed the docs to make this btw^

junior musk
#

the identifier shouldn't contain _

austere hawk
#

shoot

junior musk
#

syntax is %<identifier>_<params>%
you probably want to instead have the identifier be hoplin, and check if the params equal gradient

austere hawk
#

oo alr

#

šŸ’€ imma just remove the _

#

Ugh, I changed it to hoplingradient it's still returning the placeholder

junior musk
#

does your expansion show in /papi list?

#

and where are you using the placeholder?

austere hawk
#

sorry I lied...I forgot to put % %

junior musk
#

gg

austere hawk
#

sorry :(

#

ty for ur help btw ā¤ļø

rose bobcat
#

how can I parse an offline player's placeholder?

junior musk
#

with ParseOther or Utils, just like you would with an online player

#

though the placeholder you use isn't guaranteed to support offline players

worldly cave
#

does exist a placeholder that say the last command u did without the /

#

i need it to replicate some stuff

oak field
#

can i make custom placeholders?

loud arrow
#

hey, are placeholders different in 1.21, I've just updated our server and no placeholders are working, I can't see an errors in console and the plugin is up-to-date (2.11.6)

stone edge
#

Depending on the version you come from, you might need to redownload some expansions

#

/papi list and make sure all are green

#

if they are, test one of each to realize which expansion is not working

sage marsh
#

Hi! Development question here. I'm using Gradle, and It's unable to resolve PAPI with this error: ```
Could not resolve me.clip:placeholderapi:2.11.1.
> Could not get resource 'https://papermc.io/repo/repository/maven-public/me/clip/placeholderapi/2.11.1/placeholderapi-2.11.1.pom'.
> Could not GET 'https://papermc.io/repo/repository/maven-public/me/clip/placeholderapi/2.11.1/placeholderapi-2.11.1.pom'. Received status code 403 from server: Forbidden

Paper says the endpoint is retired. Can someone guide me to properly include it?
deep hollow
#

Hey, there's a way to show %server_time_MMMM dd, yyyy% Month on Spanish instead of English?

#

thanks šŸ™

#

there is another option instead of adding Duser.language=es -Duser.country=ES before the -jar?

potent bramble
#

it possible to change font in placeholders for example numbers?

cinder orchid
#

%checkitem_give_amt:{math_0:0_({player_empty_slots}*64)},mat:wheat%
what it don't works ?

#

@idle coral @warm topaz @gleaming charm

torpid vortex
#

Hello

verbal mirage
#

Hello all, what I'm need to do if I want upload extension to ecloud?

balmy marten
balmy marten
verbal mirage
snow cedar
#

What do I do if a plugin i need placeholders for isn't currently listed on the ecloud

balmy marten
verbal mirage
#

thanks!

loud arrow
junior musk
#

Seems to be caused by the NumberFormatter expansion. Report it to its dev

loud arrow
#

thank you! that's fixed all of my problems from upgrading hahaha

verbal mirage
#

how much time is usually taken by verification extension on ecloud?

junior musk
#

depends whether one of the moderators have time, they usually check soon enough

#

can you send the link to your expansion ?

grizzled totem
#

papi plugin for 1.21.4?

vivid sparrow
real parrot
#

Is there a placeholder that returns percent sign? (%)

junior musk
#

%ascii_37%

median sparrow
#

With PAPI, how do I get places for placeholder stats? Like, if I want to display the 10th place for %statistic_mine_block%, how do I do that?

junior musk
#

you'll need to use ajLeaderboards for that

solid falcon
#

Hello, why my placeholders isn't registered?

override fun onEnable() {
    // Register PAPI extension if placeholder API is installed.
    if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
        HardcoreExtension(mainConfig, mysqlConnection, multiverse).register()
    }
}
class HardcoreExtension(
    private val config: MainConfig,
    private val connection: Connection,
    private val multiverse: MultiverseCore
): PlaceholderExpansion() {
    override fun getIdentifier(): String {
        return "hardcore"
    }

    override fun getAuthor(): String {
        return "Zaksen_"
    }

    override fun getVersion(): String {
        return "1.0.0"
    }

    override fun persist(): Boolean {
        return true
    }

    override fun onRequest(player: OfflinePlayer?, params: String): String? {
        if(player == null) {
            return null
        }

        if(player.player == null) {
            return null
        }

        val world = player.player!!.world

        if(!isHcWorld(world)) {
            return null
        }

        return when(params.lowercase()) {
            config.placeholders.totalTimePlaceholder -> {
                // Some code
            }
            config.placeholders.sessionTimePlaceholder -> {
                // Some code
            }
            config.placeholders.unbanTimePlaceholder -> {
                // Some code
            }
            else -> null
        }
    }

    private fun isHcWorld(world: World): Boolean {
        // Some code
    }
}
#

I got that:

[PlaceholderAPI] Placeholder expansion registration initializing...
0 placeholder hook(s) registered!
junior musk
#

check /papi list

#

if it shows there, it's fine

#

the message only counts external expansions downloaded form the ecloud, not expansions registered by plugins

solid falcon
#

Yes, my extension is on the /papi list, thanks.

neat basin
#

Can you help me? I get back that the world is invalid, but the placeholder is correct.

%xwr_reset_status_vanilla-world_nether% | 20d, 3h, 55m, 25s
%javascript_reset_vanilla-world_nether% | Invalid World

I already tried this js using PlaceholderAPI.static.setPlaceholders(BukkitPlayer, ā€œ%xwr_reset_status_vanilla-world_netherā€%")
and it works fine

I don't know why it returns that the world is invalid.

function convertToSeconds(timeString) {
    if (!timeString || typeof timeString !== "string" || timeString.indexOf("Invalid") !== -1) {
        return 0;
    }

    var parts = timeString.split(", ");

    var days = 0;
    var hours = 0;
    var minutes = 0;
    var seconds = 0;

    for (var i = 0; i < parts.length; i++) {
        var part = parts[i];
        if (part.indexOf("d") !== -1) {
            days = parseInt(part.replace("d", ""), 10) || 0;
        } else if (part.indexOf("h") !== -1) {
            hours = parseInt(part.replace("h", ""), 10) || 0;
        } else if (part.indexOf("m") !== -1) {
            minutes = parseInt(part.replace("m", ""), 10) || 0;
        } else if (part.indexOf("s") !== -1) {
            seconds = parseInt(part.replace("s", ""), 10) || 0;
        }
    }

    var totalSeconds = (days * 86400) + (hours * 3600) + (minutes * 60) + seconds;
    return totalSeconds;
}

function getResetTimeInSeconds() {
    var worldName = args[0];
    print("Nombre del mundo: " + worldName);

    var timeString = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%xwr_reset_status_" + worldName + "%");
    print("Tiempo obtenido: " + timeString);

    if (!timeString || typeof timeString !== "string" || timeString.indexOf("Invalid") !== -1) {
        return "Error: El mundo no es vƔlido o no existe"; // Mensaje de error
    }
    var seconds = convertToSeconds(timeString);
    return seconds;
}
getResetTimeInSeconds();
unreal flax
#

I'm trying to use the parseother expansion placeholders inside a formatter placeholder
%parseother_{player}_{formatter_number_{statistic_hours_played}}%

but it doesn't work. Is there any solution for this?

solid falcon
#

Hello, i'am trying to create placeholders, but them didn't work.
I see that in console:

Before: You are currently playing without a break: %hc-session-time%
After: You are currently playing without a break: %hc-session-time%

Code:

val serialized = MiniMessage.miniMessage().serialize(configs.mainConfig().messages.hcCmdSession)

println("Before: $serialized")
val msg = PlaceholderAPI.setPlaceholders(sender, serialized)
val componentMsg = MiniMessage.miniMessage().deserialize(msg).decoration(TextDecoration.ITALIC, false)

println("After: $msg")

Placeholder even didn't use method from extension (onPlaceholderRequest), because i'am didn't get any messages from it:

override fun onPlaceholderRequest(player: Player, params: String): String? {
  val world = player.player!!.world

  if(!isHcWorld(world)) {
    println("World isn't hcworld")
    return null
  }

  println("Params: " + params.lowercase())
  println("First placeholder: " + config.placeholders.totalTimePlaceholder)

  // Some other code
  return null
}
junior musk
#

it should be %<identifier>_<params>%

#

in your case, either hc is the identifier and session-time the params, meaning %hc_session-time%
or hc-session is the identifier and time the params, meaning %hc-session_time%

neat wind
#

is there a way for a placeholder to be like %vault_ecobalance(playername)% and it shows the player typed placeholder to others because i want to make a command like /money player or /kills player

acoustic crown
#

when will papi be updated to 1.21.4?

jolly knot
acoustic crown
#

It is, but it's also throwing an error on start up.

jolly knot
acoustic crown
#

Will do!

junior musk
#

/papi ecloud download Server
/papi reload

#

your Server expansion is outdated, this will update it

acoustic crown
#

Thanks!

real parrot
#

When CheckItem for 1.21.4?

sharp bloom
radiant sparrow
#

If a plugin config uses hard coded placeholders: {name} in its config, is it possible to somehow combine it with a separate global placeholder like %kills_<player_name>% (for example)

#

to make something like %kills_{name}%

#

kills is a hypothetical placeholder

#

please @ me directly if you respond, i will go afk

flat vapor
#

Business owners, listen up! I'm building my portfolio and want to help you establish a strong online presence. Get in touch for a custom website design that will make your brand sparkle! šŸ’Ž

junior musk
#

If you want to use that argument as a playername, you can use the Utils or ParseOther expansions for that

#

/papi ecloud download Utils
/papi reload
%utils_parseother:[{name}]_statistic_player_kills%

hallow sapphire
#

hey, could someone please help me identify which expansions are causing these errors in startup log/preventing ecloud updates? expansions "Server" and "spark" will not update

[PlaceholderAPI] Failed to load external expansion server. Identifier is already in use.
[PlaceholderAPI] Failed to load external expansion spark. Identifier is already in use.```
https://paste.helpch.at/vibojubeda
junior musk
#

you have 2 jars for each of these expansions in your /plugins/PlaceholderAPI/expansions folder

#

remove one of the two for each

hallow sapphire
#

thank you šŸ™

hallow sapphire
#

Spark expansion doesn't seem to want to update, can this be ignored? Spark placeholders seem to parse correctly.

Successfully downloaded expansion spark [1.0-R1] to file: Expansion-spark.jar
Make sure to type /papi reload to enable your new expansion!
[PlaceholderAPI] Fetching available expansion information...
[PlaceholderAPI] Placeholder expansion registration initializing...
[PlaceholderAPI] Fetching available expansion information...
...
[PlaceholderAPI] Successfully registered external expansion: spark [1.0]
...
17 placeholder hook(s) registered! 1 placeholder hook(s) have an update available.

https://paste.helpch.at/wiveratiki

Just gonna ignore it for now, it's a non-issue

coarse wedge
#

looks like they removed the colors ecloud thing?

#

I was using that for hex color codes back in the day, what am I supposed to do instead?

warped mason
#

anyone have checkitem version that works on 1.21.x?

tepid linden
#

I ve a problem 😢

#

I m using Vault, economy, Dh hologram and ajLeaderboard, I'm trying to do a leaderboard about money but The database is always empty

tender vaporBOT
foggy oar
#

How can I put a custom header on the menu? I'm using version 1.8 of deluxemenu.

winter jacinth
#

e

random copper
#

I'm looking for the best way to manage a placeholder. I'm using DeluxeTags, and I'm not sure on what the best way would be to return a "false" value if a player does not currently have a tag equipped. I want to do this through placeholders. I'd appreciate any help :)

coarse wedge
random copper
#

For DeluxeTags, the %deluxetags_tag% gives me what I should want, but when a tag is not applied, it gives an empty string. Ideally, I'd need a way to add a value to the empty string in the placeholder.

amber grotto
#

help

#

I get an error from placeholderapi that says:

[PlaceholderAPI] Failed to download expansion information
java.net.ConnectException: Connection timed out: connect

#

Can anyone help me?

amber grotto
#

help pls

#

I get an error from placeholderapi that says:

[PlaceholderAPI] Failed to download expansion information
java.net.ConnectException: Connection timed out: connect

jolly knot
#

http://api.extendedclip.com

vague kestrel
golden trench
vague kestrel
#

i did and get the same thing but let me try one more time

golden trench
#

Thats expected, thought i'd just make sure it wasn't a development build issue. I'm not too great with PAPI so

vague kestrel
#

yeah thanks

#

could be a version thing because i have another server on 1.20.6 and no issue

#

this error is on a 1.21.4

golden trench
#

nah well i use 2.11.6 on version 1.21.4 for my server right now so im thinking maybe your host isnt letting you connect to papi

#

but youll definitely need somebody with ball knowledge here to diagnose that haha, hopefully you find what you're looking for

vague kestrel
#

thank you anyways

#

weird thing is everything works except this error is causing me to run /papi reload to get the placeholders to work each time the server restarts lol

tender vaporBOT
sour pebble
#

I updated my server from 1.16.5 to 1.21.4 and all plugins are up to date but it keeps spamming the console and it says TAB error and a placeholder appears instead of my name in the tab section. Can you help me?

        at TAB v5.0.7.jar/me.neznamy.tab.platforms.bukkit.platform.BukkitPlatform.lambda$registerUnknownPlaceholder$6(BukkitPlatform.java:178) ~[TAB v5.0.7.jar:?]
        at TAB v5.0.7.jar/me.neznamy.tab.shared.placeholders.types.ServerPlaceholderImpl.request(ServerPlaceholderImpl.java:113) ~[TAB v5.0.7.jar:?]
        at TAB v5.0.7.jar/me.neznamy.tab.shared.placeholders.PlaceholderRefreshTask.run(PlaceholderRefreshTask.java:50) ~[TAB v5.0.7.jar:?]
        at TAB v5.0.7.jar/me.neznamy.tab.shared.features.PlaceholderManagerImpl.lambda$refresh$1(PlaceholderManagerImpl.java:89) ~[TAB v5.0.7.jar:?]
        at TAB v5.0.7.jar/me.neznamy.tab.shared.cpu.TimedCaughtTask.run(TimedCaughtTask.java:28) ~[TAB v5.0.7.jar:?]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) ~[?:?]
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) ~[?:?]
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1575) ~[?:?]
[08:38:13 ERROR]: Thread TAB Placeholder Refreshing Thread failed main thread check: Chunk getEntities call
java.lang.Throwable: null
last timber
#

hey

#

i need help for placeholderapi because on my skyblock all working in my server survival or my hub not working and 3 4 day before its working

vapid stump
#

hi, is there a way to use CheckItem expansion to get only the number value of a certain lore string?

i'm trying to get the value 5.5 from this item: https://imgur.com/a/eLWujd3

and so far, i only have this placeholder to retrieve all of the item's data: %checkitem_getinfo:mainhand% https://imgur.com/a/e4vwf36

vivid sparrow
#

no

#

hold the item and try this command /data get entity [your name] SelectedItem, maybe the value is also stored somewhere in the item.

junior pelican
#

how do i do that the money shows 1.18K and not 1.1K?

#

dang i cant send images

tender vaporBOT
junior pelican
#

i want it to be 1.18K like on the screenshot and not 1.1K how do i do it?

sharp jay
junior pelican
tender vaporBOT
tender vaporBOT
north latch
#

Do you know how this variable works? I copied the example, but it says INVALID DATE.
%server_countdown_<SimpleDateFormat>_<time>%
e.g. %server_countdown_dd.MM.yyyy_01.01.2020%

plush knoll
#

is there a placeholder to check potion effect lvl, like speed 3
I found this, but does it show lvl? %player_has_potioneffect_<effect>%

plush knoll
cunning sphinx
#

hello it not working when i try download from the ecloud

silk cradle
#

is there a way to passthrough papi placeholders to bungee or run papi on bungee?

vivid sparrow
#

And well, the date needs to be in the future xD

hard compass
#

/papi parse me %essentials_baltop_player_%

Anyone know why this wouldnt parse?

cunning charm
#

Have you downloaded the expansion?

#

And I’m assuming you’ve added a number to the end?

#

%essentials_baltop_balance_<rank>% is the placeholder.

#

/papi ecloud download Essentials
/papi reload

austere hawk
#

if i want a command to use %player_name% but run it from the console would: targetPlayer = Bukkit.getPlayer(PlaceholderAPI.setPlaceholders(player, "%player_name%"));

stray dust
velvet egret
#

help loading placemats ?

hard compass
#

Is there anyway to add mctop to holograms?

plucky loom
worthy torrent
#

Is there a %wins% thingy or not? (for hunger games) Because I want to add wins to my scoreboard but idk how

hardy gulch
daring holly
#

is there a way to only parse placeholders of specific expansions?

jaunty hound
#

Why doesn't the %essentials_nickname% have the nickname prefix (default "~"). I'm using that placeholder to make so that nicknames show up in chat and tab, but I want some way for people to know when someone is using a nickname.

#

I would think that it is supposed to as we also have the %essentials_nickname_stripped% placeholder which seems to essentially do the same thing.

coral ibex
gritty cave
#

hi, my placeholder api doesn't work in deluxemenus. Like if you do through Parse, for example /papi parse me %player_name%, then everything is fine, and if you write a placeholder inside deluxemenus, then it is not displayed

#

сan someone help with this?

warm topaz
jaunty hound
#

šŸ‘

warm topaz
warm topaz
warm topaz
tropic flower
#

Hey there! This command works: /papi parse PBobzebuilder %math_1*((({scs_player_max_chunks_total}+5)*({scs_player_max_chunks_total}+5+1)-{scs_player_max_chunks_total}*({scs_player_max_chunks_total}+1))/2)%
Outputting: 115. However, when I copy paste this very same placeholder in deluxemenus, it does not seem to work, effictively displaying the whole placeholder without the replacement. Any idea?

warm topaz
gritty cave
tropic flower
tropic flower
warm topaz
#

both run /papi dump pls

tropic flower
gritty cave
warm topaz
tropic flower
gritty cave
#

thx

warm topaz
tropic flower
#

Which?

warm topaz
#

ur menu

tropic flower
#

Yes.

gritty cave
tropic flower
#

https://imgur.com/a/Urppf5t

sell50:
    model_data: 1462
    material: paper
    slots:
    - 14
    display_name: '&6Sell a chunk &a-50'
    lore:
      - "&7Reduce your claim size by selling."
      - '&#c47c34āžœ &#d6d6d6Click to sell'
      - '&6Cost: &7%math_1*((({scs_player_max_chunks_total}+5)*({scs_player_max_chunks_total}+5+1)-{scs_player_max_chunks_total}*({scs_player_max_chunks_total}+1))/2)%'
      - ''
    left_click_requirement:
      requirements:
        type: (>=)
        input: "%scs_player_max_chunks_total%"
        output: "50"
        deny_commands:
          - '[message] &7You do not have enough available chunks.'
    right_click_requirement:
      requirements:
        type: (>=)
        input: "%scs_player_max_chunks_total%"
        output: "50"
        deny_commands:
          - '[message] &7You do not have enough available chunks.'
    left_click_commands:
    - '[console] scs cplayer add-chunks-total %player_name% %math_{scs_player_max_chunks_total}-50%' 
    - '[console] eco add %player_name% %math_1*((({scs_player_max_chunks_total}+5)*({scs_player_max_chunks_total}+5+1)-{scs_player_max_chunks_total}*({scs_player_max_chunks_total}+1))/2)%'
    - '[message] &7You sold fifthy chunks.'
    right_click_commands:
    - '[console] scs cplayer add-chunks-total %player_name% %math_{scs_player_max_chunks_total}-50%' 
    - '[console] eco add %player_name% %math_1*((({scs_player_max_chunks_total}+5)*({scs_player_max_chunks_total}+5+1)-{scs_player_max_chunks_total}*({scs_player_max_chunks_total}+1))/2)%'
    - '[message] &7You sold fifthy chunks.'
tropic flower
gritty cave
gritty cave
#

im blind, sorry 🫠

tropic flower
#

No worries haha

#

thanks for trying

warm topaz
#

is that same placeholder working correctly within the commands?

tropic flower
warm topaz
#

and is that actually showing the correct item? i dont think (>=) type should be working with the surrounding brackets

tropic flower
#

I would assume no.

tropic flower
warm topaz
tropic flower
#

I figured it out

#

If you happen to be op: %scs_player_max_chunks_total% happen to return the "infinite" sign which is not the int expected by the Math expansion. Thus the placeholder not replacing. Thanks.

warm topaz
# daring holly uh?

was just looking more into it
its kind of possible?
PlaceholderAPIPlugin#getLocalExpansionManager()
manager.findExpansionByIdentifier()
CharsReplacer#apply(String, Player, Function<String, PlaceholderExpansion>)

no idea if this would actually work, but those are the methods i can find that could work

gritty cave
#

nice, but what if even the most basic placeholders don’t work for me šŸ˜•

warm topaz
#

which ones? ur player expansion is working

gritty cave
warm topaz
#

ok so spigot page seems to be more updated...
are u after %playtime_time_hours% instead?
and i cannot see one for hours today

#

u just need to look for placeholders that actually exist to suit ur needs

gritty cave
#

i already have some placeholders, like %playtime_player%, and it doesn’t return anything

snow acorn
cinder orchid
#

material: basehead-%coinsengine_top_player_classementgenerateur_4%
Why can't I see the player's head?

inland smelt
#

Hello,
I had about 8 placeholder extensions, after 20 minutes the server reached 100% cpu every time,
has this happened to anyone else?

proven olive
#

how can i make a countdown timer with placeholders

solid flax
#

does this still work?

tender vaporBOT
heady ingot
#

hello, how I can register self placeholder for using in TAB plugin?

coral ibex
#

papi ecloud download vault
[15:47:40 INFO]: Failed to find an expansion named: vault
papi ecloud download lackperms
[15:47:56 INFO]: Failed to find an expansion named: lackperms

stoic pelican
#

Hello everyone!
I have a problem with CheckItem expansion, I'm trying to get NBTStrings from item (%checkitem_getinfo:1_nbtstrings%) on Minecraft 1.21.3 and it results me with null. I know there is no NBTs and there is components now, but my stuff requires them for work, is there a way around about it?

stoic pelican
#

Also "Enchantment" extension doesn't work at all... And not exists on ecloud (while it does on wiki list)

cursive prism
#

Hello, how are you? I recently had a problem with my server, and it's due to the Placeholder API. My server is a snapshot paper version 1.21.1. Does the plugin work fine on this version? Thanks.

warm topaz
warm topaz
warm topaz
cursive prism
#

When the mobs' animation hits the player, the camera and his character go crazy.

stoic pelican
warm topaz
#

vk is the owner of the expansion, they need to update the expansion to support later versions of mc

stoic pelican
#

So yeah, not actual

#

Okay then

#

What about CheckItem expansion?

woeful mango
woeful mango
austere hawk
#

If im not mistaken from the glance I took, the error occurs due to conflicting Guava versions loaded by different classloaders.

deep hollow
#

Hey, anyone has an example for %formatter_number_round[_[precision]:[rounding]]_1.1% expansion? I just want to remove decimals of the input

#

I know %math_0_ do the work but I think formatter it's way more optimized, no?

junior musk
#

%formatter_number_round_1.1%

#

you've got examples at the bottom of the page

deep hollow
#

oh didn't see that github wiki, thanks Tanguygab šŸ˜„

#

it could be the expansion version?

junior musk
#

check your PAPI config

deep hollow
#

it's formatter: rounding: precision: 0 mode: half-up right now

junior musk
#

try round_0:down_1.1

deep hollow
#

And using Formatter-2.4.0 right now šŸ™„

#

/papi parse me %formatter_number_round_0:down_1.5% returns 1.5

junior musk
#

well that's awkward

deep hollow
#

ups

junior musk
#

ĀÆ_(惄)_/ĀÆ

weak sluice
#

Please help me. How can I register a placeholder in the PlaceholdeAPI plugin to display the tops in the BedWars1058 plugin? I use the Ajleaderboard plugin and there are no tops displayed.

#

I write like this in a gallogram - %ajlb_lb_bw1058_stats_finalkills_1_name%&b- %ajlb_lb_bw1058_stats_1_value%'

lucid egret
#

Can someone help me? I make the right placeholder and everything, it works, but it doesn't load the information, it just stays blank with ---- -----. It doesn't load any leaderboard statistics, can you help me? What can I do?

lucid egret
woeful mango
austere hawk
woeful mango
austere hawk
#

no no show me ur pom.xml/build.gradle in dms as-well as your version of placeholderapi

#

also can i get an entire trace, i dont see anywhere in that trace where your attempting to register it in your plugin

woeful mango
austere hawk
#

ok DM me full trace not snippet and also your placeholderapi version via cmd /placeholderapi

onyx iron
#

what are the placeholders for velocity server tracking player counts in global network, and specific servers? I tried %bungee_<server>% didn't work

austere hawk
austere hawk
onyx iron
#

it works

#

its just in GUIs it doesnt

#

I use Akropolis for hub management

austere hawk
#

yeh thats less to do with placeholderapi then and probably whatever plugin ur using for guis

#

maybe it doesnt inherently support placeholderapi

#

and thus, doesnt parse the placeholders

onyx iron
#

it uses minimessage

austere hawk
#

yea but the plugin could still not pass the msg to placeholderapi lemme look into tha tplugin rq

#

how does your config look

#

@onyx iron

#

like in the gui for example

onyx iron
#

found a simple fix

#

just gonna use deluxemenus

austere hawk
#
#   Use PlaceholderAPI to get more: https://www.spigotmc.org/resources/placeholderapi.6245/
#   PlaceholderAPI's placeholders use the following format: <papi:placeholder>
#   Example: <papi:luckperms_prefix>
onyx iron
#

I see

#

true

austere hawk
#

its denoted on line 23 of the initial config

#

xd

#

thought they either had some custom formatting or simply just didnt hook placeholderapi xd

agile bramble
#

Hello, is there some update checker for ecloud in PAPI? That will show on join or in console, please?

junior musk
#

/papi ecloud list installed

sour basin
#

Hi on paper 1.21.4 my placeholders work strangely, in tabs, in menus. The placeholders work fine, but in essentials chat, and overall in essentials they don't work, can anyone help me ?

junior musk
#

that's because Essentials doesn't support PlaceholderAPI

sour basin
#

But on 1.20.4 everything worked ? so it's the version ? Since 1.21.4 essentials doesn't support placeholder ? Or is there some way to fix it ?

junior musk
#

idk why it worked before but it never supported PAPI

#

ask Essentials' support yourself

lavish yew
#

using deluxehub

#

only %online% works

tender vaporBOT
lavish yew
#

im using java 8

austere hawk
# lavish yew im using java 8

where did you get this expansion from, that error would be correct, you need to update your java runtime to Java 11.

#

or look for a older version of whatever expansion you are using ^

lofty mortar
#

placeholderapi 1.21.4 is it publicly available?

balmy marten
#

Latest version works with 1.21.4. PlaceholderAPI will rarely break with minecraft updates

#

More likely the expansion would be break

ionic spade
#

Hiiii idk if im dumb, but I have a minor problem, I've been having this problem for a while now, the first time the placeholders load fine and the second time it says cannot load in the console.. I don't really know what to do with it :D
Log: https://paste.helpch.at/adoxihiloh.makefile

turbid tide
rare orchid
#

Heya all, how would I begin the process of creating a placeholder which takes the value of two other placeholders and adds them? Would I need to create a custom expansion or code a completely custom plugin?

turbid tide
rare orchid
#

With the Math expansion, does that create a placeholder I can then use in other plugins?

#

I am browing the Wiki right now

turbid tide
#

The 0 there specifies the precision. 0 means that no decimals will be shown. So 3.1 + 4 = 7

agile bramble
rare orchid
rare orchid
#

I can't seem to include screenshots

#

%math_0:_{bankplus_balance}+{cmi_user_balance}%

past delta
#

hi my server [spigot 1.21.4] crashes from time to time with such error

java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.longs.LongArrayList.getLong(int)" because "this.wrapped" is null
at it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap$MapIterator.nextEntry(Long2ObjectOpenHashMap.java:664)
at it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap$FastEntryIterator.next(Long2ObjectOpenHashMap.java:779)
at it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap$FastEntryIterator.next(Long2ObjectOpenHashMap.java:774)
at net.minecraft.world.level.entity.PersistentEntitySectionManager.i(PersistentEntitySectionManager.java:312)
at net.minecraft.world.level.entity.PersistentEntitySectionManager.b(PersistentEntitySectionManager.java:323)
at net.minecraft.server.level.WorldServer.a(WorldServer.java:942)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:856)
at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:890)
at net.minecraft.server.MinecraftServer.bD(MinecraftServer.java:1425)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1399)
at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1093)
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329)
at java.base/java.lang.Thread.run(Thread.java:1583)

and in the plugin section it is saying that the PlaceholderApi is causing it

#

is there any other way to solve this than removing the plugin?

austere hawk
#

infact just do a server log

austere hawk
#

i dont think this would be caused by placeholderapi

tender vaporBOT
rare orchid
#

Heya all, does anyone have any idea why this placeholder is parsing the values of the other placeholders but not adding the two? I have download and installed the Math Expansion from Ecloud.

%math_0:_{bankplus_balance}+{cmi_user_balance}%

delicate temple
#

Hello, I’m new to plugins and server stuff and I’m just wondering how I can have a confirm purchase menu with DeluxeMenus that shows the item a player clicked on to purchase, and if it’s possible to just have one menu that changes to the item they picked.

knotty lily
#

uhhh

#

my bad

#

forget to remove the link from there

warped mason
#

hello, can anyone help me make checkitems expansion work on 1.21.3+?

austere hawk
sharp bloom
late edge
#

Hey, I'm using VentureChat to create mutiple range chat but i got an issue with PlaceholderAPI. i use the mod Hiddenname to rename player wich change their displayed name, but when i use the placeholder "player_displayname" it show their normal name instead of their modified one. am i doing something wrong or they are just no compactible ?

turbid tide
turbid tide
late edge
#

Yhea, we are useing Mohist to use plugin with forge

turbid tide
#

Then we can't really help. The Player expansion does a simpel call to the Bukkit API. I have no clue how Mohist works internally but it might have multiple APIs for display names

#

You might have to use a Bukkit plugin for changing/hiding the names of users

late edge
#

Ok ! thanks for the help then šŸ™‚ tought it could be me doing something wrong since the plugin TAB does register the name change correctly x)

rare orchid
turbid tide
turbid tide
rare orchid
#

I am running the latest version of PAPI as well. I checked that.

late edge
#

Its one of their placeholder i think, but since i'm not realy experienced with plugin i stupidly tought "if one work then the other should" :p

arctic loom
#

Unless there is a warning do I doubt there is an issue with the math expansion

#

Also, make sure you didn't enable the Disable-Warnings option obviously, or else you won't get any info.

rare orchid
#

These placeholders are four currency balances

#

I will check on the Disable-Warnings in a few

#

Disable-Warings is set to false, and there is no console errors

#

I just tried it again with placeholders that should definitely be a number, but I am getting the same output.

turbid tide
granite galleon
#

Hi there guys

#

It's possible to compare two placeholders that return NUMBERS.

I need to return the one that has the biggest number

#

so %team1_kill% and %team2_kill%

#

and i need to return whoesever has more kills in this case

rare orchid
rare orchid
#

I entered %math_2+2% and I received 4.0000. I tried %math_0:_2+2% and I got %math_0:_2+2% as the output.

rare orchid
#

Nope - the output is %math_0_2+2%

#

Alright, I got 4 when I used %math_0:0_2+2%

turbid tide
#

Yeah, was going to suggest to try setting a scale

#

Try that with your placeholders as well

rare orchid
#

I just did - same problem as original

turbid tide
#

Can you display the placeholder you are testing right now?

rare orchid
#

Just the placeholder in game?

turbid tide
#

Yeah

rare orchid
#

Yes, it parses

#

But it may be parsing as a string

turbid tide
#

No. I mean, can you send it here

#

so I can see it?

rare orchid
#

YeaH

#

I am unable to send screenshots in the channel for some reason, but I entered %bankplus_balance% and I received 1,083,092

turbid tide
#

Hmm. I wonder if the problem is the commas

rare orchid
#

lol

turbid tide
#

Maybe it uses US formatting which uses dots instead of commas

#

Do you have a placeholder that returns unformatted balances?

rare orchid
#

I think I may

#

Please hold

#

That was the problem

#

So, I will have to use unformatted values if possible.

#

With the commas, it was seemingly being parsed as a string

#

Is there a way I would be able to convert it if the plugin does not have an unformatted placeholder?

#

Or would I have to use the JS expansion or create a custom plugin that does this?

north viper
#

everytime i try %playtime_player% it dose not work it says it built in so i dont need to the ecloud thing so whats the deal???

rare orchid
#

Is there a way to include a thousands seperator in the result?

pallid wharf
#

Hello guys

#

I have problems with /papi ecloud download

#

How fix it is give timeout

#

[07:35:45 WARN]: [PlaceholderAPI] Failed to download expansion information

java.net.ConnectException: Connection timed out

at sun.nio.ch.Net.connect0(Native Method) ~[?:?]

at sun.nio.ch.Net.connect(Net.java:579) ~[?:?]

at sun.nio.ch.Net.connect(Net.java:568) ~[?:?]

at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:593) ~[?:?]

at java.net.Socket.connect(Socket.java:633) ~[?:?]

at java.net.Socket.connect(Socket.java:583) ~[?:?]

at sun.net.NetworkClient.doConnect (NetworkClient.java:183) ~[?:?]

at sun.net.www.http.HttpClient.openServer (HttpClient.java:533) ~[?:?]

at sun.net.www.http.HttpClient.openServer (HttpClient.java:638) ~[?:?]

at sun.net.www.http.HttpClient.<init>(HttpClient.java:281) ~[?:?]

at sun.net.www.http.HttpClient.New(HttpClient.java:386) ~[?:?]

at sun.net.www.http.HttpClient.New(HttpClient.java:408) ~[?:?]

at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.ja va:1324) ~[?:?]

at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java: 1257) ~[?:?]

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1 143) ~[?:?]

at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1072) ~[?:?]

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0 (HttpURLConnection.jav a:1702) ~[?:?]

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java :1626) ~[?:?]

at java.net.URL.openStream(URL.java:1161) ~[?:?]

at com.google.common.io.Resources$UrlByteSource.openStream (Resources.java:72) ~[patc hed_1.16.5.jar:git-Purpur-1171]

at com.google.common.io.ByteSource$AsCharSource.openStream (ByteSource.java:456) ~[pa

tender vaporBOT
pallid wharf
#

Ye but hm i need this because my hosting users want normal use it

#

And need fix it uh

fringe crystal
#

Hi, I'm using deluxe menus and i'm trying to run a command as long as a player has an elytra in their main hand... I have tried so many variations but can't get it to work. Does anyone know what i'm doing wrong? Thank you!

          type: string equals
          input: ' %checkitem_getinfo:mainhand%'
          output: 'elytra'```
#

I have also tried

          type: string equals
          input: '%checkitem_getinfo:mainhand_mat:elytra,amt:1%'
          output: 'yes'```
ionic spade
turbid tide
#

It was probably treated as a string because it didn't know what formatting to use. I'm not sure you can specify the formatting either.

turbid tide
#

It is built into the plugin, that means you only need the plugin and don't need an extra expansion from the ecloud.

turbid tide
turbid tide
# pallid wharf And need fix it uh

It looks like your host is blocking connections to the PlaceholderAPI eCloud. You can try contacting them to unblock the connection. If that’s not an option, you can manually download expansions from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

turbid tide
#

In your first example, I see an extra space before the placeholder That could be causing you issues as well

turbid tide
# ionic spade anyone? :p

Hello. I've taken a look at the dump and couldn't see anything wrong. I'm confused why the placeholder loading triggers twice. From the logs you sent it doesn't seem like you executed /papi reload or anything like that. Am I correct? Or is the second reload triggered by you?

ionic spade
ionic spade
pallid wharf
tender vaporBOT
warm topaz
#

i believe the error is on our part, i would like you to test if u can

rare orchid
#

For anyone that may need this functionality, you can format a number calculated using the Math expansion by manually installing the NF (Number Formatter) expansion. You can feel free to DM me if you would like more info on how to do this.

oak drift
#

Hi I have a bypass that's going on through papi- please advise a private chanlle to discuss this.

turbid tide
tender vaporBOT
ionic spade
#

Sorry šŸ‘€

limber phoenix
#

is there any placeholder to get amount of item player has for example emerald

silk cradle
candid prawn
#

im having this error with townychat and placeholderapi:

[15:14:42 ERROR]: [PlaceholderAPI] Failed to load expansion Expansion-townychat.jar (is a dependency missing?)
java.lang.NoClassDefFoundError: com/palmergames/bukkit/TownyChat/events/AsyncChatHookEvent
at java.base/java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3578) ~[?:?]
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2676) ~[?:?]
at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:429) ~[PlaceholderAPI-2.11.6.jar:?]
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) ~[?:?]
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) ~[?:?]
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) ~[?:?]
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) ~[?:?]
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) ~[?:?]
Caused by: java.lang.ClassNotFoundException: com.palmergames.bukkit.TownyChat.events.AsyncChatHookEvent
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593) ~[?:?]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
... 11 more

#

does anyone know a fix?

eager rampart
silk cradle
#

how do i get rid of decimal numbers from the math placeholder

turbid tide
turbid tide
silk cradle
#

is there a placeholder that display how many days a world is old?

#

like days in minecraft

turbid tide
rare orchid
#

Thanks for the help with my issue

#

I greatly appreciate it

hot shoal
#

I don't get how I should format math expressions.. I just want to display the combined value of two statistics using ajlb and dh

turbid tide
hot shoal
hot shoal
#

I do have the math extension added

torpid vortex
#

Hello good afternoon, is there a way to use placeholders in commands?

turbid tide
turbid tide
hot shoal
#

okay thank you! could you just quickly explain what the "0" and "down" means? šŸ‘€

turbid tide
#

and down is the type of rounding

#

3.3 will become 3

#

3.99 will also become 3

#
CEILING
Rounding mode to round towards positive infinity.

DOWN
Rounding mode to round towards zero.

FLOOR
Rounding mode to round towards negative infinity.

HALF_DOWN
Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down.

HALF_EVEN
Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor.

HALF_UP
Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round up.

UP
Rounding mode to round away from zero.
#

i believe these are all the rounding types

hot shoal
#

ahha makes sense, thank you so much. I've been searching around for a good while but never understood how to format it, thank you so much! ā¤ļø

hot shoal
hot shoal
#

right. sorry

leaden field
#

hi
Could anyone tell me if this is correct?
%server_countdown_dd.mm.yyyy_01.05.2025%
Is returning "invalid date"

cunning charm
#

Even if it’s 00:00

smoky spoke
leaden field
cunning charm
#

That’s because you advent added HH:mm to your placeholder

#

Also month is MM I believe

leaden field
#

Ach what I didn't understand

austere hawk
leaden field
#

Strange, because even the example shown in the Wiki is not working.

#

%server_countdown_<SimpleDateFormat>_<time>%
e.g. %server_countdown_dd.MM.yyyy_01.01.2020%

#

obviously I changed the date

austere hawk
# leaden field obviously I changed the date

you can always test with the command too assuming u have the servercountdown expansion installed. Use /papi parse me %server_countdown_dd-MM-yyyy_31-12-2024% to debug. If it returns an error e.g. Invalid placeholder": Expansion isn’t installed. or "Invalid date": Format/date mismatch.

austere hawk
#

@leaden field try these:

/papi parse me %server_countdown_dd-MM-yyyy HH:mm_31-12-2024 00:00%
/papi parse me %server_countdown_dd-MM-yyyy HH:mm:ss_31-12-2024 00:00:00%
austere hawk
vague granite
#

hello

#

I am finding a person who will be my co-worker

austere hawk
vapid stump
#

uhhh, what..?

CONSOLE ERROR:
[Server] INFO Caused by: org.openjdk.nashorn.internal.runtime.ParserException: <eval>:7:12 Expected ; but found i
[Server] INFO for(let i in arrayLocation) {
[Server] INFO ^

JavaScript file:
function getElements(str) {
    var arrayLocation = str.split("+");
    var x = "";

    for(let i in arrayLocation) {
        x += arrayLocation[i] + ",";
    }

    return x;
}

i don't think I did anything wrong here... any ideas?

vapid stump
hot shoal
#

it was working before the ajlb.. do I need to add that after? anyone knows? šŸ‘€

analog warren
vapid stump
analog warren
fervent seal
#

I've registered som placeholder but I get this error in the console
[PlaceholderAPI] Failed to load expansion player. Identifier is already in use.

austere hawk
# fervent seal I've registered som placeholder but I get this error in the console [Placeholder...

Exactly as the error suggests I'd guess- you have multiple expansions using the same identifier, if you're creating an expansion and using the identifier 'player', you must change it or remove the preexisting expansion. If this is not the case, just check your expansions folder for any expansions using the same identifier. (should be a pretty straight forward process)

/plugins/PlaceholderAPI/expansions is the directory I believe.

void wharf
#

hello, so the math expansion. i'm at "%math_{statistic_mine_block}/2-0.5%" ad i'm wondering how I can make it round. Right know it shows 9.000 but I dont like those zeroes..

stoic pelican
#

Do %math_0_{statistic_mine_block}/2-0.5%

#

You can also do 0:UP or 0:DOWN if there are decimals

#

Also, Attribute expansion not updated too??

#

At least CheckItem can be downloaded, but Attributes just gone from Ecloud list

void wharf
#

nvm it does

#

tysm

rose hinge
#

Hey, is papi on folia?

candid jay
#

is it just me or does %countryonjoin_player_country_name% not work

ionic cipher
#

hello

#

why cant i add the statistic expansion

#

@mint fable sorry for pinging

tender vaporBOT
ionic cipher
#

alright

ionic cipher
#

helloo?

fallow badger
#

holi

ionic cipher
#

hello

#

Tanguygab

#

Yo

#

Hello?

ionic cipher
#

Help me 😦

quaint olive
#

Yeah for some reason statistic doesn't exist in the new version of plapi

rose hinge
#

Hey, any idea if PlaceholderAPI is going to support Folia?

small totem
#

coinsapi expansion is not being loaded

#

it says cannot load expansion due to unknown issue

austere hawk
charred matrix
#

2.11.4?

quaint olive
charred matrix
#

okok

silent prawn
#

so uh

#

do random people just get admin role?

charred matrix
#

Noo

silent prawn
#

then whyt tf is everyone admin

charred matrix
#

power of friendship

silent prawn
#

ah

#

april fools

turbid tide
#

@quaint olive @ionic cipher @charred matrix , the expansion does not come built with the plugins. The /papi ecloud download command downloads it from our ECloud servers: https://api.extendedclip.com/expansions/statistic/. It seems that the expansion was not verified after the last updated but it is now.

You should be able to download the expansion now using the command. In the future, if an expansion is missing its verification, you can look for it directly on the ecloud, download it and put it in the plugins/PlaceholderAPI/expansions folder and execute /papi reload. Do be careful though because if an expansion is not verified it means we haven't checked wether the expansion does what it says it does, and wether it contains any malware.

charred matrix
#

ohh alrr

stoic pelican
#

Attribute expansion not verified yet?

turbid tide
#

If we just forgot, I can go ahead and verify it. Just let me know.

#

Update: I see that it is in our org so I'll just go ahead and verify it. If it is broken and that's why it was not verified we can unverify it later.

half jacinth
#

Hello

#

please help

#

i dont know whats wrong wit hit

#

<original error>

final tusk
#

<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.9.2</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>

does anyone know why that doesn't work?

floral coral
#

hey, im searching for the placeholder which shows the uptime of a specific world

turbid tide
turbid tide
turbid tide
floral coral
#

oh sad

tender vaporBOT
final tusk
#

I added it but it didnt work

#

Blitz

#

this is the error

#

[ERROR] Failed to execute goal on project MMOItems-API: Could not resolve dependencies for project net.Indyuce:MMOItems-APIšŸ«™6.10.1-SNAPSHOT
[ERROR] dependency: me.clip:placeholderapišŸ«™2.9.2 (provided?)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in jitpack.io (https://jitpack.io)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in sonatype (https://s01.oss.sonatype.org/content/repositories/snapshots/)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in codemc-repo (https://repo.codemc.io/repository/maven-public/)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in sk89q-repo (https://maven.enginehub.org/repo/)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in inventive-repo (https://repo.inventivetalent.org/content/groups/public/)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in helpchat-repo-releases (https://repo.extendedclip.com/releases)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in matteodev (https://maven.devs.beer/)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in reposilite-repository-releases (https://repo.nexomc.com/releases)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in oraxen (https://repo.oraxen.com/releases)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in dmulloy2-repo (https://repo.dmulloy2.net/repository/public/)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in phoenix (https://nexus.phoenixdevt.fr/repository/maven-public/)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in lumine (https://mvn.lumine.io/repository/maven-public/)
[ERROR] Could not find artifact me.clip:placeholderapin2.9.2 in papermc (https://repo.papermc.io/repository/maven-public/)
[ERROR] Could not find artifact me.clip:placeholderapi 2.9.2 in central (https://repo.maven.apache.org/maven2)
[ERROR]
[ERROR] -> [Help 1]

junior musk
#

2.9.2 isn't on the repo anymore

#

use 2.11.6

final tusk
junior musk
#

would be nice to have those

#

?paste

tender vaporBOT
junior musk
#

?imgur

tender vaporBOT
final tusk
junior musk
#

and what are the errors?

final tusk
#

most things to do with .get or .getname

junior musk
#

so stuff related to MMOItems and not PAPI?

final tusk
junior musk
#

can you send a screenshot of the errors?

junior musk
final tusk
junior musk
#

can you send more explicit screenshots of the errors?

#

can't see much with just this

final tusk
junior musk
#

those aren't PlaceholderAPI classes nor methods

#

The Type class you're using wasn't imported/doesn't exist, and therefore Intellij IDEA can't find its methods

final tusk
#

so what should I do?

junior musk
#

fix your plugin, use the correct class, if there's one

#

I'm not the one who made your plugin, idk what you want me to do

steel obsidian
#

alright so, an item still shows even after adding an impossible requirement, I did that to test something that cause an issue with a menu that I have.

#

How can I fix that if anyone can help?

junior musk
#

send your menu

#

requirements

#

you wrote requierments

steel obsidian
#

I could've finished the server in that time man

#

😭

#

but thank you very much