#placeholder-api

1 messages Ā· Page 148 of 1

heady urchin
#

or for operations

#

like does the math placeholder have operations or something

#

This should work right?

#
          type: "string equals"
          input: "%math_{tokens_raw}>={enchant_combo_cost_1_raw}[precision:0]%"
          output: "1"
turbid tide
#

hmm I know it has if statements but I never actually used them

heady urchin
#

It works

#

true = 1, false = 0

twin blaze
#

how to make N/A placeholders show as N/A on scoreboards or holographic displays

lean sinew
#

So i have been stressing out over this idea i have had, but i cant seem to figure it out. pretty much this is hard to explain and confuses alot of people when i explain it xD, But im trying to give players colored names by a gui, but when i use %essentials_nickname% or %player_displayname% it locks the colour set inside the api so when i try to change someone nickname it is pretty much is doing &4&5{Name} that it locking it to purple inside the api. is there anyway to get a api for players nickname without it having a colour linked. also %player_name% will set it to the default username that will be removing the befits of /nick from donators so that wont work either.

#

if you have any other questions please ask...

turbid tide
#

you can use the JavaScript expansion to set the player display name yourself but idk how that will work really. I guess you can Player#getDisplayName then use ChatColor if that's even possible to strip the colors from the displayName and then add the new colors before their name

#

and translate

twilit ridge
#

What are the placeholders for player name when you want to run a console command? (DeluxeMenus)

turbid tide
#

%player_name%

twilit ridge
nocturne marten
#

hi, is it possible to run papi on bungeecord?

turbid tide
twilit ridge
#

Thank you šŸ™

lean sinew
#

alright ill give that a go with my 0 info on coding xD

turbid tide
#

it will probably be a pain in the ass. I don't even know if its fully possible with just the JS expansion

lean sinew
#

if you figure out a easier way give me a ping, but yeah i feel this isn't gonna possible

turbid tide
#

well easier not. safer yes. Java. make your own plugin

#

safer meaning its 100% possible

twin blaze
#

how to make N/A placeholders show as N/A on scoreboards or holographic displays

crisp sable
#

hello, sorry for the inconvenience, i try use JetsPrisonMines PAPI but this no work, i download the last version from papi page, i have the last version of papi and jet.
the parse command same no work ://
any idea? thanks ā¤ļø

night oracle
#

Hi, I have one and very big problem. The %statistic_time_played% stopped refreshing. Idk why, when I write just this command /papi parse me %statistic_time_played% the time is always the same. I tried to restart server, nothing help. My server is on Paper 1.16.5

#

Help me someone pls

#

@crisp sable

rotund pendant
night oracle
#

@rotund pendant

#

Can you help me?

rotund pendant
#

I'm not too sure about how to resolve your issue.

night oracle
#

Ok

#

Who can help me so ?

tender vaporBOT
#

@night oracle,

Hey!

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

night oracle
#

How funny it doesn't sound it's a real problem. And i really don't know what is the issue

#

help 😫

night oracle
#

Admin help me please

nova fjord
lone cobalt
#

Im having trouble finding a placeholder for what world the player is in

twin blaze
#

how to make N/A placeholders show as N/A on scoreboards or holographic displays

turbid tide
#

you can find it if you search a bit up

lone cobalt
turbid tide
#

no.

near scroll
#

Im guessing papi3 is still soon?

balmy marten
#

soonā„¢ļø

austere hawk
#

how do i make it show ranks on tab/scoreboard, example %player_rank%

#

with luck perms

austere hawk
#

and what about playercount?

coarse sable
untold perch
#

Do Dev Versions always say you are behind in updates?

turbid tide
#

of PAPI yes. You can just disable the check until the release if you want tho

#

it just checks with the release version and if its not the same it just thinks its behind

vestal fractal
#

Anyone know how to put a date on featherboard? M/d/y

#

^ please tag me if you know

turbid tide
turbid tide
#

can you do /papi parse me %server_time% and tell me what it says?

#

you said featherboard tho...

vestal fractal
turbid tide
#

why are you using %server_time% ?

vestal fractal
#

that is featherboard?

#

im ont

#

look

#
    frames:
    - '{placeholderapi_server_time}'```
turbid tide
#

have you downloaded the Server expansion by doing the commands I told you to?

vestal fractal
#

yes

#

after or before it?

turbid tide
#

oh

#

1 sec

#

try {placeholderapi_server_time_dd/MM/yyyy}

vestal fractal
#

Thank ya sir

#

@turbid tide do you have any easy ways to center it? xD

turbid tide
#

nope

#

spaces

vestal fractal
#

Okay i got it

molten zenith
#

I am looking for the velocity version of papi

harsh delta
#

hey guys

#

how do i make featherboard to read factionx placeholders?

austere hawk
#

uuhhh

#

so I did /papi ecloud download LevelPoints

#

it downloaded the extension

#

but theres no documentation for it on the github

stone siren
#

can I get a moderator here or

serene warren
#

I asked for your help and got banned

#

Useless

stone siren
#

no, dipshit, you got banned for spamming pings, and you'll likely get banned for the same thing here

serene warren
#

I haven’t spammed anything wtf

stone siren
serene warren
#

@stone siren

#

@stone siren

stone siren
#

@mint fable apologies for the ping but can I get a moderator to ban this guy

tender vaporBOT
#

@stone siren,

Hey!

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

serene warren
#
  • Don't take part or provoke arguments. Rule 8
#

@stone siren

#

Dumbass

#

@stone siren

#

Voice room 1

mint fable
#

@serene warren Please cut it out mate.

#

Spam pinging and harassing, please stop.

serene warren
#

@mint fable shut up dumbass

idle coral
#

Welp

mint fable
#

Welp, have a good day mate, hope you learn from your mistakes one day. šŸ‘

serene warren
#

Hope you get laid one day

faint hazel
#

good one

serene warren
#

From an adult

stone siren
#

cj are there not any staff around with ban permissions

faint hazel
#

shut up warhiet

stone siren
#

these people are harassing me across servers

serene warren
#

@stone siren who are you

faint hazel
#

Rule #7 no complaining

#

@stone siren

molten zenith
#

[PlaceholderAPI] expansion class LuckPermsExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use net/luckperms/api/LuckPerms

#

What does this mean? My luckperms is up todate aswell

limber ice
#

@molten zenith try updating your expansion for luckperm

molten zenith
#

Ok

austere hawk
#

how to hide /papi from regular players ? i can't do that even when i set placeholderapi to false in luckperms

turbid tide
#

you can use a command blocker if you really want like PluginHiderPlus and only allow OP or some custom permissions to use it

austere hawk
#

ok i'll try that, thank you for the answer šŸ™

honest spruce
#

anyone know the issue to this?

wet basinBOT
#

@limber ice Unknown expansion.

#

@limber ice Unknown expansion.

limber ice
#

@honest spruce not sure where you got your redis bungeee expansion,. it's not loading

honest spruce
#

But cheers for the info.

#

Wait one moment do you mean the expansion from the papi side?

#

If so i downloaded it from the ecloud itself

limber ice
#

I just looked at it on the ecloud, looks like it was never updated for the latest Papi

turbid tide
#

Pokekhan the problem is that you have 2 jars of the same expansion

#

go to plugins/PlaceholderAPI/expansions and delete one of the RedisBungee expansions

#

since you have multiple

limber ice
#

when I first read error message I was in hurry to get to work, sorry

honest spruce
#

I only have one version in there tho

limber ice
#

to have two they must have different file names

turbid tide
#

try restarting the server then

honest spruce
turbid tide
#

see if the error still shows up on server restart

honest spruce
#

Would that be something i would need to update on the server side? Or so that just due to redisbungee out of date?

turbid tide
#

oh here's the problem

#
[09:12:30] [Server thread/WARN]: [PlaceholderAPI] redisbungee is attempting to register placeholders via a PlaceholderHook class which is no longer supported!```
honest spruce
#

