#placeholder-api
1 messages Β· Page 55 of 1
how can i parse a placeholder that leads to another placeholder
i need it to parse twice
found what i neeeded
how can i remove commas out of a number placeholder so i can use math on it
is there like a placeholder for guilds
Why is this not usable?
[04:22:24 WARN]: [PlaceholderAPI] Failed to load external expansion floodgate. Identifier is already in use.
[04:22:24 WARN]: [PlaceholderAPI] Cannot load expansion floodgate due to an unknown issue.```
i tried passed in a null player and it is giving me the placeholder itself
i have checked the placeholder with papi parse command and it is working perfectly fine
private static TagResolver papiTag(final Player player) {
return TagResolver.resolver("papi", (argumentQueue, context) -> {
// Get the string placeholder that they want to use.
final String papiPlaceholder = argumentQueue.popOr("papi tag requires an argument").value();
// Then get PAPI to parse the placeholder for the given player.
final String parsedPlaceholder = PlaceholderAPI.setPlaceholders(player, '%' + papiPlaceholder + '%');
// We need to turn this ugly legacy string into a nice component.
final Component componentPlaceholder = LegacyComponentSerializer.legacySection().deserialize(parsedPlaceholder);
// Finally, return the tag instance to insert the placeholder!
return Tag.selfClosingInserting(componentPlaceholder);
});
}```
what is the issue, is PlaceholderAPI#setPlaceholders doing something wrong ?
?paste
my expansion code
i tried with --null in papi parse, it didnt work
how can i fix this ?
i can see that i check if player null returns null
how can i make it safe for other placeholder that requires the player ?
i have moved the code for getting params which are not depended to the player to be above the one for player
not sure if it is correct to do so
Guilds has an expansion built in. You don't need to install anything. Here is a list of placeholders: https://wiki.helpch.at/glares-plugins/guilds-w.i.p-migration/placeholders
It seems that maybe you have 2 expansions with name floodgate installed? Check the plugins/PlaceholderAPI/expansions folder
That is the correct way
Parse everything that has nothing to do with the player first
You can maybe try the Formatter expansion. If not, you could also try the JavaScript expansion and write some custom JS code for it
Also, some expansions such as Vault have placeholders with commas and without
its one
Can you execute /papi dump and send the generated link here?
Any chance you can send the startup log (including the part where the error you sent is thrown) as well?
[11:15:00 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[11:15:00 INFO]: [PlaceholderAPI] Fetching available expansion information...
[11:15:00 INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8]
[11:15:00 INFO]: [PlaceholderAPI] Successfully registered external expansion: progress [2.1]
[11:15:00 WARN]: [PlaceholderAPI] Failed to load external expansion floodgate. Identifier is already in use.
[11:15:00 WARN]: [PlaceholderAPI] Cannot load expansion floodgate due to an unknown issue.
[11:15:00 INFO]: 2 placeholder hook(s) registered!```
This looks like an issue with the Floodgate expansion. Please contact them and tell them to remove the following piece of code:
@Override
public boolean persist(){
return true;
}
This function should only be used by expansion that are built inside plugins.
Is there a way to get the player's number?
That is, to know if Notch was the #1 player to join the server
I think the closest you will get is %player_first_join% which gives you a datetime of when the player first joined the server
It wasn't what I was looking for but I managed to do what I wanted, thanks anyway.
hey hey, im trying to use the server countup/countdown placeholder.
i wish to use it every day on specific time, so it should point every day to like 14 pm, any ideas how this would be psosible?
Not possible at this moment
Hey guys, I'm using velocity proxy and have 3 backend servers running on paper
I'm not sure which extension I should use to be able to show online of each server separately?
Shortly: placehorder for showing online from one backend server (hub) on another backend server (skyblock or survival for example)
Thank you so much beforehand!
hi im trying to show player ranks (using luckyperms) while players are offline, currently it shows ranks for players who are online but not offline players. i was told to ask here for help
thanks, Please ping me when replying
Hi guys does anyone have anti cheat configuration and anti cheat codes for skyblock server using special items? And better yet
Hey, I want to register a new placeholder but it not works, here's my code
class COSExpansion(
private val plugin: JavaPlugin,
) : PlaceholderExpansion() {
override fun getIdentifier(): String = "CosPlaceholder"
override fun getAuthor(): String = "RTAkland"
override fun getVersion(): String = "1.0"
override fun persist(): Boolean = true
override fun onRequest(player: OfflinePlayer?, params: String): String? {
println(plugin.name)
val playerName = player?.name ?: return null
return when (params) {
"cos_diamond_count" -> simulatorCountManager.getCount(playerName, KeyTypes.DiamondKey).toString()
"cos_golden_count" -> simulatorCountManager.getCount(playerName, KeyTypes.GoldenKey).toString()
"cos_copper_count" -> simulatorCountManager.getCount(playerName, KeyTypes.CopperKey).toString()
"cos_iron_count" -> simulatorCountManager.getCount(playerName, KeyTypes.IronKey).toString()
else -> null
}
}
}
And I registered it in onEnable
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
Bukkit.getPluginManager().registerEvents(this, this)
COSExpansion(this).register()
}
but the println does not print anything
Any it not works
which placeholder did you use?
2.11.6 via gradle
not what I asked
π
?
oh sorry, This is my first time using placeholder, so I am not sure about some things. The placeholder used is %cos_diamond_count%
you could say that yeah
Oh it works thanks
For anyone looking for the CheckItem expansion with working NBT support for 1.20.4+, you can try this build.
cc: @sullen bluff @sage gorge @real parrot @umbral breach @warped mason 
hey so im trying to use deluxetags in my custom tab plugin, i have the API tag working when i chat in the chat ( using my own chat format so i have the PlaceHolderAPI working ) but when i try and use the placeholder in the tab it doesnt work?
/papi parse me %deluxetags_tag% works?
lemme load server back up again and try it
yeah when i do that it shows the correct tag
but my tab just shows the %deluxetags_tag%
any idea what todo to get this to work?
what tab plugin do you use?
making a custom one
so using it like this
ejoin.getPlayer().setPlayerListName("%deluxetags_tag% " + player.getDisplayName());
does it support paper 1.21.5
Mine? no its made in Spigot
im talking about placeholder api itself not deluxetags
yeah pretty sure it does
using ajleaderboards with placeholders, swapped to paper and none of it works now
PlaceholderAPI doesn't automatically parse placeholders everywhere. It does not inject itself anywhere at all. You have to specifically call PlaceholderAPI.setPlaceholder() on the string you want to parse placeholders in.
PlaceholderAPI works fine in 1.21.5. If you have errors or warnings please send them here so we can look into this further.
i will try it today, tysm for doing this
i use ajleaderboards on spigot, switching to paper breaks all the placeholders in the scoreboard
or its just left as the %name% and no statistics
%name% is not a PlaceholderAPI placeholder though. You will have to be a bit more specific. What placeholders don't work, where are you using them, have you tested them with /papi parse command?
Ok. Do the placeholders work when testing them with /papi parse?
what is the message meant to be when i send this command
You should test like this /papi parse me %PLACEHOLDER_HERE%. Replace the placeholder with one that doesn;t work.
It should parse the placeholder and send the result in chat
where i see how to use this properly?
i didnt mean to ping, the @ is usually off for my mentions
Hello, I'm trying to make a profile system for players and using the ParseOther placeholders but the system breaks when the player you're looking for is offline, is there a way to fix this?
thanks but i already forked it to be updated onto 1.21.4
Ok i got this working. Is there a way to get it to update without having to relog?
If i change my tag i have to relog for it to change to the new tag
If i restart the server there is no tag and i have to relog for it to show
guys do deluxemenu placeholder still needed? or exist?
im new at plugin, im still learning
i dont find deluxe menu placeholder in papi ecloud download
You don't need to download them. They come built inside the DeluxeMenus plugin.
Use a scheduler to update the playerlist constantly
sheesh, thanks for the copy! doing gods work
oops, didnt mean to break that rule
I didπ Iβll try it again when Iβm home, I may have done something wrong
so when i restart server and join the tag still doesnt show until i relog
( Yes its inside a Bukkit.getScheduler() )
and then when i relog the tag flickers on and off?
unkown statistic "mine_block", check https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html
doesnt seem to change the tag that i have applied either, still flickers the default one i had when first relogging
statistic players kills also same
[21:14:48 INFO]: [TAB] [WARN] [config.yml] Missing configuration section "placeholders.register-tab-expansion" of type Boolean, using default value false.
[21:14:48 INFO]: [TAB] [WARN] [config.yml] Configuration section "bossbar" has unknown key "default-bars". Valid keys: [enabled, toggle-command, remember-toggle-choice, hidden-by-default, bars]
[21:14:48 INFO]: [TAB] [WARN] [users.yml] Unknown property "abovename" defined for user "NEZNAMY". Valid properties: [tagprefix, tagsuffix, tabprefix, customtabname, tabsuffix, header, footer]
[21:14:48 INFO]: [TAB] [WARN] [users.yml] Unknown property "belowname" defined for user "NEZNAMY". Valid properties: [tagprefix, tagsuffix, tabprefix, customtabname, tabsuffix, header, footer]
[21:14:48 INFO]: [TAB] [WARN] Found a total of 4 issues.
I would need to see the code to help you debug. Please share it
try setting it to upper case
in the placeholderapi plugin apparently it hooks on to the simple voice chat plugin for placeholders. running /papi list shows 'voicechat' as one of the hooks however i cannot find any documentation on how to use them.
yes. this is what i was looking for. thank you
Nothing flickers besides the tag on the tablist
String tabName = "%deluxetags_tag% " + player.getDisplayName();
tabName = PlaceholderAPI.setPlaceholders(ejoin.getPlayer(), tabName);
String finalTabName = tabName;
Bukkit.getScheduler().runTaskTimer(main, () -> {
ejoin.getPlayer().setPlayerListName(finalTabName);
ejoin.getPlayer().setPlayerListHeaderFooter(
ChatColor.GOLD + "" + ChatColor.BOLD + "EagleSMP" + ChatColor.BOLD + ChatColor.WHITE + "\nβββββββββββββββββββββββββββββββββ\n" +
ChatColor.GRAY + "\nPing: " + ChatColor.WHITE + player.getPing() +
ChatColor.GRAY + "\nPlayers: " + ChatColor.WHITE + Bukkit.getOnlinePlayers().size() +
ChatColor.GRAY + "/" + ChatColor.WHITE + Bukkit.getMaxPlayers() + "\n",
ChatColor.GRAY + "\nX: " + ChatColor.RED + Math.round(player.getLocation().getX()) +
ChatColor.GRAY + " Y: " + ChatColor.RED + Math.round(player.getLocation().getY()) +
ChatColor.GRAY + " Z: " + ChatColor.RED + Math.round(player.getLocation().getZ()) +
ChatColor.WHITE + ChatColor.BOLD + "\nβββββββββββββββββββββββββββββββ\n" + ChatColor.GOLD + ChatColor.BOLD + "Enjoy Your Adventure!"
);
}, 20, 20);
Hello! Is there a placeholder for vanished players? I donβt see anything in the placeholder list and I could find a plugin with placeholder support, just wondering if Iβm missing it somewhere
https://paste.helpch.at/ahizicohiw.swift
PlaceholderAPI only parses placeholders when you tell it to. And you were telling it to do it once, before the scheduler started.
What exactly do you want from such a placeholder? To see a list of vanish players? To see if a player is vanished? etc.
Essentials has this one %essentials_vanished%
PremiumVanish also has some placeholders: https://wiki.placeholderapi.com/users/placeholder-list/#premiumvanish
And so does SuperVanish: https://wiki.placeholderapi.com/users/placeholder-list/#supervanish
Alos, if there aren't plugins listed on this page, that does not mean they don't have placeholders. Some have them built inside the plugin and prefer to list them on their own pages
is there a placeholder that would show which side player is facing
This is the same code I had? And it looks like the setting of it is inside the scheduler to me?
I want the server player count to decrease when someone is vanished
It is not the same code as you had. I moved the placeholder parsing inside the scheduler.
Your code was only parsing the placeholder once and then setting the old value back every second. My code parses the placeholder every second and sets the new value every second as well.
What vanish plugin do you use? If your plugin does not have a non vanished player count, it probably has a vanished player count. So you can use Math expansion to extract the vanished player count from the total
There is %player_yaw%. It returns the Player yaw.
Here's the documentation on it:
Gets the yaw of this location, measured in degrees.
A yaw of 0 or 360 represents the positive z direction.
A yaw of 180 represents the negative z direction.
A yaw of 90 represents the negative x direction.
A yaw of 270 represents the positive x direction.
Increasing yaw values are the equivalent of turning to your right-facing, increasing the scale of the next respective axis, and decreasing the scale of the previous axis.
would it be possible for a player's joined hostname to be a player extension placeholder?
so like %player_hostname%
like for specific hostname based rewards, like first join rewards if you joined through your websites mentioned domain
or specific rewards if you joined from a voting site
hey so i have a problem with expansions currently my server cant get any expansions for some reason and i cant add expansions through ecloud it just says "Failed to find an expansion named: Vault" whenever i try to add vault so im very confused
I don't think this is in the scope of a player placeholder. It is possible to implement it, but the expansion would need to hold a map of player-hostname for each connected player.
@quick spruce 
ty
that is true, didnt think of that, so would need to be a custom extension then
I mean, I don't think this would be the first exception we make to the Player expansion. You could open an issue on github and see if someone is available to implement it
oooh i see where i put it wrong, i appreciate you!
does anyone know how to ignore the player when using javascript extension for papi?
i got a plugin using setPlaceholders(null, "string")
and it cant parse the javascript placeholders
im cooked
idk if thats gonna cause me more issues
better to make a proper expansion then
I need a placeholder that will display the nickname of the player the player is looking at. For example:
Player1 is looking at Player2
I need the Player1 placeholder to display the value 'Player2'
I don't believe there's an expansion for this
You would need to make your own
(
Does anyone know a scoreboard plugin that has papiproxybrige implemented for placehodlers from velocity and other servers connected within the proxy?
Im on 1.8 and i want to make a lore display the live amount of players in a certain mv world what placeholder and expansion do i need
is there a placeholder that would say if player has a targeted block or no (its the text on bottom right when you click f3)
%world_players_<world>%
If you still need this, I found %player_direction%. It should return N, NW, W, SW, S, SE, E, NE. And these values can be configured in configuration file: plugins/PlaceholderAPI/config.yml
I can't find one for target block however. Only block underneath
However, I think this is something that can and should be added to Player expansion.
https://github.com/PlaceholderAPI/Player-Expansion/issues feel free to open an issue here
what kind of placeholder expansion do i need
Usually, the expansion name is the first part of a placeholder. In this case it would be world.
/papi ecloud download world
/papi reload
Hello! I want to use String's replaceCharacter to remove dots from a string, but it doesn't work. I've tried the following settings at replacements:
"[.]": ''
"'.'": ''
'\.': ''
"\.": ''
'.':''
".":''
'\\.':''
/\./g
And many other different combinations swapping double and single quotes, using double escapes, etc. Some load correctly but %string_replaceCharacters_nodots_{message}% doesn't remove the dots, and with other config attempts the yaml fails to load.
Help would be much appreciated.
Use formatter instead
%formatter_text_replace_.__{message}%
had the same issue, I think there may be another way but eh, this is better
Life saver
Can you give me the link for the deplaceholerapi dependency? The link I have doesn't reach it.
Multiple markers at this line
- me.clip:placeholderapiπ«2.10.10 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
- Could not find artifact me.clip:placeholderapiπ«2.10.10 in spigot-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/)
- me.clip:placeholderapiπ«2.10.10 was not found in https://repo.papermc.io/repository/maven-public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of papermc-repo has elapsed or updates are forced
Could someone help me?
I'm on 1.21.5 and when I try to parse a placeholder via /papi parse, it returns the placeholder instead of its value
did you do /papi ecloud download for that extension?
@sterile pilot repo.helpch.at and update the version
How do I reset statistics?
delete the playerdata inside of the world folder
I am using placeholderapi and i need placeholders for my scoreboard but when i try downdloading then ingame it downdloads and when i reload it says 0 placeholders hooks registerided and it also doesnt work manually i am on the newest placeholderapi version i am using paper as host minehut and server version 1.21.4 PLEASE HELPP
Can you execute /papi dump and send the generated link here?
Also, if possible, send your server logs including the ones where you download the expansion and reload PAPI.
I fixed it i didnt downdload the plugins when i added the api thanks for helping tho!
Well, it is impossible
It wasn't built for proxy servers
where dev builds
I am trying to get kills and deaths for my scoreboard but i just cant get it anybody help?π₯Ί
@glad glen
Anyone?
Have you tried the Statistic expansion?
/papi ecloud download Statistic
/papi reload
%statistic_deaths%
%statistic_player_kills%
https://api.extendedclip.com/expansions/statistic/
Hi. I'm wondering if anyone knows what I should do. I want to use these placeholders in the "Guilds" plugin, but they don't work when I try to use them in the plugin. What should I do?
https://gyazo.com/767c24f120eddaa15af2b499479b33d0
https://gyazo.com/99941b8ff206e7475da6161755c029a4
Yo
[07:55:21 WARN]: [PlaceholderAPI] Cannot load expansion playerstats due to a missing plugin: PlayerStats
[07:55:21 INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8]
[07:55:21 WARN]: [PlaceholderAPI] Failed to load external expansion votingplugin. Identifier is already in use.
[07:55:21 WARN]: [PlaceholderAPI] Cannot load expansion votingplugin due to an unknown issue.
whats that?
ping me
Can someone help me at a placeholder expansion? I don't know why theres an error
https://pastebin.com/mWj218vV - https://pastebin.com/dZ7h68Y6 https://pastebin.com/p2kWtSyH - https://pastebin.com/76LRq8nZ
I don't understand
@tender vapor
@tender vapor there isnt any scope <dependency>
<groupId>com.github.placeholderapi</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.6</version>
</dependency>
Ah ok
I'm trying to do this
<dependency>
<groupId>com.github.placeholderapi</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.6</version>
<scope>provided</scope>
</dependency>
like this?
HELLO @tender vapor answer pls
Nah Barry this isn't working π
W Barry its working
W Bot
You are ChatGPT v10
look at this https://ibb.co/ycYjp0VW
This should be an easy fix. Does anyone know what I should do?
is checkitem updated anymore?
pinned messages has an up to date version
I don't know if I did it right with playerlist
playerlist:
groups:
admin: # name of the group
gap: 1 # slots gap between each list
lists:
staff:
title: (%amount%)
max: 10 # will display a max of 10
modis:
title: (%amount%)
max: 10 # 0 = no max, redundant
lists:
staff:
type: ONLINE
included: true
filters:
- PERMISSION:online.group.staff
- CANSEE
modis:
type: ONLINE
included: true
filters:
- PERMISSION:online.group.modis
offline-text: Offline
argument-separator: ','
i want display onlineplayers with the rank
cc: @junior musk
Do these placeholders work if you try them with the /papi parse command?
seems fine
The PlayerStats expansion requires the following plugin: https://www.spigotmc.org/resources/playerstats.102347/ to work.
you probably want to remove the online. from the permission and only keep group.modis, otherwise it seems fine
for some reason, the /papi reload command doesnt seem to be working after downloading an expansion from ecloud. it sends no response and the console just sends
[PlaceholderAPI] Placeholder expansion registration initializing...
[PlaceholderAPI] Fetching available expansion information...
even restarting the server doesnt seem to be registering the expansion hmm
Just been looking at this, you are on an old version of the expansion, please update
Unfortunately the latest version isnt verified, Im still waiting for the team to have time to do it
Yeah it's been resolved
is it normal that parsing the luckperms_prefix placeholder returns an empty string?
i just updated both papi and luckperms and this problem persists
also %vault_prefix% doesn't work
anyone?
If the user has no prefix, yes. Also if the user is offline I believe.
they have group prefix and i am online
i am parsing to myself
How did you set the prefix? Did you set it on a group and then set that as a parent? Or some other way?
with the meta command
i did this command
/lp group default meta setprefix 0 "&8Utente &7"
any help is appreciated
?
i managed to fix it thanks to chatgpt btw.
server: "global"
this had to be set to global
i had set it to some other things
which mail
bro you sus as hell
im on 2.11.6 which is the latest version on spigot. do I need to use the latest dev build?
oh you said expansion
not papi, nvm
let me see
btw im trying to use the Bungeecord expansion which that doesnt seem to be working
I went ahead and verified it. Sorry it took so long. It seems that despite the bumps we've just missed it.
In the future, feel free to directly ping me in cases like this where it takes too long to get an answer.
Thank you
Will do
Hello there
there is this papi expansion
https://api.extendedclip.com/expansions/messageconverter/
does someone know of similar functionality, i need to convert &4Ex&nample text to minimessage format using this kind of papi expansion
There was one called Kyorify. You can try that one
how can I register on placeholderapi?
the site give me this error:
Well...
This is awkward.
Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us.
@balmy marten can help you with the process. However, as the message mentions, registration is locked unless necessary. I believe this means unless you have an expansion that must be external and can not be built into a plugin.
but I created a plugin with an external expansion
is there a reason why you made it external and not included within the plugin?
just to amplify it, I had it then removed
amplify what?
Is it possible to disable this math warning message?
https://mclo.gs/bP1mrXe
In your PAPI config under math you can set Disable-Warnings: true
hello
i need a little help
this i my code
function getCustomPartyMember1Health() {
var partyMemberNameRaw = PlaceholderAPI.setPlaceholders(BukkitPlayer, "%mmocore_party_member_1%");
var partyMemberName = String(partyMemberNameRaw).trim();
if (partyMemberName && partyMemberName.length > 0) {
return "parseother_unsafe_{" + partyMemberName + "}_{player_health_rounded}";
} else {
return 0;
}
}
getCustomPartyMember1Health();
the problem is, player_health_rounded is parse before so the final string look like parseother_unsafe_{Chikage04}_20 instead of parseother_unsafe_{Chikage04}_{player_health_rounded}
function getCustomPartyMember1Health() {
var partyMemberName = "%mmocore_party_member_1%".trim();
if (partyMemberName && partyMemberName.length > 0) {
return "parseother_unsafe_{" + partyMemberName + "}_{player" + "_health_rounded}";
} else {
return 0;
}
}
getCustomPartyMember1Health();
You can try something like this. I think the JavaScript expansion parses placeholders first before actually compiling and executing the code. But I thought that was only true for placeholders using %.
Oh yes, sorry, I removed the % to be able to see the raw string, but I didn't put it in the example. But it's actually %player_health_rounded% that's my problem.
That's it, I don't know if there's a way to make JavaScript not parse it in advance. Or else another method to achieve goal
you know, my initial problem is that I use %parseother_unsafe_{mmocore_party_member_1}_{player_health_round}% in a plugin but when %mmocore_party_member_1% is null it returns nothing, and it breaks the plugin
So, JavaScript expension was perfect for me
Split the placeholder in multiple strings (2 should be enough). Just like the example I gave
same result
ah sry
working in 1.21.5?
Should be.
Can you share the current code you're trying please?
β₯
i used the one you sent, and i just parse it with /papi parse me %javascript_test%
with parseother_unsafe_{" + partyMemberName + "}_{player" + "_health_rounded} it return parseother_unsafe_{Chikage04}_20
and
with %parseother_unsafe_{" + partyMemberName + "}_{player" + "_health_rounded}% it return player_health_rounded (this is weird too)
I am wondering, if you try /papi parse me %parseother_unsafe_{NAME}_{player_health_rounded}% in chat, what does it show? Please change NAME with an online player name.
im trying an another way
but my
var loader = papi.class.classLoader
dont work.
papi.class is null
the other way i think was to directly change BukkitPlayer by %mmocore_party_member_1%
and doing this
function getCustomPartyMember1Health() {
var partyMemberNameRaw = PlaceholderAPI.setPlaceholders(BukkitPlayer, "%mmocore_party_member_1%");
var partyMemberName = String(partyMemberNameRaw).trim();
if (partyMemberName && partyMemberName.length > 0) {
return PlaceholderAPI.setPlaceholders(%mmocore_party_member_1%, "player_health_rounded");
} else {
return 0;
}
}
getCustomPartyMember1Health();
but since setPlaceholders wait for a type Player at first argument idk how to do
~~You have a variable there for the player name you can use partyMemberName instead of the placeholder for the argument . ~~You want the whole script getCustomPartyMember1Health to return just the health like 20?
yes
function getCustomPartyMember1Health() {
var partyMemberName = "%mmocore_party_member_1%".trim();
if (partyMemberName && partyMemberName.length > 0) {
var placeholder = "parseother_unsafe_{" + partyMemberName + "}_{player_health_rounded}";
return PlaceholderAPI.static.setPlaceholders(null, "%" + placeholder + "%");
} else {
return 0;
}
}
getCustomPartyMember1Health();
Can you try this? I replaced just %mmocore_party_member_1% with %player_name% to test on myself, testing the placeholder outputs only 20
i removed the .static
is not working with it for me
it working man thx i so stupid to not had think about this
don't use var
Thank you!
me.clip.placeholderapi.PlaceholderHook β 116MB. why is it using so much memory ?
You're not supposed to shade it
It all comes with PlaceholderAPI
hey, is it possible to parse papi placeholders using javascript or python somehow
The JavaScript expansion? Or what exactly are you trying to do? There are JavaScript interpreters for Java that you can use. And you can pass classes to it as well. That's what the JavaScript expansion does for example
I'm sure there's python interpreters as well
But I don't see why you would do that though
i'm looking to make a discord bot and i would like it to use a papi placeholder in a response
sorry
hello
MythicHUD (v1.2.2-SNAPSHOT)
Server thread93.43%
io.lumine.mythichud.comp.parser.PlaceholderAPIParser.run()93.43%
me.clip.placeholderapi.PlaceholderAPI.setPlaceholders()93.40%
me.clip.placeholderapi.PlaceholderAPI.setPlaceholders()93.40%
me.clip.placeholderapi.replacer.CharsReplacer.apply()93.40%
com.extendedclip.papi.expansion.javascript.JavascriptExpansion.onRequest()69.75%
com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate()69.73%
com.extendedclip.papi.expansion.javascript.evaluator.QuickJsScriptEvaluator.execute()36.02%
me.clip.placeholderapi.PlaceholderAPI.setPlaceholders()33.65%
i know i call my script every second but i necessary
but why it does so much lag
im using a lot of setPlaceholders to check player information constantly
since when placeholder api not working on paper 1.21.4?
loads and shows working but still not even the command : /papi parse me %player_name% works since it returns %player_name%
@balmy marten
sorry
Hey anto_flex!
If /papi parse me %player_name% returns %player_name%, PlaceholderAPI isn't parsing the placeholder correctly.
Here's a quick checklist:
- Is PlaceholderAPI installed correctly? Double-check that the .jar file is in your
pluginsfolder. - Did you install the expansion? Use
/papi ecloud download Playerand/papi reload. - Restart your server. A full restart is sometimes necessary after installing expansions.
If it's still not working after these steps, show me the output of /papi info!
it has a way to do the same thing, without using setPlaceholder ?
JavaScript expansion is not light. It can be very lagy if heavily used.
I'd personally suggest making your own Java expansion if you have the knowledge and spare time.
Definitely better than JavaScript expansion.
so there are a whay to say always return a thing when using for exampleparseother_unsafe_{player_name}_{mmocore_mana} because something is null, it return the parseother return null and I would never want that to happen
You can maybe do some complicated stuff with the Utils expansion but I'm not sure. Once again, if your stuff is very complicated, I'd always suggest making your own expansion.
Does anyone know a placeholder for Velocity that only displays 2 servers online? %bungee_total% is not suitable because I have more than 2 servers
Well, you could use Math expansion to add up the count from your 2 servers.
%math_0:down_{bungee_SERVER1}+{bungee_SERVER2}%
The placeholder was not replaced.
placeholder math downloaded
%math_0:down_{main}+{farm}%
in console:
[22:05:53 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0:down_{main}+{farm}% [22:05:53 WARN]: [PlaceholderAPI] [math] Cause: '{main}+{farm}' is not a valid Math expression.
the placeholder is {bungee_<server id>}, so it can't be just main/farm, it needs to be bungee_main/bungee_farm
Like Gaby mentioned, it needs to be %math_0:down_{bungee_main}+{bungee_farm}%
thanks its works
Alright Blitz, if you are listening I've found the root of the issue. PAPI b207 changes the way placeholders parse, which in turns causes all the downstream issues I'm having ): I don't suppose ChangeOutput can get an update to remedy this and have it process how it did before those PAPI changes?
what is the issue?
I've been working on debugging for two days now. PAPI build 207 fundamentally changes something in how placeholders parse, and that so far has affected ChangeOutputs reading of results
It completely breaks my calculator I've built, thats how I caught it
I reverted back to b206, all the issues go away
If you could take a look I'd appreciate it, I think you are the creator of ChangeOutput if I'm not mistaken?
can you send the placeholder you're currently using?
and what it returns before & after updating to b207?
Can anyone make me a LUA script for Roblox studio that makes a cool GUI coin system thanks for everry who'll make it
I am DMing you the screenshot I sent Blitz because I cannot send it here
I'll try it out later, can't focus on anything rn
All good, sent you all the information I have, please ping me if you have any solutions
why whenever i try to do /papi ecloud download Statistic and then /papi reload it isnt installed when i do /pl
because PAPI downloads expansions, not plugins. Check your expansion list using /papi list
Hello Why this placeholder is not working %checkitem_remove_mat:wheat,amt:{math_0:0_{checkitem_amount_mat:wheat}-{zquests_objective_npc-farmer-1}}%
You have 2 levels of nesting which is not possible
how to make it work
You can maybe use the Utils expansion which has some nesting stuff. Or maybe, don't use an expansion to remove items?
Use a command instead
can you give me an example please
minecraft:clear PLAYERNAME wheat %math_0:0_{checkitem_amount_mat:wheat}-{zquests_objective_npc-farmer-1}%
it's a command ?
Yes. It is a command provided by minecraft
Is there a placeholder to check a connected players client "brand" (Ex. Vanilla, Forge, Fabric, ETC)?
What do you mean, it didn't work?
That screenshot is not making things very clear
It's for a quest that I'm doing with a new quest plugin and I want to do it in such a way that it only takes 500 wheat from me.
Ok, and how much did it take?
16
Did you have 500?
500 is max item to deposit
When you executed the command, did you have 500 wheat in your inventory or not?
Yes
hello,papi is support 1.21.5?
Yes, papi usually doesnt need updates, expansions do.
thanks
anyone knows a chatplugin that supports relational placeholders?
Hello guys, can someone help me integrate Papi with Deluxe tags, I try to download the placeholders of the Tags but they don't appear in Papi's ecloud
You don't need to download anything anymore.
They come built in with the plugin
I understand, it's because I use VentureChat, and I wanted the Tags to appear in the chat, I even try to put the placeholder there, but only %deluxetags_tag% remains but the TAG itself does not appear.
If you execute /papi parse me %deluxetags_tag% what does it return?
does it parse the tag properly?
Yes, it analyzes the tag and gives it the correct return, now when I put it in the files, only the placeholder is left empty, I've tried several Tag plugins and I always come across this same problem.
Just to make sure I understand, does it show empty space, or does it show back the placeholder?
i'm tryig to see the return value of a papi parse but it's not giving me in in the command block
or rather it's just giving the parse text
Hello, can someone help me with this :
[10:42:38 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{VotingPlugin_lastmonthtotal}>=300%
[10:42:38 WARN]: [PlaceholderAPI] [math] Cause: '...>=300' is not a valid Math expression.```
Command Blocks don't support PlaceholderAPI. Maybe there are some plugins out there adding this functionality but I am not aware of any.
I don't think the math expansion allows comparisons.
Only operations such as addition, subtraction, etc.
anyone knows a chatplugin that supports relational placeholders?
anyone?
Is there an expansion for boolean placeholders ?
is there a way to do math with placeholders?
!paste
Hey! I have been using the Math expansion and placeholders with no problem recently, but suddenly today it all broke? Anyone know why?
Nevermind, figured it out haha!
I'm not exactly sure what this means exactly. Can you be a bit more specific please?
Yes. See the Math expansion
This should work π You should get a 1 or 0 for true/false.
%math_100>=300% returns 0.000
Does votingplugin_lastmonthtotal return a number? The wiki mentions return codes that would break the expression, you can try %math_{votingplugin_lastmonthtotal_process}>=300%
- Add _process to end of placeholder to force a return value rather than . or .. if no cached value is ready, best option if you always need a value returned, do not use on main thread
- Add _nocache to end of placeholder to skip cache and retrive a live value, uses a direct mysql connection, do not use on main thread
How would I nest a placeholder inside formatter?
%formatter_number_shorten_{math_2*{player_y}}%
This doesn't seem to work
You can only nest once. Look into the Utils expansion which lets you nest multiple times.
how would i format nbtstrings to target minecraft:custom_data..id?
This doesn't work: papi parse DaisyEseyad %checkitem_amount_mat:CHAINMAIL_CHESTPLATE,nbtstrings:minecraft:custom_data..id=worn_chain_chestplate%
Thanks dude!
There is no time to wait! Ask your question @lofty wadi!
i want make player's stats leaderboard
I want to make only the player's stats, I only want these.
1.player's total bed destroyed
2. player's total kills
3. player's total wins
I want to make only the player's stats, I only want these.
1.player's total bed destroyed
2. player's total kills
3. player's total wins
%statistic_mine_block:<material>%
%statistic_player_kills%
I can't give you a placeholder for wins because I am not sure what wins are. What plugin are you using?
Maybe I overlooked the right message in my search, but is there a PlaceHolder, that converts the uuid to playername?
I found it: %parseother_{<UUID>}_{player_name}%
I needed a way to send the value of certain placeholders to a database, but I couldn't find a suitable plugin. Here's what I came up with:
I have two plugins: LuckPerms and ConditionalEvents (https://ajneb97.gitbook.io/conditionalevents).
LuckPerms can display all user permissions and groups in the database, and CE can modify them however and whenever I want.
Would it be expedient and efficient to automatically/or when needed change a user's permission, specifically replacing "test_1_*" with "test_1_<placeholder_value>" to extract the placeholder's value, for use on my website?
Hi! I have a leaderboard that uses the Statistic Placeholder to run. But for some reason whenever a particular player goes up, one of my admins goes up too and is higher than them. Even if they are offline/not doing the leaderboard topic? Im unsure if this has anything to do with PAPI or not? But i thought id ask
Its only on one leaderboard too. Not on any of the other ones
What about the value of the Statistic placeholder. Does it change for the admin or not?
If only the leaderboard changes but not the Statistic placeholder value, then it is most likely an issue with the leaderboard setup.
If you can't code your own plugin to update your own database, then I guess this could work. But maybe, instead of permissions, use LuckPerms meta values?
How would i find this out? Is there a command to see the placeholder value?
sorry 
Yes. You can use the /papi parse PLAYERNAME %placeholder% command.
If you want to test for yourself, you can use me instead of player name.
how to make the ranks with deluxemenus with requirements of low ranks?
Having the same issue
%checkitem_inhand:main,nameequals:&f&l&ki &7&lα΄κ±α΄α΄α΄ α΄ &#BD00FE&lELEMENTAL% why this placeholder says to me "no" if i have the item with that name? Is something wrong?
Hey, is there any way to format a placeholder (for example, the Spark TPS placeholder) without the placeholder overriding that formatting? Or is it possible that Spark returns the raw data without formatting?
most likely because the color isn't included like that in the name, just hold the item in your main hand, and do /paper dumpitem
It is a number. π€ Make sure you're using %statistic_player_kills% not statistics, only way I could replicate your error
Hello, I made a math placeholder that calculates the KD of a kill/death player, everything seems to work correctly and without errors, but if the player just logged on to the server and his stats are 0/0, then the placeholder stops working can you help?
%math_0:0_{statistic_player_kills}/{statistic_deaths}%
That's probably because deaths is 0 and division by 0 is not possible. I am not sure what you can do here. I'll have a look if the Math expansion has anything for this.
Couldn't find anything for it.
Is there any placeholder that checks the modifier attributes of an item?
hi there, I have a question to ask. So I'm trying to setup a gui that can display players own skull head when they open it. This is how i have it setup but it seems to only display default skull head which is steve.
material: PLAYER_HEAD
slot: 0
custom-skull: "%player_name%"
display_name: '&b%player_name% &fProfile'
problems with the gui plugin, commandpannels for example doesnt work in new versions
ah I see so there isn't any way to fix this at this time?
is this deluxemenus?
Yep this is for deluxemenu.
material: 'head-%player_name%'
oh ty
custom-skill doesn't exist so u can remove that
okay ty
Is there a placeholder that will check if the player has a texture pack installed, if yes - a symbol is displayed that will be replaced with an image, if not - any text, any sentence, a word for a tab is displayed?
Someone can help with leaderboard for kills, because it didn't work. I use %statistic_player_kills%. And the same problem with scoreboard
Use /papi ecloud download Statistic
yo
how can i see the number of virtuall crates in a holΓΆogram?
how do i get it to work
Hello, I need help with creating a custom placeholder for slimefun using papi.
Like there is a event MultiBlockCraftEvent and I want to store its values everytime someone triggers the event, how will we do it using javascript expansion?
I don't have enough knowledge for it.
Can anyone guide me here please Im just starting out..
I was made it and it doesn't work
If you execute /papi parse me %statistic_player_kills%, what does it show in chat?
I don't even think the JavaScript expansion can listen for events. You might want to make a custom Java expansion.
What to do if the plugin is not displayed in /pl, the correct version is installed, everything seems to be fine
i have a minecraft network and i want that above each npc it will show how many players are online in the specific server
using velocity
using citizens 2
it is supported for bungee but not for velocity
[18:11:34 ERROR]: [DirectoryProviderSource] Error loading plugin: java.lang.IllegalArgumentException: Directory 'plugins/.paper-remapped/placeholder-api-2.6.3+1.21.5.jar' does not contain a paper-plugin.yml or plugin.yml! Could not determine plugin type, cannot load a plugin from i
you downloaded Text Placeholder API which is a Fabric mod not developed by the HelpChat team
HelpChat's PAPI version can be found on Spigot (https://placeholderapi.com will lead to its overview page)
bruh what about my problem
the Bungee expansion works with Velocity as long as you enable the bungee plugin messaging channel in Velocity's config
ok but i don't really wanna use bungee's forwarding method but ok i use it
that's not what I meant
there's a separate setting for that
# Enables BungeeCord plugin messaging channel support on Velocity.
bungee-plugin-message-channel = true
ohh thanks
can any1 help me why placeholder api is not enabling in 1.21.4 π
it's not remaping
what placeholderapi version you on?
and dont say "latest"
vault , tab is also don't π and somehow placeholderapi enabled when i restarted, it's happening like sometime remape 10 sometime 12 sometime 9 , idk why it's happening finding correct verison of a plugin is tuff,
it would be too good if any1 help me with it π
whats "remape"?
I have no idea what your saying
I asked what version of placeholderapi you are on
[PluginRemapper]
PlaceholderAPI-2.11.6.jar
https://ci.extendedclip.com/view/Plugins/job/PlaceholderAPI/ could try our latest dev build
oh yea it works but other plugins doesn't π
?? what other plugins
vault , tab
The plugins themselves dont work?
can u give me permission to upload a file for latest.log file
For those errors contact those devs
For those plugins
Says your missing worldguard-bukkit-7.0.14-dist.jar
[19:23:18 ERROR]: [ModernPluginLoadingStrategy] Could not load plugin 'worldguard-bukkit-7.0.14-dist.jar' in folder 'plugins/.paper-remapped'
but it exist
maybe on the wrong version
ugh.. π
it seems that the version of worldguard you have does not support 1.21.5
Whixh version is for 1.21.5,
Let me check
Looking at their Modrinth page, version 7.0.14 should work. I am not sure why it doesn't work then. I suggest you contact them. They do have a discord server.
Is there a placeholder that will check if the player has a texture pack installed, if yes - a symbol is displayed that will be replaced with an image, if not - any text, any sentence, a word for a tab is displayed?
I've been looking but unfortunatelly I couldn't find one that exists already
hey
im a bit confused on the purpose of relational placeholders.
I get how they work but when i tried them out i trought it would automatticly use protocollib or so behind the scenes to show the placeholder differently based on viewer and target;
However turns out i would need to implement my own packets to for example make a text display show up differently for each player
Is that true?
And is the purpose of the api then only for developers that make public plugins to let users who download their plugin being able to change stuff in the config using placeholders?
That's exactly how it works.
PlaceholderAPI doesn't parse anything by default, it just allows other developers to create their own expansions (whether they're external and can be downloaded from the ecloud like the Player expansion, or internal and therefore directly inside their own plugin like the TAB expansion), and also allows parsing those placeholders, with or without a/2 player(s)
There are some placeholders that don't require any players like %server_online%, allowing you to call PlaceholderAPI.setPlaceholders while passing null as the OfflinePlayer instance, though most of them require one like %player_name%. It depends.
And there's also relational placeholders which depend on 2 players to be parsed, for example, %rel_factionsuuid_relation% that returns whether you're in the same team, an ally or an enemy
alr thanks for the detailed explanation
is there some way to suggest new features here?
I would like that the api allows to disable the belowname objective per player.
that's not up to PlaceholderAPI
and it's not possible at all, MC doesn't allow that, it shows the belowname objective on all player entities with nametag visible, no exceptions
alright,
huh
Hello! You can help. To configure. To show up. The players. Was it possible? Press the button. And teleport. To the other north.
does PAPI work in version 1.21.6?
Should did you test it
hey have u been able to test it?
"Use Discord/Github to ask for help. I don't know what PAPI Checkitem is, it's possible they have the nbtapi shaded in an older version, that just doesn't yet support 1.21.5. In that case, contact the author."
- NBTAPI plugin developer said.
Dunno how to explain my inquiry but pretty much just gonna ask if the latest version of papi works with NBTAPI. As I'm using PAPI Checkitem to check what the player is holding but requires NBTAPI to work for some reason. Any help is much appreciated
try pinned messages. there is an updated version of checkitem there
Nope didnt work. its saying this This Server-Version(1.21.5-R0.1-SNAPSHOT) is not supported by this NBT-API Version(2.13.2) located in PlaceholderAPI.
Is there an expansion that adds a placeholder for player count?
/papi ecloud download Server
/papi reload
%server_online%
And if you want to see player counts on other servers in the network:
/papi ecloud download Bungee
/papi reload
%bungee_SERVERNAME%
Can you execute /papi dump and send the generated link here please?
Thanks
not yet im currently setting up an entirely new server so its gonna take a while
papi itself should work, but its usually some expansions that may not work
Hello! I have a TAB Scoreboard and I want it to be a bit more specific than 12M. If you have 12,300,000 I want it to say 12.3M. anyone know how to do that?
What placeholder are we talking about here?
For vault currency
What placeholder are you using right now?
expansions:
vault:
formatting:
thousands: k
millions: M
billions: B
trillions: T
quadrillions: Q
So %vault_balance_formatted% I assume? I've looked to see if it is possible but I couldn't find a placeholder to return what you want.
thats what i am using
Is there a suggestions channel or something to ask for it?
Github issues I guess
papi cmdparse @p minecraft:setblock %superior_island_x% %superior_island_y% %superior_island_z% minecraft:snow replace
i try to work a command
[14:32:32 INFO]: Failed to find player: @p
[14:32:32 INFO]: Failed to find player: @p
also when i use %player_name%
or %player
/papi ecloud download player then /papi reload. And use %player_name%
yeah
papi parse me %player_name%
returns me the name
but papi cmdparse %player_name% minecraft:setblock %superior_island_x% %superior_island_y% %superior_island_z% minecraft:snow replace
return me
Failed to find player: %player_name%
Ah. That's because you have to select a command target
papi cmdparse PLAYERNAME minecraft:setblock @p %superior_island_x% %superior_island_y% %superior_island_z% minecraft:snow replace
all parse commands need a target
and only valid ones are me/--null/PLAYERNAME
ok i will try blitz <3
dont works
[15:10:21 INFO]: GeRmAnAnToNiO issued server command: /oneblock setphase GeRmAnAnToNiO 3
[15:10:22 INFO]: Failed to find player: PLAYERNAME
[15:10:22 INFO]: Failed to find player: PLAYERNAME
[15:11:25 INFO]: PlaceholderAPI version 2.11.6
[15:11:25 INFO]: An awesome placeholder provider!
[15:11:25 INFO]: Author: HelpChat
We replace PLAYERNAME with an actual player name
oh but its a command for each players
its an event
{
"action": "command",
"execute": [
"papi cmdparse PLAYERNAME minecraft:setblock %superior_island_x% %superior_island_y% %superior_island_z% minecraft:snow replace",
"papi cmdparse PLAYERNAME minecraft:setblock %superior_island_x% %math_{superior_island_Y}-1% %superior_island_z% minecraft:grass_block replace"
]
},
triggered by?
superiorineblock
I'm not exactly sure what that is? I do have a question though. Does it support PlaceholderAPI placeholders?
yeah
but
papi cmdparse
dont support
%player_name%
but it works wiuth germanantonio
(my nick)
yes of course it doesn't. it can't parse a player name if it doesn't know the player. Why do you even use cmdparse instead of executing the command directly?
for the x y z placeholders
of oneblock block
its different coords for each players
Yes. But if your plugin already supports PlaceholderAPI placeholders, why are you executing the command using the papi command?
That means what you said is wrong. The plugin you use to execute the command does not support PlaceholderAPI placeholders.
So now, can you please share what plugin exactly this is? Link would be best
Superior Skyblock Oneblock addon
Can you please send a link to a Spigot page?
Or any other page
Alright. Looking at their default files, you can use {player} to get the player name
{
"action": "command",
"execute": [
"papi cmdparse {player} minecraft:setblock %superior_island_x% %superior_island_y% %superior_island_z% minecraft:snow replace",
"papi cmdparse {player} minecraft:setblock %superior_islandx% %math_{superior_island_Y}-1% %superior_island_z% minecraft:grass_block replace"
]
},```
something like this maybe?
try it and see what happens
[15:31:42 INFO]: GeRmAnAnToNiO issued server command: /oneblock setphase GeRmAnAnToNiO 3
[15:31:43 INFO]: That position is not loaded
[15:31:43 INFO]: Invalid integer '99.000'
...ock -7800 99.000 18600 minecraft:grass_block replace<--[HERE]
sometime like decimals
You are not using the CheckItem version from pinned messages.
[15:33:03 INFO]: GeRmAnAnToNiO issued server command: /oneblock setphase GeRmAnAnToNiO 3
[15:33:04 INFO]: That position is not loaded
[15:33:04 INFO]: That position is not loaded
wtf
Please do the following:
- Go to
plugins/PlaceholderAPI/expansions/and delete fileExpansion-checkitem.jar. - Download the expansion from here #placeholder-api message and place it in the same folder
plugins/PlaceholderAPI/expansions/ - Execute
/papi reload.
will sure do afterwork
My guess is that the chunks need to be loaded for the minecraft command to work and they're not
im on oneblock chunk
Can you try executing the command from chat instead?
See if that way it works?
So executing this in chat works?
/papi cmdparse GeRmAnAnToNiO minecraft:setblock %superior_island_x% %superior_island_y% %superior_island_z% minecraft:snow replace
yep
Does Placeholder API work on 1.21.6?
why placeholdarapi not work in my server
We defo need more deets than this
what
Yes
package org.infusedpvp.features.types.masks;
import lombok.AllArgsConstructor;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import me.clip.placeholderapi.expansion.Relational;
import net.minecraft.server.v1_8_R3.EntityPlayer;
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.infusedpvp.features.types.crew.CrewFeature;
import org.infusedpvp.features.types.crew.data.Crew;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class PlaceholderAPIHook extends PlaceholderExpansion implements Relational {
@Override
public @NotNull String getIdentifier() {
return "mask";
}
@Override
public @NotNull String getAuthor() {
return "Polar";
}
@Override
public @NotNull String getVersion() {
return "1.0";
}
@Override
public String onPlaceholderRequest(Player player, Player player1, String identifier) {
if (identifier.equalsIgnoreCase("player_heart_color")) {
return getAbsorption(player1) > 0 ? "&6" : "&c";
}
return "&c";
}
public double getAbsorption(Player player) {
EntityPlayer nmsPlayer = ((CraftPlayer) player).getHandle();
return nmsPlayer.getAbsorptionHearts();
}
}
any idea why this placeholder wont parse
Probably nothing since it is a relational placeholder.
Relational placeholders are used like this: %rel_mask_player_heart_color%.
And these placeholders are special. Plugins need to specifically add support for them. Instead of PlaceholderAPI#setPlaceholders, PlaceholderAPI#setRelationalPlaceholders should be used.
If you want to test it, you can use /papi parserel PLAYER1 PLAYER2 %rel_mask_player_heart_color%
oh right lol
didn't notice
(and add some text at the end of the parselrel cmd since you're only returning a color, otherwise you'll just see an empty line in chat)
i did do the papi rel; thing and it didnt work
by "didnt work", did it not show anything? did it return back the placeholder? what did it show?
does placeholderapi work in 1.19.4 server??
afaik, should work, if it doesn't. share your error here so someone can help you
pero bueno tu por aquiπ
can i get the attributes modifiers with the checkitem placeholder?
is there anyway to create a custom placeholder using the plugin skript
This is probably a better suited question for the Skript team
can you help me ??
Hi, is pAPI ready for the new minecraft version? π
try and see
should do, it's mainly expansions that can break occasionally with new releases
with?
Hello! I try to use the Progress (progress_bar) placeholder, but I've got problems with it.
My scoreboard line (and my placeholder in it):
- " &e[%progress_bar_3_c:&cβ _p:&cβ _r:&7β _l:10_m:10%&e]"
So the maximum is 10 squares right?
But my progress bar only shows that: https://pasteboard.co/yhKGOdQaHmxT.png
(Sorry but I don't have permission to send images, so I've sent a link)
If you try /papi parse me &e[%progress_bar_3_c:&cβ _p:&cβ _r:&7β _l:10_m:10%&e] does it show correctly?
That's what I'm thinking as well
Hello everyone, I have a problem. I have custom weapons on my server, and I want to give the mob an effect when it's hit. I've been trying to figure out which placeholder to use for a long time.
Im having an issue related to the placeholderAPI, it seems to load fine, but in game any of my placeholders are loaded, I need to use /papi reload to actually load all the placeholders in game
someone know how to fix it?
same thing in /papi parse me (placeholder)
it only works if i reload the plugin
Does anybody know of a placeholder API that I can use for my server that actually works with deaths and kills because all of the placeholder APIs I use don't really work they show up on my scoreboard but when I just decide to kill myself in game they don't respond can anybody please help me I very much appreciate it
And I know I'm not supposed to be talking about plugins but if anybody can suggest me a plugin for that too let me know
I've tried all of the ones I know of on the Internet and the ones with APIs and not sort of not worked or if they did they just clogged my console
If anybody knows of anything that can help me please ping me thanks
I'm having an issue with PlaceholderAPI & Multiverse. This is the error it's giving me:
[PlaceholderAPI] Failed to load expansion class MultiverseExpansion (Is a dependency missing?)
what version of multiverse are u using
if they placeholder is displaying fine, it will be up to the scoreboard plugin to refresh the placeholder accordingly
you can check that the raw value is updating in /papi parse me %placeholder%
My tab plugin is the same thing I used the scoreboard I don't use another scoreboard plugin so do I do the same thing or no
I'm sorry for doing that but I always do that without directly pinging them
Use statistics kills and death placeholder
ok t hx
It just sent me back to the same website I was at previously but I found another website it's perfect it fixed my entire situation
If anyone of you guys are looking for a deaths or a kills plug in with working API look for plugin called player stats
And the plug in before I had this one kept clogging my console I don't know if that's done it to you guys but it definitely fixed that issue
click here if you want the plugin I used to fix many issues I had
https://builtbybit.com/resources/player-stats-pvp-stats-placeholderapi.51159/
Website? They arenβt supposed to send you to any website theyβre just visual placeholders
They send me to multiple websites because I'm trying to find either a working placeholder API for what I'm trying to do with it in my scoreboard or find a plugin with an actual working placeholder API already in it and working which I found
The only reason why I put that website in this channel is in case anybody's trying to look for the same thing that they're having trouble with trying to look for a placeholder API for kills and deaths if anybody is having issues with that I just wanna be generous and give them a link to a free plugin that makes it a hell lot easier than the one I was going through I'm just trying to help everybody else out if I find something else
You donβt need a plugin or anything like that to get kills and death visible on scoreboard
.. this is the easiest way
I know you don't but I've been trying to find a working API for a long time and I couldn't find one but I found a plug in that actually made that possible
Why a plugin when thereβs statistics
I'm not trying to use the command I'm trying to put it on the scoreboard and all of the APIs I ran into doesn't work or they're out of date the plugin I downloaded has a working API in it and I just downloaded it and it works perfectly fine now
%statistic_deaths%
For deaths
Download Statistics papi
You donβt need any plugin for this
If I would've known that beforehand I wouldn't have downloaded the plugin
Bruh
I'm just gonna try that out just a bit
Now yk
The plug in is perfectly fine I'm gonna test out the API just in case 2
I very much appreciate helping me
Alr
Yw
I'm guessing that API basically tells you how many kills or dash you got in the entire game and you can't even reset it it keeps track of everything
Like even before you had the API installed if you would kill somebody you can still track it
You would still count it even though it wasn't installed back then that was nice
You can reset it, the stats folder in the world folder is where MC stores statistics by UUID iirc π€ You'd have to match the player to their UUID, but it's where the expansion pulls the data from. There's lots of stats kept track of so careful if you do something like that π https://minecraft.wiki/w/Statistics
I appreciate that for the know how to reset it but I'm not planning on doing that anytime soon I wanna keep it original as possible I just didn't know about that API till now
I very much appreciate for both of you helping me out I very much appreciate it thank you
Of course π
I should've double checked, it's the stats folder. I updated my reply but to make sure you saw π
does checkitem have support for item models
no it does not
click_commands:
- '[player] give %player_name% diamond 1'
requirement: has_enough_credits
requirements:
has_enough_credits:
type: '>='
input: '%skycloud_balance_credits_raw%'
output: 1000
deny_commands:
- '[message] &cYou donβt have enough credits!'```
I'm trying to make it so when I have above 1000 credits, it will give me 1 diamond and when i have below 1000 it'll send me a message saying i dont have enough
am I doing anything wrong here?
click_commands:
- '[player] give %player_name% diamond 1'
click_requiremen:
requirements:
has_enough_credits:
type: '>='
input: '%skycloud_balance_credits_raw%'
output: 1000
deny_commands:
- '[message] &cYou donβ't have enough credits!'
Thank you, works now.
menu_title: '&8{player}''s Stats'
register_command: true
size: 45
open_command:
- stats
args:
- "player"
args_usage_message: "&cIncorrect Usage! Use: /stats <player>"
items:
test:
display_name: "&c%parseother_{player}_{player_armor_chestplate_durability}%"
material: lime_dye
slot: 9
The parseother placeholder is not working.. I have downloaded both of them from ecloud and reloaded too
whats wrong? Im trying to make a /stats player menu
anyone...
try {{player}}
It does not work...
%parseother_{{player}}_{player_gamemode}%
It works when I use
/papi parse me
and put playername instead of {player}
but does not work in gui..
ah, right, are you on the latest DeluxeMenus version? if yes, there a new setting you have to add to your menu
2sec
parse_placeholders_after_arguments: true
1.14.1 version
yeah you need the new setting then
Should I add it before the line args?
sure
Let me test
Oh my god bro
It works
I was struggling with it from the past 2 days, thank you very much
?
you're trying to use the Reparser expansion though it requires Java 23 while you're on 21
if you don't want to updtae your java version, you can remove it from your /plugins/PlaceholderAPI/expansions/ folder
from what I can see, it does something that you can also achieve with the Utils expansion by using %utils_parse:#_<placeholder>%, # being the amount of times you want to reparse the placeholder, for example: %utils_parse:2_luckperms_prefix%
if your LuckPerms prefix contains a placeholder like %img_owner%, this would return its output and not just the img placeholder unparsed
Heyaaa Blitz ^_^
could you check this out when you're available ? π
Oh. I'm so sorry. I guess I never pushed the changes. This one should fix it.
dw about it haha
thanks again for this β€οΈ
This will be a powerful tool for admins
I don't remember if I tested this or not. Please let me know how it goes.
hey is there a placeholder to get the potioneffect lvl or else check if the player has the potioneffect + lvl
cant seem to find it in the papi list but im sure im not the only one that wanted to use a placeholder for that
There is one for checking if the player has o potion effect. Can't find one that checks the level as well. %player_has_potioneffect_<effect>%
Please open a ticket here: https://github.com/PlaceholderAPI/Player-Expansion/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen. I'll try to add this some time
thanks β€οΈ
Okey thanks
What about end and nether, %world_players_world_nether% and %world_players_world_the_end% don't want to work, however %world_players_world% works tho, why?
https://imgur.com/a/plzTABT /mv list
"&f%parseother_unsafe_{{player}}_{luckperms_prefix}%"
Should I put that in the parsd utils? And change the number to 4?
I'm trying to get another player's prefix %player% tells me the player's name (command arg)
And %luckperms_prefix% returns %img_ID%
I don't know how to do it, I would appreciate some help.
try: %world_players_*world_nether*%
Since the world name has underscores, the placeholder needs to know where the world name starts and ends. You can use * for that.
Trying to use the CheckItem expansion to display the name of an internal PublicBukketValues value. This used to work in the past but hasn't for a long time (since presumably somewhere in 1.21)
Does anyone know what might be up?
/papi parse me %checkitem_getinfo:mainhand_nbtstrings:PublicBukkitValues..executableitems:ei-id=ss_2025_strange_sharpening_kit%
Looking into it, this has apparently been an issue with CheckItem since last year.
idk what papi is so im here
A couple weeks ago I've pushed an update to the CheckItem expansion. Have you upgraded to that?
I have, yes.
Can you execute /papi dump and send the generated link here?
?
Thank you, it works!!
It doesn't work for me
My God, I don't understand anything, it works.
Anyone help, can i get maven for papi ?
Why does %parseother_{{player}}_{luckperms_prefix}% return luckperms_prefix?
I own a survival server and I am using placeholder statistic_player_kills but I think this placeholder also counts the killing the mob. Does anyone know other placeholder which only counts pvp kills??
Have you downloaded the luckperms expansion? /papi ecloud download luckperms then /papi reload
There might be several, I dont know, but if you like the concept of pvponedoteigth plugin I can add that to it.
also i had a doubts whats the difference between %statistic_hours_played% and %statistic_time_played:hours% ??
first one is your total playtime in hours
second is the hours part of the %statistic_time_played% placeholder
ooh i see thanks
How can I get playtime from all servers?
And yes Iβm using proxy for all servers
you'd need a playtime plugin that, works across servers
The thing is that I tried with MariaDB but it never worked it just showed the placeholder %% and it never gave me the playtimeβ¦.
Currently Iβm using plan plugin for this with JavaScript but I donβt think if this is a good method tho
MariaDB is a database service, not a Spigot plugin
a database would be required to store the data yeah, but you'd need a plugin that supports that
of that Plan plugin doesn't synchronize data across servers, then you'll need to find another one
I know mariadb is a database service thatβs why I mentioned, I need the database so that all servers are synchronized. What I meant is that Plan plugin, has the playtime built-in and with the help of JavaScript it can be done, however I found a playtime fork, https://github.com/852DuartePls/PlayTime
Iβm use this instead of the js I was using
βvar duration = parseInt("%plan_player_time_total_raw%");
var seconds = Math.floor(duration / 1000);
var minutes = Math.floor(seconds / 60);
var hours = Math.floor(minutes / 60);
var days = Math.floor(hours / 24);
hours = hours % 24;
minutes = minutes % 60;
seconds = seconds % 60;
var result = "";
if (days > 0) {
result += days + "d ";
}
if (hours > 0) {
result += hours + "h ";
}
if (minutes > 0) {
result += minutes + "m";
}
result = result.trim();
if (result === "") {
result = "0m";
}
result;β
and yes this works perfectly ^ however it might have some performance issues
%formatter_number_time_{plan_...}%
Iβm switch to something like https://github.com/852DuartePls/PlayTime
Yess
Does anyone have an example of checkitem with item components? Migrating from the old nbt format to the components and i dont get it at all lmao
Hey, Iβm having an issue with PlaceholderAPI (v2.11.6) on Minecraft 1.21.6 (Java 21):
The Server expansion is installed and shows up in /papi list, but none of its placeholders are working β for example:
/papi parse me %statistic_kill_entity_zombie%
Just returns the raw %statistic_kill_entity_zombie%, no value.
Other placeholders from Player like %player_name% work fine.
What Iβve already tried:
- /papi ecloud download Server and /papi reload
- Restarted the server (not /reload)
- Killed mobs, mined blocks to ensure data exists
- Confirmed expansion is listed and active
%statistic_kill_entity:zombie%
/papi parse me %statistic_kill_entity:zombie%
still the "reply" is:
%statistic_kill_entity:zombie%
:/
run /papi dump and send it here please
before statistics you should put the plugin name?
Generated: July 4, 2025, 10:24:57β―PM UTC
PlaceholderAPI: 2.11.6
Expansions Registered:
animatedscoreboard [Author: JasperJH, Version: 0.0.1]
leni_economy [Author: KingLeni, Version: 1.0]
player [Author: clip, Version: 2.0.8]
server [Author: HelpChat, Version: 2.7.3]
Expansions Directory:
Expansion-server.jar
Expansion-player.jar
Server Info: 1.21.6-R0.1-SNAPSHOT/4513-Spigot-d5ca3f8-596f581 (MC: 1.21.6)
Java Version: 21.0.7
Plugin Info:
AnimatedScoreboard [Authors: [JasperJH], Version: 0.3.7]
Leni_Admin [Authors: [], Version: 1.0-SNAPSHOT]
Leni_Auction [Authors: [], Version: 1.0-SNAPSHOT]
Leni_Economy [Authors: [], Version: 1.0-SNAPSHOT]
Leni_JoinMessage [Authors: [], Version: 1.0-SNAPSHOT]
LuckPerms [Authors: [Luck], Version: 5.5.9]
PlaceholderAPI [Authors: [HelpChat], Version: 2.11.6]
TAB [Authors: [NEZNAMY], Version: 5.2.4]
Vault [Authors: [cereal, Sleaker, mung3r], Version: 1.7.3-b131]
VaultChatFormatter [Authors: [Luck], Version: 1.1-SNAPSHOT]
ohhh thxx
hi what happened to the placeholderapi for Skript?
I'm doing /papi ecloud download Skript and it's not recognised anymore
despite it being there on the wiki
ΒΏ?
Unverified expansions you need to download and place the jar in your expansions folder manually
Third day asking for help
aside from using %math% PAPI, any other option to calculate to reduce loading times? We have a GUI and wanted to calculate everything when opening the GUI
Weird, Im using
Utils Parseother, Should I parse placeholder instead?:
%utils_parseother:[<trigger.name>]_{math_{score_variables_DamageAmount}/{score_variables_BossHealth}*100}%
[04:51:42 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0/0*100%
[04:51:42 WARN]: [PlaceholderAPI] [math] Cause: '0/0*100' is not a valid Math expression.```
I realized, I am using it wrong. However I do be lost
your BossHealth placeholder returned 0, so you're dividing by 0
which throws an error
I see
I found a few errors because of this. ty
So I did all that work for it to count clicks on the mob rather than the actual damage amount
rip
https://imgur.com/a/zD5N8Wz
server version: 1.21.7
nice image
yeah the bug is that some placeholders are not working on 1.21.7 server but i don't know why
When using papi Parse it gives me this error https://mclo.gs/z2xo1Gz but when using it in a menu it only returns the placeholder without %x% for example luckperms_prefix
you need to surround the player name in {}
Returns the placeholder without %
/papi parse me %luckperms_prefix%
what does that return?
if it returns %luckperms_prefix%, then you may have forgotten to download the LuckPerms expansion, in which case you'll need to run the following commands:
/papi ecloud download LuckPerms
/papi reload
Returns %img_founder%
/papi ecloud download Utils
/papi reload
%utils_parseother:[<player>]_utils_parse:2_{luckperms_prefix}]
%utils_parseother:[ImJedss]_utils_parse:2_{luckperms_prefix}%
Returns %%luckperms_prefix%%
I can't download any expansions. Can anyone help me out?
[00:04:33 INFO]: Failed to download expansion: java.net.ConnectException: Connection timed out: connect
[00:04:33 ERROR]: [PlaceholderAPI] Failed to download Absorption:me.clip.placeholderapi.expansion.cloud.CloudExpansion$Version@78434992
java.util.concurrent.CompletionException: java.net.ConnectException: Connection timed out: connect
at PlaceholderAPI-2.11.7-DEV-212.jar/me.clip.placeholderapi.expansion.manager.CloudExpansionManager.lambda$downloadExpansion$5(CloudExpansionManager.java:258) ~[PlaceholderAPI-2.11.7-DEV-212.jar:?]
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.net.ConnectException: Connection timed out: connect
at java.base/sun.nio.ch.Net.connect0(Native Method) ~[?:?]
at java.base/sun.nio.ch.Net.connect(Net.java:589) ~[?:?]
at java.base/sun.nio.ch.Net.connect(Net.java:578) ~[?:?]
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583) ~[?:?]
at java.base/java.net.Socket.connect(Socket.java:751) ~[?:?]
at java.base/java.net.Socket.connect(Socket.java:686) ~[?:?]
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183) ~[?:?]
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:531) ~[?:?]
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:636) ~[?:?]
at java.base/sun.net.www.http.HttpClient.<init>(HttpClient.java:280) ~[?:?]
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:386) ~[?:?]
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:408) ~[?:?]
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1319) ~[?:?]
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1252) ~[?:?]
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1138) ~[?:?]
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1067) ~[?:?]
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1690) ~[?:?]
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1614) ~[?:?]
at java.base/java.net.URL.openStream(URL.java:1325) ~[?:?]
at PlaceholderAPI-2.11.7-DEV-212.jar/me.clip.placeholderapi.expansion.manager.CloudExpansionManager.lambda$downloadExpansion$5(CloudExpansionManager.java:255) ~[PlaceholderAPI-2.11.7-DEV-212.jar:?]
... 4 more```
I keep getting this unable to connect error.
I never thought placeholder would fail me
papi supporting now 1.21.7??
Yes
Hi! i have papi and bungee expansion the problem is bungee is showing number of players ( %bungee_total%) on HUB server but on SMP server (connected to the same VELOCITY proxy) it's not showing number of players, even when i use %bungee_smp% it shows only the placeholder, not the number. how to fix it?
even /papi parse doesn't help
@oblique shuttle see this 
/papi ecloud download Bungee
/papi reload
on the SMP server
try /papi parse me %utils_parseother:[ImJedss]_utils_parse:2_\{luckperms_prefix\}%
I tried it it doesn't help
it still shows %bungee_total%?
send the link you get from /papi dump
Okay give me a while, eating breakfast rn hahah
papi dump shows nothing
like i execute command and then nothing happens
btw bungee expansion is in expansions folder..
@junior musk can i ping you or not? because if you don't wish then i wont = D
bungee isn't showing there
yea but it is in the folder
sure, I don't mind
okay
send your logs after a /papi reload
okay
it shows only this..
[12:33:59 INFO]: Po_Prostu_Denis issued server command: /papi reload
[12:33:59 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[12:33:59 INFO]: [PlaceholderAPI] Fetching available expansion information..
can this be because papi is not updated?
is there nothing else after?
shouldn't be, what's your PAPI version?
it's the latest
wait.. i'll try to restart the server i suspect that it could crashed, but i'm not sure
so PAPI isn't up to date but it's the latest version? π€¨
like latest version on spigotmc is 2.11.6
i have 2.11.6
so i think it's up to date
ah yeah
yeah
btw how can i fix if i stop server and it doesn't stop, just hangs at this moment:
[12:36:14 INFO]: [org.eclipse.jetty.server.handler.ContextHandler] Stopped o.e.j.s.ServletContextHandler@3dcb0e10{/,null,STOPPED}
[12:36:14 INFO]: [ChatManager] Disabling ChatManager v3.7.7
[12:36:14 INFO]: [PlaceholderAPI] Unregistered placeholder expansion chatmanager
[12:36:14 INFO]: [PlaceholderAPI] Reason: required plugin ChatManager was disabled.
[12:36:14 INFO]: [TAB] Disabling TAB v5.2.1
[12:36:14 INFO]: [TAB] Disabled in 1ms
[12:36:14 INFO]: [MarriageMaster] Disabling MarriageMaster v2.7.11
[12:36:14 INFO]: [MarriageMaster] PlaceholderAPI hook was successfully unregistered!
[12:36:14 INFO]: [MarriageMaster] Cleaning database cache.
[12:36:14 INFO]: [MarriageMaster] Database cache cleaned.
[12:36:14 INFO]: [at.pcgamingfreaks.MarriageMasterStandalone.libs.com.zaxxer.hikari.HikariDataSource] MarriageMaster-Connection-Pool - Shutdown initiated...
[12:36:14 INFO]: [at.pcgamingfreaks.MarriageMasterStandalone.libs.com.zaxxer.hikari.HikariDataSource] MarriageMaster-Connection-Pool - Shutdown completed.
[12:36:14 WARN]: [MarriageMaster] The updater could not find any files for the project id 74734
[12:36:15 INFO]: [MarriageMaster] Marriage Master has been disabled. π¦
[12:36:15 INFO]: [Skungee] Disabling Skungee v2.0.0-BETA-5
[12:36:15 INFO]: [RedisEconomy] Disabling RedisEconomy v4.3.28
[12:36:16 INFO]: [RedisEconomy] RedisEconomy disabled successfully!
[12:36:16 INFO]: [LibertyBans] Disabling LibertyBans v1.1.0
[12:36:16 INFO]: [space.arim.libertybans.core.AbstractBaseFoundation] Conducting stop phase...
[12:37:01 WARN]: [spark] Timed out waiting for world statistics
because i need to restart whole script
to restart the server
and it just spams spark messages
like i've messed up something i think but it's not normal that the server even can't stop
π€·
it works, after server restart but this is strange
could you help me with this on the general-plugins channel, or you can't? because i have nowhere to ask to be honest
about server crashing/restarting/stop etc. here is my logs if you can help me with it:
https://mclo.gs/QyDmVmE
I have no idea
oh okay
Equal
I have a question. Does /papi parse me %img_founder% parse?
Hello!, is PAPI compatible with the 1.21.7 Minecraft VersiΓ³n?
Oh, I ask because I get an error everytime I launch the server and the plugin doesn't work, does it need something else in addition to the plugin?
@idle coral
@mint fable ban
@glad glen
lmaoooo
So?
Send the error please
I am not sure. I don't know how Utils expansion work. Maybe tanguygab can help once he wakes up
Can't send it, too much text, discord doesn't let me :c
Use a paste bin
I'll keep waiting, I've been with this for 3 days now.
Try /papi parse --null %utils_parseother:[{player_name}]_{luckperms_prefix}%
%%img_founder%%
That's what comes back to me, my god I don't understand
%img_founder% is a TAB only prefix
You're LuckPerms prefix should look like prefix.weight.:founder:
so the LP prefix shouldnt be prefix.weight.%img_founder%
My prefix is %img_founder% which is an itemsadder image but it returns me the value with double %
Why are you using parseother in the first place?
If you want to just get the players prefix. It would be %luckperms_prefix%, You dont need to parse the player and then the prefix
Why I want to get another player's prefix I guess
Do /papi ecloud download ParseOther
and then /papi reload
then try
%parseother_{player_name}_{luckperms_prefix}%
@torpid vortex /papi parse me %utils_parseother:[ImJedss]_utils_parse:2_\luckperms_prefix\%
This one worked
/papi parse me %parseother_unsafe_{player_name}_{luckperms_prefix}%
This also works
Within the [] which contain the player name you have the specify the players name. You cannot use the %player_name% within the name brackets. However the second one, you can
@mint fable
Screw you barry, Im just tryna help
Try
I modified it from the earlier version. It should just show the prefix
Yes that did work for me
Now you have a working version. Sorry it took so long for me to help you out. Just getting back into PAPI and MC Development
This didn't work for me when using it in a deluxe menu.
yes, because it will display the user their luckperms prefix and not the player selected
May I see your DeluxeMenu config?
Work %utils_parseother:[{player}]_utils_parse:2_\luckperms_prefix\%
Ah alright. Then it should be fixed for you then right?
Yes, thank you very much. I've been waiting for this help for days.