#placeholder-api

1 messages · Page 156 of 1

patent oak
#

Would love it if someone could verify it

#

Let me know what you need

warped flower
#

what placeholder I have to put to see the players on the survival for example

balmy marten
patent oak
#

And should I rename the jar to Expansion-<name> ?

junior musk
#

it's renamed by the plugin

patent oak
#

Dope

junior musk
#

and by tab-completition, do you mean in the ecloud download cmd ?

#

once the ecloud is refreshed, the expansion's name (that you defined on the ecloud) will show in the cmd when you do /papi ecloud download and press tab

patent oak
#

I mean

#

/papi parse me %identifier_<tab>%

junior musk
#

you have to override the getPlaceholders method and return a string list containing all placeholders

#

then you just put %myExpansion_ in the cmd and it will show all placeholders that you listed

patent oak
#

Oh

#

Cool

#

Thanks

#

I thought it might be something like that but didn't see it in any of the docs/examples

patent oak
#

Should the list items include the expansion identifier?

junior musk
#

yeah

#

and the %% aswell

slate pollen
#

i have the placeholder: %vault_eco_top_balance_#%

#

how do i let this work in placeholder api?

mint fable
#

run those commands

patent oak
#

The edit page doesn't seem to allow it

junior musk
#

you have to go on the expansion's page and click on the Versions tab

patent oak
#

Thank you!

slate pollen
#

?help

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

Source

slate pollen
#

??wiki

#

?wiki

tender vaporBOT
#
FAQ Answer:

You can find a wiki for all or most HelpChat plugins at:
https://wiki.helpch.at

slate pollen
#

i don't understand how i can put in placeholder sfrom other plugins

stark harbor
#

ok so i need help with the playerlist API [deluxe menus]

items:
#Head
  '1':
    material: head-%playerlist.online.normal.yes.0.100%
    slot: 0
    update: true
    display_name: '&f%playerlist.online.normal.yes.0.100%'
    hide_attributes: true
  '2':
    material: head-%playerlist.online.normal.yes.2.100%
    slot: 1
    update: true
    display_name: '&f%playerlist.online.normal.yes.2.100%'
    hide_attributes: true

i'm doing something wrong i think, so i want the head of the user in each slot (each online member of the server)
and then the display name is the name of the user. but the api does not like the ' ' so it sets the display name to %playerlist.online.normal.yes.0.100%
any givin time the list will show up with 2 users even if it just me and i am excluding arr.0 (me)
What if anything am i doing wrong?

warped flower
#

what placeholder I have to put to see the players on the survival for example

idle sequoia
#

how do you use this on bungee

turbid tide
#

you can't.

#

well techincally if you have a bridge plugin you can. but by itself PAPI doesn't work on bungee

idle sequoia
#

and where can i find it

turbid tide
#

well you can't. You'd have to make it. Like for example the TAB plugin does. Or the BungeeTabListPlus plugin does it

#

its not something that just exists and works for every plugin

#

you'd have to make one for your usecase

idle sequoia
#

zno i want to see if my server is online

turbid tide
#

well for that you can just use the Pinger expansion

verbal ravine
#

can anyone help me with this situation?
Is there a way to make it so when a player gets money this doesn't show up with all the .9999999? https://prnt.sc/12kz258 Using essentialsx and Vault.
Try to use the PAPI Math expansion, with precision of X digits you want in the decimals.
And if you don't know how to do that, ASK IN THE PLACEHOLDERAPI DISCORD SERVER FOR SUPPORT.
Link: helpch.at/discord

turbid tide
#

instead of %vault_eco_balance%

verbal ravine
#

yeah that fixed

#

thanks so much :)

#

supah easy lmao

hallow mist
#

There are no placeholders for MCMMO leaderboards. For example, placeholders for /mctop. Is it possible to have placeholders for /mctop and placeholders for each category. Such as mctop_woodcutting_player_1, mctop_power_level_player_1, etc.

#

Also: using placeholder %vault_eco_top_balance_fixed_1% returns $0

smoky spoke
#

does the otherplayer placeholder work properly?

vivid sparrow
#

Is the top function enabled? @hallow mist

hallow mist
#

What to do you mean enabled? I have done /papi ecloud download Vault?

#

@smoky spoke Other Vault placerholders work, such as %vault_eco_balance_commas%

#

however %vault_eco_top_balance_fixed_1% returns 0

smoky spoke
vivid sparrow
#

@hallow mist papi config

turbid tide
#

used it the other day

hallow mist
#

Oh, I see. I did not know that baltop needed to be enabled via placeholderapi. It works now, so I appreciate the help!

turbid tide
#

yeah. they will also be removed. You can read more about that here.

smoky spoke
turbid tide
turbid tide
#

would display the nickname of BlitzGamer_88

smoky spoke
#

oh wait

#

wrong placeholder

#

i meant ParseOther

turbid tide
#

I assume you meant ParseOther?

#

Ic xD

#

%parseother_{username}_{vault_rank}%

#

would show the rank of username

#

and username can also be a placeholder

#

%parseother_{BlitzGamer_88}_{vault_rank}%
%parseother_{player_name}_{vault_rank}%

#

both work

smoky spoke
#

oh. i was doing it wrong

#

i didn't add the brackets in the name section

turbid tide
#

ah Ic. yeah they are needed

#

pretty sure the wiki warns you about it as well

smoky spoke
#

didn't get it straight away

#

tysm!

hallow mist
#

@turbid tide Oh, I see. I am looking forward to that. After doing a server restart, the Vault placeholders no longer work. It was working when I first added it, but then the values weren't updating, so I restarted the server and now they just return no player names and all balances of $0

turbid tide
#

go to plugins/PlaceholderAPI/expansions and delete the vault expansion from there

#

there might be multiple. Delete them all

#

then do /papi ecloud download Vault 1.5.2 then /papi reload

hallow mist
turbid tide
#

well you could probably make them using AjLeaderboards

#

but idk

#

for sure

next wigeon
#

I will sound like a dumb question but I'm starting on java plugins

#

how to add placeholder api to eclipse ide?

warm topaz
#

if u dont wish to use a build tool (lol), i think u should be able to just import the PlaceholderAPI jar into your workspace as a dependency

next wigeon
warm topaz
#

i wouldnt recommend doing it that way, but sure

next wigeon
warm topaz
#

idk how eclipse works, but ull probably need the gradle plugin, convert the project to a gradle project, then add the repo + dependency as it is specified in the link above

#

intellij good 😌

dry token
#

hi whats good! Im having problems with MVdW Placeholders

#

it doesnt get the placeholders

#

could you help me please?

#

thanks

mint fable
#

it'll only work if you have an mvdw premium plugin

dry token
#

yes

#

ConditionPerms

mint fable
#

what placeholder are you trying to use

#

and where?

dry token
#

in a deluxemenus menu

#

"Bloques Rotos: %mvdw_stat_blocksmined_legacy_ladder%"

mint fable
#

and have you run those commands?

dry token
#

yes

mint fable
#

I assume /papi parse me %mvdw_stat_blocksmined_legacy_ladder% doesn't work either?

dry token
#

/papi parse me %mvdw_stat_blocksmined_legacy_ladder%

#

do I execute this command?

#

no

mint fable
#

hmm

dry token
#

it doesnt work

mint fable
#

does /papi parse me %mvdw_player% work?

dry token
#

yes

mint fable
#

so it must be the stat placeholder not working

#

what version of mc is your server

dry token
#

1.12.2

mint fable
#

?materials

tender vaporBOT
dry token
#

thanks!!!

mint fable
#

there is no LEGACY_LADDER

#

it's just LADDER