So that would need to be update by an dev of the plugin right?

#

or use an older version of papi?

turbid tide
#

well no. because the expansion is on the ecloud

#

idk if its in the version as well

#

you can use PAPI 2.10.6 but I really don't recommend going on old software

#

and the developer of the expansion is Clip. idk if he'll update it any time soon

turbid tide
honest spruce
turbid tide
#

yeah makes sense. you'll have to get someone to update the code or use an older version of PAPI

honest spruce
#

Yeah that fine. Cheers for the info

storm sorrel
#

I have problem, I have correctly installed vault but this time the expansion is installed well in the folder yet it does not work

#

Thank you, I'm not stupid, I did this except that the expansion is well in the backrest but does not work

shut lion
#

is there a placeholder for a timer countdown?

turbid tide
#

there's the server_countdown one if you want

shut lion
#

what what does it track?

#

like what is the timer based on?

turbid tide
#

you can set an end time

#

and it just counts down how much there's left until the end time

shut lion
#

end time of what

#

ooo i think i see

turbid tide
#

the one you've set

shut lion
#

is there a more specific timer?

#

this one seems to only track days and not seconds, hr ect

turbid tide
#

you can track those as well

shut lion
#

can you please give an example of the format

turbid tide
#

%server_countdown_dd.MM.yyyy HH:mm:ss_01.01.2020 22:32:40%

storm sorrel
#

I've had the same problem for 2 weeks: I have problem, I have correctly installed vault but this time the expansion is installed well in the folder yet it does not work

shut lion
#

ty

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
#

hmm and if you go in plugins/PlaceholderAPI/expansions there's a vault jar?

storm sorrel
#

Yes, there is the Vault expansion

turbid tide
#

if it doesn't load after that restart your server as well

storm sorrel
#

I put the expansion in the folder, I did / papi reload it didn't work, I restart my server, it still doesn't work

turbid tide
#

and can you do /papi list it still doesn't show there?

storm sorrel
#

No, he tells me that there is only the Player expansion active

turbid tide
#

wait you're running CraftBukkit?

#

why?

storm sorrel
#

I am under spigot

turbid tide
#

can you try and use paper?

#

also try downloading another expansion

#

see if that one registers

storm sorrel
#

Alright, I'll try with Paper

#

Tell me, since I'm running spigot 1.12.2 isn't this the version that would do this?

long crater
tender vaporBOT
#
šŸ“‹ Paste Converted!
https://paste.helpch.at/zinasaduco

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

silver minnow
#

and also an Economy plugin

long crater
#

most certainly do

#

and essentials

pulsar lake
#

%checkitem_inhand_enchanted% always returns "yes", even if the item is not enchanted

#

is this a bug?

#

if so, how do I fix this?

mint fable
#

modifiers are separated by , not _

#

inhand,enchanted

pulsar lake
#

so it would be %checkitem,inhand_enchanted% then?

mint fable
#

no

#

%checkitem_inhand,enchanted%

pulsar lake
#

OH, ok, thank you, that worked

sullen obsidian
#

hi

#

i have a bug

#

i cant put the /papi ecloud download Statistic

long crater
#

another issue

willow mirage
#

Hey Guys, Ive got a question. I found a plugin called MultiClan, and it supports Placeholders with PlaceholderAPI, but i don“t found any command to unlock it in PlaceholderAPI, im asking because they don“t work on my server. Is there a way to unlock them? Thanks for anwsering!
Here a link to the Plugin: https://www.spigotmc.org/resources/multiclan-2-0-lite.23927/
Thanks for Helping!

trim mist
#

If you do /papi list does the MultiClan expansion show up?

willow mirage
#

No it doesn“t

#

and /papi ecloud download MultiClan isn“t working too

trim mist
#

Yeah, just took a looksie. The author is using a deleted way to register placeholders. We removed that way over a year ago now I believe so you'd have to try and reach out to them and have them update it or downgrade your PAPI version but I highly advise against doing that.

willow mirage
#

Im sorry i“ve missunderstanded your anwser, i thought you advise me up against to asking the developer of the plugin! Thanks for helping!

lone cobalt
#

Is there a plugin or a way to send placeholder data across servers on a bungee, so for example have like survival servers select placeholders show the same stuff on hub

trim mist
#

There's an expansion (not maintained by us) but I think it does MySQL so if you stored some data in a database, you could pull it from all the servers.

lone cobalt
#

Could i get a name of it?

trim mist
#

I think it's literally just called "mysql"

lone cobalt
#

How would i put the information on the db tho

trim mist
#

I mean that's totally something different. You'd need something else to handle that. This just provides a way to pull from a database to display.

lone cobalt
#

Okay, you wouldnt have any idea how to do this without custom stuff would you :D

trim mist
#

Not that I'm aware of. There might be something out there, wouldn't hurt to do some searches.

thorn perch
#

Does anyone know why the Javascript expansion for PAPI doesn't work?

vivid sparrow
#

"doesn't work" tells us nothing

sharp jay
#

@mossy helm

#

use the bungee extension + math one

#

%math_{placeholder_1}+{placeholder_2}%

#

Now you can use JS to remove the .000

#

You gotta make it yourself šŸ™‚

#

actually

#

try this

#

%math_0:_{placeholder_1}+{placeholder_2}%

#

this might work

#

do you need the [] ?

#

Np

#

Anytime!

austere hawk
#

Why is nothing working with holographic dislpays?

mint fable
#

=pl holographicextension

tender vaporBOT
#

v1.10.9 by Niall7459
Animations and placeholders in Holographic Displays

Downloads:

86,508

Likes:

60

Reviews:

65

mint fable
#

probably because you don't have that this @austere hawk

mint fable
#

Okay can you explain your issue in more detail please

austere hawk
mint fable
#

do they work with /papi parse me %player_name%

austere hawk
#

Nope

mint fable
#

Did you download the expansion?

austere hawk
#

I don't think so

mint fable
#

run those commands and see what happens

austere hawk
#

It says successfully registered

#

But still not working

austere hawk
mint fable
#

not working in /papi parse either?

austere hawk
#

Oh no that works now

mint fable
#

did you reload holographic displays or anything? maybe restart server

austere hawk
#

Only player name seems to work

mint fable
#

what isn't?

austere hawk
#

Server name

mint fable
#

that's because that's part of the server expansion not the player expansion

austere hawk
#

Ahhh

mint fable
#

full list

austere hawk
#

I didn't know they came seperatly

#

ok

#

thanks

mint fable
#

šŸ‘

austere hawk
#

What one would I download to display the permissionsEX group?

mint fable
#

part of vault

proud spire
austere hawk
thorn perch
tender vaporBOT
#

@thorn perch,

Hey!

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

crystal mauve
#

Can someone help me witha code?

tender vaporBOT
#
šŸ“‹ Your paste, ItzWhitee
https://paste.helpch.at/lebujededi

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

crystal mauve
#

yea

turbid tide
#

what you trying to do?

