#placeholder-api

1 messages · Page 147 of 1

rose dock
#

Is there a method to add placeholders in motds on essentials?

quick sphinx
rose dock
#

Like to show your played time on the server with OnTime plugin.

quick sphinx
#

I believe you can just use %ontime_time_played_total%

rose dock
#

Nope, it's not working

quick sphinx
#

hmm hold on

#

did you by chance do /papi ecloud download OnTime

#

then /papi reload

quick sphinx
# rose dock Nope, it's not working

"This was in progress (see #1945), but hasn't been touched recently due to the complexity of implementing it. I think PlaceholderAPI integration may need to wait until we're ready to do larger work on message sending in general (which could also enable JSON formatting etc)." - Jan 5, 2019

#

not sure if it has been touched since then

quick sphinx
#

You should check out other plugins like NitroJoinMessage

#

nvm placeholders dont work on that either =/

near willow
final shadow
#

@rose dock you can use the placeholder injector plugin and it will let you use placeholders in any essentials message or any message for that matter

#

Idk if it works on 1.16 but worth a try and if it doesn’t you can report back and maybe someone like myself or anyone who has time will update it

#
quick sphinx
final shadow
#

Ok did it spit out some errors

#

Also rather than that version, try the original that I made

quick sphinx
#

original is no good either

#

I just put it in expansions right?

final shadow
#

No lol it’s an actual plugin

quick sphinx
#

oh damn rlly

final shadow
#

Also you need protocollib

quick sphinx
#

nope still not working

final shadow
#

What are you testing to determine it broke

#

Was there an error

quick sphinx
#

let me see

final shadow
#

Or just tried to use a placeholder and it’s not parsing

#

Also chat injector uses brackets and not %

#

So {player_name} not %player_name%

quick sphinx
#

{vault_eco_balance} should work?

final shadow
#

Assuming you have the vault expansion yeah

quick sphinx
#

=/

final shadow
#

So no errors or anything )

#

?

quick sphinx
#

not that I can see

#

but it's not parsing

#

it just says {vault_eco_balance}

#

works in NitroJoinMessage but not in EssentialsX Motd

final shadow
#

Paste the startup log

quick sphinx
#

It only says 2 things about chatinjector and thats loading chatinjector and enabling chatinjector

quick sphinx
near willow
#

Im have:
Essentials, Listplayers, localtime, math, player, quests, server, skinsrestrorer, skript, statistic, vault, viaversion

quick sphinx
#

Did you try and download a expansion when this happened or can you not open your server?

near willow
#

On /papi reload error, I recently downloaded ListPlayers and it hasn't worked since then and now I'm trying to remove it

#

no that's not it: /

quick sphinx
#

you could try deleting the papi config and if that lets you run the server you can reinstall all of your expansions

near willow
#

I'm doing it right now

#

The error is caused by the skinrestorer

#

Thanks a lot, I had a problem with this for a long time and nobody answered me here

quick sphinx
#

no problem lmk if you have any other problems

west peak
#

did anyone know the AFK placeholder from PlaceholderAPI ?

dusky merlin
#

Hi ! i have a problem with a placeholder

i need check FakePlayer with this Placeholder %parseother_{username}_{placeholder_without_percent_signs}% you have a idea for that working ?

west peak
#

anyone know the placeholder for AFK in Placeholderapi ?

#

%afk% dont works , i use essentials for that normally but with my velocity tablist its dont working

silver minnow
#

what afk plugin?

#

@west peak for essentials its %essentials_afk%

west peak
#

thanks a lot booooys 😄

austere hawk
#

Anyone able to help with a java script place holder?

tender vaporBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

