#placeholder-api

150650 messages · Page 14 of 151

woven stone
#

Is there a way to parse a placeholder against a server/world instead of a player?

austere hawk
#

what the hell are you trying to do lol

#

the world placeholders take the world name as one of the "arguments"

#

For example %world_difficulty_<world>%

woven stone
#

I'm trying to display the status of a server in my BungeeCord "network"

austere hawk
#

why is network quoted

woven stone
#

because I don't like calling a BungeeCord implementation a "network" when it's an application gateway/proxy

austere hawk
#

And by status you mean... if it's online or not?

woven stone
#

@austere hawk awesome thanks, that should do what I need

#

I saw the expansions for Server, Bungee, RedisBungee and was beginning to think I had to hack something together to make it work. Glad to know there is a pinger to help with that. Thanks!

austere hawk
#

np!

mint fable
#

but... it is a network O.o

woven stone
#

@mint fable that depends on how you define network

mint fable
#

there are many ways

#

but this one a group or system of interconnected people or things.

#

it is that

woven stone
#

point taken

austere hawk
#

I mean, BungeeCord itself is a proxy software that allows you to create a network of servers

#

¯_(ツ)_/¯

woven stone
#

yeah my day job is in IT though and has a lot do with networking, so I've just gotten in the habit of "you only call it a network if it's routable"

#

mostly because our environment has us stacking 20+ VLANs across multiple top-of-rack switches, so saying something like "is the network up" is very, very ambiguous

#

stupid question time: does /papi cmdparse work when executed from a command block?

#

If so, do I need to supply a target?

mint fable
#

/papi parse <target> <placeholder>

#

is /papi cmdparse a thing? or did you mean that ^

#

(<target> can also be me)

woven stone
#

According to the wiki it is

mint fable
#

ah

#

so it does the same thing

mint fable
#

just executes the command after

#

same arguments as well

woven stone
#

pretty much, I guess

mint fable
#

if it wasn't clear, target is required

woven stone
#

so when target is 'me', is it targeting a player or the entity that executed it?

mint fable
#

the player

#

all placeholders are player-based*

woven stone
#

hrm ok. So if I wanted to send a redstone signal when the pinger expansion reports a server as online, what would be the best avenue to accomplish this?

mint fable
#

how are you planning on sending the redstone signal

woven stone
#

Depends on my options. I was thinking easiest method was replacing a filler block (stone atm) with redstone block

mint fable
#

uh

#

this seems like a custom plugin

#

you want to do a command based on the return of a placeholder

woven stone
#

that's what I was afraid of

mint fable
#

probably updating every minute or so

#

now

#

you might be able to do it using javascript

#

if you want to use commandblocks

#

just use any player as the target

tender vaporBOT
mint fable
#

same way people do random commands for deluxemenus

#

they parse the javascript placeholder, and it would return a random string

#

except you want to return a certain command

#

based on the placeholder return

ripe wraith
#

im not sure how to fix this but my firewall is blocking the %pinger_online_ipaddressofserver%

austere hawk
#

lol

#

if the servers are connected with bungeecord, try using the bungee placeholders

ripe wraith
#

i only see two, total and servernam

austere hawk
#

well yeah

#

OH WAIT

#

nvm I'm stupid

woven stone
#

😛

austere hawk
#

the bungee placeholders are for playercount lol

woven stone
#

yeah the bungee placeholder aren't much help

ripe wraith
#

yeah i just added a firewall and now any server status just say offline

velvet tinsel
#

hello I have an issue

#

[01:06:55 WARN]: [PlaceholderAPI] File: permission.js for javascript placeholder: permission is empty

#

``var hasfaction = "%clans_clan_tag%";

function permission() {

if (hasfaction === "") {
return "";
}

else {
return "&a%clans_clan_tag% &8&l┊";
}
}

permission();``

#

I have it on 2 servers, on first one it works, on the second one I receive this error

#

anyone can help me with that?

tall torrent
#

hello I have an issue
@velvet tinsel Probably the "┊" is causing it. Use the unicode \u<number here> instead

#

It's \u250A

velvet tinsel
#

thanks a lot 😄

#

it worked

tall torrent
#

thanks a lot 😄
@velvet tinsel Np, anytime 🙂

turbid tide
#

You'll need to make your own formatting placeholder.

#

using javascript

odd jay
#

Hello!
Is there a placeholder like %vault_eco_balance% but rounded at 2 decimals? If there isn't, can someone please help make a javascript for that? Thanks in advance

vivid sparrow
#

@odd jay

odd jay
#

Mm

#

None of them are cutted at 2 decimals

#

Formatted works with letters

#

Fixed doesnt have decimals

#

Commas neither

half quiver
#

Hey, I need a bit of help in regards to PAPI, it seems to be not working on my server atm, if I could be dm'd ASAP that'd be great.

brisk coral
#

"Not working", would be easier if you provided some more details

half quiver
#

Literally no placerholders will work on my server in regards to scoreboard/playerlist

brisk coral
#

And what version are you using?

half quiver
#

The newest one

#

My servers base version is 1.8 btw, obviously used with via

heady falcon
#

Did you downlod relevant expansion

half quiver
#

wdym

heady falcon
#

papi ecloud download

#

scoreboard

#

playerlist

#

or objective maybe

#

let me check

#

/papi ecloud download ScoreboardObjectives

#

/papi ecloud download PlayerList

#

/papi reload

half quiver
#

didnt work

#

@heady falcon

#

To be exact

#

I have the plugins: PlayerListPlus

#

And Scoreboard

heady falcon
#

plugins or papi expansions?

#

oh

#

do you mean you are using the placeholders in those plugins? I think I mis understood

#

what placeholders are you trying to use?

odd lance
#

Does PAPI work in books?

#

I'm using an external tool to author a book. I just wanted to know if Placeholders work?

half quiver
#

I'm tryna use scoreboard and playerlist ones

odd lance
#

Are others working?

half quiver
#

literally 0

odd jay
#

Nofyr, I use placeholders on the plugin "InteractiveBooks" and they seem to work perfectly

half quiver
odd lance
#

I'll look into it, thanks @odd jay

half quiver
#

Thats an L

odd jay
#

creepvr

brisk coral
#

Have you downloaded the player expansion?

odd jay
#

do /papi ecloud download Player

odd lance
#

There's expansions? o_o

odd jay
#

and /papi ecloud download Server

#

then /papi reload

brisk coral
#

There's expansions? o_o
Should probably read the plugin page

odd lance
#

😅

#

Wow that's a lot of expansions.

odd jay
#

