#placeholder-api

150650 messages · Page 22 of 151

trim mist
#

Yeah

mint fable
#

maybe you're not overriding

devout summit
#

im in class :wheeze:

trim mist
#

Because if the player is null

#

It returns ""

#

I think almost all expansions check for player first and return null or ""

mint fable
#

it's their expansion

trim mist
#

Oh

devout summit
#

yeah

trim mist
#

Okay. Code after class

mint fable
#

not overriding is my initial thought, but code later for sure 👍

devout summit
#

i mean, when i actually pass in a player it works just fine :/

trim mist
#

Yeah

candid cape
#

hey can u update papi hooks on KoTH v1.5.1?

warm topaz
#

its not up to papi to update expansions, but rather the authors of the plugin/expansion themselves

candid cape
#

project is abandoned last 2 years

dense trail
#

I don't know how to explain this but how do I make it that a random number generated in a javacsript can be used somewhere else

#
var min = 1;
var max = 5;

function randomInteger() {
   if (args.length == 2) {
       min = args[0];
       max = args[1];
   }

   var random = Math.random() * (max - min);
       random += min;

   return Math.floor(random);
}

randomInteger();

this generates the random number between 1 and 5 and I want to use that number somehow in a message in chat.

warm topaz
#

use rng expansion 🙂

dense trail
#

elaborate?

#

@warm topaz how to use it?

warm topaz
#

if u need 1 to 5 then use %rng_1,5%
dont forget to download the expansion if u havent already

