#placeholder-api

1 messages ยท Page 141 of 1

silver minnow
#

ohhh

turbid tide
#

no Lek don't reinstall

#

it should work after

frosty cosmos
#

Gotcha, will update u if anything happens

#

I reinstalled PAPI and did /papi ecloud download mysql again

#

The issue is with mysql

turbid tide
#

ugh wasn't it that %player_name% isn't working?

frosty cosmos
#

I sent you an ss of the chat via dm

frosty cosmos
turbid tide
#

oh so it breaks

#

when you have MySql

#

weird.

#

do you need that expansion?

frosty cosmos
#

Yeah, for bedwars leaderboards

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
#

send the startup log please ^

#

?paste

tender vaporBOT
#
FAQ Answer:

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

turbid tide
#

the full one I mean. not just a part. thanks

frosty cosmos
turbid tide
#

oh looks like a nasty error from the expansion. will check to see if I understand anything

frosty cosmos
#

Alright, btw

[23:10:05] [Server thread/INFO]: [DeluxeMenus] Enabling DeluxeMenus v1.13.3-Release
[23:10:05] [Server thread/INFO]: [DeluxeMenus] Hooked into PlaceholderAPI!
[23:10:05] [Server thread/WARN]: [DeluxeMenus] Player head for item: 1 in menu: example is not the valid format!
[23:10:05] [Server thread/WARN]: [DeluxeMenus] Valid format: head-<playername/%player_name%>

looks weird

turbid tide
#

ugh

#

you've probably used head;%player_name% ?

#

instead of head-

#

head-%player_name% I mean

frosty cosmos
#

Let me check

turbid tide
#

the problem is that it breaks the entire expansions loader and that's why others break as well

#

hmm it seems to not find the register expansion I think

#

wait why is the ecloud expansion so outdated.

#

its over a year old but the github is more updated

frosty cosmos
#

Hmm this is weird

turbid tide
frosty cosmos
turbid tide
#

huh?

#

go in the menu example

#

in the item called 1

#

and see what the material is

#

for that

frosty cosmos
#

Where can I access that menu

turbid tide
#

plugins/DeluxeMenus/gui_menus

#

in that folder

#

should be a examples.yml or something

frosty cosmos
#

Give me a sec

#

It's empty

turbid tide
#

ugh

#

then plugins/DeluxeMenus.config.yml maybe?

frosty cosmos
turbid tide
#

