#placeholder-api

1 messages Β· Page 55 of 1

lyric hollow
#

help

#

how can i parse a placeholder that leads to another placeholder

#

i need it to parse twice

#

found what i neeeded

median narwhal
#

how can i remove commas out of a number placeholder so i can use math on it

radiant shell
grave cedar
#

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.```
manic stone
#

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

tender vaporBOT
manic stone
#

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

turbid tide
turbid tide
turbid tide
#

Parse everything that has nothing to do with the player first

turbid tide
#

Also, some expansions such as Vault have placeholders with commas and without

turbid tide
turbid tide
tender vaporBOT
grave cedar
# turbid tide Any chance you can send the startup log (including the part where the error you ...
[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!```
turbid tide
#

This function should only be used by expansion that are built inside plugins.

grave cedar
#

ahhhh

#

ok

torpid vortex
#

Is there a way to get the player's number?

#

That is, to know if Notch was the #1 player to join the server

turbid tide
torpid vortex
spark wigeon
#

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?

fervent heath
#

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!

gentle matrix
#

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

native orbit
#

Hi guys does anyone have anti cheat configuration and anti cheat codes for skyblock server using special items? And better yet

feral rapids
#

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

junior musk
#

which placeholder did you use?

feral rapids
#

2.11.6 via gradle

junior musk
#

not what I asked

feral rapids
#

😭

junior musk
#

?

feral rapids
#

oh sorry, This is my first time using placeholder, so I am not sure about some things. The placeholder used is %cos_diamond_count%

junior musk
#

%CosPlaceholder_cos_diamond_count%

#

syntax is %identifier_params%

feral rapids
#

Is this a namespace?

#

prefix

junior musk
#

you could say that yeah

feral rapids
#

Oh it works thanks

turbid tide
#

cc: @sullen bluff @sage gorge @real parrot @umbral breach @warped mason this

normal tartan
#

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?

turbid tide
normal tartan
#

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%

normal tartan
#

any idea what todo to get this to work?

turbid tide
#

what tab plugin do you use?

normal tartan
#

making a custom one

#

so using it like this

ejoin.getPlayer().setPlayerListName("%deluxetags_tag% " + player.getDisplayName());
warped hamlet
#

does it support paper 1.21.5

normal tartan
#

Mine? no its made in Spigot

warped hamlet
normal tartan
#

yeah pretty sure it does

warped hamlet
#

using ajleaderboards with placeholders, swapped to paper and none of it works now

turbid tide
turbid tide
umbral breach
warped hamlet
#

or its just left as the %name% and no statistics

turbid tide
warped hamlet
#

that was just an example

#

can i send images here?

tender vaporBOT
warped hamlet
#

ok

turbid tide
#

Ok. Do the placeholders work when testing them with /papi parse?

warped hamlet
turbid tide
#

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

normal tartan
tender vaporBOT
normal tartan
#

i didnt mean to ping, the @ is usually off for my mentions

sturdy fractal
#

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?

sullen bluff
normal tartan
autumn glade
#

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

turbid tide
turbid tide
warped mason
tender vaporBOT
warped mason
#

oops, didnt mean to break that rule

normal tartan
normal tartan
#

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?

wind notch
normal tartan
#

doesnt seem to change the tag that i have applied either, still flickers the default one i had when first relogging

wind notch
#

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.

turbid tide
hybrid folio
#

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.

hybrid folio
normal tartan
# turbid tide I would need to see the code to help you debug. Please share it

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);
drowsy moon
#

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

turbid tide
turbid tide
#

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

pure wind
#

is there a placeholder that would show which side player is facing

normal tartan
drowsy moon
turbid tide
turbid tide
turbid tide
# pure wind is there a placeholder that would show which side player is facing

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.

frosty reef
#

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

web.yourdomain.com

or specific rewards if you joined from a voting site

quick spruce
#

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

turbid tide
tender vaporBOT
turbid tide
#

@quick spruce this

quick spruce
#

ty

frosty reef
turbid tide
normal tartan
cursive pendant
#

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

junior musk
#

you can't

cursive pendant
#

