#placeholder-api
1 messages · Page 47 of 1
could I use an other placeholder that has the same effect?
any eta for papi to be updated on 1.21?
Is there any expansion that is like %if% so I can test for something and pair with else if to do a few things using a placeholder?
changeoutput maybe
if you need something more complex, look into javascript expansion
Hello
How can I parse an offline player?
probably parseother can do it but im not sure
how can i parse a player's speed?
You use parseother + player expansion
%player_walk_speed%
%player_fly_speed%
combined into the parseother placeholder
it is just an attribute to change my walking/flying speed
i need speed in blocks/sec
ya not sure lol
you could use maybe the math expansion if you figure out the number
no, you didn't understand
this is a static value in %player_walk_speed%
that doesn't change when i walk
ah
found this https://ss.adamh.tech/2024/07/q7nPs8lXc3.png
speedpersec_speed
may be good 🙂
i have use it, but it calculates only onfoot speed
and you need fly?
Does anyone know how to add country/city affiliation in the TAB plugin?
Town plugin - Towny Advanced
utils better :/
hi everyone, I'm trying to install a plugin on a fbric server, but I can't do it
minecraft says unknown command
i've actually never tried both of them lol.
PlaceholderAPI is a Spigot plugin, those don't work on Fabric
Does anyone know how to add country/city affiliation in the TAB plugin?
Town plugin - Towny Advanced
both would work the same, Utils just has more features
use Towny's PlaceholderAPI placeholders in TAB's groups.yml
if you want them before the player name, use them in tabprefix
Ty bro
https://modrinth.com/mod/placeholder-api is this wrong?
you're probably looking for
%townyadvanced_nation%
%townyadvanced_town%
oo ye
That mod is not affiliated with this PlaceholderAPI
Hai. is there a way to add two placeholders (numbers) and have them out put as a single number?
%math_0_...%
Awesome, thank you so much
Is there a placeholder that gets all the not hidden players? I wouldn't know how to code my own placeholder to detect a specific set of players not in a list
If not i might code my own in but it might be a while lol
might be possible with the PlayerList expansion
Hello. One query, is there a way to have a boolean that compares placeholder to a value?
I have these 2 placeholderapi: %cmi_user_stats_MonsterKills:skeleton% and %cmi_user_stats_MonsterKills:zombie%. I'm looking for if both return a certain number, truth or return something, if one of the 2 does not meet said number, return false or something.
it's on the ecloud
%playerlist_CANSEE_amount%
@junior musk would this be the one i'd need u say?
because i parse it doesn't work
nvm figured it out
anyone know what output for this placeholder %statistic_hours_played%
im gonna make online rewards on deluxemenus and i dont what is exactly output
/papi parse <player_name> %statistic_hours_played%
OR
/papi parse me %statistic_hours_played%
should be any positive rational number.
it was showing "0"
means you it has been less than an hour you playing in the server
left_click_requirement:
requirements:
has_point:
type: '>='
input: '%statistic_hours_played%'
output: '1'
right?
Anyone know if it's possible to format the rng expansion placeholders?
is there a way to get all placeholders available within a hooked plugin`?
view_requirement:
requirements:
claimable:
type: '>='
input: '%statistic_hours_played%'
output: '1'
not working can some1 help me
what isnt working
Hey, sorry for bothering you again. So i tried this, but it does not work
I am getting this:
https://imgur.com/a/Ki84GPt
So looks like Chatty does not support HEX colors, however their spigot website states that they do support. I checked all possible color formats and non of the works in Chatty plugin
Is there any way to fix this?
if thats deluxemenus, redirect to #general-plugins
uh, what did you put in your meta exactly?
/lp group admin meta set chatty-prefix &l#FF0000A&l#FF2812d&l#FF5024m&l#FF7835i&l#FFA047n
I have tried different color formats from "https://www.birdflop.com", bot non of the worked
as I've said, the format is [#RRGGBB] in Chatty
Like this?
[#FF0000]&lHello[#FF2812]&lAdmin
yes
it does not work
here is what i did:
command: /lp group admin meta set chatty-prefix [#FF0000]&lA[#FF2812]&ld[#FF5024]&lm[#FF7835]&li[#FFA047]&ln
config from Chatty: format: '&d[&9&lG&r&d] %changeoutput_equals_input:{eternaltags_tag}_matcher:_ifmatch:{luckperms_meta_chatty-prefix}_else:{eternaltags_tag}% &7%player_name% &8&l≫ &f{message}' I have to do {luckperms_meta_chatty-prefix} because %luckperms_meta_chatty-prefix% does not work
In results i get: https://imgur.com/a/LsL8kK1
uh. yeah. Is there any similar plugin like chatty with Local and Global chat?
when i type "!" before message, it will be send to global chat, otherwise - local chat
ChatChat probably has that
thanks
Hi everyone! I'm using Essentials's economy and I need a Placeholder that returns the total amount of balance of all players in server. I guess it does exist, cause when i do /baltop there is a "Total:" that displays it, but idk what it is. Please, if someone can tell me what placeholder it is, or if it doesn't exist, what alternative can i use? Thx
doesn't seem to have that
you can try:
- /papi ecloud download world and its placeholder %world-totalbalance-<world>% (use _ instead of -)
- BankSystem and its placeholder %banksystem_total%
- OpEconomy and its placeholder %opeconomy_money%
- Any of listed below: (use _ instead of - where needed)
%essentials-baltop_-balance_fixed_-<rank>%
%essentials-baltop_-balance_formatted_-<rank>%
%essentials-baltop_-balance_commas-<rank>%
%essentials-baltop-balance_-<rank>%
%essentials-baltop_-player_-<rank>%
%essentials-baltop_-rank%
%essentials-baltop_-player_-stripped_-<num>%
they want a placeholder for all players' money, combined, all the placeholders you provided return either the player's money, or a specific player's money based on their baltop rank
idk about the world_totalbalance placeholder tho, there's no documentation about it
seems like it goes through all online players in the specified world and adds their money together, but that's only for 1 world and only takes in online players
Hello, I am trying this placeholder
%checkitem_enchantments:sharpness=5;fire_aspect=2;unbreaking=3;looting=3;sweeping_edge=3, mat:diamond_sword, amount:1%
but it seems like it doesnt know when I have a sword or not..
Yep, indeed %world-totalbalance-<world>% is the closest one for what I need. Including just one world is fine for what I'll use it for, but it only counts the money of players as long as they're online. The only way that comes to my mind is making a ghost player in essentials with a balance that will be automaticly set to %world-totalbalance-<world>% every 30 seconds as long as his %vault_eco_balance%<%world-totalbalance-<world>%. But idk how to make that ghost player
found a way with ajLeaderboards
/ajlb add %vault_eco_balance%
%ajlb_total_vault_eco_balance%
hey do u know this?
know what?
.
it worked before
ah
try removing the space between diamond_sword, and amount:, and use amt: instead of amount
%checkitem_enchantments:sharpness=5;fire_aspect=2;unbreaking=3;looting=3;sweeping_edge=3, mat:diamond_sword,amt:1%
amt:1 isn't really necessary btw
works the same 😦
does it say yes or no?
what's your MC version?
?enchants
the same
durability instead of unbreaking
same
Tried it and %ajlb_total_vault_eco_balance% returned "Invalid TimedType 'BALANCE'"
Srry, I've never use that before, idk if I'm doing something wrong
np, take ur time
%checkitem_enchantments:damage_all=5;fire_aspect=2;unbreaking=3;loot_bonus_mobs=3;sweeping_edge=3, mat:diamond_sword% @peak linden
did you run the first cmd?
Yes
oh mb, forgot smth
%ajlb_total_vault_eco_balance_alltime%
though keep in mind it'll only start counting players' money once they join at least once after installing the plugin
Okok, that works for me
Should it update live with the balance of the players or just when they leave and join again?
Ok, now it returns 0 but no the total amount of balance, even if i leave and join again :c
You're so right, thx problem solved. This is just what I needed.
Just to know, that plugin works just like that? with /ajlb add, i can add up all numerical returns for player's placeholders?
still no 😦
I have no idea then, I'll have to test tonight when I get home
I'm at a friend's house rn
any PlaceholderAPI placeholder
alr, thx again
okk
thans!
thanks!
Hello! I'm trying to make a top faction power placeholder for SaberFactions by making my own plugin with a extension for it, however my placeholders aren't being recognized. Can provide code for whatever parts needed.
@peak linden %checkitem_enchantments:damage_all=5;fire_aspect=2;durability=3;loot_bonus_mobs=3;sweeping_edge=3,mat:diamond_sword%
I think it's because I forgot to change unbreaking to durability
send your class extending PlaceholderExpansion and your onEnable where you're registering the expansion
Should i put the code somewhere like a paste incase its too big
All the code is there
send your server logs
that's your plugin right?
oh
I see the issue
placeholders' format is %identifier_params%
so in your case: %factionstop_top_power_1%
Hi, is there any dev version of placeholderapi available for 1.21 or not yet? Thanks for the answer.
Does anyone know an equivalent option? %spark_cpu_system_10s% and %spark_cpu_process_10s%" for paper 1.21 stable
version from spigotmc works on 1.21
Ok, thanks.
%math_0_{math_0_{ecojobs_miner_f}/5}*60% Gi, is it possible to do something like this? It is not working for me
If I do this: %math_0_{ecojobs_miner_f}/5*60% the placeholder(ecojobs_miner_f) returns 12 and the final result is 144
The thing is that I want that 12/5 = 2 instead of 2.4 (avoid decimals in this step also), then 2*60=120 instead of 144
i found the problem
it s because of sweeping edge for some reason
why do my placeholders whipe on every restart is there a way to fix this
Any 1.21 dev build?
I'm having ECloud errors. My vault and bungeecord placeholders arent working. I have the extentions installed but they are not showing in game, when I try to install the extentions in game it says in chat they have been installed but it doesnt change anything and doesnt work.
When I run /papi ecloud list installed in game, it shows me a different list than the actual expansion files.
@junior musk any ideas?
stop pinging staff
sorry
stop pinging people*
I did and it didnt fix it
When trying to register the expansion in game in returns nothing
well i can't really help rn, but do the following for others to help
/papi dump is returning nothing
not sure what the reasoning is
the reasoning that I can't help?
No the reason /papi dump doesn't even return anything
then just upload the log
Alright sorry to be a bother. My server just can't run with this glitch so just wanted to check if anyone has seen this issue before
?help
Are there any known plugins that interfere with PlaceholderAPI? The issue I'm facing outlined above only happens on my KitPvP server and not the Events server. I'm unable to create a PlaceholderAPI dump on kitpvp but can do it fine on Events.
yea no issues placeholderapi on 1.21 i mean havent had any yet!
It's not working.
i tested on paper 1.21 build 103 and it works
Hi, is it possible to do something like this? %math0{math0{ecojobs_miner_f}/5}60% It is not working for me
If I do this: %math0{ecojobs_miner_f}/560% the placeholder(ecojobs_miner_f) returns 12 and the final result is 144
The thing is that I want that 12/5 = 2 instead of 2.4 (avoid decimals in this step also), then 2*60=120 instead of 144
Does the Plugin Expansion not exist anymore? Is there an alternative
looks like its not verified, download it manually
https://api.extendedclip.com/expansions/plugin/
although, why would you need this expansion?
how to use math expansion?
%bungee_survival% = 2
%server_total% = 4
%math_server_total_bungee_survival% = 6 ?
oh
it's used like that: %math_{server_online}+{server_online}%
For example:
If you want to merge player count of survival (%bungee_survival%) and opsurvival (%bungee_opsurvival%) servers you would use %math_{bungee_survival}+{bungee_opsurvival}%
If you need for information refer to wiki!
https://codeberg.org/Andre601/Math-Expansion
~~Not sure if I should be asking in here, or #development but i'll take my chances here. ~~
I'm making an internal expansion for a custom plugin, https://pastes.dev/XSmHVy7fEj, ive depended on PlaceholderAPI, the expansion is registered but for some reason placeholders aren't parsing. it shows the placeholder when i run /papi parse me/<my name> %kptokens_amount%
~~https://paste.helpch.at/nehimitoba - My /papi dump showing it's at least there, and registered. ~~
What might i be doing wrong?
pebkac, got it figured out.
so staties not have months?
could use days then?
do days go above 30?
Tangguygab
is there 1.21 version?
wat?
any ideas for this?
for some reason the /(59/30) part is incorrect
incorrect how?
[02:06:24 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_{player_item_in_hand_durability}/(59/30)%
[02:06:24 WARN]: [PlaceholderAPI] [math] '/(59/30)' is not a valid Math Expression.```
the item durability placeholder returned nothing instead of 0
oh
%math_0_IF("{player_item_in_hand_durability}"=="",0,{player_item_in_hand_durability})/(59/30)%
try this
ok trying rn
[02:09:03 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_IF("{player_item_in_hand_durability}"=="",0,{player_item_in_hand_durability})/(59/30)%
[02:09:03 WARN]: [PlaceholderAPI] [math] 'IF(""=="",0,)/(59/30)' is not a valid Math Expression.```
o
uh
%math_0_IF("{player_item_in_hand_durability}"=="",0,"{player_item_in_hand_durability}")/(59/30)%
this?
edited my msg, I added a random m by mistake
o okok lemme retry haha
[02:11:43 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0_IF("{player_item_in_hand_durability}"=="",0,"{player_item_in_hand_durability}")/(59/30)%
[02:11:43 WARN]: [PlaceholderAPI] [math] 'IF(""=="",0,"")/(59/30)' is not a valid Math Expression.```
:/
%utils_parse_math_0_{changeoutput_equals_input:{player_item_in_hand_durability}_matcher:_ifmatch:0_else:{player_item_in_hand_durability}}/(59/30)%
/papi ecloud download Utils
/papi ecloud download ChangeOutput
/papi reload
Yo, how to see a plugins built in placeholders? because when I do /papi info,list it just says its there
Unless the expansion defined the placeholders in its code to show them when running /papi info <expansion>, you'll have to either check the plugin's page, wiki pages, or code
depends whether the plugin is open source or not
if it is, you can check it on github or wherever it's hosted,
otherwise you'll have to use a java decompiler on the plugin jar
perfect
just found it aswell but thank you mate
I am getting java 60.0 error. It tells me that it is using java 61.0, but I am already using java 60.0. Can anyone help?
Caused by: java.lang.UnsupportedClassVersionError: at/helpch/placeholderapi/expa
nsion/server/ServerExpansion has been compiled by a more recent version of the J
ava Runtime (class file version 61.0), this version of the Java Runtime only rec
ognizes class file versions up to 60.0
either update to Java 17 (61.0) or download an older version of PAPI's Server expansion that, supports Java 16 (60.0)
if you plan on downloading an older version, remove the current file from /plugins/PlaceholderAPI/expansions/
The version of the server is 1.16.5, I cannot upgrade to Java 17. Can you tell me which version of PAPI supports Java 16?
it's not the PlaceholderAPI version, it's the Server expansion (for PlaceholderAPI)'s version
let me check
yeah I have no idea
try all versions starting from newest to oldest I guess 😅 https://api.extendedclip.com/expansions/server/versions/
I'm guessing 2.6.2 should work
When I use the /papi reload command, it gives the same error again.
did you delete the old jar from your expansions folder?
Where exactly should I send this file?
ooohhhhhh
i sorry
i understand now
okey its work
i am so sorry
For the Server expansion, how do I create a countdown to 05:00 the next day?
%server_countdown_HH.mm.dd.MM.yyyy_29.00.{server_time_dd.MM.yyyy}% used to work, but it says invalid date now
try
/papi ecloud download Utils
/papi reload %utils_parse_server_countdown_HH.mm.dd.MM.yyyy_29.00.{server_time_dd.MM.yyyy}%
Hi, it returns invalid date
I will find some time to fix it, eventually D:
Haha thanks!
Hi, im trying to add a playerlist placeholder to discordsrv to display the amount of players online, but i cant seem to get it to work, i installed the playerlist expansion, but from there i cant seem to figure out what to do, could someone help me with this please
Note: i did /papi ecloud download playerlist
then ran /papi reload
but cant figure out how to get it to display with SRV
you don't really need the playerlist expansion for that, you can simply use %server_online% from the Server expansion
unless you want the actual list and not the player count
I think DSRV might already have an internal placeholder for that though
Ahhh so server online will display how many players are online out of the max players?
%server_online%/%server_max_players%
Can’t actually believe it’s that simple, it’s been racking my brain for hours
seems like DSRV already has its own placeholder for that though, and it's the default config https://github.com/DiscordSRV/DiscordSRV/blob/master/src/main/resources/messages/en.yml#L366
so you don't even need PAPI
Oh my god I’m so stupid how I didn’t see this idk
Honestly been trying to figure this out for like 4 hours
Sorry for ping, last thing, does the formatting matter for 2 placeholders on one line? E.g “%playercount%,|%playermax%” or is that not gonna show correct? (I’m only asking as I’m currently not at my pc to do this)
not sure what you mean
it would need to look like this yes?
DiscordGameStatus: ["%playercount%|%playermax%"]
for it to display on the presence as 1/60 for example
this is why im asking because i wasnt sure, thanks bro
I use it as conditions in the gui plugin i use so stuff only shows up if the respective plugin is installed
sorry almighty bot did not mean to offend
What placeholder do I use for blocks placed? I use the statistics placeholder for mostly everything else, and I checked this: https://api.extendedclip.com/expansions/statistic/
Could not find it, tried to find a spigot api placeholder to use in %statistic_<StatisticTypeInSpigotAPI>% But I couldn't figure that out.
Looks like there is no such statistic @merry sluice
This is the list of statistics from spigot api https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html
does anyone know with which placeholder we can turn the 100000 to 100,000 ?
formatter
💀 i said placeholder, not expansion. i m aware of the formatter expansion already
it doesnt rly matter i think? just a number that is the return value of a math placeholder
smthing like %math_0_99999+1% for example
/papi parse evicuo %formatter_number_format_{math_0_99999+1}%
thank uuu
%statistic_pig_one_cm%
How many CM is one block?
yo
anyone know why my changeoutput placeholder wont work? it's saying there isn't a match, even though there is
%changeoutput_ignorecase_contains_input:{worldguard_region_flags}_matcher:pvp=ALLOW_ifmatch:&aenabled_else:&cdisabled%
--> pvp=ALLOW, <--
mob-spawning=DENY, natural-hunger-drain=DENY, crop-growth=DENY, exit=ALLOW, entry=ALLOW, creeper-explosion=DENY, vine-growth=DENY, playersit=ALLOW, snow-melt=DENY, exit-via-teleport=ALLOW, tnt=DENY, ghast-fireball=DENY, entity-item-frame-destroy=DENY, natural-health-regen=ALLOW, time-lock=noon, frosted-ice-form=DENY, mycelium-spread=DENY, ice-melt=DENY, block-trampling=DENY, interact=ALLOW, chest-access=DENY, fire-spread=DENY, sculk-growth=DENY, snowman-trails=DENY, rock-growth=DENY, entity-painting-destroy=DENY, sit=ALLOW, use-dripleaf=DENY, pistons=DENY, enderpearl=ALLOW, soil-dry=DENY, exp-drops=ALLOW, copper-fade=DENY, build=DENY, fall-damage=DENY, item-frame-rotation=DENY, potion-splash=DENY, frosted-ice-melt=DENY, lava-flow=DENY, grass-growth=DENY]```
still parses disabled, even though pvp is allowed
nvm
hi, placeholder api doesnt register server, player, statistics and some more expansions in my server. I have to register them manually after every restart and sometimes they become unregistered even though i didnt restrart the server. What should i do? Please help
Does anyone have a link to a yt tutorial or sum on how to make leaderboards via decentholograms w the placeholders?
does the most recent release of papi support 1.21?
I think one meter is one block, so 100 cm
send your server logs
yes, though some expansions are version dependant and may need to be updated
tysm!
Is there any way to detect if a player is blocking with a shield?
how can I show the number of items with the placeholderapi plugin?
@junior musk
does the plugin support 1.21 ?
.
@junior musk
what placeholder can i use to display gmt+2 time?
is there an elseif modifier in the changeouput expansion?
It doesn't look like
Is there any way to make PAPI work on 1.21?
.
Oh ok thanks
no, but you could stack changeoutput placeholders if you wanted to, using the utils expansion
Hello, this message about ShopGUI plus is from the PlaceholderAPI plugin? Like the format of Error >>?
[17:44:08] [Server thread/INFO]: INFO >> Values loaded!
[17:44:08] [Server thread/INFO]: INFO >> Permissions registered!
[17:44:09] [Server thread/INFO]: INFO >> Schedulers started!
[17:44:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: afkrewards [1.0.0]
[17:44:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: afktimer [1.0.0]
[17:44:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: afktimerseconds [1.0.0]
[17:44:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: afkpass [1.0.0]
[17:44:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: toastedplaytime [1.0.0]
[17:44:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: toastedplaytimepoints [1.0.0]
[17:44:09] [Server thread/INFO]: ERROR >> ShopGUI+ not found.
[17:44:09] [Server thread/INFO]: INFO >> Tasks executed in 20733 ms.
npcreplay is custom one, I'll check afk one, thanks!
I'll ask dev as I don't see it in their config 😅
and idk why they're registering a placeholder expansion for each placeholder instead of making a signle one with all of them... but alright
yeah I'll let dev know, thanks for noticing
Hello, when will Placeholder API be updated to 1.21?
https://ci.extendedclip.com/view/Plugins/job/PlaceholderAPI/ latest dev build works
Thank you! :)
Anyone got an alternative or fixes for Paper 1.21
Used to work on the older experimental builds of Paper 1.21 with PAPI 2.11.6 but now on the full 1.21 Paper build not even 2.11.7-DEV works for me
tanguy, big brain moment. What is wrong with this placeholder https://paste.helpch.at/uhecoxusug.rb
%progress_bar_{math_0_{statistic_use_item}-{statistic_mine_block}}_c:&a■_p:&a■_r:&8■_l:15_m:75000_fb:&a■■■■■■■■■■■■■■■%
How do I get the math placeholder, to work inside of the progress?
hey
%server_countdown_<SimpleDateFormat>_<time>%
return invalid date
%server_countdown_dd.MM.yyyy_25.07.2024%
Gaby said he'd look into it but idk if he had the time to, I'll check tonight when I get back just in case
/papi ecloud download Utils
/papi reload
%utils_progress_bar_{math_0_{statistic_use_item}-{statistic_mine_block}}_c:&a■_p:&a■_r:&8■_l:15_m:75000_fb:&a■■■■■■■■■■■■■■■%
oh god, not again
I'll check later, I just woke up and don't have the brain power to understand that lol
send your server logs, it's likely one of your expansions and not PAPI itself that doesn't work
yea i thought it might be paper but could be an expansion too ig
can't send it here though bcs i cant attach files and it's too big
wait a sec
I don't see any issues regarding PlaceholderAPI, what doesn't work?
well the placeholders don't get parsed
the only errors I found are from Vulcan and Skungee
all of them
that's the funny thing it doesn't generate a dump
I tried and it just does nothing
yeah that happens sometimes, idk why
check /papi list
and give me an example placeholder that doesn't work
when I do /papi parse itzMiney %vault_prefix% for example
just returns %vault_prefix%
does vault show in /papi list?
papi list
[06:47:00] [Server thread/INFO]: A total of 11 placeholder hook(s) are active:
[06:47:00] [Server thread/INFO]: advancedjobs, citizensplaceholder, clantagprovider, essentials, friendsapi, luckperms, marriagemaster, player, tab, vault
[06:47:00] [Server thread/INFO]: venturechat
yea
vault also says it hooked into papi
wait what
and Vault didn't find any permissions plugin
[06:22:20] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
idk why
somehow LP didn't get detected
dw u fixed it 💀
nvm it did
i*
I'm restarting it on spigot rn just to make sure it's not paper
oh it is definitely paper
It works just fine when I run the server standalone on bare spigot
wot
yea
I think they messed something up in the latest build
well how am i gonna run this as a backend server in velocity now I don't wanna change from modern forwarding oof
ig I'll submit an issue on papermc github but like what do i even write there lol
"Placeholder API doesn't work on the latest build for some magic reason that it won't tell me in logs pls fix"
I'll test that when I home because idk how that's possible
isn't paper literally a fork of spigot
even then, how can it not work when there's no error and both plugins hooked to the other
yea
With Paper 1.21 Build #109
https://files.hideoutsmp.net/Screenshot 2024-07-24 084109.png
Wih Spigot 1.21
https://files.hideoutsmp.net/Screenshot 2024-07-24 085256.png
lol
I need friends
I think huddleverse would be a better help server for that
Can y'all send me servers I'm mobile so I can't look them up
how is an invite link from a partnered server not approved
well their invite handle is mentalhealth ig
pretty good imo for finding friends and venting and stuff but this server here sure ain't a good place for it
only a select few invites are allowed by the bot iirc
start dming people 
hello, is it normal that with the latest of papi bunch of placeholders dont work
@violet idol
https://api.extendedclip.com/expansions/formatter/
Got a few statistic placeholders that read 1234/12000 when I want them to read 1,234/12,000
I see this formatter placeholder, and it says it can format numbers by adding ',' dividers. But I cant figure it out.
Is it possible to escape a specific piece of text inside a string before applying placeholders?
So it looks identical but PlaceholderAPI won't parse it
%formatter_number_format_:#,###_{statistic_placeholder}% probably smth like this @merry sluice
%ulis_parse_formatter_number_format_:#,###_math_0_{statistic_pig_one_cm}/200%
Trying to make the Statistic Pig Cm placeholder display with '1,000' commma dividers; and /200. Thought using ulis might help, cant get it working
missing {} around the math placeholder
%ulis_parse_formatter_number_format_:#,###_{math_0_{statistic_pig_one_cm}/200}%
%ulis_parse_formatter_number_format_:#,###_math_0_{{statistic_pig_one_cm}/200}%
%ulis_parse_formatter_number_format_:#,###_math_0_{{statistic_pig_one_cm}}/200%
Tried these, not sure where exactly they need togo
first one
It doesnt work for some reason
did you download the expansions?
Yes
does it return the entire utils placeholder or just the formatter one?
the entire placeholder
%ulis_parse_formatter_number_format_:#,###_{math_0_{statistic_pig_one_cm}/200}%
%utlis_parse_formatter_number_format_:#,###_{math_0_{statistic_pig_one_cm}/200}%
ohh
not utlis
What version of placeholderapi should I use if it is a 1.8 Java 8 server?
Latest
so anyone got any idea why placeholderapi might be refusing to parse on paper 1.21 but not on spigot 1.21
Errors?
[PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: at/helpch/placeholderapi/expansion/server/ServerExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_412-412]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_412-412]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) ~[?:1.8.0_412-412]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_412-412]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_412-412]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_412-412]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_412-412]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_412-412]
Caused by: java.lang.UnsupportedClassVersionError: at/helpch/placeholderapi/expansion/server/ServerExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_412-412]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_412-412]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_412-412]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) ~[?:1.8.0_412-412]
at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_412-412]
at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_412-412]
at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_412-412]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_412-412]
at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_412-412]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_412-412]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_412-412]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:421) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_412-412]
... 5 more
Mmm
That error appears with the latest version
There is no recommended version for 1.8.8 Java 8?
I tried with 2.10.9 and the same
ok purpur 1.21 has the same issue it seems
When I start the server this is all it writes in logs that has PlaceholderAPI in it
- AdvancedBan (2.3.0), AdvancedJobs (1.3.8), Citizens (2.0.35-SNAPSHOT (build 3479)), Clans-Spigot-Part (1.0.23), DecentHolograms (2.8.9), Essentials (2.21.0-dev+106-8b08a8f), EssentialsSpawn (2.21.0-dev+106-8b08a8f), FriendsAPIForPartyAndFriends (1.6.3-RELEASE), GrantX (2.5.6), LWC (2.3.2), LuckPerms (5.4.134), MiniMOTD (2.1.2), OpenInv (4.4.7), PlaceholderAPI (2.11.7-DEV-null), PlugManX (2.4.1), ProtocolLib (5.3.0-SNAPSHOT-723), Quests (5.0.5-b480), Skript (2.9.0), Skungee (2.0.0-BETA-5), TAB (4.1.6), UberEnchant (8.11.5), Vault (1.7.3-b131), VentureChat (3.7.1), Vulcan (2.8.9), WorldEdit (7.3.4-beta-01+0452ca2), WorldGuard (7.0.11-beta1+a801a9d)
[16:37:46] [Server thread/INFO]: [PlaceholderAPI] Loading server plugin PlaceholderAPI v2.11.7-DEV-null
[16:37:54] [Server thread/INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.11.7-DEV-null
[16:37:54] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[16:37:55] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: citizensplaceholder [1.0.0]
[16:38:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: advancedjobs [1.0.0]
[16:38:10] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: clantagprovider [1.0]
[16:38:11] [Server thread/INFO]: [VentureChat] - Enabling PlaceholderAPI Hook
[16:38:11] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: venturechat [3.7.1]
[16:38:12] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: Vulcan [2.8.9]
[16:38:12] [Server thread/INFO]: [Vulcan] PlaceholderAPI found. Enabling hook!
[16:38:14] [Server thread/INFO]: [GrantX] Hooking into PlaceholderAPI...
[16:38:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: marriagemaster [2.7.7]
[16:38:15] [Server thread/INFO]: [MarriageMaster] PlaceholderAPI hook was successfully registered!
[16:38:15] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: tab [4.1.6]
[16:38:23] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[16:38:23] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: friendsapi [1.0]
[16:38:23] [Server thread/INFO]: [AdvancedJobs] Successfully hooked into ProtocolLib, WorldGuard, PlaceholderAPI, Essentials, Vault, LuckPerms.```
No errors at all
Running /papi list give's this output
[16:43:35 INFO]: A total of 8 placeholder hook(s) are active:
advancedjobs, citizensplaceholder, clantagprovider, friendsapi, marriagemaster, tab, venturechat, vulcan
But then /papi parse itzMiney %player_displayname% just returns the unparsed placeholder %player_displayname%
Also it says dev null bcs I tried to use my own dev build where I updated the build.gradle to use paper dependency instead of spigot and updated to java version 21 but that didn't seem to make any difference too, the logs are the same with 2.11.6 and 2.11.7-DEV-200 tough
It does work completely fine on normal spigot 1.21 with all the same plugins by just switchin out the server jar so the issue must lay somewhere within paper ig
I just downloaded the latest Paper build for 1.21 and it works perfectly fine
you're missing the player expansion
/papi ecloud download Player
/papi reload
it does the same when I try it with vault_prefix tho
they're downloaded and in the expansions folder
it just doesn't detect them ig
maybe bcs of my own build but with the normal dev-200 build they showed up i think and still no parse
/papi dump
imma try that real quick
or check console on /papi reload
doesnt work no matter 2.11.6 2.11.7-DEV-200 or my own build
as well as papi reload
only papi list works
is that 2.11.7-DEV-200?
.
working fine as wel on dev 200
weird
but it can't be a plugin conflict since it works on spigot 1.21 with exactly the same plugins
maybe something with the paper remapping idk
hm yea it seems to not register vault expansion and player expansion the other placeholders that it hooked into parse correctly
okay i removed the 4 most recent plugins i added and now it works
ig the plugins break papi on paper only somehow
gonna readd them one by one to single out which one is causing it
i already have a suspicion which one it is but I'll try one by one first
Yep it's Quests 5.0.5 like I suspected
That plugin already made some other issues
Like when I log out it spams the console full of timeout errors until the server just stops
I'll check that later
this one
well maybe they will fix it some day
https://github.com/PikaMug/Quests/issues/2266
BRUH I downgraded a version to Quests 5.0.4 and the placeholders just work now okay good ig
still shits console full of timeout errors when I leave until it stops the server though oof
Hi guys! Smbdy knows if there is a placeholder, that can took and display a current player's head? For example to display it in the HUD?
Or how it can be possible to do?😔
hm I can only see that be done with custom unicode characters in a texturepack with like ItemsAdder or smth like that
But placeholders are just normal text usually
texts are made of characters
fair you could make a placeholder for it
but you'd def need a custom resource pack or smth
yeah
placeholderapi alone won't cut it
this should probably be possible with something like itemsadder but that is a paid plugin, it does support PAPI tho afaik
maybe you can find a free plugin that does that but you definitely need something else other than just papi
b480 is that a dev release?
%vault_rank% works as well, /papi reload & /papi dump too
latest on Spigot/Modrinth
that one, 5.0.5 on July 2
Echinacea Update is the one I used too
Hm imma try again
nop as soon as i add Quests 5.0.5 it breaks
maybe another plugin causes it to break?
🤷
I do have quite a couple so might be likely
[17:41:35 INFO]: Server Plugins (26):
[17:41:35 INFO]: Paper Plugins:
[17:41:35 INFO]: - MarriageMaster
[17:41:35 INFO]: Bukkit Plugins:
[17:41:35 INFO]: - AdvancedBan, AdvancedJobs, Citizens, Clans-Spigot-Part, DecentHolograms, Essentials, EssentialsSpawn, FriendsAPIForPartyAndFriends, GrantX, LuckPerms
[17:41:35 INFO]: LWC, MiniMOTD, OpenInv, PlaceholderAPI, PlugManX, ProtocolLib, Skript, Skungee, TAB, UberEnchant
[17:41:35 INFO]: Vault, VentureChat, Vulcan, WorldEdit, WorldGuard
🤷
Well I gotta check with the dev of Quests if there are any possible incompatibilities ig
does it throw a shit ton of timeout errors into your console if you disconnect
no
Ig both problems are likely a plugin incompatibility then
help
Hello, do you know why this error occurs? I am using a placeholder created with denizen
[17:01:34 INFO]: Additional Error Info: Warning: PlaceholderAPI from wrong thread, blocked. Inform the developer of whatever plugin tried to read Placeholder data that it is forbidden to do so async. You can use config option 'Scripts.Economy.Pass async to main thread' to enable dangerous access.
[17:01:34 INFO]: Additional Error Info: Internal exception was thrown!
[Error Continued] java.lang.RuntimeException: Stack reference
Hi! My problem with papi-javaskript expansion this creates large lags on my server. How to reduce refresh time of my placeholders?
PlaceholderAPI (v2.11.6) Server thread596.18% me.clip.placeholderapi.PlaceholderAPI.setPlaceholders()596.18% me.clip.placeholderapi.replacer.CharsReplacer.apply()596.18% com.extendedclip.papi.expansion.javascript.JavascriptExpansion.onRequest()593.96% com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate()604.19% com.extendedclip.papi.expansion.javascript.evaluator.NashornScriptEvaluator.execute()609.74% javax.script.AbstractScriptEngine.eval()526.02% org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval()526.02% org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl()524.78% org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl()264.98%
Spark timings
`var placeholder = '%auraskills_power%';
function placeholderCheck() {
switch(placeholder){
case '15': return '&f%oraxen_lv0%';
case '16': return '&f%oraxen_lv0%';
case '17': return '&f%oraxen_lv0%';
case '18': return '&f%oraxen_lv0%';
case '19': return '&f%oraxen_lv0%';
}
}
placeholderCheck();`
my code
[PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: at/helpch/placeholderapi/expansion/server/ServerExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_412-412]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_412-412]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) ~[?:1.8.0_412-412]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_412-412]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_412-412]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_412-412]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_412-412]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_412-412]
Caused by: java.lang.UnsupportedClassVersionError: at/helpch/placeholderapi/expansion/server/ServerExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_412-412]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_412-412]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_412-412]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) ~[?:1.8.0_412-412]
at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_412-412]
at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_412-412]
at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_412-412]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_412-412]
at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_412-412]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_412-412]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_412-412]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:421) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_412-412]
... 5 more
i have problems with the plugin
/papi ecloud download Server
is working
and then
i can't ./papi reload
and it doesn't appear 'Server' when I do /papi list
when will it update to 1.21
Download the latest dev build
could i have the link pls?
?
found it nvm
https://ci.extendedclip.com/job/PlaceholderAPI/ for anyone who needs it
Can anyone help me translate the following data to a checkitem placeholder?
{id: "pixelmon:pixelmon_sprite", Count: 1b, tag: {ndex: 1s, palette: "none", form: "", gender: 0b}}
To %checkitem_mat:STONE,amt:1,data:2,nameequals:&6Test% (as an example)
Not sure if I should be using checkitem_mat: or checkitem_nbtstrings
hello i have a question regarding Formatter expansion.
ive been using %formatter_number_shorten_{placeholder}%, and it suddenly stopped working a few days ago, idk if its bcs of some formatter or PAPI update but it displays this:
[10:26:52 WARN]: [PlaceholderAPI] [formatter] Invalid placeholder %formatter_number_shorten_{ecoskills_farming_current_xp}% [10:26:52 WARN]: [PlaceholderAPI] [formatter] Cannot convert farmingcurrentxp} to a double.
@ me when answering
hey i been trying to use placeholder api in my plugin, but idk what i am doing wrong
String uuid = player.getUniqueId().toString();
int currentProgress = Database.getPlayerAchievementProgress(uuid, key);
Map<String, Object> rawLevels = config.getConfigurationSection("achievements." + key + ".levels").getValues(false);
Map<Integer, Integer> levels = rawLevels.entrySet().stream()
.collect(Collectors.toMap(
entry -> Integer.parseInt(entry.getKey()),
entry -> (Integer) entry.getValue()
));
int nextLevelProgress = levels.getOrDefault(currentProgress + 1, -1);
if (nextLevelProgress != -1) {
line = line.replace("%progress%", currentProgress + "/" + nextLevelProgress);
}
String reward = config.getString("achievements." + key + ".rewards." + (currentProgress + 1), "Brak nagrody");
line = line.replace("%reward%", reward);
line = PlaceholderUtil.applyPlaceholders(player, line);
return ColorUtil.translate(line);
})
.collect(Collectors.toList());
int slot = config.getInt("items." + key + ".slot", 0);```
discord wont let me send more of my code
package pl.podatek.utils;
import me.clip.placeholderapi.PlaceholderAPI;
import org.bukkit.entity.Player;
public class PlaceholderUtil {
public static String applyPlaceholders(Player player, String text) {
return PlaceholderAPI.setPlaceholders(player, text);
}
}```
and the method
no errors
its just saying 0
i am trying to use statistic_death for this one
(i am doing this so users of this plugin will be able to use more placeholders and create their own achievements)
i added it to pom.xml
and to plugin.yml as soft depend
Hello please can anybody help me I got this server where I need to make numbers from /money essentials x be formatted in scoreboard from 100000 to 100,000 etc etc
This is the code in TAB plugin scoreboards:
balance:
title: "<#E0B11E>%player%</#FF0000>"
lines:
- "%animation:MyAnimation1%"
- "&bVaše finance&7:"
- "&a$%vault_eco_balance%"
- "%animation:MyAnimation1%"
I need the %vault_eco_balance% to be formatted so it shows the balance but with , sorting thousands, etc
I have the same issue but with %vault_eco_balance% I dont know what to do
i fixed it, just download the latest dev build
this one
I cant download off internet, my server is hosted through aternos... Any ideas on what to do?
oh okay nvm it still doesnt work for me either xdd
what mc version does your server run on?
1.21
what PAPI version?
Wait 
no it doesnt work on dev either
alr, i fixed it, however its a problem not in formatter but in the plugin that provides the placeholders used in the formatter.
for me it was ecoskills, i had a problem in the config. make sure your vault & economy plugin is running well, the problem is most probably there.
Is there a placeholder that retunrns the amount of enchantment an item has? For exaple if a sword has shrapness III and ubreakin II the placeholder value should be 2. Thanks in advance
Hey! Any idea when a stable release of PAPI for 1.21 will release?
2.11.6 already works on 1.21
Awesome, thank you
couldn't find any
Thank you anyway
probably this would help. https://www.spigotmc.org/threads/placeholder-help.430041/
however i dont know how to use the expansion 😅
is there a placeholder for people in a specific gamemode or a players alive one?
2.11.6
as i said, it will probably be a vault problem
Is there anything else I can do to make the %vault_eco_balance% (/balance) in scoreboard to format it from 100000 to 100,000 etc
So what can I do? %vault_eco_balance% works fine I dont have no problems with vault
Wait could it be maybe because Im typing the wrong command for the formatted numbers ecloud download?
I was trying even yesterday to create it myself with help of chatgpt but it didnt work
We tried to make our own papi formatting expansion
Anything you would recommend me to do then?
try /papi ecloud download Formatter
and then /papi reload
And then what?
if it wont help try /papi ecloud update Formatter
i think it should work then
send me the exact placeholder you're trying to parse
Yes but what command should I try out to check if it works?
/papi parse me <placeholder>
what placeholder is not working for you?
Waitttttt
It works!!!!
Its because I was typing the wrong command the whole time!
The correct command is /papi parse me %vault_eco_balance_commas%
I was typing like %formatted_vault...
well yeah, it can also be done via formatter but that one is easier
wait commas is not formatter ?
hi, is there a version working on 1.21?
Hey, any expansion or smth to show relative time with a unix timestamps? Like this: <t:1722136920:R>
is it true?😮
yes.
guys, when i try /papi ecloud download SuperiorSkyblock2 , it says that "failed to find and expansion named: SuperiorSkyblock2", im not writing wrongly, Has support for superiorskyblock2 been dropped?
there never were any superiorskyblock2 expansion on the ecloud, it's built within the plugin
you don't need to download anything
i cant set island level,
command /rankup:
trigger:
set {_islandlevel} to "%superiorskyblock2_island_level_int%"
set {_islandlevel} to {_islandlevel} parsed as integer
i try this but it gives me an error like this:
[15:11:46] [Server thread/INFO]: Line 3: (rutbe.sk)
[15:11:46] [Server thread/INFO]: Region '%superiorskyblock2_island_level_int%' could not be found
[15:11:46] [Server thread/INFO]: Line: set {_islandlevel} to "%superiorskyblock2_island_level_int%"
[15:11:46] [Server thread/INFO]:
[15:11:46] [Server thread/INFO]: [Skript] Encountered 1 error while reloading rutbe.sk! (426ms)
I tried with/without %
uh
you can't change the value of a placeholder like that
placeholder only return information, you can't set their value like a variable
you'd need to change the value within SuperiorSkyblock2 with a command or their API (idk if you can access that with Skript)
or I misunderstood something
i tried this too:
command /rutbeatla:
trigger:
if {"superior_island_level_int"} >= 1000:
execute console command "lp user %player% parent add SkyLord"
its succesfully reloading but its not working even though im above 1000 level
how can i check if its value above 1k or not
i tried with/without " and % too
i added: send "Island level: superior_island_level_int"
it just says superior_island_level_int in chat
its works yes
then the plugin you're using it in doesn't support PlaceholderAPI
yes it seems so, let me continue my research, thank you for your help
Hi, is it true that PlaceholderAPI 2.11.6 works without problems on 1.21?
no it's not
the message you replied to is an absolute lie
I said it to propagate misinformation because I have nothing better to do in my life
we also put 1.21 in Tested Minecraft Versions on Spigot to spread even more lies
Sorry for asking such a stupid question, I'm just a complete newbie to this and just today I started learning how to create game servers in Minecraft.
Thank you very much!
you had the answer in the message you replied to
idk why the question was necessary
sorry if I'm being rude but we just get this question like 10 times a day ever since 1.21 was released
It’s just that the comments about what supposedly doesn’t work confused me, I’ll try not to ask you such stupid questions, my mistake)
understandable, most of the times it's just people using PAPI expansions that aren't updated yet for 1.21, or just completely unrelated errors (such as expansions being made for newer Java version) that confuses people and make them believe PAPI isn't ready for 1.21 yet
How to get nbt lists in items using placeholders?
The CheckItem expansion only manages Nbts ints and strings is there any other way?
This is valid:
%parseother_unsafe_{superior_island_top_worth_2_leader}_<superior_island_count_stone>%
This is not valid:
%math_{parseother_unsafe_{superior_island_top_worth_2_leader}_<superior_island_count_stone>}*100%`
Why is this not valid?...
2 issues, you have <> around the second SuperiorSkyblock2 placeholder instead of {}, and placeholders don't support more than 1 {bracket placeholder} unless you use Utils
/papi ecloud download Utils
/papi reload
%utils_parseplaceholder:[{superior_island_top_worth_2_leader}]_math_{superior_island_count_stone}*100%
Alright thank you.
Can someone please help me. Is it possible to have two separate boolean values for two different placeholders?
I have a placeholder testing if pvp is enabled or not and it will return Enabled or Disabled, but I have another placeholder that checks for AFK, and I need it to return [AFK] or "" (blank)
Can anyone help me?
@gleaming charm
Any news my guy?
??????
On the formatter
can you add pls voteshop permission that works only if player has enough or above kit battle coins? like %coins%=5 but if it exist pls tell me how to do it
you can use the ChangeOutput placeholder
/papi ecloud download ChangeOutput
/papi reload
%changeoutput_equals_input:{PLACEHOLDER HERE}_matcher:Enabled_ifmatch:[AFK]_else:%
what's the issue?
Can someone please help me. Is it possible to have two separate boolean values for two different placeholders?
I have a placeholder testing if pvp is enabled or not and it will return Enabled or Disabled, but I have another placeholder that checks for AFK, and I need it to return [AFK] or "" (blank)
idk if theres some utility placeholder out there for that but you could do that with javascript no problem
Is there a placeholder to an Offline player permission? Or is this even possible
If you have vault installed, the vault expansion might work, otherwise the permission expansion works for sure.
is there a placeholder that will work on TAB to show ingame time not real life time ingame time
Ye, then it is a lp limitation, since vault will just pull data from lp
yeah, offline players aren't loaded even when parsing the placeholder
kinda understandable as you wouldn't really want to load thousands of players' data
unless you have like infinite RAM
Does anyone know how to use a different placeholder in an expression in Math expansion?
%changeoutput_>=_input:{%coins%}_matcher:5_ifmatch:[working]_else:%
is it right for my request?
%coins% isn't a valid PAPI placeholder
can someone add kitbattle support?
I want make day left until with placeholder
example: 7days until (7d 24h 60m 60s)
How to create?
To what?
@sharp jay Unknown expansion.
is there a placeholder to tell u the time of the day ingame the ingame time
%player_world_time_12% and %player_world_time_24%
you will need the expansion /papi ecloud download player
then /papi reload
kitbattle plugin support especially to %coins%
would it work on TAB
is there a plugin that would also work with multiverse that makes a world a gamemode and force the people to use that gamemode on that specific world
would this work on 1.20.6
https://modrinth.com/plugin/force-gamemode
it doesnt work like i hope it would it works on all the worlds even if i put the name of the world in it works on other worlds aswell which i dont want to
How do I upload the a PlaceholderPAPI plugin to the eCloud?
i read that i need an account and get in contact with the devs
do you have an expansion ready to upload now?
Yes
anybody know a placeholder for killing
amount of kills the player has?
How ?
how what
yeah and deaths
i can't send pic.
use imgur
deaths and kills
leaderboard or just the amount the player themselves have
%statistic_deaths% %statistic_player_kills%
oh i got statistic
you will need to /papi ecloud download statistic
but didnt know they were placeholders of those
yea
i send it
aight thanks man
i send it,
send what?
HOW ?
...
Yes
in the config obv
Man these cringe no tag rules are a pain but fair enough
It is on my github, in a min i can get on the pc and send you the link
@warm topaz can you help me ?
Tell if some changes are needed for the ecloud idk
remove ur MoveCraftPAPI class, expansions should not be extending JavaPlugin
can i just create a branch without that class?
then u can have a canRegister() method to check if MoveCraft plugin exists
i mean sure? but if this is an expansion, its a useless class
does the expansion get registered in automatic? or do i need to do extra stuff
yeah automatically
well i still want to have the choice to use jar tbh
more for convenience for testing
as soon as it gets dropped into expansions folder / downloads from ecloud, it will register upon reload
yo justepic
?
so the prefix?
yeah
%luckperms_prefix%
thanks
wait
when i downloaded the
luckperms on ecloud
it doesn't go in to my ecloud
it says it hooked
or something but its not in there
no, and yeah papi will find the class that extends placeholderexpansion, your MovecraftPAPI class will never have any of its methods called by papi.
piggypiglet
is it normal that some of the ecloud thingies you download dont go in your ecloud?
probably not
i dont understand why some of them dont go in it
like essentials worked
but luckperms not
like is it just the file explorer not being synced to what's actually in the folder or are the placeholders not working
because you said it hooked
but you can't see it
ok done
https://github.com/Intybyte/Movecraft-PAPI/tree/ecloud this is the branch remove the main javaplugin class
did you type /papi reload
yes
errors in console?
let me check
it says this
[18:01:34 WARN]: [PlaceholderAPI] Cannot load expansion luckperms due to a missing plugin: LuckPerms
but i have luckperms
oh nevermind
i dont
im so dumb

well once it is upload ping me please or i will forget lol
or do will you guys make the account for me idk
pig, its just cube that can make accounts right?
nah I'm making an account now
I just don't do it very often so just a matter of not messing it up
2 secs
"intybyte" or "vaan1310" for the username
just remove the persist() check, as this is isnt necessary in ecloud expansions too
then that looks good
alrighty
please remove the fact that if i forget a field it deletes everything, my sanity... will upload it soon
Hello, guys. How can I get the Verified badge or do I have to pay for it?
I created my extension called "LogMaster"
Thankfully this isn't Twit- I mean X, you just have to ask here (which you did) and wait for admins/moderators to check that the expansion is safe and they'll add the Verified badge
https://api.extendedclip.com/expansions/logmaster/
Sending the link here so someone can verify it
understood, thank you and sorry! I will write correctly
t
Can someone verify my extension?
https://api.extendedclip.com/expansions/logmaster/
hii, i got a problem with the math placeholder, when i add it and reload papi, than for some strange reason it auto removes/disables all the other placeholders like Server or Player. does anyone know the reason why it happens? cuz when that happens the math plugin also wont work 😅
[PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: at/helpch/placeholderapi/expansion/server/ServerExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_312]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_312]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) ~[?:1.8.0_312]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_312]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_312]
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_312]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_312]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_312]
Caused by: java.lang.UnsupportedClassVersionError: at/helpch/placeholderapi/expansion/server/ServerExpansion has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_312]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_312]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_312]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) ~[?:1.8.0_312]
at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_312]
at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_312]
at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_312]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_312]
at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_312]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_312]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_312]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:421) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_312]
... 5 more
the Server expansion requires Java 17 while you're on Java 8
hello?
Hi! Can anybody help me? Some of the new attributes don't work on the placeholderapi on the expasion of attribute. I send some images
O wait I can't images, well, the attributes that begins with PLAYER don't work, for reference: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html
Yes, anything that doesn't start with GENERIC_ is ignored because at the time the expansion was made, there were some non-player attributes. I will open an issue on the repo to remove this restriction
Hello!, Is there any PlaceHolders variable that detects UHC wins?
Okay, ty
Hi, does anyone know of a placeholder that shortens the time format, i.e., from 1h 30m 50s to just 1h 30m, so that there are only 2 time modules?
Are there any placeholders for player playtime per session?
is there a placeholder that can change the font of a letter with one inside of my resoucepack, like how tellraw is like
{"text":"x","font":"namespace:ui"}
Got a issue of the Server expansion
/papi parse me %server_countdown_dd.MM.yyyy_06.08.2024%
It return "invalid date" back
when i use/papi parse me %server_countdown_MM/dd/yyyy-HH:mm_04/08/2024-06:30%
it back a "0" on the chat
by the way this the error log of when i use first command:
Hello guys, how can I check if the string in another string? For example, I need to check if "ato" in "potato" and return some text. I've tried method "potato".includes("ato") but it returns me errors
try "potato".contains("ato")
is there an expansion for getting total players on a velocity network
wait
the bungee one sort of works
but its like a bit inconsistent
Is there a way i can increase the time it takes for a placeholder to check Bungeecord placeholder?
there should be a check_interval config option
yea its set to 1 yet it doesnt update untill 30 seonds later
might need to restart server
@warm topaz Please help my placeholder dont update eg breaking a block or playtime
Im having an issue with placeholder, it cant find any expansions in the ecloud area.
I cant install "Server" for it.
im not sure why all of a sudden the placeholder stopped working. it parses fine in game
https://paste.helpch.at/uxuliyiliv.py
why when parsing the %deluxemenus_meta_TEST_STRING_test% with /papi parse --null the placeholder returns the placeholder as a it is
Because metas are stored on player data ??
No player (--null) = no data
@atomic folio parse the auraskills placeholders in-game, what do they return? I think sometimes the data is not available and the placeholders return an emptt value OR if the player is null (e.g. they left the game but some plugin tries to parse placeholders without verifying if the player is still online)
Hi guys! I'd like to know - there is a way to check the item's customModelData and to change on another one? Can someone give me an example pls🙏 ?
for example - when u put a stick into a frame - then in the frame appears an apple
the placeholder parses without issue in-game and returns the expected decimal
wow srsly
cant even reply to someone??
🤮
the placeholder parses fine in-game and returns the expected decimal
Is the error occasional?
how to add a placeholder for a skript?
command mapclear:
permission: mapclear.use
trigger:
broadcast "&d&lᴘᴀʏ&b&lʙᴏx &8&l| &b> Map reset in 5 seconds"
wait 5 second
loop {mapclearb::*}:
if loop-value is in region "inbox":
set block at loop-value to air
broadcast "&d&lᴘᴀʏ&b&lʙᴏx &8&l| &b> &aMap has been cleared"
delete {mapclearb::*}
on block place:
if player's gamemode is survival:
if event-block is in region "inbox":
add location of event-block to {mapclearb::*}
every 30 minute:
wait 29 minutes
wait 55 seconds
broadcast "&d&lᴘᴀʏ&b&lʙᴏx &8&l| &b> Map reset in 5 seconds"
wait 5 second
loop {mapclearb::*}:
if loop-value is in region "inbox":
set block at loop-value to air
broadcast "&d&lᴘᴀʏ&b&lʙᴏx &8&l| &b> &aMap has been cleared"
delete {mapclearb::*}
delete {mapclearc}
with placeholder definetly not, atleast id say so, kind of violates the whole point of placeholderapi, it only should return data not alter it
oke, thx 😕
does anyone currently have a working FactionsUUID top papi expansion? all other plugins for factions top are outdated afaik(1.21)
So I have papi player downloaded but %player_hunger% not working for me. Any help?
Didn’t work
@glacial idol %player_food_level%
Ye I used that
Ty
Is there a specific plugin I need to display player kill count and death count
statz keeps track of that
Alr
statz_players_killed and statz_death
I got the plugin but It says I can’t do papi ecloud download statz
@glacial idol expansion is built into Statz now
Wdym
does /papi parse me %statz_players_killed% work
what placeholder is working?
The %statz_players_killed%
that placeholder requires statz to work
how do I prevent numbers 10m+ from displaying as scientific notation
How come %server_brand% %server_max_ram% %server_used_ram% and %server_mstp% don’t work
help: I redid javascript expansion by replacing the nashorn engine with rhino in it, but now there is a problem the setPlaceholders() method is not found in the placeholdersapi context class, it is also not on the rewritten quickjs
Because they don't exist LOL
it's %server_ram_used%, not %server_used_ram%
and the others don't exist
they weren't removed, they just never were added
Oh ok Ty
hi, i have a small issue, why i cant download the latest version of spark although i download it by using /papi ecloud download spark?
what does it say when you run the command?
oh i cant send the image...
i have never used imgur before lmfao
anyway
wait me a bit
[23:31:47 INFO]: Ruasus issued server command: /papi ecloud update all
[23:31:48 WARN]: [PlaceholderAPI] Failed to load external expansion spark. Identifier is already in use.
[23:31:48 WARN]: [PlaceholderAPI] Cannot load expansion spark due to an unknown issue.```
here is what i have tried
and about download it
try /papi unregister spark and then /papi ecloud download spark and /papi reload
[23:37:57 INFO]: [PlaceholderAPI] Fetching available expansion information...
[23:38:00 WARN]: [SuperVanish] Could not intercept tab-completions using ProtocolLib: Field index 0 is out of bounds for length 0
[23:38:01 INFO]: Ruasus issued server command: /papi reload
[23:38:01 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[23:38:01 INFO]: [PlaceholderAPI] Fetching available expansion information...
[23:38:01 INFO]: [PlaceholderAPI] Successfully registered external expansion: luckperms [5.4-R2]
[23:38:01 INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8]
[23:38:01 INFO]: [PlaceholderAPI] Successfully registered external expansion: server [2.7.2]
[23:38:01 INFO]: [PlaceholderAPI] Successfully registered external expansion: spark [1.0]
[23:38:01 INFO]: [PlaceholderAPI] Successfully registered external expansion: statistic [2.0.1]
[23:38:21 INFO]: Ruasus issued server command: /papi ecloud status```
when i ran /papi ecloud status, the spark expansion wasnt the latest ver
weird
try downloading it manually
wait
but there's only 1 version on the ecloud
1.0-R1
i want to know if there is some way to create and define custom placeholders. it would be very helpful with creating our tags menu
sorry what do you mean?
okay, is there a verified addon that can do the same?
oka, ill try it thanks
00:34:40 INFO]: 5 placeholder hook(s) registered! 1 placeholder hook(s) have an update available. (its spark)
yeah, i have no clue
Anyone know how I can create a custom kick message for EssentialX using PlaceholderAPI?
I want it to be like...
You've been banned for %Reason% by %Mod%
Your Username: %User%
From the players pov it would be (if they self banned themselves)
You've been banned for Hacking by Notch
Your Username: Notch
I'm getting an error when I try to parse this variable %player_item_in_hand_level_<enchantment>%
https://pastebin.com/q6y5hPgB
enchantment is null