yep`

#

material: head;%player_name%

#

as I said

#

change ; to -

#

you're using an old config or something

#

because this is not a thing in the newest config.yml

#

reset your config.yml if you're not using it

#

like if the menu inside

frosty cosmos
#

Gotcha, give me a sec

turbid tide
#

is not yours

frosty cosmos
#

Changes made, do i /reload or restart the server?

frosty cosmos
turbid tide
#

never /reload

#

just /dm reload

#

or restart the server

#

but never do /reload or use plugman

#

it will break stuff

frosty cosmos
#

Noted, thanks for that

turbid tide
#

that's just a free tip xD

frosty cosmos
#

DM has been reloaded, %player_name% is still there

turbid tide
#

well

#

you see

#

I'll send you

#

a mysql expansion

#

jar

#

in a bit

#

that error had nothing to do with the PAPI problem

#

its just the MySql expansion that's broken

frosty cosmos
#

ahhhhhh

turbid tide
#

and breaks most others expansions after

#

because it breaks the expansion loader

frosty cosmos
#

I gotcha, papi is stayign strong

frosty cosmos
turbid tide
#

yeah I'm compiling it

#

but my laptop is pretty old now and its taking a while

#

to open IIJ

#

xD

frosty cosmos
#

Alright, I'll wait

with 120 other players

#

thanks for this journey, its my first time asking for help w stuff like this

#

Is it okay to just remove the sql extension from the extensions folder and /papi reload?

silver minnow
#

told you some expansions break others fingerguns

turbid tide
#

well dkim not dirrectly

#

it just breaks the loader

frosty cosmos
#

domino effect intensifies

turbid tide
#

and all others that need to load after

#

just can't

silver minnow
#

sAmE tHiNg

turbid tide
#

no

#

because they're not broken

#

they just can't load

silver minnow
#

well thats what i meant

#

thats why I said to remove the others

turbid tide
#

its a difference inbetween being disabled and not being able to do something

frosty cosmos
#

so papi isnt broken, just the extension?

turbid tide
#

yyeah

#

the MySql expansion

#

is the one that breaks everything

frosty cosmos
#

bad mysql

turbid tide
#

and I'm trying to see if I can get a more updated one

silver minnow
#

I said to remove the other expansions because another expansion might have broken something

turbid tide
#

and send you that one

frosty cosmos
turbid tide
#

[INFO] BUILD FAILURE Fuck

silver minnow
silver minnow
frosty cosmos
turbid tide
#

oh it can't find the spigot 1.8.8

#

what

#

?docs

tender vaporBOT
turbid tide
#

is your server 1.8.8 @frosty cosmos ?

#

just yes or no please xD

#

like the jar is 1.8.8 or 1.8.x

#

?

#

wait I have a log above. lmao

frosty cosmos
#

No

turbid tide
#

ok good

#

will just remove

#

it then

frosty cosmos
#

Had to ask the owner haha, slr

#

for a sure answer.

#

It's 1.8-1.16.4 compatible tho

turbid tide
#

that doesn't matter. jar version is what matters

frosty cosmos
#

Ok thanks

turbid tide
#

BUILD FAILURE Fucking hell.

frosty cosmos
#

me and other 100+ players are cheering for u

turbid tide
#

xD

#

oh wait

frosty cosmos
#

Yes?

turbid tide
#

well it was just me not knowing the correct build command.

frosty cosmos
turbid tide
#

I mean its not rly my fault that the expansion isn't working. I'm just trying to help out here

frosty cosmos
#

Learned a lot tbh

turbid tide
#

ok so @frosty cosmos go into plugins/PlaceholderAPI/expansions and delete the already existing mysql jar file and put the one I DMd you

#

and do /papi reload or restart the server if that doesn't work

frosty cosmos
#

Ok gotcha

turbid tide
#

if the expansion is updated it should work

frosty cosmos
#

Also gonna delete the MySQL folder?

#

that's in /expansions

turbid tide
#

you could I guess if you don't have important stuff there

#

no idea what's saved in there

frosty cosmos
#

Ok yeah just gonna delete it

turbid tide
#

well now we'll wait and hope it works xD

frosty cosmos
#

PAPI is not reloading for some reason

sent you the log

#

Restarting server rn

tender vaporBOT
#
HelpChat Paste

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

frosty cosmos
#

Still same problem

turbid tide
frosty cosmos
#

empty mysql file

turbid tide
#

hmm I'm lost at this point really. All I can do is suggest you remove it for now and contact the expansion developer see if he can help you.

#

oh so @frosty cosmos turns out there should be a config.yml for that expansion

#

but for some reason it doesn't generate for you

#

I'll try and see if I can get it to generate for me

frosty cosmos
#

Ok so

#

I downloaded an older papi version

#

10.6 to be exact

#

It worked

#

lol

turbid tide
#

ugh with the same expansion version?

#

did it generate the config file?

frosty cosmos
#

Yeah it did, I did /papi ecloud download mysql

#

and papi reload

#

No error so far

turbid tide
#

oh

mint fable
#

he didn't mean to put reload

#

@turbid tide

turbid tide
#

oh

mint fable
#

look at the method

#

it reloads it

turbid tide
#

oh wait there is a load

#

method

#

I didn't see it

mint fable
#

click on it

#

on github

turbid tide
#

which ...

#

reloads

#

if its null

mint fable
#

the config isn't null

#

can you send the config

#

It looks like Query is null

#

or, in the expansion I decompiled, it's Settings

turbid tide
#

I mean it generated and works with PAPI 2.10.6

#

so idk

mint fable
#

maybe getting the config is different in newer versions?

turbid tide
#

maybe

#

well the thing is it didn't generate the config before

#

or it generated an empty file I think

#

so of course it was null

mint fable
#

ic

turbid tide
#

damn I'm dumb

cyan meadow
#

what version of papi to use for 1.8?

junior musk
#

the latest

tender vaporBOT
#
Placeholderapi - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.4

Version:

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

ruby tiger
#

is there any way to generate a random number using papi?

turbid tide
#

use this expansion ^

ruby tiger
#

ty

austere hawk
#

has the issue with the playtime been fixed?

turbid tide
#

oh wait the one where the hours go above 24 I remember. no

austere hawk
#

yeah

turbid tide
#

not from what I know unfortunately

austere hawk
#

sad

#

alright ty

mint fable
#

could make a custom placeholder for it in js

turbid tide
#

I guess. use the seconds played to format it

#

wait there are like 3 new builds

#

from yesterday

#

oh nvm no updates about this by the looks of it

random geyser
#

yo, is there any expansion for PAPI to get current and max HP of last damaged entity?

warm topaz
#

if u have a combat logging plugin, which supports papi, then possibly

random geyser
#

i do not

#

any recommendations?

turbid tide
#

nope. I don't know any popular ones and not even unpopular ones.

silver minnow
turbid tide
#

you have to wait

#

its being worked on but the person that takes care of the expansion is kinda bussy and is adding a few other things not just new engine

placid flint
#

So do I need this for a 1.16.4 server?

balmy marten
#

As in do you need placeholder api?

placid flint
#

Mhm

balmy marten
#

Well that depends if you have any plugins that require it

placid flint
#

I have vault, and vaultchatformatting but neither of them are working the way I hoped, so I'm trying to use this

balmy marten
#

placeholder api isn't a chat format plugin if that's what you're implying

placid flint
#

But do I need it for deluxechat 1.16 to work?

balmy marten
#

Ah, yes

placid flint
#

Alright, but how do I customize how deluxechat looks?'

#

Like how the chat stuff looks?

balmy marten
placid flint
#

Do I need to purchase it for it to work?

silver minnow
#

ummm yes?

#

that's like asking do I need to purchase minecraft in order for it to work

placid flint
#

Ah

#

Well It wasn't clear

silver minnow
#

๐Ÿค”

balmy marten
#

You'll need to purchase it to download it.

silver minnow
placid flint
#

Uh, no I don't?

#

I already installed it

silver minnow
#

umm

#

how

#

what website?

#

@placid flint

placid flint
#

Uh

#

Oh

silver minnow
#

?

placid flint
#

Wtf

#

Nevermind I didn't

silver minnow
#

uhhhhh

#

huh?

#

You're confusing me

#

a lot

#

like, a lot lot

placid flint
#

I thought I did but I just checked the plugins page

#

It ain't there

silver minnow
#

but you have it installed...?

placid flint
#

No?

silver minnow
#

ahsiduhsaiudhsaid im so confused

silver minnow
balmy marten
#

Yeah, just make sure its a legitimate version from spigot.

silver minnow
#

โ“

placid flint
#

I thought I remember installing it but I was just checking the page

silver minnow
#

uh

#

is it in your plugins folder..?

placid flint
#

Like the spigot page but I didnt actually install it

#

No

#

Its not on the server or my computer

silver minnow
#

then what computer are you on ;-;

placid flint
#

What?

#

Im on an ROG Scar III

#

Why?

silver minnow
#

๐Ÿ™„

placid flint
#

:/

balmy marten
#

Well buy it if you wanna use it, otherwise theres a few free chat plugins around

silver minnow
#

it's not easy asking for support for a plugin that you don't even have access to its configs to rn

#

just my thoughts

#

EssentialsChat ftw

placid flint
#

Yeah I was just asking how to customize it

#

EssentialsChat?

#

Alright

rose rain
#

helllo

#

%bungee_skyblock% isn't working, when everything is correct.

mild gale
placid flint
#

@balmy marten Figured it out with a different service and now it's secksy, thanks for the help/

tender vaporBOT
#

@placid flint,

Hey!

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

winged kraken
#

rest in peace cinnie.

mental night
#

rofl

rare wave
#

How to get this message of the chat? Its annoying me everything I login.

balmy marten
#

hm?

rare wave
#

one sec

#

Allow people to post photos in this chat

balmy marten
#

check_updates: false

#

Can't sadly

#

Stops people spamming random attachments

rare wave
#

But why it asks to update when I already have latest version

rare wave
balmy marten
#

Most likely cause its a dev version

balmy marten
rare wave
#

maybe I should just get 2.10.9

balmy marten
#

Doubtful much changed

rare wave
#

well, I don't want to disable update checker

balmy marten
#

Then yeah just move off the dev build

rare wave
#

will it make a difference or brake something?

balmy marten
#

unlikely

rare wave
#

ok

flint nacelle
# rare wave ok

Some (if not all is bugged) time placeholders not work properly in 2.10.9 so you know.

rare wave
flint nacelle
rare wave
flint nacelle
rare wave
flint nacelle
tender vaporBOT
rare wave
flint nacelle
mild saffron
#

Heyo! I'm so sorry if this is in the wrong channel. I'm looking to create an eCloud account since I made an addon for PAPI that creates gradients between two hex codes, but unlike other addons it suports chat modifiers like bold, underlined, etc. I feel my addon (if that's the right word) could be helpful to a lot of people and I want to be able to upload it to eCloud. The registration lock page says to use this Discord to request access.

#

*Expansion. Oops.

edgy niche
#

When I do /papi parse Meldiron %sapi_prestige%, it shows 5. But when I use placeholder in CMI by doing %sapi_prestige%, it returns sapi_prestige. What may be wrong?

silver minnow
#

make sure CMI support PlaceholderAPI

#

@edgy niche

silver minnow
#

also discord.gg/dDMamN4 <- CMI discord

#

ping me if I should remove the invite (I don't want to be muted ๐Ÿ˜ฆ)

tropic oracle
#

Hi, is it possible to get the time as a placeholder?

#

because it's not accurate

tired flint
#

Hey, I'm using a placeholder
%skript_{vip.%player%}% and doesn't work, writes the same as placeholder, I used /papi ecloud download skript and nothing :/

silver minnow
#

and what placeholder are you using?

tropic oracle
#

the multiverse one,

silver minnow
#

how off is it?

tropic oracle
#

although i tried all the placeholders I could find from the wiki

lean crystal
#

does anyone know if the playtime statistic formatting issue is fixed in a dev build?

silver minnow
#

if its a few minutes off then it should be fine @tropic oracle

tropic oracle
#

it's 1-2 game hours off which i'm assuming is the equivalent of 10 mins reallife?

#

need to factcheck on that one

silver minnow
#

no not real life

#

mc time has nothing to do with real life

#

@tropic oracle Multiverse placeholders have nothing to do with real life time afaik

silver minnow
#

yes, that's in game time

#

it should be dark

#

in the mc world

#

because it's about midnight

#

not real life ๐Ÿ™„

tropic oracle
#

yeah I want the ingame time, I ran the /time in essentials

#

and the blue background is the placeholder

silver minnow
#

blue background?

#

oh gosh what is that

tropic oracle
#

white text on blue background

silver minnow
#

creepy

#

what-

tropic oracle
#

that's the placeholder

silver minnow
#

um

#

how

#

can you show a full screenshot?

#

I'm a bit confused xD

#

@tropic oracle do /papi parse me %multiverse_world_time%

lean crystal
tropic oracle
#

I messed with the layout a bit and added the real life time, but the game time is the 2nd line

silver minnow
#

@tropic oracle do /papi parse me %multiverse_world_time%

silver minnow
silver minnow
#

uh

#

Im thinking essentials time is messed up

#

xD

#

hmm

#

that's strange though

#

OH

#

I HAVE IDEA

#

@tropic oracle do these commands: (in order)

  • /mvgamerule doDaylightCycle false
  • /time set noon
  • /time (or whatever command you use to see the time)
  • /papi parse me %multiverse_world_time%
  • screenshot
tropic oracle
#

it's exactly 2 hours off ๐Ÿค”

silver minnow
#

weird

#

very weird

tropic oracle
#

waitt

#

so it's just the parse's problem

#

the actual api works correctly

silver minnow
tropic oracle
#

the map board thing is correct

silver minnow
#

does that use PAPI?

tropic oracle
#

but parse is saying 14:00

#

yes

silver minnow
#

wait

#

huhh?

#

so it's only the parse

#

PAPI itself works..?

tropic oracle
#

yes

#

yes ๐Ÿค”

silver minnow
#

๐Ÿค”

#

weird

#

weird

#

weird

silver minnow
#

lmao its exactly 2 hours

tropic oracle
#

well i suppose it doesn't really matter too much if it's only parse that's broken

#

the real placeholder works

silver minnow
#

hmm

#

weird

tropic oracle
#

thanks for your help either way

#

btw do you think it will lag the server if i run a clock that refreshes the placeholder

silver minnow
#

but I never tested it

tropic oracle
#

alright, I'm not sure if keep on refreshing the maps might be a bad idea, but thanks :))

#

or not

#

yeah pretty bad idea

hidden fog
#

LeaderHeads plugin
ะ’ั…ะพะดัั‰ะธะต

Danik TV
ะฟะฝ, 4 ัะฝะฒ., 15:58 (2 ะดะฝั ะฝะฐะทะฐะด)
Hi. I am using your LeaderHeads plugin on PaperSpigot 1.16.4! How to make not all players to register on any astatistic. For example, if player have 0 kills, he

Robin De Baets
ะฟะฝ, 4 ัะฝะฒ., 16:47 (2 ะดะฝั ะฝะฐะทะฐะด)
ะบะพะผัƒ: ั

ะŸะตั€ะตะฒะตัั‚ะธ ัะพะพะฑั‰ะตะฝะธะต
ะžั‚ะบะปัŽั‡ะธั‚ัŒ ะดะปั ัะทั‹ะบะฐ: ะฐะฝะณะปะธะนัะบะธะน
Hi,

The only way to do this is to create another placeholder that returns the number of kills when the number is positive and else just an invalid string. LeaderHeads would then ignore the invalid stats.
You could do this for example with PlaceholderAPI's Javascript placeholders.
The best way to ask for PlaceholderAPI support is here: https://helpch.at/discord

quiet gulch
#

what?

#

je ne parles franรงais

mint fable
#

wot

warm topaz
#

i have to break it to u

#

that is not french

quiet gulch
#

shook

mint fable
#

๐Ÿ˜ฎ why did you tell him

#

return "%placeholder_here%".equals(0) ? "" : "%placeholder_here%";

#

that might work @hidden fog this

austere hawk
#

so ive got a weird situation going on placeholders in chat and tab are completely broken. when i parse them they work fine but in tab they only show the placeholder and in chat they dont shop up

mint fable
#

what chat plugin

#

what tab plugin

austere hawk
#

carbon chat, TAB

mint fable
#

link to carbon chat?

austere hawk
#

uh

#

they dont have a spigot page

bleak perch
#

How would i make it so i can use the place holders in placeholder api on a holographic display?

mint fable
#

you might have to ask for help in the tab discord @austere hawk

austere hawk
#

oof alright i figured

mint fable
#

and what page do they have?

austere hawk
#

carbon chat has a jenkins and a discord

mint fable
#

=pl holographicextension

tender vaporBOT
#

v1.10.9 by Niall7459
Animations and placeholders in Holographic Displays

Downloads:

82,791

Likes:

153

Reviews:

63

mint fable
#

@bleak perch this

bleak perch
#

dope thanks

mint fable
#

ask in the discord :L

austere hawk
#

i did but i was just adding on it was broke for that too

mint fable
#

if the placeholder works with /papi parse me %placeholder% then it's gotta be them

#

I can suggest the latest dev build

austere hawk
#

ok good to know ty

mint fable
austere hawk
#

ty

mint fable
#

๐Ÿ‘

bleak perch
mint fable
#

huh?

flat quartz
#

remove time.sleep(x) and it should go faster

#

ik what you mean, and im pretty sure that the extension updates when new data is available

bleak perch
flat quartz
#

its a python joke

bleak perch
#

oh lmao

inner flint
#

I cant download placeholderapi extension of ajParkour

quiet gulch
#

what doesn't work when you try?

inner flint
#

"/hd addline leaderboard %ajpk_stats_top_name_1%"

stark cedar
#

Hello, I'm running a placeholder api with title manager and jobs reborn. In titlemanager i want to use jobs reborn placeholder so it can shows us a job level and what is the job. Basically if I'm a level 6 Miner it would be like Level 6 Miner. I'm using this code '&b&3&lLevel &e%jobsr_user_jlevel_(jname/number)% &b%jobsr_name_(jname/number)%' It only shows Level 0 and I'm a level 6 Miner.

stoic grove
#

what does it say when you do /papi parse me (replace this with the placeholder)

#

@stark cedar

austere hawk
#

Hello i have a qeustion i have placeholderAPI downloaded and activated but i want online player in to my scoreboar how can i do that?

warm topaz
#

the players name?

austere hawk
#

No the online players

warm topaz
#

uh

#

not sure how thatd work but u can use the PlayerList expansion i think

slow crystal
#

i don't think that's the point of placeholderapi

#

lol

austere hawk
#

its work with placeholder but i don't know

warm topaz
#

really not sure how this is gonna fit in a scoreboard thonking

vivid sparrow
#

Do you want a number or a list of names @austere hawk ?

#

for number use %server_online%

austere hawk
#

Number of a list from online players

#

I want to see the MinetopiaSDB scoreboard number of how many people are playing on the server

#

@vivid sparrow

vivid sparrow
#

Huh?

austere hawk
#

is a an suporter that speak Dutch?

vivid sparrow
#

No but you are welcome to use google translate :)

austere hawk
#

whahah ik can to attempt to translate it

#

I want a list of the players who are online in my scoreboard so suppose there are 3 people in my server then I want to see 3 people on my scoreboard

vivid sparrow
#

Their name or the number of online players?

austere hawk
#

The number

vivid sparrow
#

Ok %server_online%

austere hawk
#

Ty but

#

i go try it

#

Its not working?

warm topaz
#

/papi ecloud download server
/papi reload

austere hawk
#

Ey! @warm topaz You are a here!!! โค๏ธ

silver minnow
#

lol

warm topaz
#

๐Ÿฅฒ

ornate falcon
#

Is there a placeholder that can show a player's current session login time?

turbid tide
#

no don't think there is one.

rose rain
turbid tide
#

and what if you parse them in /papi parse me %placeholder%. do they work?

rose rain
#

blitz

#

can ya help me out

#

%bungee_skyblock% isnt working in my hologram, but it is with /papi parse

turbid tide
#

well because your Hologram plugin is not supporting PAPI most likely

#

what hologram plugin are you using?

rose rain
#

holographic displays

#

the weird thing is

turbid tide
#

you need HolographicExtension and ProtocolLib

rose rain
#

that it works with %bungee_green%

turbid tide
#

to use placeholders

rose rain
#

on every server?

turbid tide
#

in HolographicDisplay

#

well on the server you're using it

rose rain
#

or just on skyblock and the server holographic is on

turbid tide
#

just on the server HD is on

rose rain
#

okk

#

it worked thanks bro ๐Ÿ˜†

paper grail
#

wth

#

I'm so confused right now holy crap

#

Alr I'm using a plugin called Grakkit for scripting bc I'm a dumbass and java confuses me

#

There's a function called core.type() which allows me to access the javadocs

#

of like a plugin or bukkit

#

Does PAPI have like a javadocs I can use to integrate it w/ grakkit?

#

It's basically like

#
import
#

But more epic

turbid tide
#

it has a public repository

paper grail
#

oh im reading that rn

#

Thanks

turbid tide
#

or if all you need is imports then its just import me.clip.placeholderapi.PlaceholderAPI;

paper grail
#

appreciate

#

god this is confusing

#

actually..

#

Is it possible from within the Javascript PAPI extension to get data from localhost?

turbid tide
#

ugh I think you can get data from files that are in plugins/placeholderAPI/javascripts/javascript_data

#

but I'm not sure if any files or just special named ones

paper grail
#

Because I could do something like

/* PAPI CRAP fgHEUEIU */
const player = "%player_name%"
const lvl = data('../../grakkit/storage/survival/stats.json').player.lvl;
const dataLoc = "%player_name%.level";

function survivalLevel() {
  Data.set(DataLoc, lvl);
  Placeholder.saveData();

  return lvl;
}

survivalLevel()```
#

