#placeholder-api
1 messages Β· Page 108 of 1
And by parsing, you mean using /papi parse me %placeholder%, or something else?
yes
and wherever they are used
another weird thing is placeholder from one plugin work on 1.15.2 and dont work on a 1.13 server
and other way around with a different plugin
....
probably the plugins fault ill figure it out
π
Where is PAPI 3
Soonβ’οΈ
It's being worked on, no eta atm
Hello, is there any placeholder that compares two cooldowns and show the closest cooldown to you?
I mean you could use javascript
I don't really know how to do it. I searched for similar placeholder to make an idea about the js, but didn't found any.
what are you using for cooldowns?
javascript placeholder
oh so the cooldown expansion. Can you also give the placeholders you want to compare?
Guys do anyone know a good papi profile plugin?
papi profile? as in showing data about a player?
Yes
do you want a GUI or just text in chat?
you could use DeluxeMenus to make a profile menu
for example I want %javascript_cooldown_1_86400% and %javascript_cooldown_100_604800% (24h and 1 week)
can you do /papi parse me %placeholder% with both and tell me what it returns pls?
23 hours 11 minutes for cooldown_1
@turbid tide i can't add social media with it right?
wdym by social media?
oh @nova crane then I don't think I can use javascript for that.
For*
nope iiAhmed. Unless you have a plugin that returns a placeholder with all that information
Hmmm.. imma create that
Ah ok.
I was working on a daily rewards with the 7 days streak option, but the problem is that the menu works only the half way. (you can't claim previous days, so you can only claim higher days). But the problem is after the cooldown is finished, then you can claim the previous day. (So when you will reach day2, the day1 will be available for claiming also). And i was thinking for the past few days how to fix this. I came with the idea to add 1 week extra for each cooldown (day 1 was 24h so after that to be 8 days.. and day 7 to be 14 days cooldown). This thing works well after the first week of waiting. So you have to wait 1 week in order for it to work. Then I was thinking how to make the first week to work, so I came with another idea, to use two cooldowns, 1 that is for 1 week, so you won't be able to claim previous day before 1 week, and other cooldown for 24h that activates after you claim the previous claim. Sorry for this long message, but maybe you have another perspective how i can make this? I ask you only for a theoretical idea which I can put into practice.
I need more brain cells to understand wdym
yeah I kind of got lost xD
Same lol
ππ
you need to read half of each sentence for it to make sense
but why do you need the day 1 to be claimable in day 2 as well?
also you could do this using minimum requirements
I did a Daily Rewards menu with TrMenu recently, it wasn't easy x)
yeah but you want to claim day1 and day2 in day2 right?
If your time isnt right and maybe broken u can use TimedRewards plugin
or did I got it wrong?
let me explain somehow, so day 1 = 24 hours, day 2= 48 hours and so on. The problem is when you will reach day 2 after 48 hours, the 24 hours cooldown from day 1 will run out, so you will be able to claim also day 1.
I don't want that
oh
If you want an idea of what I did, I checked for %server_time_u% (returns the day in number, so Monday =1, tuesday = 2...) so if this placeholder = the day you want, only this one will be claimaible, others won't
and at the end of the 7 days you will have 21 rewards insted of 7. That's the problem I have
oh I thought you want like a ladder or something so if you don't claim a reward in day 2 you won't be able to claim day 3 anymore but have to go to dayt 1
My brain
oh I thought you want like a ladder or something so if you don't claim a reward in day 2 you won't be able to claim day 3 anymore but have to go to dayt 1
@turbid tide that's another problem that i have
If you want an idea of what I did, I checked for
%server_time_u%(returns the day in number, so Monday =1, tuesday = 2...) so if this placeholder = the day you want, only this one will be claimaible, others won't
@junior musk thank you for the suggestion, i will try!
here's my menu if you want x) You don't have to care about the menu design cuz it isn't DeluxeMenus, just the requirements/conditions, check what I checked (wait wa..) and if you have questions ask me x)
thank you, i appreciate it
"my brain isn't available atm please try again later (if u want to leave a message press F)"
x)
Wrong letter
f (it's a f, not a F x))
Sorry for that @jade flume , I use to over detail useless things when I'm trying to explain something π
Bro im jk π no worries lmao
Can anyone help me with HolographicDisplays and PlaceholderAPI?
install HolographicExtension and ProtocolLib
Yeah Iβve done that
I did /holo create test {slow}%mineresetlite_A_percentage_mined%
But it stays at 0% the entire time
Even when 50%+ of the mine is gone
what if you do /papi parse me %mineresetlite_A_percentage_mined% ?
then there's a problem either with the placeholder, either with that plugin
try with a instead of A ?
contact the dev then I guess
Does anyone know of a placeholder that counts UP from a specified time?
That just prints local time?
%localtime_timezone_<TimeZoneID>%
That's not what I'm looking for, I want to display how long a "faction season" has been running
The server restarts every 12 hours, already tried that :/
ok
found countdowns but not countups haha
again, that's only counting the server uptime, as I've said the server restarts every 12 hours
All good, imma make a custom one. Just thought I could be lazy and save myself 15 minutes
don't own any of his premium plugins and don't intend to either π
ok
What are the PremiumVanish placeholders?
thanks
np
So i downloaded papi update, latest one, but now after restart no placeholsers work...
There areno errors in the console
Could someone please help me, because this error happened on live server.
Is there a placeholder to get another players coordinates
use those 2 combined
ahh ty
Hey so I have Papi downloaded and I downloaded the Player extension from the eCloud. I have tried /papi parse WiredOrange %player_displayname% but its not working. Any ideas?
Nope
What could be the reason of placeholderapi now parsing any placeholders without errors?
i mean there are no errors
like
%server_online%
not working
i have server expansion installed
it was working for a while, but everything broke down when i updated papi
does server expansion show in /papi list?
?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.
Yes.
send that over as well ^
wait a moment.
send it over after typing /papi parse me %server_online% actually
oh
in the chat it is showing everything
so it has to do something with holographic displays
do u have holographic extension?
Yes
paste the startup log as cj said
i reinstalled these plugins and it seems to fix the problem
π
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
A resource that allows information from your favorite plugins be shown practically anywhere!
β’ Spigot
β’ Wiki
β’ Placeholder-List
β’ GitHub
β’ eCloud
from the eCloud ^
@mint fable so will it affect the plugin?
or just make me have to install manually?
and is there anyway to fix it or no?
alright
?ecloudblock
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.
just a bit annoying but ty
you might be able to disable it in config
the warnings?
the ecloud
yea that will help
Hey guys
Im unable to use animations placeholders on my menu
This was supposed to blink
&a%animations_Blink_<7>%
Hi, does anyone know why the Vote Party plugin does not work for me in the FeatherBoard plugin?
[ERROR] [FeatherBoard] Error in placeholder: {voteparty_votesneeded}
@vital bronze #spigot-linking
thanks
@cunning elk deluxemenus doesn t update unless you use the refresh action so animations are not supported
well
you can use update
it only updates certain things
but it should work for animations
@cunning elk ||cc: @turbid tide ||
=wiki deluxemenus update
GUI - HelpChat Wiki
Note that DeluxeMenus won't update the item itself (Change the item). This is
only possible by executing a [refresh] command in the items [[left/right-clickΒ ...
well I ve tried and it does not unless you use refresh
it specifically states that it updates the placeholders
that is why it's there
did you add update: true to your item?
it only does it on lore and name
yep
that's why it's there π
it could've just been bugged
it could be bugged still
π€·ββοΈ not sure
I have a problem with holograms I have recorded how many players are on a particular map (world) but when I enter it does not show the number it needs to be corrected /hd reload
U can put the {medium} placeholder before it to test
@mint fable I see people struggle with the papi version syntax of Animations
@heady falcon,
Please respect the rules, be patient and don't ping staff members!
Ah was that the issue?
So my idea is to make it support the native language, something like:
I didnβt look too close myself
%animations_<fade>....</fade>%
Then its portable between all versions, and people wont get confused
True
You think thats a decent idea?
I like it
Infact, I dont know why I did it the other way before...
Hindsight 20/20
I'll release an update this week hopefully
Please post your latest full startup log to a ?paste and spigot version.
Hello, i'm getting this error in console and I don't really know why
Error in requirement javascript syntax - %server_time_u% > 1 && %luckperms_meta_rewardday%.indexOf(1) <= 0
sure
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
i think that's the problem, i can click infinite times and receving the reward
because you don't have variables and you can't do %placeholder%.indexOf
only variable.indexOf
i put the "". I'm not receiving the error in console anymore, but it doesn't work
so you'll need to either use javascript placeholders or get another way of doing it
ah i understand
?paste
don't you have another way to do it in your mind? This daily menu gives me a brain damage and I can't really know how to make it work
well to be honest Idk what you did there xD
Version: 1.12.2
because I thought you want every day a different reward for 7 days
and then it restarts
they even have a free version Detro ..
so is based on what Tanguygab send me yesterday, but it was made in trmenu and i tried to rewrite it in deluxemenus
ok so xGeorge let me explain you what I've understood from what you said you want
sure
Monday - reward1, Tuesday - reward2, Wednesday - reward 3, Thursday - reward 4, Friday - reward 5, Saturday - reward 6, Sunday - reward 7
and then the next monday it starts again with the same rewards
right?
yes
So what about messages that are repeated 3 times?
@vapid bane YIKES CHIEF
ok
π
Hey! I'm getting this error https://paste.helpch.at/hepajotuxu.pl
Aparently it has to do something with a Javascript script I have... Any idea on how to fix it?
The script works fine if I parse it manually, but that error appears only sometimes... And I dont seem to be able to recreate it. Apart from that, I dont see any errors that show me where the error happens on my script.
The placeholder is being used on a Hologram, so the error appears just when a player logins.
Yes! I have a few working on holograms..
Here is the script https://paste.helpch.at/xopaqaxovo.js
The exact placeholder that is on the hologram is %javascript_bobielcarterochecar_holo%
huh is the argument required ?
I don't rly understand what this js does but I think that the argument does that
not sure tho
also if you add a refresh to the hologram does it spam the error?
oh wait @mellow skiff in javascript_placeholders.yml in PlaceholderAPI have you set the engine for this placeholder?
also if you add a refresh to the hologram does it spam the error?
@turbid tide Nop
oh wait @mellow skiff in javascript_placeholders.yml in PlaceholderAPI have you set the engine for this placeholder?
@turbid tide Nop, should I?
You could try
engine: 'nashorn'
add this under the file line
of that placeholder
OKey, I will try, thanks
Em
Ohh okey
Anyone here can help me out? I am trying to use getOnlinePlayers to get only a player from that list. So for example player1 or player5 etc. Rn it usually returns [CraftPlayer{name=BlitzGamer_88}]
@mellow skiff Hi did you fix your issue
Im not sure, why?
Ohh!!!! you are the creator of it!
:O
engine: 'nashorn'
I did that and I hadnt gotten the error. Yet.
maybe open a issue on HE's github
PlaceHolders working on website?
wut
I mean if i connect my server with mysql to my website place holders will works?
Or another way to connect to website?
you need a player object to parse the placeholders
some work without (such as 'server' placeholders), others accept an OfflinePlayer and others only Player
ok
@final shadow sorry for ping but is this true?
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
Not entirely sure, to be honest, but it's definitely something we're taking account for PAPI v3. I've worked on servers with 30 - 40 expansions and haven't noticed any issues.
The performance impact is minimal tbh. In the case of the image you are talking microseconds. If the issue was something worth worrying about it would have been brought up by thousands of people
If you read that whole thread you would see my replies
There are more basic plugins that would cause more strain than papi
Also to note that the performance of placeholders regardless of what papi you use will always be affected by the implementation for the placeholder from whatever plugin
Hey I also want to state the fact that over all of the years and even right now with over 30000 servers using the plugin, I donβt think I ever recall anyone saying PlaceholderAPI is killing my server
^
papi is killing my server
F
Hello, I have a problem with the nameequals in this placeholder '%checkitem_mat:STONE,amt:64,data:0,nameequals:&fStone%' . Did I write it right?
well I am not sure but I think that it doesn't actually accept color codes.
I know it breaks a lot when people try checking for colors in lores and names
I tried without any color but still doesn't work
this is weird
I tried also to use **strict **instead of nameequals, but the problem is they can only sell the amount specified (For example if there are 16 stone available for sell and they have 64, they have divide the stack to be able to sell)
and that's a problem, they can't just click to sell like they normally do
well you could add a sell all button
that's what I did, but is not that easy friendly for the players and that's the problem
why is it not easy to implement? all you have to do is make 2 math placeholders
%checkitem_mat:STONE,amt:64,data:0,strict%
try this
I tried also to use **strict **instead of nameequals, but the problem is they can only sell the amount specified (For example if there are 16 stone available for sell and they have 64, they have divide the stack to be able to sell)
Still this problem, if the amount is 64 there is no problem but if the amount is lower than 64 and they have a stack they can't sell until they have that amount in their inventory
for example %checkitem_mat:COAL,amt:4,data:0,strict% , if I have 4 coal in inventory it works, but if I have 64 it doesn't
so you want to be able to sell even if you have 1 or 2 or 3 etc?
then you'll have to use the math placeholder
no, you will be able to sell only if you have 4 it doesn't work for -4 or +4
so you want to be able to sell even if you have 1 or 2 or 3 etc?
@turbid tide
still doesn't work because because strict only checks if you have that amount strictly in your inventory (you can have 1000 coal in your inv but if you don't have 4 coal separatly it doesn't work)
i tested it
then players would be able to sell renamed items infinite times, that's the problem I had in the first place
that i've been trying to fix with nameequals: or strict:
what if you try with Β§ instead of & for the color code in the nameequals?
well why do you need the color to be white?
%checkitem_mat:STONE,amt:4,data:0,namecontains:stone%
then players would be able to sell renamed items infinite times, that's the problem I had in the first place
that's why
oh that makes sense
i don't really need the color to be white, i need to be able to check only the normal items
not renamed ones
wait a minute
and I thought of using white because i can't simulate that
wait, what?
you can check directly without a name if it is the normal item
so the one I've just sent seems to work
had 64 stone and 64 cobble renamed to stone
and it only shows 64
you can check directly without a name if it is the normal item
@junior musk how?
%checkitem_amount_mat:STONE,data:0,strict%
@turbid tide i tried it now, still not working
ooooh I think I understand
right_click_requirement: requirements: anything_here: type: string equals input: '%checkitem_amount_mat:STONE,data:0,strict%' output: 'yes' deny_commands: - '[message] &c&lError &8Β» &fYou don''t have &e64 x stone &fto sell.'
also
you want to check for stones, not renamed, but not for stones renamed right?
what tangu sayd
you can just remove the name
contains
and strict
just leave the mat
and it will check for material stone onoly
without checking the name
that's what I did in the first place, i made the shop without any strict or nameequals and players could sell renamed items
I don't get it. you have mat:STONE
wut
wait 1 sec to send you a video or something
type: '>='
input: '%checkitem_amount_mat:STONE,data:0,strict%'
output: 4```
also
this is how you use the one
still not working
receving the deny command because the placeholder don't check the inventory correctly
can you do /papi parse me %checkitem_amount_mat:STONE,data:0,strict% with stone in hand and without?
also with stone and with other items renamed to stone
Without in hand - 64
In hand - 64
Reanamed - 64
i had 64 of each
Ah my bad, I had Stone renamed to something else in inventory, if i have another item renamed to stone i get 0
wait so if you only have 64 cobble renamed to stone it says 64?
so it should work then
the requirement I've sent above
https://imgur.com/a/oay5ux7 with your requirement
btw I think the '' shouldn't be necessary
PAPI ANIMATIONS EXPANSIONS EXAMPLE
IDENTIFIER: ANIMATIONS
%animations_<TAGNAME>TEXT</TAGNAME>%
WITH IMPLICIT BOOLEAN PRESENT:
%animations_<TAGNAME BOOLKEY>TEXT</TAGNAME>%
WITH EXPLICIT BOOLEAN PRESENT:
%animations_<TAGNAME BOOLKEY=TRUE>TEXT</TAGNAME>%
EXAMPLE:
%animations_<FADE IN>Fading In</FADE>
%animations_<SHINE START=&9 MIDDLE=&1 END=&9>TEXT</SHINE>
@mint fable This is what they will look like, and it will support all the same ones as KiteBoard, so 1 single documentation
btw I think the '' shouldn't be necessary
@junior musk where?
around the 4
it works well anyway
@heady falcon,
Please respect the rules, be patient and don't ping staff members!
now it no longer allows renamed items to be sold
βΉοΈ
Thank you so much for helping @turbid tide and @junior musk
Fine I was replying to CJ on something
How to reset placeholders?
depends which placeholder
/world/stats I believe is where its stored
But backup everything before you delete anything
I deleted it, but nothing happend
Make sure the server is stopped when you delete them
oh I have a question for you
@turbid tide ?
@heady falcon,
Please respect the rules, be patient and don't ping staff members!
I've pasted a link under
Oh I see
that guy was having problems using js placeholders in holograms
I couldn't recreate it for some reasons
He was referred to me from vault
oh ok.
arguments that you give when you call the placeholder
it goes like this: %javsacript_filename_arg1,arg2,arg3,etc%
so you can use the same javascript in multiple cases
instead of just one
I saw that it has something to do with arguments but couldn't figure out what
nice @heady falcon i'm looking forward to it
can i show motd in the menu?
I've got no idea what im doing wrong. I have vault, /papi ecloud download Vault says no updates, but /papi parse me %vault_eco_balance% just outputs %vault_eco_balance%
Im on 1.12.2 if it matters
Have you done /papi reload since downloading the expansion?
it wont let me download the expansion.
says i have no expansions to download
but ive restarted the server many times.
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.
ty. ill talk to my host rq
does placeholderapi need protocollib?
because when i disable protocollib
placeholders of the holograms are not showing
(sorry my english is bad)
I think it's: %vault_eco_balance%
On my build server, there is a placeholder hook registered as clearlagtimer, but I cannot seem to download it on my skyblock server
placeholders of the holograms are not showing
@sweet dew Protocol lib is needed for the placeholders to work in Holograms
is there a placeholder to show either daytime or nighttime?
no i mean to either show "day" or "night"
Oh, you can use js
return ticks >= 0 && ticks =< 13000 ? "Day" : "Night";
@neat fern
Hello there
I got one question about the math lib
the math placeholders anyway
i got this placeholder, is it well formated? math_{ping}-{0.7*{ping}}
%math_{player_ping}-(0.7*{player_ping})%
verify that you have all required expansions
/papi ecloud download Math
/papi ecloud download Player
/papi reload
π€·
Yeah since the ping placeholder is broken :3
im using this on a mvdw placeholder
but its showing nothing
if you do it on a plugin that only supports MVdWPAPI it won't work
Oh i cant use more than one pair of these?
nope
Hmm is there any other way to do that?
I think MVdW plugins have their own math thing
also you could do all the math is js placeholder
Hmm let me check that out
oh and then, yeah it would be {ping} I guess for MVdWPAPI
Yeah i think ping will be for MVDW
so inside the brackets i can use that? <math>expression</math>
I think
well the ping shows normally but math is not working
I got this one {<math>{ping}-0.7*{ping}</math>}
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
<calc>
Only the {ping} is working xD
huh
this will work but
it needs something to dont show that many digits
xD
Arguments
round: Rounds the result (<calc round>5/3</calc>)
who can help me how can i do. I know I have leaderheads. I just don't know how
https://imgur.com/a/MMQJ2O5
@mint fable Any way you can give me access to the Placeholder api wiki?
@heady falcon,
Please respect the rules, be patient and don't ping staff members!
Or I can send you over the details to put on there
Ok so the mvdw is ok
What about the papi placeholder tho?
How can i use this placeholder and round it also? %math_{player_ping}-(0.7*{player_ping})%
[precision:0]
you can change 0 to 1,2,3,4,etc. and thats how many digits it will have after .
no problem
return ticks >= 0 && ticks =< 13000 ? "Day" : "Night";
@vivid sparrow what is the placeholder for ticks?
@neat fern,
Please respect the rules, be patient and don't ping staff members!
wasn't it server_ticks ?
let me check
Player.getWorld().getTicks() or smth
but if the player changes there time sing ptime wouldnt it change it?
i need everyones time to be the same
idk
Can you PR wikis?
It really would be nice if you could PR wikis
idrc
it really would be
uh
did you delete your expansion?
or rename it?
oh i gotta tell cube
@balmy marten click on animations in #ecloud-updates
it brings you to /animations instead of /animationexpansion
no idea where animationexpansion came from (original name?) but
clip's problem now so
Is it the same on the in-game interface?
?
Oh wait..
I think when I first uploaded it a few years ago I named it animations expansion
prob
read the text at the top of the page
i can install papi on bungeecord?
nope
https://paste.helpch.at/ewaloyopon.shell
What am i doing wrong? console is getting spammed. config settings have debug off
@shrewd rune you need to install Papi on all your servers but not on bungee
MoMo I am not 100% sure but it might be AutoRank's fault when they hook into PAPI
Does anyone knows why when I install ChatControl my java script placeholders stop working?
https://paste.helpch.at/zixomotijo.sql Im getting this when on startup and when I reload PAPI
https://paste.helpch.at/mobesejati.css this is how the scripts are setup
If I remove chatcontrol the placeholders work again xD
already tried that
try moving the engine under the file
under the file?
ohh okey
Nop :c same problem
Already asked on ChatControl's discord, lets see if they have an answer
Hi, I need help with PlaceholderAPI.
Do you know if it is possible to pull the first letter of a placeholder?
you can using javascript
Would this be possible using skript?
idk. I don't use skript and most people here don't either xD
if you want to learn how to use placeholderapi javascript
OK ill be sure to look into both!
thanks!
ChatControl also have a scripting feature.. maybe thats why it makes the one from PAPI stop working? I really dont understand why ChatControl can make Javascript stop working
Is there going to be a python placeholder script expansion?
i very highly doubt it
At this rate it should be called Script-Expansion and allow chosing between Js, Python, Java, etc. Whatever the javax scriptengine supports
Super easy stuff
Wonder if there is a scriptengine to run python?
I assume bc of gemseconomy
Yep
Vault and GemsEconomy
however, I removed Vault
and it worked fine
but I can't remove vault bc its important

Hi. Can I somehow use three+ placeholders in one? Example: %prisonranksx_rank_displayname_{math_%prisonranksx_currentrank_name%+1}%
If someone knows - please, tag(ping) me
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
@lyric lion I wrote a script that does that. It's really complicated so I will break it down for ya ;)
Integer i = -1;
for(i = 0; i <= numberOfRegexMatchesForPlaceholdersInProvidedInputString + 1; ++i)
{
input= PlaceholderAPI.setPlaceholders(input);
}
return input ;
Now I know what you're thinking....Yako, won't that try to parse %prisonranksx_rank_displayname_{math_% as a placeholder? The answer is no. The reason? Because I tried it and it worked fine π
π±
Thanks.
Hi, whenever my players execute a command (/event) a custom menu from a deluxemenu with a PlaceHolderAPI - The expansion that I am using is called "Parkour" or "Parkour Expansion"), It crashes the server instantly. This has happened multiple times, here's one of the logs https://paste.helpch.at/acuzusamag.bash
I am not sure if this is placeholderapi related or deluxemenu related yet. but I just concluded that it might be placeholder. Thank you for the help π
I think this log would help more: https://paste.helpch.at/cizeyunalu.bash
Unlikely, @tall torrent. Read the error message properly.
java.sql.SQLException: The prepared statement has been finalized
[Parkour] Course 'parkour4' was not found in the database. Run command '/pa recreate' to fix.
Unlikely, @tall torrent. Read the error message properly.
@cunning charm Hi! We've read that error messsage and we tried that, it did execute though but crashes continuous. Not all logs have that line btw. As for our temporary fix, We unregister the "parkour" expansion from papi and deleted it's jar on the expansion folder. Afterwards, there were no more crashes.
Are you sure? Because the error message says that parkour4 was not found in the database and there is a database error.
I don't think PlaceholderAPI usually crashes a server when an error occurs, simply just unregisters the expansion?
Try fixing your parkour.
@tall torrent
We did fix the database more than 3x though but we'll try that again. Thank you.
Well you should probably look into it more
since this isnt placeholder api causing the initial issue
Well you should probably look into it more
@cunning charm Alright. Thank you
π
@inner egret looking for build? dm me
help me π The specified placeholder statistic is not an MVdWPlaceholderAPI or PlaceholderAPI placeholder
what is the placeholder you tried to use?
PlaceholderAPI 2.10.6
no I mean what placeholder you tried to use since you got that message
%statistic_time_played%, %statistic_mob_kills:ZOMBIE%, etc
%leaderheads_name_statistic_player_kills_alltime_1%
what does /papi parse me %statistic_player_kills% return?
%statistic_player_kills%
it still does not work
https://imgur.com/a/C6HBoIw server version 1.8.8
/papi ecloud download Statistic 1.7.0
/papi reload```
thanks
What do i get from putting papi in bungeecord?
nothing
Hmm weird lol
if you want to use it you need to install it on every server but not on bungee
same with the expansions
you need them on every server
idk. Probably doesn't need PAPI to be on bungee to use its placeholders
There isn't a placerholder like that, or?:
%<argumentnumber>_<placeholder>%
So I woud like to display a specific part of a placeholder
what? I don't rly understand
ohh
you could possibly use javascript
what placeholder are you trying to use that for?
I want to get members of a faction (plugin is "feudal"). There is a placeholder where all players of the faction are.
Like PayerX PlayerY PlayerZ
Then I want to get each player and make a GUI with UltraCustomizer for settings for the leader.
xd
yeah you can do that with javascript then but you need to know some javascript
you can learn more on how to use them here
Okay thxπ
is there a placeholder to get a player's duration of time they've been online for? I know there's the one that displays time on the server in total, but is there one just for the current join instance?
is that the only way?
probably there is another one but not that I know of
Anyone knows how to fix this issue? https://github.com/PlaceholderAPI/PlaceholderAPI/issues/321
xd what is wrong here?
String rank;
int argument;
int length;
function getRank() {
argument = arg[0];
rank = pasreString(%feudal_kingdom_members%);
length = rank.length();
length--;
if(argument < length) {
rank = rank.arg[argument];
}else{
rank = "Click to add a player";
}
return rank;
}
getRank();
"pasreString"
Can someone update the wiki i made an issue
Whats that, js or java?@unique arch
Because js doesnt have String and int, only var, let and const
@quasi peak any errors / messages in console?
@quasi peak any errors / messages in console?
@vivid sparrow
[18:16:54 INFO]: Bredy1K issued server command: /papi reload
[18:16:54 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: chatprefix
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: chatregion
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: chatsuffix
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: suffixquality
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: movedistance
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: moveearth
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: tablistafk
[18:16:54 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: tablistname
[18:16:54 INFO]: [PlaceholderAPI] Successfully registered expansion: javascript
[18:16:54 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[18:16:54 INFO]: [PlaceholderAPI] Successfully registered expansion: nicknamer
Show your javascript_placeholders file
chatprefix:
file: chat_prefix.js
engine: nashorn
chatregion:
file: chat_region.js
engine: nashorn
chatsuffix:
file: chat_suffix.js
engine: nashorn
suffixquality:
file: suffix_quality.js
engine: nashorn
movedistance:
file: move_distance.js
engine: nashorn
moveearth:
file: move_earth.js
engine: nashorn
tablistafk:
file: tablist_afk.js
engine: nashorn
tablistname:
file: tablist_name.js
engine: nashorn
okay, let me test it now. thank you schooltm!
Np
Np
@vivid sparrow Hello, I've tested and it didn't fixed, same errors.
Weird
removed/chang it to 'javascript', I've restart my server.
Expansion version?
Can someone update the wiki i made an issue
Because js doesnt have String and int, only var, let and const
@vivid sparrow
Yeah I fixxed it already but thx xd
Expansion version?
@vivid sparrow javascript extension is 1.5.3, my PAPI version is 2.10.6
yes it's that
Glad someone updated the js expansion -.-
@vivid sparrow so it can't be fixed now until someone can update the js expansion right? π
Glad someone updated the js expansion -.-
@vivid sparrow Can you update nimations documentation
I put issue outlining details
love you
does it work?
can you create a test script?
@vivid sparrow Tested. The error message becomes[18:53:31 WARN]: [PlaceholderAPI] File: test.js for javascript placeholder: test is empty
add smth in there
and it becomes [18:54:35 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: test, the same error again
script:
function test() {
return 0;
}
test();
that's weird
i remember this happens suddenly someday ago
maybe because there is a plugin conflict with it
let me test it out... if you have any solutions pls tell me
will you be there wait for me?
@bronze bison Thank you looks great
@heady falcon,
Please respect the rules, be patient and don't ping staff members!
π
that's weird
@vivid sparrow After a 2h 40min test, finally I found what caused this bug, it's ChatControl Pro, this plugin will make PAPI's javascript extension broken after excute/papi reload
@quasi peak,
Please respect the rules, be patient and don't ping staff members!
I use ChatControl Pro 8.6.6, and it has a custom JS placeholder function. Maybe the PAPI reload bug is caused by this.
Okay so. I am having an issue with chat color. I am being told you guys may be the problem but I doubt that you are. Do you do anything wacky with chat to make chatcolor not work on line 2?
We support 100s of plugins here. Which are you referring to?
the placeholder api
We don't write anything, PlaceholderAPI strictly reads data from other plugins and passes it along.
mhm. If I were to provide a picture of all the plugins we have could you possibly diagnose the issue?
is it worth a shot?
ill post in general plugins 2
Why 
@heady falcon did you open an issue?
Aboody sorted it thanks!
I need to hang about this channel more alot of people come here regarding the expansion
One minute
you can put anything after the _ and i'm honestly not sure if you even need it
you can test for me lol
Now it looks like &b%math_{prisonranksx_prestige_name}*5[precision:0]%%percentsign_% &3&l-> &b%math_({prisonranksx_prestige_name}+1)*5[precision:0]%%
And it works. Thanks.
v nice
@lyric lion I changed it to this ^
and it's now on the ecloud and validated so you can download it in game hopefully within 2 hours
So my console is getting spammed with this...
[18:42:35 INFO]: [NametagEdit] As the error above suggests, you do NOT have any placeholder plugins installed. The placeholder API is merely an interface, it requires other plugins to function. This is NOT an issue with NametagEdit.
NametagEdit is working just fine, and I have papi on the server... Is there anyway to remove it?
You my hero β€οΈ
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
put your log there
can you send the full startup log?
or at least the first part of it where it starts?
lol
that can help
lol?
||why in this channel and not in #off-topic... people really never read channels' topic||
ok
So... I just leave a link to the message in #off-topic because my situation happened on this channel. https://discordapp.com/channels/164280494874165248/164523548390457355/721442835932512379
Hi I have a problem with Statistic expension
/papi ecloud download statistic works but when I restart my server Statistic Expansion could not load
Error: https://paste.helpch.at/huwexebide.css
(Sorry for my english π )
Yep
It's the same error
Hum I insisted on the download / reload and it's resolved
but now the problem is that the placeholder %statistic_time_played% does not work, the time is frozen
wdym by its frozen? if you do it now and after 2 minutes its the same time/
Yes, actually my "game time" it's 2h 59m 30s and it does not refresh
I used /papi parse me %statistic_time_played% it's same Time does not refresh π€
Yep I try %statistic_mine_block% and not refresh after mining π€
1.12.2
go to plugins/PlaceholderAPI/expansions and delete Statistic from there
then download it from there
and add it in the same folder again
and do /papi reload
After this, all Statistic placeholder are "broken" it displays the expression
Yes i just did
And it's the same error ( https://paste.helpch.at/huwexebide.css ) π€
ok so go back to that folder and delete the statistic expansion
do /papi reload
then do /papi ecloud download Statistic 1.7.0 and /papi reload
and test it after
:sad: It's same The time does not refresh but display values
Oh, i reset my spigot.yml and now the time works π€
Thanks anyway ^^
Do you have the Bentobox/BSkyblock expansions installed?
it's built-in the plugin
and @austere hawk you still didn't gave us the full placeholder you used
Hello
https://imgur.com/Jc10OD8
The problem with Uptime, it is not clear that it shows white only for some reason.
Can't you just color it in the scoreboard config?
Can some one help me with my .Js having a hard time parse a string saved in a var.
var p1 = "notch";
function getplayer() {
if (args.length == 1) {
p1 = '%bgj_'+args[0]+'_1_player%';
p2 = parseString(p1)
}
return p2;
}
getplayer();
tried a few bits clearly the above did not work π¦
script error because of the p2= line
if i just return p1 it prints out the joined text with out resolving the placeholder.
well i need to do something to it because its just returning the line
%bgj_ArgumentHere_1_player%
parseString() isn't even a thing on default js
var p1 = "notch";
function getplayer() {
if (args.length == 1) {
p1 = '%bgj_'+args[0]+'_1_player%';
}
return p1;
}
getplayer();
if i then run /papi parse me %javascript_phead_Colours%
it gives me back %bgj_Colours_1_player% I need it to then resolve that to a value ( should be a players name )
I am pretty sure you can't do that
was only trying to do it because, Dm dont seem to want to let me use an argument inside a placeholder inside the head- of a material setting.
Basicly I had this head-%placeholder_{arg}_last_of_placeholder% The placeholder returns a name just fine when used outside of the heads material but for some reason does not get a name when used in the head I think just guessing that the {arg} is not getting processed before it trys to resolve the placeholder or head resulting in no name being found. Was hoping by moving it to js to force its hand, but alas it seems i cant pass an arg into js and use that to build a placeholder to resolve...
resorted to making one menu per stat display rather than dynmicly changing the placeholder to each arena's name with an arg.
material: head-{arg} should work just fine
iof you remove it does it stop spamming?
i dont know
look at the
placeholder
var permission5 = "%parties_party%";
function anything() {
if (permission5 === "") {
return "&dJoin one!";
} else {
return "&d%parties_party%";
}
}
anything()
i mean it takes a lot to load
aaaah
maybe because titleamanger sqlite database
of players
i removed all the players
but didnt remove that file
material: head-{arg} should work just fine
@junior musk Yes it does but put that arg as part of a placeholder and it fails
that placeholder
%placeholder_{arg}_last_of_placeholder% doesn't exist
so it would explain why it doesn't work
I used that as an example I have a parkour plugin that has a placeholder that requires the arena name as part of the placeholder. It returns a player name
what's the placeholder?
Iβm at work on my phone, bit if I remove the arg from the placeholder and fill it with text it works
aaag I see what you mean
Itβs from blockyjump parkour
yeah I think I had the same problem before
placeholderapi placeholders parse before arguments placeholders
Yeah means u canβt use an argument as part of a placeholder seems wrong Iβm sure that works in other parts just not as a head material
idk, it didn't work for me in commands
Itβs working in my lore
And display name Iβm using the same placeholder there with the arg
the new args update wasn't out when I was still using DeluxeMenus
latest was 1.12.0
so it may have changed
Is there a placeholder that can determine if a certain player is online? I'm trying to make a staff GUI, and I think it'd be cool so people can see if the staff member is online or offline.
%player_online%?
Np
%parseother_{NickPlayzMC}{player_online}%
Is that right? ^
Is there any way to capitalize the placeholder? Right now it says "no", but it really bugs me that it isn't capitalized.
You can make a list of open commands.
open_command:
- help
- ehelp```
oh i see
What should happen when an argument is entered
like /help jbbbb
Open another GUI?
Yeah, so do something like
open_command:
- help
- help test```
Other than that, DM doesn't have support for wildcards or anything
https://gyazo.com/87da9dd5b43434d8e66666abec7de3fa
how can i fix this
ah okay
Guys :( i got recommended to have "DeluxMenus" as a profile plugin but there is one problem
I can't view offline player profile
Like why?
It's so important
@radiant owl,
This error occurs when there is a mismatch in versions between the expansion and luckperms itself,
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion
Once installed restart your server.
Can somebody help? I want to setup a custom messaging thing where it shows their rank & username, similar to how hypixel has it where it is "To [MVP+] {user}" and "From [MVP+] {user}" I use LuckPerms and Im unsure of the thing to put in the config that shows both their rank prefix and their username corresponding to their rank colour.
Hello! I am having issues. I have to do /papi ecloud download server and then /papi reload every time the server is restarted.
It stops working when i restart
Can somebody help? I want to setup a custom messaging thing where it shows their rank & username, similar to how hypixel has it where it is "To [MVP+] {user}" and "From [MVP+] {user}" I use LuckPerms and Im unsure of the thing to put in the config that shows both their rank prefix and their username corresponding to their rank colour.
@tropic forge you'd need to use placeholders
you'd need a plugin that uses PAPI placeholder and use from here https://github.com/lucko/LuckPerms/wiki/Placeholders
otherwise, you'd need a plugin that would support groups and use a different format for each group and has a config like:
mvp: "&b[MVP] %name%"
mvpplus: "&b[MVP+] %name%```
Hello! I am having issues. I have to do /papi ecloud download server and then /papi reload every time the server is restarted.
@unborn smelt are there any errors in the console when its restarted?
Doesnt sound normal
@cunning charm
?
@cunning charm I know, idk which placeholder I need
%luckperms_prefix% and then set the group prefix with /lp group mvp meta addprefix 5 "&b[MVP] &b".
The plugin doing DMs would need to support PAPI though
var list = BukkitServer.getOnlinePlayers();
var amount = BukkitServer.getOnlinePlayers().size();
function onlineList() {
if (args[0] < amount) {
return list.get(args[0]).toString().replace("CraftPlayer{name=", "").replace("}", "");
}
else {
return "offline"
}
}
onlineList();
does this look good or is there a better way to do it instead ? cuz I'm not that good in js x)
No
var list = BukkitServer.getOnlinePlayers();
var amount = list.size();
function getOnlinePlayer() {
return args[0] < amount ? list.get(args[0]).toString.replace("CraftPlayer{name=", "").replace("}", "") : "Offline";
}
getOnlinePlayer();
Also, list.get(), would return the instance, so you could just do this
var list = BukkitServer.getOnlinePlayers();
var amount = list.size();
function getOnlinePlayer() {
return args[0] < amount ? list.get(args[0]).getName() : "Offline";
}
getOnlinePlayer();
I tested that but it returned CraftPlayer{name=<player name here>}
I'm launching my test server, I can provide a screen
wut
ah
you used getName
yeah I'm stupid...
it works, thanks π
Hello ! I would love to use the Pinger Placeholder, but our server isn't in English so it looks weird to have "Online" next to our lang. I found with NotePad++ where the message "&aOnline" is located, if I modify that I guess the extension will not work anymore. How can I translate it? Or could someone just make that little tiny change for me?
oops I didn't know that I see it thanks !
pinger:
offline: '&cOffline'
check_interval: 30
online: '&aOnline'
yup ! thanks for the quick answer
so when I do /papi reload I don't get any error and the expansion loads.
but when I use it I get a script error
Caused by: jdk.nashorn.internal.runtime.ParserException: <eval>:1:171 Expected an operand but found error I have no idea what this means because I can't find anything wrong
@mellow skiff yo