Hello!
Is there a placeholder like %vault_eco_balance% but rounded at 2 decimals? If there isn't, can someone please help make a javascript for that? Thanks in advance
Frosty, any idea about this? Im sure there was a way to modify the vault placeholder, tho Im not sure if there is a way to achieve that

brisk coral
#

%math_{vault_eco_balance}[precision:2]%

#

Try that

odd jay
#

sure!

odd lance
#

I have one more question... These expansions are for their respective plugin names?

brisk coral
#

Some, some are standalone

odd jay
#

omg

#

thanks alot frosty

#

btw I love your plugin frostyjoin

brisk coral
#

ie. Player expansion, doesn't require a plugin, and is a standalone expansion

odd lance
#

195 pages Frosty. Is there a list of standalones?

brisk coral
#

Doubtful, why would you need a list?

odd lance
#

To prune what I will use and not miss out on what I need.

#

But if I gotta go through 195 pages to do that, I'll do it.

brisk coral
#

It's kinda just, give an example of what you're trying to achieve and someone will tell you if a placeholder exists for it/what expansion you should be looking at (unless you wanna look through all of them yourself)

odd lance
#

I wanna know what kind of things there are available as I am still concepting the whole scheme in phases of whether or not it's plausible to do at the stage of development.

#

Up to customizing everything.

#

Past Config, and Ranks/Roles & Perms.

brisk coral
#

Well I mean two most common ones you're gonna want to look at are player and vault expansion, the rest is just preference in most cases

odd lance
#

Thank you very much.

#

Is there a command to see all active expansions+base placeholders in a list?

#

Like a tree command?

odd jay
#

Frosty, any idea of why is it rounding at the first decimal having 2 as precision but not rounding at the second decimal?
example: if you have 0.86342 then it will round to 0.90 and not to 0.86

brisk coral
#

Yea you're gonna have to use JS if you want it precise

odd jay
#

sure, thanks

odd jay
#

Im going well :))

#

Gonna share the placeholder in case someone needs it

brisk coral
#

I think I've made one for that before, just cba to find it fingerguns

odd jay
#

lol

#

thats why pinning comments is actually an important thing to do sometimes

mortal valley
#

hey

#

just wanted to state this

#

do not use /papi ecloud download vault

#

it is broken

#

when doing so your essentials userdata file gets filled with offline uuids and it breakes /bal /seen for offline players

odd jay
#

do not use /papi ecloud download vault
shoot, Im pretty late i guess

mortal valley
#

I got thousands of offline uuids files and couldn't figure it out just figured it out on a dummy server

#

so yeah

austere hawk
#

lmao what

brisk coral
#

What are you on about lol

mortal valley
#

ok basically

#

essentials has a userdata file

#

when you do /papi ecloud download vault

brisk coral
#

I'm aware yes

#

What papi version

mortal valley
#

latest 2.10.9

#

`>.... [14:14:27 INFO]: [Essentials] Creating empty config: /home/container/plugins/Essentials/userdata/a3233515-2791-30e0-87a6-fef7ff7afa4e.yml

.... [14:14:27 INFO]: [Essentials] Creating empty config: /home/container/plugins/Essentials/userdata/65b1ccc3-da66-3dc6-99b9-47a077e7681a.yml
.... [14:14:27 INFO]: [Essentials] Creating empty config: /home/container/plugins/Essentials/userdata/a75681d0-45cb-3e17-9bae-bcda01f54c16.yml
.... [14:14:27 INFO]: [Essentials] Creating empty config: /home/container/plugins/Essentials/userdata/dc485dd8-2348-3759-83af-ed27dbc69f30.yml
.... [14:14:27 INFO]: [Essentials] Creating empty config: /home/container/plugins/Essentials/userdata/bf613d5a-386d-3862-a750-525bcecbfdb3.yml `

#

it will create empty config files that are offline mode

brisk coral
#

2.10.9 is the latest version

mortal valley
#

potentially breaking peoples economy if they leave/join for a couple of days

#

sry, 2.10.9

brisk coral
#

And what server version?

mortal valley
#

1.16.1

#

doesn't matter paper or spigot

brisk coral
#

what essentials version

mortal valley
#

as far as I am aware it brakes on all of them since I updated essentials a couple of times and latest version still brakes

#

but I think this might only be issue for a proxy server

#

since papi is looking at an "offline server"

#

while essentials takes uuids as an online server

#

you can test it on an empty server install "essentialsx, vault, placeholderapi" and do /papi ecloud download vault it should create a duplicate of your offline uuid with the following folder
npc: true lastAccountName: infinite_mist money: '0'

brisk coral
#

testing rn

swift orchid
#

Hi,
The following line does not replace &r with §r. What can I do about that?

PlaceholderAPI.setPlaceholders(event.getPlayer(), "%luckperms_prefix%%1$s&r: %2$s");

It works if I add a space before &r like: %1$s &r.

rare lily
#

Why use that symbol

swift orchid
#

Just because I use it in a lot of other places and it would be a bit weird to make an exception.

mortal valley
#

Frosty figured it out got my whole server working again

swift orchid
#

Also this might be a wrong behavior

mortal valley
#

without including /papi ecloud download vault

#

all players can /seen now /bal and everything works as it should without it

brisk coral
#

@mortal valley Tested it out, it generated 1 config, but from what I can see it's essentials itself doing that

mortal valley
#

yeah but its vaults fault

#

for giving essentials offline uuids to work from

brisk coral
#

Well I mean would kinda be cucking around 60% of servers if it were validating uuids

odd jay
#

Frosty

#

I could make it, but only with 0 as no decimal value

#

when it is another number, it wont show decimals

#

I will post the js on a hastebin, brb

quick tinsel
#

Hi, how can I shorten a placeholder? %koth_points_1_amount% as an example takes up too much space on my FeatherBoard

odd jay
#

https://hastebin.com/ixupizeyef.js
So everything is ok, the only thing is that I thought that for example ".455" would ignore the no decimal numbers, but it take it as "0"
So how could I make that JS to happen on all the numbers?

brisk coral
#

Jesus

odd jay
#

doesnt matter how it looks, its all on the flavour

turbid tide
#

xD

brisk coral
#
var balance = "%vault_eco_balance%";

function formatBalance() {
    var split = balance.split(".");
    if (split.length != 2) {
        return balance;
    }

    var result = split[1].substring(0, 2);
    return split[0] + "." + result;
}

formatBalance();
#

Probs cleaner ways, but it works just fine

odd jay
#

sure! gonna test it out

rare lily
#

Kinda miss ";" already 👀

#

As soon as I pr about changes with no ";" version

odd jay
#

Great frosty! Thanks a lot, works great.
It is much more cleaner for sure, mines look like a sopa do macaco.
I learned a useful thingy with your JS: the .split
Anyways, though it doesnt round and it only truncates, Im totally satisfied with it 👌