austere hawk
#
function flyStatus(){
    if("%essentials_fly%" === "no"){
        return "&c&lDisabled";
    } else {
     if("%essentials_fly%" === "yes"){
        return "&c&LEnabled";
    } 
}}
flyStatus();```
#

Doesn't work ^^

silver minnow
#

what if you do /papi parse me %essentials_fly%

austere hawk
#

%essentials_fly% when flying

#

but does say no if im not

silver minnow
#

oh what

#

so if you're flying

#

it shows the placeholder?

austere hawk
#

Wouldn't it be /papi parse me %javascript_flyStatus%

silver minnow
#

well I want to see what the essentials fly would output

austere hawk
silver minnow
#

weird

#

hm

austere hawk
#

Is it possible to just have an else statement for yes since if you're not not flying well, you are

#

if that's possible

#

but I have no knowledge at all of js so 🤷

#

oh wait

#

it works

#

I was doing essentials.fly

#

it gives yes for flying, no for not

#

?

keen crown
#

how do i make a placeholder all caps?

silk mulch
#

Hey y'all, hoping I might be able to find an answer here:
Setting up a Hunger Games plugin for a tournament, and have gone through the steps to install every other plugin needed, but for some reason I cannot get Placeholder API to even be recognized by the server. I'm familiar with installing plugins, and have gotten all the other plugins on my server to work, but running /plugins doesn't even detect PAPI. /papi isn't a recognizable command, and I really have no idea why this isn't working but the other plugins I've installed are working fine. Am I missing something obvious?

cunning elk
#

is there a newer version of expansion tokenmanager?

#

the latest on ecloud is from 2019

#

[PlaceholderAPI] tokenmanager is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

lusty mesa
#

i have a problem

#

where i can talk?

#

_.-

#

oh thanks

lusty mesa
#

a

#

nvm -

#

pls help, i want an economy on my server

cunning elk
#

%tokenmanager_tokens% isnt parcing

cunning elk
lusty mesa
#

in aternos?

cunning elk
#

vault is a plugin

#

that allows you to have an economy

#

Vault + Essentials would give you an economy

lusty mesa
#

Ok, Because MultiEconomy dont helped me

lusty mesa
#

Thank you

austere hawk
#

How can I connect it with my bungee network?

limber ice
#

@austere hawk connect what with your bungee network?

austere hawk
#

yes, I want to make scoreboard in lobby with online players on survival and pvp server

limber ice
#

I know it can be done, just not sure what the best way to do it

#

I assume there might be a scoreboard plugin that will have all the features built into it you need

#

I use a global tab plugin

#

@austere hawk

subtle cove
#

BungeeCord
/papi ecloud download Bungee

Allows you to show, how many players are online on the entire network, or just on a specific server.

%bungee_total%
%bungee_<servername>%

sacred fable
#

Hello this is epic what version am i supposed to use for 1.8

#

because the newest version of placeholderapi doesnt work for 1.8

subtle cove
#

Latest does work for 1.8

#

Send the error

wet basinBOT
#

@limber ice Unknown expansion.

sacred fable
#

this is the error

#

i think

#

i am sorry

#

i reliased i didnt download the expansions it was foolish for me to ask before i assesed my problem sorry about that

bronze pike
#

Quick one - anyone know where to find the dev builds?

#

Never mind ._.

delicate vapor
#

Hey

#

can i ask something

#

@bronze pike?

#

Or someone else?

#

@idle coral?

tender vaporBOT
#

@delicate vapor,

Hey!

Please respect the rules, be patient and don't ping staff members!

delicate vapor
#

Is it possible to use custom placeholders?

sinful meteor
#

wdym?

delicate vapor
#

im trying to use placeholders in my chat.

#

like before my ign

fickle tide
#

I've created a javascript file in Placeholderapi checking the name of the Land from Lands plugin, i want to set if there is no land created for that user it leaves space, but instead it shows None
I've tried with "None" and "&8None" as it contained color

delicate vapor
#

so what you want to say with this message?

#

you tried it?

fickle tide
#

well if there is no land to leave like '' and if there is land to display it

rain delta
#

Is there a placeholderapi extension that has placeholders that are numbers that start at 0 that I can add to with a command like /placeholder1score add 1

zealous arch
#

Why do the extensions uninstall after reboot?

trim mist
#

Which ones?

zealous arch
tender vaporBOT
#

@zealous arch,

Hey!

Please respect the rules, be patient and don't ping staff members!

zealous arch
#

Ok, I suppose

#

Already fixed, thanks tho

high kernel
high kernel
#

Hello?

muted cipher
#

You might need to reload your maven project (depending on your IDE) and run the maven install task to setup your local maven repo (atleast I think that's how it works, I do it very infrequently myself).

bronze pike
shell ravine
#

Someone who knows a placeholder that it shows the player head of the player in a GUI menu?

vivid sparrow
#

head-%player_name%

shell ravine
#

that as item name?

#

it wont work for now

tall beacon
#

Why the placeholderAPI's newest version isn't support Skript ?

#

doesnt't work

sturdy raft
#

hello, is the ckeckitem expansion can check the slot of the item, the damage or it's broken or not?

mint fable
#

you can't check a specific slot, but you can check if it's in their hand or not

#

and yes you can check damage

#

?checkitem

tender vaporBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.

mint fable
#

click the link to learn more

rare lily
#

Idk about or what the Taskable implementation in PAPI is there for, I just thought it would run in tick

#

But no, its functionality is just like register and unregister..

green sleet
#

Where do I report bugs for papi expansions specific to certain plugins? Most are made by clip that I'd like to report bugs for.

austere hawk
tender vaporBOT
#

@austere hawk,

Hey!

Please respect the rules, be patient and don't ping staff members!

austere hawk
#

It still shows a Alex head

#

Oh sorry Barry!

austere hawk
#

Oh all i had to do was
/papi ecloud download Player

#

Nevermind I suppose ^_^

austere hawk
shell ravine
#

thanks! i fixed it 😄

wise scaffold
#

heya

#

What could cause the LocalTime extension to get blocked in Docker? It's just a simple http request to an api, isn't it?

#

Just use %math to devide it by 8?

#

Pleasure, you might have to tweak the precision a bit and also make sure this only works in the overworld otherwise it'll definitely make no sense. Y level should stay as is.

silver minnow
#

make sure you have the math and player expansion

junior musk
#

did you try with /papi parse ?

silver minnow
#

also try / and not the division symbol

junior musk
#

also,make sure you use the latest version of the math expansion because the format you use is the new one

#

what do you mean?

#

I guess you would need to ask the author to add a way to disable the help cmd per world

#

or another way is to disable the permission per world through your permission plugin

stone fern
#

Is there a placeholder for bal top positions?

warm topaz
#

vault expansion ^
make sure u have downloaded the expansion and u have the leaderboard enabled in the placeholderapi config to make the placeholders work

stone fern
#

Ah wonderful thank you

junior musk
#

/dm execute ?

#

I don't think you can use conditions tho

hoary sierra
#

/ how do i fix it

long crater
#

vault placeholders don't work anyone know why?

hoary sierra
#

did u download it?

#

idk if you need to but try /papi ecloud download vault

hoary sierra
#

@long crater

subtle cove
#

Is it possible to use internal plugin placeholders on a deluxemenu?

warm topaz
#

deluxemenus can use any placeholder from placeholderapi

long crater
#

yes I downloaded it @hoary sierra

#

/papi parse hallowhead1 %vault_eco_top_balance_commas_1%

#

always returns 0

warm topaz
#

do u have the leaderboard enabled in the papi config

hoary sierra
long crater
#

um

long crater
#
    baltop:
      check_delay: 30
      cache_size: 100
      enabled: true
    formatting:
      thousands: k```
#

found it nvm

#

you rock

long crater
#

is the check delay in seconds or minutes?

paper kayak
#

when I use %worldguard_region_has_flag_<FlagName>% it always returns yes, it doesn't matter if it's in deny

austere hawk
green dragon
turbid tide
green dragon
#

hi guys, how can i create an holographic leaderboard by sorting players by a specific placeholder?

turbid tide
#

and those allow it as long as the placeholder is an integer

#

so 1000 not 1000.00 or 1,000 etc.

green dragon
#

cool ! how can i register a placeholder for my plugin? can i just use the API?

turbid tide
#

yeah. the wiki explains everything

#

its pretty simple

green dragon
#

aight, tysm!

long crater
#
    baltop:
      check_delay: 30
      cache_size: 100
      enabled: true
    formatting:
      thousands: k```

that check_delay is minutes?
turbid tide
#

try making it 1 and update your balance and see if it auto updates

#

if not then it probably is in minutes

long crater
#

okay, thanks.

turbid tide
#

I'll try and check the code as well see if its minutes or what

long crater
#

thank you 🙂

turbid tide
#

its seconds

long crater
#

that doesn't make sense than

#

minutes would

#

as I set it to 30

#

changed a balance and waited

#

it was like 30 mins

#

but I am trying to lower the number, but can't seem to

turbid tide
#

that's strange because according to the code its seconds

#
taskDelay = expansion.getInt("baltop.check_delay", 30);
balTopTask.runTaskTimerAsynchronously(expansion.getPlaceholderAPI(), 20, 20 * taskDelay);```
#

first line means that it gets the delay from config and it defaults to 30 if it doesn't find it

#

and its used here , 20 * taskDelay

#

its 20 * because it takes ticks so it changes 30 seconds to 30*20 ticks

#

which is 30 seconds or 600 ticks

long crater
#

I believe you

#

maybe it's because I have it in a holographicdisplay

#

nothing in here for refresh tho

#

so it should follow the papi one

final shadow
#

No

#

Hologram placeholders do not update on their own

long crater
#

oh so it won't update at all than.

final shadow
#

You need to add a special placeholder to it for it to refresh on its own

#

I assume you are using holographic extension or whatever it is

#

On the documentation it has the placeholders for refreshing

long crater
#

I was trying to remove holographic placeholders

#

and I removed extensions

#

no way to do it without them?

final shadow
#

No

long crater
#

dang

#

I guess I can get extension and remove placeholders

#

thanks

#

just need to figure out a way to show playtime tops

turbid tide
#

you use holographic display and and holographic extension?

#

then add {fast} at the beginning of the line

long crater
#

I don't use exxxtension

turbid tide
#

what do you use then?

long crater
#

I use, hologrpahic displays & placeholdes

turbid tide
#

holographic placeholders?

long crater
#

I am trying to get rid of placeholders, because it's pretty performance heavy and is causing issues with essentials

#

yes.

turbid tide
#

you should switch to HolograhpicExtension

#

with ProtocolLib

long crater
#

as I mentioned than, the only thing i have to figure out is how to show playtime top leaderboards

