#placeholder-api

1 messages · Page 89 of 1

loud mortar
#

yes

brisk coral
#

Parse the placeholder and see what it returns

loud mortar
#

i sent you a ss

warm topaz
#

no need, just do what frosty said

loud mortar
#

how do i parse the placeholder

warm topaz
#

/papi parse me %autorank_current_rank%

loud mortar
#

ok

brisk coral
#

Thank you Kali, on mobile so writing is hard

warm topaz
#

agreed

#

np

loud mortar
#

it just responds with "%autorank_current_rank%" in chat

brisk coral
#

Are you sure you're using the correct placeholder?

warm topaz
loud mortar
warm topaz
#

i guess that makes sense if so

brisk coral
#

Ecloud should be latest same as github

loud mortar
#

so should i change it to %autorank_active_path%

brisk coral
#

Try, not familiar with the expansion so not sure what that returns

loud mortar
#

not working

warm topaz
#

it returns %autorank_active_path%?

loud mortar
#

yes

#

/papi parse me %autorank_active_path%

warm topaz
#

hmmm

loud mortar
#

also returns %autorank_active_path%

brisk coral
#

Do you have the plugin installed?

loud mortar
#

autorank?

#

yeah lol

brisk coral
#

And is it loaded properly

loud mortar
#

yes - no errors

brisk coral
#

Odd, lemme hop on pc

loud mortar
#

legend

#

Expansion-AutoRank.jar is also in the plugins/placeholderAPI/expansions folder

brisk coral
#

There's actually so many unlisted placeholders in the expansion kek

loud mortar
#

mhm

brisk coral
#

sec lemme list them to you

#
%autorank_total_time_of_player%
%autorank_total_time_of_player_formatted%
%autorank_daily_time_of_player%
%autorank_daily_time_of_player_formatted%
%autorank_weekly_time_of_player%
%autorank_weekly_time_of_player_formatted%
%autorank_monthly_time_of_player%
%autorank_monthly_time_of_player_formatted%
%autorank_local_time%
%autorank_local_time_formatted%
%autorank_global_time%
%autorank_global_time_formatted%
%autorank_completed_paths%
%autorank_active_paths%
%autorank_eligible_paths%
#

Those are all the placeholders

loud mortar
#

which one tells you your rank?

#

currently

brisk coral
#

second to bottom

#

(I think)

loud mortar
#

%autorank_active_paths% tells you all your ranks

brisk coral
#

I'll update the wiki/gh once I get access, unless someone else can right now cough @vivid sparrow cough

loud mortar
#

absolute legend @brisk coral

#

can you add a placeholder for autorank that only shows current rank?

#

%autorank_active_paths% = shows long list of paths

brisk coral
#

Those were already added, ask Staartvin to add more things

loud mortar
#

how?

#

can i not @ him?

brisk coral
#

Don't think he's in this discord no, check spigot

warm topaz
#

message on spigot or see if he has his own discord server

loud mortar
#

wtf?

#

second and third row are not showing properly What should i do?
Settings.yml

    1:
      interval: 80
      liner:
      - '&cName:&6 %player_name%      '
    2:
      interval: 80
      liner:
      - '&cMoney:&6 %vault_eco_balance%'
    3:
      interval: 80
      liner:
      - '&cRank: %vault_prefix%'
    4:
      interval: 80
      liner:
      - '&cClaim Blocks: &6%griefprevention_remainingclaims%'
    5:
      interval: 80
      liner:
      - ''
    6:
      interval: 5
      liner:
      - '&4discordlink'
      - '&4discordlink'
brisk coral
#

Not showing properly as in? Also what plugin

loud mortar
#

scoreboard-revision

brisk coral
#

I mean yea, which one tho

loud mortar
#

idk

#

scoreboard-revision plugin

#

placeholder-api

#

wont show

brisk coral
#

Does it even support PlaceholderAPI?

loud mortar
#

yes we were working on it before

#

its not showing in game

#

so?

warm topaz
#

whats not showing? the whole line or the placeholder?

loud mortar
#

whole line

warm topaz
#

if ur seeing this on the same client version as ur server version, then id recommend speaking to that dev about it as it could be an issue with the plugin itself. ive no experience with the plugin so i couldnt tell u

loud mortar
#

ok

#

thx

wooden shuttle
#

Q: /papi parse leasoncre %player% should just print my username right? or am i doing it wrong? tried a few other placeholers and they all just print the placehoder w/o parsing it

junior musk
#

%player_name%

#

and you need the player expansion

wooden shuttle
#

o.O 👍

tight surge
#

Can anyone help with potion data I cant get it to work. What would the data be for potion of swift 3mins?

junior musk
#

do you have Essentials ?

tight surge
#

yeah

junior musk
#

try to do /itemdb while holding the potion

tight surge
#

Just says
Item: Potion

then gives lots of "short names" which dont seem to work.

junior musk
#

what's you server version ?

tight surge
#

paper 1.15

junior musk
#

ah

#

idk then =/

#

I think it's done with nbt since 1.13

brisk coral
#

It's a 5 digit number

#

Where are you trying to use that btw?

tight surge
#

deluxe menus?

brisk coral
#

Yea 5 digit number

tight surge
#

Where can i find them, ive tried googling it

tight surge
#

sorry just realised i was in #placeholder-api
If anyone knows how to add potions in deluxe menus @ me in general-plugins.

eternal jackal
#

They know which placeholder is position (x, y), I try to use bannerboard but it doesn't let me select two points

balmy marten
#

Hmm bladeRR1?

#

Not sure what you're trying to do?

brisk bronze
#

I need support. With luckperms bungeecord. I am using essentials chat {DISPLAYNAME} &f» &7{MESSAGE} that is my chat format and I have a prefix on a group but when I set my self to the group the prefix does not show

warm topaz
#

=paste

tender vaporBOT
#
HelpChat Paste

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

warm topaz
#

whats the error

wicked chasm
junior musk
#

I need support. With luckperms bungeecord. I am using essentials chat {DISPLAYNAME} &f» &7{MESSAGE} that is my chat format and I have a prefix on a group but when I set my self to the group the prefix does not show
@brisk bronze if you have LuckPerms on Bungeecord, you will also need it on Spigot

mint fable
#

@wicked chasm what statistic expansion are you using

#

also what placeholder are you using?

#

for the cows

wicked chasm
mint fable
#

make sure you're on the latest version by typing /papi ecloud download statistic and /papi reload

mint fable
#

Try using %statistic_kill_entity:ZOMBIE% instead

#

so using a : instead of a _

wicked chasm
#

ok

mint fable
#

I believe that is what the latest version uses

wicked chasm
#

yup

#

thanks a lot

#

that was the problem

#

thanks again

mint fable
#

👍

hearty flame
#

anyone know if there is a formatted version of %player_total_exp%

mint fable
#

I don't think so, you can use javascript for it though

hearty flame
#