stiff marlin
#

Does anyone know why the skript expansion isn't working and not showing in /papi list?

#

I downloaded it multiple times, via the ecloud and manually

quick tinsel
#

How can I shorten a placeholder? %koth_points_1_amount% as an example takes up too much space on my FeatherBoard. I would like to change it into something like k_p_1_a

brisk coral
#

javascript

quick tinsel
#

Sorry, could you elaborate?

brisk coral
#

best you can get %javascript_k%

quick tinsel
#

That's good enough!

#

How do I do that?

brisk coral
#
function shorten() {
  return "%koth_points_1_amount%";
}
shorten();
heady falcon
#

wheres the rust parser?

warm topaz
#

make it urself

#

atleast we got kotlin script expansion fingerguns

heady falcon
#

rsut

stiff marlin
#

Did anyone know how to fix what I'm experiencing? I wrote it a few messages ago

eternal bear
#

How do I ensure that I can connect the server to: api.extendedclip.com/v2

I cant use the download command for API to download the nescessary extensions for Deluxechat. I had to try and manual download but not all worked.

eternal bear
#

My host says they have not recieved any error for connection.

#

They said nothing is stopping it from connecting

mellow sandal
austere hawk
#

Can i ask what have been changed on placeholderapi? since placeholders arent registering anymore

warm topaz
#

some methods were removed in 2.10.7 but i believe theyre all back in 2.1.0.9

austere hawk
#

I have 2.10.9 but my hook doesn seem to work anymore.

warm topaz
#

what methods are u using?

austere hawk
warm topaz
#

i believe registerPlaceholderHook mightve been removed

#

i believe u should use super.register() now

#

also onPlaceholderRequest was deprecated last time i checked, the new version is onRequest(OfflinePlayer, String)

austere hawk
#

ok thanks that worked.

warm topaz
#

👍

austere hawk
#

Hello guys please, there is a placeholder that can we use to show " The cooldown of kit in chestcommands "

#

A placeholder that shows " the cooldown of the kit" in a gui ( chestcommands )

warm topaz
#

what kit plugin are u using?

austere hawk
#

Essentials

#

The normal kits

warm topaz
#

%essentials_kit_time_until_available_<kitname>% i believe

austere hawk
#

😮

#

How you did that

#

the command please

#

To use this bot

warm topaz
#

.-papi <expansion> 🙂

austere hawk
#

😄

#

Thank's dude

warm topaz
#

np

civic hinge
#

Why that no working?

#

Oh no how can i sens photo?

#

s

warm topaz
#

?imgur

tender vaporBOT
civic hinge
#

Why that no working?

warm topaz
#

so u have Holographic displays, holographic extension and protocollib?

civic hinge
#

No :/

warm topaz
#

ok better question sorry, which hologram plugin are u using?

late glacier
#

Hi guys, I'm getting this error while running the latest PlaceholderAPI

civic hinge
#

@warm topaz Ok working 🤦 . I must install holograpic extension and portocolib

late glacier
warm topaz
civic hinge
#

@warm topaz Why add to holograms {slow}, {medium}, ec?

warm topaz
#

its how holographic extension knows to update the hologram, otherwise the plugin has no idea how to update the hologram (then ur placeholder will not work)

late glacier
#

Thanks! My console is error free once again

#

@warm topaz

warm topaz
#

👍

sinful plume
#

[05:37:58 WARN]: [PlaceholderAPI] mvdw is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

mint fable
#

version?

#

/papi dump

#

=paste

tender vaporBOT
sinful plume
#

I'm trying to install the ecloud expansion for MvDWPlaceholder api. I'm running /papi ecloud download MVdW then /papi reload and its still not coming up on the installed expansions list. one moment let me get you that

mint fable
#

you have 2 mvdw jars

#

remove both

#

and re-download

sinful plume
#

same issue as above

mint fable
#

hmm I guess mvdw expansion needs updating

#

i think they should still work, do they?

sinful plume
#

no they don’t

mint fable
#

what if you try on 2.10.8?

sinful plume
#

I'm going to be going to bed im a minute. I'll try it out tomorrow morning and get back to you. thanks for the help

mint fable
#

👍

harsh furnace
#

is there a way to get %player_first_join_date% without the timestamp

#

just date

EDIT: realized that i could change the date formatting in the config and remove the timestamp 🙂

ripe wraith
#

is there any reason why my pinger holograms dont update until you quit the server then rejoin the server?

stiff marlin
#

Does anyone know why my skript expansion doesn't work? It doesn't show in /papi list either

tall torrent
#

Hi, I need help with Parseother on Javascript Expansion. When I try to use parseother on a variable, It parses the placeholder (The one without percent sign) first before being parsed as parseother placeholder. For example,

var ParseOther = "%parseother_{" + OnlineNames[z] + "}_{worldguard_region_name}%";```
It parses first the "`worldguard_region_name`" ending up messing the parseother. If I am on region "Craft" It will return as `%parseother_{craftizz}_{craft}%` instead of `%parseother_{craftizz}_{worldguard_region_name}%`
turbid tide
#

Does anyone know why my skript expansion doesn't work? It doesn't show in /papi list either
@stiff marlin Go to plugins/PlaceholderAPI/expansions and check to see if the Skript expansion is there. If it is then delete it then go to https://api.extendedclip.com/expansions/skript/ and download the expansion then go and add it manually in the plugins/PlaceholderAPI/expansion folder

stiff marlin
#

I already downloaded it via the ecloud and manually

turbid tide
#

can you please provide the startup log?

#

?startuplog

tender vaporBOT
stiff marlin
#

yeah, wait a sec

#

Can I just copy the placeholderapi information that is coming in the console?

#

but yeah, wait a sec, I'll provide the startup log

#

My server has been running all night, so there might a be a lot in it (link deleted)

turbid tide
#

ugh is this all?

stiff marlin
#

It doesn't seem like the startup is in that log, I'll restart my server quickly and provide you with a new log

turbid tide
#

also delete that link

#

seems to have some player IPs

stiff marlin
#

Can I send it in DM then?

turbid tide
#

I already have the link no need to resend it

stiff marlin
#

But I don't think the startup is provided there

turbid tide
#

and if you'll restart usually there shouldn't be any IP unless someone has joined

stiff marlin
#

I'll restart then

turbid tide
#

well it should. idk why it didn't for you

stiff marlin
#
10.08 14:54:37 [Server] INFO [PlaceholderAPI] Successfully registered expansion: askyblock
10.08 14:54:37 [Server] WARN [PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
10.08 14:54:37 [Server] INFO [PlaceholderAPI] Successfully registered expansion: vault
10.08 14:54:37 [Server] INFO [PlaceholderAPI] Successfully registered expansion: luckperms
10.08 14:54:37 [Server] Startup 3 placeholder hooks successfully registered!```
#

