#placeholder-api
150650 messages · Page 123 of 151
well what do i have to do to pass the review?
yo
maybe someone had a similar problem
[20:23:31] [Craft Scheduler Thread - 52 - PlaceholderAPI/INFO]: [LocalTime] Couldn't get No_oN's timezone. Will use default timezone.
is there a way to fix that?
Hi, is it possible to get a fix for https://api.extendedclip.com/expansions/server/ to make it run well with PremiumVanish because even if one is in vanish it is claculated by the server in the number I mean
?
This is in TAB plugin
- ' &fGlobal: &e%bungee_total% &fOnline: &e%server_online% &fPing: &e%player_ping%ms &fTPS: %spark_tps_5m% '
Think he means %premiumvanish_playercount%
Or one of those placeholders. Not sure which you are looking for.
In practice I use %server_online% as you can see only activating premium vanish keeps counting me
.replace("%lpPrefix%", PlaceholderAPI.setPlaceholders(player, "%luckperms_prefix%") : noassignment)
trying to make it, so that if its default (aka ""), it will remove the space
do you know what im doing wrong
Hello, what to do when one plugin loads Player placeholder like this:
[04:06:38] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: player [1.0.0]
And overwrites the normal player extension, and then the %player_...% placeholders don't work? Can I solve it somehow, please?
Expansions provided by plugins have priority over local expansions
Find what plugin does that and contact the author
Is there a script that converts time in seconds to formatted time like 5h45m20s?
So you have choices with that
You could try this expansion. https://api.extendedclip.com/expansions/time-expansion/ I've never used it but it looks to have %time_format_seconds_<seconds>% which might work
Alternatively you could write a script in the javascript expansion to format the time to whatever you wanted, but that's a little more hands on
Is there a script for reversing this action? (seconds -> formatted time)
I think I may have done that
give me a second
function timeToDate() {
var date = new Date()
var l = args[0].split(" ")
for (var i=0; i<l.length; i++) {
var arg = l[i]
var c = arg[arg.length-1]
var value = parseInt(arg.replace(c == "o" ? "mo" : c,""))
if (c == "s") date.setSeconds(date.getSeconds()+value)
else if (c == "m") date.setMinutes(date.getMinutes()+value)
else if (c == "h") date.setHours(date.getHours()+value)
else if (c == "d") date.setDate(date.getDate()+value)
else if (c == "w") date.setDate(date.getDate()+(value*7))
else if (c == "o") date.setMonths(date.getMonths()+value)
}
return date
}
timeToDate()+""
register that script in your javascript_placeholders.yml with a name like date or smth and then use %javascript_date_<time placeholder>%
Returns "Sat Nov 11 2023 15:36:20 GMT+0300", is this right? (argument dont changes anything)