crystal mauve
#

A placeholder

#

like

#

i put it in a gui

#

i want to say

turbid tide
#

if its 50+ players send last message, if its 2-49 send second and if its 1 send the first message?

crystal mauve
#

yes

#

like onlineplayers

turbid tide
#

yeah but what's not working you have to explain a bit. what help do you need

crystal mauve
#

The script is not working

#

i will send a pic

#

wait

#

i cant

#

f

turbid tide
#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

crystal mauve
turbid tide
#

check your console

crystal mauve
turbid tide
#

well first of all download the latest JS expansion by doing /papi ecloud download JavaScript then do /papi reload

#

also you can just use this code ```js
var playersonline = parseInt("%server_online%");

function returnplayersonline() {
if (playersonline == 1) {
return "&aThe server is 1% populated!";
}else if (playersonline == 10) {
reutrn "&aThe server is a bit populated!";
}else if (playersonline >= 50) {
return "&4THE SERVER IS VERY POPULATED!";
}
}
returnplayersonline();```

crystal mauve
turbid tide
#

ah

#

you typed reutrn instead of return

#

I've just noticed

crystal mauve
#

lmao

#

it works

thorn perch
#

I’m trying to use javascript expansion for the token enchant placeholder script to use with deluxemenus and for whatever reason when I do papi reload it can’t set the engine for the script and doesn’t load, does anyone know why?

trim mist
#

Do you have CMI?

#

Sorry, not CMI. ChatControl.

thorn perch
#

I do not

#

I even put placeholder api alone on a fresh server and it still just didn’t work

austere hawk
#

hi im getting this error randomly after restart

#

have not touched a thing

trim mist
#

Update

thorn perch
#

I guess there’s no solution for me ig

thorn perch
#

[02:58:30 WARN]: [PlaceholderAPI] [JavaScript Expansion] Failed to set ScriptEngine for javascript placeholder: tokenenchant_token

trim mist
#

Again, you're 3 years outdated.

#

Update.

silver minnow
#

3 years?!

thorn perch
#

If you're talking to me I have 2.10.9? Which is the latest?

thorn perch
silver minnow
#

oh lol

trim mist
#

Sorry been a long day

#

Are you using Java 15

#

@thorn perch

thorn perch
#

I’m using Java 11

trim mist
#

Hmm

#

I'm not at my normal setup till tomorrow night but that's really weird. Haven't had anything else have reports of that.

thorn perch
#

Okay just kidding I guess my localhost server is running Java 8 and not 11 but my hosted Java 11 server it works fine, I'm so sorry for bothering you guys

#

šŸ¤¦ā€ā™‚ļø

trim mist
#

o.o

thorn perch
#

Anyone know if there are any placeholders for vanilla enchants?

vivid sparrow
#

that does what?

crystal mauve
#

Can someone help me with a script? I want a javascript placeholder that shows the player how many players are on a group. Using LuckPerms

strange heart
#

Hi, if i use a placeholder why is the first word of the placeholder in lowercase when is write it in highercase?

austere hawk
#

hey im trying to make a npc with crafting store placeholders and didnt work , idk why please help

strange heart
#

I write: "%MINECORD_CHATTERS%"
placeholderapi did not replace it and Respond to me: "%minecord_CHATTERS%"

#

@silver minnow

lilac oxide
#

what is the expansion for rounding numbers?

#

like 10000 -> 10k

junior musk
#

Math

#

oh wait

#

nope

#

I think it's formatter

lone cobalt
#

How would i use an existing placeholder to basically see what it says and if it says a specific thing like test one it outputs &1test one

#

with javascript ofc

junior musk
#

you would have to use Javascript

#

ah

#

check if the placeholder returns a specific value with "%placeholder%" == "text"

lone cobalt
#

oh wait

#

So i wanted to do it for ranks for a shitty-eh plugin and i was gonna basically read what it says and then output it to tab with the right colors

#

but it would all be just the same for the viewer right

junior musk
#

well the output will change depending on the player for who the placeholder will be parsed

lone cobalt
#

So if i parse it to me

#

it gives my rank

#

If i parse it to someone else it gives me thier rank

#

So wait this could work

junior musk
#

yeah

lone cobalt
#

so how would i go around doing that

#

just and else if loop?

junior musk
#

wdym?

#

why loop?

#

just if else

thick sinew
#

Remind command to check placeholder, please

junior musk
#

/papi parse me %placeholder%

thick sinew
#

Thx

long crater
silver minnow
long crater
#

yes

silver minnow
#

and an economy plugin?

long crater
#

essentials & vault

#

does that mean anyhing?

#

Second time I've sent the issue and second time you asked those two questions but it's ended there

#

Anything further ?

pastel pelican
#

hello

#