I found that in the console

turbid tide
#

yeah

#

so you'll have to contact whoever is the developer of Skript expansion and ask them to update

stiff marlin
#

Okay, thanks.. I'll try contacting them

turbid tide
#

or

#

ask someone to update it for you

#

its Open Source

stiff marlin
#

How do I do that?

turbid tide
stiff marlin
#

Oh, thanks

turbid tide
#

but you could just try mesaging the dev first

stiff marlin
#

Yeah I'll message the dev

turbid tide
#

oops

#

nvm xD

stiff marlin
#

I'm already on the spigot page

#

🙂

#

But thanks!

turbid tide
#

no problem

limber ice
tender vaporBOT
full geyser
#

discordsrv expansion fails to load, outdated. Latest placeholderapi, latest discordsrv

#

deleted expansion and used ecloud download again, doesnt fix

mint fable
#

what if you try on 2.10.8?

#

@full geyser

shell aspen
#

Hi i have a bug i think...

#

I added on my scoreboard %statistic_time_played% and now i have 3d 25h 36m and 33s

full geyser
#

Then all the other, updated ones will break lol

bronze solar
#

Hi. I was wondering if there's any placeholder that's related to nicknames, but that the type of placeholder isn't a word, but instead a sentence, so that one can input the information in the placeholder with spaces in it

wet basinBOT
brisk coral
#

You suck papi bot

sharp jay
#

xD

bronze solar
#

I mean- Is there any plugin that integrates a placeholder that can contain spaces in them?

#

yay Im green

alpine saffron
#

anyone know why griefprevention isnt working with papi?

warm topaz
alpine saffron
#

it disables it when I reload it

#

but it does work

coarse sable
#

Does anyone know if there is a placeholder for blocks placed in placeholderapi? I can't seem to find it.

wispy birch
#

Is there a way to unregister a hook?

#

Does anyone know if there is a placeholder for blocks placed in placeholderapi? I can't seem to find it.
@coarse sable probably statistic

coarse sable
#

Already checked.

wispy birch
#

%statistic_use_item:<Item Material>%

shell aspen
#

I added on my scoreboard %statistic_time_played% and now i have 3d 25h 36m and 33s
Its a bug?

wispy birch
#

thats how timeplayed renders I believe

#

is that not what you want

ripe wraith
#

i saw this in a server and they have a status of whitelisted. is that from the pinger placeholder or is that custom coded

steep thorn
#

@shell aspen explain the actual bug, I don't see what's wrong with that

echo umbra
#

hi!

#

i have a problem with a javascript

#

where can I afk for support?

#

tag me pls 🥺

brisk coral
#

Or ya know, just ask the question and someone will respond if they know the answer

coarse bolt
#

Help?? placeholderapi allo lowercase

#

Why is everything lowercase on new placeholderapi version?

stone parcel
#

is there a way in javascript to turn 1,0 to 1 but 1,1 is still 1,1?

shell aspen
#

explain the actual bug, I don't see what's wrong with that
@steep thorn why i have 3d and 25h and not 4d???

coarse bolt
#

uh

steep thorn
#

Oh

coarse bolt
#

is new placeholderapi broken?

steep thorn
#

@shell aspen which PAPI version?

coarse bolt
#

Placeholder 2.10.9

coarse bolt
#

well everything is lowercase

#

for some reason

#

why ?

shell aspen
#

I have 2.10.9

steep thorn
#

This is definitely wrong

coarse bolt
#

I have 2.10.9 and is your stuff all lowercased too?

steep thorn
#

Don't know how that PR got merged

#

@austere hawk

coarse bolt
#

Why is my PlaceholderApi all stuff is lowercased ?

austere hawk
#

What?

#

What about it?

shell aspen
#

No my stuff isn't lowercased just doesn't calculate time well

coarse bolt
#

I used placeholderapi 2.10.9 and everything is lowercased

#

my chat, my announcements,

#

my ranks

austere hawk
#

@shell aspen update to the latest dev build

coarse bolt
#

whats latest dev build?

austere hawk
#

2.10.10-something-DEV

#

On jenkins

steep thorn
coarse bolt
#

can u send it?

steep thorn
#

^

shell aspen
#

I will try

coarse bolt
#

see

austere hawk
#

@steep thorn that was actually the fix for that bug lol (and the whole class refactoring) it's not in the latest release tho

steep thorn
#

Alright, let's see if that fixes @shell aspen 's issue

austere hawk
#

Should, it fixed mine

coarse bolt
#

fefo did u see my screenshot?

austere hawk
#

Yep

coarse bolt
#

i keep getting that on 2.10.9

#

everything is just lowercased.. why

shell aspen
#

Sorry, but I'm checking tomorrow, I'm not at the computer now

austere hawk
#

I have a feeling that's in a config file in the clearlag plugin you're using (I never used any so I wouldn't know)
But I don't know for sure tho
Also, question: which parts of those messages come from placeholders?

#

I'm assuming the remaining time and # of entities cleared?

coarse bolt
#

no its for every plugin

austere hawk
#

bruh

coarse bolt
#

announcer, essentialschat, and stuff

austere hawk
#

then you got bigger problems, does it still happen without papi?

open cave
#

deluxe menu not support for 1.16 ?

coarse bolt
#

without papi its fine

#

with papi its broken

austere hawk
#

never heard of such thing

coarse bolt
#

i guess ill just use 1.8 placeholderapi

#

thats only one that works for 1.16.1

#

should i try reset full server and try it?

austere hawk
#

make backups first lul

coarse bolt
#

How do i fix it?

austere hawk
#

I have absolutely no idea, did you try with the latest dev build?

steep thorn
#

This is bad, the version of Statistic that worked with older Spigot versions, doesn't work with newer PlaceholderAPI versions

#

This version

austere hawk
#

Sergiu be writing down the bible or somethin

echo umbra
#
var kitname = args[0];
var perm = "%essentials_has_kit_" + kitname + "%";
var status;

function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("✔");
if (result !== -1) {
status = "&a✔"
}
status = "&c✘"
} else {
status = "&e?";
}
return status;
}
kitcheck();

when i'm using %javascript_kits_vip% it doesnt work, it shows as ✘, the problem is with perm with kitname but when i'm using kit name instead eg. perm = "%essentials_has_kit_vip%"; its working
why?

#

Sergiu be writing down the bible or somethin
@austere hawk yeah :)))))))

#

someone tag me with solution please 🥺

turbid tide
#

ugh because perm will bot be parsed as a placeholder