oh
I think my script does the same thing cj's does actually 😅
I thought I had one for what you want though
well it shouldn't be to hard, I think
I'll try to remake one
I did it@real parrot
thanks, works now
How can i check for a ítem in mmoitems?
Like getting the variable of the ítem in the inventory
i need help
There is no time to wait! Ask your question @austere hawk!
i don't know how to make %server_online% and %afk% work
/papi ecloud download Server
/papi reload
not working
why do you want to register on the ecloud if you don't know what papi is? 🙂
Because I want to share with my plugin to MineResetLite in website
I'm not sure I understand what you're looking to do?
Hi I'm wondering if someone here can set me in the right direction. I want to use the placeholderAPI from the lands plugin, this is all working properly. I want to add something when I show the stats of players which is:
%lands_land_role% of the land %lands_land_name%
When someone hasn't joined a land it returns none with the lands name (and obviously also the role returns none) and the other way around.
I want it to check if the output is none and then display the text: "Join a land first to see this information"
Anyone who already knows how to do this or can put me in the right direction (by explaining this more professional so I can look further on google without getting vague results)
Thanks in advance 🙂
Changeoutput. If it's none, say some text, otherwise display the placeholder
%changeoutput_equals_input:{lands_land_role}_matcher:None_ifmatch:Join a land first..._else:{lands_land_role}%
Chat:
localPrefix: ''
shoutPrefix: '&c[S]&r'
LocalNoOne: '!actionbar!&cNobody hear you, write ! before message for global chat'
shoutDeduction: '!actionbar!&cDeducted &e[amount] &cfor shout'
# Use \n to add new line
publicHover: '%changeoutput_equals_input:{lands_land_role}_matcher:None_ifmatch:Join
a land first..._else:{lands_land_role}%'
PublicHover is the one I'm playing with, this should be correct?
Forgot to mention you.
Thank you!
So with a land it gives the correct output Owner of the land (NAME). Without being in a land it returns: None of the land None again
Back where we were
/papi parse me %lands_land_name% does in fact return none
changed equals to contains and that did it 🙂
nice
might be colored or something
Ah so you think I should use ignorecolor as well or can you only give one <option>
Oh sorry Barry, I only replied 😦
Hey everyone, so I want to give player's some "titles" below the nametag, for that task I'm using the plugin TAB, but I also want to change the language, so I installed the PAPI extension ChangeOutput and it works, but the "title" get's the information of the owner, is there a way to make the text under the nametag change depending of the player that is looking?
I am having trouble getting placeholderapi to work. I added ecloud extentions nothing seems to work. Any help would be appreciated.
Do you have both the Vault plugin and the Vault PlaceholderAPI Expansion? If so, send the output of /papi dump
Which expansions did you download and can you send the output of /papi dump?
The only way to do that would be to use relational placeholders.
You could ask in #1169541792799145987 or #1169541792132239360 for someone to make you an expansion with a relational placeholder that checks some info regarding the viewer and depending on it, display what you want or nothing (an empty string)
Sure! Here is the /papi dump. https://paste.helpch.at/ifagubuqiz
I downloaded the essentials extention. I wasent sure what the other ones did so I didnt download them. Very new to this whole process.
it seems to have loaded correctly
what doesn't work exactly?
If you want to be able to use Vault placeholders (such as %vault_eco_balance% for your money or %vault_group% for your permissions group), you need to download the expansion:
/papi ecloud download Vault
/papi reload
👍
I downloaded vault from ecloud and I doesnt work. This might be because I use essentialsX for ingame currency. I looked on the wiki and found some essnetialX placeholders to test out, but none seemed to work.
For example: When I type in %essentials_jailed% and press enter It comes back as %essentials_jailed%.
which Vault placeholder didn't work? also make sure the expansion loaded correctly in /papi list (or do /papi dump again and Ctrl+F vault because you seem to have quite a lot of expansions 😅)
and do the essentials placeholder work in /papi parse? (for example: /papi parse me %essentials_jailed%)
how to insert a placeholder into a placeholder example: %world_players_<%player_world%>% ??? (translated)
%placeholder1_{placeholder2}% -> %world_players_{player_world}%
it doesn't always work though
some placeholders support that, some don't
If it doesn't work, try with the utils expansion (/papi ecloud download Utils & /papi reload)
And use %utils_parse_placeholder1_{placeholder2}% -> %utils_parse_world_players_{player_world}%
it worked, thanks : )
every player gets this warning
[20:23:31] [Craft Scheduler Thread - 52 - PlaceholderAPI/INFO]: [LocalTime] Couldn't get No_oN's timezone. Will use default timezone.
im using localtime expansion to get correct timezone for each player
Good evening, out of curiosity, is there a placeholder where you enter the tag name and it shows you the player's name that has the tag?
no
tags are by perms, and multiple people could have the same tag, so it wouldn't really be possible
It could be possible to get a list or amount of people with a specific tag with the Playerlist expansion though if you're interested 👀
I'm looking for a plugin dev for paid work. Please contact me asap.
I need the plugin to add a placeholder for luckperms, example: %VaultLevel_PlayerVaultLevel%
Thanks, Done.
I'm getting constant errors from a few of my plugins in relation to PlaceholderAPICalulator
java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.PlaceholderAPIPlugin.getInstance()" is null
I've just updated to PurPur 2090 when this started
example of one of the warns - https://paste.helpch.at/mulanifipe.rb
Any advice on how to fix?
Nvm, it was waterfall update, we reverted back and fixed
uh, ok
how can i show, all the online players on my server when i have a bungeecord server?
Download Bungee expansion and use %bungee_yourservername% or if you want to get the player count of all the linked server then use %bungee_global%
im using this but it shows me just that: online: 1. but i want that it shows online: 1/50 or online: 10/50
are you using a hologram or npc? Or whatever
i'm showing the online players on the scoreboard from a lobby plugin
which is compatible with placeholderapi
oh try %bungee_global% / %bungee_yourserver%/50 (you can replace the number 50 with your desired number like 100, 500)
a short example:
%bungee_global%/500
this may work
so there is not a way like %bungee_global% / %bungee_global_max%
or something like that?
%server_max_players%
or something like that for bungeecord?
i really dont know about that but you can try i dont think so something exists like that and by the way my bad its not bungee_global its %bungee_total%
maybe just do it manually xd
aight i'll try that
xD
nah that doesn't exist
oh okay thanks :D
good evening, I have a problem, the placeholder does not report all the data correctly in several situations
- '&b&lRANKING'
- ' &8▪ &a#1 &7%voteparty_top_alltime_name_1% &f▹ &a%voteparty_top_alltime_votes_1% Votes'
- ' &8▪ &6#2 &7%voteparty_top_alltime_name_2% &f▹ &a%voteparty_top_alltime_votes_2% Votes'
- ' &8▪ &c#3 &7%voteparty_top_alltime_name_3% &f▹ &a%voteparty_top_alltime_votes_3% Votes'
%voteparty_top_alltime_name_3% this gives me no value
hey hey, i tried to use %playertime_player% but its not working. i want to show the playertime in the lobby on my scoreboard, but its not playtime: 20h but its says playtime: %playertime_player%
any ideas?
did you download the expansion and the plugin?
Plugin: https://www.spigotmc.org/resources/playertime-offline-player-mysql-bungeecord-supported.58915
Expansion: /papi ecloud download PlayerTime
i may dont have the plugin, thanks i'll try that
its still not working
if your issue is still not resolved download the statistics expansion and use this placeholder %statistic_hours_played%
Hey, uhhhhhhhhhh kinda weird but Papi does not work at all?
Like the plugin works, but placeholders do not show up and /papi reload and /papi dump doesn't work.
No errors related to papi, nothing
Works fine, returns
aureliumskills, bankplus, battlepass, betonquest, cb, citizensplaceholder, customcrafting, discordsrv, emf, excellentcrates, gcore, gs, guilds, iaplayerstat, img, manos, md, mythic, sleepmost, spark, superluckyblock, vulcan```
also is it ok if i ping you?
and /papi reload doesn't do anything?
yeah though I usually respond instantly, so it doesn't change much lol
except when I'm sleeping, or in class, which I am rn
returns:
[PlaceholderAPI] Placeholder expansion registration initializing...
[PlaceholderAPI] Fetching available expansion information...
but freezes (doesn't get stuck, just stops)
I can keep running the command over and over, still the same outcome
and /papi dump returns nothing?
did, can try again
what if you set cloud_enabled to false in the config?
and try reload, if it doesn't work, try restarting
maybe your firewall is blocking access to the ecloud, which prevents the plugin from loading correctly, I don't really see any other possibility
though usually, when that happens, the user gets an error, though there's nothing here
server restarting, gonna have to wait and then restart it again
its a shame if it is though, ecloud is so QoL
Ok so the only thing that changed was the reload outcome
[PlaceholderAPI] Placeholder expansion registration initializing...
i know man sorry 😭
I'm in class rn so can't do much
no worries man, thanks and pay attention pls
@severe jacinth try deleting your plugins/PlaceholderAPI/expansions folder
and redownload the expansions one by one (reload between each download) and see if it still breaks
maybe one of them failed to load, and it somehow didn't send an error
Alright, so for some reason, now there are even more placeholders
just on server startup
none from ecloud and still doesnt work
yeah from plugins that register their placeholders
wut
how
send your logs again
sorry for delay, here: https://paste.helpch.at/azucaqafiv.makefile
sooooooooooooo
nothing out of the ordinary?
no idea
maybe it's one of your plugins that register a broken expansion?
idk honestly
if you load PlaceholderAPI all alone on the server, does it work? and then add back all your plugins 1 by 1 or like 5 by 5
I don't really have any other ideas
if thats the only way 🫡
cheers.
i have a problem, i'm using the %vault_eco_balance_commas% and the** %friendsapi_onlinefriendcount%** from the placeholderapi, but its not working
Hi
How do I make it allow
Did you download the Vault expansion?
Do you have the Vault plugin installed?
Do you have the FriendsAPI plugin? https://www.spigotmc.org/resources/spigot-friend-api-for-party-and-friends-for-bungeecord-velocity.12597/
Do you have the Party and Friends plugin? https://www.spigotmc.org/resources/party-and-friends-extended-edition-for-bungeecord-velocity-supports-1-7-1-20-x.10123/
Where are you using the placeholders?
Do they show correctly in the chat when you use the /papi parse me <placeholder> command?
let me check all those things and i‘ll get back to you
You would need to ask your host
.
Download the expansions manually
its working thanks mate
is there any expansion that will get a random string value? for example i m trying to find a way to make a list eg. wheat, sugar, egg and the placeholder ll return one of these 3 each time u parse it
damn that was easy to make 
combined the CUSTOM of playerlist and also used the utils and rng expansions to get a random number for the end so %utils_parse_playerlist_<list>_{rng_0,3}%
welp if u have any other ideas lmk
%string_random_<string1>,<string2>,<string3>,<etc>%
@sharp bloom
yeah sounds more simple thanks
Utils not needed btw
wait actually
maybe it is
nvm then
Definitely easier lol
Is it possible for us to have a scenario where we are in hub world and i use luck perms for groups and i have a group having the prefix "MEMBER" , and if we go to another world, the "MEMBER" prefix will be removed from our name tag. Then, when we return to the hub world again, the prefix reappear in the name tag
it does when u have placeholders for the rng value
I had for my first example which has placeholdera and rng wouldn't parse em n i used utils
so i just kept it there too 
alr
yeah mb I forgot I didn't parse placeholders
Hey! Can someone help me?
%bungee_total% is not showing the correct amount of players, how can I fix this?
I even reinstalled the expansion, updated PAPI.
I have seen multiple people with this problem, but none of them received a good solution.
It takes a second to update
But it doesn’t work for days now
I know it has an interval, but it never shows the correct amount
If there are 60 players online, it shows 0
Dang, can't help you there
can someone help me whith deluxe tags idk why but when i have same config as tutorial said its doesnt work
Hi, I use cmi chat and guilds, I want to make the guild prefix show in the chat, but they don't want to install, why is that?
Do you have papi installed?
Sure.
What placeholder do u use within cmi chat from guilds?
{guild}, {GUILD_PREFIX}
change it to %guilds_name%. %guilds_prefix% and /cmi reload after saving them

After that, my plugin crashed
cmi?
+?
i dont use cmi i use essential chat
i wasnt asking u
rude
then why you ansering my quwestion?
Crashed cmi plugin for chat after inserting %guild_prefix%
im stupid asf sorry

its allright
as long as u have PlaceholderAPI installed I don't know why it's not working
u should ask in the cmi support server
ok so now u with deluxetags, can u elaborate on whats that not working
pm here i cant send file
Another question: how do I make guilds appear in brackets? (test) in the tab
does world guard have any sort of placeholder which shows the amount of kills in a specfic region?
No
Hello, I have a question about PlaceHolderAPI, is there any option to make it work on a proxy server, more specifically Waterfall.
nope
is there a way to sync placeholder api statistics between servers?
still doesnt work
spent 5h30 hours removing things until there were no expansions
and not a single one worked
/papi parse me %player_name%
Can CheckItem check hex colors?
I tried this, but it's not working:
#general-plugins message
would ignoring the color work?
uncoloring*
ah nevermind, sorry for ping
Utils only does it for legacy colors iirc
right, and it wont work for checkitem anyway
ye, F
but I thought people in the past were able to get this working but idrk #general-plugins message
Anyone else having an issue where the player papi placeholder stops working whenever the server restarts? I have to download it again and reload the plugin after each restart. We are on purpur 1.20.1
hello? i need help with somthing
idk if this is right channel for it :/
but im getting this error... i dont even have buycraft ;/
[18:42:42 ERROR]: [PlaceholderAPI] Failed to load expansion class Main (Is a dependency missing?)
java.lang.NoClassDefFoundError: net/buycraft/plugin/bukkit/BuycraftPlugin
at it.alexdev_.buycraftapi.buycraftapi.Main.loadPayments(Main.java:360) ~[?:?]
at it.alexdev_.buycraftapi.buycraftapi.Main.canRegister(Main.java:39) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:223) ~[PlaceholderAPI-2.11.5.jar:?]
at me.clip.placeholderapi.expansion.PlaceholderExpansion.register(PlaceholderExpansion.java:147) ~[PlaceholderAPI-2.11.5.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:193) ~[PlaceholderAPI-2.11.5.jar:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:366) ~[PlaceholderAPI-2.11.5.jar:?]
at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[PlaceholderAPI-2.11.5.jar:?]
at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.2.jar:git-Paper-292]
at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[paper-1.20.2.jar:git-Paper-292]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1470) ~[paper-1.20.2.jar:git-Paper-292]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.20.2.jar:git-Paper-292]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1379) ~[paper-1.20.2.jar:git-Paper-292]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1156) ~[paper-1.20.2.jar:git-Paper-292]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) ~[paper-1.20.2.jar:git-Paper-292]
at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: java.lang.ClassNotFoundException: net.buycraft.plugin.bukkit.BuycraftPlugin
at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:592) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
... 23 more```
remove the buycraft expansion then
Hi. When I load the head using basehead, then I have Steve's head displayed. What to do? But if I load my head with a nickname... Everything works... What should I do?
Are you talking about DeluxeMenus? Are you using MC 1.20.2 ? If yes, try using the dev build here #general-plugins message
Alright big brains, I need a placeholder that returns the total amount of unique enchantments on a handheld item, in integer form
I feel like checkitem may have that
let me check
doesn't seem like it
ok
this is going to be crazy
but it might just be possible with CheckItem and PlayerList
okay, there is a slight issue that makes it so even when there's no enchant, it shows 1
I'll fix that and send you what I have
Can I please get help in regards to this? Everytime our server restarts the player papi placeholder stops working and we have to install and reload it again. We are using purpur 1.20.1
/papi dump
send the link it gives you
it seems like it loaded fine
does /papi parse me %player_name% work?
It works only after I install and reload it again, but after each restart it looks like this
send the papi dump when it breaks
Okay! Will do 🙂
Btw looking at the logs this is what the error was:
[Sat 17:01:49 WARN PlaceholderAPI] Failed to load external expansion player. Identifier is already in use.
! [Sat 17:01:49 WARN PlaceholderAPI] Cannot load expansion player due to an unknown issue.
[Sat 17:01:49 INFO ] placeholder hook(s) registered! placeholder hook(s) have an update available.
/papi ecloud download CheckItem
use this playerlist expansion file (put it in /plugins/PlaceholderAPI/expansions)
/papi reload
Then go to your PlaceholderAPI config.yml file and find the playerlist section. Under lists, add this:
expansions:
playerlist:
list:
enchants:
type: CUSTOM
input: "%checkitem_getinfo:mainhand_enchantments:%"
separator: "\\|"
Then you can now use %playerlist_enchants_amount%
send /papi dump
or send the entire logs
maybe some weird plugin is registering its own player expansion
we got that before
homie, did you just build me a placeholder for this?
I already did, just fixed an issue I had
I was trying to do it within CheckItem and it just didn't exist
because it would always show 1 even when there weren't any
CheckItem does return your enchantments
but it doesn't return the amount
in list form yes
only a list separated by |
BUT we can use that in PlayerList with the custom type, split the checkitem placeholder by |, and get the amount
try searching for [PlaceholderAPI] Successfully registered internal expansion: player in your logs, the message right above saying Enabling <plugin> should say which plugin is causing this
I'll send them after the restart! But I believe I found the plugin causing the issue, it is a bossbar announcement plugin we recently installed:
[Sat 17:01:35 INFO AnimaBossBar] ------------------------------------------------------------------
[Sat 17:01:35 INFO PlaceholderAPI] Successfully registered internal expansion: player [1.0]
I think that's the same plugin that caused the issue for the other guys that came here
but yeah, it's so weird why it does this, try either contacting the dev so they can yeet this expansion, or rename it at least, or just switch to another plugin like TAB
Oh interesting, it also takes up like 5% of our resources for just displaying bossbars so we'll be removing that plugin, thanks for the quick help 🙂
hi
Hi
%math_swr_kills/swr_deaths% this is my math calculus using placeholder api i am using math and data from skywarsrelaoded
if i use numbers works if not it doenst
but its not working
with numbers it works with the placeholders from skywarsreloaded it doenst
Ah right
to use placeholders within the Math placeholder, you have to put them inside {}
%math_{swr_kills}/{swr_deaths}%
though as is, you may get an error if you have 0 deaths, because you can't divide by 0, so you should try this instead %math_{swr_kills}/MAX({swr_deaths,1})%
didnt work bro
wit h the max
without it its fine
i removed that 1
it worked
but it displays 0 which is technicly correct
the only problem is this
i cant send messages
damn
check dm
but i think its skywarsreloaded plugin fault
are there any placeholders that allow a command to be run with operator permissions?
Are you referring to click_commands in DeluxeMenus?
wait wtf can playerlist do that?
ah I see what the seperator does
very smart
I could be, but I need the commands run at operator level permissions in the instance of the player, not the console
You can use [console] instead of [player] in click_commands to run as console.
I am aware of that, but this particular command cannot be run through the console
I’m trying to use a DM button to enchant an item in a players hand
the issue here being that in order to run an enchantment command, it has to be run as the player because thats what gives the context of what to enchant
Thats why I am looking for a solution that sort of targets an item/item slot to modify the enchantment on
What CMD are you looking to run?
ExcellentEnchants /excellentenchants enchant enchantmentnamehere level
tried running it as [console] already, won’t work as it must be run by the player
You aught to get the dev to add support for player target.
ah yes, excellent idea
Any form of work around (unless a custom plugin utilising an api) exposes your server to exploits.
You gave me an idea, thank you
Hey ^^
I'm trying to figure out the efficiency level a player's pickaxe is by using %player_item_in_hand_level_efficiency%. But every time I use this placeholder, I get this error message saying 'An internal error occurred while attempting to perform this command.' Any idea why this is happening? The other placeholders, like %player_name%, are working fine and showing the player's name without any issues.
?enchants
DIG_SPEED
oh thank you, now it works^^
hey
I have a problem
I cant download the javascript expansion
is there a way to fix that?
that's not a bug, the expansion is simply not verified
you have to download it manually from the ecloud
send the link you get from /papi dump
check your console
i cant send pics here
?paste
?paste
Ctrl+C the content of your file, Ctrl+V on the website and press the Save button
or check the How To Use video
[14:15:47] [Server thread/ERROR]: [PlaceholderAPI] Failed to load expansion class JavascriptExpansion (Is a dependency missing?)
java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.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_391]
alr
at least 11
ok
but 16 is fine yeah
Hi, how can I make it so that it shows the number of items in the menu online? For example, amount: 36 or amount: 10 (36, 10 is the online server) DeluxeMenus
dynamic_amount: "%server_online%"
❤️
um tanguy i think its your expansion(playerlist) that doesnt parse placeholders in it
cause the %playerlist_expeditionitem_{rng_0,2}% returns the placeholder itself
yuh ik :/
i just said yesterday that rng wouldnt parse placeholders in it but it turns out it was the playerlist instead
( i do use utils yes)
you already asked me there
Hello, for the %multiverse_world_name% world placeholder, is it possible to change the world name of a specific world? Like world_new is our main overworld, but I'd like that text changed to Overworld. So if the player is in the world_new world, on the scoreboard it will show the world as Overworld.
I'm pretty sure MV-Core allows you to configure aliases in its config
@junior musk Unknown expansion.
does anyone know how i can download the expansions from the ecloud website?
i want the rewardslite expansion but cant figure it out
This is correct. The aliases even support color codes if that's something that's helpful.
there's no such expansion on the ecloud
I checked and the expansion is integrated into the plugin, so once you install it you can directly use its placeholders https://github.com/NathanCollaert/RewardsLite/wiki/PlaceholderAPI
hi cuties, I'm trying to find a placeholder where it shows how much time you have left for a luckperms temppermissions
does anybody know an expension for it?
%luckperms_expiry_time_<permission>%
Weird maybe I’ll have to reinstall because it doesn’t show up in the list
Is there anyone "good" at javascript?
I need this to make massive block-to-price converter (inserting block id, getting number)
Imagine I have two lists: with block ids, and with numbers.
How to check if input (args[0] right?) is in "block ids" list, if yes, then get its index in list, and use this index to get value in "numbers" list. Or is there a better way?
Making hundreds of if() is probably not good idea ig
do you have some kind of DB with all your prices or a placeholder or do you want to make your own thing with JS and specify the prices manually there?
I will probably just create my list in code
manually
I need this to make builder tool that automatically "buys" block that you placed, so I need to convert block into price from list
var prices = {"OAK_PLANKS":100,"BIRCH_PLANKS":100}
function getPrice() {
var material = args[0].toUpperCase();
var price = prices[material];
return price == undefined ? -1 : price;
}
getPrice()
and then use %javascript_<scriptName>_OAK_PLANKS% for example
Wiki link to see how to install the JS expansion https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
How to make it so if block is not listed, return something like 99999999?
edited my code
Thanks, it works
👍
hi guys
i have a problem with
[19:13:36 INFO]: [regionCounter] Loading server plugin regionCounter v1.0.1
[19:13:36 INFO]: [regionCounter] Enabling regionCounter v1.0.1
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_region. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_smp. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_tank. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_axe. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_diamondpot. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_crystalpvp. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_netheritepot. Identifier is already in use.
i tried to change the Identifier
and still same problem
@junior musk@idle coral@gleaming charm@mint fable
don't ping us 
sry for ping
I was about to answer
why would you ping if you're sorry
i had to :'(
you didn't
is it your own plugin?
yes
You forgot to add a few people in the ping, that didn't seem enough
then you need to unregister your expansions on when disabling
who? can u tag them
also, you should only make 1 expansion with multiple placeholders, in your case, regioncounter and have like a switch on the params
bruh
jkkk
You mean @еveryonе?
ok ill try that
not enough ig
from discordDB.users get *
Wait, is @еveryone even enabled?
if it were, you'd see your message in yellow/orange :P
I used е, not e
and everyone would come yelling at you XD
е and e is different
16k people in the same channel lol
oh wtf
bruh
that explains why the @ wasn't even in blue
(javascript) How to check how similar is two strings? (in %, or from 0 to 1, idk, a value)
Hello, with the placeholder "%essentials_baltop_rank%" that shows nothing, it's normal?, the other placeholders are showing something, but this one no, and I want to show to the player which rank he is.
thanks for helping et sorry for my bad english, can you guys ping me ! 👌
You need an algoritm for that, idk if any will work for the js expansion
found quite a few options online: https://stackoverflow.com/questions/10473745/compare-strings-javascript-return-of-likely
Up 😅
Hello! I'm trying to make a custom expansion for PAPI. I'm getting something somehow, but I can't understand why minimessage's hover doesn't translate when I call my placeholder. The string I return is return "<hover:show_text:\'§5Some text on hover\'>§5§lText to hover</hover>"; is the mixed formatting causing the issue?
the \ isn't necessary in front of the '
if you used " though, it'd be necessary yeah
oh and MM doesn't support legacy colors, it's going to throw an error
I wasn't sure about the ' but thanks! Regarding errors, I don't see any in terminal