fuck off

#

😦

junior musk
#

uh

#

thanks I guess

cursive pendant
#

sorry man

#

im just annoyed

#

thats seems kind of dumb tho no?

junior musk
#

agreed

#

I was sure it was possible before, I guess not

cursive pendant
#

im cooked

cursive pendant
#

idk if thats gonna cause me more issues

junior musk
#

better to make a proper expansion then

neon ledge
#

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'

turbid tide
#

You would need to make your own

neon ledge
#

(

calm mortar
#

Does anyone know a scoreboard plugin that has papiproxybrige implemented for placehodlers from velocity and other servers connected within the proxy?

little terrace
#

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

pure wind
#

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)

turbid tide
#

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.

little terrace
turbid tide
#

/papi ecloud download world
/papi reload

little terrace
#

omg its working ily

#

thanks bro

#

πŸ™

languid bay
#

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.

junior musk
#

Use formatter instead
%formatter_text_replace_.__{message}%

#

had the same issue, I think there may be another way but eh, this is better

sterile pilot
#

Can you give me the link for the deplaceholerapi dependency? The link I have doesn't reach it.

Multiple markers at this line

polar forum
#

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

vast echo
vivid sparrow
flint skiff
#

How do I reset statistics?

warm topaz
#

delete the playerdata inside of the world folder

spark cypress
#

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

turbid tide
spark cypress
sullen tendon
#

fancy hologram and placeholder api plugin

#

how can i pair

#

@glad glen

tender vaporBOT
supple crane
#

how can i use papi on velocity?

#

anyone?

#

this can't be too difficult

turbid tide
#

It wasn't built for proxy servers

obtuse jetty
#

where dev builds

spark cypress
#

I am trying to get kills and deaths for my scoreboard but i just cant get it anybody help?πŸ₯Ί

spark cypress
#

@glad glen

tender vaporBOT
half briar
royal notch
turbid flint
#

Yo

drifting narwhal
#

[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

fleet arrow
fleet arrow
#

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?

fleet arrow
#

Nah Barry this isn't working πŸ’€

#

W Barry its working

#

W Bot

#

You are ChatGPT v10

royal notch
radiant shell
#

if you can see there

#

is guild support placeholders?

gilded bough
#

is checkitem updated anymore?

warm topaz
#

pinned messages has an up to date version

oak field
#

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

turbid tide
junior musk
#

seems fine

junior musk
#

you probably want to remove the online. from the permission and only keep group.modis, otherwise it seems fine

gentle prawn
#

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

snow acorn
#

Unfortunately the latest version isnt verified, Im still waiting for the team to have time to do it

tulip brook
#

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?

turbid tide
tulip brook
#

i am parsing to myself

turbid tide
tulip brook
#

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

gentle prawn
#

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

turbid tide
#

In the future, feel free to directly ping me in cases like this where it takes too long to get an answer.

silk totem
turbid tide
alpine notch
#

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.

turbid tide
alpine notch
junior musk
#

is there a reason why you made it external and not included within the plugin?

alpine notch
junior musk
#

amplify what?

dapper ember
half briar
strange pond
#

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}

turbid tide
#
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 %.

strange pond
#

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

turbid tide
tender vaporBOT
strange pond
#

ah sry

tender vaporBOT
turbid tide
turbid tide
restive nova
#

β™₯

strange pond
#

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)

turbid tide
strange pond
#

it return 20

#

the desired value

strange pond
#

im trying an another way

#

but my

var loader = papi.class.classLoader

dont work.
papi.class is null

strange pond
#

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

half briar
strange pond
#

yes

half briar
# strange pond 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

strange pond
#

i removed the .static

#

is not working with it for me

#

it working man thx i so stupid to not had think about this

reef turret
#

don't use var

knotty badge
#

me.clip.placeholderapi.PlaceholderHook β€” 116MB. why is it using so much memory ?

turbid tide
#

It all comes with PlaceholderAPI

final wyvern
#

hey, is it possible to parse papi placeholders using javascript or python somehow

turbid tide
#

I'm sure there's python interpreters as well

