#placeholder-api

150650 messages · Page 124 of 151

junior musk
#

it takes the player's display name, usually it's a combination of your prefix, your name and your suffix, sometimes it's just your name, idk

tulip brook
#

but while parsing the placeholder it returns my basic name

junior musk
#

yeah, it varies

#

what info do you want to retrieve exactly?

tulip brook
#

I just want to be able to modify the player name inside of my plugin, but the placeholder always returns the basic name no matter what

#

i would like to avoid creating a mirror placeholder

junior musk
#

I'd recommend just making your own placeholder

tulip brook
#

that displays a fake name if the player is hidden and the real name if not

tulip brook
#

thanks

manic hawk
#

Help?

tulip brook
#

in the placeholder expansion https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion

@Override
    public String onPlaceholderRequest(Player one, Player two, String identifier) {
        if(one == null || two == null)
            return null; // We require both Players to be online
            
        if(params.equalsIgnoreCase("friend")) {
            if(plugin.areFriends(one, two)) {
                return ChatColor.GREEN + one.getName() + " and " + two.getName() + " are friends!";
            } else {
                return ChatColor.GREEN + one.getName() + " and " + two.getName() + " are not friends!";
            }
        }
        
        return null; // Placeholder is unknown by the Expansion
    }
``` this example doesn't indeed contain the parameter "params" but just "identifier" are they just a typo and are the same or are different?
junior musk
manic hawk
tulip brook
#

i am using TAB but i would like to have it so that my custom placeholder doesn't apply to another player if they are an admin, so if they have bypass permission they see that nametag of x is their actual name instead of the hidden one

junior musk
#

you'll need to make a relational placeholder that either returns the target's nick or their real name if the viewer has a permission

tulip brook
#

i am already implementing relational but in this case i don't know who the viewer is

#

the first or the second?

junior musk
#

well PAPI doesn't really differentiate the 2, so you could either use TAB's API instead to register the placeholder, or you could test with one and if it's wrong switch the players

tulip brook
#
@Override
  public String onPlaceholderRequest(Player player, @NotNull String params) {
      if (!params.equalsIgnoreCase("name")) return null;

      Optional<User> userOptional = userService.get(player.getUniqueId());
      if (userOptional.isEmpty()) return null;

      User user = userOptional.get();
      if (!user.isHidden()) return player.getName();
      return ChatColor.MAGIC + player.getName();
  }

  @Override
  public String onPlaceholderRequest(Player viewer, Player player, String params) {
      if (!params.equalsIgnoreCase("name")) return null;

      Optional<User> userOptional = userService.get(player.getUniqueId());
      if (userOptional.isEmpty()) return player.getName();

      User user = userOptional.get();

      if (user.isHidden() && viewer.hasPermission("playerhide.bypass")) {
          return player.getName();
      }

      return ChatColor.MAGIC + player.getName();
  }

i've got it like this so that i could handle the request between the 2 but it seems like it aint working i still see them with the magic effect if they are hidden even if have the bypass permission

elfin harness
#

hi there,
ever since moving our server, placeholder api keeps complaining that the previously working javascript engine is no longer supported
Java version is the same, and nothing besides the host changed

#

a shortcut to an answer might be "what engine jar do i need" and "where do i put it in the server directory"

earnest wind
#

Hi, I'm trying to create my placeholders through the plugin, but nothing happens when I display them. At the same time, the api registers them. It feels like the api is not requesting a function that changes the text. Here are the screenshots, that's all I changed in my plugin. Please help me, what's wrong?

@Override
    public void onEnable() {
        try {
            if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
                 new PAPI(this).register();
            }}
public class PAPI extends PlaceholderExpansion {

    AdventureDungeon plugin;

    public PAPI(AdventureDungeon plugin) {
        this.plugin = plugin;
    }

    @Override
    public String getAuthor() {
        return "as1";
    }

    @Override
    public String getIdentifier() {
        return "as1";
    }

    @Override
    public String getVersion() {
        return "1.0.0";
    }

    @Override
    public boolean persist() {
        return true; // This is required or else PlaceholderAPI will unregister the Expansion on reload
    }

    @Override
    public String onRequest(OfflinePlayer player, String params) {
        return "Work!";
    }
}
[21:06:57 INFO]: [AdventureDungeon] Enabling AdventureDungeon v1.0-SNAPSHOT
[21:06:57 INFO]: [PlaceholderAPI] Successfully registered internal expansion: as1 [1.0.0]
[21:06:57 INFO]: [DecentHolograms] Enabling DecentHolograms v2.8.5
[21:06:57 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[21:06:58 INFO]: Running delayed init tasks
[21:06:58 INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.7]
[21:06:58 INFO]: [PlaceholderAPI] Successfully registered external expansion: statistic [2.0.1]
[21:06:58 INFO]: 2 placeholder hook(s) registered!
junior musk
junior musk
junior musk
elfin harness
#

still the same: ```
[PlaceholderAPI]: Failed to set ScriptEngine for javascript placeholder: scoreboard

junior musk
elfin harness
#

didnt try quick js

junior musk
#

ah

#

try that then

elfin harness
#

only the plugin

junior musk
#

also, what's your JS expansion version? (/papi info javascript)

elfin harness
#

gimme a minute its chugging with reload

#

cannot attach screenshots smh................

elfin harness
#

status: registered
author: clip
version: 1.5.3

junior musk
#

latest is 2.1.2

elfin harness
# tender vapor

"to avoid spam" wdym lmao its not even you hosting the images, its discord. pathetic

elfin harness
#

i totally forgot about this secondary plugin system that exists next to the bultin one

junior musk
#

yeah, the expansions

earnest wind
elfin harness
junior musk
#

%test% is not a placeholder

elfin harness
#

still cant share screenshots

tender vaporBOT
elfin harness
#

yes i got it u dumb bot, leave me alone

#

automod fun 👍

junior musk
elfin harness
#

ok lets use this dumb url

#

i have these expansions

#

embed fail 👍
yes mods i will continue to be salty about your moderation choices until they make sense for the platform we are being on

earnest wind
junior musk
#

Expansion-Javascript.jar

elfin harness
#

oh its that???

junior musk
#

try to yeet it, then /papi reload and see if the placeholders work

elfin harness
#

i assume /papi reload should do now?

#

holy

#

it did

#

wow that was a dumb issue

#

thanks for ur insight

junior musk
#

👌

tulip brook
junior musk
#

ah okay

#

then I guess just print those things in console to see if their outputs are correct

userOptional.isEmpty()
user.isHidden()
viewer.hasPermission("playerhide.bypass")
austere hawk
#

[19:17:10 WARN]: [PlaceholderAPI] Failed to load external expansion playerpoints. Identifier is already in use.
[19:17:10 WARN]: [PlaceholderAPI] Cannot load expansion playerpoints due to an unknown issue.

#

someone know?

sharp bloom
#

there is no need to use that expansion anymore

#

since u can use the placeholders directly from the plugin itself

austere hawk
#

thx

sharp bloom
#

np :d

tulip brook
torpid fjord
#

is there a placeholder for player ping?

junior musk
#

%player_ping%

tulip brook
junior musk
#

so what was wrong?

tulip brook
#

idk cuz i still havent fixed it lol

junior musk
#

ah XD

#

did you try to debug the things I told you?

tulip brook
#

yep doing it rn

#

how can i test the relational?