then maybe it's only with &, weird that it doesn't error, it did for me last time I tried ;-;
I could try removing the legacy formatting (even tho with that symbol I had no issues with plugins that don't support legacy, fe carbon chat)
🤷 if you're using MM I'd recommend using its color tags (no reasons to use the legacy one)
but if it works, all good
is there a way in the math placeholders to put a hard limit on a result?
like say if it calculated 2 placeholders and the number could be 0-1000
but I wanted a hard limit of 999
as the "max" number AFTER the math calculation?
this is sanding nothing
like literally
a empty message
oh you think my data is not loaded?

now I'm using all MM format, but still is not parsing correctly. Am I missing something?
where are you using it?
as here just without legacy formatting
when I %id_myplaceholder% it just returns plain text
PAPI doesn't parse MiniMessage format by itself
it depends on where you use the placeholder
for example, you can use it in a chat plugin that supports MM, or in DeluxeMenus' [minimessage] action
I need to use it inside Carbon Chat, should it work or should I do it differently?
depends on whether Carbon Chat supports MM or not
it does
let me check what's wrong then
I didn't test carbon chat directly yet, I'll now
with /papi parse me %placeholder%
ok it works, I'm dumb as hell
ah okay
sorry😅
dw
if I make a component in kyori then serialize it to MM would it convert legacy symbols in the string?
I have no idea
if you have colors in your component, I think it'll just turn them into color tags
that's what I think too, thank you very much so far!
I have a unique situation. Helping out @idle osprey
I have a meta key, that needs to reach a 723 to complete a quest. The quest is to give acacia signs.
I've got it setup to where each time the player clicks the item, it takes their signs, and adds the amount they had to the meta key. This let's them do it in parts (Say if they only had 100 signs to turn in).
The issue is that if they have 4 signs left to turn in, and they have 10 in their inventory, and they click the item - it takes all 10 and the meta key goes over the number. How could I limit that?
Would you like me to show you what we have?
left_click_requirement:
requirements:
quest_check:
type: '>='
input: '%deluxemenus_meta_QUESTKEY_INTEGER_0%'
output: '723'
deny_commands:
- '[sound] BLOCK_LEVER_CLICK'
- '[meta] add QUESTKEY INTEGER %checkitem_amount_mat:ACACIA_SIGN%'
- '[message] &cYou contributed &e%checkitem_amount_mat:ACACIA_SIGN% &csigns.'
- '[console] minecraft:clear Lecraeman minecraft:acacia_sign'
- '[message] &cYou still need to contribute &e%math_0_723-{deluxemenus_meta_QUESTKEY_INTEGER_0}% &csigns!'
- '[refresh]'
left_click_commands:
- '[sound] ENTITY_PLAYER_LEVELUP'
- '[console] lp user %player_name% permission unset quest.4.no'
- '[console] lp user %player_name% permission set quest.4.yes'
- '[console] lp user %player_name% permission set quest.5.no'
- '[message] &6&l┌'
- '[message] &6&l| &6ЗАДАНИЕ ВЫПОЛНЕНО!'
- '[message] &6&l| &fСледующее задание разблокировано'
- '[message] &6&l| &fПодробнее - &6/quest'
- '[message] &6&l└'
- '[close]'
- '[refresh]'
This is how I've set it up. His menu has 3000+ lines, so trying to keep from addingtoo many items.
becuase he'd need to redo all of them
and add new items for each entry
I hope what I am saying makes sense.
yeah
but what you sent has the same issue
where if they gave OVER
it would still take all their signs
it has a second requirement
rather than cut it off
oh oh
ok
let me recheck it
god its breaking my brain
but I think I get it.
you check if the amount you gave + the amount you have >= to what you need
and if yes, you take away the amount you need - the amount you already gave
should I remove the EQUALS
where?
optional: true
type: ">="
input: "%math_0_{deluxemenus_meta_qu12ggff3e8110st_g3_no1_INTEGER_0}+{checkitem_amount_mat:ACACIA_SIGN}%"
output: 723
success_commands:
- '[console] clear %player_name% acaciasign %math_0_723-{deluxemenus_meta_qu12ggff3e8110st_g3_no1_INTEGER_0}%'```
because if its equal
it should succeed
and not check
what?
lol
I could be completely misunderstanding here
so the first requirement
is checking if the player has OVER the amount they need
and if it is, it's only taking the amount it should
if they have enough or more (>=)
yes
if it's just enough, it'll take everything, if it's more, it'll just take what it needs
ok that makes sense.
that's done by that same requirement
ok thanks, let me try this
nothing too
Is it broken for everybody or just you? You might have the essentials.balancetop.exclude permission maybe
or an op
Possibly, I'd try negating essentials.balancetop.exclude, i think negative perms override op
Do you know when / if there will be folia support for papi? If yes will you wait for folia to be stable and publicly open or could it be before
hello! Me again, does anyone know how do I access other expansions' placeholders in mine? Like fe I wanted to get value of %luckperms_prefix%
why does my console say
! [Tue 23:14:18 WARN PlaceholderAPI] [math] Invalid Placeholder detected!
! [Tue 23:14:18 WARN PlaceholderAPI] [math] Placeholder: %math_0:1_{tab_placeholder_health}/2%
! [Tue 23:14:18 WARN PlaceholderAPI] [math] Cause: '<Player is not loaded>/2' is not a valid Math expression.
why do use the tab placeholders :/
yuck
juset do %math_0:1_{player_health}/2% instead
alr
download the /papi ecloud download player expansion if u dont have it
n /papi reload
is tab not a good plugin overall
it is but there is no reason to use its placeholders when the player expansion exist :/
at least the non custom ones
do the expansions take up space
not at all lol
they are usually even smaller than a single deluxemenus menu
Hi. I am just getting this error and I am not sure how to check the Identifier
[WARN] [PlaceholderAPI] Failed to load expansion votingplugin. Identifier is already in use.
[WARN] [PlaceholderAPI] Cannot load expansion votingplugin due to an unknown issue.
Do the placeholders still work? When are you getting this error?
So it is happening after I let the server restart and load up. The Plugin seems to still be working fine though.
i think u can just check the expansions you have
just delete the current votingplugin expansion and redownload
Yea I did
Wait, do I delete the expansion in the placeholderapi folder or just the votingplugin jar and put in a new jar for that?
papi folder
I mean i'm not sure but just delete it from there
and try to download it ingame
/papi ecloud download votingplugin
/papi reload
Hi! how are you?
Hello all,
For some reason McMMO is not working with the placeholders - it just diplays %mcmmo_power_level% - not the actual level - any ideas?
send the link you get from /papi dump
and what do you get in chat when you run /papi parse me %mcmmo_power_level% ?
Hey, anyone knows why it gives that error?
papi parse xNekio %utils_parse:30_changeoutput_<=_input:{arefyboosters_global_temp_booster_minecraft_experience}_matcher:0_ifmatch:&c&oNo hay boost activo_else:x{math_0_{arefyboosters_global_temp_booster_minecraft_experience}+1} &8⎜ &7{arefyboosters_global_remaining_duration_minecraft_experience} &7&o(activado por &l&o{servervariables_globalvalue_boosterexperiencia}&7&o)%
if I remove the {servervariables_globalvalue_boosterexperiencia} on the end it works, maybe there are a lot of placeholders on the utils or?
do the /papi parse me %servervariables_globalvalue_boosterexperiencia% alone returns a result?
Yep, it returns Empty text
try to redownload the Utils expansion
that's the weird thing
you're not on the latest version
the best I can do right now is recommend you to use shortcuts to split placeholders into multiple utils placeholders
btw why are you reparsing 30 times? XD
expansions:
utils:
shortcuts:
math: "%math_0_{arefyboosters_global_temp_booster_minecraft_experience}+1%"
does this work? /papi parse me %utils_parse:30_changeoutput_<=_input:{arefyboosters_global_temp_booster_minecraft_experience}_matcher:0_ifmatch:&c&oNo hay boost activo_else:x{utils_shortcut_math} &8⎜ &7{arefyboosters_global_remaining_duration_minecraft_experience} &7&o(activado por &l&o{servervariables_globalvalue_boosterexperiencia}&7&o)%
surely that wouldn't work this easily
yepp that one works wtf
what did u change xd
Ah nvm
actually I think you don't even need the utils_parse at the start anymore
I just tested the placeholder without the shortcut
yeah obv that won't work without
or maybe it does
idk
papi parse me %changeoutput_<=_input:{arefyboosters_global_temp_booster_minecraft_experience}_matcher:0_ifmatch:&c&oNo hay boost activo_else:x{utils_shortcut_math} &8⎜ &7{arefyboosters_global_remaining_duration_minecraft_experience} &7&o(activado por &l&o{servervariables_globalvalue_boosterexperiencia}&7&o)%
does this work? lol
👍
Btw do you know why placeholder is refreshing each 3 seconds
instead of 1?
update_interval: 1 update interval is set to 1 second
on deluxemenus, and item containing the placeholder is on update: true
try adding the placeholders inside changeoutput in the item's lore or smth to see if they update correctly
I mean is updating correctly but each 3 sec instead of 1 sec
maybe it's one of the placeholders that is doing some weird calculations and not updating instantly
Hmm I don't think so because I put arefyboosters_global_remaining_duration_minecraft_experience outside the changeoutput and it's refreshing each 3 sec too
then maybe that's that placeholder that's not refreshing instantly?
if I update it each second on /papi parse me %arefyboosters_global_remaining_duration_minecraft_experience%
try spamming it with /papi parse me
it works well
then DeluxeMenus' broken 
:sadge:
Decided to switch to Decent Holograms from HolographicDisplays And the first thing I did was to bring back past holograms
With others, everything is very good, but the tops do not work at all
And in this screenshot I tried placeholders as Hd <> as well as regular %%
I don't get the joke. Help
CFG DH:
`enabled: true
display-range: 48
update-range: 48
update-interval: 20
facing: 0.0
down-origin: false
pages:
- lines:
- content: '#d51a1aТ#d01b1bо#cb1d1dп #c71e1e1#c21f1f0 #bd2121б#b82222о#b32424г#ae2525а#aa2626ч#a52828е#a02929й'
height: 0.3 - content: '&c① &c%playerpoints_name_1% &8▸ &c%playerpoints_score_1% &cпоинтов'
height: 0.3 - content: '&a② &a%playerpoints_name_2% &8▸ &a%playerpoints_score_2% &aпоинтов'
height: 0.3 - content: '&e③ &e<playerpoints_name_3> &8▸ &e<playerpoints_score_3> &eпоинтов'
height: 0.3 - content: '&7④ &7<playerpoints_name_4> &8▸ &7<playerpoints_score_4> &7поинтов'
height: 0.3 - content: '&7⑤ &7<playerpoints_name_5> &8▸ &7<playerpoints_score_5> &7поинтов'
height: 0.3 - content: '&7⑥ &7<playerpoints_name_6> &8▸ &7<playerpoints_score_6> &7поинтов'
height: 0.3 - content: '&7⑦ &7<playerpoints_name_7> &8▸ &7<playerpoints_score_7> &7поинтов'
height: 0.3 - content: '&7⑧ &7<playerpoints_name_8> &8▸ &7<playerpoints_score_8> &7поинтов'
height: 0.3 - content: '&7⑨ &7<playerpoints_name_9> &8▸ &7<playerpoints_score_9> &7поинтов'
height: 0.3 - content: '&7⑩ &7<playerpoints_name_10> &8▸ &7<playerpoints_score_10> &7поинтов'
height: 0.3
actions: {}`
- content: '#d51a1aТ#d01b1bо#cb1d1dп #c71e1e1#c21f1f0 #bd2121б#b82222о#b32424г#ae2525а#aa2626ч#a52828е#a02929й'
LeaderHeads:
`# -----------------------------------------
Statistic config
Name: playerpoints
Plugin: PlayerPoints
-----------------------------------------
force-update: false
online-only: true
all-time:
sign-lines:
- '&c&m------------'
- '&a{name}'
- '&e{amount} points'
- '&c&m------------'
update-interval: 30
menu-enabled: true
menu-command: /toppoints
menu-size: 90
menu-name: '&4Top Points Page {page}'
menu-lines: - '&f&m----&f< &b{rank} &f>&m----'
- '&c&m------------'
- '&a{name}'
- '&e{amount} points'
- '&c&m------------'
daily:
sign-lines: - '&c&m------------'
- '&a{name}'
- '&e{amount} points'
- '&c&m------------'
menu-enabled: true
menu-command: /toppointsdaily
menu-size: 90
menu-name: '&4Top Points Page {page} Daily'
menu-lines: - '&f&m----&f< &b{rank} &f>&m----'
- '&c&m------------'
- '&a{name}'
- '&e{amount} points'
- '&c&m------------'
weekly:
sign-lines: - '&c&m------------'
- '&a{name}'
- '&e{amount} points'
- '&c&m------------'
menu-enabled: true
menu-command: /toppointsweekly
menu-size: 90
menu-name: '&4Top Points Page {page} Weekly'
menu-lines: - '&f&m----&f< &b{rank} &f>&m----'
- '&c&m------------'
- '&a{name}'
- '&e{amount} points'
- '&c&m------------'
monthly:
sign-lines: - '&c&m------------'
- '&a{name}'
- '&e{amount} points'
- '&c&m------------'
menu-enabled: true
menu-command: /toppointsmonthly
menu-size: 90
menu-name: '&4Top Points Page {page} Monthly'
menu-lines: - '&f&m----&f< &b{rank} &f>&m----'
- '&c&m------------'
- '&a{name}'
- '&e{amount} points'
- '&c&m------------'`
I apologize if I wrote in the wrong place, or clogged up the chat.
/papi parse me %playerpoints_name_1% %playerpoints_score_1%
and if you're using the playerpoints placeholders, you don't need LeaderHeads?
need
btw if its the playerpoints by rosewood they do have this placeholder that u can use %playerpoints_leaderboard_<#>% that returns the name of the player so idk whats the placeholder u use
and %playerpoints_leaderboard_<#>_amount% for the amount
Did I make a mistake? should I have sought help from LeaderHeads?
Thanks. I didn't know that
execute /papi parse me %playerpoints_leaderboard_<#>% %playerpoints_leaderboard_<#>_amount%
and replace <#> by a number like 0
oh btw
can u check the sourcecode of deluxemenus for the model_data
if it doesnt support negative value
Displays %playerpoints_leaderboard_<1>% %playerpoints_leaderboard_<#>_amount%. Without values
remove the <>
^^
makes sense :/ i havent seen negative custom model data till yesterday #general-plugins message
yeah it's working!
you can now use that in DecentHolograms
I have top duels, rich men, killers. Do you think LeaderHeads won't help me with this and it's better not to use this plugin?
I didn't know that was possible lol
but yeah it doesn't allow it
you can use LeaderHeads, though it is not updated anymore and has been replaced by a new plugin called ajLeaderboards
it has a detailed documentation https://wiki.ajg0702.us/ajLeaderboards/setup/
yeah makes ton of sense
okay. i will be use. thanks
It just returns %mcmmo_power_level% in chat
send this then
?paste
hey the plugin im using is installed on bungeecord and it uses placeholders but when i try to install placeholderAPI on bungeecord it doesnt work so im wondering what i need to do to fix this
You can't install it on bungeecord, just put it on every backend server
Hi umm
any of these placeholders %server_total_chunks%, %server_total_living_entities%, %server_total_entities%
Return an Electric boogaloo
im not sure if its papi related
RESOLVED, not papi related, sorry
Hello! On the PAPI wiki (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Plugins-using-PlaceholderAPI#e) Essentials is listed to have support for placeholders, does EssentialsX not have this support?
Essentials is EssentialsX
The X is not really typed anymore, since Essentials was replaced by EssentialsX a long time ago
Then why EssX doesn't parse placeholders in their configs, that is confusing me
because it is not meant to, that's up to the ess team to add this function
my confusion kicks in again, sorry if it's dumb as a question, but why in the wiki the "Supports placeholders" is ticked?
essentials has its own placeholder expansion, which provides placeholders for when other plugins are trying to parse placeholders
essentials doesnt parse those placeholders
so thats a list of placeholders that essentials provides, but doesnt necessarily mean they can be parsed inside of essentials itself
I know that and that's what the second check-box (Provides own placeholders) stands for, but what I'm confused about is the first one (Supports placeholders) that is checked even tho it does not in fact support PAPI
apologies, i didnt even realise that box existed on the wiki
from what i can tell - essentials only supports papi placeholders in its discord plugin addon. so not too sure if we can count that as "supporting placeholders" or not
but as for the main essentials plugin, it doesnt support placeholders in its config, sorry for the confusion
that is dumb (from them) and explaining things at the same time.. Also no need for apologies I was only trying to understand 😂 instead thanks for the clarification!
that you know, is there some workaround to inject placeholders content into their configs?
there was ChatInjector, but not too sure if it still works for newer versions
I see, that could have done it. Would getting the message content sent to a player and parsing it through PlaceholderAPI.setPlaceholders(player, content) have the same effect of ChatInjector?
yes
time to add it to the server's plugin then.. damn here we go again
it says it found PAPI, yet it didn't register the expansion. you'll have to ask MMOCore's devs to fix it
Would anyone happen to know the cause of this error? It appears in the console every time someone writes a message in the chat.
https://pastebin.com/J2ybzCqB
update your Player expansion
/papi reload
/papi list
[INFO] ....>.... A total of 15 placeholder hook(s) are active:
bungee, citizensplaceholder, crazycrates, essentials, heroes, interactivechat, kdratio, luckperms, player, server
skinsrestorer, statistic, tab, tradesystem, vault
oh sorry
for %checkitem_amount_mat:GRAY_CANDLE% placeholder. How do i make it so that it detects if the item amount is beyond 150, not just 150?
%checkitem_amount_mat:GRAY_CANDLE% will return the amount you have
it happens haha, it works now thank you sir 🫡
Yeah i know. But im making a some kind of system. And I need specifically that it detects when the gray candle amount is beyond 150
%checkitem_mat:GRAY_CANDLE,amt:150% ?
How would that work?
give me a minute
https://github.com/Kqliber/Expansion-ChangeOutput
%changeoutput_equals_input:{checkitem_mat:GRAY_CANDLE,amt:150}_matcher:yes_ifmatch:{checkitem_amount_mat:GRAY_CANDLE}_else:%
is it for a deluxemenus requirement?
if so you can use the amount_ placeholder too with a >= comparator requirement type
conditional events
this is not true
what do you want exactly?
if you added strict it would be true
this placeholder WILL check if 150 or more
yes
Ah, gotya
ConditionalEvents has >= though so you could have used that with the %checkitem_amount placeholder
but yeah that works as well
Hello everyone. I have such a problem, the placeholder registers but does not display values. help please, here is my code: https://pastebin.com/1T4bCeGg.
PlaceholderAPI's version: 2.11.5
forgot to override
shouldn't matter
which placeholders did you use?
and do they work in /papi parse me <placeholder> ?
no
shouldn't matter?
yeah, override isn't necessary
@noble wolf
still waiting
public int getPlayerLevel(Player playerName) {
try {
try (PreparedStatement statement = this.connection.prepareStatement("SELECT exp FROM levels WHERE player = ?")) {
statement.setString(1, playerName.getName());
try (ResultSet result = statement.executeQuery()) {
if (result.next()) {
int exp = result.getInt("exp");
return Math.floorDiv(exp, 100);
}
}
}
} catch (SQLException e) {
logger.log(Level.SEVERE, "Error getting player level: " + e.getMessage(), e);
}
return 0;
}
I'm asking for the placeholder you used in your /papi parse me command
PAPI writes an error and points to this method
then there's an issue with your code
I used it, it gives me an error.
then there's an issue with your code
can you tell me where exactly the error is?
I have no idea
I just know that if the issue is coming from your code, then PAPI can't do anything
whats the syntax for rounding a variable with the math addon
%math_2:ceiling_{vmoney.{uuid}}% is not working
the string as plain text
probably because {vmoney.{uuid}} is not a PAPI placeholder but a Skript placeholder
is that fixable
there is a Skript expansion for PlaceholderAPI on the ecloud that allows you to use those placeholders
i have it
though there's actually 4 of them and idk which one is up to date
then use %skript_<skript placeholder>%
Expansion-Skippi_NOjwIyx.jar
weird file name o_O
thats what it is on ecloud
ah
yeah I get that
but does it work inside papi parse ?
alone
nvm I can't right, you said it works
nah just the skript_vmoney thing alone
yea does
I'm trying to find a solution
/papi ecloud download Utils
/papi reload
expansions:
utils:
shortcut:
money: "%skript_vmoney.{uuid}%"
and use {utils_shortcut_money} in your math placeholder
lost connection right as I was about to reply =/
Can anyone tell me how I convert data from float to int within my %math%?
I'm trying to use it with Deluxemenus, with the slot argument (pixelmon)
%math_{slot}+1% but it returns me 2,000 I need it to be just 2.
%math_0_...
Thx
Does PlaceHolderAPI support proxy servers?
ok, thx.
i want to player see hes money on score board but i cant find any api for this plugin: https://www.spigotmc.org/resources/ultimate_economy.59235/
When I start my server in the console it says that there are 3 extensions with updates, how do I update them?
There is no placeholders for it
can i connect this plugin witch vault?
Whats the placeholder for blocks placed
their is statistic_use_item but that includes like using pickaxe etc
question im using papiapi and i want to add this placeholder %ultimateautorestart_seconds% whats the command to add it again i forgot
when i add for example %player_deaths%
it doesnt work
it just be deaths: %player_deaths%
Expansion changeoutput change?
I had everything configured but now the placeholers I had no longer work
How do I check if a number is equal to or greater than another number?
cause there isnt such a placeholder
to return the amount of deaths that a player has u need the statistic expansion /papi ecloud download statistic n then /papi reload
its the %statistic_deaths% placeholder
For example if 10 is greater than %placeholder%
do /papi parse me <placeholder>
Return yes and no
and it will return the amount
then u cant check it if its greaten if its not an integer value
But I want you to check if it is greater than a number or not
since its a boolean placeholder
Not getting the value of the placeholder
u cant check a string that returns yes/no the amount
cause there is no value in it
whats the placeholder
I think you do not understand me
Check one number with another if it is equal, greater, less
A math placeholder perhaps
its working now 😄
thanks
also
i have problem with vault
it doesnt show money
ugh here is an example with a vault placeholder
%changeoutput_>=_input:{vault_eco_balance}_matcher:1000_ifmatch:yes_else:no% this will return yes if you have above 1000 otherwise it will always return no
do u have the vault plugin installed?
and the vault expansion installed /papi ecloud download vault
i dont 😐
problem solved
download the one from spigot
there is only for 1.16
it works
name
it doenst need an update
ok
thanks
you are helping me so muchh

i have %player_votes%
and that doesnt work
that's not a placeholder
depends on your voting plugin
💀 not everything is %player_<something>%
check the Placeholder List
How can I parse a player arguement in a menu with placeholderAPI?
I think I remember that the {arguements} can be used in parseother?
hello
what is %changeoutput_equals_input:{essentials_nickname_stripped}_matcher:{player_name}_ifmatch:_else:&7(&#ECB620{essentials_nickname_stripped}&7)%"
if the placeholder is matching the player name it will return nothing otherwise it will return the placeholder w a color
alr
I have a question. I have placeholder that show up top 10 players and how many hours they have played on a server. Can i reset hours without deleting accounts?
whats the placeholder
from the statistic expansion?
I still looking for it. Just asking currently
well depends...
if its the statistic expansion probably not cause its based on playerdate as far as ik
if its a plugin that does the counting for the playtime there r more chances that u might be able to reset it
by statistic expansion, you mean /papi encloud download statistics? https://api.extendedclip.com/expansions/statistic/
yeap
I have used %statistic_hours_played%. It automaticly gaves me rank 1. But i need top 10 ranks, which placeholders should i use?
none u cant :/
u have to use something like aj leaderboards and make a leaderboard for that placeholder
and from here u ll find the placeholders for the ranks https://wiki.ajg0702.us/ajLeaderboards/setup/placeholders
statistic expansion doesnt provide of any leaderboard
oki, thx.
Hi guys, do you know how can I round the value?
&f%math_{bungee_GrindSpawn}+{bungee_GrindEventi}+{bungee_GrindDuelli}
There is only one player online but it says 1.000
solved
%math_0_{bungee_GrindSpawn}+{bungee_GrindEventi}+{bungee_GrindDuelli}%
oh nvm u said solved :/
did it. Works now. New question, Where can I connect stats to database?
thank you for helping by the way
Inside open commands, from deluxemenus. How can I set a command to move you between modes?
Is there a placeholder that shows how many players are in a specific gamemode?
For some reason i cant download "World" expansion. Can someone help me with that?
that is because it's unverified (for some reason, it was before
) https://api.extendedclip.com/expansions/world/
hello
🐓
is it somehow possible to give boolean color codes?
boolean:
'true': '&aFreigeschalten'
'false': '&cNicht freigeschalten'
try with §
Wow... how bad of me... Thank you
How to download world placeholders?
read 5 messages above yours
ok
anyone know how to get an output like this with the Formatter extension where the decimal stops after 2:
62,676,825,459.56 -> 62.68b
Right now im using %formatter_number_shorten_<number>% and its doing:
62,676,825,459.56 -> 62.67682545955999b
Why doesn't {online} work on a hologram? I use PlaceholderAPI and DecentHolograms
cause its not a placeholder from placeholderapi
What can i use then?
Player count
use the %server_online% placeholder and for it to work download the server expansion /papi ecloud download server and /papi reload
oh u want the player count for bungee
Yes
Where can i find the bungee expansion?
/papi ecloud download bungee
Thank you ❤️
np
Anyone know a placeholder that functions as /paper dumpitem where you can do /minecraft give to get the exact item
don't think one exists @plush dove
sadge
Hello! I am running a 1.20.2 server with DeluxeMenus and PlaceholderAPI. When using DeluxeMenus, the placeholder %player_name% does not work. It simply shows ingame as %player_name%. Particularly, I am trying to use the [console] action from DeluxeMenus and run a command on the player that interacted with the menu.
/papi ecloud download Player
/papi reload
Thank you so much it works! I feel so silly
Is there a simplier version? Like splitting input into list (using spaces), and checking how many elements from this list exists in second list
you can try whichever method you prefer, though it'll be more or less acurate
I have no idea how to code it xD
I guess just Ctrl+C Ctrl+V the code on the page I sent XD
