#placeholder-api

150650 messages · Page 139 of 151

junior musk
#

you can

#

add text after else:

rustic pewter
#

should i add it like this %utils_parse_changeoutput_equals_input:{%townyadvanced_town_mayor%}_matcher:{%player_name%}_ifmatch:{math_0_{%townyadvanced_daily_town_upkeep%}+{%rentit_player_shop_price%}}_else:%

#

or without %

junior musk
#

without %

#

the {} replace them

rustic pewter
#

it just seems to output as plain text

junior musk
#

did you run the 4 commands?

rustic pewter
#

i can seem to send an image to show

#

yes i did

junior musk
#

did you get an error in console?

rustic pewter
#

[11:06:11 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[11:06:11 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_2,240.00 KR+-1%
[11:06:11 WARN]: [PlaceholderAPI] [math] Cause: '2,240.00 KR+-1' is not a valid Math expression.

junior musk
#

one of your placeholders return a comma

#

%townyadvanced_daily_town_upkeep%

#

/papi parse me %townyadvanced_daily_town_upkeep%

#

do you have a variant of that placeholder without it?

rustic pewter
#

dont think that exists tbh, is there any way to fix that perhaps

junior musk
#

let me check

#

/papi ecloud download Formatter
/papi reload
/papi parse me %formatter_text_replace_,__{townyadvanced_daily_town_upkeep}%

#

what does this say in chat?

rustic pewter
#

2240.00 KR

junior musk
#

oh

#

welp

#

uh

#

plan B

#

/papi ecloud download String
/papi reload
/<server>/plugins/PlaceholderAPI/config.yml
expansions -> string -> replacements

  string:
    replacements:
      number:
        ",": ""
        "KR": ""
        " ": ""
#

then try /papi parse me %string_replacecharacters_number_{townyadvanced_daily_town_upkeep}%

junior musk
#

nice

#

%utils_parse_changeoutput_equals_input:{townyadvanced_town_mayor}_matcher:{player_name}_ifmatch:{math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+{rentit_player_shop_price}}_else:%

rustic pewter
#

how would i format it after else:

junior musk
#

what do you want to display?

rustic pewter
#

for now only rentit

junior musk
#

else:rentit

rustic pewter
#

and if id want to combine muliple ones after else: id put {math_1_{rentit_player_shop_price}} for example?

junior musk
#

yeah

rustic pewter
# junior musk yeah

tried doing something like this but it just seems to be outputing it as text %utils_parse_changeoutput_equals_input:{townyadvanced_town_mayor}_matcher:{player_name}_ifmatch:{math_0_{townyadvanced_daily_town_upkeep}+{rentit_player_shop_price}}_else:{math_1_{townyadvanced_daily_resident_tax}+{rentit_player_shop_price}}%

glass ether
#

@junior musk I tied using those plugin it didnt work.

junior musk
# junior musk yeah

any errors in console? and what does /papi parse me %math_1_{townyadvanced_daily_resident_tax}+{rentit_player_shop_price}% returns in chat?

junior musk
glass ether
#

Someone help please
i am getting this error - [05:32:32 INFO]: [PlaceholderAPI] Fetching available expansion information...
[05:32:33 WARN]: [PlaceholderAPI] Cannot load expansion playertime due to a missing plugin: PlayerTime
[05:32:33 INFO]: [PlaceholderAPI] Successfully registered external expansion: statistic [2.0.1]
[05:32:33 WARN]: [PlaceholderAPI] Cannot load expansion playerstats due to a missing plugin: PlayerStats
[05:32:33 WARN]: [PlaceholderAPI] Cannot load expansion playerstats due to a missing plugin: PlayerStats
i have tried to manuly install the ecloud placeholder. it seems not to update please status and playtime

#

I tried installing those plugin you said didnt seem to work.

junior musk
#

what didn't work

#

do you still get those errors ?

#

if you do, run /papi reload & /plugins from console and send your logs

#

if you don't, then what is the issue?

glass ether
#

Yes same Problem. Didnt fix it and Sure ill do that now.

#

[23:57:49 INFO]: Paper Plugins:
[23:57:49 INFO]: - CrazyCrates, EconomyShopGUI, FancyHolograms, RoseStacker
[23:57:49 INFO]: Bukkit Plugins:
[23:57:49 INFO]: - AdvancedEnchantments, AdvancedRegionMarket, AFKRewards, ajLeaderboards, AntiPopup, AuraSkills, AuthenticationLibs, BeastLib, BeastWithdraw, BetterRTP
[23:57:49 INFO]: *ChestPreview, ChestShop, Chunkview, Chunky, Citizens, ClearLag, CustomTime, DeadChest, DecentHolograms, *DoubleXP
[23:57:49 INFO]: DropHeads, Essentials, EssentialsAntiBuild, EssentialsChat, EssentialsProtect, EssentialsSpawn, fairy-lib-plugin, *FarmProtect, FastAsyncWorldEdit, floodgate
[23:57:49 INFO]: FreeCoinFlip, Geyser-Spigot, GriefPrevention, HamsterAPI, InteractiveChat, Join-Leave, LuckPerms, MobArena, NBTAPI, nightcore
[23:57:49 INFO]: OldCombatMechanics, *OnePlayerSleep, PlaceholderAPI, PlayerStats, PlayerVaults, *PlayTime, ProtocolLib, raytraced-antixray, RivalHarvesterHoes, SetHome
[23:57:49 INFO]: Showcase, SignShop, SimpleTpa, SternalBoard, TAB, TChat, TradeSystem, UltimateAutoRestart, Vault, Vegas
[23:57:49 INFO]: VeinMiner, ViaBackwards, ViaVersion, WildChests, WildLoaders, WorldGuard, zAuctionHouseV3, ZithiumCollectors, zKoth, zMenu

junior musk
#

I see neither PlayerTime or PlayerStats

#

ah I see PlayerStats, but not PlayerTime

glass ether
#

I removed it after trying

junior musk
#

and so what's the issue?

#

what doesn't work?

glass ether
#

[23:57:07 WARN]: [PlaceholderAPI] Failed to load external expansion playerstats. Identifier is already in use.
[23:57:07 WARN]: [PlaceholderAPI] Cannot load expansion playerstats due to an unknown issue.

junior musk
#

you probably have 2 playerstats expansions in your PAPI folder

#

/<server>/plugins/PlaceholderAPI/expansions

#

check for any file with playerstats in their name

#

if you have more than 1, delete them and keep 1

#

or delete them all and redownload the expansion

glass ether
#

i have contacted a few plugin owner and they all said come here for help. my boards are not updating. its all fronzen data from along time ago.

#

Ok ill try that now 🙂

junior musk
#

assuming by board you mean scoreboard, can you send its config?

glass ether
#

Scoreboard - Sidescorevoard - i also tryed to pay for a scoreboard all show the same data eg. time player 22hours - mined block 22,000. all stoped working over a week ago.

junior musk
#

and can you send that config?

glass ether
#

Sure

#

i am using ajLeaderboards - FancyHolograms ill pm the config

junior musk
#

I'm assuming this is it ? %ajlb_lb_statistic_hours_played_1_alltime_name% %ajlb_lb_statistic_hours_played_1_alltime_value%

#

can you run /papi parse me %statistic_hours_played% %ajlb_lb_statistic_hours_played_1_alltime_name% %ajlb_lb_statistic_hours_played_1_alltime_value%

#

and tell me what it returns?

glass ether
#

22 Myname 22

junior musk
#

and what is it showing in the hologram leaderboard?

glass ether
#

Yes

junior musk
#

that's not a yes/no question

glass ether
#

22

#

Same

junior musk
#

then it's working?

glass ether
#

No but its not going up. it has been on 22 for over a week

junior musk
#

/papi parse me %statistic_time_played%

#

what does this show?

glass ether
#

22h 46m 4s

#

Its just not updating im not sure why.

junior musk
#

if you run the command again, does it update the seconds/minutes?

glass ether
#

No its frozen on that number

junior musk
#

weird

#

could be another plugin preventing it from updating

glass ether
#

Yeah weird. any ideas? or maybe any sorta problem shooting?

junior musk
#

could you try without PlayTime ?

glass ether
#

I did before. i only installed that to try get the plugin working.

junior musk
#

I'm not sure

rustic pewter
#

[14:33:00 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[14:33:00 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_2240.00+-1+200.00 KR%
[14:33:00 WARN]: [PlaceholderAPI] [math] Cause: '2240.00+-1+200.00 KR' is not a valid Math expression.

unreal kite
#

how can i %math_%luckperms_meta_daily_trades%+1% this string to int?

in luckperms!

rustic pewter
# rustic pewter [14:33:00 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [14:33:00...

could i somehow make the string replace -1 with 0?

this is my current placeholder i have %utils_parse_changeoutput_equals_input:{townyadvanced_town_mayor}_matcher:{player_name}_ifmatch:{math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+{rentit_player_shop_price}+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}}_else:{math_0_{string_replacecharacters_number_{townyadvanced_daily_resident_tax}}+{rentit_player_shop_price}}%

junior musk
#

where does that come from

rustic pewter
#

could be townyadvanced_daily_nation_upkeep

junior musk
#

didn't we take care of that already?

rustic pewter
#

but it put it in the strign replacer

junior musk
#

oh you added a new placeholder

#

rentit_player_shop_price

#

/papi parse me %rentit_player_shop_price%

#

wait no it was there

#

idk

rustic pewter
#

%rentit_player_shop_price% outputs -1 if the player does not own a rent

junior musk
#

I don't understand

#

oh there's townyadvanced_daily_town_upkeep and townyadvanced_daily_nation_upkeep

#

I didn't realize

rustic pewter
#

yes

junior musk
#

/papi parse me %string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}% %string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}%

#

what does this say?

fleet ember
#

hello, does worker from discord really text you and say you have to pay 200 bucks or change email to a random email for seafty reasons?

junior musk
# rustic pewter 2240.00} 200.00

/papi parse me %math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+{rentit_player_shop_price}+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}%