echo umbra
#

I realized it too

#

but how

turbid tide
#

try PlaceholderAPI.setPlaceholders(player, perm) and give player the %player_name% value

echo umbra
#

to make it to be parsed as a placeholder?

#

okk

turbid tide
#

so something like this ```
var kitname = args[0];
var perm = "%essentials_has_kit_" + kitname + "%";
var player = "%player_name%";
perm = PlaceholderAPI.setPlaceholders(player, perm);
var status;

function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("✔");
if (result !== -1) {
status = "&a✔"
}
status = "&c✘"
} else {
status = "&e?";
}
return status;
}```

echo umbra
#

thank u ❤️

turbid tide
#

does it work?

echo umbra
#

nope

#
[23:17:34 WARN]: Caused by: <eval>:1 TypeError: PlaceholderAPI.setPlaceholders is not a function
#

brb

echo umbra
#

soo....

#

how to

#

fix 🥺

turbid tide
#

hmm

#

that's a good question xD

warm topaz
#

can u use that in js?

turbid tide
#

I'm pretty sure that Frosty used it to help with a js of Tanguygab's

#

actually @junior musk could you help? xD

echo umbra
#

;((

turbid tide
#

@brisk coral you online? If not sorry for pinging xD

tender vaporBOT
mint fable
#

you shouldn't need to setplaceholders

#

they should be parsed automatically

echo umbra
#

but why it doesnt work then?

mint fable
#

well I know nothing about the situation

#

so fill me in a bit

echo umbra
#
var kitname = args[0];
var perm = "%essentials_has_kit_" + kitname + "%";
var status;

function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("✔");
if (result !== -1) {
status = "&a✔"
}
status = "&c✘"
} else {
status = "&e?";
}
return status;
}
kitcheck();

when i'm using %javascript_kits_vip% it doesnt work, it shows as ✘, the problem is with perm with kitname but when i'm using kit name instead eg. perm = "%essentials_has_kit_vip%"; its working
why?

turbid tide
#

he's trying to use a variable inside the placeholder

echo umbra
#

yep

mint fable
#

this is

#

wow

turbid tide
#

?

mint fable
#
var kitname = args[0];
var perm = "%essentials_has_kit_" + kitname + "%";
var status;

function kitcheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            status = "&a✔"
        }
        status = "&c✘"
    } else {
        status = "&e?";
    }
    return status;
}
kitcheck();
#

ok

#

can you return perm?

echo umbra
#

okkkk

turbid tide
#

I'm pretty sure it will just return the text but yeah return it just in case xD

echo umbra
mint fable
#

so

#

it says NO

turbid tide
#

ugh?

mint fable
#

why are you checking for a check mark?

turbid tide
#

where did that come from? xD

echo umbra
#

from here

#

:))

turbid tide
#

oh xD

mint fable
#

I see

turbid tide
#

so it parses the placeholder

echo umbra
#

yep

mint fable
#

so the placeholder works fine

echo umbra
#

but

#

when i replace

turbid tide
#

its just inside the javascript

#

it only parses it when you do the command

#

so you need to parse it inside first to make the check

echo umbra
#
var perm = "%essentials_has_kit_" + kitname + "%";

with

var perm = "%essentials_has_kit_vip%";
mint fable
#

can you type /papi parse me %essentials_has_kit_vip%

echo umbra
#

its working

#

ofc

junior musk
#

BlitzZ, you needed me?

echo umbra
turbid tide
#

ye

#

how did you fix the placeholder with a variable inside it/

#

I remember frosty doing it for you

mint fable
#

okay so

junior musk
#

PlaceholderAPI.static.setPlaceholders(player, "placeholder");

mint fable
#
var kitname = args[0];
var perm = "essentials_has_kit_" + kitname + "";
var status;

function kitcheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            status = "&a✔"
        }
        status = "&c✘"
    } else {
        status = "&e?";
    }
    return perm;
}
kitcheck();
#

what does that return

sweet raft
#

Hi quick question, what is PlaceholderAPI used for?

mint fable
#

the placeholder seems to parse though

#

v confused

turbid tide
#

yeah cj

#

on command

#

but not isnide the js

echo umbra
mint fable
#

huh?

turbid tide
#

because parse command parses just the return text

#

or what it returns

mint fable
#

okay but why is it no

#

because it even says the perm is essentials_has_kit_vip

echo umbra
#

that's what I want to figure out

mint fable
#

Try what tanguygab sent

echo umbra
#

ok

turbid tide
#

well yeah cj

#

this

mint fable
#

even if it returned %essentials_has_kit_vip% blitz it should say yes

turbid tide
#

var perm = "essentials_has_kit_" + kitname + "";

mint fable
#

:L

turbid tide
#

is not a placeholder inside the js

#

its a string

mint fable
#

yes...

#

I did that on purpose

#

because I wanted to see the value of it

#

and make sure it was correct

turbid tide
#

no it shouldn't say yes

mint fable
#

because then it makes no sense for it to be say no

echo umbra
turbid tide
#

it does make perfect sense

mint fable
#

what

turbid tide
#

because it parses the string again

#

on exit

mint fable
#

why does it say no?

turbid tide
#

but inside the js its not parsed

#

because of the boolean return

#

from papi

mint fable
#

the string inside the js would be the following

#

%essentials_has_kit_vip%

#

not parsed

turbid tide
#

yeah

mint fable
#

if it returns that

#

papi will parse it

#

so why does it return no

#

it should return the check mark

turbid tide
#

because he doesn't have the kit

#

probably

mint fable
#

no

#

we just tested /papi parse me %essentials_has_kit_vip%

echo umbra
mint fable
#

and it returned the check mark

#

well parse <player>

echo umbra
#

yep

mint fable
#

it makes no sense to return no

turbid tide
#

hmm that's weird didn't see the other part of the test

#

did you parse it on yourself both times sergiu?

echo umbra
#

when its vip instead + kitname + its working but when its viceversa its doesnt

mint fable
#

can you send the js you have now?

echo umbra
#

yep

#

its the same

#

but

mint fable
#

just send the entire thing

turbid tide
#
var perm1 = "%essentials_has_kit_" + kitname + "%";
var player = "%player_name%";
val perm = PlaceholderAPI.static.setPlaceholders(player, perm1);
var status;