#

as hplaceholders has a playtime thing

quiet dune
#

Hello. Can you show me example with WorldGuard expansion placeholder %worldguard_<Any WG Placeholder>_<Priority (Lowest number = Highest priority)>%?
How I need to use this?

<Any WG Placeholder> - what?
region_name? worldguard_region_name? %region_name%? %worldguard_region_name%? {region_name}? How?

turbid tide
#

%worldguard_{worldguard_region_name}_1%

#

I think this is how you use it

#

you can also try: %worldguard_worldguard_region_name_1%

#

%worldguard_{region_name}_1%

#

and %worldguard_region_name_1%

quiet dune
#

Nothing
/papi parse me ... returns this placeholder

turbid tide
#

one of them will work xD

acoustic elk
#

how i can exclude vanished players from %server_online%?

trim mist
#

If you're using Essentials for vanish, I'm pretty sure there's a placeholder for that.

acoustic elk
#

nope

#

it isnt

#

only %if_vanished% that answer yes/no

vivid sparrow
#

%essentials_safe_online%

trim mist
acoustic elk
#

no wrong writed

trim mist
#

It... says... essentials?

acoustic elk
#

is something like this exist for cmi?

trim mist
#

Not sure. I think the author of CMI handles his own placeholders. Gotta go ask him.

wet basinBOT
#

@warm topaz Unknown expansion.

trim mist
#

Yeah we don't maintain anything for CMI since it's closed source. So, you'll have to hop on over to where CMI support is and pick their brain.

junior musk
#

CMI got its expansion built in the plugin

#

/cmi placeholders to see all of its placeholders or check its wiki page

fickle tide
#

Is it possible to remove hours in this placeholder ?
%player_first_join_date%
Like i want it to show only date

trim mist
#

Probably can use some kind of JS expansion to manipulate it.

grizzled pumice
vivid sparrow
heady urchin
#

@final shadow can u fix the javascript requirements for deluxemenus

tender vaporBOT
#

@heady urchin,

Hey!

Please respect the rules, be patient and don't ping staff members!

heady urchin
#

cant go over the integer limit of like 2.1b or something

vivid sparrow
#

javascript limitation != something broken

silver minnow
vivid sparrow
#

he should if he uses js'

silver minnow
#

oh

#

maybe

long crater
#

anyone know a way to have a playtime top leaderbaord?

heady urchin
#

@vivid sparrow it is broken

tender vaporBOT
#

@heady urchin,

Hey!

Please respect the rules, be patient and don't ping staff members!

cunning elk
#

Any papi builds I should update to due to paper's integration of adventure?

#

Please ping when replying

flint nacelle
# acoustic elk is something like this exist for cmi?

Online_player placeholder work , but i think only in cmi stuff like there own tab och other stuff it has build in.

It has other placeholder too, but it seams only work if player parse it. Has not have time to bug test it.

cunning elk
#
    var opcao;
    var hasKit = "%essential_has_kit_";
    if ( args.length === 1 ) {
        opcao = args[0];
        var finalArgument = hasKit.join(opcao + '%');
        if (finalArgument == 'yes') {
            return 'Sim';
        else { return 'Não';}
        }
    }
}
haskit();```
What am I doing wrong?
vivid sparrow
#

you have to parse the placeholder with PlaceholderAPI.static.setPlaceholders(BukkitPlayer, whatever)

tender vaporBOT
#

@cunning elk,

Hey!

Please respect the rules, be patient and don't ping staff members!

cunning elk
#
    var opcao;
    var finalArgument;
    var hasKit = "%essential_has_kit_";
    if ( args.length === 1 ) {
        opcao = args[0];
        finalArgument += hasKit + opcao + '%';
        if (finalArgument == 'yes') {
            return 'Sim';
        }
        else { return 'Não';}
    }
}
haskit();```
#

but it is only returning me Nao

#

even for instances that if i parse the essentials_has_kit placeholder, will return yes

vivid sparrow
#

because placeholders that are being formed in code something + something else aren't being parsed unless you use the the output of PlaceholderAPI.static.setPlaceholders(BukkitPlayer, something + something else)

cunning elk
#

how do I do that? Im sorry

#

im new to coding so its very new to me

vivid sparrow
#

val result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%")

cunning elk
#
    var opcao;
    var finalArgument;
    var hasKit = "%essential_has_kit_";
    if ( args.length === 1 ) {
        opcao = args[0];
        finalArgument += hasKit + opcao + '%';
        val result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%")
        if (result == 'yes') {
            return 'Sim';
        }
        else { return 'Não';}
    }
}
haskit();```
#

like this?

vivid sparrow
#

yeah

cunning elk
#

got an error

#
javax.script.ScriptException: <eval>:1:173 Expected ; but found result```
#
    var opcao;
    var finalArgument;
    var hasKit = "%essential_has_kit_";
    if ( args.length === 1 ) {
        opcao = args[0];
        finalArgument += hasKit + opcao + '%';
        val result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%");
        if (result == 'yes') {
            return 'Sim';
        }
        else { return 'Não';}
    }
}
haskit();```
#

i did add the semicolon to the end of your argument btw

keen crown
#

hi im a noob in js

#

need some help

#
function islands() {
    if "%superior_island_location_name_leader%" = "Togglingspeed";
    return "Your Island";
    else return "%superior_island_location_name_leader%";
}

islands();```
#

i need it so when the placeholder returns the players name

#

it would return "Your Island"

vivid sparrow
#

==

keen crown
#

ah okay

#

thanks <3

vivid sparrow
#

Np

