#placeholder-api
150650 messages · Page 111 of 151
Ahh
how to check dyed armor ?
Weird indeed Pro
where is the code that it downloads something?
line 138 in the .java one
its not downloading anything
its reading the jar to find the matched string
its weird 
but not downloading anything
shouldnt be messing with nms, or players/entities attributes anyways
its a tokensenchantment expansion for plugin
its a papi expansion
not the plugin
Yeah the expansion should just get the data from the plugin
what does it even use that data for tho
I'm wondering if he just used some library
its not one of the placeholders it gives the enduser
What does the expansion class look like?
its obfuscated with zelix Klassmaster
Bs
is thecode used?
Bs?
i want to change the factor to the number insert at placeholder like this %javascript_name_0.1%
args[0]
at where
var factor = args[0]
thanks
possibly. do yk which one would work? it would say like 4000mb was being used (but really fluctuating), while console said 7.5/8gb
I have no idea
sorry for ping, how to check string
function checkPage(page){
if page = "hex" return 1;
}
checkPage("deluxemenus_meta_hexRgb-page_STRING");
if (page == "hex") return 1;
wait you still hadn't fixed it? I told you what to do
I need help
There is no time to wait! Ask your question @leaden python!
[19:01:55 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.11.3 generated an exception whilst handling plugin message
java.lang.IllegalStateException: java.io.EOFException
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:408) ~[patched_1.16.5.jar:git-Paper-794]
at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:455) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.PlayerConnection.a(PlayerConnection.java:3084) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.PacketPlayInCustomPayload.a(SourceFile:44) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.PacketPlayInCustomPayload.a(SourceFile:9) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.PlayerConnectionUtils.lambda$ensureMainThread$1(PlayerConnectionUtils.java:35) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.TickTask.run(SourceFile:18) ~[patched_1.16.5.jar:git-Paper-794]
at net.minecraft.server.v1_16_R3.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.16.5.jar:git-Pape
I dont understand whats happening here
its spammin all the time
can you try this jar ? https://www.spigotmc.org/threads/placeholderapi.61918/page-151#post-4577149
nah man, i did what you say
I cant get why that happens and why my version doesnt fix it tbf
i fixed it before i said i fixed it
yeah it's so weird
maybe you could add a console print to see which Bungee subchannel breaks it?
wait nvm
it's the Players channel
but why
[20:13:23 WARN]: [PlaceholderAPI] Failed to load expansion premiumvanish. Identifier is already in use.
@vivid sparrow I've got an idea to possibly fix the issue, there's an available() method in ByteArrayInputStream, maybe you could check if it's == to 0, and if yes then return?
Does anyone know if there's a placeholder than can strip color codes from an input? For example, {luckperms_prefix} returns "&#AAAAAA[Knight]&r " and I want it to return "[Knight] "
I tried changeoutput:
%changeoutput_equals_input:{luckperms_prefix}_matcher:&#AAAAAA[Knight]&r _ifmatch:[Knight]_else:%
And that works perfectly, except it's not general enough, I have to make one for every existing prefix on my server. A theoretical one that could just take an input and return the input without color codes would be perfect.
I feel like I've seen an expansion doing just that but can't find it anymore
maybe the js expansion could do that? I'll see
If you do manage to find it, it'd be a huge help.
Trying to get the prefixes to show up in discord via discordsrv
install the JS expansion, create a new js file, and put this in it
args[0].replace(/&#[a-f0-9A-F]{6}/,"")
then register your js file in javascript_placeholders.yml (you have to give it a name like stripcolors or smth), and use %javascript_stripcolors_{luckperms_prefix}%
(if you need help on how to use the JS expansion https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script)
Keep in mind js might be slow
true, but since it's for DiscordSRV, it's probably only called everytime you send a message
so shouldn't be a problem
I couldnt call it, might not be available in java 8
f
oh nvm, was looking at the wrong class
wait but it is a ByteArrayDataInputStream
wat
uh, I guess you could cast it to that and use the available() method?
IDEA doesn't seem to be complaining
anyone knows how to override the time placeholder api updates my placeholder? asked chatgpt and got this
private BukkitRunnable dataRequestTask;
@Override
public void register() {
super.register();
// Schedule the data request task to run every 1 minute
dataRequestTask = new BukkitRunnable() {
@Override
public void run() {
for (OfflinePlayer player : Bukkit.getOfflinePlayers()) {
if (player.isOnline()) {
// Trigger the onRequest method for online players
plugin.getPlaceholderAPI().refresh(player);
}
}
}
};
dataRequestTask.runTaskTimer(plugin, 0L, 20L * 3L);
}
@Override
public void unregister() {
super.unregister();
// Cancel the data request task when the expansion is unregistered
if (dataRequestTask != null) {
dataRequestTask.cancel();
dataRequestTask = null;
}
}
but this doesnt work and there doesnt seem to be any documentation about this
my class: https://paste.md-5.net/lonomoseyo.java
is there no way to make placeholders update quicker?
the place holder i have states how many players are in a specific server
when i join in that server, the placeholder takes a minute to update, id like it to update the player amount immidietely
Is there any placeholder for a certain player, like, when I use /papi parse Player (placeholder), it gives me the value for that player. Can that be done with a playerholder like %PLACEHOLDER_PlayerName%?
ParsesOther or Utils
%parseother_{player}_{placeholder}%
%utils_parseother:[player]_<placeholder>%
the [] and {} are necessary
Alright, thanks!
placeholders update every time they are called. Best not to ask chatgpt for programming related things fyi
it'll be wrong and you won't know why
and how can i avoid it to be called?
?
depends on the plugin using the placeholder
everytime the placeholder is parsed, it updates
if the scoreboard parses all placeholders once a second, it will grab that new value once a second
if the scoreboard never updates placeholders, you'll be stuck with whatever it started with (bad scoreboard plugin)
If you parse a placeholder and it doesn't update/change right away to what you're expecting, there may be a limit set in the papi config/3rd party plugin config
so it depends on the scoreboard plugin not the placeholder?
Yes, to update and refresh for a new value.
gotcha thanky ou
Check this out, applicable to you as well: #placeholder-api message
which placeholder is it?
and where are you using it
how do string random work ?
I am using %bungee_<server>% and %pinger_max_server:ip%
pinger (underscore) max (underscore) server ip
%string_random_<string1>,<string2>,<string3>,<etc>%- Returns a random string from the list given
this would return, at random, either <string1> <string2> <string3> or <etc>
can you elaborate on what's happening here?
pinger expansion has an update-delay in the papi config
and bungee_<server>?
you can use `` to escape formatting fyi, like this %pinger_max_<server:ip>%
Ah, %string_random_<string1>_<string2>_<string3>_<etc>% this is from ecloud
does bungee_server have a update delay option
please don't clog up the chat
sorry
github
which is linked on the ecloud
it looks like it does
check your config
``# PlaceholderAPI version 2.5.1
Created by extended_clip
check_updates: true
cloud_enabled: true
injector_enabled: true
boolean:
'true': 'yes'
'false': 'no'
date_format: MM/dd/yy HH:mm:ss
expansions:
bungee:
check_interval: 30
server:
tps_color:
high: '&a'
low: '&c'
medium: '&e'
server_name: A Minecraft Server
pinger:
offline: '&cOffline'
check_interval: 30
online: '&aOnline'
``
check_interval?
yes
also you can use code formatting for soemthing liek this
?codeblocks
wait what?
Is there a reason you need it so frequent?
more resources
doesnt bother me
ok and what did you mean by the stuff above
you're making a call to all your bungee servers every second
surround your text with the example the bot shows
it explains pretty good
but whats the need if its been working the way it is rn?
Hmm?
that config has nothing configured by me
so ill leave it how it is since it hasnt given me any issues
not gonna change it to 1?
there's nothing else to change?
nope, i just need to change pinger delay as well
I never recommended changing your config
what I recommended was formatting your config properly in discord
?codeblocks
didnt work
I would maybe do at least like 5 seconds
did it wrong?
ok ill do 5
pinger:
offline: '&cOffline'
check_interval: 30
online: '&aOnline'
i change the ' to "?
yeah
ive been doing that with my code
# Created by extended_clip
check_updates: true
cloud_enabled: true
injector_enabled: true
boolean:
'true': 'yes'
'false': 'no'
date_format: MM/dd/yy HH:mm:ss
expansions:
bungee:
check_interval: 1
server:
tps_color:
high: '&a'
low: '&c'
medium: '&e'
server_name: A Minecraft Server
pinger:
offline: '&cOffline'
check_interval: 30
online: '&aOnline'
i only did 2 earlier cause i was still testig two of the ``
pinger:
offline: '&cOffline'
check_interval: 30
online: '&aOnline'
oh word?
yml or yaml
# PlaceholderAPI version 2.5.1
# Created by extended_clip
check_updates: true
cloud_enabled: true
injector_enabled: true
boolean:
'true': 'yes'
'false': 'no'
date_format: MM/dd/yy HH:mm:ss
expansions:
bungee:
check_interval: 1
server:
tps_color:
high: '&a'
low: '&c'
medium: '&e'
server_name: A Minecraft Server
pinger:
offline: '&cOffline'
check_interval: 30
online: '&aOnline'
woah
thats sick
didnt know that
fancy
also if you use our paste service, you can change the ending to show formatting as well
?paste
but

make sure your scoreboard is updating as well @valid marlin
not sure what plugin you use
what could be the side effects of making it 1
you're calling all servers every second to check if a number changes
which, most likely, has not changed
5 seconds, 10 seconds, 15 seconds
even 5 makes a big difference
20% of the calls
wish there was a plugin that just immidietely pings the place holder to update once it detects a player has joined the server
things could get a little tricky then too
say you have 20 people join at the same time
20 calls instead of 1
but also, then the placeholder relies on connection to another server and you would never know if it disconnected
placeholderapi isn't a cross-server plugin either
if we experience any issues ill set that delay higher
to be honest we only really need the delay to be 1 for one specific server
which isnt a regular gamemode
its our event server
i was gonna have every server have the delay to 1 but now im seeing that it may not be the best
but the event stuff for sure will need it
because those are capped with how many can join
so we want it to have the fasted refresh time
wym
each server has a check-interval for it's own placeholders
remember nothing is cross-server
every one of your server instances makes it's own call to the event server
and then change it back after
ether way, 30 is way to long for the refresh
you said 5 is fine?
or should we got a little higher
I'd go like 15
alr ill do 15
as I said, every server makes it's own calls
so if you have 20 servers
with the bungee expansion
every 15 seconds they will all ping the bungee server to get the information they need
for each server
now, looking into it a little more, it might only do a call for a specific server if it's been requested before
so if you never type %bungee_skywars50% it will never make the call to retrieve the count I believe
if you did want somebody to edit the code and maybe only update the event server quicker, the source is here https://github.com/PlaceholderAPI/Bungeecord-Expansion
hi i saw the wiki and i was looking for a team plugin compiteable with placeholdera[o and i can only find expensions for the "team" plugin but i cant find the plugin iteself.
which placeholder is responsible for counting the picked up items
Is it possible to pick a premade placehodler such as "%betterTeams_tag%" and if its output is "", it outputs "&7NONE"?
Yes, with the changeoutput expansion
%changeoutput_equals_input:{beeterteams_tag}_matcher:_ifmatch:&7NONE_else:&f{beeterteams_tag}%
Thanks!!!
Hi! The placeholder of %worldguard_region_has_flag_pvp% doesn't return anything, do you know why?
can you do /rg info and see if any of the regions at your location have that flag?
tehnically it should return yes or no if the flag exists or not, hmm
can you try another flag?
yeah, one sec
also, see if region_name works
i tried, ride, but nothing appears
and, same here
I think I know what it is, the placeholder has not been updated since 2019
placeholder of exp when used /xp of essentials is what so
why %player_exp% dont return current exp points ?
try exp_to_level or total_exp
Description fro Spigot javadocs:
Gets the players current experience points towards the next level.
This is a percentage value. 0 is "no progress" and 1 is "next level".
It basically returns a percentage
how do i parse to a variable
like i want to take the output from a /papi parse command (ran by a command block)
and put that literal variable inside of another variable
is this possible (or another method that does the same)
to specify i wanna get the localtime and put it in another variable where its prevented from updating
Is there any placeholders to show a specific player's essentials nickname? Not the player who's looking at it but a specific player instead
/papi ecloud download Utils
/papi ecloud download Essentials
/papi reload
%utils_parseother:[<player>]_essentials_nickname%
that works thank you!
How do I get the mob's current health as a placeholder? (In the mobs display name)
what mob?
Is there a placeholder to counting the picked up items?
%statistic_PICKUP% maybe
Thank you
[22:22:19 INFO]: Mantuv issued server command: /papi reload
[22:22:19 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[22:22:19 INFO]: [PlaceholderAPI] Fetching available expansion information...
any1 can help me with this?
but still got no fix
i've tried a small solution appear there, then i know that i can't use that method
as the author said "but doesnt work everytime"
ah, the comment were taken-down
help me pleaz 🙏
has your ecloud worked in the past?
i did /papi dump doesnt show ajything
yea
ok
were you the one that said it works on 2/4 servers?
YES
HAHA
😅
it works on other server, like they are all same
all on the same hardware?
any differences between your expansions
no, i only download
Server
Player
Bungee
Luckperms
Essentials
on entire server
i just created that "creative" last night
literally clone from the survival
before the 1.20 release
at the next day, it happens to the survival and oneblock
papi reload is still "fetching" with infinity time
😭
thinking it's definitely having troubles connecting
if you disable the ecloud it shouldn't try to
and reload would work fine
yeah haha wait imma disable that and restarted the server
aahh i can't attach any screenshots here 😭
oh
ok
ah
forget to ss
some of the placeholder are working
then i do papi reload
it happen again
🥲
wait
yeah
unfortunately I have no fix for now
https://imgur.com/a/aDXL1Rw before papi reload with ecloud off after restart
if you cann /papi dump before /papi reload breaks papi, attach that too
https://imgur.com/a/XcUG3VZ after papi reload with ecloud off after restart
what was the command that we check the version of an expansion again? :/

[22:44:39 INFO]: Mantuv issued server command: /papi reload
[22:44:39 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[22:45:12 INFO]: Mantuv issued server command: /papi dump
[22:45:16 INFO]: Mantuv issued server command: /papi reload
[22:45:16 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[22:45:18 INFO]: Mantuv issued server command: /papi dump
no "fetching" word anymore
maybe becaouse ecloud off
Can you add all that info to github?
yep
uhhh huh
alright
oh actually
?paste
one thing before the log
and i can look into it too
i think there is a debug option in the config
if you enable that, restart, reload, dump, etc. try all the things, then send the log
ok
you got it
I believe you have a plugin that is using the player identifier
not sure if this is directly causing the issue, but I noticed it loading player v1.0
latest is 2.0.4
i've seen this before, let me look at your plugins
can you send me a list @untold frigate ?
quick /pl
anima bossbar
the developer of this plugin should not be using player as their identifier
they need to use something like... animabossbar
I would contact them and inform them
hmm?
I am confused why they even include an expansion in their plugin
all it provides is player name and player uuid
which can be accessed by... our public Player expansion
which you are trying to use
as i said before, my other 2 server with animabossbar got it work
https://imgur.com/a/wAWymdS creative
maybe player expansion is registering before animabossbar does
and stops the issue from occurring
either way, AnimaBossBar needs to either remove the internal expansion they have, or change the identifier
hmm
can't we change the boot priority?
ah i guess no
or shall i rename the plugin? xD
i guess the prio is by alfabet
what version of papi u use? 2.11.3?
dev
possibly load order? but not sure how you can change it to fix it
maybe use another bossbar plugin
yeah
as i said about the "prio", by alphabet
imma try it and see xD
hokaye
lmao renamed it to zAnimaBossBar-4.7.jar
the file
hmm
sure...
i think changing dependencies might be a better way to do it
or load time (not sure how to specify when it loads, can't remember)
hmm
papi is already a dependency of animabossbar, at least a soft dependancy
papi loads first, but registers expansions after
I would: switch the boss bar plugin you are using
or: get the dev to fix their shit
laziest dev fr fr
there's no reason they should even have an internal player expansion that only returns name and uuid
with z?
yeah
lol
always does
🥲
actually it didn't
I would just stop using it
but, for future note, if you open the .jar with winzip or something
you can edit the plugin.yml
and make the plugin dependant on placeholderapi
which would force papi to load first
[23:19:47 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms [5.4-R2]
[23:19:47 WARN]: [PlaceholderAPI] Failed to load expansion player. Identifier is already in use.
[23:19:47 WARN]: [PlaceholderAPI] Cannot load expansion player due to an unknown issue.
[23:19:47 INFO]: 4 placeholder hook(s) registered!
have no idea with this
name: AnimaBossBar
version: 4.7
author: Dutchwilco
description: A nice bossbar plugin!
main: me.Dutchwilco.AnimaBossBar.Main
softdepend: [PlaceholderAPI]
commands:
bb:
description: BossBar-Spigot plugin.
usage: /<command>
bb reload:
description: Reload the BossBar-Spigot plugin.
usage: /<command>
bb broadcast:
description: Send a broadcast bossbar
usage: /<command>
bb playerbroadcast:
description: Send a specific player bossbar
usage: /<command>
but i can ignore it, because the lobby and creatve server got it too
see he has a softdepend which doesn't force load order
or something like that
hmm
the issue is because animabossbar is using the player identifier as mentioned before
remove the plugin, that message goes away, maybe your problems solved
it has to be purely a misunderstanding of how PAPI works by the dev
because i still need the template xD (the bossbar content)
ya, you can delete the plugin too, files stay
lmao
doesn't really matter tho
i've used TAB for bossbar, but the bad thing is, this TAB piles bossbar content, instead of changing between bossbar content like animabossbar does
idk i misconfigured it or not, looking around internet still got no solve
never used it
that mc plugins site is really weird imo
but not for the papi reload
back to this after running papi reload https://imgur.com/a/m41BoS8
ah i shall regret it
😓
yep... figured it wouldn't fix that issue
sad
but now your player placeholders work
i m using CustomNameplates from polymart for my bossbar
maybe this belongs to papi hahaa (for the /papi reload one)
it even changes the way that the bossbar looks
ya, probably
thanks for da recom
i hope this got fix asap, thanks for the temporary solution 😊
%formatter_number_time_{nf_#######_math_70000-{playtime_time_seconds}}%
Is there any way to run this?
try utils
%utils_parse_formatter_number_time_{nf_#######_math_70000-{playtime_time_seconds}}%
Worked, thank you
hehe just came looking for the same
So far paper, velocity, luckperms, geyser, floodgate, openaudio I have been able to upgrade
based on the time of the last dev build for 2.11.4 - My guess is no not yet
It was released couple days ago, make sure all plugins you need support it first
Hey guys I'm trying to make placeholder for my plugin and got confused with these:
Without an external plugin
With an external Plugin (Separate Jar)
With an external Plugin (Internal class)
what are the main differences and what should I use?
Btw I'm creaeting placeholder in my own plugin to display it on other scoreboard plugin which isn't mine
use the internal class
that means ur placeholders will be packaged within ur plugin jar file
Alright will try thanks
oh yea and another thing is
@Override
public String onRequest(OfflinePlayer player, String params) {
if(params.equalsIgnoreCase("placeholder1")){
return plugin.getConfig().getString("placeholders.placeholder1", "default1");
}
if(params.equalsIgnoreCase("placeholder2")) {
return plugin.getConfig().getString("placeholders.placeholder2", "default2");
}
return null; // Placeholder is unknown by the Expansion
}
I'm quite confused about "placeholders.placeholder1" and "default1"
so what are those and how should I name it?
thats just an example
but if(params.equalsIgnoreCase("placeholder1")){
// your code
}
would equal to the placeholder being %getIdentifier()_placeholder1%
Ohhh okay
Alright so I've finished registering placeholder.
Now if I want to retrieve player's level stored in plugin's config.yml to %getIdentifier()_level%, which method should I use?
or perhaps this might work?
@Override
public String onRequest(OfflinePlayer player, String params) {
if(params.equalsIgnoreCase("level")){
return String.valueOf(plugin.getConfig().get(("UUID: " + player.getUniqueId() + ".level")));
}
return null;
}
What placeholder can i use to get a specific attribute from the item a player is currently holding? So if the item the player is holding has 4 attack, i get 4 from the placeholder
can you download checkitem, hold the item, and type /papi parse me %checkitem_getinfo:mainhand_nbtstrings:%
i can look into adding attribute support for checkitem
Would be lovely
you can subscribe here if you want https://github.com/PlaceholderAPI/CheckItem-Expansion/issues/61
not sure when I can get it done, but probably soon-ish
Sweet!
anyone here remember about https://github.com/PlaceholderAPI/PlaceholderAPI/issues/965 ?
i got it solved omg
removed the plugin named Skungee
there's bug in there
not probably papi's fault
because the geyser experiencing same issue
like there's some plugin blocking some "connections" on the server
causing papi went offline
geyser not listening to its address/port
feels like some internet usage of the server went offline haha xD
Hi guys, I'm using papi version 2.11.3 on the new 1.20 update and It seems that is working 100% fine! https://i.imgur.com/xFtLWWi.png
Hi, I have a placeholder that displays remaining total seconds, for example 532, how can I make that It shows the remaining time as a digital clock with remaining minutes and seconds? Style 08:52
Just a quick question
Is it possible to view a placeholder to a website or if it is a way to do that?
i don't know of any public plugin that does this
you might be able to configure the format here to do that https://codeberg.org/Andre601/Formatter-Expansion/src/branch/master/placeholders/number/time.md
(formatter expansion)
if you turn time.condensed to true and change time.minutes to ':' and time.seconds to ''
I Will try it, Ty so much!
Does PAPI support Bungeecord?
no
where can i find the latest download?
hi
anyone online in this server???
my baltop is broken
this happens when I do /papi parse me %essentials_baltop_player_stripped_1%
Hello, I have a question when will the placeholder player be updated? /papi ecloud download player
I don't know, it was displaying after /papi reload
now its ok but
[02:36:57 WARN]: [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend or softdepend of this plugin.
hmm, odd
is there some sort of expansion/placeholder that checks if the player has unlocked an achievement?
Does PAPI and placeholders already work on 1.20, or I need to wait?
i found some placeholders work while others do not
most i found work
%player_ping% does not though only one i found that doesnt work so far
XD
the field for ping got changed in 1.20, so the expansion needs to be updated to support it
i can successfully parse the following
%cmi_user_name%
%luckperms_prefix%
%cmi_user_playtime_formatted%
%advancements_completedAmount%
%advancements_completedRemaining%
thats fair thats what i was thinking XD
most placeholders will work, especially the ones that are linked to plugins (unless they brought in some breaking changes in newer updates), only version dependant ones will need to be updated
❤️
I was working to get voteparty plugin to work and testing things out I unregistered it from placeholderapi and now can not figure out how to reregister it. Could someone possibly help me with this issue?
is there a placeholder can comes back as the bungee server your in
wat 
well for example
that placeholder would return yes to Tanguygab and no to Tanguygab14fwgfwgw
cause that user doesnt exist on the server
If there isn't, you can probably use the Javascript expansion and check Player.hasJoinedBefore()
yeah exactly
gg %player_has_played_before%
oh yeah
forgot that existed
though you might want to check for player_online as well
i didnt notice it when i was looking for smth like that
nah not rly i dont need it
i wanna open profiles
so the player being offline isnt a big issue for me
because if it's the first time the player joins, it'll still display false
you're using DeluxeMenus ?
minimum_requirements: 1
witheach requirement having optional: true
hmm true that
yee thanks
open_requirement:
minimum_requirements: 1
stop_at_success: true
requirements:
player_played_before:
type: javascript
expression: '"%parseother_{{player}}_{player_has_played_before}%" == "yes"'
optional: true
player_is_online:
type: javascript
expression: '"%parseother_{{player}}_{player_online}%" == "yes"'
optional: true
deny_commands:
- '[message] &7[&3&l!&7] &7This user isn''t online'
works flawlessly :d thanks for the help
;-; what
why use javascript while you can just use string equals
open_requirement:
minimum_requirements: 1
stop_at_success: true
requirements:
player_played_before:
type: string equals
input: "%parseother_{{player}}_{player_has_played_before}%"
output: "yes"
optional: true
player_is_online:
type: string equals
input: "%parseother_{{player}}_{player_online}%"
output: "yes"
optional: true
deny_commands:
- '[message] &7[&3&l!&7] &7This user isn''t online'
or if you really want to use JS, then you can just merge both requriements in one and use ||
ik about the string equals :/
open_requirement:
requirements:
player_played_before:
type: javascript
expression: '"%parseother_{{player}}_{player_has_played_before}%" == "yes" || "%parseother_{{player}}_{player_online}%" == "yes"'
deny_commands:
- '[message] &7[&3&l!&7] &7This user isn''t online'
oh thats a thing? awesomee
but I'd still recommend the string equals because it's much more efficient than using JS

Is there any placeholder that shows the MSPT of a server?
Server used to have it but not anymore.
it never did, you probably were using a fork
I'm assuming there aren't any that do it now right?
no, probably not
Help, I don't know why but when i whant to install the placeholder "marriage" it give me an error that don't exist
but in the wiki is there with the command to install it
It’s not verified so you have to download it manually (unless the plug-in updated to include it)
@kind sierra
/papi ecloud download ListPlayers
I wanted to download it, but it says failed to find an extension
Because I need a placeholder, which lists how many players are in a certain world.
use PlayerList instead
download it with /papi ecloud download PlayerList and /papi reload
and then configure the expansion in your PAPI
It worked, thanks!
is there a placeholder can comes back as the bungee server your in
maybe not the bungee defined name, but there is %server_name%
Hey good morning all, someone knows if parsing /deluxemenus execute player [console] command <chance=0.02%> each block broken should affect on server perfomance?
probably
check the ExecutableEvents plugin on spigot u might find what u r looking for
I'll take a look ty!
viaversion expansion gives an error
[12:04:16 WARN]: [PlaceholderAPI] Cannot load expansion ViaVersion due to an unknown issue.
why doesn't it work
you have viaversion yet ?
i have viaversion yes on the proxy
hello, have there been any news about updating the plugin to version 1.20? thank you in advance
the PAPI expansion requires the plugin to be on Spigot, not BungeeCord
otherwise ut can't detect it
what? 🙂
https://modrinth.com/plugin/papiproxybridge
this thing
does it say anywhere that it is an official plugin? 🙂
nope
is there placeholder which can be used here, i want to have a limit per day for buying and selling items in shop plugin
items:
- id: sand
item: sand
buy:
type: coins
value: 4
display: $%value%
limit: %cooldown_24_hours%```
seems like player placeholders not working on 1.20.. Any fixes you guys might have?
only the ping should be broken, wait for an update
Depends on the plugin you use.
PlaceholderAPI only provides placeholders, it's up to plugins to parse them
Hello, is player expansion outdated/broken on 1.20? Seems like it's not working properly
It was not updated yet
viaversion expansion doesnt work right
i went on 1.20
it said the server version 1.19.4
i went on 1.19.2
said 1.19.4
am i doing this worng or something
doing /viaversion list says the right thing but parsing it doesnt
is there a placeholder that would show players face icon (the one that shows next to name when you hold tab)
thx
now i need help with my issue
Hello, on my 1.20 server the placeholder from the player expansion %player_ping% isn't working as well as %ping% from another expansion. Other placeholders work from the expansion just not anything involving ping. Would anyone happen to know why?
When will player expansion be updated if anyone has any information
the expansion vault is available to minecraft 1.20?
when will PlaceHolderAPI update for 1.20 ?
I would guess it will still take sometime
Does placeholderapi work with 1.20?
placeholder %player_ping% breaks my deluxemenus and everything else
there's something wrong with that one placeholder
DEV build for Player Expansion supporting 1.20
@spark moon @austere hawk @neat snow @plucky light please try this
sure
its suspicious
but u are from the staff so
i guess
well suspicious or not it works! Atleast for me
Im waiting for the full update for 2.11.4
is it discord saying its suspicious? because it does that with all jars
no I usually dont download things from Discord
lol
@warm topaz thanks
oki ty
yeah thx
awesome
.
works ty
didn't mean to ping my bad
Thank you so much! It fixed a lot of plugin compatibility issues
Didn't mean to reply with a ping my bad
%ezrankspro_rank% is showing up as "none" for me after I updated my config
I assume I messed up my config
huh
If its 1.20, read the pings
When I installed vault on papi ecloud on the console it replies with "Cannot load expansion vault due to an unknown issue."
why everytime i restart my server all the player placeholders just all come out as the name of player
Is there any ETA?
for?
Hello placeholder %bungee_total% not working
there is placeholder - not amount of players
in the papi parse showing 0 players but there are 2
PAPI for 1.20
waiting a placeholder api for 1.20...
there are no dedicated builds ATM, but updates will come
should work for the most part, I had no issues using it
PAPI works fine but everyone is waiting for the player expansion to fix the ping placeholders on 1.20
hey guys. anybody works with PlaceholderAPI? i created custom placeholder which shows information about player state(flying or not(null string)), but if string is null it return space
i wanna remove this space cuz if player is not flying then instead of placeholder i will get space and it will make mine (tab for example) more ugly
There's the %player_exp% placeholder which requires the Player expansion, How do i add this?
any tips?
maybe download this expansion? (papi ecloud download player)
Check pins for updated player expansion
and its even normal?
it worked thx
Can someone tell me whats wrong with this CheckItem string?
- '%checkitem_mat:CRAFTING_TABLE,strict,amt:10%'
It appears that currently, using the amt check does not work in conjunction with strict
- '%checkitem_mat:CRAFTING_TABLE,strict%' works fine
- '%checkitem_mat:CRAFTING_TABLE,amt:10%' works fine
- '%checkitem_mat:CRAFTING_TABLE,strict,amt:10%' does not work
how do i share a placeholder that proxy using to cross servers?
like viaversion shows wrong version when on proxy and purpur
When you parse this, do you have exactly 10 crafting tables?
or more than 10?
does nobody know my answer?
i don't really understand it, but you can't share a placeholder from one server to another
at least there is no public plugin that I know of that allows that
more than 10. Does it need exactly 10?
when using strict
are you using deluxemenus?
yup
maybe use %checkitem_amount_mat:crafting_table,strict% with the comparator >= type
output: 10
i mean viaversionvelocity is giving correct versions in game
but viaversionbukkit isnt
I also need to use checkitem remove to remove them, so it has to be within checkitem placeholder
and papi is using viaversion bukkit
so it's a problem with viaversionbukkit?
all the papi expansion does is retrieve it from viaversion
placeholderapi is a spigot/bukkit plugin not bungee/velocity/proxy
how are you seeing this info @ebon flint ?
well doing /vvvelocity list
and /vvbukkit list
and placeholder api goes by /vvbukkit version
so the issue lies within viaversion bukkit
not papi
the papi expansion will not change to use "viaversion velocity" api because papi is a spigot plugin
it would make no sense
if you want to create your own expansion to do so, no problem
here is the already existing code https://github.com/PlaceholderAPI/ViaVersion-Expansion
not specific to checkitem, it's inverting dm requirements
ahh that was it
Is there a way to check if an item has no enchantments?
theres the enchanted check, but is there a not enchanted check?
not really
welp
detect a vanilla crafting table
instead of another item I have that is also a crafting table, but with custom name, lore, and nbt
its damn near impossible
strict should work
nope, cant use strict because I need to use amt:10 and its going to confuse the crap out of people if they can't use it when they have anything more or less than 10
@gilded bough
can't use that either, because I need to use checkitem_remove as a DM placeholder to remove the items, and I can't use DM comparator strings in there
- '[placeholder] %checkitem_remove_mat:CRAFTING_TABLE,amt:10%'
%checkitem_remove_mat:crafting_table,strict,amt:10% should remove 10 crafting table
yes, only if you have exactly 10
are you sure
if you have 11, doesn't work
how do I do that?
/papi parse me %checkitem_remove_mat:crafting_table,strict,amt:10%
it might have been not removing them because of your requirement
returns no
and you have more than 10?
it does
we know that this only returns yes if it's exactly 10
so then we're good
so I need two different strings then
click_requirement:
requirements:
hastables:
type: '>='
input: '%checkitem_amount_mat:crafting_table,strict%'
output: '10'
click_commands:
- '[placeholder] %checkitem_remove_mat:crafting_table,strict,amt:10%
nice
thanks CJ
hey
i m facing an issue with InteractiveChat plugin
but it pinging placeholderapi but i m using 1.20 , placeholdeapi latest
@mint fable
can u help ?
i just responded to you like 2 min ago
is that okay?
is player expansion broken for 1.20?
Hello, I just installed the latest version, and the placeholder no longer works
Hi! what should I do if the placeholder pinger displays the server status always offline, even if the server is connected to the network? I apologize if the translation was incorrect
There's a dev build pinned in here, test it and report back
thanks a lot
it works, console errors has disappeared and i can see the tps and player ping now
Hi Everyone, where can I find dev builds? Having issues updating expansions in 1.20.1
if you are looking for the player expansion, there is a dev build pinned on this channel
Apologies for not being clear, I cannot update any expansions. I had assumed it was the update to 1.20.1 and I was looking for PlaceholderAPI dev build to see if that fixed anything.
Can you elaborate on the issue?
What issues are you having?
All information about dev/production builds can be found in #1-20
nothing for papi yet
^apologies.
what is in your expansion folders
right now the paste website is down for /papi dump
that's the error you see
it looks like you might have multiple math expansions
Only one jar per expansion. I get the same error when trying to update 8 others also.
https://pasteboard.co/QBucnE0RqNss.png
only on 1.20.x this happens?
I should have updated before pushing to 1.20.x 🙂 Give me a few mins and I'll check a backup on 1.19.4
update seems to work fine for me
/papi ecloud update all
1.20.1
try deleting your math expansion
and download new from ecloud
Deleted mato expansion.
Stopped server. Started server.
Ran papi ecloud download math: Successfully downloaded expansion Math [2.0.2] to file: Expansion-math.jar
Stopped server. Started server: [PlaceholderAPI] Successfully registered expansion: math [2.0.2]
You know what, despite the error on update I think it is updating them anyway. I no longer see the message from papi on console about out of date plugins. Also the timestamp on the expansions that needed to be update, changed.
So I think the error is only a false positive in my case.
?help
Its just spamming in console
Its because of bungee expansion in papi
replace the old one by that in your /plugins/PlaceholderAPI/expansions/ folder
do math expansion have random ?
%math_RANDOM()%
so how to random 100-200
can somebody help me
maybe
I have a problem with my TAB
you updated to TAB 4.0.1 without checking the changelogs?
??
what's your issue?
%vault-prefix%%afk%
so it's exactly as I've said
you updated TAB to 4.0.1
and didn't bother checking the changelogs
yes
%math_RANDOM()*100+100%
but can you help me?
maybe ?
it works
How do I find the PlaceholderAPI AFK placeholder for TAB?
did you even read the changelogs? 😐
Yeah, on GitHUb
Oh.
I downloaded it off modrinth and checked github lol
modrinth doesn't seem to have the full changelog either
probably NEZ wanting free users to be on their own xD
lmao probably yeah
He seems to hate free users and is very passive aggressive there lol from seeing his old Modrinth title about 1.20 update
I get the support only available to paid users but like
you can just include the changelog lmao
well considering that people kept harassing him because "tHe PlUgIn Is FrEe, WhY nO sUpPoRt?" (we legit got that every day before he deleted the #community-support channel), and also people spamming issues for stuff explained on the wiki, you could say that he got a bit pissed off 😅
Yeah but that is not all of us lol
I've used the TAB support discord about once lol
yeah, it depends on people
Forgive me for asking for support if the changelog was not on either modrinth or github
I feel like that is reasonable
dw that's understandable
I thought he put it there, but apparently not
at least he did say that he removed the placeholders on modrinth and BBB
oh hey, he did put the full changelog on the free version's page on BBB
so just GitHub and Modrinth
welp, anyways
tell me which person likes BBB over modrinth, spigot or github
or even hangar
Like surely BBB is on the bottom of that list lol
lots of people use it ¯_(ツ)_/¯
but yeah, my favorite has to be Modrinth, with Github next to it since you literally have the source with it
The average code quality on BBB is not the best compared to Modrinth or even Spigot
Most stuff on Modrinth is very well made, and stuff on Spigot is still fine and trustworthy
BBB has so many scams and useless plugins lol
Spigot and BBB were pretty much the same thing when it was still MC-M, but the update it got was pretty decent imo, the only reason I still don't use it is because everything is on Spigot xD
I don't mind Hangar, I've only checked it for 1 plugin so far since it wasn't on the others
I wish hangar didnt exist ngl
Modrinth is just a better version since it supports mods and shaderpacks too and looks nicer
Now I have to go to Spigot, Modrinth, or Hangar on all 3 sites just do update my server because devs all stick to only 1 or 2
Well, I'm guessing they're planning more things once they start/release their hardfork of Spigot
I almost wish it was only still Spigot but Spigot is messy asf
Paper is hardforking spigot...?
I mean, they announced a while back that they were planning to make a hardfork, that was going to try and go its own way, so it wouldn't depend on Spigot anymore
Idk why Spigot even exists
There's no reason to use it and Paper updates just as fast as Spigot (albeit unstable at first)
So I guess Spigot is good if you want to update to a new version immediately since they don't have as many patches and can update much faster whilst being stable
papi is not working on 1.20.1?
it is, but if you're using %player_ping%, it's broken
there's a dev build of the player expansion pinned in this channel
Wait PlaceHolderAPI supports/runs on 1.20?
for me it is not even working in essentials
works fine for me
there's no version dependant code
What's broken in it? Just %player_ping%?
any errors in console on /papi reload?
for the player expansion, yes, because the ping field in the EntityPlayer class changed again
tang help me pls
😐