/papi reload```
dense trail
#

Alright but... how do I use that same generated number in a message?

#

/papi parse me %rng_1,5% & %rng_1,5% = both different numbers

#

and what I want is to have the first one generate a number and then display that number in chat (cause i'm using it for exp gain)

warm topaz
#

put the placeholder in whatever plugin ur using to send the message?

vivid sparrow
#

You need to store it somewhere, take a look at js Data @dense trail

#

Could add that to rng @warm topaz %rng_last%

dense trail
#

Yeah for now i'll just skip it then... or find a other way

#

I don't know anything of javascript, I just adjust code to my likings

vivid sparrow
#

Mkay

dense trail
#

but indeed like u said gaby thats what I need

#

rng_last

warm topaz
#

oh right thats what u mean

#

understood

twilit walrus
#

so how can i help kp-pvp things to work

#

becaus i want holograms that show how meny deatsh, kills, and all that

#

but theese dont work

#

%kp-pvp_player_kills%
%kp-pvp_player_deaths%
%kp-pvp_player_coins%
%kp-pvp_player_streak%
%kp-pvp_player_is_on_kitpvp%
%kp-pvp_players_count_total%
%kp-pvp_player_kit%
%kp-pvp_player_level%
%kp-pvp_player_xp%

#

/hd setline Kitpvp 1 &b&lKills %kp-pvp_player_kills%

#

what is wrong with that

#

dosent work

#

look the picture

warm topaz
#

can u do /papi parse me %your_placeholder_here%

twilit walrus
#

its says

#

well its automaticly instailed

#

so i dont know how could i do that

#

and this is the link

warm topaz
#

what?

#

just run the command to see if the placeholder is actually parsing

twilit walrus
#

BUT i dont know the name

#

or the placeholder

warm topaz
#

/papi parse me %kp-pvp_player_kills%

twilit walrus
#

it says %kp-pvp_player_kills%

warm topaz
#

do u have the kp-pvp plugin installed?

twilit walrus
#

Of corse

#

wait

#

i mayby have difrent let me look

#

um

#

i had wrong papi

#

sory

#

lol

gloomy crater
#

wasnt there a placeholder that showed the blocks/sec of a player?

#

not talking about the walkspeed, but their speed at a given time

#

nvm its an expansion which somehow breaks other placeholders for some weird reason

mental night
#

yeh

#

shouldnt break others

brittle mica
trim mist
#

Those are just debugs

turbid tide
#

yeah. Thienbao should rly make it not be on by default and add an option in javascript_placeholders or something

#

@rare lily ^ idea for you

#

make it have a debug option in javascript_placeholders instead of showing all those messages by default

#

told ya they will get annyoing when you have tens of javascripts

sick onyx
#

heyhey, quick question: How do i use a placeholder inside a placeholder? currently working with our own coded plugin and a tablist plugin. That Tablist Plugin supports placeholders. Since we want to get the placeholder from that specific player on the tablist, we use %saocore_playerlvlother_playername%, but how could i use another placeholder inside of it? we tried %saocoreplayerlvlother%player_name%% but that seems to break the whole Placeholder entirely

warm topaz
#

there was a method like PlaceholderAPI.setBracketPlaceholders(), idk if it still exists or not

sick onyx
#

the bracket placeholders did work for a bit until we restarted the server. we did %saocore_playerlvlother_{player_name}%, which worked for a bit

#

Nevermind, figured it out. accidentally used player instead of player_name in the placeholder

gentle flicker
#

Is there any reason to why my Karma Overload Expansion did not get verified on the ecloud website?

trim mist
#

Probabaly never asked to have it verified?

gentle flicker
#

😮

#

Fair enough 😂 How do I ask to get it verified?

trim mist
#

Do you have a link to the source?

gentle flicker
#

The source being the expansion or the plugin which the expansion is for?

trim mist
#

I mean both would be preferred. I just have to look through the code myself to make sure it's safe.

gentle flicker
#

I hope there isn't anything wrong with either, as I don't have that much time to program since I started university

trim mist
#

I'll check it when I'm at my PC. Might be tomorrow.

gentle flicker
#

Yeah take your time no worries

#

Thank you c:

vivid sparrow
#

is the source code available anywhere?

turbid tide
#

because of %

#

%math_{server-online}-1[precision:0]%

#

oh

#

server_online as well

#

not -

gaunt cave
#

I am trying to figure out placeholders for featherboard for vote party anyone got any idea?

turbid tide
gaunt cave
#

ok

rare lily
#

@turbid tide i mean, that's part of your fault for not specify the engine type 👀

tender vaporBOT
#

@rare lily,

rare lily
#

To get the script understand

turbid tide
#

Time to downgrade the is expansion then xD

rare lily
#

nu pls

#

How about I will stack the errors into 1 then

charred mist
#

I'm getting this error when using the %server_uptime% tag and I'm not entirely sure why. I'm using Paper-231 (MC: 1.16.3).

[03:08:36 WARN]: Unexpected exception while parsing console command "papi parse FireControl1847 %server_online% / %server_max_players% currently online | Online for %server_uptime%"

Caused by: java.lang.NoSuchMethodError: 'java.lang.String me.clip.placeholderapi.PlaceholderAPIPlugin.getUptime()'
tender vaporBOT
#

@charred mist,

charred mist
#

I am running 2.10.9

junior musk
#

redownload the Server expansion with
/papi ecloud download Server
then reload PlaceholderAPI with /papi reload

charred mist
#

Thanks for the quick reply. Unfortunately I have tried this to no avail. I have also cleared the ecloud cache and refreshed, then re-downloaded, and it did not work

junior musk
#

🤔

#

what's the version of the server expansion you downloaded?

charred mist
#

It is version 2.3.1

#

[03:22:48 INFO]: Expansion: Server
Author: clip
Verified: _
Latest Version: 2.3.1
Released: 2d 39h 28s ago
Release Notes: Fixes %server_uptime%. Thanks to MrGraycat for the fix.

#

(ironic, seeing as it didn't fix the issue for me)

junior musk
#

yeah lol

#

can you check your Expansions folder in your PlaceholderAPI folder?

#

maybe there are 2 server-expansion files?

charred mist
#

Ohhh you know what, I do see two of them

lone prairie
#

Does anyone know a placeholder I can use that will get the color of my vault rank but not the actual name?

charred mist
#

Ah-ha! That fixed the issue right up. Thanks a ton!

junior musk
#

👍

#

Does anyone know a placeholder I can use that will get the color of my vault rank but not the actual name?
@lone prairie I think %vault_prefixcolor% or %cault_rankcolor%works

#

%vault_prefix_color%

lone prairie
#

ok because I tried using that and it still returned the entire prefix. The prefixes are determined by luck perms

junior musk
#

what does /papi parse me %vault_prefix_color%test

#
  • returns in the chat?
lone prairie
#

the entire prefix and test after

#

&4&l[MANAGER] test

junior musk
#

weird

#

idk if there's anything else for that then

lone prairie
#

yea i assumed %vault_prefix_color% would only return the color but for some reason it gives the entire prefix

#

thanks for trying to help

junior musk
#

I may try to create a placeholder /fix it with my poor java knowledge later

lone prairie
#

Oooo ok

minor escarp
rare lily
#

Hold on a second.. i just realized something

#

It is actually not required for the javascript expansion with file as ".js"

turbid tide
#

ugh no idea.

rare lily
#

It can be file ".txt", or any raw file with scripting content

turbid tide
#

oh

vivid sparrow
#

Cuz it evaluate the content not the file itself

turbid tide
#

makes sense

rare lily
#

Good to know

#

Now i can bypass aternos system now :)

vivid sparrow
#

🤣 🤣

turbid tide
#

what system does aternos have?

#

it doesn't allow js files?

vivid sparrow
#

Dont you still need a way to download the js expansion?

rare lily
#

It automatically clears out any content with ".js"

#

Dont you still need a way to download the js expansion?
@vivid sparrow /papi ecloud download

vivid sparrow
#

Ah

rare lily
#

Btw, i think it was because of me that they noticed ._.

#

I keep saying that I will use .js for testing hangman on their discord, that's why

turbid tide
#

who noticed what?

rare lily
#

The team, of course

#

Also, I am not in that discord currently

#

Second thought.. i'm not adding module dependency in this expansion

#

Might be too dangerous

mental night
#

How would I go along the ways of formatting the autosell placeholder with timeleft so it doesnt show minutes but it formats as in 2m 59s rather than rounding up to minutes obv javascript papi expansion

minor escarp
#

.,.

vivid sparrow
#

Statistic version?

minor escarp
#

PlaceholderAPI-2.10.9
Plan-5.1-build-770

turbid tide
#

no the Statistic Expansion version

minor escarp
#

Plan-5.1-build-770 @turbid tide

turbid tide
#

you missunderstood me again

#

The Statistic Expansion from PAPI

minor escarp
#

thats what the user thats having issues said to me

turbid tide
#

is this possible ?
@vast anchor I don't know for sure but I also don't recommend that !!!!

#

It will break all your boolean placeholders

#

jesus christ what are you thinking? xD

#

just let it yes/no or true/false or just translate it

#

that will change the return for every placeholder that used to return yes/no

rare lily
#

Let me see what is the best I could think of from editing statistic-expansion

mental night
#

thien ur good with js arnt ya

rare lily
#

Yeah

turbid tide
#

nah

#

he's trash

mental night
#

aww shame

turbid tide
#

he broke the expansion

rare lily
#

Liar

mental night
#

smh damn big scruff up

turbid tide
#

he made the debug mode always be on

mental night
#

How would I go along converting one of autosells placeholders instead of formatting to minutes to format to like 2m 59s

turbid tide
#

he's like Hitler but even Hitler cared about Germany

rare lily
#

That's your fault also 👀

mental night
#

%autosell_time_multiplier_timeleft% parses the same as %autosell_time_multiplier_minsleft%

turbid tide
#

How would I go along converting one of autosells placeholders instead of formatting to minutes to format to like 2m 59s
@mental night It only returns minutes?

#

then you can't

mental night
#

i assume that shouldnt be the case

#

not even with js?

turbid tide
#

well I mean you have 2 minutes

#

how do you convert 2 minutes to 2 minutes and 20 seconds?

#

you need to know the seconds not the minutes

mental night
#

ah

#

Then why does

%autosell_time_multiplier_timeleft% parses the same as %autosell_time_multiplier_minsleft%
parse the same

turbid tide
#

no idea.

#

ask clip when he comes back xD

rare lily
#

%autosell_time_multiplier_timeleft% is this returning minutes also?

mental night
#

yeh

rare lily
#

🤷

mental night
#

and i assume it shouldnt

rare lily
#

Update 1.6.1 in js-expansion is also gonna be a ride

rare lily
#

There're some instances where the debug message are a must to be seen

#

It's better to stack things

untold temple
#

im pretty new to using this plugin, and plugins in general, but ive installed the player expansion and its working, however when i try use %playername% in a command set to clickable sign or npc it returns something like %playername% is not a player. also idk if %player% is a thing, but ive used it in the past on an item i made and it still works, but when i try to recreate that item, it no longer works. any idea whats going on?

turbid tide
#

?player

tender vaporBOT
mental night
#

why not use the ingame command phoenix

#

/lp group <group> meta setprefix <prefix>

#

he asked a question but then deleted it

lone prairie
#

well yes but I mean thats how it shows up in the web editor

#

the problem however is that the %vault_prefix_color% placeholder does the exact same thing as %vault_prefix% and grabs the whole prefix rather than just the color

mental night
#

then use the luckperms one

#

pretty sure luckperms can fetch just the color

untold temple
#

hmm, yeah. i had that installed. i added a command to a clickable sign with another plugin that says it supports papi. if i check the command info after using the %player_name% placeholder, it returns my name, but when actually executing the command, it says %player_name% is not a player. so im guessing this is the sign plugin issue?

#

okay, it seems that luckperms doesnt recognize the placeholder.

#

idk anymore. thanks for the advice tho!

mental night
#

did u do /papi reload

untold temple
#

yeah i made sure it worked using the parse me %player_name% command and it returns my name

mental night
#

mhm

turbid tide
#

if /papi parse me %placeohlder% works then its not papi

#

its the plugin that doesn't support it

untold temple
#

figured luckperms did, ill go check out that documentation again. thanks!

#

so i added the command to a citizen npc and it works fine. just not on the sign so i guess that narrows it down to the serversign plugin.

#

thanks for the help :P

silver minnow
#

withjava String joinText = "%player_name% &ajoined the server! They are rank &f%vault_rank%"; joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText); event.setJoinMessage(withPlaceholdersSet); } (example thats on wiki), what would the value of joinText be?

warm topaz
#

wdym the value?

silver minnow
#

if I replaced withPlaceholdersSet with joinText

warm topaz
#

then it would send a join message with placeholders being parsed?

silver minnow
#

then what is withPlaceholdersSet?

warm topaz
#

¯_(ツ)_/¯

#

probably an accident

silver minnow
#

k thx!

turbid tide
#

wait what wiki is that on?

silver minnow
#

uh

#

github

#

:P

turbid tide
#

link to exact place I mean

#

xD

turbid tide
#

oh yeah

#

wait can you do string = PlaceholderAPI.setPlaceholders(player, string) ?

silver minnow
#

¯_(ツ)_/¯

turbid tide
#

I think it was meant to be ```java
String joinText = "%player_name% &ajoined the server! They are rank &f%vault_rank%";

    /*
     * We parse the placeholders using "setPlaceholders"
     * This would turn %vault_rank% into the name of the Group, that the
     * joining player has.
     */
    String withPlaceholdersSet= PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);

    event.setJoinMessage(withPlaceholdersSet);