#
@Override
public String onPlaceholderRequest(Player player, @NotNull String params) {
    if (player == null) return null;
    if (!params.equalsIgnoreCase("name")) return null;
    pluginLogger.info("Placeholder is structured correctly");

    Optional<User> userOptional = userService.get(player.getUniqueId());
    if (userOptional.isEmpty()) {
        pluginLogger.info("User is not registered in memory");
        return null;
    }

    User user = userOptional.get();
    if (!user.isHidden()) {
        pluginLogger.info("Player is NOT hidden");
        return player.getName();
    }

    pluginLogger.info("Player is hidden");
    return ChatColor.MAGIC + player.getName();
}
#

this is my current placeholder without rleations

#

and its being queried with no problems

#

but i see that the relational one between 2 players is not

#

is there a command to test such as /papi parse

junior musk
#

/papi parserel player1 player2 placeholder

#

for TAB, the first player is the viewer and the second is the target

tulip brook
#
if (!params.equalsIgnoreCase("name_relation")) return null;
#

this should make it such as %playerhide_name_relation%?

junior musk
#

yeah

tulip brook
#

strange its dying there

junior musk
#

if the expansion's identifier is playerhide

tulip brook
#

yep it is

junior musk
#

btw relational placeholders require rel_ in front of the identifier

tulip brook
#

a

junior musk
#

b

#

sorry

#

xD

tulip brook
#

ight ill test some things out xd

sharp bloom
#

is there any placeholder that cuts the first 7 first letters of a word?

#

probably formatter expansion? but idk how to use it tbh :/

junior musk
#

String with substring

#

%string_substring_7_<string>%

sharp bloom
#

oh nice thank u ;d

coral ibex
#
[13:36:51 WARN]: [PlaceholderAPI] Failed to load external expansion playerpoints. Identifier is already in use.
[13:36:51 WARN]: [PlaceholderAPI] Cannot load expansion playerpoints due to an unknown issue.

fix

sharp bloom
#

the plugin itself has the placeholders now

coral ibex
#

Owner of the placehoderapi plugin, can you add the command uninstall placehoderapi so as not to constantly turn off the server?

sullen kelp
#

Hey uhh

#

How can I get a true / false output with the javascript placeholder?

analog warren
analog warren
#

I'm from the phone, I'm sorry)

sullen kelp
#

There is a %javascript_% placeholder

#

And I want to do something like

#

If %world%==Something

#

It should return a true

#

Else false

junior musk
#

%world%==Something

#

that's all you need to do

#

XD

#

well

#

%player_world% and put text in " " but yeah

#

for example "%player_world%"=="world"

#

or BukkitPlayer.getWorld().getName() instead of "%player_world%"

#

both work

left coral
#

Why is griefprevention and playerpoints expansion not found to download?

sharp bloom
left coral
#

Alright thanks, but whats with griefprevention?

#

always worked fine

sharp bloom
left coral
sharp bloom
#

yeah when they get updated they have to be re verified

left coral
#

ah ok good to know

plush dove
#

Is there a placeholder that gets the 4 digit uuid of a player?

#

-1953028026,-856931226,-1240793240,-1598231354

#

something like that

spark goblet
#

haj o/
any help? xd