Could u help me with that? (=

#

Never used javascript before lol

#

Would just like it to format it the same as the formatted vault eco one

mint fable
#

well

#

you're in luck

#

I already made it

#
var lvl = parseInt(args[0]);

function formatNum(num){
    if(num>=1000000){
        return (num%1000000).toFixed(0)+"m";
    }else if(num>=1000){
        return (num/1000).toString().match("-?\d+")+"k";
    }else{
        return num;
    }
}

formatNum(lvl);
hearty flame
#

ooo

#

tyty

mint fable
#

oof

#

that's for another format

hearty flame
#

what u mean

mint fable
#

that would make 5000 5k

hearty flame
#

ah

#

thats ok

mint fable
#

very possible I made it already

hearty flame
#

what if they have 50912

mint fable
#

I think 51k

hearty flame
#

hm

mint fable
#

nah 50k

hearty flame
#

would it be possible to add the .91

#

oh

#

how would i go about making it the same as the vault eco one

#

is there a way i can just copy the stuff inside and change what it checks for

mint fable
#

a bit

hearty flame
#

i might just have to get some1 to make it for me

#

cause idk what im doing lol

mint fable
#

so

#

I found this online

#
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}```
#

so this should work?

var num = parseInt("placeholder_goes_here");

function numberWithCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

formatNum(num);```
hearty flame
#

ill try it 1sec

mint fable
#

If you want a format for 50.91k I can make that too @hearty flame

hearty flame
#

Yes plz

#

(=

mint fable
#

okay gimme 1 sec

hearty flame
#

tyty

mint fable
#

ah

#

so

#

so easy

#
var exp = parseInt("50912");

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

formatNum(exp);```
#

@hearty flame check it out

hearty flame
#

the placeholder is just %exp%

#

?

mint fable
#

.toFixed(2) gives you the number with 2 decimal places

hearty flame
#

ah

mint fable
#

and you can change that whenever you want

#

0 = none

hearty flame
#

awesome ty

mint fable
#

And the placeholder will be %javascript_exp% if you make it that way

hearty flame
#

ok ty

mint fable
#

you have to define it in the config for javascript

hearty flame
#

whats the 50912 bit?

#

that was just an example number

mint fable
#

yes, I was about to say change that lol

#

almost forgot

hearty flame
#

i should change it to player_exp_total ?

mint fable
#

with the %%

hearty flame
#

ok ty

mint fable
#

err

#

%player_total_exp%

hearty flame
#

what engine should i use

#

nashorn?

mint fable
#

nashorn

hearty flame
#

okty

#

o dear

mint fable
#

that's a lot of xp

#

ah

#

I forgot to remove my %

#

make it a /

hearty flame
#

after num?

mint fable
#

in the million part

#

after num, yes

hearty flame
#

ye

#

its all working properly tyty

#

vm

mint fable
#

👍

open hawk
#
bal:
  expression: '%vault_eco_balance_commas% >= 1000000'
  type: boolean
  true_result: '&aMillionaire'
  false_result: '&cbroke'

in javascript_placeholders.yml don't work

open hawk
#

oh

#

solved

whole tree
#

When I run /papi reload my placeholders is unregistered.

brisk coral
#

Are you using the persist method?

whole tree
#

persist?

#
@Override
    public boolean persist(){
        return true;
    }
brisk coral
#

this ye

whole tree
#

I didn't add that before.

brisk coral
#

That should work, odd

#

We'll you need that

whole tree
#

Okay, so If I put that the papi will not unregistered my placeholders right?

brisk coral
#

Yea

whole tree
#

Okay, thank you so much.

tepid bridge
#

Is there a placeholderapi for pulling an external JSON file/RSS feed?

#

or even one to pull discord messages from a channel

#

i want to find a way to have an auto updated hologram for changelogs

wooden shuttle
#

discordSRV??

#

can i parse variables without needing a playername or plugin? (ie global variables like %server_version%) the parse command requires a playername...

brisk coral
#

You still need a player

#

Cause that's just how papi works

bronze bison
#

It requires a player but doesn't need a valid player. So you can use any online player or null if you're using the method itself.

open hawk
#

?

gleaming hedge
#

hi, can i use placeloldersapi to display information from one server (not the world) on another server?

junior musk
#

nope, at least not for now or I haven't found anything like that. maybe in v3 tho

sweet terrace
austere hawk
#

Is that even necessary to download that resources

#
/papi reload```
#

@sweet terrace what mc version?

sweet terrace
#

1.15.2, the /papi ecloud download Statistics gives me 'No expansion found with the name: Statistics'

marsh mortar
#

It’s statistic lmao

#

No s at the end

#

That fucked me up too in the beginning

#

@sweet terrace

brisk coral
#

@carmine veldt Perhaps suggestion, "advance" this command in papi3, instead of just saying it's not the correct expansion, a list of similarly named expansions could be returned. To help never people with naming

carmine veldt
#

sure

halcyon basin
#

How do I make "Faction Tag" not show when they are not in a faction?

brisk coral
#

Didn't I show you this a while back?

#

Anyhow, use javascript

var faction = "%faction_placeholde%";

function hasFaction()
{
  return faction == "[no-faction]" ? "" : faction;
}
hasFaction();
halcyon basin
#

Just getting back into MC.

brisk coral
#

Do you know how to use JS or do you want a link to a guide?

halcyon basin
#

Where does this go again?

formats:
  default:
    priority: 2147483647
    channel: ''
    prefix: '&8[&r%luckperms_prefix%&8] &8[&r%factionsuuid_faction_name%&8] '
    name_color: '&7'
    name: '%player_name%'
    suffix: '&f: '
    chat_color: '&f'
    channel_tooltip:
    - ''
    prefix_tooltip:
    - '%player_name%'
    - '&bRank: %luckperms_prefix%'
    name_tooltip:
    - ''
    suffix_tooltip:
    - ''
    channel_click_command: /ranks
    prefix_click_command: /ranks
    name_click_command: '/msg %player_name% '
    suffix_click_command: ''
brisk coral
halcyon basin
#

I have that installed now what?

brisk coral
#

Follow the guide

junior musk
#

are you using FactionsUUID ?

halcyon basin
#

SaberFactions

junior musk
#

do you have a lang file ?

#

in its folder

halcyon basin
#

Yes

junior musk
#

can you try to find nofactions-prefix in it ?

halcyon basin
#

Like in my faction folder?

junior musk
#

yes

halcyon basin
#

@brisk coral Has the right method he just wont tell me the last part

brisk coral
#

Please don't ping

junior musk
#

yeah but there's an easier method

brisk coral
#

I'm assuming Tangu is reffereing that you can change the string which is outputted if a user is not in a faction

junior musk
#

yep

halcyon basin
#

I dont want their to be any brackets or anything

#

Like simply just your User Rank tag when not in a faction

#

I wish you told me where the guide is because I cannot find it.

brisk coral
halcyon basin
#

So put what you sent into plugins/PlaceholderAPI/javascript_placeholders.yml
?

mental night
#

Read tutorial

halcyon basin
#

engine: nashorn

#

Do I change engine?

brisk coral
#

Nope

halcyon basin
#
example:
  file: factions.js
  engine: nashorn

With

var faction = "%faction_placeholde%";

function hasFaction()
{
  return faction == "[no-faction]" ? "" : faction;
}
hasFaction();

Didnt work 😦

brisk coral
#

Elaborate didn't work

junior musk
#

you didn't change the %faction_placehole% so yeah

#

it won't work lol

halcyon basin
#

Oh change that to saber factions one I see

brisk coral
#

Also you need to use %javascript_factions% instead of the factions one inside your chat format

junior musk
#

wait wtf

#

why do you have %factionsuuid_faction_name% if you use SaberFaction ?

#

oh

#

ok I said nothing x)

