#placeholder-api
1 messages ยท Page 141 of 1
no Lek don't reinstall
go here: https://api.extendedclip.com/expansions/player/ download the expansion manually by pressing the download button then go to plugins/PlaceholderAPI/expansions and add what you've just downloaded there and then do /papi reload
it should work after
Gotcha, will update u if anything happens
I reinstalled PAPI and did /papi ecloud download mysql again
The issue is with mysql
ugh wasn't it that %player_name% isn't working?
I sent you an ss of the chat via dm
It is the %player_name%
Yeah, for bedwars leaderboards
?startuplog
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.
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
the full one I mean. not just a part. thanks
oh looks like a nasty error from the expansion. will check to see if I understand anything
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
ugh
you've probably used head;%player_name% ?
instead of head-
head-%player_name% I mean
Let me check
hmm so this is the error: https://paste.helpch.at/yiwuzakeni.bash
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
Hmm this is weird
this is the github: https://github.com/SuperRonanCraft/Expansion-MySQL
So this isn't the error then
huh?
go in the menu example
in the item called 1
and see what the material is
for that
Where can I access that menu
plugins/DeluxeMenus/gui_menus
in that folder
should be a examples.yml or something
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
Gotcha, give me a sec
is not yours
Changes made, do i /reload or restart the server?
I just did this
never /reload
just /dm reload
or restart the server
but never do /reload or use plugman
it will break stuff
Noted, thanks for that
that's just a free tip xD
DM has been reloaded, %player_name% is still there
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
ahhhhhh
I gotcha, papi is stayign strong
u mean the one earlier from github?
this one?
yeah I'm compiling it
but my laptop is pretty old now and its taking a while
to open IIJ
xD
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?
told you some expansions break others 
domino effect intensifies
sAmE tHiNg
its a difference inbetween being disabled and not being able to do something
so papi isnt broken, just the extension?
bad mysql
and I'm trying to see if I can get a more updated one
I said to remove the other expansions because another expansion might have broken something
and send you that one
gotcha, thanks a lot
[INFO] BUILD FAILURE Fuck

๐ฑ
LOL
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
No
Had to ask the owner haha, slr
for a sure answer.
It's 1.8-1.16.4 compatible tho
that doesn't matter. jar version is what matters
Ok thanks
BUILD FAILURE Fucking hell.
me and other 100+ players are cheering for u
Yes?
well it was just me not knowing the correct build command.