silver minnow
#

ohh ok

#

thx 🙂

silent perch
#

I suggest to create a placeholder which shows the Server Total balance

trim mist
#

If that's what I think it is, that's a server crash waiting to happen.

turbid tide
#

🙂

warm topaz
#

lol

silent perch
#

why ?

#

Isn't ess is using it ? for /baltop

trim mist
#

I'll consider it once the baltop API goes live in Essentials.

warm topaz
#

it does it in batches tho right? like pages with /baltop 2 , 3 etc

silent perch
#

yee ik I just wanna use it somewhere else

#

in the hologram I mean

trim mist
#

It actually does it all at once but just async

#

It'll perform even better when the changes go live.

silent perch
#

I mean yeah

#

alright then I wont add it

warm topaz
#

interesting

woven radish
#

I'm using luckperms and statistics extension and I have problem with displayed time being incorrect

warm topaz
#

download placeholderapi dev build

woven radish
#

👍

warm topaz
silver minnow
#

Is there a placeholder for playtime?

warm topaz
#

in the statistic expansion yes

#

%statistic_time_played%

silver minnow
#

what does EssentialsX use?

#

for /whois

#

or if they dont use papi, what code do they use?

turbid tide
#

papi? for /whois? its their own code

silver minnow
#

ik

#

but how do they do that?

warm topaz
#

what does the command show?

turbid tide
#

ip, uuid

#

hmm

#

what else was it