keen crown
#
        <eval>:2:8 Expected ( but found TogglingSpeed
    if "TogglingSpeed" == "Togglingspeed";
        ^ in <eval> at line number 2 at column number 8```
#

got this issue :P

junior musk
#

put it in ()

vivid sparrow
#

you need ()

keen crown
#

where at?

junior musk
#

the if statement

keen crown
#

if "%superior_island_location_name_leader%" == "Togglingspeed" ();

#

like this?

junior musk
#

nah

keen crown
#

sad

junior musk
#

from After the if to the end of the line (which doesn't need a ; )

vivid sparrow
#

If (x == y) return ..
else return ..

keen crown
#

ah i get it now

#
        <eval>:4:4 Expected an operand but found else
    else return "TogglingSpeed";
    ^ in <eval> at line number 4 at column number 4```
#

new issue :P

junior musk
#

send the entire script

keen crown
#
function islands() {
    if ("%superior_island_location_name_leader%" == "Togglingspeed");
    return "Your Island";
    else return "%superior_island_location_name_leader%";
}

islands();```
junior musk
#

remove the ;

keen crown
#

from?

junior musk
#

line 2

keen crown
#

yay

#

I just get my name returned lol

#

and how do i do it so instead of my name its the players name whos parsing it

vivid sparrow
#

BukkitPlayer.getName()

keen crown
#

👍

cunning elk
#
    var opcao;
    var finalArgument;
    var hasKit = "%essential_has_kit_";
    if ( args.length === 1 ) {
        opcao = args[0];
        finalArgument += hasKit + opcao + '%';
        val result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%");
        if (result == 'yes') {
            return 'Sim';
        }
        else { return 'Não';}
    }
}
haskit();```
#

what am I missing?

#

I have to reparse the placeholder to then use it in yes or else

rare lily
#

There are only 3 tasks left on JSExp 1.7 now: data saving, exception handling and classloader stuff

cunning elk
#

is there a way to sink placeholder information?

#

I wanted to add a players total player time from each server and display total time played in our network

turbid tide
#

Don't think so. you'll probably need a plugin that just keeps track of the playtime.

#

I mean I think there is an API that allows you to have Bungee placeholders but IDK how it works.

tender vaporBOT
#

@cunning elk,

Hey!

Please respect the rules, be patient and don't ping staff members!

cunning elk
#

im sorry

#

blitz, would you know what im doing wrong here?

cunning elk
#

it only returns else

#

so 'nao'

turbid tide
#

huh 1 sec

#

yes I think I know what it is

#

I'll send you the fixed one

#
function haskit() {
  if (args.length < 1) return "No Arguments"
  var hasKit = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%", "essentials_has_kit_" + args[0] + "%")
  return result == "yes" ? "Sim" : "Não"
}
haskit();```
#

try this

vivid sparrow
#
function haskit() {
  if (args.length < 1) return "No Arguments"
  var result = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%essentials_has_kit_" + args[0] + "%")
  return result == "yes" ? "Sim" : "Não"
}

haskit();```
dim harbor
#

does anyone know why my placeholders arent working

#

i installed a placeholder package and they dont replace

fallow nymph
#

pogg I'm here

#

so umm is there a way to list all the placeholders a expansion registered?

trim mist
#

If it's from the ecloud, yes, if not, probably not unless the author lists it somewhere.

fallow nymph
#

off

#

it's a custom plugin and the dev is not responding oof

trim mist
#

Can always decompile it and look.

fallow nymph
#

well the thing is

#

the plugin broke

#

since it was like an extension to a public plugin to add it into papi

#

and the plublic plugin updated and it seem to have broke

#

I'm not sure it's because of the update or the plugin itself

#

so I was thinking to list it in-game

#

there's like so many layers that it could be broke on

#

plugin to extension
extension to papi
papi to Mvdw
Mvdw to FB

dusty gyro
#

why can't I find mycommand's placeholder ecloud expansion?

sonic trellis
#

Is there an expansion that adds placeholders for user keybinds? In case someone has a different sprint key, etc.

vivid sparrow
#

Suggest it on github

final magnet
#

Was wondering what the placeholder to link deluxetags with essentials chat

tender vaporBOT
#
FAQ Answer:

DeluxeTags showing in essentials chat:

  1. Stop the server.
  2. Turn off the DeluxeChat option in the DeluxeTags config.
  3. Turn off the format_chat option in the DeluxeTags config.
  4. Put {deluxetags_tag} in your essentialschat chat format.
  5. Replace all the placeholders in the DeluxeTags config
    %placeholder% to {placeholder} (Ex: %deluxetags_tag% to {deluxetags_tag}).
  6. Start the server.
outer steeple
#

How can I use a placeholder inside a plceholder?

turbid tide
#

bracket placeholders

outer steeple
#

like in this one: %Advancements_completedAmount_<player>%

turbid tide
#

{placeholder_Here}

outer steeple
#

ah

turbid tide
#

if that one supports it tho

outer steeple
#

probably not

turbid tide
#

not all placeholders support bracket placeholders

outer steeple
#

it doesnt say so

turbid tide
#

I mea it doesn't have to say. A lot of them just support them by default but not all of them

outer steeple
#

i tried doing %Advancements_completedAmount_{player_name}% but didnt work

turbid tide
#

yeah probably doesn't support them then

#

can you maybe try and return the results of each placeholder? Instead of total being a number make it a string and just concatenate the placeholders to it. see what it returns

mint fable
#

ex: /papi parse me %premiumvanish_bungeeplayercount@survival1%

#

I also assume the server name has to match caps exactly

#

so if it's Survival vs survival you might need to use that

turbid tide
#

cj he said here it works

#

its clearly a problem with the script

#

but idk what

acoustic elk
turbid tide
#

why what?

#

why is it not the latest?

#

go to plugins/placeholderapi/expansions and delete all the BungeeExpansions jars

#

you probably have multiple

#

and then redownload

acoustic elk
#

thanks

mint fable
#

does %premiumvanish_bungeeplayercount@survival2% also work?

tender vaporBOT
#

@cunning elk,

Hey!

Please respect the rules, be patient and don't ping staff members!

cunning elk
tender vaporBOT
#

@cunning elk,

Hey!

Please respect the rules, be patient and don't ping staff members!

turbid tide
cunning elk
#

that was the problem

#

thank you so much

turbid tide
#

no problem

storm sorrel
#

Hey!
When I want to download Vault with placeholder, everything works but at the time of the / papi reload in order to activate it, I have this mini error in my console and the Vault placeholder does not work

[19:24:05] [Server thread/INFO]: T3scioR_ issued server command: /papi ecloud download Vault [19:24:05] [Thread-50/INFO]: [PlaceholderAPI] Fetching available expansion information... [19:24:08] [Server thread/INFO]: T3scioR_ issued server command: /papi reload [19:24:08] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [19:24:08] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information... [19:24:08] [Server thread/ERROR]: [PlaceholderAPI] expansion class VaultExpansion is outdated: Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/economy/Economy

cunning elk
#

Place the jar in expansions and restart

storm sorrel
#

I tried this and even manually downloading it doesn't work :/

steep thorn
storm sorrel
#

I just looked and ... I had incorrectly installed Vault and therefore the plugin itself did not work. I'm sorry for the inconvenience

#

I have another problem, I have correctly installed vault but this time the expansion is installed well in the folder yet it does not work

rich flint
#

Uh

#

So I get

#

This weird error

#

And i cant show it here

#

Ping me plz

#

What is this

lilac oxide
#

Is there a way to remove pre-formatted color codes from a placeholder? (an expansion or something)

#

preferably without js

quick sphinx
#

how do I round to 2 decimal points using math?

tender acorn
#

what is the kill place holder?

quick sphinx
tender acorn
#

ye

quick sphinx
#

%statistic_player_kills%

#

do /papi ecloud download statistic

tender acorn
#

Ohhhhh

#

i think that is why my score board is not showing the kills

#

cause i did that but now i downloaded the thing

#

Thanks!

quick sphinx
#

try to make it round to 2 decimal points using %math_[precision]:[rounding]_<expression>% any help?

#

nvm solved

young lynx
#

hello

hollow ledge
#

what command /papi should I use to put "easyprefix" on the scoreboard?

turbid tide
austere hawk
#

when i put placehorders in chat it doesnt show the value

turbid tide
austere hawk
#

its bw1058

#

bec for aj leaderboards

#

i need to type the placeholder in chat

#

to be able to register

#

it

#

it says u have to writea valid placeholdder

turbid tide
#

have you read their wiki? The ajleaderboards wiki I mean

#

it tells you how to use it

austere hawk
#

yes

#

if i type any placeholder

#

i ccant send images

tender vaporBOT
#

@austere hawk,

Uploading Images

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.

austere hawk
#

smart

hollow ledge
#

How can I show the number of people online in a world on the scoreboard?

austere hawk
#

oof

#

ye

turbid tide
austere hawk
#

i download player ecould

#

and typed player in chat

#

it dint displayed my name

turbid tide
#

do /papi parse me %player_name%

#

tell me what it says

austere hawk
#

ye

#

it displayes name

#

then

turbid tide
#

well then the problem is your chat plugin

#

it doesn't parse placehodlers in the messages

austere hawk
#

i dont have any chat plugin

#

tho

turbid tide
#

well yeah then the placeholders clearly won't work in chat

#

The placeholder should only output the number for the player, and nothing else.

#

this is to create leaderboards ^^^

#

you can't do leaderboards with their names.

#

only with numbers

austere hawk
#

like

#

this one %bw1058_stats_firstplay%

hollow ledge
#

Should I put some /papi ecloud download?

turbid tide
turbid tide
austere hawk
#

nothing

#

xdd

#

when i pase then it returns

turbid tide
#

it returns what?

hollow ledge
#

Why does it say that there is no one connected? I am

turbid tide
#

maybe you used the wrong world name

hollow ledge
#

no, i wrote the name of the world

turbid tide
#

what's the exact world name?

hollow ledge
#

"Eventos"

#

its a world of multiversescore

turbid tide
#

%server_online_Eventos%

#

if its eventos and not Eventos that matters as well

hollow ledge
#

oh, thx xD

#

i
yes, that was it, I had written "<Eventos>"

#

thxsm

austere hawk
tender vaporBOT
#

@austere hawk,

Hey!

Please respect the rules, be patient and don't ping staff members!

austere hawk
#

oops

#

it dosent works in hologram also

turbid tide
#

ugh check the link you sent

austere hawk
#

oof

#

here

#

check this out

#

it dont display that arena display count

#

insted it shows the placehodler insted

turbid tide
#

but have you tried it with /papi parse me ?

austere hawk
#

it works then

#

but i cant add that in holograms

#

xd

turbid tide
#

what hologram plugin do you have?

austere hawk
#

holoographic display

turbid tide
#

and you have HolographicExtensions as well?

austere hawk
#

yes

turbid tide
#

and ProtocolLib as well?

austere hawk
#

no

turbid tide
#

well you need it. says on the HE spigot page

austere hawk
#

kek

scarlet valve
#

This a a random question
But is there any placeholder that can say the amoun of players that are in survival in a specific world?

junior musk
#

%server_online_<world>% I think

#

yup

scarlet valve
#

I mean

#

If there is 2 in survival mode

#

And 1 in spectator

#

If i use that placeholder it will say 3

#

I want it to say 2 the amount of players in survival mode

junior musk
#

ah

#

idk then

turbid tide
#

as in make it be able to take in multiple types

#

or subtypes

#

whatever you called them

junior musk
#

yeah but I'm too lazy x)

#

I want to add it to my plugin, but got other things to do

turbid tide
#

I know. I am too. but sometimes I just get and do something and don't stop until I'm done. you should do the same

junior musk
#
#

look at this

#

my imagination is too big for me ;-;

turbid tide
#

well I'm kinda half the oposite half the same. I don't have any imagination and I'm lazy

brisk coral
#

All ew

austere hawk
#

how to (setting) interlock papi - discord srv plugin

vivid sparrow
#

@junior musk this is not Python ffs

brisk coral
#

lISkOv

junior musk
#

I don't even remember what that is x)

#

it's been so long I've ever touched that think lol

vivid sparrow
pseudo mist
#

oh... Just did a little search and actually the advancements placeholder is used by people. 😄 I thought not many people would use it.
if there is any suggestion/problem/error to add to the placeholder, just let me know by discord

turbid tide
#

yeah some people use it. its not bad

icy patrol
#

How would you get the number of people on a server?

warm topaz
#

%server_online%

icy patrol
#

ok ty

worthy island
#

can i force PlaceHolderAPI to load Expansion?

#

since PlaceHolderAPI only loads the Expansions after the server has fully started i cannot use its Placeholders before

#

basically i got %server_name% %server_version% started at %server_time_dd.MM.yyyy%

#

but when the server closes i get Generic Server Name 1.16.5 has shutdown at 25/02/2021

#

also PlayTime does not work

lilac oxide
#

Can anyone help me with this papi-js error?
https://paste.helpch.at/leguyevata.js

[PAPI] [Javascript-Expansion] An error occurred while executing the script 'chatformat':
        <eval>:26:47 Missing close quote
        modifiers = modifiers + ' ' + args[1]';
                                             ^ in <eval> at line number 26 at column number 47
#

wait I forgot to reload papi

#

rip

lilac oxide
#

PlaceholderAPI-Javascript is amazing, since it makes up for other plugin's stupidity :p

reef garnet
#

Can anyone help me with the Progress placeholder?
The progress bar doesn't know what percent to display when using custom placeholders like:
&f2 Wither kill &a- &f[%progress_bar_{statistic_kill_entity:wither}_c:&e|_p:&e|_r:&e|_l:20_m:25000_fullbar:&a&lCompleted!%&f]

reef garnet
worthy island
#

turns out the problem was the plugin that i was using

#

thx anyway

lapis summit
#

can anyone help me icant download any expansions like Vault and Player

lapis summit
#

howwww

#

help help

flint nacelle
lilac oxide
#

Any console error?

austere hawk
#

Placeholders, and deluxechat. i can't get it to show timeplayed

#

i have installed the playertime placeholder

fluid heath
#

https://imgur.com/BmJOtdx I downloaded this add-on
https://imgur.com/6hrtOd6 online output does not work (
https://imgur.com/hK1tN7k the world i have really named a lobby

no errors in the console

plugin version: PlaceholderAPI-2.10.9.jar

%listplayers_in_world(discord applies chat formatting)<worldname>% it doesn't seem to work?

sorry for the screenshots on this site, I didn't figure out where else I can upload them

how can i withdraw online from my additional worlds to a placeholder?

mint fable
#

I recommend trying the playerlist expansion

#

I believe it's more updated than listplayers

#

@fluid heath this

fluid heath
#

can I get the number of players in a certain world?

junior musk
#

yes

fluid heath
#

thanks now I will try to do it

junior musk
#

%playerlist_online,world,yes,amount,<worldname>%

fluid heath
#

yes it really worked thank you so much!

warm topaz
fluid heath
#

oo I didn’t know about that. Thanks for the information. I’ll try not to forget about it.

austere hawk
#

It seems like they don't

#

For DeluxeMenus

austere hawk
#

Anyone can help me?

warm topaz
austere hawk
#

Latest

warm topaz
#

and what plugin/expansion is that? do u have it downloaded

austere hawk
#

1.13.3

#

A custom plugin

warm topaz
#

%shooter_% palceholder i meant

#

ah

austere hawk
#

Works in every plugin but deluxemenu don't accept it

warm topaz
#

o wait, how does that not error if u dont have it wrapped in ''?

#

material: 'head-%shooter_blah%'

austere hawk
#

Do I have to use ''

#

?

warm topaz
#

yea im pretty sure anything that has a special character (% in this case) would have to be

austere hawk
#

With ' ' didn't work, trying with " "

#

My bad nvm

#

Nope doesn't work

turbid tide
#

what does %shooter_blah% return ?

austere hawk
#

The first placement of the Top Killstreak

#

It's a leaderboard placeholder essentially

turbid tide
#

right and what's your deluxemenus verison?

#

oh 1.13.3

#

you said that

#

hmm

austere hawk
turbid tide
#

can you take the name of whoever is top1

#

and make the material head-NAME

#

instead of the placeholder?

#

see if that works

austere hawk
#

Ok

#

Yes it does

#

I can't show the picture

turbid tide
#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

turbid tide
#

very very strange

#

what if you use the placeholder %player_name%

austere hawk
#

Yea works

fossil wasp
#

Um ... I wonder why the placeholder doesn't work %vault_eco_top_rank%

warm topaz
#

have u downloaded the expansion

fossil wasp
#

This way I first understand that you think I'm a beginner in the business itself, but go as I'm not stupid and I know what the syntax is for vault and all the basics but simply the pope doesn't work

warm topaz
#

what 😂

#

ok but did u downloaded the expansion

fossil wasp
#

AS II said i was !!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!

warm topaz
#

uh ok

#

now did u enable the vault leaderboard placeholders in the placeholderapi config

fossil wasp
#

Are you fucking with me or?

warm topaz
#

???????????????

#

do u want my help or not

#

these are simple yes or no questions, just answer them

fossil wasp
#

Dude, I did everything right, it's just that the Pope doesn't work, doesn't load ...?

warm topaz
#

Dude, I did everything right
explain what u did for this then

fossil wasp
#

Well of course I put a vault in the paper but it just won't load the pope I don't know any other way how to express myself

#

papi*

#

I went to papi ecloud download vault so papi reload of course, but when I put placeholders like I said who won't load

warm topaz
#

ok so if u do /papi parse me %vault_rank% ingame, what does it return?

fossil wasp
#

Moment

#

Just another question since I'm doing the menu process baltop menu means when someone knocks / baltoop to open his gui and baltop 10 players, I'm just interested in how the material goes for the guy to have a head as the first player and the other 10 if you understand me placeholders how it goes

#

Specifically, did head-% vault_eco_top_player_1% and head;% vault_eco_top_player_1% do both?

warm topaz
#

if ur on deluxemenus v1.12+ then use head-%%, if ur on a lower version then use ;

fossil wasp
#

Okay, my demo is on the latest version so I'm using -

#

Okay, I apologize but I'll tell you what message I get when I type /papi parse me %vault_rank%

#

....

warm topaz
#

then u dont have the expansion installed

#

when u do /papi ecloud download vault, /papi reload do u get any errors?

tender vaporBOT
#

@austere hawk,

Possible Solution Found:

A title of GUI can't be longer then 32 characters, this includes formatting characters.

fossil wasp
warm topaz
#

if u dont appreciate my help then fuck off lmao

slow crystal
#

u are running an outdated version of the pope 🙂

quiet gulch
slow crystal
#

Are u fucking with me or?

warm topaz
#

🥲

loud moss
#

Hey guys! Is there anyone here that knows why my Math expressions aren't working properly? I want to get rid of the decimals so the input shoots out 7 instead of 7.000 as an example. I've tried %math_1+1[precision:0]% but that just shoots out the raw input, and %math.underscore.[precision:0]_1+1%, does nothing instead and still displays the numbers as 7.000

turbid tide
#

[precision:0] was changed in the latest version of the math expansion

#

%math_0:_1+1%

#

its like this now

#

I think

#

so 0: is the precision

loud moss
#

Thank you so much! My hair was starting to fall out because of this 🤯

austere hawk
tender vaporBOT
#

@austere hawk,

Hey!

Please respect the rules, be patient and don't ping staff members!

austere hawk
#

ops

#

Anybody knows what is this error tho?

sinful meteor
#

no idea what's causing it, but I recognise it

austere hawk
#

😂

#

Could be a datapack maybe?

#

Are you still available for that PlayerEquipmentPacket?

#

I may really need to solve that issue, seems impossible..

pulsar halo
#

When i try to use placeholder "%player_name%" it doesnt work

fervent spire
#

@pulsar halo Do you have the Player expansion for papi installed?

#

If not. papi ecloud download Player then papi reload and the placeholder should start working.

pastel pelican
#

hello

#

Im having trouble with placeholder %craftingstore_donator% its not working

hallow swallow
#

Hey, What is the placeholder for how many unique players have joined my server

#

I can't seem to find it

warm topaz
#

%server_unique_joins%

hallow swallow
#

Oh sick awesome

heady urchin
#

Can someone help me, super important and my menus are breaking

#

the operators like >= in deluxemenus requirements

#

they max out and stop working at java interval limit

stone edge
#

I think there isn't but i'll ask anyways. Is there a placeholder from player expansion that returns if player is shifting/sneaking?

umbral wren
#

Hi, in my plugin i want to make a command that display players list in each world
for this, i want to replace the %world% with the multiverse alias
but the methode setPlaceholders need a player in parameter, but certain of my worlds are empty (no players online) so how can i get the alias ?

#

my actual code :

Bukkit.getWorlds().forEach(world -> {
    String worldAl = PlaceholderAPI.setPlaceholders(player, "%multiverse_world_alias%");
    String players = StringUtil.seperatedList((List<String>) world.getPlayers().stream().map(OfflinePlayer::getName).collect(Collectors.toList()));
        player.sendMessage(StringUtil.placeholder(listItem, new StringPlaceholder("%world%", worldAl), new StringPlaceholder("%players%", players)));
});
pastel pelican
#

Can i get help here???

#

%craftingstore_donator% is not working

ionic aspen
#

/papi parse me %Advancements_completedAmount_<player>%

Help ** player ** not working

umbral wren
turbid tide
pastel pelican
#

on bungee

turbid tide
#

well that's the problem

#

PAPI doesn't support bungee

#

yet

pastel pelican
#

ohhh

#

well

#

but

#

ive been using ajleaderboards

#

with PAPI

#

and it works

turbid tide
#

on bungee?

#

I don't believe that

pastel pelican
#

yes

#

feel free to check out my server

turbid tide
#

I can bet you money that PAPI doesn't run on bungee

#

well the spigot release at least

#

unless you have some custom bridge

#

by itself papi doesn't run on bungee

pastel pelican
#

i can dm you the ip

#

server is in lockdown anyways

#

so no people online

turbid tide
#

right but I can't check what plugins you have where.

#

if you go in your FTP in bungee/plugins

#

is PlaceholderAPI.jar in there?

pastel pelican
#

naah, not like that

#

why would i place it there?

turbid tide
turbid tide
#

and as far as I know CraftingStore doesn't have a bridge

#

from bungee to spigot

pastel pelican
#

ohh well the craftingstore just sends the custom commands to selected server where the plugin is held

#

so i guess it`s not even using bungee

#

the craftingstore itself

turbid tide
#

wait but where do you have CraftingStore.jar installed?

#

on bungee

pastel pelican
#

nope

turbid tide
#

or on backend?

#

well that's what I asked at first. you probably understood wrong. if you have CraftingStore on your backend then yeah it should work

pastel pelican
#

hmmm

turbid tide
#

and both plugins are runing? if you go on the server where /papi parse me %craftingstore_donator% doesn't work and do /plugins it shows both plugins green (working) ?

pastel pelican
#

well

#

whenever i do /papi parse me %craftingstore_donator% it just send blank in the chat

turbid tide
#

that's probably because you have no donors

#

or at least none of them are saved

pastel pelican
#

i had 3 donors

#

ohhh

#

but not on this server tho

#

so, it should work when someone donates?

turbid tide
#

yeah

#

if it didn't work

#

it would've just returned back the same placeholder

#

so exactly %craftingstore_donator%

#

not an empty string

umbral wren
tender vaporBOT
#

@umbral wren,

Hey!

Please respect the rules, be patient and don't ping staff members!

umbral wren
#

sry ping 😢

#

Not working, even with null (world alias is not visible)

Bukkit.getWorlds().forEach(world -> {
  String worldAl = PlaceholderAPI.setPlaceholders(null, "%multiverse_world_alias%");
  String players = StringUtil.seperatedList(world.getPlayers().stream().map(OfflinePlayer::getName).collect(Collectors.toList()));
  player.sendMessage(StringUtil.placeholder(listItem, new StringPlaceholder("%world%", worldAl), new StringPlaceholder("%players%", players)));
});

config.yml

list:
  header: '&3Worlds&7:'
  item: '&7- &e%world%&7: &f%players%'
vivid sparrow
#

Pretty sure it uses the world at player's location @umbral wren just use the multiverse api

#

Otherwise how would it know what to display

umbral wren
#

i'm using multiverse api, but how to display it like i want

vivid sparrow
#

Papi placeholders are not what I meant by "multiverse api"

umbral wren
#

is there a public multiverse api ?

vivid sparrow
#

Google it

umbral wren
#

i'll check, thanks

somber lark
#

where do i get placeholderapi's api

somber lark
#

thank you 😄

hexed burrow
#

hi

lilac oxide
#

whats the placeholderAPI expansion for a % bar again?

#

I forget its name

junior musk
#

Progress

lilac oxide
#

Thank you

somber lark
#

Hi, so i just imported the api for placeholderapi and it still isnt detecting it. here is what i did

#
    mavenCentral()
    url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}

dependencies {
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
    compileOnly 'me.clip:placeholderapi:2.10.9'
}```
#

nvm fixed

#

forgot to add it to library

open glade
#

would it be possible to take in any sort of identifier from player?

#

so %bosstimer_[bossname]%

#

or would I personally have to register them?

vivid sparrow
#

In what context?

storm sorrel
#

I have problem, I have correctly installed vault but this time the expansion is installed well in the folder yet it does not work

turbid tide
storm sorrel
#

Only Vault does not work

turbid tide
#

I mean none of the vault placeholders work? Like have you tested all of them?

storm sorrel
#

If like I just said they all work except Vault^^^

turbid tide
#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat Paste - Usage
Hastebin

turbid tide
#

send a startup lo

#

log*

#

then

storm sorrel
sudden yacht
#

im having an issue with my luckperms and deluxe chat not showing my prefixes, they were working last night and for some reason no longer work. can anyone help me out with it?

turbid tide
storm sorrel
#

Hastebin does not work:

[22:24:54] [Server thread/INFO]: T3scioR_ issued server command: /papi ecloud download Vault [22:24:54] [placeholderapi-io-#0/INFO]: [PlaceholderAPI] Fetching available expansion information... [22:24:56] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 5012ms or 100 ticks behind [22:24:58] [Server thread/INFO]: T3scioR_ issued server command: /papi reload [22:24:58] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [22:24:58] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information... [22:24:59] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: player

turbid tide
#

and it didn't say it registered the vault one?

#

do /papi ecloud list installed see if Vault is there

storm sorrel
#

There is only the placeholder Player but not Vault

turbid tide
#

ok can you go to plugins/PlaceholderAPI/expansions and delete any jars from there related to Vault?

#

?Ecloudblock

tender vaporBOT
#
FAQ Answer:

Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

turbid tide
#

then do this ^

storm sorrel
#

It still doesn't work, maybe I'll try to reinstall Vault

turbid tide
#

hmm idk if its anything to do with Vault. it clearly say it loads but for some reason the Vault expansion isn't loading

#

what PAPI version do you have?

#

btw after installing it there have you done /papi relaod?

#

you have to rload as well

#

also maybe even try a server restart

arctic quarry
#

do you guys know any tutorial on how to make an api for plugins?
im new to api 😅

storm sorrel
tender vaporBOT
#

@storm sorrel,

Hey!

Please respect the rules, be patient and don't ping staff members!

zealous onyx
#

Hey, no idea if this is the right place to ask this, but is it possible to show per "track" via a placeholder in which group you are in that track

#

(LuckPerms)

worn canopy
#

Hi, does I need a correct java version, to javascript works ? I tried to add a placeholder javascript, but when I reload, the console says "[PAPI] [Javascript-Expansion] 0 script loaded!"
Im asking this, because when I try the same placeholders in a machine with java 8 works, but with java 15, not.

storm minnow
#

hi, what's the link to the latest dev version?

storm minnow
rare lily
#

@worn canopy Nashorn engine was deprecated and has been removed in java 15, so that's why

lilac oxide
#

Are there any replacements for nashorn, or is everything gonna just switch to groovy?

trim mist
#

I did a DeluxeMenus release using Rhino when Java 15 first came out and that seemed to have gone decently.

tender vaporBOT
#

@lilac oxide,

Hey!

Please respect the rules, be patient and don't ping staff members!

trim mist
lilac oxide
#

Ah, cool!

#

So almost a 1:1 drop in

trim mist
#

Yeah

lilac oxide
#

Script side atleast

#

Cool!

lapis bloom
#

I was kinda curious if the checkitem expansion supports HeadDatabase skulls? If so how would I be able to check if a user has a specific skull?

#

I know you can define a hdb material in shopguiplus with hdb-number but is this also how it works for the checkitem expansion?

#

figured it out, managed to get it to work with the modifier namequal

lapis bloom
#

Is the only way of actually removing items /papi parse or is there some other way to do this?

mint fable
#

not just papi parse

#

anywhere/anytime the placeholder is parsed

#

deluxemenus click commands for example

lapis bloom
#

yeah i think i get that part, but how do you make it so it doesn't parse, so the result isn't shown in console

mint fable
#

wym?

trim mist
#

If you run the parse command via Console, it will return the result to the console. If you run it as a Player, it will not show the result in the console.

austere hawk
#

Can someone help me do a custom return if value is empty?

turbid tide
#

with js?

austere hawk
#

for example %townyadvanced_town% returns nothing if player isnt a town

#

no just ingame I remember there being a way to do it I forgot

#

Id like it to return None

turbid tide
#

yeah with js

austere hawk
#

yeah

#

can you help me out :)))