function kitcheck() {
if (kitname !== null && kitname !== "" && kitname !== undefined) {
result = perm.indexOf("✔");
if (result !== -1) {
status = "&a✔"
}
status = "&c✘"
} else {
status = "&e?";
}
return status;
}``` try this after that
echo umbra
#
var kitname = args[0];
var player = "%player_name%";
var perm = "essentials_has_kit_" + kitname + "";
perm = PlaceholderAPI.static.setPlaceholders(player, perm);
var status;

function kitcheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            status = "&a✔"
        }
        status = "&c✘"
    } else {
        status = "&e?";
    }
    return perm;
}
kitcheck();
mint fable
#

well

#

you didn't surround the placeholder in %%

#

I removed it for the test

turbid tide
#

xD

#

try what I just sent

echo umbra
#

oh

mint fable
#

blitz make it look.... not shit plz

#

❤️

turbid tide
#

no thank you

#

you do it

#

wait

#

I do have a question tho ....

mint fable
#
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var player = "%player_name%";
val perm = PlaceholderAPI.static.setPlaceholders(player, perm1);
var status;

function kitcheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            status = "&a✔"
        }
        status = "&c✘"
    } else {
        status = "&e?";
    }
    return status;
}
echo umbra
#

yep, same error

turbid tide
#

} status = "&c✘" } else

#

what's this?

#

...

mint fable
#

it will return the X

turbid tide
#

yeah

#

every time

echo umbra
#

yep

mint fable
#

ya

#

ya it will

#

nice

turbid tide
#

it should even throw errors

mint fable
#

you didn't break

#

rip

echo umbra
#

it will return only if the player doesnt have permission

turbid tide
#

well no

mint fable
#

throw errors?

#

why?

turbid tide
#

because its a random else in there

mint fable
#

bruh

turbid tide
#

that else doesn't come after the if ...

mint fable
#

that's an else from the first if

#

...

turbid tide
#

wait can you do that?

mint fable
#
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var player = "%player_name%";
val perm = PlaceholderAPI.static.setPlaceholders(player, perm1);
var status;

function kitcheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            return "&a✔";
        }
        return "&c✘";
    } else {
        return "&e?";
    }
}
#

try that

#

what are you on about

turbid tide
#

cj ...

limber ice
#

I need to figure out this is happening when I reload papi?

mint fable
#

blitzz look

turbid tide
#

he closes the if before the status = "&c✘" line

#

...

mint fable
#

if (kitname !== null && kitname !== "" && kitname !== undefined) { }else

turbid tide
#

then he just adds that line

#

no

mint fable
#

blitz

#

imma slap u real soon

echo umbra
#

:))

turbid tide
#

if (kitname !== null && kitname !== "" && kitname !== undefined) {} status = "&c✘" { }else

#

that's how it is

mint fable
#

what

#

are you even

#

bruh

#

i can't

#

let's do this

#
function kitcheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            return "&a✔";
        }
        return "&c✘";
    } else {
        return "&e?";
    }
}
turbid tide
#

xD

#

I've just noticed there are 2 IFs xD

mint fable
#

let me just

#

😠

echo umbra
#

😦

turbid tide
#

so what I've sent doesn't fix it Sergiu?

echo umbra
#

nope

mint fable
#

did you try what I sent

#

well

#

kind of weird

echo umbra
#

oooohhhhhh

#

should i use val?

#

or? xd

mint fable
#
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);

function kitCheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            return "&a✔";
        }
        return "&c✘";
    } else {
        return "&e?";
    }
}
kitCheck();
#

ok

#

that should work

#

and no, val is wrong

#

good lookin

echo umbra
#

oh

mint fable
#

it might accept a player though instead of a player name

turbid tide
#

val is a thing just in the new versions or something of javascript I think

mint fable
#

BukkitPlayer

#

we'll see tho

echo umbra
#

still this

mint fable
#

ah

#

yep

#

try that (I edited it)

turbid tide
#

you are indeed right

mint fable
#

well ye

#

just wasn't sure for js

echo umbra
mint fable
#

ooh

#

i think I forgot the bottom at some point

#

call the function

#

ah, I copied blitz that's what happened

#

😉

turbid tide
#

blame me ... nice

echo umbra
#

xd

turbid tide
#

well I know

#

but you could just own your mistake

#

that you didn't look to what you copied

mint fable
#

psshhh

echo umbra
#

xd

#
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);
var status;

function kitcheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            status = "&a✔"
        }
        status = "&c✘"
    } else {
        status = "&e?";
    }
    return status;
}
#

i tried this

#

but still NO

mint fable
#

uh

turbid tide
#

but why no

mint fable
#
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);

function kitCheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            return "&a✔";
        }
        return "&c✘";
    } else {
        return "&e?";
    }
}
kitCheck();
#

it returned... NO?

#

O.o

echo umbra
#

yep

#

wait

#

no

mint fable
#

that makes 0 sense

#

test what I sent

echo umbra
#

returned

#

X

mint fable
#

yes, as blitz and I pointed out earlier

#

you never break

turbid tide
#

add another else{}

#

or yeah break;

mint fable
#

bad blitz

turbid tide
#

xD

#

dk how break works in js

mint fable
#

stop with the status variable

#

it's a piece of shit

#

return

#

no reason not to

echo umbra
#

:((

mint fable
#

no point in holding your return in a variable so it takes more time to do nothing

echo umbra
#

but it should return checkmark

#

but its returning X

#

i dont understand

#

gray x

mint fable
#

okay let's see

#
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);

function kitCheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            return "&a✔";
        }
        return "&c✘";
    } else {
        return "&e?";
    }
}
kitCheck();```
#

let's take a look

#

can we return perm1 and perm?

echo umbra
#

lets try

mint fable
#

hmm, it might just return no twice tho

#

we'll see

#

put it where the X currently is

echo umbra
#

ok

#
var kitname = args[0];
var perm1 = "%essentials_has_kit_" + kitname + "%";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, perm1);

function kitCheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            return "✔";
        }
        return perm + " " + perm1;
    } else {
        return "&e?";
    }
}
kitCheck();
mint fable
#

okay let's test this

echo umbra
#

😦

mint fable
#

fuck i got no idea

echo umbra
#

vip instead kitname?

mint fable
#

it makes no sense

#

what if

echo umbra
#

i'm getting a checkmark

#

when replacing

mint fable
#
var kitname = args[0];
var placeholder = "essentials_has_kit_" + kitname + "";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");

function kitCheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            return "✔";
        }
        return perm + " " + placeholder;
    } else {
        return "&e?";
    }
}
kitCheck();
echo umbra
#

hmm

mint fable
#

checkmark when replacing?

#

huh?

echo umbra
#

lol

#

its working

#

now

#

thanksssss

mint fable
#

what did you do

#

oh with that?

echo umbra
#

idk i just colored the checkmark

#

from js

#

and

mint fable
#

what is your current js then

echo umbra
#

idk how

#
var kitname = args[0];
var placeholder = "essentials_has_kit_" + kitname + "";
var perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");