#
[17:16:55 INFO]: ====== WhoIs: NAME ======
[17:16:55 INFO]: - Nick: NICKNAME
[17:16:55 INFO]: - UUID: 1c1dad11-aa3c-333c-8c32-1ba8d43d9476
[17:16:55 INFO]: - Health: 20/20
[17:16:55 INFO]: - Hunger: 20/20 (+4.8 saturation)
[17:16:55 INFO]: - Exp: 6 (Level 0)
[17:16:55 INFO]: - Location: (world, 14,443, 72, -13,135)
[17:16:55 INFO]: - Playtime: 1 day 14 hours 44 minutes
[17:16:55 INFO]: - Coins: 4,194.67⛂
[17:16:55 INFO]: - IP Address: /xx.xxx.xx.xx
[17:16:55 INFO]: - Gamemode: survival
[17:16:55 INFO]: - God mode: false
[17:16:55 INFO]: - OP: false
[17:16:55 INFO]: - Fly mode: true (not flying)
[17:16:55 INFO]: - Speed: 0.2
[17:16:55 INFO]: - AFK: false
[17:16:55 INFO]: - Jail: false
[17:16:55 INFO]: - Muted: false``` Its all information they got stored
#

I guess

#

some its just player methods

#

yeah most of it its just player methods I guess

#

and I think they cache the information when a player leave

#

because I'm pretty sure after a server restart if the player doesn't rejoin, the command doesn't find the player anymore

trim mist
#

It should attempt to pull the player information if it matches a UUID of the player to a file.

turbid tide
#

oh wait so it is /whois UUID ?

#

not /whois name ?

warm topaz
#

both would prob work if thats the case

trim mist
#

No it'll attempt to pull the uuid from the name.

rare lily
#

Wait, does 1.12 and below supports old version statistic-expansion only currently?

#

Or it's changed?

trim mist
#

I'm pretty sure the latest version works across all.

#

I think Gaby did a lot of work on that.

marble swift
#

guys can u help meu out here

#

is there a ways to disable a certain placeholder or not?

junior musk
#

yes, don't use it

novel moss
#

yes, don't use it
fingerguns

marble swift
#

the thing is im using luck perms and what ever rank i have when i type in chat is shows luckperms rank in gray than luckperms rank prefix and then my user name

#

and i want so thath the gray rak dosent show up

junior musk
#

remove the placeholder which shows that gray rank from your chat plugin's chat format

turbid tide
#

just delete the placeholder from your chat format

marble swift
#

well then im using papi wrong

#

i # the essentials chat so papi could take over

#

#format: '{clans_name}{prison_rank_tag_prestiges}{prison_rank_tag_default} {DISPLAYNAME}: {MESSAGE}'

#

how can i put the placeholders working correctly?

turbid tide
#

you need to go to config.yml and set enable-suffix-prefix to false

marble swift
#

where ?

tame light
#

good evening I currently have a problem with an API

warm topaz
#

what is thou problem

tame light
#

I do "/ papi ecloud download state" but the plugins downloads the API well but does not take it into account I tested on 2 different servers but it does not work.

warm topaz
#

but does not take it into account I tested on 2 different servers but it does not work.
?

#

are u trying to use this over bungeecord?

tame light
#

no

warm topaz
#

wdym by that then

tame light
#

🤔

paper stirrup
#

does anyone know how to hook into placeholderapi? ive been trying to and have followed the wiki but it isnt working

#

nevermind

turbid tide
#

xD

#

🤔
@tame light have you also reloaded after downloading the expansion ? /papi ecloud download ExpansionName /papi reload

paper stirrup
#

^

maiden aspen
#

what do the #'s in placeholders mean?

heady urchin
#

Can someone tell me if its possible to do a time since/ count up placeholder

lunar abyss
#

so i dont understand what is going on everytime i close the server for a restart to install or test new configs and plugins it brings up this error at the end to close plugins and i think its courseing problems does anybody know why

https://pastebin.com/dGj4Uu2M

mint fable
#

it looks like the outpost papi hook is throwing errors

#

at net.prosavage.outpost.hook.impl.PlaceholderAPIHook.getAuthor

lunar abyss
#

ok mate let me try removing it

#

thank you @mint fable that seemed to have fixed it

mint fable
#

👍

velvet forge
#

Is there a way to find out what placeholders are listed from a hook via a command?

warm topaz
#

yea i think so

junior musk
#

/papi ecloud placeholders <expansion>

velvet forge
#

It's not from the ecloud

#

It's a direct hook

#

Custom plugin

junior musk
#

but I don't think it's possible to get the ones from an expansion not on the ecloud

velvet forge
#

Ah

#

Welp

#

Author has gone bye bye too

junior musk
#

actually, it's not even possible to get the ones from the ecloud because it's manually defined by the author in the placeholders section of the expansion's page

#

Author has gone bye bye too
if you got the expansion/plugin, I can maybe try to check =)

velvet forge
#

I have the sauce

#

Just have a guy working on it right now and he's like figuring out how the old author did it, wanted to see if I could get a list for him to check and see if the old ones work

junior musk
#

oki

velvet forge
#

Would that even be a do-able thing though?

#

Have placeholderapi be able to list those directly hooked expansions or no?

junior musk
#

idk

#

I don't think so

#

except if PlaceholderAPI adds a way for the authors to define manually all placeholders in the plugin

velvet forge
#

That would be do-able via the hook in directly system as is right? Just add some more code for them to implement but make it optional

wise goblet
#

So what's the topic

velvet forge
#

In the channel name

wise goblet
#

What plugin?

#

Of the placeholder hook u want to use...

velvet forge
#

It's custom

#

I know like 1 out of 3 of them

#

And the original dev just yeeted off

wise goblet
#

What does the plugin do then

#

And what placeholders do u want :/

#

From it

velvet forge
#

It's basically a revamped and rethought version of the old TreasureHunt plugin for CB 1.5

#

1.4*

wise goblet
#

So which placeholders do u want

#

From that custom treasures plugin

velvet forge
#

It's not so much what I want them to do, we understand that part it's more or less their names since the older dev just hasn't told me their names

wise goblet
#

So that plugin already has placeholders?

velvet forge
#

The new dev is just having trouble tracking them down in the code, was just trying to see if there was a way PAPI itself would list them out ofr me

#

And yeah it has 1 which I know works

#

And there are supposed to be 2 more but the old dev has cucked me

wise goblet
#

Could I help you then?

#

Just send the src or jar in pm

#

I'll try to find the placeholders I guess :/

velvet forge
#

Might not need to just asked the dev if he removed it, seems like he's just gonna rebuild it all. 😂

#

Thanks for the help though. If it's okay and we need help is it fine if I DM you then? 🙂

#

I can send the src in the mean time if so

buoyant urchin
#

Hello

#

i have a issue with Mysql expansion

#

query: SELECT WINS FROM BedWars WHERE NAME = '%player%'

#

it show me "0" but the value from database is "5"

#

if i use my minecraft name instead of %player% it working fine

brisk coral
#

Because %player% is not a placeholder

buoyant urchin
#

but what must to use?

#

i used %player_name% and same thing

brisk coral
#

Have you ran the two commands

buoyant urchin
#

in default Mysql config from /plugins/PlaceholderAPI/expansions/Mysql

#

appear %player%

#

the player expansion is installed

#

for /papi parse me %player_name% it working

#

🙂

maiden aspen
#

what do the #'s in placeholders mean?

warm topaz
#

if its what i think u mean, it represents a number i guess.
what placeholder are u talking about?

maiden aspen
#

anything from vaults permissions

warm topaz
#

then yea replace the # with a number

maiden aspen
#

what does the number do?

warm topaz
#

well it depends on which placeholder exactly, for the top placeholders then itll represent the player at that position of the leaderboard. or with the balance commas/formatted placeholders itll represent how many decimal places are being shown

maiden aspen
#

ait

mental night
#

note these placeholders arnt active check pinned messages

atomic spire
#

When using
%vault_eco_top_balance_formatted_1%
and
%vault_eco_top_player_1% it brings up nothing ?

turbid tide
#

because theose placeholders were removed

atomic spire
#

Oh, what can I use then ?

turbid tide
#

read the latest pinned messages

#

message*

#

nothing yet.

#

they are working on adding it to essentials

atomic spire
#

bruh

turbid tide
#

It was creating extreme and useless lag.

left veldt
#

Hello, i am using PAPI and Animated Scoreboard - when i try any effect from the animations extension (I did /papi ecloud download Animations and /papi reload) it just doesnt work. I tried inside the '

#

quotes and outside, it doesnt work.

#

any help would be appreciated.

dapper echo
#

Hello,
I wish to make a ranking of the 3 people with the most money on my server via the plugin HolographicDisplay, vault and AEconomy.
With an addon of HolographicDisplay, I was able to get a PlaceHolderAPI support, but then I was wondering how vault PlaceHolders work (my money plugin is Vault compatible).
That is to say that it is written among others on the wiki :
%vault_eco_top_balance_#%
%vault_eco_top_player_#%
Which one should I use? And if I understand correctly, should I replace the # with the number of the best player I want to get? (the top 1, or top 2...?)
Thank you in advance for your help,
Yours sincerely,
Spinogl

left veldt
#

Firstly, you need to replace the # with the number - correct.

About which placeholder, vault-eco-top-balance-# or if you want it with commas vault-eco-top-balance-commas-# or formatted vault-eco-top-balance-formatted-#

turbid tide
#

please read pinned messages

#

vault top balance was removed

dapper echo
#

Ohh, why was it deleted?
Anyway, it's a bit of a shame to delete it and leave it on the github :/

turbid tide
#

ugh I mean you can still use it if you use an older version of the Vault expansion

dapper echo
#

But as a result, there is no way to make a top 3 for example of the people with the most money ? :/

turbid tide
#

but if you read the message that is pinned

#

you'll understand

#

why it was deleted

dapper echo
#

Ahhh okay, and you would have this version of the extension? :/

And if not, from what I thought I understood at the time (because I'm French), now it's possible to make this top only via essentialsX?

turbid tide
#

not yet

#

it will be

#

I think you need to do /papi ecloud download Vault x and replace x with the version but I don't know what the version is

junior musk
#

baltop placeholders haven't been removed yet

#

just disabled by default

#

you can enable them in your PlaceholderAPI config

dapper echo
#

Ok, thank you very much, it seems to be working!

turbid tide
#

oh

#

didn't know that

#

good to know

low meteor
#

hey, i've given myself the permission placeholderapi.* but i'll always get "You do not have permission to do this!" when i try to use any papi command
what can be the issue?

junior musk
#

didn't know that
didn't know either, I found it while searching for the version where they would have removed the placeholder 😅

#

hey, i've given myself the permission placeholderapi.* but i'll always get "You do not have permission to do this!" when i try to use any papi command
what can be the issue?
what's your permissions plugin?

low meteor
#

luckperms

junior musk
#

do /lp user <player> permission check placeholderapi.*

low meteor
#

set to undefined

#

weird

junior musk
#

did you add the permission through the web editor?

low meteor
#

yes

junior musk
#

if yes, make sure you saved and applied the changes

low meteor
#

it is

#

and set to true aswell

junior musk
#

did you press the save button at the top right?

low meteor
#

i'll send you the link via dm

junior musk
#

and executed the command it gives you?

#

ok

low meteor
#

it should theoretically work, right?

junior musk
#

remove the negated *

#

⏫ fixed

#

LP was outdated

left veldt
#

Hello, i am using PAPI and Animated Scoreboard - when i try any effect from the animations extension (I did /papi ecloud download Animations and /papi reload) it just doesnt work. I tried inside the '
@left veldt Can someone answer my questions? I tried in quotes and not.

fervent laurel
#

Hallo, I'm using PAPI with Animated Scorboard. Unfortunately the heroes placeholders don't work. I cannot register heroes. Downloading the file works fine, but then after I reload PAPI Heroes isn't listed as an active one.

junior musk
#

@left veldt Can someone answer my questions? I tried in quotes and not.
@left veldt send a screenshot

#

?imgur

tender vaporBOT
junior musk
#

Hallo, I'm using PAPI with Animated Scorboard. Unfortunately the heroes placeholders don't work. I cannot register heroes. Downloading the file works fine, but then after I reload PAPI Heroes isn't listed as an active one.
@fervent laurel are the placeholders integrated into the Heroes plugin?

fervent laurel
#

@junior musk You need to download them from the PAPI ecloud. They are not hard-coded. So it is written in the Placeholders wiki 🙂 The download works but then it's not there

junior musk
#

do you get any errors in the console when doing /papi reload?

low meteor
#

how can i troubleshoot this?

#

<PlaceholderAPI ERROR>

warm topaz
junior musk
#

dw, he asked me in dm

warm topaz
junior musk
#

if you want the details, he was using a PAPI placeholder which wasn't working, and he tried to parse it in TAB who failed and wrote <PlaceholderAPI ERROR> instead of the output

fervent laurel
#

@junior musk When I try it with /papi register Expansion-heroes.jar then I get the message: Failed to register expansion from Expansion-hero.jar. In the Log File is nothing

junior musk
#

nothing in the console?

fervent laurel
#

@junior musk I did it again and now there is something in the console: [PlaceholderAPI] heroes is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

turbid tide
#

oh

#

...

fervent laurel
#

@junior musk It sounds that it doesn't work anymore

turbid tide
#

you need to contact the dev of the plugin

#

to update it

#

or if its open source you can update it yourself or ask someone to do it for you

#

it uses a PlaceholderHook which has been deprecated for years now but in one of the latest PAPI updates it got removed

fervent laurel
#

@turbid tide @junior musk Thank you very much. I will ask in the Hero Discord Channel if someone can update this.

turbid tide
#

👍

turbid tide
#

Hello, i am using PAPI and Animated Scoreboard - when i try any effect from the animations extension (I did /papi ecloud download Animations and /papi reload) it just doesnt work. I tried inside the
Have you also tried /papi parse me %placeholder% ? to see if the placeholder actually works

left veldt
#

Thanks for the tip! Didnt know that command existed.

turbid tide
#

👍

silver minnow
#

How do I parse placeholders outside of an event?

warm topaz
#

PlaceholderAPI.setPlaceholders() ?

vivid sparrow
#

The same way as always

silver minnow
#

This might be a dumb question... but how do I create an object for that?

#

or do I not need to?

#

I'm confuseddddddddddddd

warm topaz
#

no need

turbid tide
#

object for parsing the placeholders? you just do String string = PlaceholderAPI.setPlaceholders(player/null, oldString);

#

or you just send the message and parse it wile sending

#

or however you want to do it

silver minnow
#

thx

heady urchin
#

Can someone tell me how to do the count up / time since placeholder please

turbid tide
#

ugh can you explain again please? I can't rly tell what you want

vivid sparrow
#

the opposite of server_countdown

turbid tide
#

oh

#

man

#

I lost my js placeholder

#

I think

#

Had one

vivid sparrow
#

there is one on the wiki

left veldt
#

Have you also tried /papi parse me %placeholder% ? to see if the placeholder actually works
@turbid tide they work :), forgot to add %animation_(effect)%....

tender vaporBOT
#

@left veldt,

dense rampart
#

Is the latest version on Spigot or is there an updated version somewhere?

turbid tide
dense rampart
#

thank you

austere hawk
#

Hey, does anybody know a solution to this? (https://pastebin.com/DCMBKJtV). So i wanna create custom rewards for jobsreborn with deluxemenus and i think i might have an issue with view requirements?

silver minnow
#

in placeholderapi chat?

turbid tide
#

well I mean the requirement is about JR placeholders

silver minnow
#

oh

#

ok

#

i just thought it'd be in general plugins

turbid tide
#

I mean we kinda gave up dkim xD

#

if people don't see the name of the channel

#

..

twin sluice
#

Is there anyway I can make placeholder permissions like If a player has this permission it will disply &e[✅ ] if he dont it will display [❌] ! Is that possible? How?

turbid tide
#

Javascript

twin sluice
#

Can you give me an example?

twin sluice
#
19.10 21:07:48 [Server] INFO ^ in <eval> at line number 21 at column number 0```
#
// and use the placeholder you want, i'm using this one
var haspermission = "%player_has_permission_fawe.permpack.basic%";