i`m getting errors from placeholderapi

#

[22:25:26 WARN]: [NametagEdit] Loaded class me.clip.placeholderapi.PlaceholderAPI from PlaceholderAPI v2.10.9 which is not a depend, softdepend or loadbefore of this plugin.

#

[22:24:00 WARN]: [PlaceholderAPI] Loaded class com.bencodez.votingplugin.VotingPluginMain from VotingPlugin v6.0.4 which is not a depend, softdepend or loadbefore of this plugin.

#

[22:24:00 WARN]: [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend, softdepend or loadbefore of this plugin.

#

i really need some help fast

silver minnow
#

you can ignore them

pastel pelican
#

hmm alright

trim mist
#

Correct. As dkim said, these are just warnings, hence the "warn".

pastel pelican
#

its just that my server is getting random cpu peeks and the server wont stop normaly, when i stop it, it just stops at player referral plugin and nothing happens after that

#

not sure what to do

trim mist
#

Not entirely sure what that is but I can safely say that those warnings you posted above should have nothing to do with it.

pastel pelican
#

okay, thanks

long crater
#

Hey what about mine !!

trim mist
#

If you're not using the baltop palceholders, you can just go into the placeholderapi config and disable the task.

long crater
#

I'm using the vault placeholder api

#

So I guess I can

trim mist
#

Awesome

long crater
tender vaporBOT
#

@long crater,

Hey!

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

long crater
#

oh sorry, didn't know reply was no good 😭

trim mist
#

If you aren't using any of the top placeholders, you can turn it off.

long crater
#

so I guess I do need it on as I have a leaderboard which shows top players, but I am thinking maybe it's causing lag

#

what can I put it on to check less often?

#

is there an explanation of these pieces of data?

trim mist
#

It does cause lag, which is why I disabled it by default. It's marked for removal as it doesn't need to be in the vault expansion. Most people use Essentials economy so it'll be integrated into that once it's released.

long crater
#

currently do you know a decent way to get it?

#

the baltop that is?

trim mist
#

Not anything viable if your server is growing. The more players you've had on your server the more it will lag due to how poorly it was originally implemented.

long crater
#

understood, I will resort back to holographic placeholders

small snow
#

i did /papi ecloud download plotsquared

#

and i get this

#

[PlaceholderAPI] plotsquared is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

#

soooo what do i do

trim mist
#

Pretty sure PlotSquared v5 has their own integration not needed in the eCloud.

small snow
#

its plot v4

trim mist
#

Whelp you'd have to ask them to update their v4 then or else there's not much to do besides downgrading PlaceholderAPI which will probably cause more harm than good.

small snow
#

fucks sake

trim mist
#

Use OfflinePlayer.

grand zenith
#

would papi-js placeholders produce lag if i use them in chat?

balmy marten
#

Really comes down to what you're doing inside the js placeholder

inland drift
#

My factions placeholders don't work. I've tried reinstalling PAPI multiple times and reinstalling the factions expansion. The error I get is "factions is attempting to register placeholders via a PlaceholderHook class which is no longer supported!"

trim mist
#

What kind of factions?

vivid sparrow
#

Mcore is called factions iirc

trim mist
#

Is Mcore still on EzPlaceholderHook?

#

Would think more people would be complaining if that was the case.

inland drift
#

Yeah mcore factions

#

Yeah not sure. I'd also imagine lots of people use factions placeholders

#

but I've tried everything I can think of

trim mist
#

Well it won't actually register if it's not using the update API but we depreciated that months ago and I have no memory of anything else mentioning this issue.

inland drift
#

Anything I could try to fix it?

#

I installed Papi off the spigot page so it should be all up to date and everything I'd imagine

trim mist
#

If I get some extra time today I'll look at that expansion. I'll see if it's actually outdated or not.

inland drift
#

Thanks a ton. Yeah would be great if I could find a fix so I could use it on my scoreboard

#

Appreciate the assistance

tender vaporBOT
#

@grand zenith,

Hey!

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

grand zenith
#

these two

pine moon
#

is there a placeholderapi for bungee?

trim mist
#

Not currently, no.

flint nacelle
#

I have problems, js parse wrong numbers have to reload javascript two times for it to work.

1 should bee the number as in 2.

#

Get the problems some times when server has restart.

#

my script
logs for placeholders

#

it is javascript expansion i use.

nova crane
#

Hello. I have a problem with PlaceholderAPI. I made few menus using the Cooldown Javascript from Spigot and it seems that the cooldown isn't being stored in the javascript_data folder and after each restart, the cooldown is reset. Any idea how to fix this? I'm using the latest version of Papi on 1.16.5.

warm plover
#

Anyone know why %parseother_{leaderheads_name_vault_eco_balance_alltime_1}_{vault_prefix_color}% won't work? I try to parse it and it says an internal error occured

#

parsing %leaderheads_name_vault_eco_balance_alltime_1% shows 'ITookUrPotato'

#

and the vault prefix color should just be white or whatever

tender vaporBOT
#
HelpChat Paste

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

silver minnow
#

what is the console error?

warm plover
silver minnow
inland drift
#

Anyone have any idea how I can get MFactions placeholders to work?

warm plover
#

Yeah, it outputs ItookUrPotato

#

(which is a player)

silver minnow
#

Did you run /papi parse me %parseother_{leaderheads_name_vault_eco_balance_alltime_1}_{vault_prefix_color}%?

warm plover
#

Yeah

#

internal error

silver minnow
#

huhhhhh

mint fable
#

I don't think you can parse that stuff for offline players

#

if that's what you're trying

#

it's the same thing as getting perms for offline players

wicked kernel
#

For the checkitem expansion, is there a way to see if an item contains a string using hex colors?

mint fable
#

there is no regex matching atm

#

but it seems easy

#

Do you by chance know the raw format of hex colors?

#

like &a is §a i'm pretty sure

wicked kernel
#

Yeah did give that a go, no luck tho

#

Tried both & and § formats

mint fable
#

well you won't be able to find if it's hex

#

but idk what the format is

wicked kernel
#

Tried this &x&f&f&b&3&2&8Test way of doing hex

#

And the console format using §

#

But yeah no worries, I'll have to figure out another way

mint fable
#

well I can add regx matching probaby

#

but still dunno

wicked kernel
#

Yeah all good

austere hawk
#

How do i make an agree gui, im trying to use the %javascript_data_set,{player_uuid}.has_used,true% so when they click the item "Buy 1 Sword" they go to gui with "Are you sure you want to buy this" and with a"Go back" then if the buy it they cant buy that again.

elfin void
#

Hello! I have a problem related to the expansion of vault and essentials.
It turns out that when I download the vault variables the server starts throwing these kinds of errors. I talked to essentials and the only solution they give me is to delete the vault expansion, but it seems like a bit of a nefarious solution to me.
someone else have an idea how to replace the vault economic variable or find a solution? I leave my console image, thank you very much in advance!
https://i.gyazo.com/thumb/1200/9c27987aaba500908a64815c1833dbeb-png.jpg

trim mist
#

You can disable the baltip task in the PlaceholderAPI config under the vault section.

winged jasper
#

Is the an ecloud package which shows info like server OS, java version and stuff?

cinder zealot
#

hello, when i write the variable of voteparty my console write this : "[FeatherBoard] Error in placeholder: {voteparty_currentvotes}" i need the help please

austere hawk
#

we can make placeholderAPI's placeholders using Java or JavaScript ? (an expansion)

warm topaz
#

both

austere hawk
#

oh

#

how can we do it with js ?

warm topaz
#

u can create ur own expansion using java, or use javascript using the javascript-expansion

austere hawk
#

I c

#

ty

vocal imp
#

Hello!
Using the CheckItem expansion, are we able to use custom heads with 64ids in checkitem?

vocal imp
#

and if so can anyone show me an example

glad sedge
chilly ivy
#

hi guys im trying to use vault placeholder (for example : %vault_eco_top_balance_formatted_#%) but its just 0 or blank

scarlet valve
#

Me too i m here to ask ablut it

#

The place holder dont work

trim mist
#

For you other two, I'm pretty sure I disabled the baltop in the Vault expansion by default. You'll have to enable it in the PlaceholderAPI config and then reboot to enable it. It's probably failing to grab a real number and it is defaulting to 0.
CC: @scarlet valve @chilly ivy

Also, be ware that if you've had a lot of people on your server, that placeholder will lag a little. Waiting on EssX to release a new update that has the new economy API in it and then I'll be removing the baltop placeholders from vault and moving them over to EssX expansion.

scarlet valve
#

Ok ty

#

Gonna try that

#

@trim mist just enebled it

#

And reloaded the server

#

Nothing happened

trim mist
#

"reloaded". Did you fully reboot?

scarlet valve
#

A ok

#

1s

austere hawk
#

.

#

gettin this error

austere hawk
#

Can anyone help me fix TownyChats conflict with Deluxechat, its ruining my chat formatting

grand zenith
ember shell
#

Hi, if a placeholder returns an empty content can I print something else?
For example if I want to print the placeholder %something% but the value is empty can I print "No data"?
Something like an OR

turbid tide
#

you can if you use the js expansion

ember shell
#

js expansion?

turbid tide
ember shell
#

Thanks!

#

But how to get the value of another placeholder inside the script?

turbid tide
#

you just parse it into a value. Like this: var placeholder = "%something%"

#

or you can just use it directly in a string if you want

#

so for example if ("%something%" == "No data") ...

ember shell
#

Uh sounds really nice, thanks man!

austere hawk
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
#

the problem seems to be from the Vault expansion (Baltop placeholders)

plucky spruce
#

Can someone help me?

fervent spire
#

If you explain what you need help with first.

plucky spruce
#

i have deluxemenus and tokenenchant and when i put the variable in deluxemenus it wont show.

#

im getting this error

#
11.03 02:16:23 [Server] INFO ItzSyntrax issued server command: /bp
11.03 02:16:23 [Server] WARN Exception in thread "Craft Scheduler Thread - 20" 
11.03 02:16:23 [Server] WARN org.apache.commons.lang.UnhandledException: Plugin DeluxeMenus v1.13.3-Release generated an exception while executing task 2990
11.03 02:16:23 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
11.03 02:16:23 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
11.03 02:16:23 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
11.03 02:16:23 [Server] INFO at java.lang.Thread.run(Thread.java:748)
11.03 02:16:23 [Server] INFO Caused by: java.lang.NoSuchMethodError: com.vk2gpz.tokenenchant.TokenEnchant.getTokens(Lorg/bukkit/OfflinePlayer;)D
11.03 02:16:23 [Server] INFO at com.vk2gpz.papi.tokenenchant.TokenEnchantExpansion.onRequest(TokenEnchantExpansion.java:131)
11.03 02:16:23 [Server] INFO at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:156)
11.03 02:16:23 [Server] INFO at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:69)
#
11.03 02:16:23 [Server] INFO at com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate(JavascriptPlaceholder.java:91)
11.03 02:16:23 [Server] INFO at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.onRequest(JavascriptExpansion.java:169)
11.03 02:16:23 [Server] INFO at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:156)
11.03 02:16:23 [Server] INFO at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:69)
11.03 02:16:23 [Server] INFO at com.extendedclip.deluxemenus.menu.MenuHolder.setPlaceholders(MenuHolder.java:97)
11.03 02:16:23 [Server] INFO at com.extendedclip.deluxemenus.menu.MenuItem.getItemStack(MenuItem.java:591)
11.03 02:16:23 [Server] INFO at com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$1(Menu.java:262)
11.03 02:16:23 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71)
11.03 02:16:23 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
tender vaporBOT
#
Deluxemenus - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.4

Version:

v1.10.5
v1.13.3 - Latest
v1.13.3 - Latest
v1.13.3 - Latest
v1.13.3 - Latest
v1.13.3 - Latest

silver minnow
#

try v1.10.5

plucky spruce
#

allr gimme a sec

#

same error

rare lily
#

The problem is the TokenEnchant expansion

plucky spruce
#

i downloaded it with placeholderapi

rare lily
#

Do you have TokenEnchant plugin in your server?

plucky spruce
#

yes

#

but i changed the placeholder it was %javascript_tokenenchant_token%, changed it to %tokenenchant_tokens% and now its showing noting but opening the gui

#

with getting no errors.

austere hawk
#

Hey

#

Immm at deluxemenu i config headatabase but it wont work for some reason idk only appear alex's heads and steven's heads instead i downloaded headatabase plugins

#

Here is my config :
material: 'hdb-<12687>'
amount: 1
slot: 11
priority: 2
display_name: '&aĐảo Bay'
left_click_commands:
- '[player] is'
right_click_commands:
- '[player] is'

#

i tried remove ' and still didn't work

#

i tried everything but still only steven heads

near bear
#

Hello, i have this error with placehoolder api, why?

[03:45:31 ERROR]: [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.essentials.EssentialsExpansion

austere hawk
#

help

nova crane
#

Hello. I have a problem with PlaceholderAPI. I made few menus using the Cooldown Javascript from Spigot and it seems that the cooldown isn't being stored in the javascript_data folder and after each restart, the cooldown is reset. Any idea how to fix this? I'm using the latest version of Papi on 1.16.5.

stone fern
#

Does anyone know why server time placeholder isn’t returning anything but the rest of the placeholders for ā€œserverā€ work fine? Could it be that’s it’s a local host server?

flint nacelle
flint nacelle
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

sacred frigate
#

Does anyone know what the place holder is for chunk x and z according to where the player is standing? I’ve been looking for it but can’t seem to find it

turbid tide
#

oh I don't think there's one but you can make one with JavaScript if you want. I can even make it for you all you'll have to do is follow the instructions to make it work

sacred frigate
turbid tide
#
var player = BukkitPlayer
var location = player.getLocation()
if (location == null) return "Location Not Found!"
var chunk = location.getChunk()
var chunkX = chunk.getX()
var chunkZ = chunk.getZ()
function getChunkXZ() {
  if (args.length == 0) return chunkX.toString() + " " + chunkZ.toString()
  var axix = args[0].toUpperCase()
  if (axis == "X") return chunkX.toString()
  if (axis == "Z") return chunkZ.toString()
}
getChunkXZ()``` Well this is the code. Here's the wiki on how to download the JavaScript and then make a placeholder using it: <https://github.com/PlaceholderAPI/Javascript-Expansion/wiki>
lunar rapids
#