I think this is how papi handles crap based on the wiki

#

is there an equivalent to js const lvl = data('../../grakkit/storage/survival/stats.json').player.lvl; in PAPI tho?

#

Where's that in the docs

mint fable
#

close

paper grail
#

am I able to pull data from other directories?

#

Like a json file I have on Grakkit that stores the user's level and progression

mint fable
#

I think you might be able to access some bukkit classes

#

I mean, it's javascript

turbid tide
#

const is not a thing in nashroon btw.

mint fable
#

so you probably can load a file somehow

paper grail
#

alr

paper grail
#

Okay, perhaps the way I'm wording this is confusing

#

and also i suck at js

#

so..

#

Say I have a script that checks the value of Potatoes.

#

The number of Potatoes are located in /plugins/grakkit/storage/potatoes.json

#

In PlaceholderAPI, am I able to read that json file?

prisma geyser
#

hi

im trying to use placeholderapi to get placeholders for deluxehub

what placeholder should i use for the rank

icy patrol
#

I am trying to use the expansion OtherPlayer and it keeps giving a output of PNF

turbid tide
#

that means Player Not Found

#

you can't use it for players that are offline

paper grail
#

ok im back for the 3rd time

#

I made a simple script that imports data from a json

#

but when I parse the placeholder it complains that it expected an operand but found import