// create a function with the name you want
function permission() {

// if the haspermission variable that we created before return yes (true boolean)
// the js placeholder will return what we set in the return down
   if (haspermission === "yes") {
       return "&aA";
   }

// if the haspermission varibale wasnt true it will return what we set down
   if (haspermission === "no") {
       return "&aB";
   }

// by this we are calling the function to run
permission();``` Can someone help me? What am I doing wrong?
potent dawn
#

Hi, I can't get registered the World Expansion. I'm in 1.16.3

#
// and use the placeholder you want, i'm using this one
var haspermission = "%player_has_permission_fawe.permpack.basic%";

// create a function with the name you want
function permission() {

// if the haspermission variable that we created before return yes (true boolean)
// the js placeholder will return what we set in the return down
   if (haspermission === "yes") {
       return "&aA";
   }

// if the haspermission varibale wasnt true it will return what we set down
   if (haspermission === "no") {
       return "&aB";
   }

// by this we are calling the function to run
permission();``` Can someone help me? What am I doing wrong?

@twin sluice I think you forgot to close the permission function, you missed one }

vivid sparrow
#

Yes

rare lily
#

Hi, I can't get registered the World Expansion. I'm in 1.16.3
@potent dawn can you elaborate more on this?

potent dawn
#

I download the expansion “World” and when I reload PAPI it says “0 expansions where registered”

rare lily
#

Errors in console?

potent dawn
#

Currently I’m not in my pc but it showed something about a class cannot be loaded

#

Test it and you’ll see

#

Just papi and spigot 1.16.3

rare lily
#

I can't know what your errors is if you don't give me the error

#

Also, it seems to load normally for me

potent dawn
#

When I get to my PC I’ll send the logs

civic hinge
#

Hi! Why this not working? I send image in private message

#

Who can help me?

novel moss
#

What is not working? You can send an imgur link so anyone can help

#

Or post the error code

#

=paste

tender vaporBOT
mint wolf
#

Hello,

I've been trying to use PlaceholderAPI for the first time with a supported plugin (DiscordSRV). However, it's been more difficult than I anticipated.

I've tried to use a placeholder to get the world time of a world on my server, called "Endrman". However, it's not working as expected. Does anyone have a troubleshooting guide or a way to solve this?

Thanks in advance,

Andrew

meager nymph
#

Did you download the expansion

#

/papi ecloud download world

#

/papi reload

mint wolf
#

I did papi ecloud download world, but after papi reload, it said "No expansions are registered".

#

When I go into the filesystem, I can see that the world expansion .jar file is downloaded.

meager nymph
#

uh wait

#

download it from here

mint wolf
#

Should I remove the .jar currently there, and replace it with the manual download?

meager nymph
#

yup

#

and do restart the server

mint wolf
#

Is papi reload not enough?

meager nymph
#

You can try, but I recommend server restart

mint wolf
#

Ok, thanks for the help! I'll report back here on whether it works or not.

#

Does the naming of the expansion matter?

meager nymph
#

yeea I guess

#

I never rename them

mint wolf
#

Tried it, still doesn't work. I got some console error messages too this time.

meager nymph
#

Weird

#

are you sure the world name is correctly

#

maybe try not using capital letters

mint wolf
#

I'll try that, but I'm not sure if that's the issue since the error says something about outdated expansions.

#

[21-10-2020 12:03:13] expansion class WorldExpansion is outdated

meager nymph
#

idk

#

what papi version do u have ?

mint wolf
#

2.10.9

meager nymph
#

ah latest

potent dawn
#

I had the same bug. Cannot register the expansion World

mint wolf
#

I hope this is just me being stupid and missing something obvious that is easy to fix, rather than an actual bug...

meager nymph
#

can you send me what you have in the discrodsRV config?

mint wolf
#

Sure thing.

