#placeholder-api
150650 messages · Page 139 of 151
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 %
it just seems to output as plain text
did you run the 4 commands?
did you get an error in console?
[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.
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?
dont think that exists tbh, is there any way to fix that perhaps
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?
2240.00 KR
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}%
that now outputs 2240.00
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:%
how would i format it after else:
what do you want to display?
for now only rentit
else:rentit
and if id want to combine muliple ones after else: id put {math_1_{rentit_player_shop_price}} for example?
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}}%
@junior musk I tied using those plugin it didnt work.
any errors in console? and what does /papi parse me %math_1_{townyadvanced_daily_resident_tax}+{rentit_player_shop_price}% returns in chat?
what didn't work? and what did you try?
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.
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?
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
I removed it after trying
[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.
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
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 🙂
frozen data?
assuming by board you mean scoreboard, can you send its config?
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.
and can you send that config?
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?
22 Myname 22
and what is it showing in the hologram leaderboard?
Yes
that's not a yes/no question
then it's working?
No but its not going up. it has been on 22 for over a week
if you run the command again, does it update the seconds/minutes?
No its frozen on that number
Yeah weird. any ideas? or maybe any sorta problem shooting?
could you try without PlayTime ?
I did before. i only installed that to try get the plugin working.
I'm not sure
i think problem is that rentit_player_shop_price outputs -1 when the player does not have a rental shop
[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.
how can i %math_%luckperms_meta_daily_trades%+1% this string to int?
in luckperms!
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}}%
you have 200.00 KR at the end
where does that come from
could be townyadvanced_daily_nation_upkeep
didn't we take care of that already?
but it put it in the strign replacer
oh you added a new placeholder
rentit_player_shop_price
/papi parse me %rentit_player_shop_price%
wait no it was there
idk
%rentit_player_shop_price% outputs -1 if the player does not own a rent
I don't understand
oh there's townyadvanced_daily_town_upkeep and townyadvanced_daily_nation_upkeep
I didn't realize
yes
/papi parse me %string_replacecharacters_number_{townyadvanced_daily_town_upkeep}}% %string_replacecharacters_number_{townyadvanced_daily_nation_upkeep}%
what does this say?
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?
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}}%
[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.
the lines is becoming really long xd
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
/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}}%
thats too long for my chat, but putting it on the tab gives the same error
[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.
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
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+%%
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
yes i did
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}%
seems to be working, altohugh can we possibly make the -1 be replaced by 0 somehow?
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})%"
if kitbattle can support vault when probably %changeoutput_>=_input:{%vault_eco_balance%}_matcher:5_ifmatch:[working]_else:% is the answer for my request
okay so it kinda worked, but it set it all to 0 and when you dont have anything its -1 xd
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})%"
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 🙂
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
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
damn if I knew this existed before ...
tysm bro
😔
🤝
sorry to bother again but I just realised what u sent
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
oh haha
ill reply if i get something from wiki, otherwise wait for anyone else's reply
all right thanks :)
this would be using skript stuff in papi, so the opposite of what you want
Yeah
i'd try those old ones if you haven''t
alrighty thanks
give more conteext
it only works with /parse
please. like half my server doesn't work anymore
anyone know if theres a PAPI for fabric
i need it becuse of this
nvm
but my tab is all missed up
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;
}
}
}
[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
do i have to manually install the expasion?
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
im using hypixel.net to test this expansion
and have port 25565
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
There is an alternative, but it's not affiliated with this version of PAPI. And TAB doesn't support it so that's why it doesn't work
what are the lines above this warn? and can you send the part where you register the expansion?
the console doesn't support papi?
together with every other plugin that previously supported papi? simultaneously, with no notification?
the console?
and can you send screenshots of where the placeholders aren't working?
with the name of each plugin
?imgur
so the placeholder randopmly borke https://pastebin.com/d9f33944
it just output that placeholder in both colored output and raw colors
everywhere.
mythicmobs, executableitems, the console, the chat bat, everywhere
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}%
It means it can't convert the given placeholder to a "double" format.
An int is an integer, which you might remember from math is a whole number. A double is a number with a decimal. The number 1 is an integer while the number 1.0 is a double.
You may want to look at if that placeholder offers other formats.
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.
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>
What do you mean by into existing placeholder?
What do you mean by list? Like a leaderboard? If so, You need to use something like AJLeaderboards.
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
What’s a placeholder for top donator that I can use with decentholograms and ajleaderboards?
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.
You can use ajLeaderboards to do so https://www.spigotmc.org/resources/ajleaderboards.85548/
It has a wiki with examples on how to do that (with holograms, but it's the same concept with DeluxeMenus, you use the same placeholders) https://wiki.ajg0702.us/ajLeaderboards/setup/
ah perfect, thanks so much!
I'm not sure what I should put in <type>
%ajlb_lb_statistic_time_played_1_<type>_name%
im creating a tpa menu but idk the placholder for the player name
can anyone help me
%player_name%
The CheckItem expansion doesn't seem to be working on 1.21 - is there an update planned at all? Thank you 🙂
with the %
?
Yes
do i need the % sign
as gaby said, yes
and u need the expansion too
/papi ecloud download Player
Hi, how I can install the expansion Enchantment ? I am getting error putting the .jar inside \plugins or inside \plugins\placeholderapi\expansions
what error do you get
The text is so large and I can't send an image
or you can use https://paste.helpch.at/
that error is for when I put the .jar on \plugins
https://imgur.com/a/0STJZAd
And this is when I put the .jar on \plugins\placeholderapi\expansions
looks to be an issue with the expansion itself, get in touch with VK as hes the author
You have to manually add each placeholder you want to track:
https://wiki.ajg0702.us/ajleaderboards/setup#2-required-add-the-placeholder-to-ajleaderboards
Then it will be checked each time a player gets on the server (There is no way for it to retrieve players until they log in, if I am thinking correctly).
Thank you, appreciate it!
Does anyone know how to add many placeholders in the actionbar?
my placeholders don't work, can someone help me they look like this "%luckperms_prefix%"
(i solved rn)
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
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?
No
try this:
%math_0:_24-{server_time_H}*60%
About this, I did a pull request last week, can someone accept it to fix the issue?
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
Didnt see it; merged
Ty!
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```
ggs
%math_0_24-{server_time_H}*60%
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.
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?
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
https://api.extendedclip.com/expansions/changeoutput/
possible, but may be difficult
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
^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?
/papi ecloud download World
/papi reload
%world_isgamerule_<gamerule>_<world>%
they already have that, their issue is actually the tps placeholder returning a * in front of the placeholder sometimes, I still don't understand why that's a thing but yeah...
/papi ecloud download Utils
/papi ecloud download Formatter
/papi reload
%utils_parse_math_{formatter_text_replace_*__{server_tps_15}}*5%
try %playerstats_server,<statistic>,only:number_raw%
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
Okay
Yes I was trying to make it 100 so the boss bar is full rather than the default 20. But now it is constantly spamming my console because I parsed it and every time the TPs is *20 it says invalid placeholder. But I will try your solution and see how that works.
I wrote *15 instead of *5 by mistake in the placeholder
watch out for that when copying the placeholder 😅
I'll adjust it. Thank you so much for your response. I'm hoping this will stop the console spam.
Still spamming
It does not seem to have gotten rid of the previously parsed items
Still the same error
in which plugin are you using the placeholder?
uh
I wanted to set it on tab plugin which is on my proxy
and what is it showing when you parse it?
When I parse your code, it shows 100
then it's working?
Your code works but the console is still trying to parse the old items.
probably because you didn't remove the old placeholder from TAB's config
[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.
TAB continuously updates the placeholder
I did. Replaced it with a static number of 100 and reloaded the plugin and restarted all servers
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
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%'
otherwise the placeholder will be kept in memory in either TAB on the proxy or in TAB-Bridge on the backends
The first is what I have now, The second is what I had set and removed
Okay let me shut down all servers and proxy and start them up fresh.
It takes some time for the servers to restart so I will get back to you in a few. 🙂
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. 💛
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
Damn. Well good bit of knowledge there for the future. We learn something new everyday. Much appreciated. 🙂
What are you using to control these functions? Are we talking default gamerules, or a plugin?
Is this intended function, or should someone look at submitting a bug report to TAB?
I remember the dev tried to find a way to stop it from happening, but I don't remember exactly what happened
Rough - definitely seems like something they need to fix :\
Is there a placeholder for 1 block walked, rather than cm? %statistic_walk_one_cm%
pretty sure 1 cm = 1 block
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
@mint fable
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```
Yes
@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
No, just turn it into a string
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();
https://imgur.com/a/QYWHw5j
why doesn't it display the created placeholder?
hey guys im using %animations_<wave>[Donator]</wave>% but the chat has not animation just random static colours any ideas?
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.
no you're just missing {} around the towny placeholder
i havent touched it though
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}%'
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
@native pumice just replied to your issue on GitHub with a fix (didnt know if you needed it asap) 🙂
Thanks a lot! Will check it out.
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
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.
Don't put papi in proxy folder. Use papiproxy-bridge plugin on your backend servers to send placeholders to your proxy, in your case Bungeecord.
Try this.
/papi parse me %math_server_time_hhmm=1800%
This will return true only when the server time is equal to 1800 (6pm)
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
/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
This this and let me know what happens.
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
%math_2_((1800-{server_time_hhmm})/60)/10%
This was the closest I got to it.
Hahaha, Been there done that - and never could figure it out 😔 I got one setup that worked for a few hours a day and then would stop working.
Hoping someone helps you so I can figure it out too 😂
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)?
NestedPlaceholders is now Utils
%utils_parse_server_countdown_dd/MM/yyyy HH_{server_time_dd/MM/yyyy} 26:25%
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}%
idk
Me neither LMAO
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
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.
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
I'd prefer to use yours %utils_parse_server_countdown_dd.MM.yyyy_{math_0_{server_time_dd}+1}.{server_time_MM}.{server_time_yyyy}%
But the logic here is so hard for my pea brain to follow. Where would I set the time I want it to countdown to?
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
ok, I understand that, am I able to define a time in the server_time placeholder?
what do you mean?
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?
%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
so am I pursuing the wrong thing entirely in this instance?
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
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.
sweet, ill try it out - thanks for your help. For whatever reason, this set of placeholders is just making me go blank.
understandable
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
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 😅
simpler is better
One final question for you (I beg for your forgiveness)
What if I wanted to add the ability to define the minutes as well?
Ex. 03:15
Also - if you haven't seen this, we have figured out how to do what you've requested ( I think)
and by "we" - I mean literally only Tanguygab
my name ;-;
👀
you forgot a g
oh lmao my B
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/ajifevurex.yaml -> DeluxeMenus-1.14.1-DEV-184
not work Parseother bug
mc version 1.18
parseother version 2.0.0
Got it awesome tysm, did you happen to get it working with minutes too?
I have not 😦 I am going to have to review the placeholder formatting at some point.
how do you want minutes to be integrated?
or what was your original idea ?
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
%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
Tyty
Btw isn't possible to translate the LocalTime expansion or even the PlaceholderAPI expansions to ES ?=
.
Depends on what you want to translate
@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
Everytime I tried to parse "/papi parse me %player_locale_country%" I got:
https://paste.helpch.at/ahajipihoz.md
I already deleted and reinstalled the player expansion
The player expansion doesn't support yet 1.20.6 or whatever version you are using
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"
are you trying to make it like "helmet or chestplate"?
%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
Im trying to make check for any amor in the hand
Included all types of armor
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
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
Open it on the expansion's repo @tepid bridge
Oh hi Gaby! Good to see you!
I have no idea where that is 🤣
On the same organisation, PlaceholderAPI
Took me ages to figure out where these bloody errors were coming from
I'll have a look thanks!
Yeah, it was working fine 🤣
Very weird
anyone see any problem in there?
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
is any other ways to check item in hand? i need the check if player holds any armor in his hand
https://wiki.helpch.at/helpchat-plugins/deluxemenus/options-and-configurations/requirements#syntax
minimum_requirements
stop_at_success
optional
is probably what ur looking for
Thats is it mate! ❤️
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
%player_first_join% looks to be returning milliseconds
so find out how many milliseconds in 7 days
then use math expansion
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
Why do you register it by command? Just reload the plugin (papi)
i did that cuz i figure it was not working
due to the socrbard isue
what scoreboard plugin are u using?
If you are talking about vanilla scoreboard, it will never work
if its working through the command then the placeholder is working fine, its just whether or not the scoreboard can display that placeholders
animated scoreboard
Mvdw plugin?
idk what Mvdw menas
Send a link to the plugin
Yes you can, but not masked, as the bot said
Ye anyways, it should work on the scoreboard if it works on the parse command
have u enabled placeholderapi in its config?
restarted server?

