#placeholder-api
150650 messages · Page 6 of 151
I don't see a placeholder like that
Hi, I have a problem with the Vault extension
https://i.imgur.com/eLMo3f1.png
I install it per command then reload and it still is'nt installed
The download succeeds and the extension is downloaded to the correct folder
but it does not load
any ideas?
Version: https://i.imgur.com/zzdfxmh.png
Any ideas? (restart does not help)
Do you have vault installed?
solved, was a problem with vault not loading properly. sorry for the inconvinience!
is this how you use progress ? %progress_bar_{statistic_mine_block}_c:&a■_p:&e■_r:&7■_l:10_m:100_fullbar:&aCompleted!%
?tryandsee
👍
using voxelsniper internal database error when attempting to /u [number here]
anyone know a fix?
Would help if ya showed the error, also #general-plugins
oops thought i was in it
I was wondering how to use the placeholder %player_name% inside another placeholder. Is this possible at all?
depends if that other placeholder supports it
I was looking at using the DeluxeTags placeholder: %deluxetags_tag_TAGID and I wanted to use the player's name as the TAGID. So would it be possible to do %deluxetags_tag_%player_name%%
I don't think that placeholder supports placeholder in it
and if it did, it would be {player_name}
then it doesn't support placeholders in it
Its possible to get in other server, the placeholder of other server? (@ me if u response)
you can with plugins like GlobalHolders (or I think it was renamed to something else)
bruh
that site is even banned here x)
as I said, it's premium, and on a site that doesn't seem very good because of the problems it had recently
1 sec I remember seeing another plugin on spigot don't remember the name tho
but just so you know before you use this if you get any errors with this or problems don't come here for help as PAPI doesn't support bungee itself yet
@turbid tide you know how that plugin work? i don't found tutorials about it
nope
never used
it
To use it, just put the latest JAR from here in your BungeeCord plugins folder and the same one again, in your Bukkit, Spigot or Paper plugins folder. The main class you want to use is BungeePlaceholderAPI. It currently only has four methods, but if you want a feature from PlaceholderAPI ported to BungeeCord, just write an issue here.```
seems like you need to write your own plugin to use it
ugh didn't know that
i have the api for online playyers in there and i was working but i switched to pex and now it doesnt
is papi 1.16 out?
Check pins.
Hello guys! Can I count at once 2 or more worlds/bungee server using %server online <world1>,<world2>%/%bungee count <server1>,<server2>%
using math expansion yes
e.g %math_{server_online_world1}+{server_online_world2}% for example
thank you so much!
no problem
Statistics + LeaderHeads
LH is a premium plugin btw
it can make leaderboards (top) for a lot of placeholders
I think i have LH but idk about Statistics
Statistic is a papi expansion
player name and value
Am i allowed to decompile and edit it to make it display name?
Or i can't decompile extensions
Or what?
Expansion
OMG i can not type
you can use the PlaceholderAPI expansion ParseOther to get the display name of the player name from a placeholder
and no you can't decompile it
oof
but you can still use the parseother expansion instead of changing the source code ¯_(ツ)_/¯
hey guys
i wanna tell u something
i love placeholderapi
and i wanna to say thank you
for this great plugin
wrong channel jeah thanks
peace out
I think if i use parseother expansion i can do /profile for offline players right?
Like there is a way to do that?
?tryandsee
Wt is that?
you can't do
that for offline players
I mean some things you can
but not all because most expansions don't support offline players
you can do it for the online players tho
oh I see
I think caching the last parse on sql will be good?
don't rly know. not good at thist things xD
statistics doesnt have any leaderboard placeholders
instead, u can use LeaderHeads plugin
Does %vault_prefix% support offline players?
.
Yup i lagged that's cool
Oof fixed the internet after 1099 years
Hey?
I think it does
@jade flume I think it depends on the underlying groups/permissions plugin
Ultraperms?
?tryandsee
I have this problem that boss plugin and chatcontrolpro are breaking my javascript placeholders
they're preventing them from loading for some reason
why would this be
boss plugin does it too
don't know if there is any fix for this
just boss itself
is there a way to disable the javascript in chc?
no idea. either check the config or contact their support
oh i have
and?
well i made a ticket yesterday on github
that was closed without response and said to post it on their customer service website
posted on their website 8hrs ago
nothing
welp the best you can do is wait for their response. I've not heard of a solution so far
Hello! I currently made this placeholder:
"%luckperms_expiry_time_access.spawn%";
function returnEmpty()
{
return placeholder == "" ? "&cYou don't have" : placeholder;
}
returnEmpty();```
Could someone pleeease help my make so if the placeholder `%luckperms_check_permission_access.spawn%` returns "Yes" then instead of "&cYou don't have" it will return "&aIt is permanent".
I would be way veeery happy if someone could help me
var placeholder =
"%luckperms_expiry_time_access.spawn%";
function returnEmpty()
{
switch (placeholder) {
case "":
return "&cYou don't have";
case "yes":
return "&calt is permanent";
default:
return placeholder;
}
}
returnEmpty();``` try this
omg!!!! how fast, I will update in a sec, thanks in advance!!
I tested it, but the placeholder %luckperms_expiry_time_access.spawn% will never return "Yes", it is just a countdown when you have access.spawn for a time. The placeholder that returns "Yes" is %luckperms_check_permission_access.spawn%
oh I see
my bad
didn't see the permission under
var placeholder2 = "%luckperms_expiry_time_access.spawn%";
var placeholder = "%luckperms_check_permission_access.spawn%"
function returnEmpty()
{
if (placeholder == "yes")
return "&aIt is permanent";
if (placeholder2 != "")
return "&cYou don't have"";
return placeholder2;
}
returnEmpty();``` not pretty but should do the job
I'm getting "Script error" now :((
Yes! I spotted that, tried removing it but that wasn't the problem :((
Oh and also, why (placeholder2 != "") when it is not equal to "" it should return "&cYou don't have"? It should be the opposite I guess, because when %luckperms_expiry_time_access.spawn% returns empty (is equal to "") then it should return "&cYou don't have"
There's a ; missing line 2
hey
Ok I will also fix that
and you removed the default case
its hard when you type in discord xD
x)
default case?
yeah Ahmed
idk, you added that in the first script
but removed it in the second
which resulted in two returns things in the second case x)
oh well first script had a switch
ah k
but there are still 2 returns x)
Works great!!!!
well yeah
Cool @odd jay
Thanks a lot guys!
@turbid tide i have never wrote a papi script but i made a depending plugins on papi I don't even know what is diffrence
Lol
well in script you can't do everything you can do in a plugin
it doesn't allow you to change things
just to check things and return something based on what you just checked
Just placeholders?
you can check anything. you can use server and player methods
as well
just can't change or affect anything ingame
also you can save stuff using data
ugh not rly
So a plugin is better
🙂
Hello, can someone help me create a placeholder with javascript, pls?
In case someone wonders, I've made a correction on the previous javascript where you helped me.
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
return placeholder2;
}
returnEmpty();```
I edited the line 6, added so that placeholder2 should be empty, because when you temporary grant the permission access.spawn, then the `var placeholder` would also return "Yes", but now it will also require to have the permission on "Yes" but with no expiry time to set in "&aIt is permanent" :))
that does what exactly?
Are you asking to me? xD
O
no I'm not
HiddenInNight asked for a javascript placeholder
but didn't give any other information
Bliitz, sorry if I bother, now It would last something to change the time format of %luckperms_expiry_time_access.spawn%. Could it be possible on the same javascript?
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
return placeholder2;
}
returnEmpty();```
So a parse example of the time format on `%luckperms_expiry_time_access.spawn% ` is "10d 18h 10m 29s" (days hours minutes seconds). Is it possible to change that format to "&f10&7Days &f18&7Hours &f10Minutes &f29&7Seconds"?
Are you up to help me with this one pls? :((
This one might be tough :(( tho if you aren't able right now is all ok
but here is an advice
use .split to split the string in a list. split them on spaces
then use .replace to replace d to days etc.
well I saw the example of tomi and it helped me to create my placeholder. 😆
then return it using array[0] + array[1]+ etc.
Denada :v
oh ok HiN
Thanks blitz! I will take those advices in mind
Tomi maybe a bit later if I finish my stuff
Sure, I will come back if I can't with it 😄 good luck with that blitz
ty ty
ok @odd jay I kind of finished my thing. Figured it out xD. Took me 30 minutes but got there in the end
Really? lmao xD
Yeah, when placeholder2 isn't on "", then it is because the player has temporary the permission "access.spawn" and the countdown is running
k think I got it. time to put it in practice
I can help you too, if you share the changes :D, thanks in advance sir
nah no worries doesn't look so hard to do
well I'm probably not doing it in the easiest and best way but still
cool! can't wait to see it working xD already happy
ok I think I thought of a even better way
better:D!
"&f10&7Days &f18&7Hours &f10Minutes &f29&7Seconds"``` this is for me to see
ugh for minutes do I do &7 as welol ?
well*
Yup, remember that if the player for example has the permission for only 7 hours, and 29 seconds, it would be "&f7&7Hours &f29&7Seconds"
yeah I know
yup, same with minutes
well the problem will be
when you have 1 hour
1 day
it will say 1 hours
...
var placeholder2 = "%luckperms_expiry_time_access.spawn%";
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
var changed= placeholder2.replace("d", "&7Days&f").replace("h", "&7Hours&f").replace("m", "&7Minutes&f").replace("s", "&7Seconds")
}
returnEmpty();```
didn't test it
but you can test it for me
also add ;
at the end
I keep forgetting them
Yeah, not a big deal with that, but isn't there a way to check if the number next to (for example) Days it is 1, and if it is "1Days" then it will turn "1Day"?
well I could go for the other way
using split
it will be a lot longer
and a lot messier
if you want
O let me see the first try, I want to see it, looks good
and a lot messier
Nvm, I wouldn't touch that javascript anymore because that is the only thing I need for it and then it would be definetely finished
just lmk if this one works
Sure, gonna test it and update in a sec
Hmm
the "its permanent" thing works great, "You don't have" thing also works great, but when I turn the temporary permission, the placeholder returns empty
Below var changed and all the values right? following the spaces
Yup, script error
:(( shoot, really?
maybe I could use lastIndexOf if that one works to check
Seems like a good idea to use that one
well, actually idk
lastIndexOf would check for the last letter of the value?
no
it will check where a substring appears last in a string
ok try this
var placeholder2 = "10 d 10 h 10 m 10s";
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
var changed= placeholder2.split(" ");
if(changed[1].lastIndexOf("d") != -1){
return changed[0].replace("d", "&7Days&f ") + changed[1].replace("h", "&7Hours&f ") + changed[2].replace("m", "&7Minutes&f ") + changed[3].replace("s", "&7Seconds")
}
return changed;
}
returnEmpty();```
but only try it with a permission
that goes for days
sure
var placeholder2 = "%luckperms_expiry_time_access.spawn%";
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
var changed= placeholder2.replace("s", "&7Seconds").replace("m", "&7Minutes&f").replace("h", "&7Hours&f").replace("d", "&7Days&f");
return changed;
}
returnEmpty();``` this is my last try. I have to go take a shower
you don't have to change anything to this one
Works for everything! except seconds, the number is shown but the "&7Seconds" nope
ugh
last one ```
var placeholder2 = "%luckperms_expiry_time_access.spawn%";
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
var changed= placeholder2.replace("s", "&7Seconds");
placeholder2 = changed.replace("m", "&7Minutes&f");
changed = placeholder2.replace("h", "&7Hours&f");
placeholder2 = changed.replace("d", "&7Days&f");
return placeholder2;
}
returnEmpty();```
dk why it wouldn't show seconds
really? why?
oh nvm
just the spaces
or are those alright ?
oh they are
because they are already there
welp nice it works
It is ok without spaces, do you want a screenshot?
nah
I'm listening xD
I tried with a 4 hours and 30 seconds one, it turned "&f4&7Hours &f30&7SeconDays&fs
right
that makes sense
welp I'm going to take a shower now
and I'll take a look a bit later
XD
Np! Thanks anyways!!
It is still appreciated, you already helped a lot
If I get to make something successfull on it I will share it and probably ask for add it on Community Javascripts
I mean its probably possiblle in some easy way that I can't think of
wait just got an idea
xD
I hate it when I get ideas
Cool! 🍮
lmao
var placeholder2 = "%luckperms_expiry_time_access.spawn%";
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
var changed = "";
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
if(placeholder2.includes(s))
changed= placeholder2.replace("s", "&7Seconds");
if(placeholder2.includes(m))
changed= placeholder2.replace("s", "&7Minutes&f");
if(placeholder2.includes(h))
changed= placeholder2.replace("s", "&7Hours&f");
if(placeholder2.includes(d))
changed= placeholder2.replace("s", "&7Days&f");
return changed;
}
returnEmpty();``` @odd jay
try this one
sURE!
let's see if actually includes
works
because I was just told never tested it myself
xD
the plugin returns a timer
because they look like variables
for a permission
i don't think you get it
and he wants it to be Days Hours Minutes Seconds

var placeholder2 = "%luckperms_expiry_time_access.spawn%";
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
var changed = "";
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
if(placeholder2.includes("s"))
changed= placeholder2.replace("s", "&7Seconds");
if(placeholder2.includes("m"))
changed= placeholder2.replace("s", "&7Minutes&f");
if(placeholder2.includes("h"))
changed= placeholder2.replace("s", "&7Hours&f");
if(placeholder2.includes("d"))
changed= placeholder2.replace("s", "&7Days&f");
return changed;
}
returnEmpty();```
here
xD
cj first I checked in .replace and saw them in "" so I was confused why you're correcting me xD
ok dude
xD
what
var placeholder2 = "%luckperms_expiry_time_access.spawn%";
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
var changed = "";
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
if(placeholder2.includes("s"))
changed= placeholder2.replace("s", "&7Seconds");
if(placeholder2.includes("m"))
changed= placeholder2.replace("m", "&7Minutes&f");
if(placeholder2.includes("h"))
changed= placeholder2.replace("h", "&7Hours&f");
if(placeholder2.includes("d"))
changed= placeholder2.replace("d", "&7Days&f");
return changed;
}
returnEmpty();```
here xD
if(placeholder2.includes("s"))
do if statements work that way in javascript? @turbid tide ||without brackets||
tomi how would that cause an issue
look
("s")
(placeholder2.includes("s"))
OH
at the start
cj didn't start this myself xD
He is right
So what could be the script error?
what's the error in console
O
Tomi?
letme check 1 sec
UHj It lags my pc to like 3 fps
what does
the error on console is spamming
?paste
Suresure, I always use hastebin xD
meh
My host doesn't support .log and I have to download it (it is 168MB), but I think I see the cause of it, on the console
yup, placeholder2.includes on line 1 is not a function
sorry for not using hastebin, I could barely take a screenshot to it
Spigot

Spigot 1.8.8
change to paper
Why paper? I currently have like 75 plugins, will Paper be compatible with all of em?
well currently I don't think this js will work on 1.8.8 spigot
not sure about paper, blitzz might know more
Hmm why would it be that blitz?
throw it on a test server and see
Yes, I will just put Luckperms and Papi on it, I will use Paper 1.8
Last version of both
Finished
so I tested it on an empty server using Paper 1.8.8, I only pasted Luckperms and Papi (last version of both), still got the same error message, but hopefully it didn't spam, and I could make a hastebin, this is the message error https://hastebin.com/bofalahoga.cs
i do not know
So I guess another way that doesn't have ".includes" must be taken :(, I think it won't be possible, any idea Blitz?
can we go back to splitting?
Sure we can
or just edit the lp expansion
the lp expansion? are you meaning the time format? lp is using TimeUtils of Papi, I already even tried suggesting to lucko to add a way to change the time format directly but he told me that xD, the only way would be to change each expiry on javascripts
if you decompile and edit it you can do whatever you want
with TimeUtils on papi?
what is timeutils
what it uses Papi to make countdowns I guess, LuckPerms use it for the expiry/temporary permissions
i don't understand lp code
🤷♂️
it's all tied in
the javascript would work if the engine wasn't fucked
or whatever is going on
because i'm pretty sure if you tried it on latest, it'd work fine
Spigot 1.16?
K! I will test it on 1.15.2
is 1.16 officially out now?
Yup
I will update in 3 minutes
I'm still opening my minecraft on 1.15.2 xD, tho the server is ready
Still the same error, it is spamming since I'm on Spigot now
apparently on Paper, console error messages won't spam, thats a big pro lol
with the same cause
still using server.pro, should I try on a localhost?
yes
Ok, but I will first try on spigot 1.8.8
(because I already have a premade one)
or should I go for 1.15.2?
just go for whatever
I got a question why does %statistic_mine_block% does
x = number of blocks mined
Mined block +1 = x + 2
? (sorry for this example)
Use the pinned expansion Macro
I'm back, so it also happened on the localhost :(.
ok
Any chances that you are avaible to test it?:(
uh
I don't have your placeholders
i was looking for one of mine (that used .includes)
didn't find one
Oof, can you create a random simple one? just to test if it works with .includes
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
var changed = "";
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
if(placeholder2.includes("s"))
changed= placeholder2.replace("s", "&7Seconds");
if(placeholder2.includes("m"))
changed= placeholder2.replace("m", "&7Minutes&f");
if(placeholder2.includes("h"))
changed= placeholder2.replace("h", "&7Hours&f");
if(placeholder2.includes("d"))
changed= placeholder2.replace("d", "&7Days&f");
return changed;
}
returnEmpty();```
Shouldn't `changed=` be separated from the =? like `changed =`
Or is the same?
Hmm, should it be suggested then?
oh fuck
no you can't do it
need a different engine
fuck this look at this bullshit
String.prototype.includes is specified in ECMAScript 2015 ( ECMA-262 6th Edition). Nashorn engine implements ECMA-262 Edition 5.1)
nashorn uses 5.1 and includes needs 6
ffs so close
:((
ECMA5 doesn't have let or const, so good luck :)
?
:((
Let is for variable defined only in scope
I barely know how to use JavaScript and only wanted to finish that single javascript for my minecraft server since it uses it everywhere, so I will wait what Blitz says, and if he refuses to help, then I will just deal with the current javascript :(.
@turbid tide btw if you didn't see, includes doesn't work in nashorn engine
Also, don't use changed= "a"
?
Cause you are making the code think that changed= is a variable
really?
Hm..
I think that is still valid
By some points
Oh wait nvm what i said, they're still valid
Yeah probable, but cannot confirm since .includes crashes the console and won't let me test, I would need to take the .split way but idk how, I'm noobie :((
not crash, it spams a lots*
really?
Replace the changed
Huh? How can you test if it works on a Script Tester when you can't make the 2 first placeholders run the values that it should be supposed to show?
Replace the changed
sure
frosty with what
changed = changed.replace
with changed =
you don't wanna do what you're about to
you're gonna replace things you don't want to
there is a d in Seconds
the best way is split and build
If this is done, I will make sure this is submitted into the community javascripts xD
send a ss of what the expiry time looks like?
%luckperms_expiry_time_access.spawn%?
ya what's the format
Let me check my old Hangman script to check includes
#d #h #m #s the # would be a number, and if the number is 0 it will dissapear, an example (when 0 minutes):
10d 10h 30s
thienbao wym
lol
to see how you did it instead?
ah
it's easy
var placeholder2 = "%luckperms_expiry_time_access.spawn%";
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty(){
if (placeholder == "Yes" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
return placeholder2.replace("s ", "&7Seconds ").replace("m ", "&7Minutes&f ").replace("h ", "&7Hours&f ")replace("d ", "&7Days&f ");
}
returnEmpty();
wait
ok try that
@odd jay
should work ez pz
Ok there we go
just go for whatever
Replace includes with contains if it fails
sure, will have in mind
would java just take it over? O.o
because contains isn't a thing for js strings
if discord doesn't fuck me over i could send the whole thing
when was contains added I see nothing about it online
Idk
but in some cases if you access a String as a Java object as a property of some input, you really have Java and would just call Java methods.
from online ^
so java does take it over
you know to fix it then @odd jay
i beleef
?tryandsee
discord is not a recommended editor
hi
it worked with everything except for seconds
PlaceholderAPI does it work directly in bungee?
sure
yes?
PlaceholderAPI does it work directly in bungee?
@austere hawk Not yet, but it's planned
it worked great! so now I wanted to fix something but Idk how.
So when you told me to remove the space on the "s" I did that, and realized then when the countdown runs and reach to second 0, it dissapears, and the number that comes after turns the first, in this case, the minutes, and since minutes have a space "m " it won't work for 1 second, it will also happen with hours and days
any possible way to fix that?
also, is it possible to make it so if it is "&f1&7Days" it will convert into "&f1&7Day" and same with the other ones
uh
no idea rip
it just disappears 
go back to the drawing board and use contains
since it works apparently
really? cool, should I change it with the .replace?
K, I will scroll back
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
var changed = "";
if (placeholder == "aSí" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
if(placeholder2.contains("s"))
changed= placeholder2.replace("s", "&7Seconds");
if(placeholder2.contains("m"))
changed= placeholder2.replace("m", "&7Minutes&f");
if(placeholder2.contains("h"))
changed= placeholder2.replace("h", "&7Hours&f");
if(placeholder2.contains("d"))
changed= placeholder2.replace("d", "&7Days&f");
return changed;
}
returnEmpty();```
Now it only work for Hours :(.
But it does accept it!!:D
Nop, actually it only detects the first one
if it has days, then only Days
no worries, thanks!
I will wait for Blitz xD
You have been helping me for a long of time, I highly appreciate that cj
So in case someone wants to try to help this is the actual state of it:
var placeholder2 = "%luckperms_expiry_time_access.spawn%";
var placeholder = "%luckperms_check_permission_access.spawn%";
function returnEmpty()
{
var changed = "";
if (placeholder == "aSí" && placeholder2 == "")
return "&aIt is permanent";
if (placeholder2 == "")
return "&cYou don't have";
if(placeholder2.contains("s"))
changed= placeholder2.replace("s", "&7Seconds");
if(placeholder2.contains("m"))
changed= placeholder2.replace("m", "&7Minutes&f");
if(placeholder2.contains("h"))
changed= placeholder2.replace("h", "&7Hours&f");
if(placeholder2.contains("d"))
changed= placeholder2.replace("d", "&7Days&f");
return changed;
}
returnEmpty();```
Objectives with the Javascript:
1- Return "It is permanent" when the player has access.spawn on true without expiry. - Perfectly done 
2- Return "You don't have" when the player has access.spawn on false without expiry. - Perfectly done 
3- Change the time format of the countdown. So instead of (for example) showing "10d 1h 10m 1s", show it like "&f10&7Days &f1&7Hour &f10&7Minutes &f1&7Second" - Not done yet 
The current issues are that the format will work **but** it will only show it changed on the first number. For example, if days is the last number on the value, then it would show like this (for example): "&f10&7Days 1h 10m 1s", or if hours is the first number, then "&f1&7Hours 10m 1s". It only works for the first number... reason? We don't know.
The other issue is that there isn't done yet a way to detect if there is "1" for one of the values and change it to singular instead of plural (so instead of "1Days", "1Day", respectively).
Thanks in advance to anyone that tries to help. you can Ping me if you want.
You could use FrozenJoin and just not specify a first join action
When will the 1.16 version of PlaceholderAPI be released, there is no way to get ecloud data now
Check pinned messages
thank you
I get [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: error on startup, how can I fix this?
it worked before
I can't seem to get mVdw placeholders to work with the %mvdw<placeholder>%, can someone help
what placeholder are u trying to use? do u have the mvdw expansion installed? do u have mvdwplaceholderapi with an mvdw plugin installed?
/papi reload```
oh
yeah i have that
i didnt know you meant the ecloud
and yes, I have the mvwd plugin installed
The mvdw are loading in
but I cant use them idk why
what placeholder are u trying to use?
tokens_tokens isnt a placeholder according to the spigot page
Their all custom.
but it shows their loading in
even ones from essentials dont seem to work
what does /papi parse me %mvdw_tokens_tokens% return?
was there any errors when u downloaded mvdw expansion and reloaded papi?
Not at all
so its an issue with the mvdw placeholder then
@final shadow can you help?
@glass narwhal,
Wait, how does %bungee_total% work?
Am I supposed to have papi installed on proxy somehow?
I believe it accesses all the servers through redis and gets info that way
I meant, what do I need to do to make it work?
Where do I download the ecloud expansion?
I guess that's not possible then.
hello. just came here to say I have a problem with using PAPI in my own plugin. If PAPI is not installed (I made this softdepend (softdepend: [PlaceholderAPI]), plugin fails to load saying next thing
[23:36:31] [Server thread/ERROR]: Could not load 'mypluginnamewhocares' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: me/clip/placeholderapi/expansion/PlaceholderExpansion
Caused by: java.lang.NoClassDefFoundError: me/clip/placeholderapi/expansion/PlaceholderExpansion
Caused by: java.lang.ClassNotFoundException: me.clip.placeholderapi.expansion.PlaceholderExpansion
Code I use to check if it is installed
if (getConfigurator().config.getBoolean("features.placeholders") && Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
new PlaceholderAPIHook().register();
}```
i'm not sure I use correct channel
I mean yea, the import won't be found if papi is missing
lol
no wait. I still can't understand why it can't load without PAPI.
try {
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null && getConfigurator().config.getBoolean("features.placeholders")) {
new PlaceholderAPIHook().register();
}
} catch (Throwable ignored) {
}
if someone have time and probably want to help me (why) I can PM my repo
is there a specific needed java version for javascript placeholders to work?
what java are you on
should work
I had 1 js placeholder that used to work, until i tried adding a 2nd placeholder and it broke both
keep getting [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder:
send your config
Do you need main config or the javascript_placeholders.yml?
https://paste.helpch.at/gonekehihi.bash > config.yml
https://paste.helpch.at/usanivukem.shell > log
send the js cfg
the config
javascript_placeholders
also
what in the world is that
that's not a script
https://paste.helpch.at/jowicigayo.js > js cfg
https://paste.helpch.at/ubosulokuj.shell > java_placeholders.yml
No matter how I do it, it just doesn't work
@gleaming python what does /papi parse me %player_has_permission_essentials.fly% return?
'yes'
I just keep getting [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: error
# file: party_name.js
# type: string```
is this meant to be commented out?
ye
[16:46:02 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: party_name because thats where the error is coming from
its commented out already
and still the same error
just for the haspermission placeholder
[PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: haspermission
add
file: has_permission.js
engine: 'nashorn'``` to the javascript_placeholders.yml
same error
Can someone explain this error?
what's your server version?
1.15.2
hey what's the reason if i'm getting Failed to set ScriptEngine for javascript placeholder:?
using the latest version (from pins)
try adding engine: 'nashorn' in javascript_placeholders.yml under your file: FILENAME.js
That's the same problem I have ^
Try reloading papi /papi reload or restarting the server
Already did, more than once
Hi when i try to parse a javascript placeholder i get just the plain text i have already install the javascript extension but still don't get it to work
Yup
ty
Hi, when I want to link Bungeecord total players to DiscordSRV, the placeholder doesn't work.
I referenced this, but it still doesn't work.
%bungeecord_total% is the placeholder I used.
I have Bungee installed, and my config looks the same as the one on that page
that is so many versions behind the current one it looks like
i'd suggest updating to the current version
On all servers
It does
/papi parse <placholder> i believe
but just type /papi help
or /papi parse
or something
im sure theres a help message
I have to do /papi parse ayseany %bungeecord_total%
yea probably
And it returns https://seany.club/i/fPFc
that means its not working at all on your server
hmm
does it work with papi parse
On the server it returns a number yea
Weird
It says
# Sets the "Playing: ______" indicator for the bot.
# Can be a single, static value, or cycle through multiple different options
# You can preface the status with "playing", "watching", or "listening to" to set the activity type
# PlaceholderAPI placeholders are supported
So I was guessing its a PAPI issue
is disc srv running on your bungeecord or spigot servers
Spigot
and its parsing properly via papi's parse command
so it should be working
if they do in fact support placeholders
i'd submit an issue with them
@zenith scroll https://github.com/DiscordSRV/DiscordSRV/issues/792
someone already did it lol
they fixed it in a dev build if you want to try that
well you could try the dev build or jusit wait until its official lol
but thats probably the solution
nice
Yo so, I just updated to 1.16, seems like some older plugins aren't working now, does papi not support the old expansions now?
"some older plugins aren't working"
nope, expansions, they seem to not load though
I also have not been able to see the ecloud list, it shows the amount of pages, but no expansions
Are you using the pinned version?
oh, alright, i'll give that a try
ah, perfect, there was an issue with the LuckPerms expansion, seems like everything is fixed. Thank you!
@obsidian niche,
manual works when you type
On the e-cloud website, how do I update the placeholder list for one of my expansions?
Go to Your Expansions then Edit Expansion
Okay thanks!
uuid working but {player} not working pls help me
No one here understand what you even said..
papi mysql query uuid working
okey
but {player} not working
select money from users WHERE username = '{player}' this query not working
Uh what? Is that an expansion or what?
yeah there's a MySQL expansion
It's %player_name%, and ask the author of the expansion I guess
{player_name} instead of {player}
not wroking
And make sure you have the player expansion installed
Ask the expansion author 🤷♂️
Wot
You mean "how to contact the author"?
I don't seem to find any possible contacts from the author though
I mean, i found the author name, but where to contact that dude ;p
Also "quary" :)
Yea was just checking, idk ask cube to see if he has his discord
Hi, any info when update papi to 1.16?
good, thanks
what ?
i get this error with the statistics expansion
12.07 17:04:46 [Server] ERROR [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.mcstatistics.StatisticsExpansion
12.07 17:04:46 [Server] ERROR [PlaceholderAPI] org.bukkit.Material.isItem()Z
how to fix tags spaced? is there a way
uh where my javaskript folder ??
ive reinstalled mutiple times and no javaskripts.. ill try maybe making a folder
Does somebody knows how to display in the lobby how many players on a other server?
for placeholders?
Thank u
https://gyazo.com/e3c2858a2459beb81ec941d10550e618 how fix this with palceholderapi? there was way before
huh
or players
yeah but that problem is that this only display the amount of players that are on that server
Not on a other server
The Placeholder is in the lobby.
world
i use bungeecorde
ahh
for another server
okay
is this even possible?
oh
im sorry
you pasted the link twice
My deluxe tags are kinda bugging out
use the dev build pinned
https://www.spigotmc.org/resources/medieval-factions.79941/ is there any placeholders for this? or what
@carmine veldt
when will be papi for 1.16 version on spigot
i'm not tried 1.15 version on 1.16 i hope works
Does somebody knows how to display in the lobby how many players on a other server?
@hearty tapir Somebody got an idea?
@grim frost check pinned messages
okey thanks
what does /papi parse me %jobsr_user_jlevel_Oduncu% ?
Does EzPrestige have a PAPI placeholder for the cost of the next prestige? There was an MVDW placeholder for this, but the PAPI wiki only displays placeholders for current and next prestiges.
Yeah... I got that.
I used one for FeatherBoard, but I'm changing to KiteBoard.
No, it displays the ID of the next prestige.
{ezprestige_nextprestige_cost} is what I used.
yeah I get it but doesn't look like there is any
Can anyone help me with my issue please?
what's your issue exactly?
Dang, that sucks. Would one exist for MVDW and not PAPI for any specific reason?
Ever since i updated to 1.16.1 some placeholders are not working
https://imgur.com/a/CheUf2j
In 1.15.2 it worked fine look.
https://imgur.com/a/ikLtaCg
Any ideas?
not sure actually
and it doesn't work if you do /papi parse me %placeholder% either?
Nope nothing
and all you changed is the server version?
Yes from 1.15 to 1.16