#
# Discord canned responses
# These are triggers (commands in a way) that will trigger a "canned response" to be sent as a reply to them
# You should probably change these from their defaults or add your own
#
# Syntax is {"TRIGGER": "RESPONSE", "TRIGGER": "RESPONSE", ...}
# If you do not want any canned responses, set this to just {}
# PlaceholderAPI placeholders are supported for the values
#
DiscordCannedResponses: {"!time": "Current in-game time: `%world_time_Endrman%`"}```
#

This'll do?

meager nymph
#

yea

#

{world_time_Endrman}"}

#

try this

#

are you sure the worldname is exactly the same ?

mint wolf
#

Yes, the world name is exactly Endrman.

#

Also, I thought all PlaceholderAPI placeholders have to be surrounded with %percent_signs%?

meager nymph
#

Not always

#

like in ChatControl I had to use {}

#

for some reason

potent dawn
#

I got this error while using the expansion world:

21.10 11:29:32 [Server] Server thread/ERROR [PlaceholderAPI] expansion class WorldExpansion is outdated: 
21.10 11:29:32 [Server] INFO Failed to load due to a [NoClassDefFoundError], attempted to use net/milkbowl/vault/permission/Permission
#

do I need vault?

meager nymph
#

You don't use vault ?

potent dawn
#

Nope

#

just PAPI

meager nymph
#

wut

mint wolf
#

Yup, same here

meager nymph
#

Download vault it's always good to have

mint wolf
#

what's vault?

meager nymph
#

for economy etc

potent dawn
#

I'll install it rn

mint wolf
#

we don't want an economy...

potent dawn
meager nymph
#

permission plugin

potent dawn
#

It's like a hook

meager nymph
#

yup

potent dawn
#

and API

meager nymph
#

Most of the server needs them

mint wolf
#

Is it really that necessary? We'd prefer to keep clear of things like Vault or Essentials.

potent dawn
#
Vault is a Permissions, Chat, & Economy API to give plugins easy hooks into these systems without needing to hook or depend on each individual plugin themselves
meager nymph
#

You should need Vault

#

even tho you don't have economy

mint wolf
#

so... no way to do this without Vault?

#

that's annoying, didn't see anything about dependencies

meager nymph
#

I don't think so

#

try and see

turbid tide
#

Also, I thought all PlaceholderAPI placeholders have to be surrounded with %percent_signs%?
@mint wolf By default yes you do but some plugin developer want to use their own option.

mint wolf
#

Does Vault come with a bunch of annoying features enabled, like Essentials?

meager nymph
#

no

#

its optional

turbid tide
#

its literally an API

#

it just helps plugins hook into each other

#

it doesn't add its own features

mint wolf
#

Ok, that's way better than Essentials then, thank goodness

#

I've had nightmares with Essentials

meager nymph
#

bruv why

turbid tide
#

well its not meant to be a plugin that add features. Essentials does exactly what it says xD adds essentials features to the server.

meager nymph
#

easy to use

potent dawn
#

Now it works, thanks xD
(Forgot to install Vault)

turbid tide
#

that's annoying, didn't see anything about dependencies
@mint wolf PAPI doesn't need vault by itself to work but some expansions do. That's not under PAPI's control at all.

meager nymph
#

expansion makers

mental hamlet
#

Hi 🙂 For deluxeMenu, is it possible to create variables custom with PlaceHolderAPI ?
For example I create the variable "name" that displays Twister on a .yml file
And later I place the variable "name" in several .yml and it displays Twister in game.

turbid tide
#

javascript placeholders

mental hamlet
#

you have a examples ?

turbid tide
#

1 sec. I'll give you link to the wiki

mental hamlet
#

i find, it's good

#

thx ! 😉

turbid tide
#

oh ok

mental hamlet
#

sorry ^^

turbid tide
#

now worries

meager nymph
#

is var - int ?

#

cuz it looks like kotlin most likley

turbid tide
#

var is for every type

warm topaz
#

javascript is nothing like kotlin thonk

turbid tide
#

it is don't you see? it has the var keyword xD

fading cedar
#

after several attempts the message is still there,
Do you have a solution ? thx

Failed to load due to a [NoClassDefFoundError], attempted to use com/massivecraft/factions/RelationParticipator```
tender vaporBOT
#

This generally happens when you have an expansion but not the plugin that goes with it. Remove the expansion from the expansions folder and you'll be good to go.

fading cedar
#

I have the factionsuuid plugin it's not this extension ?

vestal atlas
#

Прошу прощения, но ваш плагин выдает мне следующую ошыбку в консоль:

[01:53:56] [pool-44-thread-1/WARN]: java.lang.NullPointerException
[01:53:56] [pool-87-thread-1/WARN]: java.lang.NullPointerException

Есть вариант как исправить? Нашел, что именно PlaceholderAPI вызывает это. Искал методом тыка. Повторяется каждую секунду.

lethal carbon
#

Anyone have issues with Vault Placeholders right now

vivid sparrow
#

English only @vestal atlas

#

What issues @lethal carbon

rare lily
#

I'm also about to push update on javascript expansion alias too

#

Which means %javascript_tictactoe% and %javascript_ttt% in one script

#

And adding support to script folder organization

vivid sparrow
#

Doesnt it already support folders?

rare lily
#

I don't think so, from the look of the code

vivid sparrow
#

It is looking for a path inside "javascripts"

rare lily
#

It means javascript/tttcollection/ttt.js

#

While tttcollection is another folder

austere hawk
#

is there server total uptime placeholder ? (like it will keep the data of the previous online times of the server and add them together)

turbid tide
#

don't think so

austere hawk
#

oh , ty anyways 😄

trim mist
#

Do we have a general uptime placeholder?

turbid tide
#

as in just the time since server has started? then yes. its %server_uptime%

austere hawk
#

actually I meant that 😄 (PlaceholderAPI is the best)

trim mist
#

Alrighty yeah, just wanted to make sure we had one cause if we didn't, I would add it.

austere hawk
#

is there a way to add PlaceholderExpansions using Java Code ?

austere hawk
#

I believe thats to create expansions correct ?
While I was asking on how to install expansions from ECloud (like use /papi ecloud download) but in java code

trim mist
#

Uh

#

Why would that be necessary?

austere hawk
#

well, it will be useless & I don't want it to be added (cuz ik u guys make decisions nicely) but I was only asking if that thing exists

trim mist
#

No, it doesn't, afaik.

austere hawk
#

I see

trim mist
#

Mainly because I don't see why it would need to?

austere hawk
#

creating a custom furnace like hypixel skyblock (idk if they have this but hypixel has alot of custom things so I just assumed)

trim mist
#

How does PlaceholderAPI have anything to do with Hypixel, Skyblock, or furnaces?

austere hawk
#

sorry but Idk how to explain it 😓

trim mist
#

It's all good!

#

Java is fun sunglas

austere hawk
#

& sometimes confusing xD

trim mist
#

Oh for sure.

austere hawk
#

wait

#

there should be a placeholderAPI extension

#

for your Kill Death Ratio

#

am i right or am i wrong?

warm topaz
#

math expansion

austere hawk
#

please elaborate

warm topaz
#

then use the statistic expansion to divide the kills / deaths placeholder

austere hawk
#

im stupid

#

like please tell me exactly how to do it im very dumb

warm topaz
#

%math_{statistic_player_kills}/{statistic_deaths}% something like that

austere hawk
#

something like, or that

warm topaz
#

i shouldnt have to spoonfeed exactly

austere hawk
#

ok

#

thank you

#

@warm topaz

#

it just says %math_{statistic_player_kills}/{statistic_deaths}%

warm topaz
#

download the expansions

austere hawk
#

oh right

#

so wich ones

#

math and what

warm topaz
#

statistic

austere hawk
#

thanks

astral depot
#

Hey i need help

#

With a Plugin and a Placeholder

#

It is not working

crisp hound
#

what plugin, what placeholder, etc etc

#

the reason no one answered is cause you gave no information

astral depot
#

The Plugin is ajParkour

#