#

But I don't see why you would do that though

final wyvern
final wyvern
#

sorry

strange pond
#

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

quartz juniper
#

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

tender vaporBOT
quartz juniper
tender vaporBOT
# quartz juniper loads and shows working but still not even the command : /papi parse me %player_...

Hey anto_flex!

If /papi parse me %player_name% returns %player_name%, PlaceholderAPI isn't parsing the placeholder correctly.

Here's a quick checklist:

  1. Is PlaceholderAPI installed correctly? Double-check that the .jar file is in your plugins folder.
  2. Did you install the expansion? Use /papi ecloud download Player and /papi reload.
  3. 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!

strange pond
turbid tide
#

I'd personally suggest making your own Java expansion if you have the knowledge and spare time.

strange pond
#

is parseother_unsafe_ optimized ?

#

it can be used a lot without lag ?

turbid tide
strange pond
#

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

turbid tide
turbid reef
#

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

turbid tide
turbid reef
#

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.

vivid sparrow
#

the placeholder is {bungee_<server id>}, so it can't be just main/farm, it needs to be bungee_main/bungee_farm

turbid tide
turbid reef
#

thanks its works

gilded bough
#

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?

warm topaz
#

what is the issue?

gilded bough
# warm topaz 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

gilded bough
#

It completely breaks my calculator I've built, thats how I caught it

#

I reverted back to b206, all the issues go away

gilded bough
#

If you could take a look I'd appreciate it, I think you are the creator of ChangeOutput if I'm not mistaken?

junior musk
#

can you send the placeholder you're currently using?

#

and what it returns before & after updating to b207?

shrewd owl
#

Can anyone make me a LUA script for Roblox studio that makes a cool GUI coin system thanks for everry who'll make it

gilded bough
junior musk
#

I'll try it out later, can't focus on anything rn

gilded bough
#

All good, sent you all the information I have, please ping me if you have any solutions

lean kernel
#

why whenever i try to do /papi ecloud download Statistic and then /papi reload it isnt installed when i do /pl

gilded bough
cinder orchid
#

Hello Why this placeholder is not working %checkitem_remove_mat:wheat,amt:{math_0:0_{checkitem_amount_mat:wheat}-{zquests_objective_npc-farmer-1}}%

turbid tide
cinder orchid
turbid tide
#

Use a command instead

cinder orchid
#

can you give me an example please

turbid tide
#

minecraft:clear PLAYERNAME wheat %math_0:0_{checkitem_amount_mat:wheat}-{zquests_objective_npc-farmer-1}%

cinder orchid
#

it's a command ?

turbid tide
cinder orchid
#

i can't place a screen here

#

it d'ont work

tender vaporBOT
cinder orchid
muted gulch
#

Is there a placeholder to check a connected players client "brand" (Ex. Vanilla, Forge, Fabric, ETC)?

turbid tide
#

That screenshot is not making things very clear

cinder orchid
cinder orchid
#

16

turbid tide
cinder orchid
#

500 is max item to deposit

turbid tide
cinder orchid
#

Yes

summer crater
#

hello,papi is support 1.21.5?

vivid sparrow
#

Yes, papi usually doesnt need updates, expansions do.

summer crater
#

thanks

tulip brook
#

anyone knows a chatplugin that supports relational placeholders?

strong frost
#

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

turbid tide
#

They come built in with the plugin

strong frost
# turbid tide 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.

turbid tide
#

does it parse the tag properly?

strong frost
#

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.

turbid tide
deft wasp
#

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

gritty phoenix
#

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.```
turbid tide
turbid tide
#

Only operations such as addition, subtraction, etc.

tulip brook
#

anyone knows a chatplugin that supports relational placeholders?

gritty phoenix
tulip brook
#

is there a way to do math with placeholders?

rapid bobcat
#

!paste

#

Nevermind, figured it out haha!

turbid tide
turbid tide
half briar
# gritty phoenix Hello, can someone help me with this : ```[10:42:38 WARN]: [PlaceholderAPI] [ma...

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
rapid bobcat
#

How would I nest a placeholder inside formatter?

%formatter_number_shorten_{math_2*{player_y}}%

#

This doesn't seem to work

turbid tide
deft wasp
#

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%

lofty wadi
#

hello

#

i need help

tender vaporBOT
#

There is no time to wait! Ask your question @lofty wadi!

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

turbid tide
lofty wadi
#

ok ok tnx for helping

#

i founded

jagged snow
#

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}%