halcyon basin
#

Thats the holder for it

junior musk
#

prefix: '&8[&r%luckperms_prefix%&8] %javascript_faction%

#

yeah I saw

halcyon basin
junior musk
#

and btw this is how it should be in your chat format

#

you named your placeholder example

#
example:
  file: factions.js
  engine: nashorn

With

var faction = "%faction_placeholde%";

function hasFaction()
{
  return faction == "[no-faction]" ? "" : faction;
}
hasFaction();

Didnt work 😦

#

so yes it won't work with %javascript_factions%

#

change

  file: factions.js
  engine: nashorn

to

  file: factions.js
  engine: nashorn
brisk coral
#

Tangu, that actually shouldn't be the case, if I'm not mistaken

junior musk
#

in your placeholderapi javascript file

brisk coral
#

But I always name it the same as the file so no clue if that's actually true kek 🤷‍♂️

junior musk
#

it should

halcyon basin
#

so what do I put in the js file

#

what placeholder

junior musk
#

use the placeholder %javascript_factions% in your chat format

halcyon basin
#

and the uuid one in the file

junior musk
#

and rename example: to factions: in your javascript placheolders file

halcyon basin
#
var faction = "%factionsuuid_faction_name%";

function hasFaction()
{
  return faction == "[no-faction]" ? "" : faction;
}
hasFaction();
junior musk
#

not here

halcyon basin
#

This is right tho?

junior musk
#

javascript_placeholders.yml

halcyon basin
#

I have that named factions

#

%factionsuuid_faction_name%

#

is this correct

junior musk
#

😢

halcyon basin
#

Not working

junior musk
#

you named the FILE factions.js
but you haven't named the PLACEHOLDER factions,

halcyon basin
#

?

#

faction;

#

factions;

junior musk
#

ok I'll start from 0

halcyon basin
#

Ya were not even close xD

junior musk
#

in your folder PlaceholderAPI

#

you have the file javascript_placeholders.yml

halcyon basin
#

Yes

junior musk
#