dry token
#

oh sorry

#

thanks!

#

CJ

mint fable
#

👍

dry token
#

one question

#

I have connected ConditionPerms to mysql

#

and now I can make a "survival stats" in the lobby?

#

with deluxe menus

#

cause mvdw doesnt bring mysql in the config, so I connected ConditionPerms

mint fable
#

sadly I have no idea

#

and I gotta head off

dry token
#

cool

mint fable
#

but somebody here might know something so gl

dry token
#

thanks!!!

#

okay!

grizzled dagger
#

I don't even know what everything means

errant iron
#

You can't use Java 16 yet

#

Use 15, or 11, or 8

grizzled dagger
#

But i have been using it for 4 days, no errors

errant iron
#

You shouldn't have been able to

#

Java 16 disallows reflection

grizzled dagger
#

Oh

errant iron
#

which is how a lot of stuff does its job

#

this is a reflection error

grizzled dagger
#

Okay, i will install java 11 then

errant iron
#

perfect

grizzled dagger
#

Also, clients can use java 16?

errant iron
#

I mean I think so, but 99% of people just use the bundled Java runtime

grizzled dagger
#

XD It gives so many errors on low pcs

#

Yeah got fixed, it was java 16

#

Thank you so much 😄 ❤️

errant iron
#

np, good luck with your server!

smoky spoke
#

is there a placeholder that can convert a given value into seconds, minutes or hours

errant iron
#

/papi ecloud download Formatter

#

/papi reload

#
%formatter_number_time_<number>%
%formatter_number_time_seconds_<number>% # Handles number as seconds
%formatter_number_time_secs_<number>%    # Handles number as seconds
%formatter_number_time_minutes_<number>% # Handles number as minutes
%formatter_number_time_mins_<number>%    # Handles number as minutes
%formatter_number_time_hours_<number>%   # Handles number as hours
%formatter_number_time_hrs_<number>%     # Handles number as hours```
lament verge
#

placeholder progress work on 1.8.8 ?

plain walrus
#

can someone help me with a little javascript placeholder? 🙂

fervent spire
smoky spoke
#

btw is it possible to use a math placeholder inside a math placeholder?

vivid sparrow
#

use {} instead of %% for the inner math placeholder

smoky spoke
#

i mean like, %math_0_{math_0_{checkitem_amount_mat:apple}*8}/10%
stuff like that

warm topaz
#

cant u just use a normal bracket there?

#

({checkitem} * 8)/10 maybe?

smoky spoke
#

wow ty!

#

how about stuff like this?
%formatter_number_time_{math_0_{rp_LAVA_TANK}*600}%

#

i can just do something about it by using rocket placeholders but i wanna know if it's possible

warm topaz
#

u cant put deep inner placeholders afaik

smoky spoke
#

ok

#

so just asking, about the math placeholder, is it possible when i parse the placeholder, if it gives a negative value, it gives 0 instead?

#

like, if it gives the number of 50, it will be 50. if it gives -27, it will be 0
is it possible?

blazing pier
#

Hello, I would like to add my plugin in the eCloud, how can I do?

warm topaz
warm topaz
blazing pier
warm topaz
#

if an admin sees ur message here in discord theyll be able to contact u

smoky spoke
#

nvm the tab suggestion has said it

warm topaz
warm plover
#

Hey how can I use checkitem for spawners? like zombie spawners and such

scarlet valve
#

Hi i am using world extansion
I have a problem
I used %world_players_{world}%
The problem is my world has a _

#

Straight_1

#

What can i do?

warm topaz
#

i doubt itll work, but try escaping the underscore with \

scarlet valve
#

I cant really

#

Ok plan b

#

Is there a world guard placholder?

#

That give you how many players are there

warm topaz
#

there is not

#

plan c: name ur world something different fingerguns

soft yew
#

I'm making a plugin for someone and he wants to get checked if a player meets a certain value of a placeholder....
How can I do this?

#

Is there a .getPlaceholder or something like that?

warm topaz
#

u can parse the placeholder with PlaceholderAPI.setPlaceholders(Player, String)

soft yew
#

So just