rustic pewter
#

[14:41:44 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[14:41:44 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+{rentit_player_shop_price}+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}%
[14:41:44 WARN]: [PlaceholderAPI] [math] Cause: '{townyadvanced_daily_town_upkeep}+2500.0+{townyadvanced_daily_nation_upkeep}' is not a valid Math expression.

rustic pewter
junior musk
#

right

#

/papi parse me %utils_parse_math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+{rentit_player_shop_price}+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}%

#

sorry just doing multiple things at the same time

rustic pewter
#

that outputs 4940

#

that would be the correct number

junior musk
#

/papi parse me %utils_parse_changeoutput_equals_input:{townyadvanced_town_mayor}_matcher:{player_name}_ifmatch:{math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+{rentit_player_shop_price}+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}}_else:{math_0_{string_replacecharacters_number_{townyadvanced_daily_resident_tax}}+{rentit_player_shop_price}}%

rustic pewter
#

[15:00:30 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[15:00:30 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_2240.00+-1+200.00 KR%
[15:00:30 WARN]: [PlaceholderAPI] [math] Cause: '2240.00+-1+200.00 KR' is not a valid Math expression.

junior musk
#

o_O

#

run papi parse <PLAYER NAME> %utils_parse_changeoutput_equals_input:{townyadvanced_town_mayor}_matcher:{player_name}_ifmatch:{math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+{rentit_player_shop_price}+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}}_else:{math_0_{string_replacecharacters_number_{townyadvanced_daily_resident_tax}}+{rentit_player_shop_price}}%
from console with the correct player name

#

and send your TAB config just in case

rustic pewter
#

pasting that in the console,
[15:07:06 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[15:07:06 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_0.00+%
[15:07:06 WARN]: [PlaceholderAPI] [math] Cause: '0.00+' is not a valid Math expression.
[15:07:07 INFO]: math_0_0.00+%%

https://pastebin.com/ci1HYbZG

junior musk
#

how can it output different values o_O

#

you replaced your player name right?

#

and is the placeholder on the scoreboard not working?

#

can you send a screenshot?

#

?imgur

tender vaporBOT
rustic pewter
junior musk
#

not sure what the issue is

#

it should be fine

#

I have one last potential solution though

#

/<server>/plugins/PlaceholderAPI/config.yml
expansions -> utils -> shortcuts

  utils:
    shortcuts:
      rentmayor: "%utils_parse_math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+{rentit_player_shop_price}+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}%"
      rentnotmayor: "%utils_parse_math_0_{string_replacecharacters_number_{townyadvanced_daily_resident_tax}}+{rentit_player_shop_price}%"

/papi reload
/papi parse me %utils_parse_changeoutput_equals_input:{townyadvanced_town_mayor}_matcher:{player_name}_ifmatch:{utils_shortcut_rentmayor}_else:{utils_shortcut_rentnotmayor}%

rustic pewter
junior musk
#
  utils:
    shortcuts:
      rentmayor: "%utils_parse_math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+MIN(0,{rentit_player_shop_price})+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}%"
      rentnotmayor: "%utils_parse_math_0_{string_replacecharacters_number_{townyadvanced_daily_resident_tax}}+MIN(0,{rentit_player_shop_price})%"
wild dawn
#

if kitbattle can support vault when probably %changeoutput_>=_input:{%vault_eco_balance%}_matcher:5_ifmatch:[working]_else:% is the answer for my request

rustic pewter
junior musk
#

ah mb, I wrote MIN instead of MAX

#
  utils:
    shortcuts:
      rentmayor: "%utils_parse_math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+MAX(0,{rentit_player_shop_price})+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}%"
      rentnotmayor: "%utils_parse_math_0_{string_replacecharacters_number_{townyadvanced_daily_resident_tax}}+MAX(0,{rentit_player_shop_price})%"
rustic pewter
#

Awesome, thanks for the help, i might add some new things in the future, or do an esier system for this, but this work for now. again thanks for the help again as always 🙂

coarse pebble
#

Does anyone know if it's possible to use PAPI placeholder's in skript? I've found some addons that do it but there several years old.

#

I also saw this but I'm not sure how to use it

coarse pebble
#

oops

#

Sorry Prestley

fervent cove
#

so is there a way to make a placeholder for the GuildPlugin that returns diff chat colors per rank of the guild

#

like if it's bronze it gives &7 for Silver &f

#

something like that

manic badge
#

you can use changeoutput expansion

fervent cove
#

tysm bro

#

😔

manic badge
#

🤝

fervent cove
#

only defines 2 conditions

#

like what if u have 7

#

it's like
if the condition works do this
else
do that
u can't add more options

manic badge
#

🤔

#

i've never used that expansion 😅

fervent cove
#

oh haha

manic badge
#

ill reply if i get something from wiki, otherwise wait for anyone else's reply

fervent cove
#

all right thanks :)

mint fable
coarse pebble
#

Yeah

mint fable
coarse pebble
#

alrighty thanks

mint fable
#

otherwise, skript discord might know more info

#

gl

simple nexus
#

say %rng_1,10% just straight up doesn't work

#

no placeholders do.

river raft
#

my placeholderexpansion is not registering can someone help me eith that'

#

@here

simple nexus
#

please. like half my server doesn't work anymore

austere hawk
#

anyone know if theres a PAPI for fabric

#

i need it becuse of this

#

nvm

#

but my tab is all missed up

river raft
# sharp jay give more conteext

package org.example.battleroyale.nations;

import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;

public class NationsPlaceholderExpansion extends PlaceholderExpansion {

private final Nations plugin;

public NationsPlaceholderExpansion(Nations plugin) {
    this.plugin = plugin;
    plugin.getLogger().info("NationsPlaceholderExpansion constructor called");
}

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

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

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

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

@Override
public boolean register() {
    boolean registered = super.register();
    plugin.getLogger().info("NationsPlaceholderExpansion register() called. Result: " + registered);
    return registered;
}

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

    switch (identifier) {
        case "team":
            return plugin.getPlayerTeam(player);
        case "wins":
            return String.valueOf(plugin.getPlayerWins(player));
        case "kills":
            return String.valueOf(plugin.getPlayerKills(player));
        case "deaths":
            return String.valueOf(plugin.getPlayerDeaths(player));
        case "game_status":
            return plugin.isGameStarted() ? "In Progress" : "Waiting";
        case "queue_size":
            return String.valueOf(plugin.getQueueSize());
        default:
            return null;
    }
}

}

river raft
#

[06:32:56 WARN]: [Nations] PlaceholderAPI found, but unable to register expansion. Make sure PlaceholderAPI is up to date.

#

sry for ping i am trying to fix this sincr 2 days

river raft
#

do i have to manually install the expasion?

urban furnace
#

idk what happend with Pinger expansion

#

it didnt work

#

im install the Pinger expansion and wait 5 minutes, after wait i check again but it dont show Online

#

and have port 25565

junior musk
# simple nexus it only works with /parse

if it works in /papi parse me <placeholder>, then that means the plugin where you're using the placeholder doesn't support PlaceholderAPI, we can't do anything about it, reach out to its dev

junior musk
junior musk
simple nexus
#

together with every other plugin that previously supported papi? simultaneously, with no notification?

junior musk
#

the console?

#

and can you send screenshots of where the placeholders aren't working?

#

with the name of each plugin

#

?imgur

tender vaporBOT
rustic pewter
junior musk
#

wot

#

/tab parse me %utils_shortcut_rentmayor%

rustic pewter
#

it just output that placeholder in both colored output and raw colors

simple nexus
#

mythicmobs, executableitems, the console, the chat bat, everywhere

rustic pewter
#

would it somehow be possible to format a placeholder outputting something like 33000 to 33k?

#

found a way, but i get this error dispite the placeholder outputs the right numberi wanted

[01:45:02 WARN]: [PlaceholderAPI] [formatter] Cannot convert %town_balance_unformatted% to a double.
[01:45:02 WARN]: [PlaceholderAPI] [formatter] Invalid placeholder %formatter_number_shorten_townyadvanced_{town_balance_unformatted}%
[01:45:02 WARN]: [PlaceholderAPI] [formatter] Cannot convert {townbalanceunformatted} to a double.

#

the placeholder is %formatter_number_shorten_{townyadvanced_town_balance_unformatted}%

muted gulch
#

You may want to look at if that placeholder offers other formats.

muted gulch
#

Could also be that you have the wrong placeholder WITHIN the formatter placeholder, and so it's returning just text, and it can't conver that to a number.

formal bough
#

Is there an expension that allow to parse a placeholder into a existing placeholder
Ex:
%placeholder_<value>_list%
I would like to parse a placeholder in <value>

muted gulch
dusky thunder
#

Hi I'm using CheckItem expansion to detect PublicBukkitValues, which resides in the new minecraft:custom_data component, but it looks to me like CheckItem isn't really detecting it. Nothing of that sort pops up with %checkItem_getinfo:mainhand%
Is that a bug or intended?

Purpur: MC 1.21
P-API: 2.11.6
CheckItem: 2.7.5

Also colour codes are completely messed up for the chat output of the checkitem expansion, but I'm guessing that's a known issue

onyx valve
#

What’s a placeholder for top donator that I can use with decentholograms and ajleaderboards?

sturdy pilot
#

Hey for PlaceholderAPI

I am creating a leaderboard menu with deluxemenus.
Is it possible to get a top ten version of statistics like most time played, most kills etc?

%statistic_hours_played% - Will list the current players playtime that is looking at the menu. Can I list a top ten players too?
%statistic_player_kills% - Same for this, and a few others I am going to try.

junior musk
sturdy pilot
#

ah perfect, thanks so much!

#

I'm not sure what I should put in <type>
%ajlb_lb_statistic_time_played_1_<type>_name%

sour furnace
#

im creating a tpa menu but idk the placholder for the player name

#

can anyone help me

steep arch
#

%player_name%

fringe crystal
#

The CheckItem expansion doesn't seem to be working on 1.21 - is there an update planned at all? Thank you 🙂

sour furnace
steep arch
vivid sparrow
#

Yes

sour furnace
steep arch
#

and u need the expansion too

#

/papi ecloud download Player

sleek ravine
#

Hi, how I can install the expansion Enchantment ? I am getting error putting the .jar inside \plugins or inside \plugins\placeholderapi\expansions

sleek ravine
#

The text is so large and I can't send an image

manic badge
sleek ravine
#

that error is for when I put the .jar on \plugins

warm topaz
#

looks to be an issue with the expansion itself, get in touch with VK as hes the author

muted gulch
nova jolt
#

Does anyone know how to add many placeholders in the actionbar?

heady belfry
#

my placeholders don't work, can someone help me they look like this "%luckperms_prefix%"
(i solved rn)

vernal vector
#

Is there a way to add placeholderapi to fabric?

#

the one thats like ported over to fabric suuuuucks

#

would be nice if you guys made your own actual PlaceholderAPI for fabric

#

cause the other one thats not mantained by you guys is really bad

uncut folio
#

how do u remove decimals in math?
/papi parse rexmen %math_24-{server_time_H}*60%

#

it shows like this 12.00

#

%math_[precision]:[rounding]_<expression>%

#

how do u use this one?

sleek ravine
#

About this, I did a pull request last week, can someone accept it to fix the issue?

round grotto
#

I did %playerstats_server,player_kills% and it says Total on this server 0 player kills how do I make it so it's only the number

sleek ravine
covert yarrow
#

cj

#

character limit? what the fking cringe

#
[21:05:13 WARN]: [SCore] Async task for SCore v42.42.42 generated an exception
java.lang.NoClassDefFoundError: Could not initialize class de.shaded.checkitem.nbtapi.NBTReflectionUtil
        at de.shaded.checkitem.nbtapi.NBTCompound.getType(NBTCompound.java:1348) ~[?:?]
        at de.shaded.checkitem.nbtapi.NBTCompound.getCompound(NBTCompound.java:786) ~[?:?]
        at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.getItemAmount(CheckItemExpansion.java:987) ~[?:?]
        at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.checkItem(CheckItemExpansion.java:857) ~[?:?]
        at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.onPlaceholderRequest(CheckItemExpansion.java:757) ~[?:?]
        at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:32) ~[PlaceholderAPI-2.11.6.jar:?]
        at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.6.jar:?]
        at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.6.jar:?]
        at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[PlaceholderAPI-2.11.6.jar:?]
        at SCore (7).jar/com.ssomar.score.utils.placeholders.StringPlaceholder.replacePlaceholderOfPAPI(StringPlaceholder.java:462) ~[SCore (7).jar:?]
        at SCore (7).jar/com.ssomar.score.features.custom.conditions.placeholders.placeholder.PlaceholderConditionFeature.verify(PlaceholderConditionFeature.java:102) ~[SCore (7).jar:?]
        at SCore (7).jar/com.ssomar.score.commands.runnable.player.commands.While$1.run(While.java:85) ~[SCore (7).jar:?]
        at SCore (7).jar/com.ssomar.score.utils.scheduler.RegionisedSchedulerHook.lambda$runAsyncRepeatingTask$5(RegionisedSchedulerHook.java:53) ~[SCore (7).jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:217) ~[axolotl-1.21.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) ~[?:?]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NullPointerException [in thread "Folia Async Scheduler Thread Timer"]
        at java.base/java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
        at java.base/java.lang.Class.getDeclaredField(Class.java:2774) ~[?:?]
        at de.shaded.checkitem.nbtapi.NBTReflectionUtil.<clinit>(NBTReflectionUtil.java:59) ~[?:?]
        at de.shaded.checkitem.nbtapi.NBTCompound.getType(NBTCompound.java:1348) ~[?:?]
        at de.shaded.checkitem.nbtapi.NBTCompound.getCompound(NBTCompound.java:786) ~[?:?]
        at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.getItemAmount(CheckItemExpansion.java:987) ~[?:?]
        at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.checkItem(CheckItemExpansion.java:857) ~[?:?]
        at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.onPlaceholderRequest(CheckItemExpansion.java:757) ~[?:?]
        at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:32) ~[PlaceholderAPI-2.11.6.jar:?]
        at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.6.jar:?]
        at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.6.jar:?]
        at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[PlaceholderAPI-2.11.6.jar:?]
        at SCore```
modest cosmos
#

Hi, I am having an issue with the console spamming the following.

[23:42:12 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[23:42:12 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{server_tps_15}*5%
[23:42:12 WARN]: [PlaceholderAPI] [math] Cause: '20.05' is not a valid Math expression.

#

It's a constant spam if the players are online. If the server is empty, it stops.

#

I had added this to my bossbar plugin to keep an eye on the TPS but it started spamming the console so I removed it from the plugin but it is still spamming the console.

modest cosmos
#

I don't mean to be spamming but my server is using up so much CPU resources because of this spam, can someone please assist?

tender vaporBOT
outer sinew
#

Is there a way to edit expansions? I've been trying to make something that says "player last seen dd/MM HH:mm" but %player_last_played_formatted% returns me MM/dd/yy HH:mm:ss

manic badge
round grotto
#

I did %playerstats_server,player_kills% and it says Total on this server 0 player kills how do I make it so it's only the number please someone help

royal dock
# modest cosmos ^bump^

What do you expect the answer to be? 100? if so the placeholder Math requires - %math_<expression>% so you want %math_{server_tps_15}*5%

#

I want to know if there is a placeholder that can say if KeepInventory and PVP is on or off? I've looked high and low, but cant find anything. If not, does anyone know an easy way to make one?

junior musk
junior musk
junior musk
junior musk
#

so in your case: %playerstats_server,player_kills,only:number_raw%

#

there's also %playerstats_server,player_kills,only:number%, idk what's the difference but I guess this one is formatted or smth

round grotto
#

Okay

modest cosmos
junior musk
#

I wrote *15 instead of *5 by mistake in the placeholder

#

watch out for that when copying the placeholder 😅

modest cosmos
#

Still spamming

#

It does not seem to have gotten rid of the previously parsed items

junior musk
#

send the new error

#

or is it the same?

modest cosmos
#

Still the same error

junior musk
#

in which plugin are you using the placeholder?

modest cosmos
#

I'm just parsing it for now.

#

I have not set it on any plugin

junior musk
#

uh

modest cosmos
#

I wanted to set it on tab plugin which is on my proxy

junior musk
#

and what is it showing when you parse it?

modest cosmos
#

When I parse your code, it shows 100

junior musk
#

then it's working?

modest cosmos
junior musk
#

probably because you didn't remove the old placeholder from TAB's config

modest cosmos
#

[17:06:15 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{server_tps_5}*5%
[17:06:15 WARN]: [PlaceholderAPI] [math] Cause: '20.05' is not a valid Math expression.
[17:06:22 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[17:06:22 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{server_tps_15}*5%
[17:06:22 WARN]: [PlaceholderAPI] [math] Cause: '20.05' is not a valid Math expression.

junior musk
#

TAB continuously updates the placeholder

modest cosmos
junior musk
#

you may need to restart the proxy & backends then

#

at the same time*

#

as in, stop the proxy, stop the backends, and then turn them back on

modest cosmos
#

ServerInfo:
style: NOTCHED_20
color: 'RED'
progress: '100'
text: '&2&lTPS: %spark_tps%'

ServerInfo:
  style: NOTCHED_20
  color: 'RED'
  progress: '%math_{server_tps_5}*5%'
  text: '&2&lTPS: %spark_tps%'
junior musk
#

otherwise the placeholder will be kept in memory in either TAB on the proxy or in TAB-Bridge on the backends

modest cosmos
#

The first is what I have now, The second is what I had set and removed

modest cosmos
modest cosmos
#

So the solution for PlaceholderApi console spam is to restart all server to clear the memory. Because TAB plugin stores data on proxy and ALL servers and keeps parsing them even when removed. TAB needs to get their act in order. @junior musk You are a star my friend. Thank you for your assistance. 💛

junior musk
#

yeah, when TAB on proxy loads a PAPI placeholder, it'll ask the Bridge to parse it, and the bridge will parse it and forward back the output.
Issue is, even if proxy TAB is reloaded, TAB-Bridge's placeholders in memory aren't cleared, so it'll just keep parsing the old ones as well, forwarding them back to the proxy which will acknowledge them again

modest cosmos
muted gulch
muted gulch
junior musk
#

I remember the dev tried to find a way to stop it from happening, but I don't remember exactly what happened

muted gulch
raw yacht
#

Is there a placeholder for 1 block walked, rather than cm? %statistic_walk_one_cm%

junior musk
#

pretty sure 1 cm = 1 block

raw yacht
#

Oh?

#

I always heard one block is a 1m, so that's why I was confused. Thank you

junior musk
#

ah, not sure then but I think it is

#

try /papi parse me %statistic_walk_one_cm%, walk 1 block, try the cmd again and see if it increased of 1 or 100

#

if it's +100, use %math_{statistic_walk_one_cm}/100% instead

raw yacht
#

let me try

covert yarrow
#

@mint fable

tender vaporBOT
covert yarrow
#

does checkitem need updated?

#
java.lang.NoClassDefFoundError: Could not initialize class de.shaded.checkitem.nbtapi.NBTReflectionUtil
    at de.shaded.checkitem.nbtapi.NBTCompound.getType(NBTCompound.java:1348) ~[?:?]
    at de.shaded.checkitem.nbtapi.NBTCompound.getCompound(NBTCompound.java:786) ~[?:?]
    at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.getItemAmount(CheckItemExpansion.java:987) ~[?:?]
    at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.checkItem(CheckItemExpansion.java:857) ~[?:?]
    at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.onPlaceholderRequest(CheckItemExpansion.java:757) ~[?:?]
    at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:32) ~[PlaceholderAPI-2.11.6.jar:?]
    at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.6.jar:?]
    at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.6.jar:?]
    at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[PlaceholderAPI-2.11.6.jar:?]
    at SCore (7).jar/com.ssomar.score.utils.placeholders.StringPlaceholder.replacePlaceholderOfPAPI(StringPlaceholder.java:462) ~[SCore (7).jar:?]
    at SCore (7).jar/com.ssomar.score.features.custom.conditions.placeholders.placeholder.PlaceholderConditionFeature.verify(PlaceholderConditionFeature.java:102) ~[SCore (7).jar:?]
    at SCore (7).jar/com.ssomar.score.commands.runnable.player.commands.While$1.run(While.java:85) ~[SCore (7).jar:?]
    at SCore (7).jar/com.ssomar.score.utils.scheduler.RegionisedSchedulerHook.lambda$runAsyncRepeatingTask$5(RegionisedSchedulerHook.java:53) ~[SCore (7).jar:?]
    at io.papermc.paper.threadedregions.scheduler.FoliaAsyncScheduler$AsyncScheduledTask.run(FoliaAsyncScheduler.java:217) ~[axolotl-1.21.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) ~[?:?]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NullPointerException [in thread "Folia Async Scheduler Thread Timer"]
    at java.base/java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
    at java.base/java.lang.Class.getDeclaredField(Class.java:2774) ~[?:?]
    at de.shaded.checkitem.nbtapi.NBTReflectionUtil.<clinit>(NBTReflectionUtil.java:59) ~[?:?]
    at de.shaded.checkitem.nbtapi.NBTCompound.getType(NBTCompound.java:1348) ~[?:?]
    at de.shaded.checkitem.nbtapi.NBTCompound.getCompound(NBTCompound.java:786) ~[?:?]
    at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.getItemAmount(CheckItemExpansion.java:987) ~[?:?]
    at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.checkItem(CheckItemExpansion.java:857) ~[?:?]
    at com.extendedclip.papi.expansion.checkitem.CheckItemExpansion.onPlaceholderRequest(CheckItemExpansion.java:757) ~[?:?]
    at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:32) ~[PlaceholderAPI-2.11.6.jar:?]
    at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.6.jar:?]
    at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.6.jar:?]
    at PlaceholderAPI-2.11.6.jar/me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[PlaceholderAPI-2.11.6.jar:?]
    at SCore (7).jar/com.ssomar.score.utils.placeholders.StringPlaceholder.replacePlaceholderOfPAPI(StringPlaceholder.java:462) ~[SCore (7).jar:?]
    at SCore```