but this one works in the command but not in the socrbord
any alternitive scorbord plugins ?
Make sure there are no errors in console
think most people use TAB nowadays
i will give it a shot this is the seconed plugin tho that could not show the scorboard
it just out puts a whole number
I am getting an error when trying to use PlaceholderAPI in my gradle project:
https://pastes.dev/bzWyb84Ijf
Apparently, it cannot find the pom file here:
https://nexuslite.gcnt.net/repos/other/me/clip/placeholderapi/2.11.6/placeholderapi-2.11.6.pom
and when I go there, it is not there. there is no repository called me.clip. I am using it like this:
repositories {
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
}
dependencies {
compileOnly 'me.clip:placeholderapi:2.11.6'
}
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
solved, many thanks ❤️
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?
i think so
were working on getting it back up
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
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
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
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.
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
Make sure you don't shadow papi, the scope should be provided if you use maven or compileOnly if you use gradle
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 :(
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.");
}```
sorry for the @ ping, it automatically does it when i reply to msges sorry
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)
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
I think that there's a community Script in the extension JavaScript for doing timers
Try that
hey everyone, i'm getting this error whenever i do /papi reload and placeholders are not working. does this have a fix? https://paste.helpch.at/afukasutaf.rb
ah nevermind
it was the buycraft expansion
🙂
It's possible to have multiple outputs with ChangeOutput? I need to return different values depending on which value I give to him
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)
is there a placeholder for the time left to something?
like i want a cooldown for each sunday at 16 (4PM)
Maybe this @tulip brook
Could someone help me with the Javascript extension to create a placeholder when a player gains profession experience via AuraSkills?
And do what? You can not / should not listen to events with the js expansion
check when it gains xp and display it
Any ideas?
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
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.```
probably u have two jars of votingplugin expansion in your folder
Hey Prestley, can you give me a hand with checkitem when you get a chance?
wut u need help with
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?
What expansion exactly? @quiet nova
i thought the problem is just for lukeperms expansion but now i tried server essentials and bungee and all of them doesnt get registered
in console it says that these expansion have been compiled with a newer version of java
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?
what is your servers version?
1.8.8
try downloading it from somewhere else and uploading it to your server
keep that in mind that your expansions need to be java 8
But how will that happen?
anyone knows why the vault placeholders arent working in my sternalboard?
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
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
Hi
Won’t that only return the amount of items that have a nbtint? I want to get the actual value of an nbtint on an item
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?
%checkitem_getinfo:<slot>_nbtints:<...>%
Tried that, it crashes the DM menu when you use that
what did you do exactly? any errors?
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
what mc version
1.21.1
are there plans to update it?
not from me atm, it's os though
ugh ig all it needs is a recompile
that's why os is good
welp, entire server relies on it
i will update from the pr that exists now @gilded bough
If you could point me in the right direction I could have my team try to work on it
most trusted+ have access to stuff like this fyi, if I'm not around
and if they are willing to ofc
?
@mint fable can you help me please i have only one question.....
don't ping people, just ask your question
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?
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.
k
updated @gilded bough #ecloud-updates message
@mint fable sorry for pinging but been trying to get someone to answer for a couple of hours now
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
Have patience and don't ping people
but yet other people got responses but i didnt
i wouldnt have even gotten a response and still didnt
wait bro 100% you will not get an response i can garantate that 😦
i am in the same position
Excellent, what did updating it to 1.21 change?
send your /paper dumpitem
Will do soon as I get home, just got off work
nothing other than updating it to 1.21 so it works 🤷♀️
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 
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?
correct, thats why I was scratching my head all evening last night
I thought it was something I had forgotten
it nuked mine, they rely heavily on checking tags
i mean, same 💀 but havent noticed that it had an issue
i use it to upgrade tools and apply enchants
I'm building a menu for exactly that using AdvancedEnchants, thats why I need it
i ll prob contact again the dev guy who i commissioned to fix the string and ints checks in a pr 
Alright, let me know how it goes then because if that guy can't come through then I might have someone to help
values need to be set
%checkitem_getinfo:mainhand_nbtints:value.id=something%
yeah i m aware of that
👍
%checkitem_getinfo:offhand_nbtstrings:PublicBukkitValues..score:score-displayenchant=name% for example
i just get this issue when running the parse command https://paste.helpch.at/pipizaxohu.php
ah yeah, the getinfo wasn't updated by the og guy i see
yeah it was only for string and ints
it doesn't look hard to do, but I do not have time to do and test
already contacted him regarding that
string and ints exist in getinfo too haha
just wasn't looked at and modified
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 💀
happens when it's os, nobody really knows all about the project
oke fail, cause where is the img 💀
nvm
i have 1207 results of the checkitem being used on my server
2303 of math 
oh rip, utils is low only 1009
nop i m using the %utils_ %math_ %checkitem_
its the placeholders 💀
i m doing a search to replace via vsc
oopsie teehee