#
import * as data from '../test.json';
function survivalLevel () {
   return data.name;
}
survivalLevel();```
#

#test.json

{
   "name": "potato"
}
#

expected output: "potato"

turbid tide
#

ugh import is not a thing in javascript. or is that the thing you're using?

paper grail
#

oh it isn't?

#

well ill just go ahead and f**k myself then @turbid tide

#

Is there an "alternative"?

#

ik require() isn't a thing, that's from NodeJS and multiple people suggested it ๐Ÿ˜ฆ

zenith badge
#

@austere hawk

#

just checkni

icy patrol
#

is their any expansion that tracks the number of diamonds mined?

paper grail
#

Wait.. So java-based expansions can access the internet and stuff but we can't do the same with js?

turbid tide
#

I mean its javascript. idk for sure what the limitations are.

paper grail
#

idk It's just annoying bc I can't think of any way to access another file and considered using a url or something

#

but even that wont owork

dense burrow
#

Hi
I'm trying to make a custom menu to show if a player has a specific group but i can't figure how i'd get the placeholder to work for the player name that's entered
i know /papi parse <username> %luckperms_in_group_<group>% gives me what i need for the username but i need a way to have it show without the command

turbid tide
#

@dense burrow use this expansion ^

dense burrow
#

thanks

dense burrow
#

@turbid tide does the player have to be online?

tender vaporBOT
#

@dense burrow,

Hey!

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

mint fable
#

yes

turbid tide
#

^

#

most placeholders require an online player

#

very few added offline support. mostly because its impossible without saving the data somewhere.

dense burrow
#

okay thanks, sorry for that tag btw

near sentinel
#

trying to use the placeholder %pingerplayers<ip>:<port>% but its not showing players online on one of my servers

rose rain
#

What's the placeholder for the number of votes a player has?

turbid tide
near sentinel
turbid tide
#

so are you sure you've downloaded the pinger expansion?

#

on that server?

near sentinel
#

yes

turbid tide
#

like /papi ecloud download Pinger /papi reload

#

and go to plugins/PlaceholderAPI/config.yml

#

and change pinger update time to 1 second

#

instead of 30

#

then do /papi relaod

#

can you also join the server? to see if it updates for me

#

or if its stuck at 0

wet creek
#

can someone come in clutch with the essentials eco balance placeholder?

wet creek
#

blitz ๐Ÿ˜…

#

wanna come in clutch with the vault placeholders?

#

I can't find the

#

please blitz ily

wet creek
#

k new question

#

whats tyhe vault money prefix that has the k and M?

#

so like 1M

#

or 20k

wise goblet
#

formatted

frozen dew
#

Is there anyway to use placeholders like %vault_eco_top_balance_commas_#% %vault_eco_top_player_#% without the need of having an economy plugin, i was told you need one but like i just have essentials and vault the /baltop message i wanna json it and limit it, this is the easy part but i cant use those placeholders without the need of a 3rd plugin correct?

wise goblet
#

You can code one if you want.

warm topaz
#

what

#

if u have vault and essentials u dont need anything else (if were excluding placeholderapi as its kinda seperate)

wise goblet
#

tbh what ever u do, even tho if u limit the top players, you can't reduce the lag from it.

warm topaz
#

just download the vault expansion
/papi ecloud download vault
/papi reload

wise goblet
#

He wants to limit it, so it causes less lag I think

#

Tho no one can limit that, unless you increase the delay of which balance top rearranges.

austere hawk
#

Is there a placeholder for user ping? Because I saw in some servers when you hoover your mouse over a person's name with Deluxechat, it shows their ping.

warm topaz
#

%player_ping% i think

#

yeah. make sure to run the commands at the bottom of the embed @austere hawk

austere hawk
#

Okay thanks

pseudo dawn
#

https://imgur.com/a/qCiQ2Fr %discordsrv_user_islinked%
How do I replace yes and no with my own values?
Tried this, it didn't work:

    yes: '&6DL'
    check_interval: 30
    no: '&aDUL'```