vivid sparrow
#

Yes

onyx blaze
#
@Override
    public String onRequest(OfflinePlayer p, @NotNull String params) {

        if (params.equalsIgnoreCase("Mycoolstring")) {
            return "String";
        }

        if (params.equalsIgnoreCase("wins")) {
            return DatabaseManager.getInstance().getWinsByUUID(p.getUniqueId());
        }

        return null;
    }

Is it possible in a way to let the "wins" also return as a int

vivid sparrow
#

No, just turn it into a string

manic seal
#

can anyone help placeholderApi?
more precisely with expansions java-script

I'm trying to make a simple online/offline player detector.
I have a player's nickname written in my placeholder. And I'm trying to determine his ping, if it exists, then the player is online.
But I wrote a script and it always says offline

var nick = "%mycommand_variables_obmen-name%";
var ping = "%player_ping_" + nick + "%";

function placeholderCheck() {
    if (parseInt(ping) > 1) {
        return "&7(&aOnline&7)";
    } else {
        return "&7(&cOffline&7)";
    }
}

placeholderCheck();
manic seal
empty spire
#

hey guys im using %animations_<wave>[Donator]</wave>% but the chat has not animation just random static colours any ideas?

rustic pewter
# junior musk /tab parse me %utils_shortcut_rentmayor%