turbid tide
#

so do you know how to even set up a js placeholder?

#

?js-tag

tender vaporBOT
#
FAQ Answer:

Add a space to the chat format if there's a tag

var tag = "%deluxetags_tag%";

function tagFormat() {
  return tag === "" ? "" : " " + tag;
}

tagFormat();
austere hawk
#

nope

turbid tide
#

this is the code tho ^

#

just change the value

#

to whatever your placeholder is

#

and the return

austere hawk
#

where do I put it

turbid tide
#

so basically

austere hawk
#

is there a js file in config

turbid tide
#
var placeholder = "%placeholder%"
function f() {
  return placeholder === "" ? "WHAT TO RETURN IF IS EMPTY" : "WHAT TO RETURN IF ITS NOT EMPTY";
}
f();```
#

will give link

#

to js wiki

austere hawk
#

uhhh

#

Ik how to do java script just dont know where to put that

turbid tide
#

yep yep 1 sec

#

am in a game of cs:go searching for the wiki rn

austere hawk
#

thx ❤️

austere hawk
#

hey can you help me out with doubles

#
var placeholders = "%townyadvanced_town_balance%"
function f() {
  return placeholders === "" ? "N/A" : placeholders;
}
f();
#

that doesnt work %townyadvanced_town_balance% returns $234.00 for example

#

I assume it doesnt want to work because its not a string

#

because the exact same function works perfectly with town name just not town balance

tender vaporBOT
#

@silk quail,

Hey!

Please respect the rules, be patient and don't ping staff members!

#

@silk quail,

Hey!

Please respect the rules, be patient and don't ping staff members!

#

@silk quail,

Hey!

Please respect the rules, be patient and don't ping staff members!

twin blaze
#

how do i make custom placeholders with PAPI config

turbid tide
turbid tide
twin blaze
#

how to make N/A placeholders show as N/A on scoreboards or holographic displays

turbid tide
#

javascript expansion.

austere hawk
#

Hello there is a way to modify the yes that comes out on %essentials_kit_is_available_<kitname>% with deluxemenu

silver minnow
#

javascript expansion.

#

although there might be another way

twin blaze
#

Link to jsk expansion

turbid tide
#

above

austere hawk
austere hawk
#

var placeholder = "essentials_kit_is_available_joueur";
var hasKit = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");

function hasKit(){
if(hasKit == "yes"){
return "&aTrue";
}
return "&cFalse";
}

hasKit();

#

and in the lore I put
lore:
- "Kit Joueur"
- "%javascript_example%"

turbid tide
austere hawk
#

What is wrong? [PlaceholderAPI Plugin]

java.lang.RuntimeException: Essentials API is called before Essentials is loaded.
at com.earth2me.essentials.api.Economy.getUserByName(Economy.java:65) ~[?:?]
at com.earth2me.essentials.api.Economy.getMoneyExact(Economy.java:128) ~[?:?]
at com.earth2me.essentials.api.Economy.getMoney(Economy.java:110) ~[?:?]
at net.milkbowl.vault.economy.plugins.Economy_Essentials.getBalance(Economy_Essentials.java:79) ~[?:?]
at net.milkbowl.vault.economy.AbstractEconomy.getBalance(AbstractEconomy.java:22) ~[?:?]
at com.extendedclip.papi.expansion.vault.VaultEcoHook.getBalance(VaultEcoHook.java:223) ~[?:?]
at com.extendedclip.papi.expansion.vault.BalTopTask.run(BalTopTask.java:52) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.5.jar:git-Paper-455]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.5.jar:git-Paper-455]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.5.jar:git-Paper-455]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_275]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_275]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]```
turbid tide
#