pseudo dawn
#

@warm topaz @wise goblet

wise goblet
#

I don't use discordsrv

quick relic
#

how do i get tps percentage like if tps equals 20 it'll say 0% if tps equals 1 or something it'll say 100% how can i do that?

wise goblet
#

use maths @quick relic

quick relic
#

my math is not enough for that

wise goblet
#

;-;

pseudo dawn
wise goblet
turbid tide
wise goblet
quick relic
#

oh ok

turbid tide
pseudo dawn
turbid tide
#

well because that's pinger

#

it has its own way to change that

#

but discorsrv most likely uses the PAPI boolean option

#
boolean:
  'true': 'yes'
  'false': 'no'
#

this is what you have to change ^

steep thorn
#

Maybe if you negate this permission, it would be more efficient since it doesn't request the balance of every player

#

Although this does seem to check for Essentials as well so I don't really know

quick relic
steep thorn
#

@quick relic define 'not working', what is is showing?

wise goblet
#

Can I join ur serv

#

To test it

steep thorn
#

@wise goblet whose server?

wise goblet
#

Dark's

quick relic
#

says provided value is invalid

#

and unkown unary operator ' at position 6

#

i am sending you ip from dms

wise goblet
steep thorn
#

Yeah but didn't he want to disable it?

wise goblet
#

