#placeholder-api

1 messages · Page 142 of 1

warm topaz
#
  vault:
    formatting:
      thousands: k
      trillions: T
      quadrillions: Q
      billions: B
      millions: M
    baltop:
      check_delay: 60
      cache_size: 100
      enabled: true```
the option is right there for me
#

placeholderapi config

#

enabled: true

dawn bloom
#

My bad, everything works)

warm topaz
#

👍

dawn bloom
#

but what about play time?

warm topaz
#

u would probably need a more advanced solution for that, such as the LeaderHeads plugin

dawn bloom
#

in essentials u can find with /whois how much he played

turbid tide
#

yeah but if you want a leaderboard you need LeaderHeads

#

Essentials doesn't have a leaderboard for playtime

dawn bloom
#

Yeah, i noticed

#

can I somehow limit the numbers after the point?(in baltop)

turbid tide
#

you can remove everything after point but that's all

#

don't think there is way to limit decimals

warm topaz
#

math?

dawn bloom
#

hahah, how i can remove then

warm topaz
#

js?

#

possibly formatter?

turbid tide
#

well I guess js.

#

but not directly from the top placeholders

#

%vault_eco_top_balance_fixed_#%

warm topaz
#

kek

dawn bloom
#

ty

split portal
#

Hello, I have a problem. I would like to set the number of players on the server on scoreboard, I put placeholder %server_online% but it doesn't work.
I have a PlaceholderAPI plugin for this. Please help!

warm topaz
#

if u do /papi parse me %server_online% what does it return?

split portal
#

It return %server_online%

#

@warm topaz Are you?

austere hawk
#

@eternal wedge

warm topaz
split portal
#

Thank you for help i go sleep but i try it after 😀

austere hawk
#

[PlaceholderAPI] expansion class SemperChatExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use ru/SemperAnte/Chat/SemperChatPlaceholders

Why can this happen?

wise goblet
#

Where did that expansion come from exactly?

eternal wedge
#

Could anyone give me a hand with a script. Please message me

wise goblet
eternal wedge
#

So I'm trying to write a script that changes the ftop value in chat from n/a to nothing. ( When a faction doesn't have any value it shows the faction ftop as n/a in chat and on featherboard) basically I don't know where or how to start

austere hawk
wise goblet
#

Send the jar to me ;-;

eternal wedge
#
%skript_ftopf::ftopaddon_faction_rank%
%skript_ftopf::player%
on placeholder request with prefix "ftopaddon_faction_rank":
  if the identifier is "n/a":
    if the player prefix is "n/a"
      set the result to " "
    else:
      set the result to "%ftopaddon_faction_rank%"
``` I know its wrong but could i get a hand on how to do it
austere hawk
#
    @Override
    public boolean canRegister(){
        return (semperchat = (SemperChatPlaceholders) Bukkit.getPluginManager().getPlugin(getRequiredPlugin())) != null;
    }

I don’t know why it didn’t work, I deleted it and it worked, maybe it was due to some kind of logic change in Paper 1.12.2
Since I don't need this check, everything is fine)

#

hm

#

no, it didn't work xD

#

@wise goblet sent to private messages jars

wise goblet
#

I will check on that later... Since I am not on my pc rn

austere hawk
#

😖

austere hawk
#

@wise goblet Sorry, I already understood what the problem is .. After a bunch of hours it came to light that in the plugin API I turned off the plugin in the config

rare lily
#

These might do the trick

#

The firstInit() function will always triggered once when you first evaluating the script

#

And the JSON getter

steep thorn
eternal wedge
#

im new to coding so please explain how to

eternal wedge
#

okay i read all that and understand var and functions now.

flint nacelle
rare lily
#

I'm not familiar with that expansion, but I think it's because somewhere in the argument that you're supposed to use a number

flint nacelle
flint nacelle
rare lily
tender vaporBOT
#

@rare lily,

Hey!

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

rare lily
#

Shush

#

I keep forgetting about Barry

turbid tide
#

o

tawdry gyro
#

I have a Question when i try like /papi ecloud download Essentials it dosn Work

turbid tide
#

did you do /papi reload after?

tawdry gyro
#

Then it say No expansions found

turbid tide
#

oh

#

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

tawdry gyro
#

my mc server is on 1.16.4

turbid tide
#

^

tawdry gyro
#

Ty

remote oasis
#

Hello, so I have this plugin called Items Adder which allows you to use custom images in text, gui, signs, ... There is an integration for it to work with Placeholder API. I only recently discovered this but default players see %img_imagenamehere% instead of say the image of a heart emoji.

I can see all the placeholders with no issue. So this must be a permissions thing. Players also have custom image prefix so it's an actual image of PLAYER playername >> Hey guys This seems to work fine but when it comes to placeholders, they can't see them.

Using an image in chat is different than using it in a hologram, you'd use : heart : (no spaces) and it will show the image. But holograms like NPC's names require placeholder

turbid tide
#

to allow placeholders use

zenith bane
turbid tide
zenith bane
#

but it doesnt work

#
papi parse fuki21 %redprotect_player_used_blocks%
[16:36:24 INFO]: %redprotect_player_used_blocks%```
#

is this the correct page for report this kind of bug ?

remote oasis
#

I'm using an addon called Betterranks. The default emoji's that come with the plugin work but the ones i added don't, at least not in placeholders

turbid tide
#

and you're sure you've used it correctly? also you can set up permissions for each yourself

#

did you set them?

turbid tide
remote oasis
turbid tide
#

hmm I'm not really that experienced with IA. Used it a bit but not a lot. They do have a discord server tho where you can ask for help. because I'm not fully aware of how their stuff works.

remote oasis
#

I see

turbid tide
#

oh also

remote oasis
#

I was looking right at it hehe

#

I've tried everything

#

you could join to see if you spot anything

turbid tide
#

ain't got that much time rn.

remote oasis
#

all good

turbid tide
#

that's why I suggested going to their discord because I know IA is not that popular in here and I ain't got time to look into this anymore xD

remote oasis
#

Sure i'll try there

#

thanks anyways!

zenith bane
tender vaporBOT
#

@zenith bane,

Hey!

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

turbid tide
#

?Startuplog

tender vaporBOT
#
FAQ Answer:

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

turbid tide
#

this is how you get the startup log ^

zenith bane
turbid tide
#

just use paste bins

#

?paste

tender vaporBOT
#
FAQ Answer:

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

turbid tide
#

like these ones ^

zenith bane
turbid tide
# zenith bane https://hastebin.com/ebuyikeruv.makefile

[RedProtect] PlaceHolderAPI found. Hooked and registered some chat placeholders. as you can see it hooked. so I guess you'll have to contact their support because its most likely a problem on their part. I can't see any other errors

tranquil sapphire
#

Anyone help me with this js? So I basically wanna make like money needed to rank up and it'll display how much you need to well, obviously rankup. So it'll minus your money from the price needed to rankup. But if they have the amount or more then it'll say /rankup

#

It'd obv need to be erm, js

vivid sparrow
#
function rankup() {
    if (args.length == 0) {
        return ""
    }
    
    let cost = parseInt(args[0]) || -1
  
    if (cost <= 0) {
        return "cost is <= than 0"
    }

    let balance = parseInt("%vault_eco_fixed%")

    if (balance >= cost) {
        return "You can rankup!"
    }

    return balance - cost
}

rankup()```
Try this @tranquil sapphire `%javascript_identifier_200%`
tranquil sapphire
#