set ```
factions:
file: factions.js
engine: nashorn

halcyon basin
#
factions:
  file: factions.js
  engine: nashorn
#

Yes

#

Already is

junior musk
#

you changed it or not ?

halcyon basin
#

Yes

junior musk
#

ok

halcyon basin
#

And it didnt work

#

Ive had that in there

junior musk
#

send your chat format file and your javascript_placeholders.yml file

#

=paste

tender vaporBOT
#
HelpChat Paste

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

halcyon basin
#

They are in your DMs

#

Still not working

#

Is anyone on that can actually help me?

brisk coral
#

@halcyon basin So what's the current status? What are you struggling with

halcyon basin
#

I dug up with old one you made me

#
var faction = "%factionsuuid_faction_name%";
var color = "%rel_factionsuuid_relation_color%";
var ezranks = "%ezrankspro_rankprefix%";
var vault = "%vault_prefix%";

function chatFormat() {
  if (faction !== "") {
    return `&7[${faction}&7] ${ezranks} ${vault}`;
  }
  return `${ezranks} ${vault}`;
}
chatFormat();
#

I edited a lil and it still says script errors

#

Im using luck perms prefix now and not ezranks

brisk coral
#

Show me what you edited it to

#

Gaby that's 500 years old, don't question it

vivid sparrow
#

Can you use ${} ?

brisk coral
#

It works so yea you can

halcyon basin
#

%luckperms_prefix%

brisk coral
#

We'll it worked

junior musk
#

maybe with another engine ?

halcyon basin
#

Can we stay on topic ❤️

brisk coral
#

Do you still want all the placeholders above?

#

or do you want just the faction one so you can edit the rest inside the chat format itself

vivid sparrow
#

Can we stay on topic ❤️
Huh

brisk coral
#

Tangu, it was nashorn so no (iirc)

junior musk
#

k

halcyon basin
#

When not in a Faction I need it to show just luck perms with a brackets
When in a faction it needs to show luck perms prefix in brackets and factions tag w/relation colors in brackets

#

^

brisk coral
#
var faction = "%factionuuid_faction_name%";
var color = "%rel_factionsuuid_relation_color%";
var prefix = "%vault_prefix%";

function chatFormat()
{
  return faction == "" ? prefix : '&7[' + color + faction + '&7]' + prefix;
}
chatFormat();
#

Try that, just interested if it'll work with ${}

vivid sparrow
#

just return prefix, no need for the extra stuff

#

and you have to use backticks for ${} to work

brisk coral
#

Gaby, it's for science

junior musk
#

it's for science
lel

vivid sparrow
#

`${prefix}`

halcyon basin
#

Do I need to change anything?

brisk coral
#

Copy paste that, no need to change anything

halcyon basin
#

whats Gaby talking about?

brisk coral
#

Was talking about the previous example where I used ${value} instead of just value

halcyon basin
#

Well this is what I have now

#

I need Brackets for the User Rank to if possible

brisk coral
#

Sure

#

Eating rn so wait like 30min

brisk coral
#
var faction = "%factionsuuid_faction_name%";
var color = "%rel_factionsuuid_relation_color%";
var prefix = "%vault_prefix%";

function chatFormat()
{
  return faction == "&6[&ano-faction&6]" ? '&7[' + prefix + '&7]' : '&7[' + color + faction + '&7]' + ' &7[' + prefix + '&7]';
}
chatFormat();
halcyon basin
#

Giving it a try rn

#

Not yet

brisk coral
#

Try that

halcyon basin
#

I did?

#

Oh you edited

#

I see 😉

brisk coral
#

So I don't keep reposting the message

halcyon basin
#

Not working yet

brisk coral
#

Try that

halcyon basin
brisk coral
#

No clue then, there has to be a way to change that [no-faction] to something else

halcyon basin
#

Then it would show the brackets only?

brisk coral
#

It would show a blank string, which is easier to check then a colored string

halcyon basin
#

Well what should I do boss man

brisk coral
#

=paste

tender vaporBOT
#
HelpChat Paste

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

brisk coral
#

Show the factions config

harsh hearth
halcyon basin
#

How do I use this?

brisk coral
#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
HelpChat - Usage
Pastebin
Hastebin

brisk coral
#

Click usage

#

xMoty, it says the issue

harsh hearth
#

so how can i fix it?

halcyon basin
brisk coral
#

Which placeholder were you using?

#

GrandDaddySmoke Not the paste I was talking about, but it's atleast dark theme.

halcyon basin
#

I tried.

harsh hearth
#

oops, It's OKAY when I change to %statistic_kill_entity:ZOMBIE% from %statistic_kill_entity_ZOMBIE%

#

ty

halcyon basin
#

Does that paste still work for you

#

🙄

brisk coral
#

@halcyon basin There should be an option in the lang file to change the [no-faction]

#

line 1422 apparently

halcyon basin
#

Checking just remove it?

brisk coral
#

set it to ""

#

so it returns a blank string

halcyon basin
#

Ok

brisk coral
#

I mean yea now adjust the check..

halcyon basin
#

Now were stuck with the brackets and can we put the UserRank before the Faction tag

#

What check dog im a skid

brisk coral
#

I can see yea,
replace [no-faction] with empty string

halcyon basin
#

I did that

brisk coral
#

Show me what you have rn

halcyon basin
#
  return faction == "" ? '&7[' + prefix + '&7]' : '&7[' + color + faction + '&7]' + ' &7[' + prefix + '&7]';
#

Just removed that from here to

#

can you switch the prefix to the front for me?

brisk coral
#

I mean ,-,

#

Wait what did you do, why did you add the braces back when the string is empty?

halcyon basin
#
function chatFormat()
{
  return faction == "&6[&ano-faction&6]" ? '&7[' + prefix + '&7]' : '&7[' + color + faction + '&7]' + ' &7[' + prefix + '&7]';
}
chatFormat();
#

Heres it unchanged

brisk coral
#

Oh shit I messed that up lmao

#
function chatFormat()
{
  return faction == "" ? '&7[' + prefix + '&7]' : '&7[' + prefix + '&7]' + ' &7[' + color + faction + '&7]';
}
chatFormat();
halcyon basin
#
function chatFormat()
{
  return faction == "&6[&ano-faction&6]" ? prefix : '&7[' + prefix + '&7]' + ' &7[' + color + faction + '&7]';
}
chatFormat();
#

Why is mine not the same color?

brisk coral
#

javascript

#

not java

halcyon basin
#

oh

#

whats the difference

brisk coral
#

two different languages

halcyon basin
#

damn

#

Ok trying this hopefully its final

#

Ty for all your help so far as usual

brisk coral
#

change the no-faction to empty string before ofc

halcyon basin
#

the one in the function?

#

or the lang file

#

ive removed the stuff in the lang file

brisk coral
#

Copy the above function, just edited it

halcyon basin
brisk coral
#

What's the error

halcyon basin
#
function chatFormat()
{
  return faction == "&6[&ano-faction&6]" ? prefix : '&7[' + prefix + '&7]' + ' &7[' + color + faction + '&7]';
}
chatFormat();

Using this exactly

brisk coral
#

I mean what about the var's ?

halcyon basin
#

like console error

brisk coral
#

Do you have the variables above the function?

#

or did you delete them

halcyon basin
#
function chatFormat()
{
  return faction == "&6[&ano-faction&6]" ? prefix : '&7[' + prefix + '&7]' + ' &7[' + color + faction + '&7]';
}
chatFormat();
#

This is my factions.js file

brisk coral
#
var faction = "%factionsuuid_faction_name%";
var color = "%rel_factionsuuid_relation_color%";
var prefix = "%vault_prefix%";
#

put this above the function chatFormat()

halcyon basin
#

should I be changing the vault_prefix to the luck perms one?

brisk coral
#

They both return the same thing so no need

#

I mean you can if you want to but it won't change anything

halcyon basin
#

Alright here we are currently

torpid gate
#

Hello, the Statistic placeholder does not work for me "it is installed but the stats are not updated" I am using spigot 1.12.2 what can I do? "no error appears"

brisk coral
#

Which placeholder?

#

Also, /papi ecloud download statistic 1.7.0

brisk coral
#

And remove the previous expansion

torpid gate
#

I am using that version

brisk coral
#

I mean yea, I'm asking which placeholder doesn't work

torpid gate
#

None works for me

brisk coral
#

@halcyon basin Remove the &6[&ano-faction&6]

torpid gate
#

everything is installed correctly but the stats not updated when I do something "mine blocks, kill mobs .."

halcyon basin
#

It worked but it removed the UserGroups brackets also

brisk coral
#

Where are you using the placeholders Abyx

#

GrandDaddySmoke, that's because you don't read the chat, I told you I updated the message and you didn't copy it

halcyon basin
#
function chatFormat()
{
  return faction == "" ? '&7[' + prefix + '&7]' : '&7[' + prefix + '&7]' + ' &7[' + color + faction + '&7]';
}
chatFormat();
#

Is this the right function?

brisk coral
#

Yes, but you also need the variables

warm topaz
#
var faction = "%factionsuuid_faction_name%";
var color = "%rel_factionsuuid_relation_color%";
var prefix = "%vault_prefix%";

function chatFormat()
{
  return faction == "" ? '&7[' + prefix + '&7]' : '&7[' + prefix + '&7]' + ' &7[' + color + faction + '&7]';
}
chatFormat();
#

right frosty? xd

brisk coral
#

mhm

halcyon basin
#

Works perfect

#

Thanks Frosty ❤️ Appreciate you

vivid sparrow
#

@warm topaz did we lost you too??

warm topaz
#

huh

vivid sparrow
#

{

}

warm topaz
#

i just copied whatever frosty put it

#

and combined the messages

#

but yes i guess u lost me too, i prefer i like that

#

f this shit
function chatFormat() {

}

bronze bison
#

Just a fyi, the relation color placeholder won't work.
Or depends on where you're using it and how it parse the placeholders.

hardy whale
#

Can we get a placeholder for current bungee server? the same name that /server uses. I know %server_name% exists but that means for every server I'd have to edit in two places, which defeats the purpose of PAPI imo

hardy whale
#

I need the name of the server the user is on, not the player count

mental night
#

ah

hardy whale
#

What does that plugin have to do with giving me a Placeholder for the name of the server the user is on?

mental night
#

Plugin but might be useful to an extent

#

And don't think u can do what ur asking with placeholderapi maybe in v3

#

and it has a /find

#

which tells u what server the player is on

hardy whale
#

I just want the staff chat messages to have the current server they’re on in the prefix

buoyant grotto
#

Hello everyone, I am trying to create a balancetop gui in deluxe menus, I read that some of the vault placeholders aren't available for offline players. Does anyone know of another way to get offline top balances? I'm not seeing any other hooks. I'm having a hard time figuring out what to even google. If anyone has any tips that would be much appreciated!

trim mist
#

Essentials might be able to

buoyant grotto
#

Didn't see any hooks for essentials that would work. There are only hooks for the player, rather than for others.

buoyant grotto
#

Does essentials just store their top balances, which allow them to get a baltop? I assume I'll probably have to do something similar

vestal flicker
#

looking to find out why PAPI can't "find" a player that is online - /papi parse <playername> results in "Failed to find player xyz"

#

i have things that depend on new players having parsed placeholders

vivid sparrow
#

It doesnt work with offline players

vestal flicker
#

@vivid sparrow a player that is online

#

it fails to find

vivid sparrow
#

Ah

#

Hm

vestal flicker
#

the only common factor is that it only happens on their first join

#

if they reconnect it magically works

#

(i can use /papi parse, etc)

#

but otherwise i cant use any player-based placeholders related to that player

#

(or use parse cmd on them)

vestal flicker
#

anyone?

mint fable
#

are players not saved when they join?

#

do you have a plugin that saves players every x minutes or something like that?

vestal flicker
#

@mint fable nothing of the sort

tender vaporBOT
#

@vestal flicker

Hey!

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

vestal flicker
#

joining on first time and then executing /save-all also didnt do anything

#

PAPI still refuses to find me until ive reconnected

compact dagger
#

%player_item_in_hand_level_<enchantment>% trying this but confused with the enchantment id, could someone help me?

junior musk
#

what's your server version ?

#

@vestal flicker do you have ProtocolSupport or ViaVersion + ViaBackwards ? because I remember someone had a server on 1.14.4 and I joined on 1.12.2 and the parse command couldn't find me

#

but when I joined on 1.14.4 it worked

compact dagger
#

anyone ?

junior musk
#

what's your server version ?

#

ok if you don't want help...

compact dagger
#

me ?

junior musk
#

yes

compact dagger
#

1.12.2 paperspigot

#

when the item got enchantment(while holding the item in hand), the material wont appear in the menu

#

any enchantment

junior musk
#

I don't understand the problem, in your DM menu you have an item and it doesn't appear enchanted ?

compact dagger
#

sry but i didnt use DM

junior musk
#

I know

#

but I don't understand your problem

#

what's not appearing ?

#

the item or the enchantment ?

#

and what does the placeholder has anything to do with it ?

compact dagger
#

i put that to the material lore, when i reload the items is disappear idk why

junior musk
#

can you send your menu

#

?

#

=paste

tender vaporBOT
#
HelpChat Paste

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

compact dagger
#

ok

scenic sand
#

Hmm, okay so it doesn't seem to be installing when I do /papi ecloud download PlayTime

#

Okay so it seems that no extensions are being installed when I use /papi ecloud download

junior musk
#

do you have the plugin ?

#

when you see that an expansion name is in blue and that you can click on it on the wiki page, that means that it needs the plugin

compact dagger
#

%math_{player_item_in_hand_level_DIG_SPEED}+1% any way to making it real number not decimal ?

junior musk
#

Add [precision:0]

#

%math_{player_item_in_hand_level_DIG_SPEED}+1[precision:0]%

#

@compact dagger

vestal flicker
#

@junior musk dont have anything like that, i do i have protocol lib but no version gimmicks

dire scroll
#

for some reason my essentialschat placeholders arent working vault_suffix & ezrankspro_rankprefix

#

I have them all installed also

#

oh i know why, silly me

junior musk
#

@junior musk dont have anything like that, i do i have protocol lib but no version gimmicks
Idk then

#

for some reason my essentialschat placeholders arent working vault_suffix & ezrankspro_rankprefix
You need anpther plugin to use PlaceholderAPI in EssentialsXChat

dire scroll
#

yeah it was actually ChatInjector

#

I removed it and realized I actually needed it

austere hawk
#

Tanguygab, I'm back. Players are able to remove their tag which I don't want to happen and the force permissions isn't working.

#

I have the default group and I need it to always show the default tag I created on players in the default group. They shouldn't be able to remove the tag.

junior musk
#

yeah it was actually ChatInjector
yeah I couldn't remember the name x)

#

I have the default group and I need it to always show the default tag I created on players in the default group. They shouldn't be able to remove the tag.
/lp group default permission set deluxetags.clear false

austere hawk
#

Already set

#

But they still can

junior musk
#

deluxetags.clear ?

#

and did you give them that perm as denied ?

austere hawk
#

Yes

junior musk
#

(by adding false after the perm)

austere hawk
#

Yes

junior musk
#

that's weird

#

and how can they remove their tag ?

austere hawk
#

Yes they can

junior musk
#

what command are they executing to remove the tag ?

austere hawk
#

Doing /tags and then click the remove tag head

junior musk
#

then I think you can't deny them from doing it

#

maybe post an issue on DT's GutHub to request it

austere hawk
#

Hasn't anyone else had this issue before?

#

They are literally without a prefix

junior musk
#

¯\_(ツ)_/¯

#

they don't have any prefix because they don't have any tag

austere hawk
#

Am I able to remove the button from the GUI?

junior musk
#

idk

#

I thought of that but it may break the gui

#

try

austere hawk
#

Yep, it broke it

#

Then I don't understand the point of the plugin. It is created to let players choose their prefix, but if they want to remove the custom prefix, it doesn't return the default one

junior musk
#

the point of the plugin is to create tags that are cosmetics, and they are not forced to be used as prefixes

austere hawk
#

Is this plugin used on Manacube?

junior musk
#

idk

mental night
#

@junior musk

#

Ignroe me

#

Didn't see u quote someone

#

xD

fallow basin
#

I have problem about my placeholders

#

So I added papi and installed placeholders

#

Like server, player etc..

#

And at start, it worked

#

But now when i restarted server it shows me unknown placeholders

brisk coral
#

What's your placeholderapi version

fallow basin
#

It's the latest

brisk coral
#

Any console errors?

fallow basin
#

lemme check

brisk coral
#

=paste

tender vaporBOT
#
HelpChat Paste

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

fallow basin
#

I send you screenshots frosty in dm

brisk coral
#

Paste the error in a paste, and paste the link here, personally I've never seen that error before in my life so not sure where to even look

tender vaporBOT
#
📋 Your paste, *𝕞𝟜𝕥𝕜𝟘𝕠𝟘*
https://paste.helpch.at/logiqomaco

A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.

fallow basin
#

here

#

nvm |

#

@brisk coral I fixed it

#

I just reinstalled papi

#

And now it works 🙂

#

Thank you anyway

#

Have a nice day 🙂

brisk coral
#

Very odd error though, you too

junior musk
#

Didn't see u quote someone
@mental night 😂

mental night
#

:P

#

shh

sharp jay
#

Hey can someone help me out and create a js placeholder that checks a %vault_suffix% if it has a suffix it says true if no it would say false?

vivid sparrow
#
function f() {
    return "%vault_suffix%" !== "" ? "true" : "false";
}

f();```
@sharp jay
sharp jay
#