naive glade
#

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?

lament solstice
#

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

turbid tide
#

If only the leaderboard changes but not the Statistic placeholder value, then it is most likely an issue with the leaderboard setup.

turbid tide
lament solstice
lament solstice
#

sorry sad_fingerguns

turbid tide
#

If you want to test for yourself, you can use me instead of player name.

ripe ivy
#

how to make the ranks with deluxemenus with requirements of low ranks?

somber marten
#

Having the same issue

cinder schooner
#

%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?

leaden bay
#

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?

sharp bloom
half briar
#

It is a number. πŸ€” Make sure you're using %statistic_player_kills% not statistics, only way I could replicate your error

astral galleon
#

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}%

turbid tide
#

Couldn't find anything for it.

cinder schooner
#

Is there any placeholder that checks the modifier attributes of an item?

blazing jetty
#

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'

cinder schooner
blazing jetty
#

ah I see so there isn't any way to fix this at this time?

warm topaz
#

is this deluxemenus?

blazing jetty
#

Yep this is for deluxemenu.

warm topaz
#

material: 'head-%player_name%'

blazing jetty
#

oh ty

warm topaz
#

custom-skill doesn't exist so u can remove that

blazing jetty
#

okay ty

turbid reef
#

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?

north zodiac
#

Someone can help with leaderboard for kills, because it didn't work. I use %statistic_player_kills%. And the same problem with scoreboard

cinder schooner
severe heart
#

yo

#

how can i see the number of virtuall crates in a holΓΆogram?

#

how do i get it to work

full hollow
#

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..

north zodiac
turbid tide
turbid tide
coarse ice
#

What to do if the plugin is not displayed in /pl, the correct version is installed, everything seems to be fine

shrewd geyser
#

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

coarse ice
#

[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

junior musk
#

you downloaded Text Placeholder API which is a Fabric mod not developed by the HelpChat team

junior musk
#

the Bungee expansion works with Velocity as long as you enable the bungee plugin messaging channel in Velocity's config

shrewd geyser
#

ok but i don't really wanna use bungee's forwarding method but ok i use it

junior musk
#

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
shrewd geyser
#

ohh thanks

unreal echo
#

can any1 help me why placeholder api is not enabling in 1.21.4 😭

#

it's not remaping

sharp jay
#

and dont say "latest"

unreal echo
# sharp jay what placeholderapi version you on?

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 πŸ™

sharp jay
#

whats "remape"?

#

I have no idea what your saying

#

I asked what version of placeholderapi you are on

unreal echo
unreal echo
unreal echo
sharp jay
unreal echo
#

vault , tab

sharp jay
#

The plugins themselves dont work?

unreal echo
tender vaporBOT
sharp jay
#

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'

unreal echo
sharp jay
unreal echo
turbid tide
unreal echo
turbid tide
#

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.

turbid reef
#

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?

turbid tide
dense karma
#

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?

junior musk
#

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

dense karma
#

alr thanks for the detailed explanation

dense karma
#

is there some way to suggest new features here?

#

I would like that the api allows to disable the belowname objective per player.

junior musk
#

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

tender vaporBOT
unreal echo
#

huh

sly obsidian
#

Hello! You can help. To configure. To show up. The players. Was it possible? Press the button. And teleport. To the other north.

rustic swan
#

does PAPI work in version 1.21.6?

sharp jay
rustic swan
#

no not yet

#

if i run into any issues ill let ya know

peak token
timid plover
#

"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

warm topaz
#

try pinned messages. there is an updated version of checkitem there

timid plover
austere hawk
#

Is there an expansion that adds a placeholder for player count?

junior musk
#

/papi ecloud download Server
/papi reload
%server_online%

turbid tide
#

And if you want to see player counts on other servers in the network:

/papi ecloud download Bungee
/papi reload
%bungee_SERVERNAME%

turbid tide
austere hawk
#

Thanks

rustic swan
peak token
#

ah rip

#

has anyone else tested it out on 1.21.6?

warm topaz
#

papi itself should work, but its usually some expansions that may not work

proper wadi
#

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?

turbid tide
proper wadi
turbid tide
proper wadi
proper wadi
#

Does that help?

#

I'm using placeholderAPI

turbid tide
proper wadi
#

thats what i am using

proper wadi
#

Is there a suggestions channel or something to ask for it?

turbid tide
gloomy marsh
#

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

turbid tide
gloomy marsh
#

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%

turbid tide
#

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

gloomy marsh
#

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

turbid tide
gloomy marsh
#

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"
]
},