make sure you have the plugins: Vault and EssentialsX installed and they both work

austere hawk
#

How do I fix that then?

turbid tide
#

well then EssentialsX is loaded to late

austere hawk
# turbid tide and what does it say in lore?

console error
[17:12:25 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'example':
TypeError: placeholder is not a function in <eval> at line number 10

turbid tide
turbid tide
#

you don't.

#

the code you sent me

#

is not the code you have in example.yml

#

according to the error at least

#

have you done /papi reload

#

just to make sure it uses the last code you've made?

sage dawn
#

Hello,
I have a question.
I am currently working on a dividing my MC server into multiple mini-servers to spread out load more effectively.

I am currently trying to figure out if it's possible to do PAPI lookups between servers.

For this use case, I'd like to run DragonSlayer plugin on a single server, then have the user scoreboards displaying the next respawn time regardless of what server instance they are currently logged into

turbid tide
#

There are some APIs that say you could ask for placeholders from other servers. I can give you link if you want

#

but this is not possible with just PAPI.

#

I just know it exists

sage dawn
#

yeah, I have been hunting for something that elevates them into Bungee

turbid tide
#

btw those reviews are very misleading. They thought its a plugin they can just download but its not. its an API

sage dawn
#

yeah, so I would need a plugin to interact with that API then?

#

sorry if i'm asking dumb questions

turbid tide
#

yeah basically you'll need a plugin that uses the API.

tender vaporBOT
#

@austere hawk,

Hey!

Please respect the rules, be patient and don't ping staff members!

long crater
#

[19:10:59 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.10.10-DEV-122 generated an exception while executing task 4903
java.lang.NullPointerException: null

silver minnow
tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat Paste - Usage
Hastebin

silver minnow
#

the spam is more useful than you think 😉

long crater
silver minnow
#

wait what

#

you sure?

#

we can't really do much then :/

long crater
#

Dang

silver minnow
#

maybe someone knows

#

but I doubt it

#

😦

#

since idk what else to say

tender vaporBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

silver minnow
#

and when does this occur? @long crater

long crater
silver minnow
#

what expansions do you have?

long crater
#
  1. Envoys dotrar Y 3.0.0
  2. Server clip Y 2.4.0
  3. LuckPerms luck Y 5.0-R2
  4. Parkour steve4744 Y 6.3
  5. GriefPrevention pixar02 Y 1.5.2
  6. Vault clip Y 1.7.0
  7. Statz ironic_8b49 Y 1.6.2
  8. Player clip Y 1.7.2
  9. Statistic clip Y 2.0.0
  10. AutoRank clip Y 1.1.1
  11. Essentials clip Y 1.2.4
turbid tide
#

and you're 100% sure nothing else was shown? can you maybe send the log just in case you missed it?

tender vaporBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

silver minnow
#

send this

long crater
#

I'll reply with it when I get a second

silver minnow
#

;-;

limber ice
#

@long crater If you are running latest versions of Statz and Autorank the expansions are not needed

long crater
#

I keep deleting them and they come back

#

Lol

limber ice
#

that don't make sense, stop server delete the expansions and start server

#

I know having my expansion and latest Statz you will get errors in Papi

long crater
#

I have spigot version.

heady urchin
#

Can someone help me with deluxemenus requirements

turbid tide
#

?

heady urchin
#

The javascript numbers are limited to the java integer limit

#

like if i wanna do %tokens_balance% >= 1000

#

if tokens is over the limit, it does not work

silver minnow
#

how many tokens do you have?!

heady urchin
#

some people have like 10B+

turbid tide
#

how are they formatted as well

heady urchin
#

its just the raw number

#

like 1000000 or 549337723456

turbid tide
#

hmm maybe parse it as a long? i don't even know if there's long in javascript lmao

heady urchin
#

Idk how to do that

#

is there a papi placeholder to evaluate if a number is bigger than a different number?