@vivid sparrow need the true & false part 😛

vivid sparrow
#

😉

scenic sand
#

So I've got a crate plugin and a items that have been renamed to what I would like them to be, but the crate plugin just simply puts out the item material. Is there a placeholder for displaying an items name?

austere hawk
#

is there a placeholder for supermobcoin to put in deluxechat ?

wet basinBOT
#

@junior musk Unknown expansion.

junior musk
#

If SuperMobCoin have a PlaceholderAPI expansion, then yes

austere hawk
#

Well does it

#

they have placeholders according to the plugin page but i dont see an expansion

junior musk
#

Maybe it is in the plugin

#

If it shows in /papi list then ot should work

austere hawk
#

it doesnt though

#

i dont have the expansion downloaded however the plugin says theres placeholders for it

junior musk
#

I'll check

#

Try to do /papi parse me %supermobcoins_mobcoins%

#

Does it returns the placeholder or the right amount?

vestal flicker
#

still looking to find out why PAPI cant find players on their first join - really need to fix this

wispy mortar
#

Hello, can someone help me how I can write a javascript with the PlaceholderApi where he checks the item whether the lore is still free. And choose a random number from 1000 to 2000.

vivid sparrow
#

@wispy mortar free as in doesnt have lore?

wispy mortar
#

I just want to have the item's lore checked to see if it is set or not.

vivid sparrow
#

And what about the random number part?

wispy mortar
#

Yes, if there is no item lore set it should make a random number

vivid sparrow
#
function checkItem() {
    var min = 1000;
    var max = 2000;
    var hand = BukkitPlayer.getInventory().getItemInHand();

    if (hand == null || hand.getType().toString().equals('AIR')) {
        return '0';
    }

    if (hand.hasItemMeta() && hand.getItemMeta().hasLore()) {
        return '0';
    }

    return randomNumber(min, max);
}

function randomNumber(var min, var max) {
    return (Math.random() * max) + min;
}