Use server_tps_1

wise goblet
quick relic
#

it works

#

thanks

pseudo dawn
tender vaporBOT
#

@pseudo dawn,

Hey!

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

turbid tide
#

PAPI

pseudo dawn
#

In config.ynl?

turbid tide
#

yes

pseudo dawn
#
  'true': 'yes'
  'false': 'no'
expansions:
  discordsrv:
    yes: '&6DL'
    check_interval: 30
    no: '&aDUL'

Is that how it works?

turbid tide
#

nooo ..

#
boolean:
  'true': 'yes'
  'false': 'no'```
#

change yes

#

and no

#

to whatever you want to be instead

pseudo dawn
#

Thx!

silver minnow
quick relic
#

it worked

#

with math

silver minnow
#

k ๐Ÿ™‚ that's good

pseudo dawn
#

How do I remove zeros after a point in math?

warm topaz
#

[precision:0]

pseudo dawn
#

Thanks!

rain roost
#

What's wrong with what i got here?

#

/papi parse me killstreak

#

/papi parse me %identifier_killstreak%

#

/papi parse me %killstreak%

austere hawk
#

Good day,
I have a server on 1.7.10 where I host Annihilation.
And when I want to display motd on the lobby via Pinger, it throws me out motd what is set in server.properties. It does not want to show motd which is modified by that plugin

austere hawk
#

In Math, can we get rid of floats?

warm topaz
#

yes, add [precision:0] to the placeholder and itll remove the decimals

frozen dew
worn flax
#

where can i ask help for DeluxMenus?

warm topaz
worn flax
#

thanks

austere hawk
#

Is there a placeholder about how long a player has been online since they joined and didn't leave?

silver minnow
austere hawk
#

Do you know if there is a variable that counts from 30 seconds to 1 second? I want to put something to tell you how much time the players have left before I remove them from the server if they don't log in?

crystal flume
#

hi

#

%vault_eco_top_rank% does not work for me

#

i've downloaded vault papi package

#

expansion i mean

#

and whilst some of the placeholders work swell

#

others don

#

don't

#

i have the newest vault 1.7.3 version

#

papi 2.10.9

#

too

crystal flume
#

%vault_eco_top_rank% shows as text

#

%vault_eco_top_balance_1% shows as 0.0

#

%vault_eco_top_player_1% comes empty

#

as in no text

#

my baltop is far from empty

#

and the top eco should be 1,535.25$

#

any ideas about the source of the problem?

#

if anybody has any solution or idea, please @ me

mild gale
crystal flume
#

In the holographic display

mild gale
crystal flume
#

I have them, Thats why some of the placeholders work i think

#

Its just these โ€žtopโ€ ones dont display

crystal flume
mild gale
#

what is your server version

crystal flume
#

1.16.4

#

Is that a bad version?

crystal flume
austere hawk
#

Player placeholder, ping_color doesn't work for some reason. I see it in the PlaceholderAPI config, but colors don't work when using the %player_ping

rain roost
#

What's wrong with this?

#

In plugin.yml
softdepend: [PlaceholderAPI]

In onEnable:
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null)
this.getServer().getPluginManager().registerEvents(new PlaceholderRegister(), this);

quiet gulch
#

you seem to be implementing a listener

#

in the same class

#

that sounds a bit dumb

#

i would separate them into separate classes

rain roost
#

But this line of code needs it:
this.getServer().getPluginManager().registerEvents(new PlaceholderRegister(), this);

quiet gulch
#

uhhh

#

i don't think so

rain roost
#

Because its registering events

quiet gulch
#

i dont think u need to register it tho

#

yeah i just checked one of my old projects

#

it doesnt need a listener

rain roost
#

Removing it doesnt fix it ๐Ÿ˜ฆ

quiet gulch
#

uhhh

#

hm

rain roost
#

/papi parse me %xphill_kills%
Gives me:
%xphill_kills%

quiet gulch
#

?paste

tender vaporBOT
#
FAQ Answer:

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

quiet gulch
rain roost
#

Yesir I copy pasted that

#

then edited upon it

quiet gulch
#

well idk then

#

oh wait!

#

thats the example for one that is a seperate jar file

rain roost
#

Oh

quiet gulch
#
@Override
    public String onPlaceholderRequest(Player player, String identifier){

}
#

this is the function u need

rain roost
#

@quiet gulch ty it works now

quiet gulch
#

np

rain roost
#

KDR is the issue, rest work fine

quiet gulch
rain roost
#

Nothing

#

Just the }

quiet gulch
#

oof

#

kdr is null

#
double kdr;
#

thats null

#

ya can't have it as null

#

@rain roost read ^

rain roost
#

@quiet gulch

kills = Main.data.getConfig().getInt("Players." + player.getUniqueId().toString() + ".TotalKills");```
This is the error line
#