turbid tide
gloomy marsh
#

superiorineblock

turbid tide
gloomy marsh
#

yeah

#

but

#

papi cmdparse

#

dont support

#

%player_name%

#

but it works wiuth germanantonio

#

(my nick)

turbid tide
#

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?

gloomy marsh
#

of oneblock block

#

its different coords for each players

turbid tide
#

Yes. But if your plugin already supports PlaceholderAPI placeholders, why are you executing the command using the papi command?

gloomy marsh
#

i try without cmdparse :c

#

but dont works

turbid tide
#

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

gloomy marsh
#

Superior Skyblock Oneblock addon

turbid tide
#

Or any other page

gloomy marsh
turbid tide
#
    {
      "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

gloomy marsh
#

[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

turbid tide
#

%math_0:down_{superior_island_Y}-1%

#

try this

turbid tide
gloomy marsh
#

[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

turbid tide
turbid tide
turbid tide
#

See if that way it works?

gloomy marsh
#

yeah it works

#

with my name

#

but with {player}

turbid tide
# gloomy marsh but with {player}

So executing this in chat works?

/papi cmdparse GeRmAnAnToNiO minecraft:setblock %superior_island_x% %superior_island_y% %superior_island_z% minecraft:snow replace

simple compass
#

Does Placeholder API work on 1.21.6?

coarse fulcrum
#

why placeholdarapi not work in my server

timid plover
coarse fulcrum
turbid tide
jagged tangle
#
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

junior musk
#

/papi parse me %mask_player_heart_color%test

#

what does this return?

turbid tide
turbid tide
junior musk
#

didn't notice

junior musk
jagged tangle
junior musk
coarse fulcrum
#

does placeholderapi work in 1.19.4 server??

stone edge
#

afaik, should work, if it doesn't. share your error here so someone can help you

steady kernel
#

hello

#

can i remove yahoo mail with phone number

#

i cant recover yahoo mail

cinder schooner
#

can i get the attributes modifiers with the checkitem placeholder?

shrewd geyser
#

is there anyway to create a custom placeholder using the plugin skript

turbid tide
coarse fulcrum
tender vaporBOT
bitter heath
#

Hi, is pAPI ready for the new minecraft version? πŸ™‚

warm topaz
#

try and see

#

should do, it's mainly expansions that can break occasionally with new releases

turbid tide
velvet root
#

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?

#

(Sorry but I don't have permission to send images, so I've sent a link)

turbid tide
velvet root
#

Oh, yes it is

#

So maybe I have a character limit in the tab plugin right?

turbid tide
#

That's what I'm thinking as well

velvet root
#

Thank you for your help!

#

Have a nice day ❀️

raw lily
#

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.

wary citrus
#

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

proven sierra
#

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

simple compass
#

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?)

warm topaz
#

what version of multiverse are u using

warm topaz
proven sierra
proven sierra
# tender vapor

I'm sorry for doing that but I always do that without directly pinging them

young sorrel
proven sierra
#

ok t hx

proven sierra
#

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

young sorrel
proven sierra
#

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

young sorrel
young sorrel
proven sierra
#

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

young sorrel
proven sierra
# young sorrel 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

young sorrel
#

%statistic_player_kills%

#

For kills

proven sierra
#

Is that API work

#

And what about for desths

#

deaths*

young sorrel
#

%statistic_deaths%

#

For deaths

#

Download Statistics papi

#

You don’t need any plugin for this

proven sierra
#

If I would've known that beforehand I wouldn't have downloaded the plugin

proven sierra
#

I'm just gonna try that out just a bit

young sorrel
#

Now yk

proven sierra
#

The plug in is perfectly fine I'm gonna test out the API just in case 2

#

I very much appreciate helping me

young sorrel
#

Alr

young sorrel
proven sierra
# young sorrel 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

half briar
proven sierra
#

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

proven sierra
half briar
#

Of course 😁

half briar
fallen niche
#

does checkitem have support for item models

turbid tide
placid smelt
#
    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?

junior musk
#
    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!'
placid smelt
junior musk
#

good catch

#

ah

#

welp

prime zodiac
#

heeyyy

#

what to do again if i want my deluxemenus to be updating

torpid vortex
#

Expansion collapses

mossy hemlock
#
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

mossy hemlock
#

anyone...

junior musk
#

try {{player}}

mossy hemlock
#

%parseother_{{player}}_{player_gamemode}%

#

It works when I use
/papi parse me
and put playername instead of {player}

#

but does not work in gui..

junior musk
#

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

junior musk
#

yeah you need the new setting then

mossy hemlock
junior musk
#

sure

mossy hemlock
#

Let me test

mossy hemlock
#

It works

#

I was struggling with it from the past 2 days, thank you very much

torpid vortex
junior musk
#

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

floral crane
#

Heyaaa Blitz ^_^
could you check this out when you're available ? πŸ™

turbid tide
floral crane
#

dw about it haha
thanks again for this ❀️
This will be a powerful tool for admins

turbid tide
#

I don't remember if I tested this or not. Please let me know how it goes.

viral isle
#

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

turbid tide
viral isle
#

yes i saw that but i want to also check for the lvl πŸ˜…

#

or get the lvl

turbid tide
viral isle
#

thanks ❀️

spark stag
#

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

torpid vortex
#

Should I put that in the parsd utils? And change the number to 4?

torpid vortex
#

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.

turbid tide
#

Since the world name has underscores, the placeholder needs to know where the world name starts and ends. You can use * for that.

weak wasp
#

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%

https://pastebin.com/X41dhG44

weak wasp
#

Looking into it, this has apparently been an issue with CheckItem since last year.

clear vapor
#

idk what papi is so im here

turbid tide
weak wasp
#

I have, yes.

turbid tide
tender vaporBOT
spark stag
tender vaporBOT
torpid vortex
torpid vortex
torpid vortex
#

My God, I don't understand anything, it works.

fossil wasp
#

Anyone help, can i get maven for papi ?

torpid vortex
#

Why does %parseother_{{player}}_{luckperms_prefix}% return luckperms_prefix?

glad pier
#

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??

turbid tide
minor gorge
glad pier
#

also i had a doubts whats the difference between %statistic_hours_played% and %statistic_time_played:hours% ??

junior musk
#

first one is your total playtime in hours

#

second is the hours part of the %statistic_time_played% placeholder

glad pier
#

ooh i see thanks

onyx cairn
#

And yes I’m using proxy for all servers

junior musk
#

you'd need a playtime plugin that, works across servers

onyx cairn
#

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

junior musk
#

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

onyx cairn
#

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

junior musk
#

%formatter_number_time_{plan_...}%

onyx cairn
tender vaporBOT
soft wagon
#

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

pliant goblet
#

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
pliant goblet
#

/papi parse me %statistic_kill_entity:zombie%

still the "reply" is:
%statistic_kill_entity:zombie%

:/

warm topaz
#

run /papi dump and send it here please

minor gorge
pliant goblet
# warm topaz run /papi dump and send it here please

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]

warm topaz
#

statistic is not registered

#

redownload it and reload the plugin after

pliant goblet
#

ohhh thxx

fading karma
#

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

torpid vortex
half briar
torpid vortex
#

Third day asking for help

lethal breach
#

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

unborn cradle
#

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

junior musk
#

your BossHealth placeholder returned 0, so you're dividing by 0

#

which throws an error

unborn cradle
#

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

sacred orbit
warm topaz
#

nice image

sacred orbit
warm topaz
#

have you downloaded the expansions?

#

/papi ecloud download server then /papi reload

sacred orbit
#

yes

warm topaz
#

send ur startup log

#

?startuplog

tender vaporBOT
sacred orbit
#

fixed

#

I had to update TAB - Bridge plugin

torpid vortex
#

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

junior musk
#

you need to surround the player name in {}

torpid vortex
junior musk
#

send a screenshot

#

or the log

torpid vortex
junior musk
#

/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

torpid vortex
junior musk
#

/papi ecloud download Utils
/papi reload
%utils_parseother:[<player>]_utils_parse:2_{luckperms_prefix}]