checkItem();```
@wispy mortar this should work
wispy mortar
#

What does getIteminHand actually mean? If I get the item now, for example, then I'm not holding it in my hand.

vivid sparrow
#

here

#

that's the method to get player's item in hand

#

what item do you want to check then?

wispy mortar
#

I have a CrackShot plugin and I want to put a RandomNumber on a lore, but the problem is that it is broken every time and that means it would make a new generated number.

vivid sparrow
#

hm

#

do you want the items to be unique or?

#

the thing is that you will have to tell to the js which item to check

wispy mortar
#

We want to leave a serial number on items so that you can track them in logs.

vivid sparrow
#

you might want to try UUID or another system because this id wont be unique

wispy mortar
#

ok

sour bronze
#

Anyone know if it's possible to do a unit conversion of a placeholder with papi ? 🙂

vivid sparrow
#

definitely - if you are talking about math

sour bronze
#

I want to convert a placeholder in millisecond into hour in a deluxemenu

vivid sparrow
#

you can use math for that

sour bronze
#

how i can use math into menu ?

vivid sparrow
#

%math_{placeholder}/(1000*60)%

sour bronze
#

oh wow

#

ok

#

thanks !

vivid sparrow
#

yw

sour bronze
#

😄

#

i need to keep {} ?

vivid sparrow
#

yes

sour bronze
#

okok, thanks

vivid sparrow
#

@arctic loom can you have spaces inside math placeholders?

arctic loom
#

Nope. Why would you want that?

vivid sparrow
#

just wondering

sour bronze
#

And there is a way to precise how many number i want after comma ?

vivid sparrow
#

Setting the precision on config will affect all placeholders but you can edit it for one placeholder by adding [precision:#] at the end

arctic loom
sour bronze
#

thank you so much !

abstract sorrel
#

If i have a server restarting every 6 hours, what would be a good place holder to use when wanting to show the time until restart in a tab list that can use placeholders?

mental night
#

just get a message announcer to count down or smthing

abstract sorrel
#

hmmm

arctic loom
#

Why do you even restart every 6 hours?

#

Like I get it if it was every 24 hours, but every 6???

mint fable
#

I used to restart every 6, it was modded so it was slightly needed at the time

#

But now they restart every 12 hours

abstract sorrel
#

6 Hours gives me multiple openings when it comes to adding in something new and i would rather the restart be the thing to load it in, instead of manually restarting at that time including with players on.

#

6 Hours is also not that often and is pretty reasonable with how i am running things. It may change later on but not right now.

#

Either way, i am still looking into what i can do to display a consistent timer of when the restart will happen whether it be 6, 8, 12, or 24.

mint fable
#

I use broadcasts

#

you can probably make a javascript placeholder

vocal field
#

Hi, I'm using luckperms extracontexts which allows for placeholderAPI contexts.

I'm looking for a simple placeholder which can be true when a player first logs on and is otherwise false. Or if its a integer placeholder, counts upward after logging on. Are there any placeholders that come to mind?

thorny mural
brisk coral
#

? ecloudblock

#

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

brisk coral
#

@thorny mural

thorny mural
#

yes??

#

Oh i get it

#

Thx

sudden slate
#
[17:27:28 INFO]: [PlaceholderAPI] 167 placeholder expansions are available on the cloud.
[17:27:28 INFO]: [PlaceholderAPI] 1 installed expansions have updates available.

Getting this on a fresh install, on the first start. Haven't installed any expansions, nor does the list command give anything. Running latest 1.15.2 Paper with Vault and PAPI installed

brisk coral
#

Any expansions in the folder?

sudden slate
#

Nope

trim mist
#

I'd ignore it, not hurting anything.

sudden slate
#

Just figured I'd report it anyway

abstract sorrel
#

Need to find some kind of tutorials to understand how java script placeholders work.

#

If you have a good decent one you know if, just direct message it to me.

exotic elbow
#

I want to know if this would be possible with a javascript placeholder: There's this sleep plugin (SmoothSleep) I'm using that can display a title while the player is in bed. Normally, it'll just show the current world time, but I want to be able to show a random stat (from the Statz plugin's papi placeholders) every 5 or so seconds (e.g. "You have killed 1577 mobs on this server") or maybe even a tooltip (e.g. "Use /home to tp to your bed").

It's the "every 5 or so seconds" I'm worried about, since the title seems to update very quickly. Would it be possible to make it to hold on an output until it comes time to change?

fervent moon
#

Is there a placeholder that shoes the MOTD of a server ? (i use bungeecord)

trim mist
#

Afaik nothing for bungeecord, no.

fervent moon
#

oh and for a server

wet basinBOT
fervent moon
#

just a server without bungee

trim mist
#

I'm aware, eCloud is having issues so it can't pull data.

#

Uhhh check the wiki for the time being.

fervent moon
#

ok

junior musk
#

@fervent moon you can show a server motd with the qpinger expansion, but I think it can't show a custom motd from a plugin, it only takes the one from the server.properties

fervent moon
#

oh...

#

i use custom motd with my plugin lol

junior musk
#

someone told me before (Frosty I think) that there would possibly be a way to get the shown custom motd, but I didn't have any news ¯\_(ツ)_/¯

fervent moon
#

¯_(ツ)_/¯

abstract sorrel
willow saddle
#

Hey,
i was just trying papi on my test spigot server today and it seems like i cant parse placeholders for some players, whereas i can parse them for others.
Only message in chat is: "Failed to find player:"
Console/Logs doesnt show any error aswell.
Did anyone ever experience this and/or knows a fix for it?

vivid sparrow
#

Rejoin

willow saddle
#

Ok, seems like that fixed it. Thank you ✌️
Do you know why that happens by any chance?

vivid sparrow
#

Not really but will be fixed on v3

willow saddle
#

Oki, thanks

leaden birch
#

How to change the %player_total_exp% format? Like 1000exp to 1,000exp

narrow thorn
#

I seen where is no CrazyCrates PlaceholderAPI

vivid sparrow
#

placeholders are built into the plugin

narrow thorn
#

I try doing {crazycrates_voting_total}

vivid sparrow
#

%placeholder% for PAPI placeholders

narrow thorn
#

and %crazycrates_voting_total%

#

so

#

%placeholder_crazycrates_voting_total%

#

?

junior musk
#

%placeholderapi_crazycrates_voting_total%

vivid sparrow
#

no tang

narrow thorn
#

same thing

vivid sparrow
#

that's the format %placeholder%

narrow thorn
#

So how would I put it?

junior musk
#

no tang
but if he is using it in FeatherBoard or another plugin that only uses MVDWPAPI I mean

narrow thorn
#

I don't have FB yet

#

Feathboard

junior musk
#

So how would I put it?
replace the {} by %%

narrow thorn
#

I am making it show in the crate plugin

junior musk
#

%crazycrates_voting_total%

narrow thorn
#
    #Toggle on and off the holograms for the crates.
    Toggle: true
    #The height of the hologram above the crate.
    Height: 2
    #The message that will be displayed.
    Message:
      - '&a&lVoting &7Chest'
      - '&bYou have &3%crazycrates_voting_total% &aVoting &7Crates'
      - '&7>> &fRight click to open!'
#

I already tried that

junior musk
#

what plugin is this ?

gleaming charm
#

facepalm

narrow thorn
#

CrazyCrates

junior musk
#

there are holograms in CC ?

vivid sparrow
#

^

narrow thorn
#

Yes

vivid sparrow
#

you cant use papi placeholders everywhere

#

sadly 😦

gleaming charm
#

^

vivid sparrow
#

if the author of that plugin add support for it, sure, otherwise we cant do anything on our side

narrow thorn
#

It says there is support

vivid sparrow
#

they offer placeholders to use in other plugins

gleaming charm
#

Go to their discord they can help you better

vivid sparrow
#

yup, use HEXT

#

maybe one day HD will have papi support smh

narrow thorn
#

XD

gleaming hedge
#

Can I use a placeholder-api to display values on another server?

frigid rain
#

Where is the value for this placeholder being taken from?

%server_name%

It always says A Minecraft Server for me

dire scroll
#

what plugins do you have?

frigid rain
#

UltraPermissions, IllegalStack, Papi, ProtocolLib, TAB, Vault

dire scroll
#

surely its TAB

frigid rain
#

what do you mean? tab has an additional placeholder which is just called %server% but you can't use that on a server. only on the proxy

dire scroll
#

maybe papi config ?

frigid rain
#

bruh

#

fuck me

dire scroll
#

there's a function called server_name so surely its grabbing from there no?

frigid rain
#

thanks

dire scroll
#

np lol

#

aand thats on google

frigid rain
#

I tried google, I already tried a lot of stuff like setting that key in the properties. it was too simple to see.

dire scroll
#

always the simple things you overthink

#

i've come to find

#

i did literally just search "%server_name% placeholder" on google and found a thread about the same issue tho ;p

frigid rain
#

🙃 damn it

dire scroll
#

lol

winter turret
#

mojang removed from server.properties on 1.14

trim mist
#

Lol what

warm topaz
#

no?

winter turret
#

No? 🤔

brisk coral
#

mojang removed from server.properties on 1.14
wut

trim mist
#

I don't think they will ever remove that.

winter turret
#

Let me check on my server

#

Inside the config.yml file in the PlaceholderApi folder

expansions:
  server:
    server_name: Server Name```