String givenTime = PlaceholderAPI.setPlaceholders(player, "%ontime_time_played_total%");
if(givenTime.equals("...

warm topaz
#

👍

austere hawk
#

How would I use that or reference it in my plugin?

turbid tide
#

ohhhhh

#

that's what you meant xD

#

you have to import the InventoryFull plguin

#

in your plugin

#

there is no maven repository or anything like that. It only works with the plugin jar

austere hawk
#

Hello, would this javascript work?

#

function formatNum(num){
    if(num>=1000000){
        return (num/1000000).toFixed(2)+"M";
    }else if(num>=1000){
        return (num/1000).toFixed(2)+"k";        
    }else{
        return num.toFixed(0);
    }
}

formatNum(mobcoins);```
#

Because when two or more players placeholders is getting buggy, for ex. sometimes shows 1k mobcoins sometimes 30k.

#

( Please ping me, thanks! )

turbid tide
#

I have no idea if this still works but here

#
function kFormatter(num) {
    return Math.abs(num) > 999 ? Math.sign(num)*((Math.abs(num)/1000).toFixed(1)) + 'k' : Math.sign(num)*Math.abs(num)
}```
#

or if it even works with Nashorn

#

just changed toFixed(1) to 2 if you like it more

#

oh wait

#

nvm

#

this is for thousands only

errant iron
#

oof

turbid tide
#

yeah I forgot my economy is good xD

#

well I never actually got to even use it

#

soo... xD

vivid sparrow
#

Theres a formatted expansion.

turbid tide
#

doesn't do this tho Gaby

#

it adds commas

#

or `

#

or dots

vivid sparrow
#

Really?

turbid tide
#

yeah

vivid sparrow
#

F

turbid tide
lament verge
#

Hi, why does this command not delete the enchanted item? (checkitem) (serv 1.8.8)
/IM remove Artsuki Mat:diamond_sword Amt:1 enchs:DAMAGE_ALL=1

plucky salmon
#

Hello, is it possible to remove the * before the TPS amount when using "%server_tps_1_colored%"

trim mist
#

You might be able to via a JS placeholder but iirc that just means that you haven't been up long enough, haven't had any timings issues, or a couple other reasons. It's returned from the server itself, not anything we do.

warm topaz
#

changeoutput expansion 🙂

#

also glare i think we had a discussion about the * some time ago here, iirc its if the server has finished all of its tasks within the tick, so it has remaining time before the next tick or smth like that

plucky salmon
#

All right thank you but I have one more question, if I remove the "colored" from "%server_tps_1_colored%", it becomes "%server_tps_1%". When I use "%server_tps_1%", the * does not show up.

vestal glacier
#

Hey guys i uh

#

have a bizzare issue i thinks related to papi

#

whenever my papi is in

#

it adds upto 5000 users to luckperms

#

with nothing but group.default

#

any ideas?>

mint fable
#

can you type /papi dump

#

=paste

tender vaporBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
HelpChat Paste

mint fable
#

and paste it

untold whale
#

tell the placeholder how many blocks you have broken

fervent spire
fervent spire
#

Yeah

untold whale
fervent spire
#

I don't know? Maybe you broke 2 blocks? Or you broke a block before using the placeholder?

junior musk
#

nah I think it's minecraft doing that

untold whale
keen mica
#

How'd this go?

#

I'm looking to fetch a permission for an offline player.

turbid tide
#

yeah its bcz of how minecraft checks those. Not really a lot you can do about that. (talking about the statistic expansion)

junior musk
turbid tide
#

yeah that won't happen

keen mica
#

Sigh

turbid tide
#

bcz that would mean caching each player or reading from somewhere every time and both are just bad

keen mica
#

Ah, I see

#

Thanks :frnod:

turbid tide
#

I'm not really sure but if you ask in the LuckPerms (why requesting for permission for offline players is bad) they could probably give you a more advanced explanation. Pretty sure they also explain it on their wiki somewhere

keen mica
#

From memory, they'd like to see PAPI async?

autumn helm
#

whenever i delete mcmmo, my %statistic_player_kills% statistic breaks in my scoreboard

#

yes i did /papi ecloud download Statistic

#

i tried to delete the expansion, restarting my server and reinstalling it

civic fern
#

hey with scord borad is there a way to make it say the servers name Then Number of players in that server
https://imgur.com/a/ubT7S0g
Thats what it looks like

flint siren
#

Hey.

#

whats wrong?

    - '&aSétálás: &f%math_{statistic_walk_one_cm}/100[precision:0]%'
    - '&aFutás: &f%math_{statistic_sprint_one_cm}/100[precision:0]%'
    - '&aUgrás: &f%statistic_jump%'
    - '&aÚszás: &f%math_{statistic_swim_one_cm}/100[precision:0]%'
    - '&aZuhanás: &f%math_{statistic_fall_one_cm}/100[precision:0]%'
#

solved ❤️

#
    - '&aSétálás: &f%math_0_{statistic_walk_one_cm}/100%'
    - '&aFutás: &f%math_0_{statistic_sprint_one_cm}/100%'
    - '&aUgrás: &f%statistic_jump%'
    - '&aÚszás: &f%math_0_{statistic_swim_one_cm}/100%'
    - '&aZuhanás: &f%math_0_{statistic_fall_one_cm}/100%'
flint siren
#

old math placeholder

#

(i deleted the picture before.)

blissful spear
#

whats the placeholder for online players

warm topaz
cunning elk
#
    var isActive = "%luckperms_group_expiry_time_Lorde%";


    if ( args.length === 1 ) {

        opcao = args[0];

        if(isActive == ''){
            switch(opcao){
                case 'nome':
                    return '&cVocê não possui VIP Lorde.';
            }
        } else {
            switch(opcao){
                case 'nome':
                    isActive.replace("w", " semanas");
                    isActive.replace("d", " dias");
                    isActive.replace("h", " horas");
                    isActive.replace("m", " minutos");
                    isActive.replace("s", " segundos");
                    return '&6Tempo restante: &e' + isActive;
            }
        }

    }
}```
#

what am i doing wrong

#

its not replacing (the else part)

#

it comes out as the regular placeholder

lilac oxide
errant iron
#

nome

lilac oxide
#

ah

#

oops

#

anyway, you're not returning anything if its not nome

bold rock
#

I have downloaded placeholder /papi ecloud download RedisBungee but it throws error on /papi reload

errant iron
#

Paste the error here

#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

bold rock
errant iron
#

what where is it

#

send the link in this channel

bold rock
#

sorry 😅 forgot to send link

errant iron
#

Ah yeah I think the RedisBungee expansion is big broken

#

especially on 1.8

bold rock
errant iron
#

I'm not sure of any other broken placeholder expansions

#

So you should be good without just that one

foggy crown
#

Hi, may I know if you have an option to disable this on thousand conversion on %vault_eco_balance_formatted% ? I want to provide the info for 1600 as 1,600 instead of 1.6k

vivid sparrow
#

@foggy crown _commas

ionic hamlet
#

Hello, thank for time, i want to add tag of faction on my scoreboard (featherscoreboard)
i write this :
text:
- '&7&l> &e&l%factionsuuid_faction_name%'
its doesn't work
can you help me please 🙂

turbid tide
ionic hamlet
#

ohh thanks !

slender rover
#

Anyone know why [precision:1] doesnt work anymore?
Im using it like that 😕
%math_{collections_total}/100*{collections_unlocked}[precision:1]%

#

Oh 😄 It was changed.. Now it works..
%math_1:_{collections_total}/100*{collections_unlocked}%

ionic hamlet
#

hey i have error on my console can you tell me ? what I need to do
?
21:09:31 ERROR]: [Server Thread] [PlaceholderAPI] expansion class MCoreFactionsExpansion is outdated: Failed to load due to a [NoClassDefFoundError], attempted to use com.massivecraft.factions.RelationParticipator

nova pollen
#

Placeholder XPBoost isnt working theres no errors in console

nova pollen
#

any idea on what i should do?

warm topaz
#

what is "xpboost"

nova pollen
little storm
#

I'm having an issue with installing the mysql PlaceholderAPI extension. It's probably something stupid simple, but I am missing it:

https://pastebin.com/M71xTQgx

errant iron
lilac oxide
#

Edit: wrong channel ._.

vestal glacier
#

Hey is there an issue with the vault expansion?

#

Can i not send a video here to show the issue?

fervent spire
#

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

vestal glacier
#

hope this is ok!

#

This happens ONLY when /papi ecloud download vault

#

is on the server

#

It randomly puts ALL my users inside luckperms ones without any permissions just the base group.default

#

took me days to figure out what it was but it happens 100% of the time with the vault expansion installed and 0% of the time with it removed and server rebooted.

fervent spire
#

Bring it up in the LP discord server, and see what they say

vestal glacier
#

I did

#

they said its not them haha

#

They only changes that can be made to that user list is when the user logs in

#

or when a plugin requests offline information on the player

quick sphinx
#

%statistic_mine_block% adds 2 every time I mine 1 block can this be fixed?

#

without using Math placeholder

flint nacelle
bronze spindle
#

%player_item_in_hand_level_digspeed%
how to write correctly ?

lilac oxide
#

Maybe it switched to offline mode somehow

quick sphinx
sage ferry
#

how to I use MVdWPlaceholderAPI placeholders as PlaceholderAPI placeholders?

sage ferry
#

Any reason why that wouldn't work ^?

turbid tide
#

well many many reasons

#

check console

#

if the problem is the plugin or the expansion it will probably warn you

#

with a big error

#

if no errors are there then its most likely user error

sage ferry
#

is there any where I could send a screenshot to show what I'm seeing?

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.

sage ferry
#

you can see the PlaceholderAPI placeholders work fine above it, but the MVdW placeholders as PlaceholderAPI placeholders don't work

mint fable
#

did you run those commands? this

turbid tide
#

wait but the VotingPlugin plugin has PlaceholderAPI placeholders too... you don't have to use the mvdw one

#

You just have to execute: /papi ecloud download VotingPlugin /papi reload

#

first

mint fable
#

😮

sage ferry
turbid tide
sage ferry
#

it returns %headhunter_level%

#

in chat

turbid tide
#

check the console

#

see if it shows any errors

sage ferry
#

HeadHunter is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

#

that error

turbid tide
#

well there's your problem. You'll have to contact the developer of HeadHunter and tell them

#

to update their plugin

sage ferry
#

yikes he's been gone for a bit

#

on a paid plugin

turbid tide
#

well you could also do the bad thing and use PlaceholderAPI 2.10.6

sage ferry
#

I might have to because this plugin is actually really good

#

any way to add that without restarting the server btw

turbid tide
#

nope. you should really not do that anyways

#

if its a live server (with players)

#

just add a daily restarter to your server

#

and make all your changes in a test server and when you're sure you want to update just do it when the daily restart happens

sage ferry
#

aight gotchu

#

bit off topic but is this error message essentially just saying that the plugin is outdated?

#

curious if there would be any way to fix this

violet cliff
#

install nbtapi

sage ferry
#

@violet cliff trying that now

turbid tide
#

yeah

bronze spindle
turbid tide
#

efficiency is probably not a correct enchantment

#

?enchants

tender vaporBOT
turbid tide
#

you can find a list of correct enchantment names here ^^

heavy hull
#

would it be possible to push a placeholderapi update to spigot sometime soon? :p

#

people are still repeatedly having issues with broken time/duration formatting - afaik it is fixed in dev builds already?

turbid tide
#

there probably will be a release soon. last build had a lot of changes/fixes but probably @arctic loom or @trim mist can confirm?

arctic loom
#

To my knowledge is this fixed in dev builds, yeah.
But I myself can't say when an update will happen as this depends on clip.

turbid tide
#

oh well that will probably take a while. I completely forgot about that xD

heavy hull
#

ah ok, if you could nudge clip to make a release next time he's about that would be great :)

arctic loom
#

Probs won't happen

#

I honestly believe that he basically abandoned his plugins at this point

#

I (and probs glare to some extend) basically made a lot of the recent changes to PAPI.
And they only got merged after I annoyed Piggy enough for it

warm topaz
#

🥲

flint nacelle
#

So papi perhaps will be a abandoned project? Way not upload new jars on github at least?

And is several expansions he need to fix (has bugs).

flint nacelle
brisk coral
flint nacelle
fervent spire
#

papi

flint nacelle
# fervent spire papi

Was somewhat confusing when he wrote v3 🙂 Or has dev versions get other versions numbers recently?

vivid sparrow
flint nacelle
vivid sparrow
#

?

#

If you are talking about js, @rare lily is rewriting it

flint nacelle
vivid sparrow
#

Well, you see, people have that thing called, um, real life and responsabilities.

errant iron
#

it's cause the js expansion is like, super complicated and hard to deal with

#

a language inside of another language is quite a unique challenge

vivid sparrow
#

Plus, any changes done to the new version have to be more or less backwards compatible.

flint nacelle
#

I end up make my own small expansion to fix my issue 🙂 Not best coding practice , but working on fix all issues with it (it work find, but need some improvements).

vivid sparrow
#

If js doesnt work is time to start coding your own things.

#

I understand your frustration. I was just annoyed back in the days when I used clip's plugins but as the time has pass, I realized that sadly, you can't always do what you like or at least used do.

flint nacelle
#

Was more frustrate I have to reload js every server restart and players start to complain so needed fix it fast 🙂

vivid sparrow
#

If you look at my plugins, most of them didnt got an update in like an year, but that doesnt mean I abandoned them. Is just that other things have priority now

vivid sparrow
#

Im not saying this is the reason it didnt got an update in a while.

flint nacelle
#

Has the source to my expansion on github , but are not anything special.

Is to calculate numbers, how dmg tools and armor are and give different numbers depending rank (normal rank not any donate stuff). Is for repair and calculate dynamic.

armor part was not suited for js (every rank get 100 lines of code). In Java all this is in around 200 lines (including tools) 🙂

Is pretty amazing it works (but the code I think need improvements) 🙂 I for example force load the yml (should use hash for this i think). need to do some trial and errors 🙂

Has not work with yml and hash together before (So will be some fun pain) 🙂 Only good thing I only need read data not save.

flint nacelle
vivid sparrow
#

Whats the error?

flint nacelle
# vivid sparrow Whats the error?

toFixed are the problem (that one will not send errors, start to work if you reload js 1 to 3 times (is random, some times it works after restart some times not)).

In dm is no big error, only you can´t use 15.15 (I use js in dm too), you need clean numbers no "."

brisk coral
#

Not sure what kind of crack you smoking, but I've never had an issue with toFixed lol, nor do I think has anyone else

vivid sparrow
#

Nah I saw someone else talking about toFixed @brisk coral
Whats the error @flint nacelle

brisk coral
#

Since when, was shit updated? Cause I know it wasn't an issue for the past two years

flint nacelle
vivid sparrow
#

Dm error.

#

@brisk coral idk I think blitz was also talking about it

brisk coral
#

Odd

flint nacelle
# vivid sparrow Dm error.

As a say is js not like 452.87. it need 453 in dm menu

And is the js some are the problem, I run the placeholder manually and it print out like 15.15 and when reload (I can bee needed 1 or 3 times) js it start to work again and print 15.

money_requirement:
          type: javascript
          expression: '%vault_eco_balance_fixed% <= %javascript_money_check_laga_verktyg%'
tender vaporBOT
#
Hey!

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

#
Hey!

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

flint nacelle
#

sry for the ping.

flint nacelle
# vivid sparrow Dm error.

Soo I look up the error in dm, the error are for the number are 15.15 not 15. Work fine when it print 15 is it should.

Get no issues when use my own expansion, but has made it in that way so it never can happen 🙂 Was some debugging to know way this happens so run %javascript_money_check_laga_verktyg% and get wrong result, run first papi reload and it start to work agen (I don't know it was js some was the problem first, so after I find the ).

[08:54:39] [Craft Scheduler Thread - 464/ERROR]: [DeluxeMenus] Requirement javascript <%vault_eco_balance_fixed% > %javascript_money_check_laga_verktyg%> is invalid and does not return a boolean!
[08:54:39] [Craft Scheduler Thread - 464/ERROR]: [DeluxeMenus] Requirement javascript <%vault_eco_balance_fixed% <= %javascript_money_check_laga_verktyg%> is invalid and does not return a boolean!
[08:54:39] [Craft Scheduler Thread - 464/ERROR]: [DeluxeMenus] Requirement javascript <%vault_eco_balance_fixed% <= %javascript_money_check_laga_verktyg%> is invalid and does not return a boolean!
brisk coral
#

Show the actual js

flint nacelle
vivid sparrow
#

Oh well

#

Btw js has switch () as well

flint nacelle
thorn herald
#

Hello!
I wanna ask is there any placeholder which count the number of players in specific group (luckperms group)

wet basinBOT
#

@vivid sparrow Unknown expansion.

vivid sparrow
#

Uh what happened

lilac oxide
vivid sparrow
#

Ig embeds without https are broken on mobile

stark heath
#

~~Hey, it is possible to update placeholder more frequently ? I've created a placeholder to tell is what region my players are and i'm displaying it with Kiteboard, but it take ~5secondes for it to update,

what i want is as soon as the player enter the region, it update in the scoreboard~~

nvm found out

brave owl
#

hey! how can I display a placeholder as another player? I'm not sure if this would be better suited for PremiumVanish or Alice support, but I am using PV and want to display %alice_client% as my PV target in the PV scoreboard but not sure how I would do that. Thanks!

junior musk
#

you could maybe use the ParseOther expansion, but I'm not sure how PremiumVanish will parse the target name and the placeholder

#

try
/papi ecloud download ParseOther
/papi reload
and use %parseother_{%target%}_{alice_client}% in your scoreboard

brave owl
#

seems to work, cheers

junior musk
#

👍

loud mist
#

I am trying to show bungee server counts but I'm not sure what I should put for the player, because there is no player? server1 = PlaceholderAPI.setPlaceholders("%bungee_KITPVP-1%");

junior musk
#

use null

#

it should work

loud mist
#

Ok

austere hawk
#

Is there a way to list all the placeholders within a plugin with PAPI?

balmy marten
austere hawk
#

thx

scarlet valve
#

Hi is there a way to check if there is a block on a specific xyz position and display
❌✔️ for it

shell sentinel
#

What is placeholder api?

fervent spire
#

@shell sentinel it's a plugin that let's you use placeholders in your server.

shell sentinel
#

Sorry, but what are placeholders?

junior musk
#

it's text that returns a value depending on something, like depending on player, or depending on the server's amount of players

#

%server_online% depends on the amount of players online on the server

#

%player_name% depends on the player and returns its name

fervent spire
shell sentinel
#

So messages based on conditions/events?

junior musk
#

kind of, yes

shell sentinel
#

Debug messages.

#

Console*

junior musk
#

uh?

shell sentinel
#

Nevermind.

#

But it is more for debug?

fervent spire
#

Displaying information

#

Like %player_name% will show a players name

#

For things like tablist or a scoreboard. Or anything.

junior musk
#

%player_health% shows the hearts of the players

shell sentinel
#

Oky

junior musk
#

or maybe you have a minigame plugin that provides a placeholder which returns your team color

shell sentinel
#

Interesting.

#

I'm getting so much into coding with my Minecraft server, this is so cool.

scarlet valve
#

Hi is there a way to check if there is a block on a specific xyz position and display
❌✔️ for it

versed ember
#

Is it possible to put a placeholder inside a placeholder?

junior musk
#

only if the outside placeholder support's it

versed ember
#

do you know which placeholders support it?

junior musk
#

🤷

#

some do, some don't

#

depends on what the dev did

versed ember
#

ok well thanks anyways

tall hemlock
#

[20:31:17 WARN]: [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder clp_master isn't initialized! Defaulting to global
[20:31:17 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: clp_master

where can be problem?

turbid tide
tall hemlock
#

java 16

turbid tide
#

then you'll have to also run GraalVM and change the engine to graal in javascript_placeholders.yml

#

bcz the default engine (nashorn) was removed in java 15 I think

tall hemlock
#

i downloaded graalvm-ce-java16-linux-amd64-21.1.0.tar.gz what now?

turbid tide
#

well you have to run it. I've got no idea how. But if you did then all you have to do is go into plugins/PlaceholderAPI/javascript_placeholders.yml and add the engine for each placeholder

austere hawk
#

I tried to show the motd of a subserver with the %pinger_motd_[ip]:[port] on an itemlore but the motd is to long and it dont get splited in a new loreline after the \n can someone help me?

turbid tide
#

@austere hawk execute the 2 commands at the bottom ^^

austere hawk
#

what?

#

that dont have to do with the Motd of a server

#

i mean the motd in the serverlist

turbid tide
austere hawk
#

🤔

turbid tide
austere hawk
#

yes, because the text (the motd) is at the time only a part becuase the text after the \n has been removed

austere hawk
dusk scarab
#

hello 🙂 i'm having trouble integrating this with world-guard
/rg flag console-command-on-exit discord broadcast #812545838320582698 a player went further than 90k in the_end. players in the end dimention: %playerlist_online,world,yes,list,new_world_the_end%

As you can see i'm trying to use a placeholder there, but the flag command-on-exit can accept multiple commands, spearated my commas. so when i try to do that it runs "world", "yes", etc. as a separate command instead of parsing the placeholder and it just goes like: https://i.imgur.com/eeOw6rD.png

turbid tide
#

are you sure that the /discord broadcast command parses placeholders?

turbid tide
lilac oxide
#

or add parenthesis

winged cargo
#

Hi, how is it possible that placeholder is showing wrong value ? For ex. placeholder %player_first_played_formatted% is showing me that i first joined this server 24.4.2021 but i'm playing on that server since October 2020.. So how is it possible that it's showing a wrong value ?

turbid tide
#

it takes the value from minecraft statistics from what I Know

hollow hull
#

I'm trying to set a placeholder from the plugin beautyquests in my featherboard scoreboard, i've tried searching around docs, and such, but i can't figure out how

#

Is there a way to like link featherboard with beautyquest's placeholders so i can use them on featherboard?

#

Featherboard uses MVdWPlaceholders & BeautyQuests uses PAPI

fervent spire
#

You can use {placeholderapi_<The PAPI placeholder without the %%>}

#

Just make sure you have MVdWPlaceholderAPI and PlaceholderAPI installed.

hollow hull
#

oh

#

I'll trey

#

It worked!

hollow hull
#

Thanks<33

fervent spire
#

You're welcome 😄

scarlet valve
#

Hi is there a way to check if there is a block on a specific xyz position and display
❌✔️

covert island
#

how do i get coordinates of a specific player

warm topaz
#

the coordinates placeholders can be found within the player expansion

#

if u need a specific player, u can use the parseother expansion in conjunction

covert island
#

ok

turbid tide
smoky spoke
#

in the changeoutput placeholder, what do i do when i want to type in the matching portion of the placeholder but the matching value has _ too?

turbid tide
#

just use %statistic_time_played:seconds% instead

smoky spoke
#

cant because i am using a placeholder that has _ in between when it prints

scarlet valve
tender vaporBOT
#
Hey!

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

warm topaz
sturdy pewter
#

thats the pastbin to a papi error im getting

cerulean geyser
#

For some reason every time my server restarts it removes all my papi addons?? Anyone have a clue why this might be? I honestly have no clue. The addons are specifically Vault and Essentials, I download them using /papi ecloud download vault and same with essentials but replacing vault with essentials

junior musk
#

do you get any errors when using /papi reload in the console or when loading PlaceholderAPI on server start?

quasi spoke
#

whats the /papi ecloud download for the voteparty. when it does the broadcast dont say the players name.

turbid tide
quasi spoke
#

right i ask the owner of the server to join and link the acc

turbid tide
#

alr 👍

delicate ginkgo
#

i need to put a placeholder in a placeholder in a placeholder

turbid tide
#

that sounds like a bad idea and most likely not possible. at least not with PAPI. It only accepts to type of placeholders and that is %placeholder% and {bracket-placeholder}

delicate ginkgo
#

this is the placeholder%progress_bar_{server_ram_used}_l:80_m:{server_ram_max}_p:#FF8000|_c:#FF8000|_r:#31C91F|% and i want to replace server_ram_max with %math_0:[rounding]_{server_ram_max}-{server_ram_free}% that would look like : %progress_bar_{server_ram_used}_l:80_m:{math_0:[rounding]_{server_ram_max}-{server_ram_free}}_p:#FF8000|_c:#FF8000|_r:#31C91F|% and wont work, i think that the {{}} are the problem

turbid tide
#

yeah you have 2 choices here. Make your own placeholder or use the JavaScript expansion if you know any JavaScript

delicate ginkgo
turbid tide
#

its an expansion that allows you to make your own placeholders using JavaScript

delicate ginkgo
#

ok, i will read a bit, thx

delicate ginkgo
turbid tide
#

nope

delicate ginkgo
#

k

turbid tide
#

alr @quasi spoke he linked. its all good now

#

so first of all can you try /papi parse me %player_name% ?

quasi spoke
#

ok ty

turbid tide
#

tell me what it says

quasi spoke
#

all i get is %player_name%

turbid tide
#

can you do these 2 commands in order:
/papi ecloud download Player
then:
/papi reload

#

then do the parse command again

#

and tell me if it works now or not

quasi spoke
#

says my name now

#

ty for the help

turbid tide
#

👍 no problem

modern lynx
#

How can I save statistic placeholders for weeks, months and lifetime? Do you have any idea?

turbid tide
#

not possible. the statistics are taken directly from minecraft and they're just alltime.

modern lynx
#

I mean numeric placeholders by statistic.

smoky spoke
#

with the new update for changeoutput, how do i use the new feature

turbid tide
#

just use \_ where you don't want the _ to be counted

#

so basically 1 \

#

and the _

#

%changeoutput_INPUT_OUT\_PUT_true_false%

#

like this I think

#

so basically the _ in the OUTPUT

#

will be counted as a character

#

in output

#

so OUT_PUT

smoky spoke
#

ok ty

turbid tide
#

hope that makes sense xD

smoky spoke
#

nice ty

modern lynx
#

How can I save numeric placeholders for weeks, months and lifetime? Do you have any idea?

fervent spire
#

You'd need a plugin to save it to a database or file.

modern lynx
#

Thanks. Do you know any?

fervent spire
#

Not really.

crystal mauve
#

Hello, What wrong with this code?

var prison1 = Number("%bungee_prison-1%");
var prison2 = Number("%bungee_prison-2%");
var prison3 = Number("%bungee_prison-3%");
var PrisonTotal = prison1 + prison2 + prison3;

function returnTotal() {
return (PrisonTotal);
}

returnTotal();

#

now it shows me 000

turbid tide
#

you don't need an entire javascript for that tho. just use the math expansion

#

%math_0:_{bungee_prison-1}+{bungee_prison-2}+{bungee_prison-3}%

crystal mauve
#

duh

#

ty

turbid tide
#

and probably the number

crystal mauve
#

whats that 0?

turbid tide
#

was not actually making them an integer

turbid tide
#

if you remove it it will always have 3 decimals

#

which you probably don't want

crystal mauve
#

oh

#

thank you

turbid tide
#

no problem

#

also you can set the default to 0 in plugins/PLaceholderAPI/config.yml so you can just use %math_{}+{}%

crystal mauve
#

ok

#

wait

#

now

#

it returns null

#

like

#

nothing there

turbid tide
#

huh

#

can you try /papi parse me %bungee_prison-3%

#

and see what it returns

crystal mauve
#

0

turbid tide
#

make sure you have latest version of the Math expansion /papi ecloud download Math then /papi reload

crystal mauve
#

yes I have

cursive ermine
#

Hello guys, I just noticed in my console today this error. Is there anyone who can provide some insight. I am not sure what SuperRonanCraft is.

https://pastebin.com/GcHmsbvT

mint fable
#

it's the mysql expansion it seems

turbid tide
#

yeah its been broken for a while. idk if there's a fix for it yet

turbid tide
# crystal mauve yes I have

can you parse these please: /papi parse me %math_0:_{bungee_prison-1}+{bungee_prison-2}+{bungee_prison-3}%

crystal mauve
#

it returns 0

cursive ermine
#

Ok thanks, I was wondering if that was the case since I saw the expansionMySQL but wanted to make sure. I will just delete the expansion then. I ended up not using that one anyway.

turbid tide
crystal mauve
#

yes but in scoreboard...

#

theres nothing

#

now I have 1 in one sv

#

but still 0

#

now 1

#

dude..

turbid tide
#

it might be just the number of characters then I guess. if you want a javascript here:

fun total() {
  return parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")
}

total()
crystal mauve
#

thats all the code?

mint fable
#

well

turbid tide
#

made it in a function so its more understandable

mint fable
#

could be less

#

😉

crystal mauve
#

oh

turbid tide
#

yeah I think it can be just parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")

mint fable
#

js ez

crystal mauve
#

it shows 100 again

turbid tide
#

hmm

#

which one are you using? the function one?

crystal mauve
#

yes

turbid tide
#

hmm this is strange

crystal mauve
#

yea

#

cj, a little bit of help here?

turbid tide
#

it concatenates the but I don't get it. It shouldn't since they're all parsed to integers

#
fun total() {
  var prison1 = parseInt("%bungee_prison-1%")
  var prison2 = parseInt("%bungee_prison-2%")
  var prison3 = parseInt("%bungee_prison-3%")
  var total = prison1 + prison2 + prison3
  return total
}

total()``` idk maybe it works the long way?
crystal mauve
#

now it doesnt show anything

turbid tide
#

do /papi dump please and send the link here

mint fable
#

hmm

turbid tide
#

it will generate a link

crystal mauve
turbid tide
#

oh my fucking god

warm topaz
#

😂

crystal mauve
#

i wrote function instead

turbid tide
crystal mauve
#

dont worry

turbid tide
#

oh

#

fuck

crystal mauve
#

is that link ok?

turbid tide
#

yeah and I've looked at it and only thing I can really recommend (even tho I Don't expect anything from it) is to update PAPI to the latest development build

tender vaporBOT
crystal mauve
#

nope

turbid tide
#

can you test ```js
function total() {
return parseInt("1") + parseInt("2") + parseInt("3")
}

total()```

#

and see if it will parse 123 or 6

crystal mauve
#

nope

turbid tide
#

what does it say?

crystal mauve
#

nothing

turbid tide
#

you tried it with /papi parse me %% ?

crystal mauve
#

nope

turbid tide
#

always test it like that

crystal mauve
#

/papi parse me parseInt(1) + parseInt(2) + parseInt(3)

#

not like this?

turbid tide
#

nope

crystal mauve
#

duh

turbid tide
#

you need to parse the javasript

#

placeholder

#

/papi parse me %javascript_<identifier>%

crystal mauve
#

it returns 1

turbid tide
#

well then the javascript works

#

just put that in the scoreboard and it should work

crystal mauve
#

this is the line in scoreboard config

#

but in the game

#

nothing...

turbid tide
#

huh this seems more like a problem with your scoreboard if /papi parse me %javascript_returnPrison% works

#

does your scoreboard allow more than 16 chars?

crystal mauve
#

yes

#

QuickBoard

turbid tide
#

hmm

crystal mauve
#

Should I contact the members from the quickboard team?

#

%server_time_MM/dd/yyyy% this placeholder works

turbid tide
#

well I can't really help you any more from here so probably the best thing to do. If you say /papi parse works then the placeholder works

crystal mauve
#

so the problem is?...

#

idk what should I do

#

any suggestions?

turbid tide
#

probably contacting their team and seeing if there's any debug they can make on their end

#

as in in their plugin

crystal mauve
#

ok

#

do I need MVdWPlaceholderAPI ??? or no?

turbid tide
#

I Don't see why it would be needed

crystal mauve
#

bc of the { brackets?

scarlet valve
#

Do anyone know a placehodler for server ping

lime vapor
#

Hi, i'm trying to install skript expansion.
With the /papi ecloud download skript, the download works, but on the /papi list, others expansions are here, but not skript.
And with the https://github.com/Altruiis/skript-expansion/releases/ expansion, when i /papi reload nothing happened, and with the /papi list, no expansion are here, not even the others

errant iron
#

/papi dump and paste it here

lime vapor
errant iron
#

From a cursory search, it seems the original Skript expansion doesn't work very well. Try Skript-Fork

errant iron
#

huh

#

any errors in your console?

lime vapor
#

Do i need to rename it Expansion-skript.jar ?

errant iron
#

Not sure, worth a try

lime vapor
errant iron
#

Any errors in console?

lime vapor
#
[22:21:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions
 java.util.concurrent.CompletionException: java.lang.ClassNotFoundException: Failed to remap class de.soulcraft.SkriptExpansion
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:326) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_282]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_282]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_282]
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_282]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_282]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_282]
Caused by: java.lang.ClassNotFoundException: Failed to remap class de.soulcraft.SkriptExpansion
        at red.mohist.bukkit.nms.proxy.DelegateURLClassLoder.remappedFindClass(DelegateURLClassLoder.java:99) ~[DelegateURLClassLoder.class:?]
        at red.mohist.bukkit.nms.proxy.DelegateURLClassLoder.findClass(DelegateURLClassLoder.java:59) ~[DelegateURLClassLoder.class:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_282]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
        at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?]
        ... 6 more
#

(sorry)

#

for the spam

#
[22:21:32 INFO]: Nealisissued server command:/papi reload
[22:21:32 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[22:21:32 INFO]: [PlaceholderAPI] Fetching available expansion information...
[22:21:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions
errant iron
#

Which version of Java are you running?

lime vapor
#

How can i know that ^^'

errant iron
#

uh

#

if this is like a VPS, you can do java --version

lime vapor
#
root@Pixor:~# java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing)
errant iron
#

hmmm

#

send your startup log

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.

lime vapor
errant iron
#

ooh okay it's probably Forge messing with something, I'm honestly not sure with Forge in the mix

lime vapor
#

Oh, ok, thanks anyway

hidden pumice
#

19.05 22:32:00 [Server] Craft Scheduler Thread - 7/INFO Checking for Updates ...
19.05 22:32:00 [Server] Server thread/WARN Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend, softdepend or loadbefore of this plugin.
19.05 22:32:00 [Server] Server thread/INFO Successfully registered expansion: vault
19.05 22:32:00 [Server] Server thread/WARN Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.3.3 which is not a depend, softdepend or loadbefore of this plugin.

#

someone happens to know what that means

errant iron
#

that's fine, it just means it's loading

hidden pumice
#

ah ok thanks

scarlet valve
#

Do anyone know a placehodler for server ping

fervent spire
#

%server_tps%

#

@scarlet valve ^

scarlet valve
#

Ooh

#

I thlught that will give you the server tps

#

1mn 5mn 15mn

devout lichen
#

@fervent spire
One question
Using the %name% variable does not show me the level name
In the pvppremium add-on
Do you know any way to fix it?

fervent spire
#

Why ping me? And why post in 3 different channels?

devout lichen
#

I haven't asked anything for a long time so I didn't know where I should ask this

#

I mentioned why you are support xd

#

srry

fervent spire
devout lichen
#

ok thx

austere hawk
#

hello i have an error in to my consol about placeholderAPI but the plugin that the error give is not placeholder API but it is NameTagEdit

clear dust
#

I have a few numbers from placeholders ( island level , Number of challenges completed etc ) Id like to get an average of them. and display it, from what iv read so far a javascript placeholder should be able to achive this correct? If so i have little to no idea how to do that Some one mind pointing me the right way

rotund pendant
clear dust
#

the example file apears to be blank

rotund pendant
austere hawk
#

the error is fixed but the priority form Nametagedit is not working?

vast ether
#

Any idea what is causing this? Is it the daily rewards plugin or placeholder-api. It's strange had been working fine for awhile then a couple days ago on daily restart, started to get this console error and it won't enable. Only changes to server was updating papermc, not either plugin. https://pastebin.com/DS24ArVa

onyx charm
#

Hello, when using HolographicDisplays with ajParkour, my PAPI placeholders simply dont load.

I type %ajpk_stats_top_name_1% in the holograph and it simply shows %ajpk_stats_top_name_1% instead of acttualy showing the placeholder.

Please help ASAP, thanks.

#

Hello? Anyone?

junior musk
onyx charm
#

Thanks, i have ProtocolLib but not Holographic Extension

junior musk
#

also, if you want to make the placeholders refresh on the holograms, you have to put one of the following placeholderse on each line containing placeholders

clear dust
#

how do i trim the decimal point off my numbers in JS.

#

Finally got my math works helps if the type is number.. derp.

turbid tide
#

toFixed(0)

#

should work

clear dust
#

if any one can tell me how to remove the trailing .0 that would be

turbid tide
#

return added.toFixed(0)

clear dust
#

OMG ty

#

iv been stuck for like 30 min trying all sorts

turbid tide
#

no problpem 👍

#

problem

#

I can typ

#

e

#

well fuck I'll just stop now xD

clear dust
#

😂

flint nacelle
#

Keep in main tofixed can bug out in some cases.

junior laurel
#

Heyy

#

How do I rename items as placeholders to use in gui?

#

@idle coral

tender vaporBOT
#
Hey!

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

junior laurel
#

ok sowwy

turbid tide
#

for the gui I mean

junior laurel
#

Command Panels | Custom GUIs 3.15.5.4

#

I want to install one

#

u can also suggest

#

for minecraft 1.16.4

#

I want to display some information using gui

#

I have the placeholder codes

turbid tide
#

well are you sure that COmmand Panels even supports PlaceholderAPI?

junior laurel
#

Idk that

junior laurel
#

For making gui menu

turbid tide
#

Well you can use DeluxeMenus for example. I Know for sure that plugin supports PlaceholderAPI

junior laurel
#

Ohh ok

#

Thanks

modern lynx
#

An economy plugin have numeric placeholders, but it shows numbers as 43958349. I want commas but it doesn't support. Do you know any add-on that does it?

austere hawk
#

how do I put a player count for a server on a npc

turbid tide
#

you can try the %server_online% placeholder

austere hawk
turbid tide
#

that won't work no.

#

CItizens doesn't accept placeholders as names

#

afaik

#

you have to set your own hologram using HolographicDisplay I think

#

but you can try I guess

#

maybe they added PAPI support

austere hawk
turbid tide
#

yes I think so. also if its a server from bungeeocrd then you need to use %bungee_<server-name>% not server_online

#

well actually you need: HolographicDisplay, HolographicExtension and ProtocolLib

cunning elk
#

any idea why %localtime_timezone_GMT-3,k:m% is returning the wrong time?

empty pilot
#

Since Minecraft is changing to Java 16 I want to switch of nashorn engine for obvious reasons. What would I put in the engine mode for JavaScript to use graal?

#

Please @ me if you know

vivid sparrow
lethal sphinx
#

hello i use Jobs rebon and i can show me the job dat i have how i can show it?

junior laurel
tender vaporBOT
#
Hey!

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

storm lantern
#

I have a question I need to clear peoples inventories and a plugin we have got rid of the like @p option but does anyone know how to clear someones inventory with a command block when they step on it?

turbid tide
#

and please don't spam all channels

#

thanks

storm lantern
#

I didnt?

turbid tide
#

and I am not pissed at you. just letting you know how and where you should ask

#

that's all

primal cloak
#

is there a way to utilise javascript engine on Java16?

turbid tide
#

not yet no. There is a new version in development but there are still some issues to take care of before it can be released

primal cloak
#

owch! i'm back in MC after many years and saw notifications in my console that nashorn is getting removed in future JDK releases and was wondering if I should still stick to PAPI's javascript

turbid tide
#

yeah it got removed in java 15 I think

primal cloak
#

you will be required to run Java16 for spigot 1.17, and by doing that you are forced to lose javascript engine

turbid tide
#

well the new js expansion will probably be released by then

primal cloak
#

sounds good

turbid tide
#

its just the dev was kinda busy I think. And is mostly done just needs more testing and there's a few bugs we discovered

primal cloak
#

is it extendedclip?

turbid tide
#

nope. thienbao is working on it

primal cloak
#

oh

#

did extendedclip leave Minecraft?

turbid tide
#

he did not. but he is taking a break and has been taking a break for a while now.

primal cloak
#

makes sense. had a few of his plugins that I bought back in 2016, there's hex in 1.16 now and deluxechat doesn't seem to support it so I had to ditch that one as well

turbid tide
#

yeah. he was working with someone else on a complete rewrite but idk when that's coming

primal cloak
#

i'm with ezchat now, seems perfect and its opensource as well 👍

scarlet valve
#

Do anyone knows a good speed tracker
Block/sec or something like that
Speedpersec expansion isnt really good

austere hawk
#
[19:42:24 WARN]: [PlaceholderAPI] failed to download expansion information
java.util.concurrent.CompletionException: java.net.UnknownHostException: api.extendedclip.com
        at me.clip.placeholderapi.expansion.manager.CloudExpansionManager.lambda$fetch$4(CloudExpansionManager.java:174) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.CloudExpansionManager$$Lambda$6339/0x00000000564de020.get(Unknown Source) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_292]
        at java.lang.Thread.run(Thread.java:823) [?:1.8.0_292]
Caused by: java.net.UnknownHostException: api.extendedclip.com
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[?:1.8.0_292]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_292]
        at java.net.Socket.connect(Socket.java:607) ~[?:1.8.0_292]
        at java.net.Socket.connect(Socket.java:556) ~[?:1.8.0_292]
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.New(HttpClient.java:339) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.New(HttpClient.java:357) ~[?:1.8.0_292]
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) ~[?:1.8.0_292]
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) ~[?:1.8.0_292]```
#

can anyone help pls

flint nacelle
austere hawk
#

yes

flint nacelle
austere hawk
#

now i fixed thanks

muted tartan
#

Does anyone know a plugin so that I can sync a few placeholder api placeholders over multiple servers? Without the plugins installed on other servers that provide those placeholders..

vivid bison
#

Hello i have i queston

#

How ro delete it?

#

Loaded class javassist.d from PlaceholderAPI v2.10.9 which is not a depend, softdepend or loadbefore of this plugin.

turbid tide
#

that's just a debug message from spigot. no way to disable it afaik

short flicker
#

PlaceholderAPI doesn't shade javassist tho 🤔
infected jar perhaps?

glass carbon
#

Hey I am very new to this :)
I am currently using Deluxehub and I am trying to display Luckperm roles. I have installed the extension through papi ecloud. Now I try to write "%luckperms_prefix%" but it just displays %luckperms_prefix%

turbid tide
#

that means the expansion is not actually registered

glass carbon
#

That was my thought too

turbid tide
#

execute these 2 commands:

/papi ecloud download LuckPerms
/papi reload```
glass carbon
#

But it did say it installed it correctly

#

Let me try again

turbid tide
#

if that doesn't work do /papi dump and send the generated link here

glass carbon
#

Yeah

#

It says no expansions were registered

#

Though I can see it there

#

under expansions

turbid tide
#

restart the server and send the startup log. it usually says in there why it didn't load it

#

?startuplog

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.

glass carbon
#

Alright

#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

glass carbon
#

There

#
Failed to load due to a [NoClassDefFoundError], attempted to use net/luckperms/api/LuckPerms```
#

How would I update an expansion

turbid tide
#

well you'd have to go to plugins/PlaceholderAPI/expansions and delete the jar from there and reexecute those 2 commands

glass carbon
#

Oh

#

Alright

#

Let me go

#

do that

turbid tide
#

wait

#

nvm

glass carbon
#

Ah

turbid tide
#

according to the logs

#

you don't even have LuckPerms

#

the plugin installed

glass carbon
#

Wat

#

I have setup all our ranks already haha

turbid tide
#

well it doesn't show up in the logs

#

make sure you have the jar

#

in the plugins folder

glass carbon
#

Ooh

#

Let me check

#

Aight I am reintalling it again

#

Aight

#

So now it doesn't show anything lol

turbid tide
#

that means you have no rank with the prefix set

#

try %luckperms_rank%

#

to see if at least you have the rank

glass carbon
#

I do tho

#

I can't send pictures

#

Wait

#

Group is the same thing as rank no?

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
#

but probably

glass carbon
#

They are ok good

#

Trying to use imgur but internet is not the best

#

Can u see this

#

Oh

#

I think I found the issue

#

I use bungee, that has luckperm included already

#

Can I use bungee_luckperm_rank

turbid tide
#

you have to link the bungee luckperms to the server luckperms using mysql

glass carbon
#

Oh lord

turbid tide
#

not that hard.

#

all you have to do is get a mysql database, export the current database

#

and import it back when you switched to mysql

#

still a bit of work tho

#

you'll have to follow their wiki

glass carbon
#

I'll look at it tomorrow, I need some sleep before work

#

Ty for your help mr. Blitz

turbid tide
#

👍 gn

scarlet valve
#

Do anyone knows a good soeed tracker
Block/sec
Bc speedpersec isnt that good

quartz hull
#

Hey can someone help me setup placeholder api so it says if the a server is online or offline over a npc?

errant iron
#

Well, I'm not sure what NPC plugin you use, but if it supports PAPI, then all you need to do is use either the Pinger expansion, or the BungeeCord expansion to see if they're online

empty pilot
#

How can I change the engine to graal for JavaScript expansion?

arctic zealot
#

hi i cant convert javascript argument to placeholder in placeholderapi.

for ex:

i write var x = `%rank_${args[0]}%` and its gives an error. how can i convert javascript argument to placeholderapi's placeholder?

turbid tide
#

var x = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "rank_" + args[0] + "%")

meager vault
turbid tide
#

is your server running java 15 or 16 by any chance? If yes you'll probably have to downgrade for a bit until the new javascript expansion and deluxemenus are launched

junior musk
#

||this error sounds more like a file that has been edited/removed while server was running tho||

arctic zealot
turbid tide
#

yeah

arctic zealot
#

okay thank you so much

junior musk
#

🤷

#

does it still happen when you restart the server?

meager vault
#

seems fixed, strange, it's nice 🙂

junior musk
#

¯_(ツ)_/¯

modern lynx
#

An economy plugin have numeric placeholders, but it shows numbers as 43958349. I want commas but it doesn't support. Do you know any add-on that does it?

arctic tiger
#

Hi, i've implemented the papi repo in my maven project.
How can i "auto download" expansions?

turbid tide
#

I don't think the API offers that afaik

#

you could probably use the ecloud to download it from there yourself. using a plugin of course

arctic tiger
#

So plugins that requires PAPI and a specific expansion don't download it by themself?

turbid tide
#

nope. Server owners have to download using /papi ecloud download EXPANSION-NAME

#

but nowadays most people just put the expansion inside the plugin

#

bcz that is possible as well

arctic tiger
#

Because if i try to run the command "papi ecloud download Statistic" inside my plugin (as console), i get "failed to find an expansion named Statistic" (PAPI is a dependency)

turbid tide
#

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

austere hawk
#

any help?

mint fable
#

?help

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

Source

austere hawk
#

Is there a way to make a countdown on the same day? I'm using the Server expansion but I can't seem to do this. I'd like to make a countdown for daily restarts, and honesty it's preferable if I had a way to just get seconds in the day instead of per minute

mint fable
#

hmm

#

might need to do some math @austere hawk

#

it might help to make a javascript for it, to keep it clean

static crescent
#

Does the PlaceholderAPI.static.setPlaceholders() still work with javascript expansions? I always get the Caused by: <eval>:1 ReferenceError: "PlaceholderAPI" is not defined error. Please @mention me if you know how to fix this.

#
var pos = "ndsmysql_position";
var something = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + pos + "%");
mint fable
#

%math_{server_time_HH*3600}+{server_time_mm*60}+{server_time_ss}% @austere hawk

#

that should give you seconds in the day I think

austere hawk
#

actually that works decently... but is there a way to get like... the seconds since a certain time (ex. 14:55)

#

if that makes any sense

mint fable
#

ye

#

just do a countdown

#

you can combine dates I bet

#

so take the hour and minute you want, get today's date

#

and combine it

austere hawk
#

soo i managed to mess around with it but i can't seem to get something that compares the amount of seconds passed in a five minute window, returning 100 if it just started and 0 when 5 minutes have passed, i'm trying to do this for a plugin that only works in that format

mint fable
#

5 minute window?

#

why 100