It cant find kills/deaths

quiet gulch
#

well something there is null

#

i would, personally, split that line up into multiple lines, so u know exactly what is returning null

rain roost
#

Its kills thats returning null

#

& deaths

#

those 2 lines are giving null values

#

I think its because of the player

#

but idk how I would define player in this situation

elder stump
#

Hey
I need a bit help, so I want to create a javascript placeholder that returns the amount of players in AFK from essentials, how can I achieve that?

turbid tide
elder stump
#

Okay I will try that, thanks

wise goblet
#

Advice:
Make a list
Use the AfkStatusChangeEvent, add if afk, remove if not afk.

turbid tide
wise goblet
#

;-;, hey super, make a plugin instead

neon surge
#

Hey guys! My server onlinemode=false, players have nicknames that contain " _ " and similar characters. I made some commands through mycommand and other plugins. So, when trying to output any message, I get an error, for my own command I need to get data from mycommand using placeholder: %mycommand_playerdatafor_$arg1_name%, $arg1 is %player_name%, which the plugin gets when you click on the menu (DeluxeMenus). If a player with the nickname test executes the command, it will be executed correctly. If the player with the nickname te_st, then the command will not be executed, I understand why the command stops working - because the plugin receives the command in this way %mycommand_playerdatafor_te_st_name%, but how do I make it ignore this and execute the command as usual?

wise goblet
#

Since your server is cracked, just go disallow _ from ign's

neon surge
#

I have players on the server with " _ " and I don't want to lose them because of this

turbid tide
#

yeah but there isn't any other option I'm afraid. use their UUID instead of their name

silver minnow
#

I thought this server doesn't support pirating .-.

untold adder
#

hello, is a placeholder to see if player in online in a specific server, I tried with pinger but idk

turbid tide
untold adder
#

no I want to see if the player is already in that specific server, to show something like Already Connect to the Server

#

a specific player

turbid tide
#

ah not possible then. well not with the placeholders I know.

#

you probably need something custom

untold adder
#

ok thanks PlusOne

austere hawk
#

Why this?

marsh ridge
#

can i get the placeholder expansion

silver minnow
marsh ridge
#

its not downloading placeholder automatically

#

i aactully deleted the placeholders

#

now its not downloading

#

@silver minnow

#

can i get that ecloud

silver minnow
#

?

#

you can use ecloud to download via /papi ecloud download expansionname

marsh ridge
#

/papi ecloud download Bedwars1058 Not working

silver minnow
#

oh you don't need to download that

#

It'll work as long as you have the plugin

#

i think

marsh ridge
#

i actually deleted the folder of placeholder api

#

after that it stop working

silver minnow
#

Do you have the bedwars1058 plugin?

marsh ridge
#

ofc

silver minnow
#

do /papi parse me %bw1058_stats_deaths%

#

what appears?

marsh ridge
#

unknown command

silver minnow
#

um

#

Do /plugins and screenshot the list

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.

marsh ridge
#

i cant paste img here

tender vaporBOT
#

@marsh ridge,

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.

silver minnow
#

-_-

silver minnow
#

um

#

Do you have the PlaceholderAPI plugin?

#

might want to install PAPI first

#

๐Ÿ˜

marsh ridge
#

sorry man thanks

tender vaporBOT
#

v2.10.9 by clip
A resource that allows information from your favorite plugins be shown practically anywhere!

Downloads:

497,864

Likes:

913

Reviews:

400

earnest sky
#

t

elder stump
#

Hey,

I'm trying to make a javascript placeholder, but I'm stuck. How can I parse a placeholder as another player? E.g %essentials_afk%, I want to calculate an amount of players afking on the server, to do that I need to parse the placeholder to each player to see if they are afking or not.

turbid tide
elder stump
#

Cool and where is this documented?

opal rivet
#

anygood place holder api level plugins?

turbid tide
#

if you mean about the parseother expansion, its on the wiki with all the others

#

if you mean the method

#

that's all there is to it

#

PlaceholderAPI.static.setPlaceholders(player, string)

elder stump
#

I'm getting this error

tender vaporBOT
#
๐Ÿ“‹ Paste Converted!
https://paste.helpch.at/ujajulekit

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

turbid tide
elder stump
tender vaporBOT
#
๐Ÿ“‹ Paste Converted!
https://paste.helpch.at/etabegurab

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

turbid tide
#

hmm that's weird

#

what's your server version and PlaceholderAPI version? @elder stump

#

because this code 100% works for me

elder stump
#

1.12.2 and 2.10.6

turbid tide
#

update to the development builds please and see if that works

#

?papi-builds

tender vaporBOT
elder stump
#