for some reason deluxe tags isnt working with papi when i do /papi list it isnt there do you know if this caused by me using paper or? im 1.16.5 latest version

turbid tide
#

what do you mean by not working? /papi parse me %deluxetags_tag% does not work either?

lunar rapids
#

it just says %deluxetags_tag%

sacred frigate
tender vaporBOT
#

@sacred frigate,

Hey!

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

#

@sacred frigate,

Hey!

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

sacred frigate
#

I edited sorry I pinged twice ^

turbid tide
#

you need to use %javascript_chunkxz%, %javascript_chunkxz_x% or %javascript_chunkxz_z% btw. Also can you do the following?: /papi parse me %javascript_chunkxz% and then check the console? you should get an error in console. paste it here

sacred frigate
#

I have this in my scoreboard - ' &eChunk XZ: &fX: %javascript_chunkxz_x% Z: %javascript_chunkxz_z%' but it still says Script error (check console)

turbid tide
#

try this code then: js var player = BukkitPlayer var location = player.getLocation() var chunk = location.getChunk() var chunkX = chunk.getX() var chunkZ = chunk.getZ() function getChunkXZ() { if (args.length == 0) return chunkX.toString() + " " + chunkZ.toString() var axix = args[0].toUpperCase() if (axis == "X") return chunkX.toString() if (axis == "Z") return chunkZ.toString() } getChunkXZ()

sacred frigate
#

it works tysm

lapis zephyr
#

Can someone tell me how i get players online from my bungeecord servers?

native crystal
#

Does anyone have a javascript placeholder that will count how many blocks a player breaks and then reset after the day (monday, tuesday, wednesday) is over?
I know statistics counts how many blocks a player breaks but it doesn't reset after the day is over.

#

I don't want to jump in to coding this if someone has already done it

spark thorn
#

When trying to include PlaceholderAPI as a dependency in pom.xml, I'm getting this error:
Dependency 'me.clip:placeholderapi:2.10.9' not found

#

I'm using Intellij and Maven

idle coral
#

Did you add the repository?