Hold on. To double check. I put this in the js folder right

#

under wotever name and then use the placeholder to identify it?

#

using this placeholder? %javascript_identifier_200%

vivid sparrow
#

identifier is whatever name you gave it on javascripts config

tranquil sapphire
#

it's just returns nothing

#

I wanna use ezrankspro placeholders within it

turbid tide
#

what for?

#

like you use the placeholder in place of the 200

tranquil sapphire
#

Like

turbid tide
#

oh @vivid sparrow let is not a thing in nashorn

#

that's the problem

#

1 sec let me fix

tranquil sapphire
#

So it'd give you an exact amount that you need to rankup

turbid tide
#
function rankup() {
    if (args.length == 0) {
        return ""
    }
    
    var cost = parseInt(args[0]) || -1
  
    if (cost <= 0) {
        return "cost is <= than 0"
    }

    var balance = parseInt("%vault_eco_fixed%")

    if (balance >= cost) {
        return "You can rankup!"
    }

    return balance - cost
}

rankup()```
#

this is it

#

he used let instead of var

#

so basically you'll use it like this %javascript_identifier_{cost_placeholder}%

tranquil sapphire
#

Confused a little ngl.

#

I wanna use

turbid tide
#

not rly because you literally have nothing to worry about

#

just use the placeholder

tranquil sapphire
#

I wanna use %ezrankspro_cost% and the players balance to get the exact amount they need to rankup

turbid tide
#

ugh that's what the javascript does for you

#

just do %javascript_identifier_{ezrankspro_cost}%

vivid sparrow
#
function rankup() {    
    var cost = parseInt("%ezrankspro_cost%")
  
    if (cost <= 0) {
        return "cost is <= than 0"
    }

    var balance = parseInt("%vault_eco_fixed%")

    if (balance >= cost) {
        return "You can rankup!"
    }

    return cost - balance
}

rankup()```
#

there

turbid tide
#

and it will cacluate automatically

lavish sail
#

Anyone know why this placeholder does not work? The output is nothing...
%parseother_{iridiumskyblock_island_top_owner_1}_{iridiumskyblock_island_members}%The placeholder %iridiumskyblock_island_top_owner_1% does give a playername in its output 🙂

tranquil sapphire
#

Still is just blank

vivid sparrow
#

it should work, just tested it

turbid tide
#

show the placeholder that you're using

vivid sparrow
turbid tide
#

like what have you typed in scoreboard?

#

not you xD

#

bcz the code is fine

vivid sparrow
#

ik smh

#

didnt read your message

tranquil sapphire
turbid tide
#

ugh...

#

{placeholder.here}

#

rankup is not a placeholder

#

from PAPI

#

%javascript_identifier_{ezrankspro_cost}% I think this should work

vivid sparrow
#

arguments arent needed

turbid tide
#

oh wait

#

I just realised

#

xD

vivid sparrow
#

is just %javascript_scriptNameHere%

turbid tide
#

didn't read the full code you sent last

#

oh @tranquil sapphire ^

tranquil sapphire
#

Ok ill give it a whirl

turbid tide
#

oh also @vivid sparrow the vault placeholder

#

seemed of but had to check

#

it also has the balance word in it

vivid sparrow
#

true

turbid tide
#
function rankup() {    
    var cost = parseInt("%ezrankspro_cost%")
  
    if (cost <= 0) {
        return "cost is <= than 0"
    }

    var balance = parseInt("%vault_eco_balance_fixed%")

    if (balance >= cost) {
        return "You can rankup!"
    }

    return cost - balance
}

rankup()``` @tranquil sapphire
tranquil sapphire
turbid tide
#

what if you do /papi parse me %javascript_rankup% ?

tranquil sapphire
turbid tide
#

ok now /papi parse me %ezrankspro_cost%

tranquil sapphire
#

0

#

I am opped

#

/papi parse me %ezrankspro_cost% works on an alt

#

Gives the correct amount

turbid tide
#

ok and if you parse the javascript on the alt. does it return anything?

tranquil sapphire
#

nope

turbid tide
#

ok send a screenshot of how your javascript_placeholders.yml looks

#

and then a screenshot of how your rankup.js file looks

tranquil sapphire
#

javascript_placeholders.yml ???

#

oh

#

The file isn't there..

#

isnt so simple like

rankup:
file: rankup.js
engine: nashorn

turbid tide
#

where is that rankup.js located in?

tranquil sapphire
turbid tide
#

hmm I'm confused because it seems to work for me. of course I don't use the cost placeholder just a random number

rare lily
#

I only have 2 tasks on the to-do list of JS-Exp

turbid tide
#

o

rare lily
#

Which is editing wiki and find a way to support all users

turbid tide
#

and it all works? I mean what you've added so far

#

support all users?

#

what does that mean?

rare lily
#

Erm... don't mention that thonking

#

But the functionality, it's all gucci

#

I finished the debug

balmy moth
#

How to remove the How to remove the decimal in
papi ecloud download math?
like 1.000 -> 1

zenith bane
tender vaporBOT
#

@zenith bane,

Hey!

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

low fiber
#

Hey, how do I retrieve values from a sql database and parse it into a placeholder?

sturdy sluice
#

I forgot the term for this, but is it possible to do this with parsing placeholders inside eachother?:%placeholder_{placeholder2_{placeholder3}}%

silver minnow
junior musk
#

it works if the expansion supports parsing placeholders within its own placeholders, yeah

#

for example, the %math_...% placeholder support placeholders with {} but %bungee_% doesn't

rustic wharf
#

Sombody knows which expansion this is %javascript_rewards-delay_OpenDelay_5% . Please tag me <

silver minnow
#

uh

vivid sparrow
#

Javascript

#

@rustic wharf

rustic wharf
tender vaporBOT
#

@rustic wharf,

Hey!

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

dense trail
vivid sparrow
#

Last update was in 2017, is probably a typo

dense trail
#

Do u know a better extension for playtime

#

cause that one isn't working

vocal folio
#

what placeholder can asynchronously get the prefix of an offline player?

silver minnow
#

swear?

dense trail
#

Glare is playertime extension doesn't work

vivid sparrow
#

js expansion is not yet compatible with java 15

vocal folio
# silver minnow swear?

%parseother_{nickname}_{vault_prefix}%

Caused by: java.lang.RuntimeException: The operation to load user data for '87803417-1311-3f9b-b275-27fdb1e63a42' was cancelled by LuckPerms. This is NOT a bug.
The lookup request was made on the main server thread. It is not safe to execute a request to
load data for offline players from the database in this context.
If you are a plugin author, please consider making your request asynchronously.
Alternatively, server admins can disable this catch by setting 'vault-unsafe-lookups' to true
in the LP config, but should consider the consequences (lag) before doing so.
steep thorn
#

@vocal folio a placeholder can't be 'asynchronous', the API doesn't work with any kind of callbacks or promises

#

What I mean by this is that it all depends on who's calling the placeholder

#

So if your plugin fetches it from PlaceholderAPI on an async thread, it will be async

vocal folio
rare lily
#

Hi. Is there even a way to push wiki changes to JS-Exp though?

turbid tide
#

oh you ain't got access to edit it?

#

can't you do it thru PRs?

rare lily
#

There isn't a way to pr that though

#

But I can clone it

turbid tide
#

ah.

#

I mean if you want I can edit it. or you can ask funnycube to give you access

eternal wedge
#

function getRank() {
  if RANK !== " "{
    return RANK !== " " ? [${RANK}];
  }
}
getRank()
``` could anyone help with this?
turbid tide
#