Can i send a link here?

crisp hound
#

sure

astral depot
#

Ok wait a m

#

This is the side with placeholder

#

*placeholders

crisp hound
#

how are you using it

astral depot
#

In Holographic displays

#

You dan see it on my Server

#

Only when you want

#

yk

crisp hound
#

like in holographic displays

#

what placeholder are you using

astral depot
#

The first one of the list on the side

crisp hound
#

%ajpk_stats_top_name_<number>%
did you replace <number> with the number

astral depot
#

Yes i did

#

I have 1

crisp hound
#

try /papi parse me %ajpk_stats_top_name_1%

astral depot
#

Ok wait

#

When i do that %ajpk_stats_top_name_1%

#

That is repeated in the Chat

#

Not replaced

#

Is that right?

crisp hound
#

no that means its not working

astral depot
#

Oh

#

Now what can i do?

#

Have i to download it from ecloud?

crisp hound
#

i dont think so. it appears to be an internal placeholder

astral depot
#

Ok

#

In a Video all works

crisp hound
#

do any of the placeholders work

#

try /papi parse me %ajpk_jumping%

astral depot
#

No that does not work

crisp hound
#

I would reach out the the author of the plugin probably and ask him why the placeholders aren't working then

#

do you have errors in your console?

astral depot
#

Oh wait let me see

#

No, no error

crisp hound
#

then yea id ask him at his discord

astral depot
#

That is the Video

#

It is workinng in the video ☹️

crisp hound
#

do any placeholderapi placeholders work

astral depot
#

Yes

#

All Player,Server

#

But from Plugins no

#

Playtime is also not working

crisp hound
#

for the parkour plugin it sounds like the issue is something he will need to fix, which is why i would say you should ask him for help there

#

as for playtime

astral depot
#

Yes

#

I did that

#

But its not working

crisp hound
#

and /papi parse me %playtime_player% returns what?

astral depot
#

Not workin

#

You can come on my Server i give you OP and you can see

crisp hound
#

you have the playtime expansion plugin?

astral depot
#

Yes

#

I can redownload it when you want but

#

I have a german server

#

(i am german too)

crisp hound
#

what is your placeholder api version

astral depot
#

Oh wait

crisp hound
#

is it updated

astral depot
#

Can you send my a Link

#

For the newest version?

astral depot
#

Thanks!

#

Oh we have 2.10.6

crisp hound
#

updating might help

astral depot
#

Wait i look

#

Oh its nor working

#

not

#

Why it is not working

trim mist
#

2.10.6 isn't supported anymore.

tropic dew
tender vaporBOT
#

@tropic dew,

little berry
#

any help on this would be appreciated. papi is up to date, the expansion is and voteparty?

#

also %player_name% does not work when doing /parse me

turbid tide
#

have you downloaded the actual expansion for Player?

#

also for voteparty you don't need an expansion

#

its built inside the plugin now

#

go to plugins/PlaceholderAPI/expansions and make sure you don't have a voteparty expansion jar in there

#

also make sure you have the Player expansion jar in there

#

@little berry ^

little berry
#

I downloaded the version from ecloud not the ingame command, and I do not not have a papi voteplugin expansion installed

turbid tide
#

wait but when does that error show? when you do /papi parse me %player_name% ??

little berry
#

in console?

turbid tide
#

ye

little berry
#

nope, just returns %player_name% - that is what is confusing me

#

no errors

turbid tide
#

well when does the VoteParty error show?

#

then?

little berry
#

on server boot

turbid tide
#

could you restart the server and send a full server startup log?

little berry
warm topaz
#

can u send a /papi dump aswell please
as for the voteparty error, leave a message in #voteparty

near scroll
#

any updates on papi 3?

brisk coral
#

😮

near scroll
#

ill take that as a no

brisk coral
#

Soon™️

balmy marten
#

Yeah it's being worked on in the background, we're not near any sort of release if that's what you're after

little berry
#

yup, thanks Blitzzzz my error - the papi bump confirmed that I am blind - lol

#

I did have the voteparty expansion loaded, just did the parse me and worked fine- thanks for the help, appreciated

austere hawk
#

Please @ me 😄

turbid tide
#

you probably have 2 Bungee expansions in plugins/PlaceholderAPI/expansions

bronze pewter
#

how i can download all the placeholders at the same time with just one command

#

?

heady urchin
#

Anyone know why all the statistics placeholders are returning 0

crisp hound
#

@bronze pewter what do you mean by that

#

you can use /papi ecloud download <expansion> then /papi reload

bronze pewter
#

but there is some way for download all the expansions

#

at the same time?

crisp hound
#

uh no?

#

just download the expansions you need

nimble needle
#

so

#

whenever i stop my server

#

all my placeholders get reset

#

and dont work

#

its super annoying

austere hawk
#

Hey you lovely bunch.

#

got it. x

urban cove
#

i'm having issues with the player placeholders regarding experience. if i use player_exp it formats it weird so 10k exp come out like 0.38

#

if i use total exp it doesn't remove exp from the scoreboard whenever a player withdraws exp

mental night
#

%player_exp_to_level%
This displays as like 30 levels

urban cove
#

i am using advanced enchantments so i want people to know how much exp they have

austere hawk
#

Pls help.. placeholder isn't work..

#

%Mines_test_name%

tranquil sapphire
#

%Mines_test_name%
@austere hawk plugin?

turbid tide
#

i am using advanced enchantments so i want people to know how much exp they have
@urban cove player_exp shows how much xp you have more than the level you are at. player_exp_to_level shows how much you need until you level up. You need to use %player_total_exp%

wide dagger
tender vaporBOT
#

@wide dagger,

mental night
#

what version of tab are you running

wide dagger
#

2.10.9

mental night
#

and placeholderapi

#

that’s ur papi version

#

not tab version

wide dagger
#

Yeah

#

Sorry

#

2.8.2

mental night
#

that’s outdated i’d recommend updating

#

i think last time i checked 2.8.8 is out or at least 2.8.7

wide dagger
#

okay

#

Yeah, that was the problem

#

Thanks!

mental night
#

np

robust patrol
#

Hey, I'm trying to use a placeholder that returns a value such as 1000.0 within a click/view requirement for a DeluxeMenus button.

When I use simply just the placeholder, it returns an error about the %, which means I have to put it in "" (seemingly making it a string, and not carrying out the check)

Any alternatives / solutions?
Thanks 😄

#
      requirements:
        hasmoney:
          type: has money
          amount: "%placeholder%"```
turbid tide
#

for has money you need a placeholder that returns an integer. not a float or a dobule.

#

also yeah I don't think you can use placeholders in the has money type.

junior musk
#

also yeah I don't think you can use placeholders in the has money type.
wut?

#

BlitzZ, are you drunk? x)

#

you can use placeholders in all requirements

#

also, yes you have to use the placeholder in "" so it doesn't break the format

#

and the string is parsed as an integer in the code, so it's not an issue

#

but idk if it only works with integers, I remember using %vault_eco_balance% and it worked just fine

#

oh wut

#

that wasn't a thing before

#

you apparently have to use placeholder: "%placeholder%" now instead of amount:....

robust patrol
#

My fault, used commands instead of requirement in the first line 😝

#

"left_click_commands:"

urban cove
#

@urban cove player_exp shows how much xp you have more than the level you are at. player_exp_to_level shows how much you need until you level up. You need to use %player_total_exp%
@turbid tide I was using that. When ever players withdraw exp though that number doesn’t go down. Even worse when they add exp back after that it goes up more. It doesn’t stay accurate with current exp.

tender vaporBOT
#

@urban cove,

turbid tide
#

@turbid tide I was using that. When ever players withdraw exp though that number doesn’t go down. Even worse when they add exp back after that it goes up more. It doesn’t stay accurate with current exp.
@urban cove oh I wonder if total_exp is the score stuff

#

oh yeah seems like I was wrong

#

that shows the total xp has had since his last death

#

idk if there is a placeholder that does that then

austere hawk
#

@tranquil sapphire

Plugins (33): CoreProtect, WorldEdit, ColoredSigns, Skript, Essentials, GroupManager, PlaceholderAPI, PacketListenerApi, InvSK, SkQuery, Quarsk, Lockette, MapManager, BannerBoard, ProtocolLib, WorldGuard, Skellett, MultiWorld, VoxelSniper, WildSkript, EssentialsChat, SkExtras, Vault, MarSK, EssentialsSpawn, Lores, AnimatedFrames, HolographicDisplays, TriggerReactor, CMI, skRayFall, HolographicExtension, Mines```
tranquil sapphire
#