I can't as some of my plugins use the older version

#

but I can test it on my test server

#

to check if that's the problem

#

Tested on test server with latest dev jar, not working

turbid tide
#

what the hell. I'm using the exact same code you do and it works

elder stump
#

Okay, now it "works", I just needed to update the JavaScript expansion

#

the problem now is that it returns 0

#

which is an issue because players are actually in AFK

turbid tide
#

hmm

elder stump
#

but if I parse on a player that is actually in afk (I did it on myself) it returns the amount of active players on the server

turbid tide
#

what if you parse %essentials_afk% for an afk person?

elder stump
#

it returns yes

turbid tide
#

and what if you do it for a non AFK person?

elder stump
#

it returns no

turbid tide
#

ok let me recheck the code

mint swift
#

%bungee_<servername>% doesn't work for me

turbid tide
mint swift
#

yes

#

i did

#

it wil remain on 0 even if there is someone in the server

turbid tide
#

and are you sure you're using the correct server name?

mint swift
#

yes its the server name i gave in the bungeeplugin right?

turbid tide
#

in the bungee config.yml

#

so for example %bungee_lobby% for a server named lobby

#

its also case sensitive

#

so if you named it Lobby you have to use Lobby not lobby

mint swift
#

oke lemmie check

#

jo thnaks

#

it works didn't pay atantion to the letters

opal rivet
#

placeholder API for network levels?

turbid tide
#

its all on there.

opal rivet
#

is there like /papi ecloud ...

turbid tide
#

I mean you could ask that first... xD

#

no there is not.

#

it probably comes with the plugin directly

#

so there is no need for a download command

opal rivet
#

hmmm didnt seem to work

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
opal rivet
#

didnt have any erros

turbid tide
#

u 100% sure?

opal rivet
#

errors

#

yeah

#

il figure it out

turbid tide
#

I mean you could just send it over just in case you missed it but if you don't want to... then id

#

idk*

opal rivet
#

ill try mdvwplaceholderapi

turbid tide
opal rivet
#

yeah it supports scoreboard revision

elder stump
#

Can you look into the script please?

opal rivet
#

is there a better levels plugin

turbid tide
elder stump
#

The problem must be var afk = PlaceholderAPI.static.setPlaceholders(onlinePlayers[i], "%essentials_afk%"); because if I ran the parse command on myself it returns 0 (because I'm not afk), but if I parse on a player that is afk it returns the amount of players online

#

so it doesn't check each player one by one

#

it only checks that single player

#

this is the issue, but I don't know what method solves that

turbid tide
#

I see hmm give me few minutes to think what could be done.

elder stump
#

Okay

steep thorn
#

@elder stump can you send the latest version of the script?

elder stump
#

This is the latest version

steep thorn
#

Easy fix is likely to change "%essentials_afk%" to "%" + "essentials_afk%"

#

Hacky AF but it will work

#

Because placeholderapi replaces all placeholders up front

turbid tide
#

oh I seee

steep thorn
#

And this prevents that

turbid tide
#

that makes a lot of sense

#

lmao

elder stump
#

checking

turbid tide
#

here you go this 100% works

#
var count = 0
var onlinePlayers = BukkitServer.getOnlinePlayers()
for (var i = 0; i < onlinePlayers.length; i++) {
    var player = onlinePlayers[i]
    if (PlaceholderAPI.static.setPlaceholders(player , "%essentials_afk" + "%") == "yes" ) count++
}
count.toFixed(0)```
#

just tested it

#

yeah I forgot about that and its not the first time it happens to me xD

#

I keep forgetting

elder stump
#

Why is this working like this?

turbid tide
#

because it was parsing the placeholder

#

for you

#

for the person the javacscript was parsed for

#

like it parses all strings first then it does the rest I guess

steep thorn
#

count += PlaceholderAPI.static.setPlaceholders(onlinePlayers[i], "%essentials_afk" + "%") == "yes";

#

๐Ÿ˜Ž

turbid tide
#

ugh but that returns a string. not a number.

elder stump
#

I still not understand the logic behind this, but cool because it works

turbid tide
#

oh wait

#

I'm dumb

#

xD

#

yeah that would work as well lmao

steep thorn
turbid tide
#

ah

#

I see edited

#

here even smaller js var count = 0 var onlinePlayers = BukkitServer.getOnlinePlayers() for (var i = 0; i < onlinePlayers.length; i++) { count += PlaceholderAPI.static.setPlaceholders(onlinePlayers[i], "%essentials_afk" + "%") == "yes" } count.toFixed(0)

elder stump
#

Thanks for helping out guys

jolly orchid
#

is there a way to subtract 2 placeholders inside of a string

#

I have a scoreboard where I want to put 'NPC Kills: %placeholder1% - %placeholder2%'

austere hawk
#

Hello blitz, I would like to create a script that removes the ftop value placeholder if the player has no ftop value.

turbid tide
turbid tide
#

expansion

#

%math_[precision:0]{placeholder1}-{placeholder2}%

jolly orchid
#

it shows player kills and total kills

#

didn't see a way to put in npc kills so i was just trying to subtract player kills from kills

turbid tide
#

well yeah math placeholder. and the other message was for Exotic

jolly orchid
#

oh

#

im blind, my b

dawn bloom
turbid tide
#

you'll have to download an older version

#

do /papi ecloud download Vault 1.6.0

warm topaz
#

it can be enabled in config

dawn bloom
#

It s impossible for me to use other version of vault coz i use 1.16

dawn bloom
warm topaz
#

papi config

untold perch
#

This is def a long shot but is there a way to have a placeholder check if you are whitelisted on another server?

EX
I parse the placeholder %whitelist_1.1.1.1:25566% on lobby. that ip is the game server ip. It would check if the player is whitelisted and if they are it would return yes and if not it returns no

dawn bloom
warm topaz
#

?