torpid vortex
#

Returns %%luckperms_prefix%%

oblique shuttle
#

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.

torpid vortex
summer crater
#

papi supporting now 1.21.7??

balmy marten
#

Yes

vital plank
#

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

tender vaporBOT
turbid tide
#

@oblique shuttle see this this

junior musk
#

on the SMP server

junior musk
vital plank
junior musk
#

it still shows %bungee_total%?

vital plank
#

Yea

#

Can some plugins block it maybe?

junior musk
#

send the link you get from /papi dump

vital plank
#

Okay give me a while, eating breakfast rn hahah

vital plank
#

like i execute command and then nothing happens

junior musk
#

send a screenshot of /papi list then

#

?imgur

tender vaporBOT
vital plank
#

@junior musk can i ping you or not? because if you don't wish then i wont = D

junior musk
#

bungee isn't showing there

vital plank
#

yea but it is in the folder

vital plank
junior musk
#

send your logs after a /papi reload

vital plank
#

okay

vital plank
# junior musk send your logs after a /papi reload

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?

junior musk
#

is there nothing else after?

vital plank
#

yeah

#

i have version 2.11.6 and server version 1.20.1

junior musk
vital plank
#

it's the latest

#

wait.. i'll try to restart the server i suspect that it could crashed, but i'm not sure