spark thorn
#
            <id>placeholderapi</id>
            <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
        </repository>``` is in repositories
#

is there any more steps I need to take?

#

I'm very new to Java development, this is the only bit I've been stuck on so far.

#

@idle coral

#

wait wtf

#

the error just disappeared right in front of my eyes

lapis zephyr
#

Does someone know how i get the place holder for bungeecord servers, i want a %players_online_server%

austere hawk
#

Hello

#

i'm want help

mint fable
#

?help

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

Source

austere hawk
#

PvPLevels don't work

#

/hd setline sb 1 &e#1 &7- %pvplevels_top_1_kills%

turbid tide
turbid tide
turbid tide
#

and what does it show if you put it in the hologram?

austere hawk
turbid tide
#

and I assume your using HolographicDisplay?

austere hawk
turbid tide
#

well if you didn't know already HolographicDisplay doesn't support PlaceholderAPI. If you want to use it then Download: HolographicExtension and ProtocolLib and then you can use placeholders in HolographicDisplay

austere hawk
desert bramble
#

how to install papi for bedwars1058?

wet basinBOT
#

@mint fable Unknown expansion.

mint fable
#

it's included

desert bramble
#

but its not working

mint fable
#

where are you testing it?

#

you can test it with /papi parse me %placeholder%

cosmic sage
#

Hi i need help with Chatreaction palceholder %chatreaction_top_player_<placement>%
What should i put in "placement"

warm topaz
#

the placement of the leaderboard

#

e.g top player will be 1

#

without the <> too

cosmic sage
#

Yeah somehow figured it out but thanks šŸ˜‰ šŸ˜„

steady flume
#

Is there anyway to put a placeholder inside another placeholder?

turbid tide
steady flume
#

ok, I'll try it

#

I don't think this works %server_online_{%player_world%}%, does it?

turbid tide
#

{player_world}

steady flume
#

ah

turbid tide
#

not {%player_world%}

steady flume
#

ok, tysm it works ā¤ļø

#

but, when i'm in the world, it shows 0

#

why this could happen?

turbid tide
#

probably doesn't actually parse the placeholder

#

it might just look for a world called {player_world}

#

instead of the world the player is in

#

if you want you can just make a JavaScript placeholder to see how many players are in the world

steady flume
#

yeah because, i put the world name, and it sends 1

austere hawk
#

What plugins provide players with prefixes and suffixes?

turbid tide
#

LuckPerms is an example

stone fern
#

This will be a long shot but is the person who made me a formatted placeholder for exp still here?

lunar rapids
#

for some reason deluxe tags isnt working with papi when i do /papi list it isnt there do you know if this caused by me using paper or? im 1.16.5 latest version

#

/papi parse me %deluxetags_tag%

#

that just outputs %deluxetags_tag%

#

im on latest deluxe tags and latest papi version

turbid tide
stone fern
tender vaporBOT
#

@stone fern,

Hey!

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

turbid tide
lapis zephyr
undone edge
#

Is it possible (and if, how) to use async features of javascript in the JavaScript extension?
And will I run into any other issues when I will be using JS-fetch() inside there?

restive dawn
#

Is it normal for custom Javascripts to get mixed up and output incorrect placeholders? Like the script tells it to output %townyadvanced_town_residents_amount% but the placeholder outputs %townyadvanced_town% instead (which is in another .js file)? Fixes after a few /jsexpansion reload but is broken on server restart. Kinda seems like the scripts are a bit inefficient and incoherent

#

Just for more context^

var balance = "%townyadvanced_town_balance%";

function towny() {
  if (town === 'false') {
    return "N/A";
  } else {
    return balance;
  }
}
towny();```
Is outputting `%townyadvanced_town_balance%.00` instead of simply $0.00
#

And ```var town = "%townyadvanced_has_town%";
var residents = "%townyadvanced_town_residents_amount%";

function towny() {
if (town === 'false') {
return "No Town";
} else {
return residents;
}
}
towny();```
Is outputting %townyadvanced_town%(the town name not the raw placeholder) instead lol (both sep. files)

modern lynx
#

What is this? It happens when I download MySQL expansion: https://srcb.in/LslTEkgkSH
I tried "/papi reload", and it gave that error and didn't reload

turbid tide
#

yeah the MySQL expansion at least the one from the ecloud is broken

#

try downloading an older version of it

modern lynx
#

Where can I find the version history?

turbid tide
#

on the ecloud

junior musk
#

but the older version doesn't seem to work on newer PAPI versions

frozen copper
#

hi

#

how do i get the ammout of people on one server as a placeholder?

#

so i can put it on an npc

#

^^^ with Bungee

warm topaz
#

%bungee_<servername>%

#

as for the npc part, make sure whatever plugin ur using to handle NPCs supports placeholderapi

frozen copper
#

okii

modern lynx
#

Thanks

#

...

#

Does MySQL expansion maintained by PAPI's developers?

warm topaz
#

its maintained by superronancraft

modern lynx
#

Oh, I didn't see that

#

OK, thanks

#

I wish he fixes that error

turbid tide
#

are you using version 1.31? Latest I mean. because the expansion seems to have been updated a month ago

turbid tide
modern lynx
#

yes, I'm using the latest

turbid tide
#

also I think there should be a config file or even a folder that's going to be generated

modern lynx
#

I just downloaded it

turbid tide
#

see if they are

modern lynx
#

yes, it's generating a config file

turbid tide
#

and its empty?

modern lynx
#

no

#

there is a config file

#

but still papi cannot be reloaded

turbid tide
#

oh have you set it up?

#

idk what's in it but try setting it up and then restarting

#

not reloading

modern lynx
#

hmm

#

it has templates of that mysql servers

#

and something else which is I couldn't remember now

true coyote
#

blitz can you help me with something?

#

i have problem with placeholder %vault_eco_balance_commas%

#

when i have 100mil in scoreboard showing me 100nbsp000nbsp000

turbid tide
#

ugh where are you using it?

#

/papi parse me %vault_eco_balance_commas% ?

true coyote
#

no

turbid tide
#

can you try it like that?

true coyote
#

sorry for my English

turbid tide
#

see if it works there

true coyote
#

scoreboard still showing me 100nbsp000nbsp000

turbid tide
#

but what about /papi parse me %vault_eco_balance_commas% ? does it show 100,000,000?

true coyote
#

no

#

do you want to send screenshot to dm?

restive dawn
turbid tide
#

your scoreboard breaks it for some reason

restive dawn
#

I'm not so sure. /papi parse outputs the same

turbid tide
#

was talking to Danda btw.

true coyote
#

but same problems i have with deluxe menus, auction house, ...

restive dawn
#

Oh lol my bad

#

Will run dump now

turbid tide
true coyote
#

blitz you have screenshot in dm

restive dawn
finite crater
#

Can I get some help?

#

I cant post images in this crap

tender vaporBOT
#

@finite crater,

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.

finite crater
#

this is stupid

wind ridge
#

So Im making a plugin and I wonder what is the placeholder that works with vault ranks (so luckperms and so on), AND shows the color of the rank

#

%luckperms_rank% or whatever doesn;t intrest me because it's only for luckperms

turbid tide
turbid tide
austere hawk
#

Is there a way to parse placeholder over bungeecord? So I can for example show stats from survival games on hub as well

#

Like a bungee PAPI addon

turbid tide
#

there isn't any official one. there's a PAPI-Bungee Java API if you want to do it yourself I guess.

austere hawk
#

Can u link it?
And wdym by myself

turbid tide
#

well with Java

#

its an API not a plugin

wind ridge
turbid tide
#

it should yeah

#

@restive dawn now tell me which one of those are the 2 that are broken?

restive dawn
#

townBalance, townClaims and townResidents. Basically on a server restart they output the towny name when they're supposed to output different placeholders like # of residents or the town's balance etc.

#

Didn't specify the number of broken ones earlier, just gave an example of an issue mb

#

Want me to shoot you the file contents?

turbid tide
#

well I'm very confused because for example this one: #placeholder-api message has nothing to do with the town name so why would it output it?

#

how are you parsing them? /papi parse me %javascript_...% what do you put there?

restive dawn
#

Exactly my confusion. It makes no sense that they output that and then output the correct value after I run /jsexpansion reload a few times. Parsing them like %javascript_townycustom_town_residents_amount% for example as seen in the javascript_placeholders.yml

turbid tide
#

ok lets take this one as an example and go thru it to see if we can spot anything. can you paste just the code from your townResidents.js file?

restive dawn
#

Sure 2 secs