are you trying to return [rank] if they have a rank and an empty string if they don't ?

eternal wedge
#

so when they dont have any ftop value to return an empty string, once they do have value for the [rank] to return at the start of the prefixes

turbid tide
#
var rank = "%ftopaddon_faction_rank%"
function getRank() {
  rank != "" ? "[" + rank + "]" : ""
}
getRank()``` this should do it then
turbid tide
balmy marten
#

Potentially

#

Let me look

turbid tide
#

its in the PlaceholderAPI wiki.

#

well org

#

or whatever that is

balmy marten
#

Invited

rare lily
#

Ok accepted

eternal wedge
#

Updated the script, although ftop in chat still doesnt update with the brackets once it has a value, is there anything i need to change on DeluxeChat for it to register?

#

Also messed around with a value but still to no luck

turbid tide
eternal wedge
#

Sure just give me a sec to install a screenshot software.

turbid tide
#

can you do without again but this time this: /papi parse me TEST%ftopaddon_faction_rank%TEST

eternal wedge
turbid tide
#

ah so its a space there I see

#

thought it was just an empty string

eternal wedge
#

ahh guess so

turbid tide
#

try this then js var rank = "%ftopaddon_faction_rank%" function getRank() { return rank == " " ? "" : "[" + rank + "]" } getRank()

#

also in my old script I forgot to add return xD

eternal wedge
#

ahh lol, didnt even pick up on that lol

turbid tide
#

are you sure you're using the javascript placeholder?

#

and not the ftopaddon one?

eternal wedge
#

not sure, but i believe so, my mate set all that stuff up and jut asked me to do the code

#

looking at it, looks like he used the ftopaddon placeholder

full kettle
#

anyone know of a way to print a number string of the number of players with x permission?

#

so close :(

#

would appreciate an @ if anyone figures this out <3

turbid tide
#

use this expansion ^

full kettle
#

ily

#

ilysm

#

no way this exists

#

this is incredible

eternal wedge
#

blitz had a look into the js placeholders for fac and stuff, and none of them seem to have a fac rank or anything

#

is there any way around this or alternatively we switch it up and not use factop instead some map points style thing

silver minnow
#

what is fac?

eternal wedge
#

faction

lean crystal
#

so can anyone help with the %Server_countdown% placeholder? I'm trying to get a countdown to 05:00 each day, but parsing %server_countdown_HH:mm_05:00% seems to just return 0. Is there a way to do this? I can get a countdown to a date to work fine, just not a time

#

this is probably a common one, but I cant seem to find an explanation of how it works fully to identify what im doing wrong

lean crystal
#

Can I get any help with this?

silver minnow
#

You can always request a custom plugin fingerguns

lean crystal
#

well, apparently this is a feature in the Server expansion

#

but there isnt an explanation of how to use it

silver minnow
#

ohh okay

#

I'm confused on what you're asking ;-;

#

wait

#

countdown for local time?

#

👀

lean crystal
#

effectively

#

but the only feature ive found that does this

#

is the one added in 2.2.2

#

but neither the issue, nor the github seems to explain how to "use placeholders inside of the placeholder"

silver minnow
#

What placeholders did you try already?

lean crystal
#

so the notes state you can use %server_time%

#

2 secs, ill grab the thing im working with

silver minnow
#

wut

#

oh

lean crystal
#

%server_countdown_dd.MM.yyyy.HH:mm:ss_{%server_time_dd.MM.yyyy%}.05:00:00%

#

fucking formatting

#

%server_countdown_dd.MM.yyyy.HH:mm:ss_{%server_time_dd.MM.yyyy%}.05:00:00%

#

so, in theory, i should be able to somehow include the placeholder in {}

silver minnow
#

does it support putting placeholders in placeholders?

lean crystal
#

according to the release notes for 2.2.2 and the issue

silver minnow
#

oh i see what you mean

lean crystal
#

but it doesnt explain how to get it to be included

#

yeah

silver minnow
#

hmm

lean crystal
#

yeah

#

ive no idea

#

tried {} () .. _ _

#

tried just using %%

#

none of them seem to work

silver minnow
#

If you can't find anything in a few days I recommend requesting a custom plugin though

#

I would do it (for free) but I don't have time 😐

#

maybe later if you can't find a solution

lean crystal
#

thanks, hopefully someone will know how to use a feature included in the expansion

silver minnow
#

🙂

austere hawk
#

Where are you displaying the info?

steep thorn
solid temple
#

Guys, am I using PlaceholderAPI correctly?

String huis = PlaceholderAPI.setPlaceholders(player, "§fБаланс§8:§e%JavaScript_money%§8§e%JavaScript_credits%");

Score money = obj.getScore(huis);```
#

?

dusk scarab
#

%server_ram_free% doesn't seem to work. it looks like a countdown from 5.3k to 2.7k that restarts back to 5.3k

novel moss
#

Ofc thats how garbage collectors work

lean crystal
dusk scarab
novel moss
#

Yep

dusk scarab
#

then i'm confused on what you meant, @novel moss. i don't know what garbage collectors are XD

low fiber
#

Anyone knows this error?

#

I can't seem to load mysql and player

#

only the Mysql folder gets generated

#

when i download it from /papi ecloud download

thick ginkgo
#

the factions MCore expansion isnt working... any ideas as to why?

rare lily
#

Do you have MassiveCore and Faction on your plugin list?

austere hawk
#

@thick ginkgo Given up on FX

thick ginkgo
#

i did.. but trying it again rn @austere hawk

#

/f and /f help still arent working

tender vaporBOT
#
FAQ Answer:

Spigot Account Linking
To get support for a premium plugin owned by Clip or Glare you will need to verify your spigot account using =spigot in the #bot-commands channel. After you have successfully linked your spigot account you should ask your question in the coresponding channel for that plugin. If you have already linked your account and want to update your roles, run this command =spigot check.