function kitCheck() {
    if (kitname !== null && kitname !== "" && kitname !== undefined) {
        result = perm.indexOf("✔");
        if (result !== -1) {
            return "&a✔";
        }
        return perm + " " + placeholder;
    } else {
        return "&e?";
    }
}
kitCheck();
mint fable
#

so you copied my stuff and colored it

echo umbra
#

yep

mint fable
#

I would assume it works without coloring it?

echo umbra
#

yep

mint fable
#

also you can remove the + ""

#

at the top

#

since it's unneeded now

echo umbra
#

ok thanks you very much, you're my hero :))

mint fable
#

I kind of am hurt, because I wanted to try that way earlier but didn't CryingCool

echo umbra
#

it doesnt matter cuz i liked to work with you

#

:))

#

🥳

mint fable
#

👍 glad it works

#

@turbid tide this

turbid tide
#

?

mint fable
#

check the working code

#

I separated the %% out

echo umbra
#

blitz thank you too

turbid tide
#

what if I don't want to?

mint fable
#

well

#

you're forced to

turbid tide
#

xD

#

are you going to ban me from the internet if I don't?

echo umbra
#

🥺

#

ok

#
var kitname = args[0];
var perm;
var perm1;
var time;
var time1;
var available;
var available1;
var result;
var status;
perm1 = "essentials_has_kit_" + kitname;
time1 = "essentials_kit_time_until_available_" + kitname;
available1 = "essentials_kit_is_available_" + kitname;
perm = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + perm1 + "%");
time = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + time1 + "%");
available = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + available1 + "%");

function kitcheck() {

   if (kitname !== null && kitname !== "" && kitname !== undefined) {
       result = perm.indexOf("✔");
       if (result !== -1) {
           if (time == 0) {
               status = available;
           } else {
               status = time;
           }
       } else {
           status = perm;
       }
       
   } else {
       status = "&e?"
   }

return status;
}
kitcheck();
#

This is my final code

#

and its working

#

:))

mint fable
#

uh

echo umbra
#

i kept that status :))

mint fable
#

you don't need to do the variables like that

echo umbra
#

ik

#

but thanks

#

very much

near inlet
#

Hey, i got a question with javascript placeholders

var towny = "%townyadvanced_town%";

function getTownName() {
    if (towny === "") {
        return "None";
    } else {
        return towny;
    }
}
getTownName();
``` is not giving anything in return
rare lily
#

Try parse the placeholder to see what it returns

near inlet
#

thats what i was doing

#

i just realized i made a typo so you may ignore me lol

#

thanks tho!

rare lily
#

👍

limber ice
#

I want to update my expansion but can't seem to see the link to do so

mint fable
#

go to versions

limber ice
#

don't seem to be there or working

mint fable
#

are you logged in?

sinful plume
#

tried downgrading to 2.10.8 and same issue is still occuring

#

[04:13:05 WARN]: [PlaceholderAPI] mvdw is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

sinful plume
#

@mint fable

tender vaporBOT
#

@sinful plume,

lyric veldt
#

Please someone help

leaden kraken
#

with?

lyric veldt
#

how can i make my config work with any placeholder

leaden kraken
#

Is it your own plugin or another plugin?

lyric veldt
#

My own

#

Its all imported and stuff

lyric veldt
#

Ive done that

leaden kraken
#

Then what's the problem?

#

PlaceholderAPI#setPlaceholders(Player, String)

lyric veldt
#

It doesn't show me how to make all my stuff in config placeholders

leaden kraken
#

You want to make your own placeholders?

lyric veldt
#

No

#

I just want to be able to use all placeholders in my config

lyric veldt
#
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            /*
             * We register the EventListener here, when PlaceholderAPI is installed.
             * Since all events are in the main class (this class), we simply use "this"
             */
            Bukkit.getPluginManager().registerEvents(this, this);
        } else {
            /*
             * We inform about the fact that PlaceholderAPI isn't installed and then
             * disable this plugin to prevent issues.
             */
            getLogger().warn("Could not find PlaceholderAPI! This plugin is required.");
            Bukkit.getPluginManager().disablePlugin(this);
        }
    }
#

like... what am i meant to do with this

leaden kraken
#

Well, do you know java?

lyric veldt
#

ish

#

Learning

#
        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.
         */
        joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);

        event.setJoinMessage(withPlaceholdersSet);
    }
#

But the placeholders are in there .java

#

so how would i make it work for the Config

#

instead

leaden kraken
#

With that example, you could do something like this

        String joinText = getConfig().getString("join-text");

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

        event.setJoinMessage(withPlaceholdersSet);
#

Then that would set the join message to what you have set in the config under join-text

#

Replacing any placeholders you have there

lyric veldt
#

okay

#

would this worked if my config looked like this

#
WelcomeMessages:
  - "T"
  - "E"
  - "S"
  - "T"
leaden kraken
#

So, with a list?

lyric veldt
#

yes

leaden kraken
#

Yeah, PlaceholderAPI#setPlaceholders(Player, List<String>)

lyric veldt
#

Just that 1 line?

leaden kraken
#
List<String> list = getConfig().getStringList("WelcomeMessages");

list = PlaceholderAPI.setPlaceholders(player, list);
lyric veldt
#

just change "join-text" to mine?

leaden kraken
#

yeah

lyric veldt
#

So that should work

leaden kraken
#

It should, yeah

lyric veldt
#

Nope

#

oh wit

#

wait

#

Nope still does not work

leaden kraken
#

What doesn't work?

lyric veldt
#

the placeholders

leaden kraken
#

Is there an error, doesn't do anything?

lyric veldt
#

can i dm u a message

#

like pic

leaden kraken
#

sure

steep thorn
#

@lyric veldt you can post images here by uploading them on Imgur first

vivid sparrow
#

Robin, is leaderheads compatible with 1.16?

plush loom
#

Yes Gaby

glacial barn
#

Hi, is it possible to evaluate a placeholder api variable, then output a string?

steep thorn
#

@glacial barn what do you mean with 'output' a string? Output it where? Chat?

#

@vivid sparrow yes

tender vaporBOT
#

@steep thorn,

steep thorn
#

Yes Gaby*

glacial barn
#

I would like to evaluate if a placeholder variable is true or it is a string, then return a string for deluxechat to use.

turbid tide
#

use javascript placeholders for that

glacial barn
#

may I know how to pass placeholder variables to the javascript file?

steep thorn
#

I think if you have a variable like let foo = '%player%' it replaces it automatically

glacial barn
#

Wow that's amazing! Thank you!

turbid tide
#

I don't think let works just var. not sure about that

#

also you could just mae 1 placeholder and use arguments

#

so you can use it for multiple placeholders

#
var placeholder = args[0];

function checkPlaceholder(){
  if(placeholder == "true"){
    return "yes";
  }
  return "no";
}```
#