that's working so well
I’m rooting for whoever is attempting to make the fix 
i am talking about visual studio code ;-; not discord
check it out
fun

wait till it gets merged https://github.com/PlaceholderAPI/CheckItem-Expansion/pull/75
you fixed it already? you’re awesome thank you
thank cooleg, it wasnt me who did it 💀
/papi reload```
`%player_x%`, `%player_y%`, `%player_z%`
should work fine
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
null does work
though not all placeholders support having no players
for example, %server_tps_1% will work fine, but %player_name% won't
It doesn't do anything. Am I missing something?
send your code
I wanted to upload an image but I can't
?paste
?imgur
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
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```
@gilded bough #ecloud-updates message
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 😄
hey people im tryin to setup a formatter but it isnt workin can anyone help me
thank you Kristopher!
Hi Everyone.
Have a way that I can display my game placeholders on a DiscordBot?
A Discordbot created using JDA.
i want to add top kill and death leaderboaed vail hologram without any other plugin. what is placeholder for that
well you'll need additional plugin, i don't think there's such expansion check PlayerStats
stats expansion?
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)
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
hey can you help me with a formatter?
Maybe its better to get the placeholder data that I want to display and save it on a DB table(like MySQL) and consult it with the DiscordBot?
@muted rain
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?
There is an error with the Player expansion
Yeah the expansion doesnt support 1.20.5-6 yet
me using it completely fine in 1.21
believe its the ping placeholder thats broke
So it can't be fixed? 🤔
the %player_ping% works fine for me in 1.21 too
Hi i want to add an advancement menu what checks using deluxe menus and placeholders its posible?
It's working for me as well in 1.21
anybody who can help me with a formatter addon?????
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
which item? The expasion can't guess what item you want to check @uncut folio
Actually it is lang
Yes
i tried to do that but i cant it doesnt work
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
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?
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
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...
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
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
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?
it doesn't
you might want to use %player_current_exp% instead
it seems to work better
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 
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
So either Spigot themselves changed the way it calcutates the value, or it is actually a bug from spigot itself?
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
isint it the score it shows when u die?
could be yeah
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"
ah
I don't think there's any placeholder for that
you could try to request someone to make it for you in #1257956027026903050 or #1257956028063027243, or even on the Spigot forums, but right now I can't find any placeholder for that
Thank you for your assistance!
is there a placeholder to see if a velocity server is online or offline?
pinger expansion
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?
can someone reverify this https://api.extendedclip.com/expansions/movecraftpapi/
If anyone wants to test the rewrite of the player expansion is more than welcome to do so 😊
Here you can find the new placeholders https://github.com/PlaceholderAPI/Player-Expansion/pull/92
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
Wdym
presumably because the expansion wants v1.0.1 to be latest, but I delete it funnycube
so now is broke https://api.extendedclip.com/expansions/movecraftpapi/
1.0.1 is latest
you didn't change the version number @cunning seal
1.0.0 is broken techically
it said 1.0.0
Damn gotta fix
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
Will retry in a bit ig
Oh
okayyy
yes I deleted it
Thanks for posting this message in 3 channels so we can see it better!
my bad its just that ive been asking for a while and nobody knows
Done reupload
you didn
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
ok verified
nice ty
hey can you help me with formatter addon?
sorry ive been waiting for a response for days
you have not detailed your issue as of yet @sacred spoke
nobody can help if they don't know the issue
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
how are you trying to format it
i dont remember
well
canm you tell me the correct way?
can u format the placeholder i sended you?
better question
i just want to remove the zeros
don't need formatter, math does it
missing a _
thx
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 |
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
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
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
there is a slot argument that you can set
Yeah that's what I tried but I think I'm doing it wrong
%checkitem_inslot:mainhand:nbtstrings:PublicBukkitValues..itemsadder:ia-id=silver%
Pretty sure there needs to be an _ after mainhand, not a :
Still doesn't seem to work 😢
always check placeholders in-game with the parse command
And read the documentation for checkitem
I'm doing that right now, it just keeps giving yes to everything, even if i got nothing in my hand
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
Start with something smaller, like inslot:mainhand and mat:paper or whatever
To make sure it detects the item correctly
Yeah i do use
requirements:
has_points:
type: 'string equals'
input: '%checkitem_getinfo:mainhand_mat:%'
output: 'REDSTONE'```
and those work all fine
Yeah hmm, I don't know much about checkitem, wait for @sharp bloom
Damn he really do be the king of papi and dmenus
Yeah, he really likes using tones of placeholders LOL
Yea he got me hooked onto it, but tbf it really opened up a whole new world to me lmao
:3 i ve been summoned
itmesadder doesnt have publicbukkitvalue
Did you blindly use that? 💀
Hold the item and do /paper dumpitem
minecraft:paper[custom_model_data=10080,custom_name='{"color":"white","italic":false,"text":"Silver"}',custom_data={itemsadder: {id: "silver", namespace: "minerals_pack"}}]
%checkitem_amount_nbtstrings:itemsadder..id=<id>% without the <>
Uh, are you on 1.20.5+?
but then it gives me the amount babes
i need the info from the main-hand
oui, 1.21
Adjust the path to the nbt in your placeholder
this can be changed to %checkitem_mat:REDSTONE,inhand:main%
it's gonna return a yes r no or true false
try papi parse me
hold
Isnt that the same thing essentially? Id rather use it as it is (just my 2c)
I mean it is right
xD
I got it!!
%checkitem_amount_nbtstrings:itemsadder..id=silver,inhand:main%
%checkitem_getinfo:mainhand_nbtstrings:itemsadder..id=<id>% without the <>`
💀
u didn't want the amount u said
wait
eh whatever
there r many ways to do it
yeah but not this one apparently
the one u sent is fine
yeah, but from this one i get a massive error
use the one ubsent then :-: (caps)
mhm
promote me to support already
💀
Is there any Placeholder that gets the player who clicked?
[console] lp user %player% parent set german
but the placeholder %player% isnt right
oh soryy
?player
is it possible to parse all placeholders in a string?
if you're developping your own plugin, then yeah, you just call the PlaceholderAPI.setPlaceholders(OfflinePlayer, String) method on the string containing all placeholders
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
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
Send the error
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).
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>%
How can I create an account on ecloud?
how can i reset all placeholders ?
Statistic? They are pulled from world data. Papi doesn't really store anything on its own, all data is pulled from your server (other plugins, spigot api, etc.)
ok and how would i reset that ?
alr reseted the worlds
open the world folder and delete the player data
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>%
anyone know a placeholder i could use for leaderbords that disaplay the xp levels of the player ?
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>%
there's any placeholder that can get me the moon phase?
try %player_level%
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 ❤️
checkitem needs 1.21.1 support
Is the Disease plugin placeholder still available somewhere? It's listed here https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#disease but I get a message saying it's not found when trying to download. Thank you.
already works on that version
Hey, someone knows the expansion name of mini letters? I remember to saw it here but I forgot 🙄
String expansion
but it existed a expansion called mini letters or something like that no? Like String expansion only make them capitalized or not
ᴛʜɪs
I mean this type of font, there was an expansion converting this to > ᴛʜɪs
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
Oh okay okay
then I'll use that one
thanks Gaby 😄
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)
short answer: delete the playerdata folder from the world
I already tried but nothing happened
thats the only possible way
make sure to shutdown your server, delete it and start again
Okay I will try again ^^
thank you very much, I got it!

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
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
I'll see with buycraftapi yeah, but as they changed to tebex I think doesn't work anymore
it has code for Tebex so I think it does work
apparently it requires the either the BuycraftX or Tebex plugin to even load
yeah yeah it worked, tyy