austere hawk
#

@thick ginkgo Just ask for support.

#

They will help.

turbid tide
#

help with?

austere hawk
turbid tide
austere hawk
#

I dont remember

#

In fact, this is the case for almost all chatformat plugins, not just for deluxechat.

turbid tide
#

you bought the plugin over an hour ago? because if you did you were not found in the database

west pond
#

so i made a script to use with deluxchat

#

but for some reasons it doesnt work

turbid tide
west pond
#

will do gimme a sec

austere hawk
#

i have been trying many plugins and i used pirated plugin to try this @turbid tide z

#

i have the same problem with every plugin

brisk coral
#

Yikes

west pond
#

why do i have to verify if im asking for support with PAPI which is free?

brisk coral
#

You're using DeluxeChat, which isn't free

#

Just a precaution fingerguns

west pond
#

but my problem is has nothing to do with it

#

the jar is owned by my friend and not me 🤔

austere hawk
#

the problem is not deluxechat the problem is papi does not work in any format plugin, but it works with plugins for other purposes

west pond
#

the script doesn't work

#

never said its deluxechat xD

tender vaporBOT
#

🔨 It has come to my attention that a user was using a leaked plugin, they have been... well let's say.. dealt with.

west pond
#

YML ```
factionChat:
file: factionChat.js
engine: nashorn


js:
```js
function chat() {
var faction = '%factionsuuid_faction_name%'

    if (faction.length != 0)
        return '%rel_factionsuuid_relation_color%%factionsuuid_player_role%%factionsuuid_faction_name% &8&l⎹';
    else return ''
}
chat();```

https://solos.only-fans.club/g8XHOawb
turbid tide
#

let

#

is not working in js expansion

brisk coral
#

var

turbid tide
#

it uses the nashorn engine

#

use var instead

west pond
#

oh

#

same problem

#

help, please?

turbid tide
#

1 sec

west pond
#

okay

turbid tide
#

what's your JavaScript Expansion version?

west pond
#

i just downloaded it so i believe its the latest

turbid tide
#

try this then js function chat() { var faction = '%factionsuuid_faction_name%' return faction == "" ? "" : "%rel_factionsuuid_relation_color%%factionsuuid_player_role%%factionsuuid_faction_name% &8&l⎹" } chat()

west pond
#

but that's literally the same? ill try it anyways

#

didnt workhttps://solos.only-fans.club/38QP7RZC

#

can it be that '%factionsuuid_faction_name%' returns a color code even if the player is not in a faction

#

its not, replaced the script with js function chat() { var faction = '%factionsuuid_faction_name%' return "Test" return faction == "" ? "" : "%rel_factionsuuid_relation_color%%factionsuuid_player_role%%factionsuuid_faction_name% &8&l⎹" } chat()

to test and it didn't return anything

rare lily
#

I think that's not gonna work...

west pond
#

what won't work 🤔

rare lily
#
function chat() {
  var faction = '%factionsuuid_faction_name%'
  return faction == "" ? "" : "%rel_factionsuuid_relation_color%%factionsuuid_player_role%%factionsuuid_faction_name% &8&l⎹"
}
chat()```
west pond
rare lily
#

Any errors on console?

west pond
#

ooop shouldve prob checked that earlier