#

you need to install the expansion with /papi download Server and /papi reload

warm topaz
#

im confused, whats that got to do with server.properties

trim mist
#

^^ lol

winter turret
#

nothing 😅

#

I got confused with another configuration

trim mist
#

Okie

slow grotto
#

Hi

#

I cant download placeholderapi extension of ajParkour

trim mist
#

We don't have an expansion by that name in the eCloud.

slow grotto
#

Oh, really.

#

Well, i will do how can i have that, thanks.

junior musk
#

maybe its built in the plugin ?

#

try to see if it shows in /papi list

slow grotto
#

yes is already

#

How can i enable this?

junior musk
#

if it's in /papi list then that means that it is enabled

#

so you can use placeholders

slow grotto
#

is not working with holographicdisplays and i dont know why

junior musk
#

because HD doesn't support PlaceholderAPI

slow grotto
#

Oh, really?
I dont know that, thanks.

junior musk
#

you need to download ProtocolLib and HolographicExtension to make placeholders work in Holograms

#

then it will work =)

slow grotto
#

Thanks

#

❤️

#

Is not working anyway, i have tested so much

#

I dont know why not work, i have protocol lib, holographicextension, placeholder api and holographicdisplays

junior musk
#

what placeholder did you try ?

slow grotto
#

%ajpk_stats_top_name_1% and other

junior musk
#

can you try to do /papi parse me %ajpk_stats_top_name_1% and tell me what it returns

slow grotto
#

yes wait

#

thats return the top 1

junior musk
#

mmmh

#

can you send your plugin list ?

slow grotto
#

sure wait

#

dont charge wait

junior musk
#

did you restart when installing ProtocolLib and HolographicExtension ?

slow grotto
#

not the true, i have used plugman

#

i will test to restart

junior musk
#

yep, restart will work

#

ProtocolLib doesn't support reloads

mental night
#

Don't use plugman

#

Its disgusting

#

It breaks server plugins

junior musk
#

it is usefull for some plugins sometimes

#

but it's true that most of the time it breaks things

slow grotto
#

Yes now work, thanks so much.
I will think if not use more plugman, the true me dont like use that ever but well, thanks.

junior musk
#

you can use it, but if yiu notice that things don't work properly, try to restart

gleaming charm
#

Plugman is great just a few plugins don’t work after being messed with one being protocollib, however I won’t let you insult a plugin that helps me reload my plugins loads of times no issue at all while I’m creating it.

mental night
#

Yeh

#

When configuring with just urself

#

its fine

#

But if you have a playerbase or more and its not for configuring

#

Ehh

#

U should look otherways

cunning charm
#

Has the Pinger expansion been removed from the ecloud??

balmy marten
cunning charm
#

I've got the expansion, but it's not listed as active?

balmy marten
#

Try deleting it and redownloading it

cunning charm
#

Something related to LuckPerms?

#

Pinger is now registered 🤔

balmy marten
#

Yeah update luckperms to v5+

cunning charm
#

Thought I did that earlier, cheers anyway 👍🏼

#

LuckPerms-Bukkit-5.0.72.jar

balmy marten
#

Make sure the expansion is also the latest

cunning charm
#

The expansion cloud is not enabled. Something on my end? I'll download manually for now

balmy marten
#

You must of disabled it in the config

#

or via cmd

leaden birch
#

How to change the %player_total_exp% format? Like 1000exp to 1,000exp

mint fable
#

let me find my link

#
var num = parseInt("placeholder_goes_here");