#
var residents = "%townyadvanced_town_residents_amount%";

function towny() {
  if (town === 'false') {
    return "No Town";
  } else {
    return residents;
  }
}
towny();```
turbid tide
#

and what does it return when its broken?

#

the town name?

restive dawn
#

I did initially think it was the function name being the same, alas changing it had the same issue

#

Town name yeah

#

Until I run /jsexpansion reload like 4-5 times

#

Then it outputs the correct value, but if I run the reload command again it breaks

#

It's like it's being told to output two values in the same placeholder

turbid tide
#

this is very strange. I've never actually seen this before

restive dawn
#

Yeah it baffled me when I first encountered the issue. I sat there for a while re-writing the scripts in-case I'd accidentally duplicated something but the files are individual and all under different placeholders

turbid tide
#

this is a desperate call but could you maybe try the latest dev build of PlaceholderAPI instead of the release?

#

?papi-builds

tender vaporBOT
turbid tide
#

you can get it from this link ^

restive dawn
#

Yeah will give it a go now. Will get back to you

turbid tide
#

I know ChatControlPro was breaking the JavaScript expansion but I see you don't have it. It might still be another plugin but IDK which or how

restive dawn
#

I highly doubt it but it wouldn't be related to Towny's own chat plugin?

#

Could be worth just trying to remove it as another desperate call lol

turbid tide
#

I don't think so

#

well if you remove it

#

the placeholders won't work

restive dawn
#

šŸ¤¦ā€ā™‚ļø you're right lmao

turbid tide
#

well I guess a way to test if it is another plugin or not is to remove all plugins and leave only PlaceholderAPI and Towny and TownyChat

restive dawn
#

Didn't work as you can see in screenshot lol

turbid tide
#

also maybe update the javascript a bit? like use this one for example: ```js
var t = "%townyadvanced_has_town%";
var r = "%townyadvanced_town_residents_amount%";

function someRandomFunctionName() {
if (t == "false") {
return "No Town";
}
return r;
}
someRandomFunctionName();```

restive dawn
#

Updated it to that and ran reload but still is outputting town name lol

#

So might just have to do a process of elimination

turbid tide
#

process of elimination on what? Right now my brain is just failing to find any other reasons for why this might happen

restive dawn
#

Of other plugins lol

turbid tide
#

ah

#

I guess

#

you can just remove them all first

#

see if it works then

#

if it works then its clearly a plugin

restive dawn
#

Yeah, at least we can narrow it down then

#

Right will do that now and let you know

#

So it now seems that on a server restart it's outputting the correct value, but /jsexpansion reload will still break it but only requiring another reload until it fixes

#

So I'm unsure if that entirely resolved the issue, but it certainly seems to have negated it

#

Unless reloading it inherently does mix it up bc reloading isn't really a native or safe thing lol

turbid tide
#

hmm what about /papi reload does that still break it?

restive dawn
#

Yep it was 1 and then /papi reload now outputs "Test" being the town name

#

Yeah just reloaded papi about 5 more times and it's not fixing, sitting on the town name

#

So at this point I doubt it's another plugin because one isn't present to break it lol

turbid tide
#

can you parse /papi parse me %townyadvanced_town_residents_amount% ?

restive dawn
#

Yeah just ran %townyadvanced_town_residents_amount% and it outputs 1 but my custom %javascript_townycustom_town_residents_amount% is outputting "Test"

#

So it must be the script somehow?

#

So ran them both with no reload inbetween and they're dif values

#

Very very confused lol

hidden python
#

Is there a way to add a refresh timer to javascript placeholders that are in a Hologram?

chrome cliff
#

Is this a known issue as it still works fine or am i being stuipd

hidden python
tender vaporBOT
#
šŸ“‹ Your paste, JackGNUK
https://paste.helpch.at/avaquvosup

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

#
šŸ“‹ Your paste, JackGNUK
https://paste.helpch.at/ragolugahe

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

chrome cliff
#

oh

#

There if that helps sorry!

turbid tide
hidden python
#

Using Holographic Displays with the extension

turbid tide
hidden python
#

Ah awesome, ill give that a try

turbid tide
# chrome cliff There if that helps sorry!

go to plugins/placeholderapi/expansions and there will probably be 2 ore more Bungee Expansions. delete them and redownload it using /papi ecloud download Bungee then /papi reload

hidden python
turbid tide
#

oh nice

turbid tide
restive dawn
#

Though I don't see how that'd break it

restive geode
#

I'm having an error with papi > [00:49:40 ERROR]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] expansion class MCoreFactionsExpansion is outdated: Failed to load due to a [NoClassDefFoundError], attempted to use com/massivecraft/factions/RelationParticipator

#

I tried installing the expansion wwith the command and then installed it manually but neither fixed error go away.

silver minnow
#

try contacting the MassiveCraftFactions (guess of plugin name btw based off of the error) developer

#

and show him the error

restive geode
#

I have no idea what the plugin is named

#

i just know i need that expansion for its placeholders

restive geode
#

I found a work around to not needing it. And i wouldn't use anything that's uploaded straight to discord anyways. But thanks for trying to help.

warm topaz
#

lol?

#

sorry man, was gonna give u a virus

#

🌚

turbid tide
#

Steep I trust Kaliber if that makes any difference and I checked the code as well

#

you don't have to use it if you don't want just letting you know

restive geode
#

Nah man just for security i like to know what i'm downloading and where it comes from.

#

Nothing personal

turbid tide
#

well that comes from the github of the original expansion just fixed

restive geode
#

Well i cant confirm that though xD

turbid tide
#

but just as well you could be downloading something bad from github or even spigot

restive geode
#

On spigot it would get banned if it was malicious?

turbid tide
#

well yeah at some point but not always instantly.

#

or it might not be malicious with knowledge. Like HolographicDisplay was few years ago

restive geode
#

Of course but then you could say everything can be a virus

#

Just some things have a higher chance to be one.

turbid tide
#

my point is just that this community is based a lot on trust and there are a lot of good and thrustworthy developers here like Kaliber

restive dawn
#

Blitz wanna be even more confused šŸ˜‚

turbid tide
#

oh god

#

do I need to sit down? xD

restive dawn
#

Commenting townycustom_town: file: townName.js out of javascript_placeholders prevents townBalance and townClaims from working entirely, and fixed townResidents lmao

#

This genuinley is the most baffling thing

turbid tide
#

hmmm. It might be that it just reads the wrong file every time? hmm

restive dawn
#

Possibly, I could try and change up the file names and placeholders to be really different

turbid tide
#

are you able to run a test server on your pc? or maybe have some other host to run a test server? and just copy the PlaceholderAPI, towny and towny chat jars and folders and see if they work on another server

#

also yeah changing files entirely might work. could you also send a startup log?

#

or /jsexpansion reload and check the console

restive dawn
#

Can probably spin one up and test

turbid tide
#

see if it gives you any errors

restive dawn
#

Yeah 2 seconds

#

Only seems to be complaining about the type

turbid tide
#

what's your server java version?

#

do you know that or nah?

restive dawn
#

You're not meaning like MC version?

turbid tide
#

no

#

java

restive dawn
#

Ah no I wouldn't know then

turbid tide
#

do you have a dedicated server or just a normal host?

restive dawn
#

Dedicated server

#

Oh I'm an idiot hang on

#

I do know

turbid tide
#

you can check that then

#

yeah

restive dawn
#

11

turbid tide
#

yeah its not that either then. but that'd give a big error anyways. java 15 is not yet supported

restive dawn
#

Yeah I'm stumped. Been testing for a few hours and there's just no consistency to the issues. But I'm gunna try changing up the placeholder and file names

turbid tide
#

that and a test server if you can

#

man I really wish its just a problem with the system and not a small thing we've both missed and you've wasted so much time. those usually hurt when you find them out

restive dawn
#

So you can rest assured that it's something on my end. One of two things fixed it. First I renamed the placeholders and file names to not include the word towny anywhere, so for example name_of_town or name_of_nation was sufficient, after doing this it seemed like trying to output %townyadvanced_town_balance% was a no bueno as it was breaking the claims value underneath, removing the balance script along with renaming them seems to have fixed the issue

#

Can't believe renaming them didn't come to me sooner lmao

#

Seriously appreciate the patience and help throughout tonight Blitz, thank you

restive geode
#

That error appears every time a plugin disables.

#

So every time i restart or shutdown the server it basically gets spammed in console.

turbid tide
#

it seems like the FactionTop expansion does not have an author set. you'd either have to update it yourself (if it is open source) or ask the developer to update it/ fix it. should be an easy fix

trim goblet
#

how can I check to see how many players are in a given world

#

like what would the placeholder for that be?

wind ridge
tender vaporBOT
#

@wind ridge,

Hey!

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

wind ridge
#

no color

tall hemlock
#

hi can somebody help me with javascript? i need to calc together 2 placeholders but the placeholder says NaN

#

`var numbers = [2,5];