#
[14:47:00 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms
[14:47:00 INFO]: [PlaceholderAPI] Successfully registered expansion: vault
[14:47:00 ERROR]: [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.factions.MCoreFactionsExpansion
[14:47:00 ERROR]: [PlaceholderAPI] com/massivecraft/factions/RelationParticipator
[14:47:00 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[14:47:00 WARN]: [PAPI] [Javascript-Expansion] File: example.js for Javascript placeholder: example is empty
[14:47:00 INFO]: [PAPI] [Javascript-Expansion] 0 script loaded!
[14:47:00 INFO]: [PlaceholderAPI] Successfully registered expansion: javascript
[14:47:01 INFO]: ***fdhfgh <Pedolo> asd
[14:47:02 INFO]: Pedolo issued server command: /papi parse me %javascript_factionchat% | %factionsuuid_faction_name%
[14:47:54 INFO]: Pedolo issued server command: /version PlaceholderAPI
#

wait i think im dumb

#

yea fixed it

#

thanks alot ❤️

limber ice
#

I just updated Papi and it still crashes /papi ecloud list if I have my expansion installed, is it my expansion?

lean crystal
#

Still not sure if anyone's answered, but how are you supposed to use other placeholders inside the %server_countdown% from the Server expansion, as per 2.2.2?

mint fable
#

what do you mean by that?

#

this? %server_countdown_<SimpleDateFormat>_<ActualDateAndTimeBasedOnSDFSpecified>%

#

Also, why are you on 2.2.2 when the latest is 2.4.0?

storm sorrel
#

Good evening, I have a problem with the placeholders, when I install the placeholder Player, it works fine but all the others don't work ...

limber ice
#

@storm sorrel if you have the latest Papi make sure your expansions are up to date

storm sorrel
#

I have the last papi but precisely when I do / papi ecloud download Vault I have all the versions of Vault that appear except the one I use

mint fable
#

huh?

#

can you send a picture

#

=imgur

tender vaporBOT
#
Uploading Images

Please use imgur to share screenshots and other images.
Imgur

near sentinel
#

Any other options other then pinger placerholder, as can't really use it on my network

storm sorrel
mint fable
#

I think that's kind of the only one

#

@storm sorrel are you using the latest vault?

storm sorrel
#

yes

mint fable
#

then just type /papi ecloud download vault

#

and press enter

#

you don't need a version, that's the EXPANSION version not the PLUGIN version

#

if you don't put a version it downloads the latest

#

I suggest downloading the latest for all expansions if you're on the latest version

storm sorrel
#

I am using the latest version of my plugins but when I download an extension with the command, the expansion does not work (even in the download version), in fact it is as if there is no expansion in the file while they are there

mint fable
#

download them manually

#

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

mint fable
#

that should work

#

in fact it is as if there is no expansion in the file while they are there

#

are you saying there IS a file, but it's acting like there isn't?

storm sorrel
#

What I meant is that the expansions get downloaded to the "expansions" folder but don't work, even when downloading them manually ^^ '

mint fable
#

and you reloaded right?

limber ice
#

make sure you don't have multi of the same expansion, just slightly different names

mint fable
#

^ only have one of each

storm sorrel
#

Yes, i reloaded but not work

mint fable
#

/papi dump

limber ice
#

what does /papi dump do?

mint fable
#

you'll see

#

=paste

tender vaporBOT
#
HelpChat Paste

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

storm sorrel
mint fable
#

did you just paste a paste link

storm sorrel
#

it seems functional again, thanks to you!

mint fable
#

👍

limber ice
#

I'm running dev-122 and things seem to work but when I reload papi the e cloud list stop working

mint fable
#

hmm, might be an issue for github?

limber ice
#

everything works fine on fresh boot of server

#

only break ecloud list when I have the Statz expansion

lean crystal
# mint fable what do you mean by that?

release 2.2.2 added a feature where you can apparently pass the %server_time% placeholder into the countdown one, to create a local countdown to like 6AM each day, but I cant find exactly how you pass the server time to the countdown

tender vaporBOT
#

@lean crystal,

Hey!

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

lean crystal
#

So in theory, I would set the countdown datetime format to dd.MM.yyyy.HH:mm:ss then pass it %server_time_dd.MM.yyyy%.06:00:00%

turbid tide
#

{server_time_dd.MM.yyyy}

#

not %%

#

if you use it in the countdown one

lean crystal
#

damn, its curly braces without percentages

turbid tide
#

yep

lean crystal
#

like one of the only bloody combinations I didnt try

#

tyvm

turbid tide
#

ye most placeholders in placeholders work like that

#

since PAPI offers a method for it so its easy to implement

lean crystal
#

I thought it was something like that, but was just missing the part where % isnt needed

#

thanks

#

a ton

#

thought I was going mad

turbid tide
#

👍

lean crystal
#

Okay, so that is now parsing, which is a big step, but its being parsed as 0

#

%server_countdown_dd.MM.yyyy.HH:mm:ss_{server_time_dd.MM.yyyy}.05:00:00%

turbid tide
#

what's the time for you rn?

lean crystal
#

when the server date time is 11/01/2021 18:25:30

turbid tide
#

or what's the server time

#

ye because it has passed

lean crystal
#

im an idiot

#

sorry

turbid tide
#

this doesn't calcualte for the next day

lean crystal
#

2 hours of sleep

#

how can I point it do the next day on from current date?

#

if that is possible

turbid tide
#

hmm that's a good question.

#

I would recommend you make a javascript for that because I don't think you can do placeholder in placeholder in placeholder

lean crystal
#

hmmm, okay

turbid tide
lean crystal
#

ty

turbid tide
#

I'll make the placeholder for you

lean crystal
#

oh, thanks!

turbid tide
#

hmm now that I think about it its going to be a bit more complicated xD

lean crystal
#

its never straightforward

turbid tide
#

the problem is if I just add 1 to day it will just break when its last day I guess.

#

last day in month I mean

lean crystal
#

ahh right, for the months, yeah

turbid tide
#

wait I can just use day of the year instead

lean crystal
#

I'm going to pretend to understand what you mean and agree

turbid tide
#

ugh day of year so 1-365

lean crystal
#

riight

turbid tide
#

until then make a javascript file and all that stuff

lean crystal
#

shall do

turbid tide
#

Placeholder to use now: %server_countdown_DD.yyyy.HH:mm:ss_{javascript_time}.05:00:00%, Code to use: ```js
function time() {
var day = parseInt("%server_time_DD%")+1
var year = "%server_time_yyyy%"
if (day+1 > 365) day = 1
return day + "." + year
}
time()

lean crystal
#

you're a lifesaver, shall try it now

turbid tide
#

btw change {javascript_time} to your {javascript_identifier} so basically whatever you named the javascript, change time to that

lean crystal
#

yeah

#

getting an invalid date

turbid tide
#

can you parse just the javascript? /papi parse me %javascript_identifier%

lean crystal
#

12.%server_time_yyyy

#

oh

turbid tide
#

oh

#

I see my bad

lean crystal
#

i think there's a % missing

turbid tide
#

yep

lean crystal
#

Okay

#

parses correctly, gives 12.2021

#

okay

#

that whole placeholder parses fine

#

but shows as "invalid date" in TAB

#

looks like a TAB problem then

#

tyvm though

turbid tide
#

ugh don't think its a TAB problem

lean crystal
#

oh?

turbid tide
#

do /papi parse me %server_countdown_DD.yyyy.HH:mm:ss_{javascript_time}.05:00:00%,

lean crystal
#

that parses fine

#

gives me a countdown

#

which is why I think its TAB

turbid tide
#

ah

#

thought the error is from the placeholder

lean crystal
#

well, where the placeholder is in the TAB config, it just says "invalid date"

#

but when parsing with /papi parse, the countdown works fine

#

so thats what shows on TAB

#

'&5Server restarts in &f%server_countdown_DD.yyyy.HH:mm:ss_{javascript_time}.05:00:00%' line in the config

turbid tide
#

ye no idea then.

lean crystal
#

I cant see anything wrong with the placeholder

turbid tide
#

if it parses fine in /papi parse

lean crystal
#

yeah, ill take it up with the TAB lads

turbid tide
#

I don't know why it would error in tab tho as well

lean crystal
#

not a clue

#

unless its having problems accessing the javascript expansion for some reason?

turbid tide
#

try this in TAB: '&5Server restarts in &f%server_countdown_DD.yyyy.HH:mm:ss_13.2021.05:00:00%'

#

see if this works

lean crystal
#

works fine

turbid tide
#

also try showing just %javascript_time%

lean crystal
#

ah

#

that works

turbid tide
#

hmm then it is a problem with it parsing the javascript placeholder

#

no idea why tho

lean crystal
#

no, i've no idea

#

Speaking to the author of TAB

#

being asked this

#

absolutely 0 idea of how to go about that

turbid tide
#

I mean you can just show him the javascript code.

#

but also you can show him that %javascript_time% works

#

so its not that

#

its something to do with placeholders in placeholder or something. not sure

lean crystal
#

yeah, ive shown him all that

#

as far as I can see, its not PAPI, as it works fine when just /parsing

#

it seems to just be when we add the placeholder inside the placeholder as separately, everything's gravy

#

Right

#

so apparently, the issue is that the Javascript expansion does a null player check and doesnt allow null players

#

but TAB uses null players as its apparently better for optimisation

#

riiiight, I think I understand

#

when the js script calls %server_time% from TAB, it doesnt pass a player, only null

#

which the JS expansion doesnt allow, it must be parsed with a real player name

lean crystal
#

Okay, found a workaround

#

in case you were interested

#

we edited the JS script a bit

#
    var day = parseInt("%server_time_DD%")+1
    var year = "%server_time_yyyy%"
    if (day+1 > 365) day = 1
    var countdown = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%"+"server_countdown_DD.yyyy.HH:mm:ss_"+day+"."+year+".05:00:00%")
    return countdown
  }
  time()
``` works perfectly
#

so instead of embedding the placeholders inside each other in TAB, its better to resolve them inside the JS one instead

#

at least while theyre using null players in TAB

junior musk
#

but I think there is a way by using your old placeholder if you put it in your player section of your placeholderapi-refresh-intervals in TAB's config, or at least from what I understood of NEZ's answer 🤔

lean crystal
#

Oh ello

#

fancy seeing you here

junior musk
#

:D

lean crystal
#

I assume there are other ways of getting around it

#

but ngl

#

Ill leave that to people much smarter than I

#

ive got a solution that works, so that sorts me out

junior musk
junior musk
silver minnow
junior musk
#

imagine not being in 666 discords

silver minnow
#

;-;

#

🙄

junior musk
#

:D

visual yacht
#

how to count non player placed blocks

turbid tide
#

not possible whit what placeholders exist rn

visual yacht
turbid tide
#

ye I know what you want

visual yacht
#

non player placed blocks break

turbid tide
#

yep not possible. well maybe possible but there isn't a placeholder for that

visual yacht
#

okay so i have to find a plugin, that adds some sort of tag to the block that player place

#

that counts blocks mined

#

and gives placeholder using papi?

#

am i right?

turbid tide
#

probably.

#

and probably there isn't one out there. most likely you'll need a custom one

lone minnow
#

Does placeholderapi have a pinger port?

true pewter
#

In papis config, what do they think "high, low, medium" tps is?

turbid tide
#

no idea xD

true pewter
#

hahah xD
is there a way to check without like overloading the server?

turbid tide
#

ye let me check the code

true pewter
#

poggers thank you!

turbid tide
#

return ChatColor.translateAlternateColorCodes('&', ping > 100 ? high : ping > 50 ? medium : low) + ping;

#

so if ping > 100 then its high

#

if its 51-100 its medium

#

and 0-50 is low

#

oh wait

#

that's ping

#

I'm good xD

true pewter
#

hahah xD

turbid tide
#

welp time to see if the server expansion is OS

#

yep it is

#

good

#
        return ChatColor.translateAlternateColorCodes('&', (tps > 18.0) ? high : (tps > 16.0) ? medium : low)
                + ((tps > 20.0) ? "*" : "") + fix(tps);```
true pewter
#

oh okey

turbid tide
#

so >18 is high

#

16-18 is medium

#

and everything under 16 is low

true pewter
#

pog

#

dope

#

thank you!

turbid tide
#

👍

true pewter
#

one more question

turbid tide
#

sure

true pewter
#

the tps randomly gets a "*" sometimes, before the number. what this mean?

turbid tide
#

hmm (tps > 20.0) ? "*" : ""

#

if tps is bigger than 20

#

so probably something went wrong or something

true pewter
#

huh

#

should I be worried?

turbid tide
#

nah

#

its just the calculations they make most likely

true pewter
#

ah oke cool pog

#

is there a way to turn it off? xD

turbid tide
#

make your own expansion I guess. like clone the existing one and remove that

true pewter
#

oh ah

#

well that takes time

#

and I'm lazy

#

so thank you anyways! :D

turbid tide
#

👍

#

I mean I could give it a try in a couple minutes if you want but when the expansion updates you will have to do this again xD

#

@true pewter ^

true pewter
#

ah hahah thanks but me good, I'll just ignore it ig or use bukkits %tps% placeholder instead if it really bothers me :D

turbid tide
#

I mean the one that's not colored doesn't do that I'm pretty sure

true pewter
#

riiiight

#

while i'm here, the %server_tps% placeholders shows 3 different numbers, are these the different updated ones?

#

like the %server_tps_1% etc

turbid tide
#

I think its time

true pewter
#

aah yea

#

makes sence

turbid tide
#

1 sec almost done changing that

#

I won't bother removing all that useless stuff just remove the * xD

true pewter
#

hahah xD

turbid tide
#

oh ok nvm

#

my IIJ is crashing when I open any project

#

welp

#

will ping you when I have the build

#

lmao

#

or just DM you tit

#

it*

#

lmao

true pewter
#

just to remove the *? xD

turbid tide
#

I mean if it bothers you that much. I ain't got anything else to do.

#

well besides sleep

#

and do other 100 stuff that I'm just trying to not do

true pewter
#

hahah i'm fine with it

#

when i'm super bored I can try to remove it myself xD

#

go sleep instead

#

i'd call sleeping a big brain move

#

that's why I will do it now, thanks for the help!

turbid tide
#

nah sleep is for the weak

true pewter
#

I'll probably be back here sometime 🙃

true pewter
#

have yall banned emotes from other servers

#

what is this

turbid tide
#

yeah only server boosters get them

true pewter
#

:(

#

welp

#

gn

#

thanks for help

rustic wharf
#

Sombody knows where i can get this again?

#

I got it once

#

but cant find it back

#

%javascript_rewards-delay_Bank_15%

#

It manages almost half of my server

#

or did something change?

turbid tide
#

wait what? someone made you a javascript? or what?

#

because that's not something public or well known about.

rustic wharf
#

Yea someone made it

#

I thought maybe its public

#

xD

turbid tide
#

I mean it might but its not something we know of

#

do you know how made it maybe?

rustic wharf
#

I mean i know who made it

#

But he left

#

Since he had a busy irl life

#

He doesnt come online much anymore

#

so

#

yea..

turbid tide
#

but like if you know who made it don't you know where they posted it?

rustic wharf
#

He gave it to me on discord

#

xD

#

And somehow its gone

mint fable
#

is it still in discord?

rustic wharf
#

Nope

mint fable
#

ah

rustic wharf
#

Couldnt find it there

mint fable
#

I'd say give your files another search just to make sure

rustic wharf
#

Yea i was just doing that

#

I mean if i cant find it

#

Would u be able to remake it ?

turbid tide
#

I mean if its been done once its most likely possible to do it again. it will just probably be a bit hard for the person that will remake it

rustic wharf
#

its like nowhere to find

#

;c

#

it might be this thought

#

weird thing

#

how would it get changed

#

Just automaticly

turbid tide
#

it wouldn't

#

the cooldown javascript is a community script

#

made by aboody

rustic wharf
#

ah fkkkkkkkkkk

heady urchin
#

Anyone know why when PAPI is trying to load its just stopped

#

Like the whole startup process has stopped as soon as it gets to PAPI

snow iron
#

How do I upload an update of my expansion?

#

oh, nvm found it

#

I guess each new version needs to get verified?

vivid sparrow
#

if you are not verified, yes

snow iron
#

Gotcha

mellow skiff
#

Heeey!
Is there a way to execute a command with placeholder?
For example /tp %player_bed_x% %player_bed_y% %player_bed_z%

#

Or does this requires a custom plugin?

marble glacier
#

as far as I am aware you cannot unless it's through a third party plugin

#

i.e deluxe menus

#

however, here's my legal disclaimers: i could be wrong.

mellow skiff
#

Maybe it could work.

marble glacier
#

That would be a third party plugin

mellow skiff
#

Yeah, it would be nice that /papi parse executes the command if it is a command.

vivid sparrow
#

Or just get that plugin

terse swallow
worn canopy
#

Hi, does anyone know a placeholder api that shows ping by ip address? Thanks.

worn canopy
terse swallow
#

and how do I install it? I put in the plugins folder and nothing

tender vaporBOT
#
FAQ Answer:

Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload

terse swallow
#

see links

silver minnow
#

o

#

hmmm

#

did you install the extension?

#

iirc HolographicDisplays itself doesn't support placeholders

silver minnow
#

Can you show me /plugins?

terse swallow
tender vaporBOT
#

v2.1.2 by gaspercino123
Placeholder expansion for HD.

Downloads:

9,927

Likes:

16

Reviews:

37

terse swallow
#

ty

turbid tide
#

wait what? why HP instead of HE?

silver minnow
#

apparently it's not working ¯_(ツ)_/¯

#

weird

turbid tide
#

and he sent the startup log?

silver minnow
#

uhh

#

well the plugin was enabled

turbid tide
#

I mean still errors might be there

#

an explain what's the problem

#

if I was to guess either wrong PLib version

silver minnow
#

😔

turbid tide
#

or wrong use

terse swallow
turbid tide
#

oh 1.16.4 I see

terse swallow
#

sure

turbid tide
#

oh yeah I get those too but the plugin works. seems like ProtocolLib got an update that removed something

#

do the placeholders work now tho?

terse swallow
#
``` https://i.imgur.com/jXAZs6P.png
turbid tide
#

%player_name% not %player%

terse swallow
#

it works, thans

lone minnow
#

Does placeholderapi have a pinger port?

turbid tide
#

it uses the server port you parse it on

lone minnow
#

But If I open my server port it's bad for my server's security but I'm wanting the placeholder to display "online" when the server is online.

turbid tide
#

I mean you can't change the port. it uses the port the server is on

#

unless I guess maybe edit the code itself

lone minnow
#

hmm

visual yacht
#

?yaml

tender vaporBOT
#
FAQ Answer:

You can check the syntax of your configs using the online parser here, https://yaml.helpch.at/

visual yacht
#

?help

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

Source

visual yacht
#

?paste

tender vaporBOT
#
FAQ Answer:

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

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

Source

mint fable
#

that be would more-so on the luckperms side

#

but you could do it with javascript

#

I wouldn't expect there to be

#

but javascript can definitely help

tender vaporBOT
#
Javascript
Useful Links & Information:

An expansion that allows you to use javascript for processing
Wiki
Community Scripts
GitHub
eCloud

mint fable
#

that's... false

#

@austere hawk boi

#

what'r'ye doin spreadin all these lies

#

the answer is always javascript

#

and you should know that 😉

austere hawk
#

The expiry time format does come from PAPI

#

And I know because I fixed a bug in PAPI TimeUtil class because the formatted expiry time was wrong lol

mint fable
#

is that relating to this comment?

that be would more-so on the luckperms side

austere hawk
#

The actual words are provided by PAPI

#

All the expansion does is call TimeUtil#getTime for.. seconds? since epoch

mint fable
#

makes sense

#

@vast anchor you still need javascript to do this unless you recompiled PAPI with different values

austere hawk
mint fable
#

it's just d right?

#

dhms

#

I'm just noticing they aren't actually trying to do translating across languages, just d to days

#

either way the answer is still the answer

austere hawk
#

I might PR a couple methods for that like shortTime (currently getTime) and longTime that does like 23d1h5m etc and 23 days, 1 hour, 5 minutes, I already do that in a couple of my plugins so I just have to copy-paste it lol

mint fable
#

make a js too 😉

austere hawk
#

🤢

mint fable
#

ok i medicate and eat

#

javascript

#

ez

#

var str = %placeholder%;

tender vaporBOT
#
Javascript
Useful Links & Information:

An expansion that allows you to use javascript for processing
Wiki
Community Scripts
GitHub
eCloud

mint fable
#

wiki has a pretty good quick start tutorial of how to use it

#

and how to make a script

jolly crystal
#

Any body else have issues with placeholder api on paper?

warm topaz
#

no? whats the issue?

jolly crystal
#

So on spigot the placeholders show... But on paper and forks of paper they don't.

#

can't post images one sec

tender vaporBOT
#

@jolly crystal,

Uploading Images

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

jolly crystal
jolly crystal
#

NVM old dependency

#

Odd though it works on spigot and not paper.

frozen dew
#

Hello seeking for help once again of the same thing didn't got really solved the previous time. I have vault essentials and else. Parsing vault's placeholder %vault_eco_top_balance_commas_#% returns the value "0" (Changing # for 1 or whatever number) but when i do %vault_eco_balance_formatted% it returns my current $$. So idk why it does this. Does it require a database to save the baltop players?

I was told before vault + essentials + a economy plugin but why would it need a economy plugin since i am using vault placeholder. If anyone can help me ping me with no problem. Thanks

near sentinel
#

is there any other placerholder then pinger, can use to check server is online??

steep thorn
#

So perhaps your economy plugin can't fetch balances of offline players, but that doesn't make much sense because it should still show online players

#

Oh and yeah, it doesn't work if you have Essentials installed

#

IIRC it was because Essentials was adding their own leaderboard placeholders

smoky spoke
#

is there a placeholder that would parse the xyz coords of the block you are looking at?

turbid tide
hybrid leaf
drifting nimbus
#

is there a placeholder for some sort of boolean

#

like, if boolean is true, display that, if false, display this

junior musk
#

you can use the Javascript expansion for that

drifting nimbus
#

yeah i know

#

but is there a way without

#

like is there an existing one

junior musk
#

I don't know any

turbid tide
#

to make sure any of them return yes?

hybrid leaf
#

I gave myself permission, but nothing happened, nothing changes and all the time progress is standing still

turbid tide
#

but can you do /papi parse me %player_has_permission_homes.bar.1% then /papi parse me %player_has_permission_homes.bar.2% then /papi parse me %player_has_permission_homes.bar.3% and tell me what they all say

rotund tapir
#

Hello!

Perhaps this question is not directly to the Placeholder API plugin, but still, maybe you can help me.

How can a placeholder be used in a placeholder? For example% javascript_runes. {% Player_name%}

Where {% player_name%} another placeholder should be automatically substituted, but now it is considered just as a string.

turbid tide
#

so basically you want to use another placeholder as an argument in the javascript placeholder?

rotund tapir
#

yes

turbid tide
#

then just use %javascript_runes_{placeholder_here}%

rotund tapir
#

ok, i try it

untold comet
#

Hi, how would I find out what plugins are using these expansions as I have stopped using these plugins..

#

13.01 18:28:44 [Server] INFO Expansion ezrankspro is used but not installed. Installing!
13.01 18:28:39 [Server] INFO Expansion ezblocks is used but not installed. Installing!

lean crystal
#

no strictly PAPI, but trying my hand at a JS expansion of my own to colour the %player_health%, but it isnt parsing, can anyone take a look?

#

I'm unfamiliar with JS, so im not sure if scope could be causing issues, namely with multiple declarations of a variable in each if statement, but idk if I can declare a variable without assigning it a value

#

(and I have since corrected the time() line)

flat quartz
#

My code is

            System.out.println("-");
            System.out.println("text = " + text);

            // replace placeholders
            text = PlaceholderAPI.setPlaceholders(player, text, false);

            System.out.println("text = " + text);

And the output is
https://imgur.com/a/ulgib2L

The boolean colorize is set to false...but it is still coloring. Any ideas?

wise goblet
#

Uh? Could you show the placeholder used?

steep thorn
#

Either declare it upfront and then just assign it a value in the if statement

#

Or just use return in the if statement

lean crystal
#

Thought that might be the case, thank you

steep thorn
#

And you don't need healthString I think, could just use the existing health variable

#

@lean crystal oh and yeah at the bottom you're calling 'time' instead of 'healthColour' lol

lean crystal
#

Yeah, I spotted that after I uploaded the pastebin, I had jsut edited an existing script and forgot to change it

hybrid leaf
#

how can i add player deaths counter?

#

im looking for placeholder but i cant find it, does anyone know any

last zenith
#

How can I add an expansion to the ecloud?

turbid tide
turbid tide
flat quartz
limber ice
#

@flat quartz if you have not updated expansions for the latest papi that could be your issue

hybrid leaf
#

I found %statistic_player_kills%but i cant find %statistic_entity_kills%or %statistic_mob_kills% , does it exist?

wise goblet
#

wdym entity kills

#

like how many of a specific entity a user killed?

#

@hybrid leaf

#

@flat quartz It works for others so probs urs only

hybrid leaf
#

how many total kill hostile monsters

limber ice
#

%statistic_kill_entity:<mob>,<mob2>%

#

which I found on third page of placeholder, did you click on blue number son bottom

#

@hybrid leaf

hybrid leaf
#

I have to write all the mobs?

limber ice
#

only one if you want just one one

#

so total of all hostile mobs?

hybrid leaf
#

eh, thank u so much♥

#

thats all for now

flat quartz
dire eagle
#

Hey, I'm a total noob which needs help with papi expansion. I'm trying to make an placeholder that will return a float dependent on a player rank. Not gonna lie, I ripped off half of the vault expansion code from github in hope that it would work, but it won't register, also it leaves no error in console. What am I doing wrong?

wise goblet
jolly cave
#

It would be a perfect solution to many of my problems, but alas, it is broken.

austere hawk
#

Is it possible to make a custom placeholder for placeholderapi that only shows if the user have a certain permission node?

steep thorn
dire eagle
tender vaporBOT
#
📋 Paste Converted!
https://paste.helpch.at/kowopoguci

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

silver minnow
#

Some other paste services don't have a dark varient and we're all nocturnal.
But pastebin has dark mode-

turbid tide
#

ye now

#

but that's a new thing

steep thorn
limber nest
#

hey how do i make placeholders number say 1k not 1000

turbid tide
#

javascript

turbid tide
# limber nest hey how do i make placeholders number say 1k not 1000
function nFormatter(num, digits) {
  var si = [
    { value: 1, symbol: "" },
    { value: 1E3, symbol: "k" },
    { value: 1E6, symbol: "M" },
    { value: 1E9, symbol: "G" },
    { value: 1E12, symbol: "T" },
    { value: 1E15, symbol: "P" },
    { value: 1E18, symbol: "E" }
  ]
  var rx = /\.0+$|(\.[0-9]*[1-9])0+$/
  var i
  for (i = si.length - 1; i > 0; i--) {
    if (num >= si[i].value) {
      break
    }
  }
  return (num / si[i].value).toFixed(digits).replace(rx, "$1") + si[i].symbol
}
nFormatter(parseInt(args[0]), 0)``` here is a function that will do this for you. you just need to use `%javascript_<identifier>_<number-here>%`
#

what I sent above is just the code

#

for it

limber nest
#

thanks

limber ice
#

@flat quartz -papi autorank

flat quartz
#

what

#

what about it

limber ice
#

%a%autorank_daily_time_of_player%

flat quartz
#

uhhh ok

limber ice
#

you want to change the color of the placeholder

flat quartz
#

no

#

wtf is auto rank

#

did u read the question

limber ice
#

whatever the placeholder returns the color code will change it to that color

flat quartz
#

PAPI shouldn't color text with & in it

#

but it does even with the colorize boolean set to fslse

#

false *

limber ice
#

no the plugin your using the placeholder in needs to where you add color, if it's in placeholder it will nor work

#

that has to do with plugins that send color in the placeholder like faction plugins

solid cargo
#

hello wondered if anyone new how to link TAB and Betterranks IA addon together?

rapid stream
#

Hello, I come because I want to register on the website.

austere hawk
#

How to install PlaceholderAPI version 2.10.5?

warm topaz
#

why would one want 2.10.5?

warm topaz
austere hawk
warm topaz
#

what plugin?

tender vaporBOT
#
Placeholderapi - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.4

Version:

v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.10 - Dev-builds

silver minnow
#

🤔

warm topaz
#

@rapid stream he should be online soon, so he should see this message anyway

#

dkim, its possible that a plugin can break on papi 2.10.7+

rapid stream
#

okay

austere hawk
warm topaz
#

in which case, the dev should update anyway

#

oh

#

i have a fix for that expansion myself

#

let me try find it

silver minnow
#

lol

warm topaz
atomic oak
steep thorn
#

If so, tab probably doesn't support using placeholders in this way so you'll need to check their wiki

hybrid leaf
#

Hello, anyone know why plugin doesnt display custom heads, i tried /dm reload, /papi reload and /rl but nothing happened, there is a link for config, plz help
Link: https://paste.helpch.at/uvolusekok.sql

dark venture
#

=version

tender vaporBOT
#
Version - Invalid Arguments:

=ver <plugin/list>

#
Placeholderapi - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.4

Version:

v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.10 - Dev-builds

solid cargo
#

how do i get betterranks to tab to work?

solid cargo
#

better ranks work in chat but not on the tab e.g :admin:

turbid tide
#

I mean :admin: is not a PlaceholderAPI placeholder

#

its a ItemsAdder placeholder

solid cargo
#

how do i do it itemadded says i need this api

turbid tide
#

yeah but its another placeholder

#

not :admin:

#

ask them what the placeholder is

sly reef
#

I need help with something

#

please

steep thorn
#

Ask your question, don't ask to ask

sly reef
#

I need to find a msg plugin with papi support

steep thorn
#

DeluxeChat?

silver minnow
#

I'd assume he wants a simple /msg plugin, not a paid chat plugin

#

🤷

sly reef
#

^

steep thorn
#

Yeah I have no clue what a /msg plugin is and how that would even work with PlaceholderAPI

sly reef
#

From: [Admin] test: sup
To: [Admin] test: hi

steep thorn
#

Yeah deluxechat has that IIRC

#

And it supports PlaceholderAPI

silver minnow
#

don't purchase deluxechat just for one feature... I personally don't recommend doing that unless you don't mind spending the money

steep thorn
#

Yeah I don't know how much deluxechat costs so I can't really say

#

If it's 10 bucks who cares

silver minnow
#

Just don't think of it as your only option

steep thorn
#

Yeah I googled a bit but can't really find any alternatives so far

silver minnow
#

plus

#

if you have an exiting chat plugin

#

you're going to have to remove that and configure deluxechat (to remove incompatibilities idk)