function numberWithCommas(x) {
    return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

formatNum(num);
#

This is a javascript placeholder

#

you put the placeholder you want to parse in the area designated

#

so parseInt("%player_total_exp%")

leaden birch
#

👌

vivid sparrow
#
var maxNumber = 10;

function randomCommands() {
    var number = radomNumber();

    switch(number) {
        case 10: {
            return '/give %player_name% stone 10'
        }

        default: {
            return '/give %player_name% stone 1'
        }
    }
}

function randomNumber() {
    return (Math.random() * maxNumber) + 1;
}

randomCommands();```
@gloomy crater this might work
gloomy crater
#

lemme try rq

#

ty in advance

vivid sparrow
#

🤞

#

ah, edited it

#

only if I was calling the function

gloomy crater
#

w8 you made it so %javascript_random% changes to a random cmd?

vivid sparrow
#

that's what you want?

gloomy crater
#

/papi parse me %javascript_random% returns script error

#

yea

vivid sparrow
#

hmm, sec

gloomy crater
#

ah okay

#

thanks lol

vivid sparrow
#

try now

gloomy crater
#

I want it so when players rightclick an item, it performs a random command (the rightclick item has already been made, I just have to get the ranomizer)

#

aight

#

javax.script.ScriptException: ReferenceError: "radomNumber" is not defined in <eval> at line number 1

#

oh I see the issue

vivid sparrow
#

change it to randomNumber() xd forgot a n

gloomy crater
#

yea noticed lol

#

its working :D thanks

#

so I just have to add a case 2: bla bla bla to add more commands?

vivid sparrow
#
var maxNumber = 10;

function randomCommands() {
    var number = randomNumber();

    switch(number) {
        case "10": {
            return '/give %player_name% stone 10'
        }

        default: {
            return '/give %player_name% stone 1'
        }
    }
}

function randomNumber() {
    return ((Math.random() * maxNumber) + 1).toFixed().toString();
}

randomCommands();```
Here, fixed version.
#

yes, but dont forget to add "" around number

gloomy crater
#

oh okay

#

working correctly now, thanks :D

vivid sparrow
#

yw

austere hawk
#

`>.... [22:37:24 ERROR]: [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.expansion.redisbungee.RedisBungeeExpansion

.... [22:37:24 ERROR]: [PlaceholderAPI] Channel must contain : separator (attempted to use RedisBungee)`

#

anyone how to fix

#

worked fine before

twin mauve
#

Why happen this?
[04:36:30 WARN]: [InfiniteAnnouncements] Loaded class me.clip.placeholderapi.PlaceholderAPI from PlaceholderAPI v2.10.4 which is not a depend, softdepend or loadbefore of this plugin.

austere hawk
#

Can someone tell me why papi wont register redisbungee expansion?

balmy marten
austere hawk
#

lovely

twin mauve
#

oh

royal parcel
#

hello, i have problem with player_exp placeholder

#
/papi parse me %player_exp%
wise scaffold
#

How would I use a scoreboard objective which has a _ in it? %objective_score_ts_DthCreeper% returns an internal error.

junior musk
#

try renaming the objective ?

wise scaffold
#

So there is no way to use such.

junior musk
#

like, with a NBT editor

wise scaffold
#

%statistic_entity_killed_by:creeper% will work, whatever.

austere hawk
#

What is wrong with this JavaScript?:


function always() {    
    if (p === "Wkrotce" ) {
        return "&a&lStart już wkrótce";
    } else if (isNaN(p)) {
        return "&a&lStart za: &e" + p;
    } else {
        return "&c&lBłąd";
    }
}
always();```
I am learning
#

It cannot load

mint fable
#

load how? @austere hawk

#

looks good to me

#

load into papi?

austere hawk
#

By putting this into Javascript folder

mint fable
#

did you also add it to the javascript config?

austere hawk
#

Yes I have 1 other scripr already

mint fable
#

Are there errors?

#

You say that something is wrong, but nothing looks wrong, I ran it through a tester and it works

#

so what is the issue? how do you know something is wrong?

austere hawk
#

When I do /papi reload there is no message about this JavaScript

#

There is a message about this other tho

brisk coral
#

You probably forgot to register it

topaz parcel
#

Can someone guide me please on how to properly uninstall an old ecloud listed extension? I've tried a variety of things, from removing jar and clear cache, and i dunno what, but each server restart it just shows up again. Thank you in advance.

uncut pilot
#

/papi unregister <expansion name>

#

then do /papi reload

topaz parcel
#

uhm.. done this as well.. will do it with papi reload on top. maybe ive just tried too many tthings without noticing proper results.

carmine veldt
#

which expansion is it?

topaz parcel
#

mcmmo (for mcmmo classic placeholders)

#

after stop and start, papi ecloud list installed shows;
1: McMMO -- http://api.extendedclip.com/media/Expansion-mcMMO_wPkfGmm.jar

i can't even tell anymore now if that's the old one or electroniccat's new mcmmo 2.2's jar installing that one as a new one.

uncut pilot
#

have you gone into the config.yml of placeholderAPI and removed it from the config then reinstalled the correct one?

topaz parcel
#

maybe i should just go to bed.

#
check_updates: false
cloud_enabled: true
cloud_allow_unverified_expansions: false
boolean:
  'true': 'yes'
  'false': 'no'
date_format: MM/dd/yy HH:mm:ss
expansions:
  player:
    ping_color:
      medium: '&e'
      high: '&a'
      low: '&c'

Remove what from config.yml ?

uncut pilot
#

Hmm

#

it should show under expansion

topaz parcel
#

running PlaceholderAPI version 2.10.5-DEV-83 with git-Spigot-8faa8b4-13ed05d (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT) btw. just to clarify. with mcMMO 2.1.latest

#

mcmmo shows under papi list and McMMO shows under papi ecloud list installed

#

what i pasted above is all i have (minus some top # comments) in my config.yml.

mint fable
#

Are you sure you're deleting the correct file?

#

In the correct server directory

#

@topaz parcel Hope you double check when you're awake 👍

austere hawk
#

He left XD

mint fable
#

I see

rapid kestrel
#

hi im having an issue with DeluxeMenus and Papi

#

wait hol up

#

what expansion uses %player_name%

#

ah Player

#

nvm i found the solution

mental hearth
#

Just a quick question, am i able to use this plugin and another comatible plugin to display a tag as a prefix of players?

winter turret
#

if the chat formatting plugin is compatible, yes!

mental hearth
#

yeah i figured out how to do it and i did a lot of other amazing shit aswell, and it took me 1 min to do it, its hella easy, i feel fucking dangerous after i installed this plugin, i could use this to hack the fucking government now wtf

#

thanks

#

bye

kind spoke
#

and Kiteboard for the scoreboard

final shadow
#

Anyone use the papi maven repo

indigo anchor
#

Sorry, i dont download ecloud 😄 Problem solved 😄

vivid sparrow
#

I do, why clip?

final shadow
#

I added ssl to the repo url and want to make sure it works fine

turbid tide
#

GOD himself in chat

vivid sparrow
#

I only see clip, huh

#

xd

austere hawk
#

does papi have an placeholder to get bungee servername?

turbid tide
#

like the server you are in?

ocean crypt
#

hi

#

im having some trouble with the uptime placeholder

#

i want it to only display days and hours

#

ive tried to use %server_uptime_dd.MM_1d.1h%, which doesnt work. Kinda obvious

#

🤔

devout yarrow
#

Hi, I'm trying to set up a LeaderHeads armor stand that populates with the latest player to join my server. is there a placeholder for that?

#

The last three players would be epic.

vivid sparrow
#

hmm

devout yarrow
#

It'd be at first login, not at the point of being whitelisted

brisk coral
#

Don't thing there currently is a placeholder for that

devout yarrow
#

Righto. Thanks anyway.

ocean crypt
#

may i get help to my problem please?

trim mist
#

I don't believe uptime supports that. Just countdown and time.

brisk coral
#

JS might be your solution for that

bronze bison
#

^

rigid lance
#

Hello I'm trying to create my own placeholder and basically I want to turn this message into a placeholder

#

I followed the instructions but how can I make the message return the value of this // %someplugin_placeholder1% if(identifier.equals("placeholder1")){ return plugin.getConfig().getString("placeholder1", "value doesnt exist"); }

vivid sparrow
#

just return that text

#

return "&b&lSERVER GOAL: &f" + counter + "&7/" + "&f" + woodNeeded + " &bLogs Chopped"

brisk coral
#

I'm assuming that's in a different class? So just use the actual placeholder

bronze bison
#

@rigid lance PlaceholderAPI doesn't support JSON (text component) as a return value. You can only return strings.
But you can send them another messages using that method you sent.

pastel anvil
#

Can use papi with LuckyPerms on SignCommands? Example:
/lp user {user} parent set {vip/super/ultra... }?

junior musk
#

LuckPerms*

#

and if SignCommands supports PAPI then it should work

pastel anvil
#

I want to create Gang/FBI system in GTA Server with permission plugin.

rigid lance
#

So I have this

        if(identifier.equals("placeholder1")){
            return plugin.getConfig().getString("placeholder1", "value doesnt exist");
        }
Config: placeholder1: "§b§lSERVER GOAL: 5K Logs"

how do I use the placeholder now?