function placeholder(total, num){

return total + num;
}
placeholder();`

junior musk
#

you specified 2 arguments that you are using in the function

#

but you didn't provide them when you called the function

tall hemlock
#

and how do i call them? im new in js

tall hemlock
#

oh i done it doing this
`var numbers = (2 + 5);

function placeholder(){

return numbers;
}
placeholder();`

#

but this dont work becouse if i do var numbers = ("%bungee_total%" + "5"); is returns 15

#

can somebody help me please?

abstract flare
#

Im using Bedwars1058 how do i link it with papi? Im trying to use bw1058 variables on Holographicdisplays but it just shows as a "%bw1058_player_level%"

hasty chasm
#

can we use placeholder inside placeholder? how

warm topaz
#

depends on the placeholder

hasty chasm
#

so i am putting minecraft nickname as discord username. it doesn't work if they have special character in their username. wanted to try replace but didn't get the idea if we can or how

turbid tide
#

you'll have to try it and see if it works if not then the expansion probably doesn't support it.

turbid tide
turbid tide
hasty chasm
#

how does papi and js work

turbid tide
warm topaz
#

u can create script with js and use it in papi

turbid tide
#

Rix ^. You can create code using JavaScript and then display the result with a placeholder basically

hasty chasm
#

any guide i can refer to?

#

ah great, thanks

turbid tide
#

send a screenshot maybe

#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

tender vaporBOT
#

@wind ridge,

Hey!

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

abstract flare
tender vaporBOT
#

@abstract flare,

Hey!

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

abstract flare
#

:/

turbid tide
#

no problem

trim goblet
#

the node just comes back blank, whenever i do /papi parse %server_online_world%, it just comes back with %server_online_world% not a player count

turbid tide
#

/papi ecloud download server then /papi reload

trim goblet
#

it worked thx!

turbid tide
#

no prob

austere hawk
#

Hello, where I can download the latest build version pls?

turbid tide
#

?papi-builds

tender vaporBOT
turbid tide
#

here ^

austere hawk
#

ty

cosmic sage
#

Hi i need help with papi Statistics. I want a player to see how much days they have played. I know how to do the player with most time played ( /hd addline timeplayed %ajleaderboards_board_statistic_time_played:days_1_value% )

turbid tide
cosmic sage
#

Ok thanks

velvet verge
#

what do I have to download off of ecloud to make this work? %ajpk_stats_top_name_1%

austere hawk
#

Hey guys, I'm using PAPI with TAB on bungeecord. Specifically the %server_tps% placeholder. When used, it returns 3 values. We have three servers on our bungee network. Is this a coincidence? If it's not is there anyway to get it to return just the current server TPS or separate them some how?

austere hawk
#

day 4 of asking for help šŸ—æ

turbid tide
#

Oh NVM the \ at the end breaks it

#

When does this error show up?

mild barn
#

%player_x%, y, z, Doesn't seem to give me the exact decimals for coordinates, is there a way to get a more precise number???

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.

vivid sparrow
#

@austere hawk

tall hemlock
tender vaporBOT
#

@tall hemlock,

Hey!

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

vivid sparrow
#

players.toFixed(0);

tall hemlock
#

thanks

tall hemlock
#

hi my script sometimes returns variable and i dont know why

`var count = "%bungee_total%";

function text() {

if (count == 0) {
return "hrĆ”ÄÅÆ";
}
if (count == 1) {
return "hrĆ”Ä";
}
if (count == 2) {
return "hrĆ”Äi";
}
if (count == 3) {
return "hrĆ”Äi";
}
if (count == 4) {
return "hrĆ”Äi";
}
else {
return "hrĆ”ÄÅÆ";
}
}
text();`

if %bungee_total% returns 1 then the placeholder returns 1 but it have to return the things that are in the list, i have to manually reload it to make it function, where can be problem?

#

if i reload it 1 time still wrong, 2 times its correct, 3 times again it dont work :/ its weird

austere hawk
tender vaporBOT
#

@austere hawk,

Hey!

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

austere hawk
#

Would anyone be willing to just briefly explain the differences between these for me?

%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%```
Thank you.
junior musk
#

tps_1, TPS from the last minute
_5, TPS from the last 5 minutes
_10, from the last 10 minutes
_colored, same thing but with colors depending on the tps's value

austere hawk
turbid tide
tall hemlock
subtle cove
#
    view_requirement:
      requirements:
        IslandRankCheck:
          type: string equals
          input: '%superior_player_role%'
          output: 'Admin' 

Is it possible to check for Admin or Leader ?

#

Instead of just Admin

#

Assuming that using this is fine
output: 'Admin'
output: 'Leader'

silver minnow
#

idk what will, but I know for sure that won't

#

since in YAML you can't have duplicate keys

subtle cove
#

Looks like it's working

#

Hm

silver minnow
#

do other roles work too?

subtle cove
#

Leader is working

#

Testing admin now

#

Ah admin isn't working

#

rip

#

Wanting to reduce the amount of lines that I use in the menu

#

I could create another item with a lower priority that checks for admin

velvet verge
#

what do I have to download off of ecloud to make this work? %ajpk_stats_top_name_1%

velvet verge
#

aj parkour

turbid tide
#

doesn't look like there's any expansion for it. you just need PlaceholderAPI and AJParkour installed

#

no expansion

velvet verge
#

look

#

ima dm u a pic of my hologram if u give me concent

turbid tide
#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

turbid tide
#

also what hologram plugin do you use?

velvet verge
#

hold on

turbid tide
#

what hologram plugin do you use?

subtle cove
#

Yes

velvet verge
subtle cove
#

@austere hawk

turbid tide
velvet verge
#

k

turbid tide
#

I'd really just recommend using the plugin MasterCooldowns instead. IDK why but javascript data is very unreliable. I think the next update for javascript will fix it but not sure.

hexed creek
#

wtf

#

how to put screenshot?

junior musk
#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

hexed creek
#

It requires registration