quick example on how to use args

#

and when you use the js placeholder just use %javascript_PLACEHOLDERNAME_{placeholdertobechecked}%

glacial barn
#

I see, thanks for the example

steep thorn
#

I think some examples would be nice

#

I thought you had to declare it as a var and that PlaceholderAPI did some preprocessing before feeding it to Nashorn, but I haven't checked the source tbh

turbid tide
#

hmm idk where I've seen it when I've learnt about it but no one told me there are some examples somewhere xD

#

but yeah you can do that

#

I'll try adding something in there or ask cj to do it since he's better at writing explanations xD

#

@steep thorn added myself an example. hope it will be enough for most people xD.

steep thorn
#

Wow I didn't even know that storing data was a thing

turbid tide
#

oh it is

#

and its amazing

#

xD

#

there is already a placeholder made if you want

#

on the community javascripts

steep thorn
#

Maybe something with PlaceholderAPI.static.setPlaceholders or whatever as an example could be cool

#

I saw it going by here yesterday

turbid tide
#

oh yeah.

#

that could be a thing. I just need to think of a way to explain it xD

#

I'm bad at explaining things. like bellow average :))

#

ok added @steep thorn hope its good enough. 🙂 Already told the others to make it better if they think its not enough

steep thorn
#

Looks good

turbid tide
#

oh

#

I'm dumb

#

forgot to add the var keyword

#

welp fixed. lmk if you think there should be something else that needs added.

frail sentinel
#

its possible use placeholder variable on vebsite

#

?

#

on website*

brisk coral
#

Does the website integrate with papi to parse them?

limber ice
#

I have a theory on why /papi reload don't like my expansion , might be something to do with setting on my ecloud account

final shadow
#

What setting

limber ice
#

no clue I get an error if my expansion is folder

#

@final shadow

tender vaporBOT
#

@limber ice,

limber ice
#

I wish barry knew how important this was

austere hawk
#

Hey @tender vapor

#

Suck it

limber ice
#

I can't update my expansions to update them either, not sure what or where I should be clicking on

#

so you have a love hate relationship with barry also

tranquil yoke
#

How do I put a placeholder in a holographic display?

compact karma
#

is there a placeholder for the date

north oak
#

Hello, it is the DeluxeMenus plugin, I put the configuration but the data does not appear or an alliance is made, how can I do it to combine everything, please help me

https://imgur.com/a/XE9fxpU

steep thorn
tranquil yoke
#

Thank you! Appreciate it 🙂

#

Do you know of a leaderboard plugin (shows up on screen) that also does that?

steep thorn
#

Leaderheads

#

I heard it's a great plugin

turbid tide
#

xD

#

I agree. You could name it the best

tranquil yoke
#

Does that one show a leaderboard on-screen? Or does it just make a leaderboard using heads and signs...?

turbid tide
#

you can put the placerholders anywhere it accepts placeholders

#

so in holograms, scoreboards

#

signs, menus

north oak
#

Hello, it is the DeluxeMenus plugin, I put the configuration but the data does not appear or an alliance is made, how can I do it to combine everything, please help me

https://imgur.com/a/XE9fxpU

steep thorn
#

@tranquil yoke You can do holograms, signs, armorstands and also show it in your scoreboard (on the side of your screen) if you have a working scoreboard plugin

tranquil yoke
#

Oh wonderful

turbid tide
#

ugh @north oak /papi parse me %strikepractice_global_elo% what does it return?

north oak
#

It doesn't work, I get like this all the time, I would like to find the command or some kind of help: c

turbid tide
#

ugh do you have the strikepractice plugin installed?

steep thorn
#

@turbid tide I assume Strikepractice probably has an outdated hook

#

barry logs pls

north oak
#

It's not necesary?

turbid tide
#

?startuplog

tender vaporBOT
steep thorn
#

Why woud strikepractice not be necessary for showing... strikepractice data?

turbid tide
#

^

#

send this

north oak
#

?startuplog

tender vaporBOT
turbid tide
#

just send what its said inside the message

#

xD

north oak
#

One moment please, I don't speak English, I'm with the translator, I'll install the plugin

turbid tide
#

ugh?

steep thorn
#

I don't understand what you expected it to show if you don't have strikepractice??

turbid tide
#

you don't have the strikepractice plugin?

north oak
#

If I have the plugin, but the error continues

steep thorn
#

Like we said, send the logs

north oak
#

Right now i upload it

tranquil yoke
#

Do I have to add a placeholder to the config to be able to use it? I just downloaded this plugin and am trying to use vault placeholders. I have papi and have uploaded vault to papi

steep thorn
#

@tranquil yoke did you buy it?

tranquil yoke
#

Buy vault or PAPI

steep thorn
#

'this plugin'

tranquil yoke
#

holographic placeholders?

steep thorn
#

Oh, sorry. I thought you were talking about the leaderboards

tranquil yoke
#

Oh shoot I'm on the wrong discord channel my bad

steep thorn
#

No it's fine

mint fable
#

you and robin both seem to be that way lmao

steep thorn
#

🤔

mint fable
#

sounds like you thought you were in a leaderheads channel lol

steep thorn
#

If only that existed

#

@winged chasm Does the Vault placeholder itself work? /papi parse me %vault_eco_balance%

north oak
#

List, there are the records

steep thorn
#

?startuplog

tender vaporBOT
steep thorn
#

?paste

tender vaporBOT
steep thorn
#

I have better things to do than going through a ton of different log files

#

Just upload the one that the bot says

#

You could also have checked the logs yourself:

#
[14:33:24] [Server thread/ERROR]: Error occurred while enabling StrikePractice v2.5.7 (Is it up to date?)
java.lang.NoClassDefFoundError: me/clip/placeholderapi/external/EZPlaceholderHook
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_222]
    at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_222]
#

Plugin isn't even enabled

#

And the version you use is heavily outdated

#

And with 'heavily' I literally mean YEARS

#

Dec 3, 2018

near inlet
#

question, when i stop the server papi starts spitting out a bunch of errors

steep thorn
#

@near inlet which Papi version?

trim mist
#

Looks to be something with DeluxeChat.

steep thorn
#

I mean build

near inlet
#

2.10.9 papi

#

im on 1.16.1-dev deluxechat tho

mint fable
#

townychat expansion

near inlet
#

townychat 0.76

#

which is why im using the dev version of dchat

mint fable
#

is there an expansion inside dchat? O.o

near inlet
#

you can hook the 2 but i dont think its related to this

trim mist
#

It's more of a listener iirc

near inlet
#

i was using the dchat and townychat before i updated papi