What mines plugin are you using?

turbid tide
#

give link to the plugin

#

because Mines is a very generic plugin name

#

also please specify what does not work mean?

mental night
#

looks like a minehut server to me

#

skript 🤮

rare lily
#

Lol

#

That's a lot of sk plugins/scripts

#

Anyway, Multiworld angry_fingerguns

#

And who put both ess and cmi at the same time

jade junco
#

anyone knows how to change timezone id in LocalTime plugin?

copper vessel
#

PAPI isn't available for Sponge 7? I wan't to use PAPI for my 1.12.2 sponge server (sponge 7)

balmy marten
#

Not yet, but it's panned

copper vessel
#

oh alright great

vast ibex
#

Here I am again needing help. Why is that javascripts work with some plugins and doesn't with others?

#

Or better yet how do I make plugins depend on papi?

turbid tide
#

check the wiki for how to add PAPI support in your plugins.

vast ibex
#

So if a plugin doesn't support papi there's nothing I can do?

turbid tide
#

nope. Only ask the dev of it to add support or if its OpenSource add it yourself

vast ibex
#

I just made a javascript %javascript_servername% and it's useless 😦

mental night
#

well did you make the javascript right 🤷‍♂️

turbid tide
#

nah Sellinq. He did make it right

#

its just that the plugins he tries to use it in

#

do not support PAPI

mental night
#

zh

#

ah

#

devs needa start upping their game and allow papi on all resources it make my life amazing

hollow aurora
#

@vivid sparrow u know if there is a javadoc for papi? I can't find it

tender vaporBOT
#

@hollow aurora,

stuck gulch
#

Hello i have problem with placeholder

turbid tide
#

ok

stuck gulch
#

sec

#

/papi parse me %statistic_seconds_played%

#

gives always 0

#

used these before
/papi ecloud download statistic
/papi reload

turbid tide
#

Server version and PAPI version?

stuck gulch
#

Server version 1.16.3
PlaceholderAPI 2.10.9

turbid tide
#

also Statistic expansion version~?

#

/papi info Statistic I think its the command to see

stuck gulch
#

2.0.0

turbid tide
stuck gulch
#

sure i will try

#

somehow i have 2 versions of expansion

turbid tide
#

oh delete one

stuck gulch
turbid tide
#

Or download both and download it again using /papi ecloud download Statistic

#

/papi reload

stuck gulch
#

Still getting 0

turbid tide
#

try deleting them from the expansion folder, restarting then doing those commands. if that doesn't work try the dev build of PAPI

stuck gulch
#

I deleted them, used that commands and still 0

#

later ill try dev build

#

thanks

near sentinel
#

How do I go about creating a simple modulo calculation in a palceholder javascript?

near sentinel
#

I'm trying
%math_{votingplugin_total_alltime}-(({votingplugin_total_alltime}/15[precision:0])*15)%
But it's not working and is giving me 0 always

near sentinel
#

Alright I figured it out with some duct tape a glue

mental night
#

Which glue?

jade junco
#

someone knows if i can change the LocalTime plugin hour?:(

turbid tide
#

someone knows if i can change the LocalTime plugin hour?:(
@jade junco you can specify a timezone can't you?

austere hawk
#

Hi, I have a problem after restarting the server I can take the set without waiting time

turbid tide
#

what set exactly?

austere hawk
#

Otherwise, maybe cooldown.data.yml, if it already has a weight of 17mb, it suddenly doesn't save anything.

#

I have such a problem DeluxMenu

jade junco
#

@jade junco you can specify a timezone can't you?
@turbid tide nop, i put the comand %localtime_timezone_<TimeZoneID>%, i need the id of Chile continental 389, so i put %localtime_timezone_<389>%, but nothing change

turbid tide
#

don't actually put <>

#

only 389

jade junco
#

nothing change:c

turbid tide
#

hmm oh yeah I forgot

#

the LocalTime expansion is broken I think

#

oh how did I forget that? I was running in the same issue a couple weeks ago

jade junco
#

I guess, because there is no way to change the id

frail fractal
#

%statistic_MINE_BLOCK_COAL% Any idea why this isn't working

turbid tide
#

isn't it %statistic_mine_block:coal_ore% ?

jade junco
#

so, Do you know any plugin to set the time?

turbid tide
#

to get the time? Nope. I know you can also use %server_time% but that will return the time in the country that the server is hosted in.

frail fractal
#

Nice one, thanks

jade junco
#

to get the time? Nope. I know you can also use %server_time% but that will return the time in the country that the server is hosted in.
@turbid tide need a download?

turbid tide
#

^

#

%server_time_<SimpleDateFormat>%

#

commands are at the bottom of the bot message

jade junco
#

dude, thank you very much

#

i lov u

turbid tide
#

👍

austere hawk
#

Someone from deluxemenus will help me

turbid tide
#

if you ask your question maybe?

#

oh

#

you're using Javascript cooldown?

#

I recommend you try the plugin MasterCooldown

#

=pl MasterCooldown

tender vaporBOT
turbid tide
#

instead

austere hawk
#

you're using Javascript cooldown?
@turbid tide
yes

#

After reboot, it does not work

turbid tide
#

Have you also tried the latest version of JavaScript? If yes then I recommend you look into that plugin

vivid sparrow
#

I need to find some time to rewrite that plugin angry_eyes

turbid tide
#

@rare lily Gaby is trying to steal your work

#

oh wait

#

nvm

#

don't reat this

vivid sparrow
#

??

turbid tide
#

he was talking about a plugin and not expansion

vivid sparrow
#

smh

turbid tide
#

thought you're talking about the javascript plugin xD

vivid sparrow
turbid tide
#

:smash:

austere hawk
#

anybody know how to display the item in the player's hand using deluxe menus

#

Why cooldown data.yml my maximum file size is 17kb?

rare lily
#

Blitz bruh

mental night
#

@austere hawk %player_item_in_hand%

austere hawk
#

what category would it go under

#

material, name, or some other

mental night
#

material: placeholder-%player_item_in_hand% iirc

austere hawk
#

alright lemme try that, ty

mental night
#

np lmk if it dont work

austere hawk
#

it worked, but it doesnt show the enchants and lore corresponding

turbid tide
#

if you want to show the lore you need to use the javascript lore placeholder

#

from the community scripts

#

but there is no easy way to show your enchants

junior musk
#

alright, alright, I know what's the next PAPI expansion I have to do... x)