#
[01:09:59 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{online}-{staffonline}%
[01:09:59 WARN]: [PlaceholderAPI] [math] Cause:       '{online}-{staffonline}' is not a valid Math expression.
sharp bloom
#

and therefore they cant be parsed

spark goblet
#

aaa right :/

sharp bloom
#

and for the staff idk, possibly playerlist expansion, or..via another plugin like essentials :/ ?

spark goblet
#

yeaaaa... omg.. online is placeholder from just tab plugin...

sharp bloom
#

mhmmm

spark goblet
#

in 2 am in night im think too stupid xd

#

thx bro

sharp bloom
#

OKK dw its 3 for me

spark goblet
#

btw someone know why in papi, skript extension no longer available?

#

/papi ecloud download skript

#

Failed to find an expansion named: skript

haughty ginkgo
#

Hey all,

Any idea why I could be getting this? Not had this before and everything has been working perfectly...

30.11 09:20:45 [Server] WARN Failed to load external expansion votingplugin. Identifier is already in use.
30.11 09:20:45 [Server] WARN Cannot load expansion votingplugin due to an unknown issue.
30.11 09:20:45 [Server] WARN Failed to load external expansion playerlist. Identifier is already in use.
30.11 09:20:45 [Server] WARN Cannot load expansion playerlist due to an unknown issue.

sharp bloom
#

nothing to worry about it tbh but u can delete the old jars

wise cove
#

I need to create a javascript to forward %test_abc% to %test2_abc% (only change the first part)

frozen cargo
#

hello

#

why %staff_online% not works

#

Previously it was a placeholder for the Essentials plugin and it worked, but now it doesn’t. I didn’t find a similar one in the list of placeholders

plush dove
#

Whats the relation thing do?

vivid sparrow
#

It is a way to create placeholders to represent the relation of two players. E.g. if you have a placeholder for "faction type" that can be either Ally, Own faction, Enemy or Other, you can use relational placeholders for this, since normal placeholders can have a single result for a single player regardless of who is viewing them.

junior musk
junior musk
real parrot
#

Got something from chatgpt
`function similarity(s1, s2) {
var longer = s1;
var shorter = s2;
if (s1.length < s2.length) {
longer = s2;
shorter = s1;
}
var longerLength = longer.length;
if (longerLength == 0) {
return 1.0;
}
return (longerLength - editDistance(longer, shorter)) / parseFloat(longerLength);
}

function editDistance(s1, s2) {
s1 = s1.toLowerCase();
s2 = s2.toLowerCase();

var costs = [];
for (var i = 0; i <= s1.length; i++) {
var lastValue = i;
for (var j = 0; j <= s2.length; j++) {
if (i == 0)
costs[j] = j;
else {
if (j > 0) {
var newValue = costs[j - 1];
if (s1.charAt(i - 1) != s2.charAt(j - 1))
newValue = Math.min(Math.min(newValue, lastValue), costs[j]) + 1;
costs[j - 1] = lastValue;
lastValue = newValue;
}
}
}
if (i > 0)
costs[s2.length] = lastValue;
}
return costs[s2.length];
}

var text1 = args[0];
var text2 = args[1];
var percentSimilarity = similarity(text1, text2) * 100;
percentSimilarity.toFixed();`

austere hawk
#

Hello! I have a problem. My Chat doesnt show up the DeluxeTag I have, I already used {deluxetags_tag} in the essentials config.yml

junior musk
#

?tagess

tender vaporBOT
sharp glacier
#

@junior musk what java version is your advancedbungeecord expansion compiled on? i'm using java 8 and it gives me an error thats its compiling on something else

junior musk
#

17

nocturne sequoia
#

What placeholderapi check inventoryfull ?

sharp bloom
#

%player_has_empty_slot% with yes/no and %player_empty_slots% with integer value

mighty stone
#

hlo

#

can anyone tell me how to fix this

#

how to download ecould of grief protection

#

@mint fable

tender vaporBOT
mighty stone
#

why there is no placeholder of griefprotection

mighty stone
#

where should i add this

sharp bloom
#

also if u have an older version of it make sure to delete that one

mighty stone
#

thx for helping

sharp bloom
#

np :d

craggy turtle
#

i found a checkitem bug

#

or error with my mind i need help

#

%checkitem_inslot:0_nbtstrings:ae_enchantment;mirror=1%

#

i move the item all around my inventory and it returns true 🤯

#

but if i remove item it returns false

sharp bloom
craggy turtle
#

yes im trying with nbtints now

sharp bloom
craggy turtle
#

idk if this plugin registers it

mint fable
#

you had a _ where you needed a ,

#

possible error

craggy turtle
#

its still returning false

#

the integer is ae_enchantment;mirror
and the value is 1

mint fable
#

integer?

craggy turtle
#

could it be the ;

mint fable
#

use nbtints

craggy turtle
#

yeah i did

mint fable
#

can you hold the item and type /data get entity @s SelectedItem

#

send picture here

#

?imgur

tender vaporBOT
craggy turtle
#

how do i escape the ;

mint fable
#

hmm, sadly I don't think you can

#

yeah, currently you can't

#

can open an issue, idk when I might have time to add it tho

craggy turtle
craggy turtle
#

and idk if i have to fix the _ too. i guess it is fine because all the startswith is mapped out

austere hawk
#

Error use
/papi parse me %player_locale%

austere hawk
#

And the same when using the placeholder in a hologram

sharp bloom
#

or smthing like that

jolly field
#

can anyone tell me what is the placeholder for colored ping?

junior musk
night dagger
#

Greetings! Question! Can we do the following?

Number of available rights: %luckperms_right_%
Number of available rights: %luckperms_badge.player%

will give us
Number of rights available: 10 out of 20

pliant warren
#

haello

#

does anyone know how to create a custom placeholder with bukkit api?

#

i can create cstom placeholders, but i am trying to do something like this
%custom_isMuted_<playername>%

austere hawk
sharp bloom
#

then it probably has an issue :/

#

oh it has already been reported by someone else

austere hawk
#

But before it worked for me I think

austere hawk
#

Isn't it necessary to update the placeholder for 1.20.2?

nocturne pelican
#

@junior musk i am download placeholderapi and see

#

i am type papi ecloud download Grief Prevention

#

but grief prevention is not showing

#

and not working

#

pls fix

#

@junior musk

junior musk
#

try without the space

#

GriefPrevention in one word

#

/papi ecloud download GriefPrevention

#

and then /papi reload

#

ah nevermind

#

the expansion isn't verified

nocturne pelican
#

@junior musk i am type /papi ecloud download GriefPrevention

#

not working

#

error-failed to find an expansion named GriefPrevention

#

@junior musk

sharp bloom
#

;-;

junior musk
#

4 pings

#

4

#

and you expect me to answer

#

and I even told you that you have to download it manually

#

and gave you they link to do so

#

man learn how to read and how to be a decent human being

#

I can't even go to bed in peace

austere hawk
#

Pleasee help

versed warren
red flower
#

hello! i've run into an issue with updating the total player counts in a bungeecord network of servers. i've been trying to get the hub world's player list (on a scoreboard) to update with the number of people in each gamemode, like "Players in Creative: #/60." however, none of the totals seem to update when someone logs in. is there a way to have placeholderapi refresh the total when a player joins the hub world?

edit: never mind, solved it. just needed to change the placeholder to the bungee expansion

nocturne pelican
#

@junior musk hello bro

junior musk
#

goodbye

sharp glacier
#

If I fork bungee, and add some placeholders, and then publish it under the same name, will my version overwrite the default bungee expansion?

junior musk
#

you can't publish an expansion with the name of an existing one

#

you can fork the expansion, make a PR and wait for someone to merge and publish it on the ecloud

#

or you can make your own fork separated from the current one and call it something else like Bungee2 or Bungee-Updated idk

sharp glacier
#

ok

sharp bloom
austere hawk
#

How do I make the first letter of a text, the letter after a period capitalized

#

For example "helo. bye" -> "Hello. Bye"

mint fable
#

you can try %string_sentencecase_<string>% but not 100% positive

#

it doesn't mention anything about periods

#

@austere hawk

austere hawk
tender vaporBOT
severe jacinth
#

still bump... have been trying for weeks, removed all plugins, all expansions everything and nothing still works

lavish moss
#

Greetings, I need help!
I downloaded the CheckItem PlaceHolder and want to detect if the player has this item in their inventory:

minecraft:rabbit_foot{CustomModelData:501002,display:{Name:'{"text":"FloxyCoin","color":"yellow","bold":false,"italic":false}',Lore:['[{"text":"Vrednost: 10 ","color":"gold","italic":false},{"text":"\\uE018","color":"white","italic":false}]']}}

I need this for DeluxMenu shop, because I create custom items shop.

How do I detect if the player has this custom item with the nbt tag when he clicks on the box in the deluxe menu?

deep wren
#

None of my placeholders seem to want to work.. I have screenshots, how can I send those?

sharp bloom
#

smh

#

?imgur

tender vaporBOT
sharp bloom
deep wren
#

haha thanks

sharp bloom
deep wren
sharp bloom
deep wren
#

Of course xD

sharp bloom
#

are the expansions up to date?

deep wren
#

yes , odd right

sharp bloom
#

whats your papi/server versions

deep wren
#

2.11.5 Papi / 1.20.2

sharp bloom
deep wren
#

ope

#

one second

#

okay now its just the grief prevention not working and my max players online not working

sharp bloom
deep wren
#

then place it in the expansions directory right

manic hawk
#

Hey

#

Is there any placeholders for how many users u have banned

#

kicked and muted?

onyx valve
#

How do I make it so when I hover my empty map over an item and click on the item with the empty map, it will make it so I can rename that item?

#

But I only want it to be able to rename tools, weapons, armour ect nothing like blocks, feathers and stuff

mint fable
agile carbon
#

cause i can't use in my aternos server

#

so please see it

plush dove
#

Isn't there a command to bypass verification

#

Or something in config

carmine veldt
#

@agile carbon verified it for you

#

@plush dove not anymore, that was removed in a recent update for security reasons

agile carbon
plush dove
#

👍

hallow whale
#

With PAPI is it possible to combine online players of two servers in a placeholder ?

urban marsh
#

Yes it is!

urban marsh
hallow whale
#

Thanks Ill try it

distant flare
#

hey i want to add [console] kit nethpvp <playername> this command in my menu left-click command but i don't know why <playername> is not working basically i wanted to give player a kit with kit nethpvp <playername> but it's not working.

#

can anyone help me out ?

jolly field
#

make sure to install player expansion

distant flare
jolly field
astral crown
#

PlaceholderAPI alone is taking up 100% CPU. I have tried resetting the file but only with the PlaceholderApi plugin it is taking 100% of the CPU.

balmy marten
#

If you do a timings report you should be able to pinpoint which expansion is causing it

civic crypt
#

Hi there. I am writing about Deluxemenus. I am not familiar with coding, so is there any video I can see how to make a game menu? Or anybody wants to share a template with me?

stone edge
#

That's not coding, you can read all examples in DeluxeMenus wiki including explanation for all features/options, take a look, it really helps

sharp bloom
#

ofc its coding 🙄

#

i code deluxemenus guis every day too

stone edge
jolly field
sharp bloom
#

alonso should be banned for his bio in general :/

#

i ve been rick rolled 3 times from him

junior musk
sharp bloom
#

i hate him for that 💀

restive slate
#

I am trying to parse this placeholder, basically I want to show the number formatted only if it is above 10k

this is the placeholder and output if I am above 10k
%changeoutput_>=_input:{duels_wins}_matcher:10000_ifmatch:{formatter_number_shorten_{duels_wins}}_else:{duels_wins}%
OUTPUT
{formatter_number_shorten_{duels_wins}}

Any idea?

restive slate
#

Did you solved? I am also tring to do this

stone edge
sharp bloom
#

is there any way so i can make the %player_name% or any kind of placeholder return a value in small capital? ʟɪᴋᴇ ᴛʜɪs!

plush dove
sharp bloom
#

has this been changed ever since? :/ cause i cant make it to work now

sharp bloom
#

nvm it seems that it simply doesnt work with placeholders :/

#

cause it doesnt change the result from the parse

supple laurel
#

Has anyone here had experience in properly mocking placeholder api for unit testing purposes?

#

Or knows a opensource plugin on github where i can take a peak 👀

sharp bloom
#

it ain't worth buying from bbb for me :/ cause the tax in my country is huge

wraith berry
#

same one is on polymart if that helps

sharp bloom
#

hell yeah send link in dm

stray mortar
#

Yo

#

Can anyone help me fix placeholderAPI for my minecraft server

#

It doesn't seem to load the 'player' and 'server' expansions when trying to use %player_name% and %server_online% on a npc

stone edge
#

(ignore if it was not what you were looking for, i just woke up)

stone edge
#

mmm gifs should be allowed ¬¬
Hi

torpid mantle
#

Hi. Please help me to check the required potion in the Deluxemenu plugin
I tried to do it through CheckItem but I can't figure it out

mint fable
#

%checkitem_mat:potion,potiontype:SPEED,potionupgraded:true% this example should return yes/no dependant on if you have a Speed 2 potion or not

vagrant charm
#

/papi parse me %formatter_number_format_{math.calc:1.5*{betonquest_coalQuest:point.QuestCompletions.amount}*10000~0}%

This command doesn't seem to work, am I calling the math placeholder inside the formatter incorrectly?

vagrant charm
#

this works

/papi parse me %formatter_number_format_{math_1.5*10000}%

but this doesn't

/papi parse me %formatter_number_format_{math_1.5*{betonquest_coalQuest:point.QuestCompletions.amount}*10000}%

can we not use placeholders, inside placeholders, inside placeholders?

fast knoll
#

is there any way to check if placeholder is null with ChangeOutput?

smoky egret
#

Hello, is there an issue with %statistic_mob_kills%? when killing a mob, the placeholder value increases by 2, not 1. any advice? thanks.

junior musk
#

/papi ecloud download utils
/papi reload
%utils_parse_formatter_number_format_{math_1.5*{betonquest_coalQuest:point.QuestCompletions.amount}*10000}%

junior musk
#

%changeoutput_equals_input:{your_placeholder}_matcher:_ifmatch:text empty_else:text not empty%

fast knoll
carmine shoal
#

Hey does placeholderAPI support kyori components?

junior musk
#

PAPI placeholders return strings

#

all depends on how those strings are interpreted in the plugins that parses those placeholders

carmine shoal
junior musk
#

depends on what you're planning on doing, PAPI's whole purpose it for people to register placeholders into PAPI, and use them in other plugins

#

though if everything you're doing is only ever within your own plugin,and you don't plan on making it go public, then I don't think you need PAPI

carmine shoal
#

Might be worth it to do it

junior musk
#

then yeah you could use PAPI

#

but I don't see how this is related to Kyori

carmine shoal
#

Kyori is used in metadata in items

sharp bloom
#

quick question

#

does the %utils_parseother: parse offline users too

#

?

junior musk
#

yeah

sharp bloom
#

sexy

junior musk
#

as long as the placeholder supports it

sharp bloom
#

yuh yuh (i hope)

#

is this not how u do it :/ ?
%utils_parseother:{superior_island_leader}_{score_variables_island-wheat-deposited}%

junior musk
#

[]

#

[superior_island_leader]

#

but yeah, I made it that because of the _

#

didn't know how to make it work otherwise

sharp bloom
#

aaa makes sense

sharp bloom
#

can u spot where my issue is here?
%utils_parse_progress_percentage_{utils_parseother:[superior_island_leader]_{score_variables_island-wheat-deposited_int}}_m:2500_d:2%

#

it the { { } { } } even possible :/ ?

#

OKK i ll use the shortcuts expansion, this is annoying

junior musk
#

the utils on the outside parses the placeholders first

#

so yeah, you'd need to use the parseother in a shortcut, and use that shortcut in the normal parse

#

or you'd have to escape the inner { and } with a \ in front of them

sharp bloom
#

i ended up using the shortcut

junior musk
#

that works in Utils

#

yeah

#

I added that XD

sharp bloom
smoky egret
mint fable
#

hmm, any mob related plugins?

sharp bloom
sharp bloom
#

that also happens w mined blocks

smoky egret
#

this seems to have broken it

mint fable
#

no %% inside the {}

#

{} replaces %%

#

@smoky egret

smoky egret
coral ibex
#

Is there a pleshoder that shows how much your slots cost in server.properties?

scenic sapphire
#

What placeholders do I have to use to know how many people are on my server?

vivid sparrow
#

%server_online%

scenic sapphire
#

thanks

velvet root
#

Hi! Can I use a placeholder in a placeholder? Like %formatter_number_from:%num1%_to:%num2%%

junior musk
#

{} instead of %%

velvet root
# junior musk {} instead of %%

Thanks, and in this situation?

%changeoutput_equals_input:{luckperms_group_expiry_time_{luckperms_highest_group_by_weight}}_matcher:_ifmatch: never_else:
{luckperms_group_expiry_time_{luckperms_highest_group_by_weight}}%
junior musk
#

/papi ecloud download Utils
/papi reload

%utils_parse_changeoutput_equals_input:{luckperms_group_expiry_time_{luckperms_highest_group_by_weight}}_matcher:_ifmatch: never_else:
{luckperms_group_expiry_time_{luckperms_highest_group_by_weight}}%
velvet root
#

Thank you so much! ❤️

austere hawk
#

im creating a plugin, i registered a expansion but always give this error [16:10:50 ERROR]: [PlaceholderAPI] Failed to load expansion class SuperPlugin-1.0-SNAPSHOT.jar) (is a dependency missing?

stone edge
#

send the complete error

austere hawk
#

[16:10:50] [ForkJoinPool.commonPool-worker-2/ERROR]: [PlaceholderAPI] Failed to load expansion class SuperPlugin-1.0-SNAPSHOT.jar) (is a dependency missing?
[16:10:50] [ForkJoinPool.commonPool-worker-2/ERROR]: [PlaceholderAPI] Cause: VerifyError Cannot inherit from final class

vivid sparrow
#

show some code

austere hawk
#

the plugin code?

vivid sparrow
#

yes

austere hawk
#

@Override
public String getIdentifier() {
return "superplugin";
}

@Override
public String getAuthor() {
    return "WhyleMAX";
}

@Override
public String getVersion() {
    return "2.3";
}

@Override
public String onPlaceholderRequest(Player player, String identifier) {
    if (player == null) {
        return "";
    }

    if (identifier.equals("mundo")) {
        return player.getWorld().getName();
    }

    return null;
}
vivid sparrow
#

override canRegister and return true

austere hawk
#

still with the same error

mint fable
#

not nothing, but essentially nothing

#

learned that the other day lmao

#

i said the same thing

#

||Also I realize you were talking about code that you couldn't see or didn't exist yet, not the Override annotation itself||

#

🤦

flat brook
#

hello, is there a way to parse a placeholder in code?

#

like

#

/papi parse me %placeholder%

#

but from code

#

?

hidden goblet
#

Hey i had a Bungee server with Holographic Displays, but now i must use decent holograms:
Back in the day i had My placeholders like this:
`SA-1:
lines:

  • '&b&lSurvival &e&l[TEMP] &r &f&l1.19.4'
  • '&f&l{online: SA-1}/{max_players: SA-1} ✦ {status: SA-1}'
    position:
    world: world
    x: 0.46190620275070854
    y: 53.0
    z: 10.522272230021116`
    But now that doesent works
    It looks like this: {online: SA-1}/{max_players: SA-1} ✦ {status: SA-1} and not: 0/20 Online (/offline)
    I tried to use the Bungeecord API (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#bungeecord) PS: I also downloaded it with /papi ecloud download Bungee:
    That works, BUT; i can just show the players on the SA-1 server and ALL PLAYERS on the whole Bungee Network,
    how can i show:
    {online players on SA-1} / {maxed players on SA-1} + {status of SA-1: Offline/Online}
sharp bloom
#

aaaaaa

#

if the server is online or offline

hidden goblet
#

i want that my players know how much players are on the server, how much could be maximum and if the server is Online or offline

sharp bloom
#

honestly i ve got no idea for the offline / online

#

i tho the bungee expansion could do it but i guess not

#

aaa

#

u can use the pinger expansion

hidden goblet
sharp bloom
hidden goblet
sharp bloom
#

no the expansion folder

#

placeholderapi\expansions

hidden goblet
#

ah ok

sharp bloom
#

not on bungee ;-;

#

placeholderapi doesnt work for bungeecord

#

in the hub server

sharp bloom
hidden goblet
sharp bloom
#

everything works on DH

#

they support papi

hidden goblet
#

yes

#

they do

sharp bloom
#

OKK ye ik i just said that

hidden goblet
#

because they have not an expansion folder

sharp bloom
#

why would they?

#

placeholderapi has the expansions

hidden goblet
#

check

#

thanks

sharp bloom
#

np :d

hidden goblet
# sharp bloom np :d

rightnow i did the %pinger_online_<ip> / %pinger_max_<ip> %pinger_isonline_<ip> , but it says:
Online / 20 ✦ Online

#

a friend joined on the specific server and it doesn't changed, it just looked: **Online / 20 ✦ Online ** Could you help me there too? 🙂

sharp bloom
hidden goblet
#

your my hero

cursive ermine
#

Dumb questions as pings are server based, but is there a placeholder that will show the online status of a world?

sharp bloom
#

of a world its not possible

#

of a server yes

cursive ermine
#

Correct, just curious since you can pull player counts from worlds.

sharp bloom
#

OKK the world doesnt have a status tho

#

how could a world be offline

cursive ermine
#

I am aware, hence why I said it was a dumb question. I pretty much just needed response to prove to someone else. There is because we can restrict access to a world which in theory makes it "offline" but the world is a part of the server so if the server is offline then so is the world.

sharp bloom
#

how exactly do u want the world to be flagged as offline?

#

if there are no players in it?

#

if the user doesnt have a permission to access it?

sly fulcrum
#

the plugin would need to provide a placeholder showing that

distant lava
#

Hello, can someone please help me with our current changeoutput placeholder? By default all players have player ranks. We are trying to make it so, if a player that has a donator rank, and also has a tag eqipped, then only the donor rank and tag will show, no player rank. I have attached our current placeholder below, but for non-donor players if they have a tag eqipped it only shows their tag and not the player rank. Can someone please help us to achieve if the player has donor rank and tag, only those two will show no player rank, but if a normal non-donor player has a tag eqipped, it'll show both their player rank and tag?

%changeoutput_equals_input:{eternaltags_tag}_matcher:_ifmatch:{luckperms_prefix_element_highest_on_track_donator}{luckperms_prefix_element_highest_on_track_player}_else:{luckperms_prefix_element_highest_on_track_donator}{eternaltags_tag}
junior musk
#

send a screenshot of /papi parse me %luckperms_prefix_element_highest_on_track_donator
and /papi parse me %eternaltags_tag%

#

?imgur

tender vaporBOT
slow needle
#

How do I make my own placeholder?
(If this helps it changes based on the worldguard region the player is in)

sharp bloom
slow needle
#

but can u make it display a custom name instead of the name of the region

#

thats what im asking

#

@sharp bloom ?

slow needle
#

thx

steady urchin
#

Does anyone know how I could configure a menu to display AIR if someone isn't wearing armour in an armour slot?

#

right now it works to show the armour they are wearing but if they don't have anything in the slot it just shows stone

#

Here's the code i have atm:

 ` boots:
  material: armor_boots
  display_name: "&7Boots (%armor_material_BOOTS% || Naked)"
  slot: 34
  lore:
    - "&7Name: &e%player_armor_boots_name%"
    - "&7Durability: &e%player_armor_boots_durability%" `
mint fable
#

@steady urchin what does /papi parse me %player_armor_boots_name% return when you have no armor

steady urchin
#

blank

#

just a blank line

mint fable
#

what about /papi parse me .%player_armor_boots_name%.

steady urchin
#

..

mint fable
#

ok

#
boots:
  material: armor_boots
  display_name: "&7Boots (%armor_material_BOOTS%)"
  slot: 34
  priority: 1
  view_requirement:
    requirements:
      hasboots:
        type: '!string equals'
        input: '%player_armor_boots_name%'
        output: ''
  lore:
  - "&7Name: &e%player_armor_boots_name%"
  - "&7Durability: &e%player_armor_boots_durability%" 
noboots:
  material: AIR
  slot: 34
  priority: 2
#

@steady urchin

steady urchin
#

ah

#

cheers!

#

oh I have a question about a luckperms track which I'm trying to use with deluxe menus to shown the user's group, but i can't seem to get it to parse the name of the group

#

/papi parse me %luckperms_prefix_element_highest_on_track_corporations%

#

this is the command I am using to trying and see what the highest group is on the track corporations

#

but it is doing the same thing where it just outputs the blank line

mint fable
#

what should it be returning

steady urchin
#

I have assigned myself to the group AlphaSoft, which is the first in the track corporations, so logically it should be returning alphasoft, but it just doesn't seem to return anything

#

I've tried a few different ways to do it, but none are seeming to work

mint fable
#

and AlphaSoft's prefix is set to alphasoft?

steady urchin
#

yes

mint fable
#

shows in your chat if you have it enabled?

#

hmm

#

I would maybe try the luckperms discord

steady urchin
#

ok i will ask them, thank you for your help

#

and yes it was showing up in chat, which is why i was confused lol

mint fable
#

right

outer mountain
#

how can i do
%otherplayer_health_<player>%

like this?
%otherplayer_health_{placeholdername}%

junior musk
#

just like you did it

#

as long as otherplayer supports PAPI placeholders

stoic ravine
#

Hi! Can i get a quick example how to make a shop item that can be reedemed only once for free?

junior musk
#

"quick example" and "shop" don't belong in the same sentence KEKW

#

if you want the idea of how it would be done: you give the player a permission or a meta in your click_commands, and then you add a click_requirement which checks if the player doesn't have that permission (or meta)

#
item0:
  click_commands:
    - "[message] Hi"
    - "[givepermission] myshop.item0"
  click_requirement:
    requirements:
      clicked:
        type: "!has permission"
        permission: myshop.item0
plush dove
#

Is meta a vanilla mc data value? Because I believe it's stored on the player data, right?

junior musk
#

not really Vanilla, it's Spigot but yeah

#

it was added in 1.14.4

#

or just 1.14, I forgot

outer mountain
junior musk
#

%parseother_{playerOrPlaceholder}_{player_health}%

#

both work and both require a player name or a placeholder returning a player name

outer mountain
mint fable
#

%parseother_{username}_{player_health}%
this doesn't work because username is not a placeholder

#

it's literally parsing %player_health% for the user: username

distant lava
junior musk
#

oh I didn't see, my bad

#

can you also send the output of
/papi parse me %changeoutput_equals_input:{eternaltags_tag}_matcher:_ifmatch:{luckperms_prefix_element_highest_on_track_donator}{luckperms_prefix_element_highest_on_track_player}_else:{luckperms_prefix_element_highest_on_track_donator}{eternaltags_tag}% ?

distant lava
junior musk
#

but what does it show right now?

#

and what should it show?

distant lava
# junior musk but what does it show right now?

When a player doesnt have a donator rank, i'd like it to show the player rank and tag, but if the player has a donator rank and they have a tag eqipped, then it should show the donator rank and tag, if the donator doesnt have a donator tag then itll show the donator and player rank.

Currently, if a player doesnt have a donator rank but a tag eqipped, it only shows the tag, and if they have a donator rank and tag eqipped, it shows correctly of the donator rank and tag. The only problem is when the player doesnt have a donator rank and it showing only the tag

https://ibb.co/CvYXWPP

#

Not sure if that is possible with the changeoutput placeholder

junior musk
#

is the changeoutput placeholder not working?

distant lava
#

Protectors is the tag name, and legend is the donator rank name

junior musk
#

you have both the donator rank & tag

#

yeah so it works

distant lava
#

Yes but in the 1st one where it says "Protectors", I didnt have a donator rank, I'd like it to show the player rank and tag

junior musk
#

then why use ChangeOutput at all?

#

%luckperms_prefix_element_highest_on_track_donator% %eternaltags_tag%

#

wouldn't that show both your rank & your tag?

distant lava
junior musk
#

ah

#

I see

distant lava
#

Yeah thats the issue, having three for players who are donators takes up a lot of space on the tab and in chat

junior musk
#

that's a bit more complex 😅

#

I can make a js script if you want

distant lava
#

Yeah 😛 if it isnt possible I wouldnt mind just using only donator or player instead of having both

junior musk
#
function getPrefix() {
  var donator = "%luckperms_prefix_element_highest_on_track_donator%"
  var player = "%luckperms_prefix_element_highest_on_track_player%"
  var tag = "%eternaltags_tag%"
  if (donator == "") return player+" "+tag
  if (player == "") return donator+" "+tag;
  return donator+" "+player
}
getPrefix()
distant lava
junior musk
#

you said you wanted it in this order ;-;

#

switch the last tag and player

distant lava
#

I can pay as well, just lmk your paypal or something in DM and can send it over 🙂

junior musk
#

you just need to swap the tag and player then

distant lava
#

I asked chatgpt haha:

function getPrefix() {
  var donator = "%luckperms_prefix_element_highest_on_track_donator%";
  var player = "%luckperms_prefix_element_highest_on_track_player%";
  var tag = "%eternaltags_tag%";

  // For non-donor players
  if (donator === "") {
    return player + " " + tag;
  }

  // For donors
  if (tag !== "") {
    // If tag is equipped, return donator rank and tag
    return donator + " " + tag;
  } else {
    // If no tag is equipped, return donator and player rank
    return donator + " " + player;
  }
}

getPrefix();

Works as intended

#

I can still pay for helping though, let me know if you would like me to send something over 🙂

junior musk
#

yeah

#

nah dw

coarse perch
#

Hello, I wanted to ask about the "statistic extension" since I want to make a tab in Minecraft, however, when I put the %statistic_player_kills% so that it reads the kills, it does so and uploads them little by little, but I want to reset them and I don't know how do it, could someone help me? thank you

jolly field
#

can do have a countdown via placeholder api? like %countdown_20mins%

balmy marten
#

Placeholders only return text

#

So you would need to find an expansion that allows you to countdown to a specific date/time

#

Or use the javascript expansion and script it yourself

mint fable
#

@jolly field

icy hemlock
#

how would i be able to select an world in the menu?\ for DeluxeMenus

outer mountain
tender vaporBOT
uncut folio
#

is there way to have something counted on server? like if a player jumps starts a counter using placeholders? and every time he jumps counter goes up... i want to log every time someone mines something custom or wins a reward...

tender hill
#

Heya, I'm trying to hook into PHAPI, but I'm having trouble.
I've imported, put my dependency in my pom.xml, and put the depend in the yml, but everything is throwing errors at me. Any help? A bit new to java. My IDE is intellji community.

tender hill
#

This is one of the errors it gives when I build the project.
Failed to execute goal on project su_hud-2.dr10: Could not resolve dependencies for project org.dragonsrule10:su_hud-2.dr10:jar:1.0: Failed to collect dependencies at me.clip:placeholderapi:jar:2.11.6-DEV-186: Failed to read artifact descriptor for me.clip:placeholderapi:jar:2.11.6-DEV-186: The following artifacts could not be resolved: me.clip:placeholderapi:pom:2.11.6-DEV-186 (absent): Could not transfer artifact me.clip:placeholderapi:pom:2.11.6-DEV-186 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [placeholderapi (http://repo.extendedclip.com/content/repositories/placeholderapi/, default, releases+snapshots)] -> [Help 1]

warm topaz
#

2.11.5 is the latest available version on the repo

tender hill
#

"package me.clip.placeholderapi does not exist"

junior musk
warm topaz
#

paste ur pom.xml

#

?paste

tender vaporBOT
tender hill
junior musk
#

you need to send the link 😅

#

we can't see it otherwise

sharp bloom
#

i love how people always forget about that part 💀

tender hill
#

I thought it was like a live update mb

sharp bloom
#

u got this!

tender hill
#

bruh

#

there

sharp bloom
#

gg gj

tender hill
#

omg

#

shush lol

junior musk
#

isn't it me.extendeclip?

sharp bloom
#

OKK fine

junior musk
#

nvm, me.clip is correct

tender hill
junior musk
#

try with https

tender hill
#

uh.... whats that mean lol... im like really new to java, and intellji

junior musk
#

I mean the papi repo's url

#

you have http://....

#

try with https instead

tender hill
#

Oh I see.

#

Nope :p same error.

junior musk
sharp bloom
tender hill
#

lol

junior musk
#

and that is why I don't bother with Maven anymore KEKW

#

maybe you need to run maven clean ?

tender hill
#

I've tried gradle... not my favorite at all lol

warm topaz
#

have u refreshed maven?

tender hill
#

Lemme try that.

junior musk
sharp bloom
#

gradle doesn't even load properly for me 💀

sharp bloom
#

but i blame it on skill issue

#

so w/e

#

i stick to my menus instead

junior musk
tender hill
#
[WARNING] Failed to download placeholderapi-2.11.5.pom [https://repo.papermc.io/repository/maven-public/]
[WARNING] Failed to download placeholderapi-2.11.5.pom [https://oss.sonatype.org/content/groups/public/]

^ Error when I refreshed maven.

sharp bloom
#

almost 800 pepe_happy

junior musk
#

did it not find the PAPI repo ? o_O

sharp bloom
tender hill
#

hol up

#

im not getting an error in the pom.xml anymore 👀

sharp bloom
#

how did it not find the paper tho

#

gg ez

tender hill
#

So I'm able to use the Papi now... but now its not detecting the luck perms primary group

#

I have the extention installed.

#

Stringed it:
String luckpermsPrimaryGroupName = "%luckperms_primary_group_name%";
And put it here:
Score score4 = objective.getScore(ChatColor.AQUA + "Global Rank: " + luckpermsPrimaryGroupName );

But it still outputs "%luckperms_pimary_group_name%" and not the actual group name.

#

(I know chat color is dep but idc)

warm topaz
#

u need to use PlaceholderAPI.setPlaceholders to actually parse the placeholder

warm topaz
#

so PlaceholderAPI.setPlaceholders(Player, "%luckperms_primary_group_name%")

junior musk
#

which also mean you'll need to create a different scoreboard with their own scoreboard scores for each player

tender hill
#

wait.. so like this?
String luckpermsPrimaryGroupName = PlaceholderAPI.setPlaceholders(Player, "%luckperms_primary_group_name%");

junior musk
#

have fun

#

XD

warm topaz
tender hill
#

cant I just call the player bukkit ... player ?

junior musk
#

?

tender hill
#

bukkit.entity.Player;?

junior musk
#

that's the class path?

#

you import it yeah

#

but then you need to have a Player instance

tender hill
#

wait... i think I'm calling it the wrong thing.

junior musk
#

and use that in Placeholder.setPlaceholders

tender hill
#

Do I get the players UUID or the players name?

junior musk
#

you can do both

#

Bukkit.getPlayer(UUID) or Bukkit.getPlayer(String)

tender hill
#

Its saying I have to getServer first...?

junior musk
#

you can either use Bukkit.getPlayer() or Bukkit.getServer().getPlayer(), yeah

#

idk why both exist but they both do the same

tender hill
#
String luckpermsPrimaryGroupName = PlaceholderAPI.setPlaceholders(Player, "%luckperms_primary_group_name%");

Player Player = getServer().getPlayer(UUID.fromString());

"Illegal forward refrence" ...?

junior musk
#

though this channel is for help with PAPI, if you need help with plugin dev, please use #development

tender hill
#

true

junior musk
#

if you do that, you need a string with a player's UUID in it

#

otherwise it'll throw an error

#

since you didn't provide a valid UUID

valid pawn
#

does this support folia yet at all

#

i see theres work that has been done on github but i am unaware of any papi builds for it yet

vivid sparrow
#

No

valid pawn
#

alr

fossil granite
#

Hello, so I have a same issue as a person had here with parsing a placeholder without color codes, but i cannot seem to make this to work, I did everything as it was said in the conversation.
https://imgur.com/a/LpiAIUm

real parrot
#

Any ideas how to check how many players in total have at least 1 score in some scoreboard objective? I have %objective_scorepos_{bosskilled}_{1}% which is checking score of first place, but how to get at which place score becomes 0?

real parrot
junior musk
fossil granite
junior musk
# real parrot I think something like repeating for each number (starting from total unique joi...

If I understood what you want correctly, you have the right logic

function getNextScore() {
  var max = BukkitServer.getOfflinePlayers().length
  for (var i=0; i < max; i++) {
    var score = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%"+"objective_scorepos_{bosskilled}_{"+i+"}%")
    if (score == 0) return i
  }
  return -1
}
getNextScore()

I came up with this, I think it does what you want, let me know if it works

real parrot
#

Is it possible to get player's control key as placeholder? I need to tell player to press Q (drop item), but some players change Q to something else which leads to confusion

vivid sparrow
#

Not with papi, but if the plugin where you want to do this supports MiniMessage there's a keybind tag

thorny geyser
#

[LocalTime] Couldn't get mario638's timezone. Will use default timezone.

manic hawk
#

Does Essentials support PAPI?

junior musk
#

it doesn't as far as I know

manic hawk
#

damn

junior musk
#

not much we can do about it 🤷

#

maybe one day they'll finally decide to add 1 line of code to their plugin

#

well maybe it's more, but I doubt it would be that complicated

alpine veldt
#

Hi, I'm using Javascript 1.4.1 In 1.16.5, I need help creating a placeholder to parse the message where I specify. I also need to multiply the number of placeholder %bungee_total% by 2 times.

alpine veldt
#

pls

alpine veldt
sharp bloom
#

🤷🏻‍♂️

alpine veldt
#

example
var clan = parseInt("%bungee_total%");

function check() {
var flan =clan * 2;
return flan | 0;
}
check();

ocean beacon
#

message output when reach specify number ?

alpine veldt
# ocean beacon ?

Multiply online by %bungee_total% x2 times

These are different files that should be file.js

No, just display the message in %javascript_name%
For example
Survival-1

junior musk
#

why do you need to use JS? you could just use Math

#

JS will just make it less performant xD

junior musk
alpine veldt
junior musk
#

that doesn't really explain much

alpine veldt
junior musk
#

why do you need JS?

junior musk
alpine veldt
junior musk
#

weird but still doesn't explain why you absolutely want to use Javascript instead of simple Math

alpine veldt
junior musk
sharp bloom
#

yes

junior musk
#

this works 100% and doesn't need JS

#

and is also a lot more performant, efficient, simple and cleaner, than if you used JS

alpine veldt
#

Where should I enter this?

#

I want to use this in TAB and DecentHolograms plugin.

junior musk
#

/papi ecloud download Math
/papi ecloud download Bungee
/papi reload

alpine veldt
#

Works

#

No, just display the message in %javascript_name%
For example
Survival-1
?

junior musk
#

?

austere hawk
# junior musk ?

Hello
How i can make a topbal leaderboard with Essentialsx which placeholders i have to use

austere hawk
sharp bloom
#

OKK wym there is no expansion i gave u the link for it

#

%essentials_baltop_balance_<rank>% %essentials_baltop_player_<rank>%

austere hawk
#

Ok

#

Thank you

mint fable
#

@broken locust you having issues with checkitem?

#

if so, can you try updating the expansion first, and if that doesn't work, please provide the exact placeholder you are having an issue with

broken locust
#

I'll try that

versed ridge
#

I have an odd request. I'm trying to get the X Y Z position of the closest mob to a player as placeholders (for use within another plugin). I'm not much of a Java coder, so the best I've come up with is using the the Skript placeholder plugin to get the values. I can use Skript, but wanted to ask if I am overlooking something obvious?

junior musk
#

I don't know any placeholder that does that so I think it's fine

versed ridge
#

Thanks! Just wanted to run it by someone else who would know better

oak field
#

Hey, is there a list of all available placeholders?

hollow lotus
#

Is papi available on velocity?

sharp bloom
sharp bloom
#

do u guys know of a placeholder that returns the position of a player even if they r offline?

#

i m sure i ve seen one but i dont remember

stone edge
vivid sparrow
#

You would have to store it between sessions, the location is not accessible for offline players

jolly crystal
#

Not without accessing the world files that is 😉

vivid sparrow
sharp bloom
#

idk, i think i ve seen a placeholder somewhere few weeks ago but i cant find it now OKK

austere hawk
#

Placeholder craching when i try to download papi

balmy marten
#

Sorry what?

mental hare
#

as i understand, i can't run placeholderapi on velocity, but is it possible to add my own placeholderapi expansion on velocity to add some placeholders that will be available for servers connected to it?

austere hawk
mental hare
#

need data from proxy

austere hawk
tender vaporBOT
balmy marten
#

@austere hawk ^

austere hawk
#

Ok

#

Thank you

oak field
#

Hey, is there a list of all available placeholders?

tender vaporBOT
viral pulsar
junior musk
#

you likely need to update it to 2.3
/papi ecloud download Bungee
/papi reload

oak sail
#

Hey! so I'm playing around with PlaceholderAPI right now for my plugin, do we have any way of having multiple parameters for them? how does the parameters work?

junior musk
#

parameters is just a string representing anything you put after your expansion's identifier

#

%<identifier>_<params>%
example: your expansion's identifier is test, your placeholders would be %test_<params>%

#

You can use params as you wish, you can simulate having multiple params by splitting the string by , or _ (those are the most commonly used)

fossil granite
#

Anyone knows why it doesnt work? I have all extensions installed and the placeholders are in the right format
/papi parse me %math_{formatter_text_length_{tab_tagsuffix}}-12%

unkempt urchin
#

Do you know if placeholderapi works for a Mod?

eternal obsidian
#

no

robust verge
#

anyone know how to get placeholders working with js?

junior musk
tender hill
tender vaporBOT
real parrot
#

Oh wait, looks like advancement placeholder dont works for offline players...

warm plover
#

Is there a placeholder to get a certain line of lore?

sharp bloom
warm plover
#

Like, if my item has 5 lines of lore, and I wanted to get line 2 specifically, is that possible?

sharp bloom
#

eh i dont think so, if u wanted to check for something in the lore u could use the checkitem expansion with the lorecontains

#

but to get a specific lore of an item, i m not rly sure

warm plover
#

Dang, hmm

#

I'll keep checking

sharp bloom
warm plover
#

Yeah I'm trying to see if maybe I can grab a certain line with the string placeholder

mint fable
warm plover
#

what

mint fable
#

should work

warm plover
#

WOW

#

It does work that is beautiful

#

Thank you both 🙏

sharp bloom
warm plover
#

yeah really how dare you cj

sharp bloom
#

i needed that few weeks ago

#

or mby months

mint fable
#

gotta look again

#

'twas there all along 😉

sharp bloom
#

OKK bruh

warm plover
mint fable
#

lol the github has like no info

warm plover
#

yeah true

mint fable
#

very basic

#

maybe one day

sharp bloom
#

aaa thats on the placeholder wiki thingie

warm plover
#

nahhhh

sharp bloom
#

yeah i always look at the checkitem wiki :/

mint fable
#

idk, it's hard having 2 sources

warm plover
#

String and checkitem are my favorite things in the world 😍

sharp bloom
#

ooof i cant decide

mint fable
#

and utils

sharp bloom
#

i like lots of things

mint fable
#

utils might be the best

sharp bloom
#

checkitem, math, string, utils, formatter,

mint fable
#

changeoutput

#

so good

sharp bloom
#

yes changeoutput

#

parseother

warm plover
#

I don't use changeoutput much now since string

mint fable
#

massive Ws

warm plover
#

but I do love CO

sharp bloom
#

playerlist

warm plover
#

and utils is amazing too

sharp bloom
#

shortcut

#

i do use lately the shortcut a lot

warm plover
#

I'm about to turn 4 300 line menus into probably 100 😎

#

best feeling

mint fable
#

shortcut was ripped off of me, but it was done better so 🙃

#

nah lol idrc

sharp bloom
mint fable
#

i just like having good expansions on the cloud

sharp bloom
#

well, the way it supports folders is kinda weird

warm plover
#

Idek what shortcut is

mint fable
#

also, it definitely wasn't I don't think

warm plover
mint fable
#

I just didn't know shortcut existed

#

lol

#

cause i made variables

#

shortcut is real nice

sharp bloom
#

ye it is

mint fable
#

i barely use any of these expansions, but

#

shortcut would be nice if i made massive menus like y'all

#

lol

sharp bloom
#

i think the ones i use the most are math and checkitem

mint fable
#

makes sense

#

chess 10/10 expansion

sharp bloom
#

🤨 there isnt anything like that on ecloud

#

its the one u ve made for the chess gui?

mint fable
#

ye

sharp bloom
#

pepesip i ve only made 1 expansion of mines so far

mint fable
#

chess was a fun experiment

sharp bloom
#

yuh it looked rly nice

real parrot
junior musk
#

well I wouldn't be surprised that iterating over your entire player base everytime the placeholder is parsed for any player isn't the best idea

#

I guess this would be better and a lot more optimized within an actual expansion and not JS

real parrot
#

Can you suggest some ways of getting server statistics? (like daily total playtime, daily new players, etc)

junior musk
#

get a plugin that tracks those and provides placeholders to display them

tired hazel
#

.

kindred lynx
#

Is there an expansion for minecraft /tag command and associated datapack commands/values?

neon elm
#

hey guys

#

I have a placeholder problem with bungee extension on velocity

#

my %bungee_total%

#

is not updating

#

when no players is online

#

kinda same problem as this

#

any fixes?

dawn bough
#

My deluxe menus isnt working

#

can anyone help?

neon elm
#

fuck it ill make my own bot

#

fuckyall esti

sweet vapor
#

can i get player data if not online ?

kindred lynx
lean valve
#

i need help trying to connect luckperms prefixes to my simplescore plugin?

#

help @idle leaf

sweet vapor
junior musk
#

so you have to try it and see with the placeholders you want

#

if it doesn't work, then you'll need to contact the dev of the expansion and ask them to support offline players, or ask someone to make you a custom expansion

junior musk
wet basinBOT
#

@junior musk Unknown expansion.

junior musk
#

the expansion is called Teams though thonking but yeah

kindred lynx
#

I've installed teams and luckperms expansions but luckperms doesn't seem to parse %team_prefix% when I send a message in chat

#

papi does it just fine

junior musk
#

LuckPerms doesn't parse placeholders as far as I know

#

unless you mean LuckPermsChat?

kindred lynx
#

oh, do I need an additional plugin for it to parse?

#

didn't know

#

I have essentialschat, if that works

austere hawk
#

Hello, can someone help me ? I cant use [console] on delexuemenus

junior musk
junior musk
#

?paste

tender vaporBOT
austere hawk
austere hawk
junior musk
#

send the menu

austere hawk
#

How can i uploud file?

cinder idol
austere hawk
#

?

#

video quality isnt good

#

give me the link

cinder idol
austere hawk
cinder idol
#

if you looked at what @tender vapor sent 10 sentences above 💀

austere hawk
#

done it

#

thats the regular config guys if your example

#

each command from [console] dosent work no matter what config is it

#

its not a syntx problem theres problem with the doing stuff in the name of [console] none commands will work

junior musk
#

do you get an error in console?

#

and what do you get in chat?

austere hawk
#

not an error in the console

#

and not an error in the chat

#

and i got the latest version

sweet vapor
lime wigeon
#

hi, whenever I want to join the server, I have to type /papi reload for player_displayname to load, can someon help me with it?

sweet vapor
#

statistic_player_kills
statistic_deaths

tender vaporBOT
junior musk
lime wigeon
junior musk
#

yes

lime wigeon
junior musk
#

latest.log

lime wigeon
#

they are long

#

ther is it

lime wigeon
junior musk
#

?paste

tender vaporBOT
junior musk
#

pastebin works as well

#

remove AnimaBossbar

#

it registers it's own player expansion for some reasons and seems to be broken anyways, seeing the amount of errors it throws

#

use another plugin for bossbars like TAB which you already have

austere hawk
#

Someone is gonna help me or what ?

#

I dont get an error at the console for using that [console]

#

It dosent work

sweet vapor
junior musk
#

can you show your code?

sweet vapor
#

no pic perms

#

sent in dm

#

@junior musk

junior musk
#

?imgur

tender vaporBOT