somehow the placeholder broke again, does it have something with github being down?

[23:33:28 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[23:33:28 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_townyadvanced_daily_resident_tax%
[23:33:28 WARN]: [PlaceholderAPI] [math] Cause: 'townyadvanced_daily_resident_tax' is not a valid Math expression.

junior musk
#

no you're just missing {} around the towny placeholder

rustic pewter
#

i havent touched it though

rustic pewter
# junior musk no you're just missing {} around the towny placeholder
      rentmayor: '%utils_parse_math_0_{string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}+MAX(0,{rentit_player_shop_price})+{string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}}%'
      rentnotmayor: '%utils_parse_math_0_{string_replacecharacters_number_{townyadvanced_daily_resident_tax}}+MAX(0,{rentit_player_shop_price})%'
      townbank: '%formatter_number_shorten_{townyadvanced_town_balance_unformatted}%'
junior musk
#

wot

#

uh

#

not sure what the issue is

rustic pewter
# junior musk not sure what the issue is

this is the exact thing its printing in the console. although the placeholder still seems to work

[23:52:05 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[23:52:05 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_townyadvanced_daily_resident_tax%
[23:52:05 WARN]: [PlaceholderAPI] [math] Cause: 'townyadvanced_daily_resident_tax' is not a valid Math expression.
[23:52:05 ERROR]: Could not pass event BlockPlaceEvent to ODailyQuests v2.2.5

reef mortar
#

@native pumice just replied to your issue on GitHub with a fix (didnt know if you needed it asap) 🙂

native pumice
austere hawk
#

Hello, I have a problem with placeholder api in my bungee server, the bungee or the plugin doesn’t find the JavaPlugin class in bukkit when the server is starting

hearty breach
#

I can't find it anywhere, been looking around. Is there a way to use this server_time placeholder to countdown to a specific time everyday, want to make timers for events that are at 3 different times of the day.

#

Struggling to understand how that placeholder works (I've never been good with placeholders)

#

For example how would I make a countdown that counts down to 6PM est everyday.

modest cosmos
modest cosmos
hearty breach
#

Huh, if I run that command it just says the placeholder you sent

#

and if I use that placeholder the same, am I missing a addon or something idkk

modest cosmos
#

/papi ecloud download math
/papi ecloud download server
/papi reload
Then do
/papi parse me %math_{server_time_hhmm}=1800%

#

This will give you 0 (equals to false) and 1 (equals to true) only when it's 6pm

modest cosmos
hearty breach
#

I mean it does that but I don't think that's really what I'm looking for

#

Looking for it to show a countdown in hours,minutes,seconds to the time

#

Not just to show when it is that time

modest cosmos
muted gulch
muted gulch
# hearty breach Looking for it to show a countdown in hours,minutes,seconds to the time

This is as close as I got, and frankly I can't even understand the logic of it anymore. There were some logic issues, because the countdown would break at a certain time:

%server_countdown_dd/MM/yyyy HH_{server_time_dd/MM/yyyy} 26:25%

I saw this that Tanguyab suggested:

https://www.spigotmc.org/threads/placeholder-countdown-5-reward.569616/

But it looks like the placeholder extension he referenced is no longer available, maybe he can update this for us (He's in the support role)?

junior musk
#

NestedPlaceholders is now Utils

#

%utils_parse_server_countdown_dd/MM/yyyy HH_{server_time_dd/MM/yyyy} 26:25%

muted gulch
#

Makes sense.

#

Do you know if there's a flaw with the one that I had above? The server countdown one? I use it, but frankly, I distinctly remember it having some issue.

#

The one in the spigot thread would be this %utils_parse_server_countdown_dd.MM.yyyy_{math_0_{server_time_dd}+1}.{server_time_MM}.{server_time_yyyy}%

junior musk
#

idk

muted gulch
#

Me neither LMAO

junior musk
#

I do see an issue with your placeholder though

#

you have HH for hours, but provided 26:25

#

which I guess would be for hours:minutes, but I don't remember days having more than 26 hours lol

muted gulch
# junior musk which I guess would be for hours:minutes, but I don't remember days having more ...

I promise I know 🤣 there was a specific reason I did that, and it's been so long (about a year) that I can't remember why, but I vaguely remember it being because the placeholder was returning 0 time to the countdown AFTER the time.

Ex. If I wanted to have a countdown to 3 AM that reset every single day - and I set it to 03:00, once it would hit 03:01 on the server, it would display 0 minutes to the countdown.

With the higher number (Ex. 27:00) it would count down correctly, until it hit's 00:00, and then it would reset 🤣

But that would at least be vaguely correct.

#

It was the only temporary solution I could find - and then I forgot to go back and fix it.

junior musk
#

fair enough

#

though you're still missing the :mm after the HH then

muted gulch
#

I'd rather just use a solution that actually works LOL

#

it was really janky

#

but I have a hard time wrapping my head around the logic for it

muted gulch
junior musk
#

well right now it countdowns to tomorrow

#

{math_0_{server_time_dd}+1}
current day + 1 = tomorrow
{server_time_MM}.{server_time_yyyy}
current month & current year

muted gulch
#

ok, I understand that, am I able to define a time in the server_time placeholder?

junior musk
#

what do you mean?

muted gulch
#

because of my lack of understanding I am not explaining it well

#

but essentially

#

how do I make one that counts down to say 3 am?

#

for the next day

#

and when it hits 3 am, it resets?

junior musk
#

%server_time_<format>% returns information of the current instant, right now, today at this hour, minute, second, nanosecond

#

%server_time_dd% would return the current day number of the month

muted gulch
#

so am I pursuing the wrong thing entirely in this instance?

junior musk
#

I'm not sure what you're looking for

#

%utils_parse_server_countdown_dd.MM.yyyy.HH_{math_0_{server_time_dd}+1}.{server_time_MM}.{server_time_yyyy}.03%

#

next day, 3am right?

#

that should do it

#

I think

muted gulch
#

I don't mean to be bothersome, but I'll give you my exact usecase here.

My server restarts everyday at 3 AM. I want a countdown in my DeluxeMenu that counts down the time to the restart, but once it hits 3 am, it needs to restart.

junior musk
#

I added HH to the format, and specified 03 for the hour

#

yeah that should do it

muted gulch
#

sweet, ill try it out - thanks for your help. For whatever reason, this set of placeholders is just making me go blank.

junior musk
#

understandable

muted gulch
#

I've got a lot of experience with placeholderAPI and DeluxeMenus, but this one just

#

idk I can't wrap my head around it well enough

junior musk
#

though you did make me realize that the placeholder could be simplified to this %utils_parse_server_countdown_dd.MM.yyyy.HH_{math_0_{server_time_dd}+1}.{server_time_MM.yyyy}.03%

#

combining {server_time_MM}.{server_time_yyyy} into {server_time_MM.yyyy}

#

same thing, just a little nitpick 😅

muted gulch
junior musk
#

eh, arguable, depends on the matter

#

but here it's fine

muted gulch
#

Ex. 03:15

muted gulch
#

and by "we" - I mean literally only Tanguygab

junior musk
#

my name ;-;

muted gulch
junior musk
#

you forgot a g

muted gulch
mossy fulcrum
#

Hello, can anyone help me, please? I've already tried in several ways. I updated to 1.20.6 and the Player extension doesn't seem to work anymore, am I wrong? Any tips?

https://paste.helpch.at/amogilowak.md

junior musk
#

redownload the expansion

#

/papi ecloud download Player
/papi reload

desert depot
hearty breach
muted gulch
junior musk
#

or what was your original idea ?

hearty breach
#

Well my original idea was what you got working %utils_parse_server_countdown_dd.MM.yyyy.HH_{math_0_{server_time_dd}+1}.{server_time_MM}.{server_time_yyyy}.03% but I think we were both curious what it'd be if we wanted a countdown for say 3:15

junior musk
#

%utils_parse_server_countdown_dd.MM.yyyy.HH:mm_{math_0_{server_time_dd}+1}.{server_time_MM.yyyy}.03:15%

#

just added :mm after HH and :15 after 03

hearty breach
#

Tyty

twilit terrace
#

Btw isn't possible to translate the LocalTime expansion or even the PlaceholderAPI expansions to ES ?=

vivid sparrow
#

@desert depot the parseother expansion was updated because it was causing some security problems. You now have to use the parseother_unsafe_... placeholder if you want to allow a placeholder to be used as the player name, e.g. {guild_leader}
Also, we HIGHLY recommend to use argument requirements to validate the arguments, e.g. the player argument has a length between 3 and 16 and it contains only valid characters for a name
Here's an example: https://paste.helpch.at/medacemeve.yaml

mossy fulcrum
vivid sparrow
#

The player expansion doesn't support yet 1.20.6 or whatever version you are using

outer pendant
#

Hi, i've got a problem with a placeholder CheckItem.
I have deluxemenus item which is have left click requirements
If i put only one requirement the check is succesful, but if im trying to put 2 or more requirements, they doesnt work. Can i check more then one item in player's hand in one requirement?
left_click_requirement: requirements: 1: type: string equals input: "%checkitem_mat:DIAMOND_HELMET,inhand:main%" output: "yes" 2: type: string equals input: "%checkitem_mat:DIAMOND_CHESTPLATE,inhand:main%" output: "yes" deny_commands: - '[sound] ENTITY_ILLUSIONER_HURT' - "[message] &cYou should hold armor in your hand"

cold walrus
#

1.21.1

#

my scoreboard is messed up.

mint fable
candid jay
#

%checkitem_getinfo:0_name% %checkitem_getinfo:{slot}_name%

#

am I doing this wrong? I'm trying to get the name of the item sitting in the users hotbar

#

im trying to get an executable items name

#

I tried /papi parse me %checkitem_getinfo:0% and I do get the item

#

I must be unsure how to get the items name

#

/papi parse me %checkitem_getinfo:0_mat:anything%

got me the item mat, but still not sure how to get the name

outer pendant
candid jay
#

lol got it by doing:
%checkitem_getinfo:0_namecontains:%

wiki is a little vague with using the getinfo which is unfortunate since that's the only reliable way to get item info

#

had to pretty much guess how to use this and if null string is patched, this will stop working

tepid bridge
#

The Server placeholder updated, and since its updated its broken AM/PM in the %server_time_hh:mm aa% placeholder, ive gone through and remoed all aa I can find but its still spamming errors.
DateTimeFormatter is correct, and this did work previous to its update.

[11:55:22] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mm aa"
[11:55:22] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mmaa"
[11:55:22] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mm_aa"
[11:55:22] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mm aa"
[11:55:22] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mmaa"
[11:55:22] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mm_aa"
[11:55:23] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mm aa"
[11:55:23] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mmaa"
[11:55:23] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mm_aa"
[11:55:23] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mm aa"
[11:55:23] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mmaa"
[11:55:23] [TAB-Bridge Placeholder Refreshing Thread/WARN]: [PlaceholderAPI] [server] Could not parse DateTimeFormatter from string "hh:mm_aa"
#

^ to go with that, the Expansion-server.jar ecloud on my creative wasn't updates, and it isn't spamming the error message.

IM gonna copy this older Expansion-server.jar from creative to survival to supress the messages and get AM/PM working again, not even sure how the hell to report the bug because it tells me on github im not allowed to report bugs for expansions

vivid sparrow
#

Open it on the expansion's repo @tepid bridge

tepid bridge
vivid sparrow
#

On the same organisation, PlaceholderAPI

tepid bridge
#

Took me ages to figure out where these bloody errors were coming from

#

I'll have a look thanks!

tepid bridge
#

Yeah, it was working fine 🤣

vivid sparrow
#

Very weird

outer pendant
warm topaz
#

well yeah u can only hold 1 item in main hand

#

if u want one OR the other requirement to be successful, i believe u need to use minimum_requirements and possibly the optional option

outer pendant
#

is any other ways to check item in hand? i need the check if player holds any armor in his hand

warm topaz
outer pendant
#

Just one more question. Is any chance to get output how many days player registered on the server? I want to give a special item for player only if he joined to the server atleast 7 days ago

warm topaz
#

%player_first_join% looks to be returning milliseconds
so find out how many milliseconds in 7 days
then use math expansion

fathom heart
#

when i try to refister anything via this command /papi register ValhallaPlaceholders_o611g0Q.jar i get failed to register expansion form (name) any ideas on why and what i can do to fix it ?

#

the placeholder works when i /papi parse Bearcraft02 %valhallammo_difficulty_regional_rounded% but dose not work when i use a scorboard

vivid sparrow
#

Why do you register it by command? Just reload the plugin (papi)

fathom heart
#

due to the socrbard isue

warm topaz
#

what scoreboard plugin are u using?

vivid sparrow
#

If you are talking about vanilla scoreboard, it will never work

warm topaz
#

if its working through the command then the placeholder is working fine, its just whether or not the scoreboard can display that placeholders

fathom heart
#

animated scoreboard

vivid sparrow
#

Mvdw plugin?

fathom heart
#

idk what Mvdw menas

vivid sparrow
#

Send a link to the plugin

fathom heart
#

AnimatedScoreboard cant send links

#

but this is the name

vivid sparrow
#

Yes you can, but not masked, as the bot said

fathom heart
#

did not even mean to mask it

#

od

vivid sparrow
#

Ye anyways, it should work on the scoreboard if it works on the parse command

fathom heart
#

it dose not tho thats the thing

#

i coppy it 100% how it is in the command

warm topaz
#

have u enabled placeholderapi in its config?

fathom heart
#

yes it is enabled

#

i checked but its on by defalt

warm topaz
#

restarted server?

fathom heart
#

yes

#

and other placholders work like %player_gamemode%

warm topaz
fathom heart
#

but this one works in the command but not in the socrbord

fathom heart
vivid sparrow
#

Make sure there are no errors in console

warm topaz
#

think most people use TAB nowadays

fathom heart
#

it just out puts a whole number

solid dagger
mint fable
# outer pendant Im trying to make check for any amor in the hand Included all types of armor
   left_click_requirement:
      minimum_requirements: 1
      stop_at_success: true
      requirements:
        1:
          type: string equals
          input: "%checkitem_mat:DIAMOND_HELMET,inhand:main%"
          output: "yes"
          optional: true
        2:
          type: string equals
          input: "%checkitem_mat:DIAMOND_CHESTPLATE,inhand:main%"
          output: "yes"
          optional: true
      deny_commands:
      - '[sound] ENTITY_ILLUSIONER_HURT'
      - "[message] &cYou should hold armor in your hand"

you need to use minimum_requirements

outer pendant
vague haven
#

I am trying to use Utils to get the weekly playtime from the plan plugin of a player in a objective_entryposhigh position.

I currently working with this, but it is not working:

%utils_parseplaceholder:[objective_entryposhigh_{GymLeaderScore}{1}]plan_player_time_active_week:objective_entryposhigh{GymLeaderScore}{1}%

Does anyone know how to make this work or if there is a better way to do what I'm trying to do? Also is it possible to pull a placeholder from all players of a certain rank?

clear eagle
#

site shutdown?

north fern
warm topaz
#

were working on getting it back up

hollow gyro
#

Getting error: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null
no idea why ive done everything properly including depending paceholder api in config.yml and registering it properly

amber orchid
#

Hi, is there some papi expansion or a way in general to get an specific part from a permission. I used to use %cmi_user_maxperm_pa.limit_0%, but I don't want to use CMI anymore. This cmi placeholder returns me the number of auctions player can have.
pa.limit.14 returns 14

dawn ember
#

Is it possible to display papi in a discord channel? I was thinking it would be neat to put %redisbungee_total% in one of my channels

muted gulch
# dawn ember Is it possible to display papi in a discord channel? I was thinking it would be ...

I mean - not a dynamically updated one, but you could parse it with a plugin that then sends a message to discord.

I use Denizen Scripting for a /report lag function that sends me a ton of Placeholders on the server’s TPS and Resource usage whenever someone submits a report (it goes into a staff discord channel), but - it’s static, once the result is parsed - it’s just a static string sent to discord via EssentialsDiscord.

junior musk
#

I mean - not a dynamically updated one
why not?

#

compared to MC's chat system, you can edit Discord messages, so it'd be possible

#

or you could even edit the channel's description instead, DiscordSRV has that

vivid sparrow
queen vine
#

anyone know why /papi parse doesnt work on only one of my servers?

#

on one of them its fine

#

but on the other when i type /papi parse Projeck %any_placeholders% it just says "You must provide a target and message"

#

but i did provide target and message :(

hollow gyro
# vivid sparrow Make sure you don't shadow papi, the scope should be `provided` if you use maven...

im done that using .iml but the error still persists. this is the code for registering it on the main class

        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            getLogger().info("PlaceholderAPI found, registering expansion...");

            Bukkit.getScheduler().runTaskLater(this, () -> {
                try {
                    new MiningLevelingExpansion(this).register();
                    getLogger().info("MiningLevelingExpansion registered successfully.");
                } catch (Exception e) {
                    getLogger().severe("Failed to register MiningLevelingExpansion: " + e.getMessage());
                    e.printStackTrace();
                }
            }, 40L); // 2 seconds delay (40 ticks)
        } else {
            getLogger().warning("PlaceholderAPI not found. Placeholders will not be available.");
        }```
hollow gyro
#

sorry for the @ ping, it automatically does it when i reply to msges sorry

wooden mauve
#

There is some expansion that detects when a player is looking at another player? (Like how the enderman detects that you're looking at them)

hearty breach
#

I can't seem to find something like this but is there a placeholder I can use to just set a 1 hour timer? Trying to make events, so when event is triggered, want to reset the timer on my hologram to be 1 hour, then at 1 hour I'm going to run the event again, and want to reset again and so on

brisk brook
#

Try that

brave owl
#

ah nevermind

#

it was the buycraft expansion

#

🙂

brisk brook
#

It's possible to have multiple outputs with ChangeOutput? I need to return different values depending on which value I give to him

brisk brook
#

Found that String can do it, but it's possible to let it multiple outputs? I do have a %Variable_1% that returns an integer (1, 2, 3, 4, 5 or 6) and I need to change that number into a String, but the expansion just allows me to do a If and Else (so, only 2 options)

tender vaporBOT
tulip brook
#

is there a placeholder for the time left to something?

#

like i want a cooldown for each sunday at 16 (4PM)

opaque apex
#

Could someone help me with the Javascript extension to create a placeholder when a player gains profession experience via AuraSkills?

vivid sparrow
#

And do what? You can not / should not listen to events with the js expansion

opaque apex
#

check when it gains xp and display it

agile bramble
#

Hello, is there any reason why PAPI cloud placeholders load a bit late, when players an connect already?

#
[06:42:14] [TAB Processing Thread/INFO]: [TAB] [WARN] Placeholder %luckperms_meta_realweight% used in sorting type PLACEHOLDER_HIGH_TO_LOW returned "%luckperms_meta_realweight%" for player Wr1ghtyb11, which is not a valid number.
[06:42:14] [luckperms-command-executor/INFO]: [LP] wr1ghtyb11 does not inherit from packon in context global.
[06:42:14] [Server thread/INFO]: Wr1ghtyb11[/xxx39554] logged in with entity id 411 at ([world]-5.198372066317747, -60.0, -229.763991209098)
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: betterteamsextra [1.1]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: vault [1.8.1]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: otherplayer [2.1.0]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: luckperms [5.4-R2]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: math [2.0.2]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: statistic [2.0.1]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: localtime [1.2]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: floodgate [1.5.0]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: limboauth [1.0.0]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: server [2.6.2]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: moregradients [0.2-BETA]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: parseother [1.5.0]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8]
[06:42:15] [Server thread/INFO]: [PAPI] [Javascript-Expansion] 5 scripts loaded!
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: javascript [2.1.2]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: changeoutput [1.2.2]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: worldguard [1.4.2]
[06:42:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered external expansion: cooldownbar [1.1]
[06:42:15] [Server thread/INFO]: 17 placeholder hook(s) registered! 4 placeholder hook(s) have an update available.

It's causing the issue with TAB then

grave yarrow
#

Hey! 👋
I'd like to have a very clean server start, and something that often catches my eye are some PAPI warnings and I was wondering what I can do to fix them.

[16:47:04 WARN]: [PlaceholderAPI] Cannot load expansion votingplugin due to an unknown issue.
[16:47:04 WARN]: [PlaceholderAPI] There was an issue with loading an expansion.```
sharp bloom
gilded bough
#

Hey Prestley, can you give me a hand with checkitem when you get a chance?

quiet nova
#

i have a 1.12.2 server and im using the lastest version of papi, when i download a placeholder expansion and try to use /papi reload the papi doesnt register the expansion, is there a problem with the java version 1.12.2 servers use? should i change my papi version or there is a problem with the expansions that i try to download?

vivid sparrow
#

What expansion exactly? @quiet nova

quiet nova
#

in console it says that these expansion have been compiled with a newer version of java

tender vaporBOT
dense storm
#

Hello, I installed an aternos server. I wrote my own commands in the Animated Scoreboard plugin and reloaded /asb. Then I added Vault, Server and player with /papi ecloud download. Finally I typed /papi reload but papi reload didn't work. I tried on other servers but /papi reload doesn't work, why?

dense storm
quiet nova
#

keep that in mind that your expansions need to be java 8

dense storm
scenic fulcrum
#

anyone knows why the vault placeholders arent working in my sternalboard?

native gulch
#

hello i need help, i try doing /ajlb add vault_eco_balance and /ajlb add playtime_time but it says it does not give a murical value, make sure the placeholder returns a number that is not formatted

#

Its on ajleaderboards

gilded bough
# sharp bloom wut u need help with

I’m trying to use checkitem to reapond with the integer value of an nbtint, instead of just telling me if it matches against what I’m holding

#

If you have any possible ideas for how to get this info out, I would be very grateful

#

Bonus points if it also works for an nbtstring

mint fable
#

%checkitem_amount_...% @gilded bough

#

that will return amount of items matched

sullen spade
#

Hi

gilded bough
sullen spade
#

sry to write this but i need some help

#

I want to make a advancement viewer using placeholder but after i finish the gui i saw that this is not working can someone help me?

mint fable
gilded bough
mint fable
#

what did you do exactly? any errors?

gilded bough
#

I can send the problem when I get back in a few hours, but that was why I thought I was doing something wrong

#

Specifically for nbtstrings and nbtints, using getinfo doesn’t work

mint fable
#

what mc version

gilded bough
#

1.21.1

mint fable
#

ah ya, probably not

#

I haven't touched the expansion in a while

gilded bough
#

are there plans to update it?

mint fable
#

not from me atm, it's os though

#

ugh ig all it needs is a recompile

#

that's why os is good

gilded bough
#

welp, entire server relies on it

mint fable
#

i just can't look at the PRs

#

no time

gilded bough
#

time to die

#

well thanks anyways, appreciate it

mint fable
#

i will update from the pr that exists now @gilded bough

gilded bough
#

If you could point me in the right direction I could have my team try to work on it

mint fable
#

most trusted+ have access to stuff like this fyi, if I'm not around

#

and if they are willing to ofc

sullen spade
#

@mint fable can you help me please i have only one question.....

mint fable
#

don't ping people, just ask your question

tender vaporBOT
sullen spade
#

uh ok

#

I want to make a advancement viewer using placeholder but after i finish the gui i saw that this is not working can someone help me?

mint fable
#

i can not right now

#

best to be patient and wait for somebody that can

#

I saw your question earlier, I did not respond because I could not help.

sullen spade
#

k

mint fable
native gulch
#

@mint fable sorry for pinging but been trying to get someone to answer for a couple of hours now

native gulch
#

i need help, i try doing /ajlb add vault_eco_balance and /ajlb add playtime_time but it says it does not give a murical value, make sure the placeholder returns a number that is not formatted
Its on ajleaderboards

mint fable
#

Have patience and don't ping people

tender vaporBOT
native gulch
#

but yet other people got responses but i didnt

#

i wouldnt have even gotten a response and still didnt

sullen spade
#

i am in the same position

gilded bough
gilded bough
#

Will do soon as I get home, just got off work

mint fable
sharp bloom
#

oh the getinfo indeed be acting out 💀

#

the %checkitem_getinfo:0_lorecontains:1% doesnt work

#

oke wait cause i m dumb i had an item w no lore on slot 0

#

the %checkitem_getinfo:mainhand_nbtints: / nbtstrings:% seems to not be working w the latest checkitem update either, it returns an empty string OKK

full zephyr
#

Hello! I hope this is the right channel. I am trying to get support for deluxe menus! Can anyone help?
I need the menu to target a player for example /about <player> and then all of the placeholders within the menu would take info from that player can anyone help with this?

gilded bough
#

I thought it was something I had forgotten

sharp bloom
#

nah, it even broke to some of my menus too

#

and the method used to be working

gilded bough
#

it nuked mine, they rely heavily on checking tags

sharp bloom
#

i mean, same 💀 but havent noticed that it had an issue

#

i use it to upgrade tools and apply enchants

gilded bough
#

I'm building a menu for exactly that using AdvancedEnchants, thats why I need it

sharp bloom
#

i ll prob contact again the dev guy who i commissioned to fix the string and ints checks in a pr OKK

gilded bough
#

Alright, let me know how it goes then because if that guy can't come through then I might have someone to help

mint fable
#

%checkitem_getinfo:mainhand_nbtints:value.id=something%

sharp bloom
#

yeah i m aware of that

mint fable
#

👍

sharp bloom
#

%checkitem_getinfo:offhand_nbtstrings:PublicBukkitValues..score:score-displayenchant=name% for example

mint fable
#

ah yeah, the getinfo wasn't updated by the og guy i see

sharp bloom
#

yeah it was only for string and ints

mint fable
#

it doesn't look hard to do, but I do not have time to do and test

sharp bloom
#

already contacted him regarding that

mint fable
#

just wasn't looked at and modified

sharp bloom
#

OKK well, i didnt rly remembered back then that i was using getinfo too

#

and i litteraly use getinfo in almost 250 situations on my server 💀

mint fable
#

happens when it's os, nobody really knows all about the project

sharp bloom
#

oke fail, cause where is the img 💀

#

nvm

#

i have 1207 results of the checkitem being used on my server

#

2303 of math sideeye

#

oh rip, utils is low only 1009

mint fable
#

das a lot

#

lol

junior musk
#

I'm pretty sure it doesn't detect placeholders

#

just the word alone

sharp bloom
#

its the placeholders 💀

#

i m doing a search to replace via vsc

sly fulcrum
sharp bloom
junior musk
gilded bough
#

I’m rooting for whoever is attempting to make the fix fingerguns

sharp bloom
#

check it out

junior musk
#

ah

#

my bad

junior musk
sharp bloom
gilded bough
sharp bloom
gilded bough
#

@sly fulcrum thank you very much fingerguns

#

are there any lords awake who can merge that pr 🥺

torpid vortex
#

How do I get a player's coordinates?

#

Placeholder

manic badge
#
/papi reload```
`%player_x%`, `%player_y%`, `%player_z%`
should work fine
wooden warren
#

Hello, I want to use the PlaceholderAPI in my plugin. I'm using PlaceHolderAPI#setPlaceholders. The problem is, I don't have access to a Player object. How can I set placeholders without one? Simply providing null doesn't seem to work

junior musk
#

null does work

#

though not all placeholders support having no players

#

for example, %server_tps_1% will work fine, but %player_name% won't

wooden warren
junior musk
#

send your code

wooden warren
#

I wanted to upload an image but I can't

junior musk
#

?paste

tender vaporBOT
junior musk
#

?imgur

tender vaporBOT
wooden warren
junior musk
#

well... you're not replacing the str variable

#

you're just calling the method but you aren't doing anything with the String it returns

wooden warren
#

🤦‍♂️

#

Thank you for the help, that was a really embarassing mistake on my part

pallid igloo
#

Hi everyone. i need one litle help. I need get player biome using placeholder API, but return this result

- "Biome: %player biome%"
result: Biome: FROZEN_RIVER```

Just need change format of result to

```text
Biome: Frozen River```
sharp bloom
floral jolt
#

i need help with afk in tab

#

when im afk it says YES and if im not it says NO

#

i want to change it to if im afk to say AFK not YES 😄

sacred spoke
#

hey people im tryin to setup a formatter but it isnt workin can anyone help me

gilded bough
#

thank you Kristopher!

ionic socket
#

Hi Everyone.
Have a way that I can display my game placeholders on a DiscordBot?

#

A Discordbot created using JDA.

odd galleon
#

i want to add top kill and death leaderboaed vail hologram without any other plugin. what is placeholder for that

muted rain
odd galleon
#

stats expansion?

muted rain
# ionic socket Hi Everyone. Have a way that I can display my game placeholders on a DiscordBot?

https://www.spigotmc.org/resources/rest-placeholderapi.90266/
If you want to use player specific placeholders, this might be a problem though: "While it supports placeholderAPI, allowing it to support most PlaceholderAPI supported plugins, some placeholders will return an empty string, due to the fact that they cannot parse as an offline player, but will work when the player is online" (I plan to build something that will solve this, it'll need to be selfhosted though)

midnight thorn
#

Is there a Minecraft plugin that could create a placeholder api compatible placeholder that returns the time a user has played in a set period. Example= /papi parse KyleJackobs %playtime_week% would return with 400 (minutes) indicating that the player has played for 400 minutes in the last 7 days

sacred spoke
ionic socket
#

@muted rain

pulsar kelp
#

Hello i have papi on a 1.8 server with the latest version and when i put server, servertime, anything that has to do with server it can't reload, i just delete them and stay without them, and now i am thinking if there's anything that you can do?

hollow knoll
vivid sparrow
#

Yeah the expansion doesnt support 1.20.5-6 yet

sharp bloom
warm topaz
#

believe its the ping placeholder thats broke

hollow knoll
#

So it can't be fixed? 🤔

warm topaz
#

of course it can

#

we just need some time to do it

hollow knoll
#

Oh okay

#

Np

#

Thanks

sharp bloom
#

the %player_ping% works fine for me in 1.21 too

sullen spade
#

Hi i want to add an advancement menu what checks using deluxe menus and placeholders its posible?

muted gulch
sacred spoke
#

anybody who can help me with a formatter addon?????

uncut folio
#

anyone able to help me with this? been trying to find an solution for over month but coudn't figure out yet...

      requirements:
        first:
          type: string equals
          input: '%checkitem_nbtints:Unbreakable=1%'
          output: "no"
          deny_commands:
          - '[message] &4Unbreakable &8> &fYou already have this item Unbreakable.'
          - '[sound] ENTITY_VILLAGER_NO 1 1'   ```
#

trying to detect if item is unbreakable or not

vivid sparrow
#

which item? The expasion can't guess what item you want to check @uncut folio

tender vaporBOT
vivid sparrow
sullen spade
tender vaporBOT
sullen spade
#

here is what i did

kind girder
#

Will it help me?

#

Friends, even though I run the commands, the scoreboard shows the same way, for example, things like (%player_name%) do not show the player name.

#

Pls help me

knotty plaza
#

Hey! My question is, why does the %player_total_exp% placeholer reset after death.. and is there a placeholder that tracks the total XP a player picks up over time, ensuring it only increases and never resets or decreases, even when the player dies or spends XP?
I tried creating a CommunityScript with https://api.extendedclip.com/expansions/javascript/..
But those values can only be saved within a session

I believe if your answer is no, I need to quickly code a plugin myself to create a custom placeholder, right?

junior musk
#

player_total_exp retrieves the total amount of experience points the player currently has

#

if you're looking for a placeholder returning the amount of exp the player picked up, I don't think there's one at the moment

knotty plaza
#

Either papi does not see when I reset the xp with /xp set 0, or this is wrong? However, the placeholder did not recognise this. It was only reset on dead...
As a test, I made my /xp add 10... reset it to 0 and then did /xp add 2. the result was 12

#

I believe it retrieves the total amount of exp points the player picked up, since his last dead...

lone cobalt
#

either way, it by definition will not retain any data abt how its been in the past so it still doesnt fit ur use case

junior musk
#

I just checked and it does seem to not work correctly

#

but that means Spigot isn't returning the correct values

#

and I don't know if that can be fix

knotty plaza
#

Right. But now I would like to know what it actually means... Did i found a bug or is that supposed to happen?
Does the value decrease when enchanting?

junior musk
#

it doesn't

#

you might want to use %player_current_exp% instead

#

it seems to work better

knotty plaza
#

Well, would you want me to create an Issue on Github/Whereever you collect issues, or should I move on and let you alone with this kownledge fingerguns

junior musk
#

as I've said, %player_total_exp% returns whatever Spigot says

#

so we're not doing the calculation ourselves (unless you use %player_current_exp% which works just fine)

#

idk if it's intended behavior or not, so maybe it's not a bug, but it doesn't seem to be the placeholder you're looking for

knotty plaza
#

So either Spigot themselves changed the way it calcutates the value, or it is actually a bug from spigot itself?

junior musk
#

yeah

#

actually, I think it's intended behavior

#

the description from Spigot's javadoc is

This refers to the total amount of experience the player has collected over time and is not currently displayed to the client.

#

so that means it's probably normal, it's just the amount you obtained, and resets on death for some reason

lone cobalt
#

isint it the score it shows when u die?

junior musk
#

could be yeah

knotty plaza
#

Ohhh, alright. Well I am looking for a value that does not decrease when the player looses exp.. So i think you recommendation is also not what I am looking for... But I think I am okay with the value resetting after death.. My usecase is basically just a weekly tournament for people to collect xp. I could just change the description of it to match "without dying"

junior musk
#

ah

#

I don't think there's any placeholder for that

knotty plaza
#

Thank you for your assistance!

timid dust
#

is there a placeholder to see if a velocity server is online or offline?

faint cargo
#

i tried to download ecloud armor and /papi reload, it says https://paste.helpch.at/imaciyehuy.rb
aternos doesnt support java 17 and there is no other version option in plugin section
what can i do?

cunning seal
vivid sparrow
mint fable
#

Can you re-upload with correct version number? @cunning seal I will delete the 1.0.1 you did upload

#

ah ofc @balmy marten i broke it

#

smh

mint fable
#

presumably because the expansion wants v1.0.1 to be latest, but I delete it funnycube

cunning seal
#

1.0.1 is latest

mint fable
#

you didn't change the version number @cunning seal

cunning seal
#

1.0.0 is broken techically

mint fable
#

it said 1.0.0

cunning seal
#

Damn gotta fix

mint fable
#

no work

#

but maybe if you upload 1.0.1 again it fix lol

#

ah, sorry for ping funny, I fixed it myself 😄

#

I was able to navigate to the manage page and reset the "latest version" info

cunning seal
#

Will retry in a bit ig

mint fable
#

okayyy

cunning seal
#

But the 1.0.1 now is gone from thar page lol

#

So i need to reupload it anyway

mint fable
#

yes I deleted it

vivid sparrow
#

Thanks for posting this message in 3 channels so we can see it better!

midnight thorn
cunning seal
tender vaporBOT
mint fable
#

you didn't change anything

#

the version is still returning 1.0.0

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

i deleted it again

cunning seal
#

OH THAT

#

Forgot about that

#

Give it a shot now

mint fable
#

ok verified

cunning seal
#

nice ty

sacred spoke
tender vaporBOT
sacred spoke
tender vaporBOT
mint fable
#

you have not detailed your issue as of yet @sacred spoke

#

nobody can help if they don't know the issue

sacred spoke
#

i cant use the formatter addon i tried it but didnt work lemme show

#

u

#

for my scoreboard i use the math and formatter addon for the papi and placeholders from griefprevention

#

%math_{griefprevention_bonusclaims}+{griefprevention_accruedclaims}% this is my current placeholder can you tell me how i can add a formatter to thid

#

this is the formatter i use

mint fable
#

how are you trying to format it

sacred spoke
#

i dont remember

mint fable
#

well

sacred spoke
#

canm you tell me the correct way?

mint fable
#

then i can't help

#

how are you wanting to format it?

sacred spoke
#

can u format the placeholder i sended you?

mint fable
#

better question

sacred spoke
#

i just want to remove the zeros

mint fable
#

don't need formatter, math does it

sacred spoke
#

like 32222

#

huh

sacred spoke
#

%math_0:{griefprevention_bonusclaims}+{griefprevention_accruedclaims}%'

#

like this?

mint fable
#

missing a _

sacred spoke
#

thx

tranquil sapphire
#

Does anyone know if its possible to get a username from a placeholder to mysql. Such as the table below:

| Player         | Vault Eco Balance | Fairy Prestige Amount |
|----------------|-------------------|-----------------------|
| ShadowKnight   | 1,234,567         | 87                    |
| StarGazer      | 543,210           | 42                    |
fallow hazel
#

is it possible to string match part of a name? I'm looking to find this like "(S)" and "(A)" and other grades like that

#

i think i found it

drowsy wagon
#

Hello, I made this with Shortcuts and Math

%math_0:0_{excellentcrates_openings_fb_1} + 1.5*{excellentcrates_openings_fb_2} + 2*{excellentcrates_openings_fb_3} + 2.5*{excellentcrates_openings_fb_4} + 3*{excellentcrates_openings_fb_5} + 3.5 * {excellentcrates_openings_fb_6} + 4*{excellentcrates_openings_fb_7} + 4.5*{excellentcrates_openings_fb_8} + 5*{excellentcrates_openings_fb_9} + 5.5*{excellentcrates_openings_fb_10}%

to

%shortcut_ajlb_dungeon%

to parse player case opening scores. But this parse the correct value for most players, but returns the original long string for a few players

#

Even if they are online

keen dirge
#

Hi cuties, does anyone know the placeholder to get a yes/no feedback for when someone's having a specific itemsadder item in their hand? I currently use %checkitem_amount_nbtstrings:itemsadder..id=silver% with feedback >=1 but this checks for their whole inventory and not just their mainhand

vivid sparrow
#

there is a slot argument that you can set

keen dirge
#

Yeah that's what I tried but I think I'm doing it wrong

#

%checkitem_inslot:mainhand:nbtstrings:PublicBukkitValues..itemsadder:ia-id=silver%

vivid sparrow
#

Pretty sure there needs to be an _ after mainhand, not a :

keen dirge
#

Still doesn't seem to work 😢

vivid sparrow
#

always check placeholders in-game with the parse command

#

And read the documentation for checkitem

keen dirge
#

Yeah i also read the documentation but i'm a bit confused by it to be honest

#

Kris told me to not use the custommodeldata seems that seems to change

#

so im trying to figure it out with nbtstrings

vivid sparrow
#

Start with something smaller, like inslot:mainhand and mat:paper or whatever

#

To make sure it detects the item correctly

keen dirge
#

Yeah i do use

      requirements:
        has_points:
          type: 'string equals'
          input: '%checkitem_getinfo:mainhand_mat:%'
          output: 'REDSTONE'```
and those work all fine
vivid sparrow
#

Yeah hmm, I don't know much about checkitem, wait for @sharp bloom

keen dirge
#

Damn he really do be the king of papi and dmenus

vivid sparrow
#

Yeah, he really likes using tones of placeholders LOL

keen dirge
#

Yea he got me hooked onto it, but tbf it really opened up a whole new world to me lmao

sharp bloom
keen dirge
#

stupid itemsadder

#

what does it have?

vivid sparrow
#

Did you blindly use that? 💀

keen dirge
#

oh

#

i saw it somwhere!!

vivid sparrow
#

Hold the item and do /paper dumpitem

keen dirge
#

minecraft:paper[custom_model_data=10080,custom_name='{"color":"white","italic":false,"text":"Silver"}',custom_data={itemsadder: {id: "silver", namespace: "minerals_pack"}}]

sharp bloom
#

%checkitem_amount_nbtstrings:itemsadder..id=<id>% without the <>

vivid sparrow
#

Uh, are you on 1.20.5+?

keen dirge
#

i need the info from the main-hand

keen dirge
vivid sparrow
#

Adjust the path to the nbt in your placeholder

sharp bloom
#

it's gonna return a yes r no or true false

#

try papi parse me

sharp bloom
vivid sparrow
#

Isnt that the same thing essentially? Id rather use it as it is (just my 2c)

keen dirge
#

I mean it is right

#

xD

#

I got it!!

#

%checkitem_amount_nbtstrings:itemsadder..id=silver,inhand:main%

sharp bloom
#

%checkitem_getinfo:mainhand_nbtstrings:itemsadder..id=<id>% without the <>`

#

💀

#

u didn't want the amount u said

keen dirge
#

wait

sharp bloom
#

eh whatever

keen dirge
#

i dont indeed

#

im tired

sharp bloom
#

there r many ways to do it

keen dirge
sharp bloom
#

the one u sent is fine

sharp bloom
#

use the one ubsent then :-: (caps)

keen dirge
#

yeah ill just make the type '>=' with output 1

#

should work as well right

sharp bloom
#

mhm

keen dirge
#

🫶

#

thanks babes kiss

sharp bloom
#

OKK promote me to support already

keen dirge
#

you aren't support here?

#

the homophobia-

sharp bloom
#

💀

terse dock
#

Is there any Placeholder that gets the player who clicked?
[console] lp user %player% parent set german
but the placeholder %player% isnt right

terse dock
#

please help

#

@balmy marten ?

tender vaporBOT
terse dock
#

oh soryy

warm topaz
#

?player

tender vaporBOT
near harness
#

is it possible to parse all placeholders in a string?

junior musk
honest iris
#

hello how about chee a menu of sale of kits for money and I am not there someone can help me please 😄

#

'yen-1':
material: magma_cream
slot: 0
display_name: '&aComprar Yen'
lore:
- '&7Dandole click estas aceptando'
- '&7La compra de yen &4NO devolución.'
- ''
- '&f ▪ &e$80 money &7x &41&cYen'
- '&f ▪ &7Descuento &f0%'
- '&a+ $0 &7menos'
- ''
- '&c Click para comprar'
priority: 1
view_requirement:
requirement:
shop_perm:
type: has permission
permission: deluxemenus.monedas
left_click_commands:
- '[console] kits give yen-1 %player_name%'
left_click_requirement:
requirements:
balance_check:
type: has money
amount: 10000

native gulch
#

can someone help me real quick

#

i need my skript to work with %server_tps% and %server_online% but it doesnt

#

it says cant udnerstand region

vivid sparrow
#

Send the error

latent zephyr
#

Is there a placeholder that will give me a true/false response for weather?

#

Preferably standalone. I won't want to be installing a whole other plugin just for the placeholder to work.

#

I should clarify- I want to parse a placeholder so that I know when it is simply not sunny so that players don't buy a shop command when it's already sunny. Apparently there's a difference between raining and storming so I want players to be able to buy it when it's both storming or just raining (i.e. when it's not sunny).

fervent drift
#

How do I make it so that when I'm available it says available if not it says the minutes of when it will be available?
with this: %essentials_kit_time_until_available_<kit_name>%

lost jasper
#

How can I create an account on ecloud?

jolly gulch
#

how can i reset all placeholders ?

vivid sparrow
jolly gulch
#

alr reseted the worlds

vivid sparrow
#

open the world folder and delete the player data

fervent drift
#

Guys How do I make it so that when I'm available it says available if not it says the minutes of when it will be available?
with this: %essentials_kit_time_until_available_<kit_name>%

jolly gulch
#

anyone know a placeholder i could use for leaderbords that disaplay the xp levels of the player ?

fervent drift
#

How do I make it so that when I'm available it says available if not it says the minutes of when it will be available?
with this: %essentialskit_time_until_available<kit_name>%

short dagger
#

there's any placeholder that can get me the moon phase?

shrewd lintel
#

Whats up guys,

I would like to disable feature of tabbing inside of the papi, because when some staff is vanished and player uses /papi parse T for example, then autocomplete would show /papi parse Teleriann even if vanished, any suggestions please? Is it even possible?

Thank you ❤️

covert yarrow
#

checkitem needs 1.21.1 support

latent frost
sharp bloom
deep hollow
#

Hey, someone knows the expansion name of mini letters? I remember to saw it here but I forgot 🙄

vivid sparrow
#

String expansion

deep hollow
#

ᴛʜɪs

#

I mean this type of font, there was an expansion converting this to > ᴛʜɪs

vivid sparrow
#

Idk, but string expansion can do thjs

#

%string_replaceCharacters_<configuration>_<string>%

#

You just need to define a configuration with the font you want, basically a mapping between normal letters and the letters from that font

small-letters:
  A: a
  B: b
  C: c```
#

There is an example in config for numbers

deep hollow
#

then I'll use that one

#

thanks Gaby 😄

restive palm
#

Helloo, I have a short question, do someone now, how I reset the playerstats of my scoreboard? Kills, Deaths, Playtime (it is based on placeholderAPI)

sharp bloom
restive palm
sharp bloom
#

thats the only possible way

#

make sure to shutdown your server, delete it and start again

restive palm
#

Okay I will try again ^^

restive palm
sharp bloom
deep hollow
#

Hey, anyone knows if there's any placeholder expansion to get X variable from a website? For example, to get the percentage of monthly goal from tebex

#

from here

wet basinBOT
#

@vivid sparrow Unknown expansion.

#

@vivid sparrow Unknown expansion.

vivid sparrow
#

No

#

You can pay someone to create one using the tebex api

junior musk
#

there's the buycraftapi expansion, but I don't see anythinf related to monthly goal

#

could help to start from that and not have to redo an entire expansion though

deep hollow
#

I'll see with buycraftapi yeah, but as they changed to tebex I think doesn't work anymore

junior musk
#

it has code for Tebex so I think it does work

#

apparently it requires the either the BuycraftX or Tebex plugin to even load