junior musk
#

so PAPI isn't up to date but it's the latest version? 🀨

vital plank
#

like latest version on spigotmc is 2.11.6

#

i have 2.11.6

#

so i think it's up to date

junior musk
#

ah yeah

vital plank
#

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

junior musk
#

🀷

vital plank
#

okay it's starting

#

give me a second and i'll tell you

vital plank
vital plank
# junior musk 🀷

could you help me with this on the general-plugins channel, or you can't? because i have nowhere to ask to be honest

vital plank
#

oh okay

turbid tide
tender vaporBOT
rare dock
#

Hello!, is PAPI compatible with the 1.21.7 Minecraft VersiΓ³n?

rare dock
# sacred orbit Yes

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?

sacred orbit
#

Maybe no

#

I don't remember anymore

torpid vortex
#

@idle coral

tender vaporBOT
torpid vortex
#

@mint fable ban

tender vaporBOT
mint fable
#

@glad glen

torpid vortex
turbid tide
# torpid vortex So?

I am not sure. I don't know how Utils expansion work. Maybe tanguygab can help once he wakes up

rare dock
turbid tide
torpid vortex
unborn cradle
torpid vortex
#

That's what comes back to me, my god I don't understand

unborn cradle
#

You're LuckPerms prefix should look like prefix.weight.:founder:

#

so the LP prefix shouldnt be prefix.weight.%img_founder%

torpid vortex
unborn cradle
#

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

torpid vortex
unborn cradle
unborn cradle
#

This one worked

#

/papi parse me %parseother_unsafe_{player_name}_{luckperms_prefix}%

This also works

unborn cradle
unborn cradle
#

@mint fable

tender vaporBOT
unborn cradle
#

Screw you barry, Im just tryna help

unborn cradle
unborn cradle
torpid vortex
unborn cradle
#

May I see your DeluxeMenu config?

torpid vortex
unborn cradle
torpid vortex