I mean its not rly my fault that the expansion isn't working. I'm just trying to help out here
Yes I get that hahahah, no worries, really thankful for all the help
Learned a lot tbh
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
Ok gotcha
if the expansion is updated it should work
you could I guess if you don't have important stuff there
no idea what's saved in there
Ok yeah just gonna delete it
well now we'll wait and hope it works xD
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
Still same problem
wait you said there's a folder generated? what's in that folder?
empty mysql file
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
oh
oh
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
maybe getting the config is different in newer versions?
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
ic
damn I'm dumb
what version of papi to use for 1.8?
the latest
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.4
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
is there any way to generate a random number using papi?
use this expansion ^
ty
has the issue with the playtime been fixed?
ugh I'm sorry. what issue?
oh wait the one where the hours go above 24 I remember. no
not from what I know unfortunately
could make a custom placeholder for it in js
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
yo, is there any expansion for PAPI to get current and max HP of last damaged entity?
if u have a combat logging plugin, which supports papi, then possibly
nope. I don't know any popular ones and not even unpopular ones.
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
So do I need this for a 1.16.4 server?
As in do you need placeholder api?
Mhm
Well that depends if you have any plugins that require it
I have vault, and vaultchatformatting but neither of them are working the way I hoped, so I'm trying to use this
placeholder api isn't a chat format plugin if that's what you're implying
But do I need it for deluxechat 1.16 to work?
Ah, yes
Alright, but how do I customize how deluxechat looks?'
Like how the chat stuff looks?
#spigot-linking and you'll get access to #deluxechat support
Do I need to purchase it for it to work?
ummm yes?
that's like asking do I need to purchase minecraft in order for it to work
๐ค
huh?
You'll need to purchase it to download it.
well uh you can do #spigot-linking
?
but you have it installed...?
No?
ahsiduhsaiudhsaid im so confused
;-;
Yeah, just make sure its a legitimate version from spigot.
โ
I thought I remember installing it but I was just checking the page
Like the spigot page but I didnt actually install it
No
Its not on the server or my computer
then what computer are you on ;-;
๐
:/
Well buy it if you wanna use it, otherwise theres a few free chat plugins around
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
where are you placing this placeholder?
@balmy marten Figured it out with a different service and now it's secksy, thanks for the help/
@placid flint,
Please respect the rules, be patient and don't ping staff members!
rest in peace cinnie.
rofl
How to get this message of the chat? Its annoying me everything I login.
hm?
one sec
https://imgur.com/a/y6TZjLG
I have dev build v2.10.10
Allow people to post photos in this chat
But why it asks to update when I already have latest version
ban them and they'll learn
Most likely cause its a dev version
lol
maybe I should just get 2.10.9
Doubtful much changed
well, I don't want to disable update checker
Then yeah just move off the dev build
will it make a difference or brake something?
unlikely
ok
Some (if not all is bugged) time placeholders not work properly in 2.10.9 so you know.
Ohh, hello :)but the dev said everything should be okay
Yes most of the stuff work, but if you use time placeholders (like%luckperms_expiry_time_% or similar, if use more an one day time time is of with 12 hours or more).
so ur saying I should stick to the dev version right?
Do not have to, if you not has any problems run 2.10.9. But if you get problems like i described, you know what the problems is.
Okay, where can I download the dev version if I need?
?papi-builds
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
Thanks, I have unrelated question about another plugin, can you take a look?
try in #general-plugins or #general-plugins-2 and see if I or someone can answer.
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.
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?
also where are you putting the placeholder? (Like a hologram?)
also discord.gg/dDMamN4 <- CMI discord
ping me if I should remove the invite (I don't want to be muted ๐ฆ)
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 :/
it shows game time
and what placeholder are you using?
the multiverse one,
how off is it?
although i tried all the placeholders I could find from the wiki
does anyone know if the playtime statistic formatting issue is fixed in a dev build?
if its a few minutes off then it should be fine @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
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
here's a screenshot
yes, that's in game time
it should be dark
in the mc world
because it's about midnight
not real life ๐
yeah I want the ingame time, I ran the /time in essentials
and the blue background is the placeholder
white text on blue background
that's the placeholder
um
how
can you show a full screenshot?
I'm a bit confused xD
@tropic oracle do /papi parse me %multiverse_world_time%
https://media.discordapp.net/attachments/665955531370004527/796111852441960448/unknown.png This statistic issue, might help to show it
I messed with the layout a bit and added the real life time, but the game time is the 2nd line
@tropic oracle do /papi parse me %multiverse_world_time%
lol that clears a lot of things up xD
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
well PAPI parsing itself works correctly, try contacting Multiverse discord server,
the map board thing is correct
does that use PAPI?
lmao its exactly 2 hours
well i suppose it doesn't really matter too much if it's only parse that's broken
the real placeholder works
thanks for your help either way
btw do you think it will lag the server if i run a clock that refreshes the placeholder
I don't think so
but I never tested it
alright, I'm not sure if keep on refreshing the maps might be a bad idea, but thanks :))
or not
yeah pretty bad idea
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
wot
shook
๐ฎ why did you tell him
return "%placeholder_here%".equals(0) ? "" : "%placeholder_here%";
that might work @hidden fog 
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
carbon chat, TAB
link to carbon chat?
How would i make it so i can use the place holders in placeholder api on a holographic display?
you might have to ask for help in the tab discord @austere hawk
oof alright i figured
and what page do they have?
carbon chat has a jenkins and a discord
=pl holographicextension
@bleak perch 
dope thanks
ask in the discord :L
i did but i was just adding on it was broke for that too
if the placeholder works with /papi parse me %placeholder% then it's gotta be them
I can suggest the latest dev build
ok good to know ty
ty
๐
Cj is there a way that i can make the extension update faster?
huh?
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
Where would that be at?
its a python joke
oh lmao
I cant download placeholderapi extension of ajParkour
what doesn't work when you try?
"/hd addline leaderboard %ajpk_stats_top_name_1%"
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.
what does it say when you do /papi parse me (replace this with the placeholder)
@stark cedar
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?
the players name?
No the online players
its work with placeholder but i don't know
really not sure how this is gonna fit in a scoreboard 
Do you want a number or a list of names @austere hawk ?
for number use %server_online%
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
Huh?
is a an suporter that speak Dutch?
No but you are welcome to use google translate :)
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
Their name or the number of online players?
The number
Ok %server_online%
/papi ecloud download server
/papi reload
Ey! @warm topaz You are a here!!! โค๏ธ
lol
๐ฅฒ
Is there a placeholder that can show a player's current session login time?
no don't think there is one.
If there isn't then #794429923698802708 or #794429922454142986
I am using it on a hologram.
and what if you parse them in /papi parse me %placeholder%. do they work?
blitz
can ya help me out
%bungee_skyblock% isnt working in my hologram, but it is with /papi parse
well because your Hologram plugin is not supporting PAPI most likely
what hologram plugin are you using?
you need HolographicExtension and ProtocolLib
that it works with %bungee_green%
to use placeholders
on every server?
or just on skyblock and the server holographic is on
just on the server HD is on
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
it has a public repository
idk if that will help but here you go: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI
or if all you need is imports then its just import me.clip.placeholderapi.PlaceholderAPI;
appreciate
god this is confusing
actually..
Is it possible from within the Javascript PAPI extension to get data from localhost?
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
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
close
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
const is not a thing in nashroon btw.
so you probably can load a file somehow
alr
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?
hi
im trying to use placeholderapi to get placeholders for deluxehub
what placeholder should i use for the rank
I am trying to use the expansion OtherPlayer and it keeps giving a output of PNF
ugh that's on the wiki ... https://wiki.lewisdev.fun/free-resources/deluxehub/placeholderapi
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"
ugh import is not a thing in javascript. or is that the thing you're using?
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 ๐ฆ
is their any expansion that tracks the number of diamonds mined?
Wait.. So java-based expansions can access the internet and stuff but we can't do the same with js?
I mean its javascript. idk for sure what the limitations are.
statistic
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
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
@dense burrow use this expansion ^
thanks
@turbid tide does the player have to be online?
@dense burrow,
Please respect the rules, be patient and don't ping staff members!
yes
^
most placeholders require an online player
very few added offline support. mostly because its impossible without saving the data somewhere.
okay thanks, sorry for that tag btw
trying to use the placeholder %pingerplayers<ip>:<port>% but its not showing players online on one of my servers
What's the placeholder for the number of votes a player has?
what voting plugin?
https://paste.helpch.at/lohagebivo.pl This is the config, its not showing players online on said server??
it says 0 for me when I use the exact same placeholder
so are you sure you've downloaded the pinger expansion?
on that server?
yes
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
can someone come in clutch with the essentials eco balance placeholder?
ugh just use vault
blitz ๐
wanna come in clutch with the vault placeholders?
I can't find the
please blitz ily
k new question
whats tyhe vault money prefix that has the k and M?
so like 1M
or 20k
formatted
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?
You can code one if you want.
what
if u have vault and essentials u dont need anything else (if were excluding placeholderapi as its kinda seperate)
true too
tbh what ever u do, even tho if u limit the top players, you can't reduce the lag from it.
just download the vault expansion
/papi ecloud download vault
/papi reload
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.
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.
%player_ping% i think
yeah. make sure to run the commands at the bottom of the embed @austere hawk
Okay thanks
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'```
Everything works with pinger
@warm topaz @wise goblet
I don't use discordsrv
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?
use maths @quick relic
my math is not enough for that
;-;
So there's a value swap, no?
idk I never used discordsrv
he meant the math expansion + the server expansion
it is basically, 100-(tps/20*100)
oh ok
yea
ugh that is changed from plugins/PlaceholderAPI/config.yml but it will change it for all placeholders that return yes/no
if you want to change it just for that placeholder then make your own javascript placeholder: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
Strange, pinger works like this
offline: '&6โ'
check_interval: 30
online: '&aโ'```
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 ^
IIRC there is a permission check for each player to see if they can be in the baltop
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
%math_100-({server_tps}/20*100)% i am trying this but its not working server and math expansions downloaded
@quick relic define 'not working', what is is showing?
@wise goblet whose server?
Dark's
says provided value is invalid
and unkown unary operator ' at position 6
i am sending you ip from dms
If you are checking for permissions, then that just removes the purpose of balance top
Yeah but didn't he want to disable it?
Use server_tps_1
He wanted to limit it.
In the papi config or in the discordsrv extension?
@pseudo dawn,
Please respect the rules, be patient and don't ping staff members!
PAPI
In config.ynl?
yes
'true': 'yes'
'false': 'no'
expansions:
discordsrv:
yes: '&6DL'
check_interval: 30
no: '&aDUL'
Is that how it works?
nooo ..
boolean:
'true': 'yes'
'false': 'no'```
change yes
and no
to whatever you want to be instead
Thx!
you can request in #794429923698802708 or #794429922454142986 if you still haven't found anything. Or you can use math ๐
k ๐ that's good
How do I remove zeros after a point in math?
[precision:0]
Thanks!
What's wrong with what i got here?
/papi parse me killstreak
/papi parse me %identifier_killstreak%
/papi parse me %killstreak%
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
In Math, can we get rid of floats?
yes, add [precision:0] to the placeholder and itll remove the decimals
I have all the extensions needed to download but this is what is happening.
Essentials is doing currently /baltop, and vault isnt storing any data when i do %vault_eco_top_balance_commas_1% it just says "0" like first place has no money, but its cuz it doesnt have any data.
where can i ask help for DeluxMenus?
thanks
Is there a placeholder about how long a player has been online since they joined and didn't leave?
Probably not, I've seen quite a bit of people asking around, you can request it in #794429923698802708 or #794429922454142986
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?
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
%vault_eco_balance% works great
%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
where do you place this placeholders?
In the holographic display
You must have Holographic Display, Holographic Extension & Requirements such as ProtocolLib & PlaceholderAPI
I have them, Thats why some of the placeholders work i think
Its just these โtopโ ones dont display
This Displays perfectly
what is your server version
Incompatible I mean
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
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);
you seem to be implementing a listener
in the same class
that sounds a bit dumb
i would separate them into separate classes
But this line of code needs it:
this.getServer().getPluginManager().registerEvents(new PlaceholderRegister(), this);
Because its registering events
i dont think u need to register it tho
yeah i just checked one of my old projects
it doesnt need a listener
Removing it doesnt fix it ๐ฆ
/papi parse me %xphill_kills%
Gives me:
%xphill_kills%
?paste
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
https://paste.helpch.at/upifunolih.php an example from their github
Oh
https://paste.helpch.at/elekujugeb.java u want this one
@Override
public String onPlaceholderRequest(Player player, String identifier){
}
this is the function u need
@quiet gulch ty it works now
np
Could a kind stranger help with this?
All info in pastebin:
https://paste.helpch.at/jisefacasi.cs
KDR is the issue, rest work fine
what is on line 636
oof
kdr is null
double kdr;
thats null
ya can't have it as null
@rain roost read ^
@quiet gulch
kills = Main.data.getConfig().getInt("Players." + player.getUniqueId().toString() + ".TotalKills");```
This is the error line
It cant find kills/deaths
well something there is null
i would, personally, split that line up into multiple lines, so u know exactly what is returning null
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
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?
Get a list of the online players using the onlinePlayers() method, loop thru it, use the isAFK method or just parset the essentials afk placeholder for each and if they are afk add them or their name better to a list then display that list.
Okay I will try that, thanks
Advice:
Make a list
Use the AfkStatusChangeEvent, add if afk, remove if not afk.
He's using the js expansion. not making a plugin xD
;-;, hey super, make a plugin instead
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?
Since your server is cracked, just go disallow _ from ign's
I have players on the server with " _ " and I don't want to lose them because of this
yeah but there isn't any other option I'm afraid. use their UUID instead of their name
Smart
why offline mode ;-;
I thought this server doesn't support pirating .-.
hello, is a placeholder to see if player in online in a specific server, I tried with pinger but idk
you want to see a list of online players or a counter?
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
ah not possible then. well not with the placeholders I know.
you probably need something custom
ok thanks 
can i get the placeholder expansion
โ
its not downloading placeholder automatically
i aactully deleted the placeholders
now its not downloading
@silver minnow
can i get that ecloud
/papi ecloud download Bedwars1058 Not working
oh you don't need to download that
It'll work as long as you have the plugin
i think
Do you have the bedwars1058 plugin?
ofc
unknown command
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
i cant paste img here
@marsh ridge,
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
-_-
um
Do you have the PlaceholderAPI plugin?
might want to install PAPI first
๐
sorry man thanks
t
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.
if you're doing it in a javascript expansion you have 2 options. either the one you can use otuside so basically the ParseOther expansion (%parseother_{player}_{placeholder}%) or use PlaceholderAPI's method PlaceholderAPI.static.setPlaceholders(PLAYER, "%placeholder%")
Cool and where is this documented?
anygood place holder api level plugins?
ugh documentation about what?
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)
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
can I see the javascript?
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
hmm that's weird
what's your server version and PlaceholderAPI version? @elder stump
because this code 100% works for me
1.12.2 and 2.10.6
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
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
what the hell. I'm using the exact same code you do and it works
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
hmm
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
what if you parse %essentials_afk% for an afk person?
it returns yes
and what if you do it for a non AFK person?
it returns no
ok let me recheck the code
%bungee_<servername>% doesn't work for me
have you downloaded the Bungee expansion?
and are you sure you're using the correct server name?
yes its the server name i gave in the bungeeplugin right?
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
placeholder API for network levels?
ugh have you read the spigot page of NetworkLevels? https://i.imgur.com/pyxYNFb.png
its all on there.
is there like /papi ecloud ...
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
hmmm didnt seem to work
?startuplog
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.
send your startup log please ^
didnt have any erros
u 100% sure?
I mean you could just send it over just in case you missed it but if you don't want to... then id
idk*
ill try mdvwplaceholderapi
those placeholders will only work in MVDW's plugins
yeah it supports scoreboard revision
Can you look into the script please?
is there a better levels plugin
I did and can't seem to find anything that would break it.
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
I see hmm give me few minutes to think what could be done.
Okay
@elder stump can you send the latest version of the script?
Easy fix is likely to change "%essentials_afk%" to "%" + "essentials_afk%"
Hacky AF but it will work
Because placeholderapi replaces all placeholders up front
oh I seee
And this prevents that
checking
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
Why is this working like this?
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
count += PlaceholderAPI.static.setPlaceholders(onlinePlayers[i], "%essentials_afk" + "%") == "yes";
๐
ugh but that returns a string. not a number.
I still not understand the logic behind this, but cool because it works
Fixed it, stupid iPad keyboard
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)
Thanks for helping out guys
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%'
Hello blitz, I would like to create a script that removes the ftop value placeholder if the player has no ftop value.
what does it currently show? and what is the exact placeholder?
math
expansion
%math_[precision:0]{placeholder1}-{placeholder2}%
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
well yeah math placeholder. and the other message was for Exotic
Any suggestion which api will help me to make balance top and playedtime top. In balance i used %vault_eco_top_player_#% but it was working like in screen
https://i.gyazo.com/7f70166fdcaf429e80b9bb8789d91cbf.png
vault top was disabled on latest Vault expansion version
you'll have to download an older version
do /papi ecloud download Vault 1.6.0
it can be enabled in config
It s impossible for me to use other version of vault coz i use 1.16
i will check it
papi config
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
Do i need to enable cloud_allow_unverified_expansions
?