#placeholder-api
1 messages Β· Page 82 of 1
Contact the plugin author
It's likely either removed or in a older version if any is available, and if it isn't in the expansion you'd need to contact the author to get it added and put onto the cloud so you can download it from the cloud and get it working.
Is that placeholder working @sour laurel? Can you please try it for me using the papi's parse command?
If it's working let me know and I'll add it to the wiki.
It could be just missing from our wiki.
Do you have a link to the plugin page?
Other trs placeholders are working?
Ok then, its either not a placeholder or a broken one, contact the plugin's author to add/fix it if you want it.
understood
Well it seems that it exists in GH source code
Maybe not in a live update yet, contact the author anyway.
No it is but he's doing something super weird. https://github.com/BradleySteele/TimedRewards/blob/master/src/main/java/me/bradleysteele/timedrewards/placeholders/replacer/PAPIReplacer.java#L74
I would say contact the author of the plugin.
Yeah wtf is that code
tf #ecloud-updates ?
Sadly heβs not here to question about it
I was going to ask the same thing @bronze bison
Anyone able to help me? I've done /papi ecloud download deluxetags, then done /papi reload but still displaying as %deluxetags_tag% in chat.
Which chat plugin?
Deluxechat
Yeah so if you head over to #spigot-linking I'll be able to help in #deluxechat
I've linked my spigot account π
Neat let's move to #deluxechat
Yeah cj, don't like that we can't contact the eCloud devs if they aren't here
Anyway, if wont get verified until (s)he fixes it
Will this plugin support 1.15.x or does it already?
I'm asking this because i'm going over all my plugins that i have and to see if they support is so i can update my server to it in the future
Current papi will work on 1.15
But there is a dev build that is built against 1.15 here if you wanna beta test it for issues http://ci.extendedclip.com/job/PlaceholderAPI/
Guys, PAPI cant find my JS file, help please!
yes
hi i just updated my luckperms expansion with the command /papi ecloud download LuckPerms
and then did /papi reload
and now none of my placeholders work
i tried restarting the server
actually not all of them just most of them
is this because i am only using the latest release version and not the latest dev build?
Luck kinda goofed up, since the latest expansion only supports the v5 version of lp,
I recommend downgrading the expansion
ok thanks
where could i find the expansions?
i mean where could i download them from?
oh found that i can do it with /papi eclodu download LuckPerms 4.1
thanks anyway π
everything works fine now
π
i do have another question tho π
i am using TempFly plguin
and every time I do /papi reload the placeholders for that plugin stop working until restarting the server
is this a problem with the plugin expansions ?
Try reinstalling the expansion
Hello i need help with PAPI i want make a playtime plugin so I have add the api and I have make that
if(cmd.getName().equalsIgnoreCase("playtime")){
String pt = "%playtime_player% temps.";
pt = PlaceholderAPI.setPlaceholders(p, pt);
p.sendMessage(pt);
}
And I have make the command: /papi ecloud download PlayTime, but in the chat that just say: %playtime_player% temps.
How can help me. Thanks for advance.
What?
Sotty I'm french π
Can you speak more clearly please.
If you are trying to code a PlayTime plugin that won't work like that.
Ok but why π
Cause it wouldn't unless it's already a expansion?/
as you need a expansion to do the placeholders?
Just .... extends PlaceHolderAPI { ?
Yikes
I try XD
@turbid tide contact the dev of the plugin and tell them to check the wiki. They are missing the persist method in their expansion class and itβs being unloaded on reload
will do so
When downloading LuckPerms with /papi ecloud download LuckPerms I get the internal error message. (Once reloaded) I've attempted to restart the server other than use /papi reload etc. However it's not working this only seems to be an issue when using LuckPerms... (Using Latest version of both LuckPerms & Papi)
What luckperms are you on? 5 or v4.4.1?
"latest" it not necessarily a version number π
v5.0.23
Try using v5.0 of the expansion
/papi ecloud download luckperms 5.0
Also, just a heads up for the next time you get an internal error message, it helps us out a lot if you check your console/log and find the error for us π
im running papi on my survival and skyblock servers. when i use /papi ecloud status on survival everything seems fine but on skyblock it says No cloud expansions are available at this time. even though it was working last night. a server restart did not fix the problem and both servers are hosted on the same physical server. both are running papi 2.10.4
what might i be doing wrong?
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.
Also sometimes you just need to restart, some hosts are funky on it.
So i installed essentials x 2.17 (idk if this is relevant to papi), restarted the server and now I can't install ANY placeholder, saying i got internal error
Please ping me when coming up with a solution
?asktoask
smh
How do I set Relational placeholders and normal placeholders in the same string? I'm trying to use PAPI.setPlaceholders(player, PAPI.setRelationalPlaceholders(player, another, text)) but sometimes it crashes, using RelCon
So, idk if it's me, but latest placeholderapi does not update placeholders correctly. I have a network, and it happens on multiple servers. Mainly by placeholders that has todo with numbers. Example playercount, redisbungee, tokens, coins, (my own core that includes levels) also does not update the placeholder. it only updates by rejoin. I currently downgraded back to 2.9.2 since that one works great for me.
Hello everyone I need some help
I was wondering if there is a prestige placeholder displaying what prestige the users are
https://helpch.at/placeholders#ezprestige @median kite
@nocturne sky can you explain "crashes" please?
@austere hawk some expansions, like bungee and pinger have an update interval that you can change in papi's config.
And the placeholder update is up to the plugin u're using the placeholder in, like in scoreboard, you can set the update interval for the placeholders.
%ezrankspro_player% %ezrankspro_displayname% %ezrankspro_world% %ezrankspro_rank% %ezrankspro_rankup% %ezrankspro_cost% %ezrankspro_cost_formatted% %ezrankspro_balance% %ezrankspro_balance_formatted% %ezrankspro_difference% %ezrankspro_difference_formatted% %ezrankspro_progress% %ezrankspro_progressexact% %ezrankspro_progressbar% %ezrankspro_rankprefix% %ezrankspro_rankupprefix% %ezrankspro_lastrank% %ezrankspro_lastrankprefix%
No prestige placeholder @bronze bison
prestiges are in ezprestige. not ezrankspro
π
@bronze bison i am not talking about just pingers.
It happens by a lot placeholders that requires updating
I gave an answer about othe placeholders too.
c'mon guy please, help me
perhaps show the error BRUH
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
Luckperms ..
Remove the luckperms expansion, and what luckperms version are you using?
ok, remove it at all and reload papi.
I mean, remove the luckperms expansion.
i don't have any .jar files or ANY luckperms folders in the sv file
Nor it's expansion downloaded
Well, then I dont know how it would say something about the luckperms api if it isnt installed, nor the expansion is.
i'll just have to config all of it again
No you don't, double check if the LuckPerms expansion is in plugins/PlaceholderAPI/expansions folder
If it is, then delete it and reload papi
@bronze bison did that and fixed it
π
the luckperm expansion is only for v5
@bronze bison it was because p2 was null at some point, it was giving NullPointerException
I rewrote it to check if p2 is null and return null instead. I don't know why it was sending null to the method
So by that, I understand from you that you have solved it?
yes
Ok cool π
Anybody know why I get an internal error every time I download from the ecloud?
Most likely an unhappy expansion
Yeah what version of luck perms do you have @paper sable
I changed to pex because luck perms kept deleting perms randomly. It was being so odd
Ah, so just delete the luckperms expansion
I already did that
from placeholderapi/expansion
Also, DeluxeTags won't keep my new tags. Those also delete randomly
My servers acting wack
ty
Yw
so so the last error around like 548 is it trying to load the luck perms expansion
19.12 19:55:27 [Server] INFO java.lang.NoClassDefFoundError: me/lucko/luckperms/api/LuckPermsApi
Oh shoot it is still there
I could've sworn I deleted it. I deleted a few others must've missed it
Yeah just clean up anything ur not using
Any ideas as to why my player ranks aren't appearing in chat? I'm using pex and deluxechat
Wait pex isn't working now wtf
Which placeholder are you using in deluxechat
19.12 19:54:47 [Server] INFO org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml```
O_o
Did someone try to edit the plugin.yml?
that wont stop the plugin.yml of pex
Oh jk it's still there
lol
Idk it did that once I added EzRankPro
Yeah idk let me restart and see
I'll do that.
It's most likely cause you have new versions of plugins on a 1.8 server
could explain the invalid plugin.yml error
and epicspawners/spichoppers are also complaining that you have a 1.13+ version of the plugin installed
It says on the plugin website it's compatible with 1.8 but the dev is literally saying she's too lazy to help me rn
Also I downloaded a fresh version of Pex, the same version and everything and it's still not working.. O_o
Where are you downloading pex from?
Cause it looks like PermissionsEx v1.23.3 was the last 1.8 supported build
You should delete the jar and reinstall it
As thereβs no way another plugin can interfere with another plugins plugin yml
anyone that would like to help me?
hey
I am having issues with PAPI and LuckPerms Expansion
I am using latest PAPI and LP
and I got error when I reload the plugin
try downgrading the LP expansion
do /papi ecloud download 4.1
sorry /papi ecloud download LuckPerms 4.1
and /papi reload
I will try
oh Ty
it works
btw
We have some custom placeholders via javascript expansion
and those placeholders doesnt work tho
are you sure you used the placeholder right?
it worked at old server
did you change your server version?
``var name = "%superior_island_name%";
function getName() {
if (name === " " || name === "" || name === "None") {
return "&cβοΈ";
}
return name;
}
getName();``
no
but I updated all plugins
idk rly know what the problem could be i am not rly used with javascript
Dont use the symbol itself @dreamy hull, use it's unicode return "&c\u2716";
This site is useful for such a stuff https://unicode-table.com/en/
But if u didn't find that symbol there, just google <The symbol> unicode
Well, from my experience with js expansion, it doesn't all the time
It could be because of different java version, not sure.
still doesnt work
Any errors? What it returns?
Hey !
Thers is a way to use "%player_has_permission_<permission>%" and return a configured message instead of "yes" and "no" ?
But without changing "yes" and "no" in placeholderAPI config as it would broke any other placeholder that use yes/no :/
javascript placeholders
Yeah, that's why I thout :(
unfortunately I'm a noob with javascript π¦
u have a dev?
not really :/
aBooDyy help me sometimes but he's busy with exams so I won't ask him ^^
what do you want it to display?
how they dont work @dreamy hull ?
We normally created some placeholders
how are you using the placeholder?
but when we try to use them
they doesnt show up
it just looks like %javascript_placeholder%
did you put the file in the javascript_placeholders.yml?
instead of true "&8[&aβοΈ&8] &a&lAtteint
instead of false &8[&cβ&8] &c&lNon atteint
yea
it worked before
but I just created a new server
and updated plugins
and it doesnt work
@meager vault thats just a basic if else statement, you said you are a noob means you already tried js?
what was the problem?
I saw some javascripts but for no I really don't have time to learn it ( but in some months I'll learn some things to create little javascripts ^^ )
When I was converting those files into a new server
I forgot to register those placeholders in js_placeholders.yml
Hello, i have a question. When is been updated on 1.15?
I am on placeholder-api room, so, for placeholderapi π
oh xD
np
is here someone who can make me a placeholder via JS?
I dont want something hard
I want to make something like:
When you are at your island you will have Personal Island Scoreboard
When you are at someones island you will have Scoreboard with informations about the island
And when you are at spawn you will have scoreboard with main informations
sorry for my english tho
but you would have to change all the scoreboard @dreamy hull right?
ooo
# this method can be very intensive for certain non cached
# placeholders.
# It will look for scoreboardname.yml files matching the result
# of the placeholder.
# Replace "*" with an actual placeholder (ex. "PLACEHOLDER:{isflying}" )
# KEEP IN MIND: Fast switching scoreboards is not a good thing.```
do you think you can make the placeholder?
well its also a simple if else that you already have made in the previous js placeholders, but you would have to get the checks correctly
you using which skyblock? askyblock?
SuperiorSkyblock2
What about me ? :/
what do you want to make?
Use "%player_haspermission<permission>%" and return a configured message instead of "yes" and "no"
instead of true "&8[&aβοΈ&8] &a&lAtteint
instead of false &8[&cβ&8] &c&lNon atteint
hmm i dont think there is a placeholder for knowing if the user is member of the island or no
wait what is this %superior_island_exists%?
yes there is
try parsing it on user who is in an island and a member of it
then you've got what you need to make the placeholder
superior_island_location_leader
this would be the placeholder
and it will compare with superior_island_leader
have you tried doing it?
if superior_island_location_leader === superior_island_leader
he is at his island
I will try
thats only if hes the leader tho
islands can have different members
oh ok
superior_island_leader will show a leader of island where you are member
and superior_island_location_leader will show a leader of island where you are standing
oh yeah
@meager vault ```var members = "<your placeholder here>";
function getMembers() {
if (members === "false") {
return "No";
}
if (members === "true") {
return "Yes";
}
return members;
}
getMembers();```
oh
wait
I will change it
xD
π
function getPermission() {
if (permission === "false") {
return "No";
}
if (permission === "true") {
return "Yes";
}
return permission;
}
getPermission();```
like that
thanks a lot π
That it does
Also no need for the last return permission;
It's a boolean so it has only 2 return types
I am only able to make some in Batch
xDDDD
@alpine anvil so will you be able to make it? π
or? ^^
var permission = "<your placeholder here>";
function getPermission() {
if (permission === "false") {
return "No";
}
return "Yes";
}
getPermission();
Try this anyhow
you failed doing it @dreamy hull ?
you just did above
ah
but It needs to make more checks
and it will return 3 values
Personal
NotPersonal
Spawn
and maybe PVP tho
we can make it via Regions
if is it possible
yea worldguard has placeholders
and I really dont know how to make it
you could use switch statement
idk what even it is
xD
it will check 2 placeholders
%worldguard_region_name%
and
%superior_island_location_leader%
I mean var
I set ```
var permission = "player_has_permission_test";
function getPermission() {
if (permission === "false") {
return "Notest";
}
return "Yestest";
}
getPermission();```
and when I do /papi parse me %player_has_permission_test%
And it returns "yes"
Same with ```
var permission = "player_has_permission_test";
function getPermission() {
if (permission === "false") {
return "Nott";
}
if (permission === "true") {
return "Yettts";
}
return permission;
}
getPermission();```
any idea ? Did I make something wrong?
replace false with no and true with yes
same
did you reload papi
Yes
function getPermission() {
if (permission === "no") {
return "Nott";
}
if (permission === "yes") {
return "Yettts";
}
return permission;
}
getPermission();```
Is it right ?
no
function hasPermission() {
return BukkitPlayer.hasPermission('test.permission') ? '&aYes!' : '&cNo.';
};
hasPermission();```
Thanks I'll try π
Is it still "%player_has_permission_test.permission%" the placeholder ?
No, it's %javascript_FILE NAME%
Thanks, sorry I didn't start learning javascript ^^
π
I'm bad x)
@vivid sparrow that's what I was looking for
π
I'm currenlty making a bedwars server to play with my friends on and placeholder doesn't seem to work can someone tell me what I'm doing wrong
(I'm using the plug in bedwars1058)
plugin*
nvm ill continue googling
message me if u have an answer
what?
you didn't given someone the chance to answer.
Check if that plugin has the ability to hook with PlaceholderAPI.
If it doesn't work contact the developer of the plugin for help.
thx sorry I'm impatient
oh and I figured it out
I had an outdated version of protocol lib
thx anyway @warm oriole
I keep getting errors when i reload Placeholder-API
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
@static crescent your supposed to click HelpChat Paste and put your error there if you haven't solved it and put the link here so we can see the error.
The issue is LuckPerms version.
Either downgrade the expansion or download a dev build of the new LuckPerms.
As it's a issue with the plugin not have a jar to install with.
Thanks
Has it been updated to 1.15? I see in the github it was but I dont know how to use it since it isn't a jar? Any link to a 1.15 dev build?
@humble summit check the pinned message
or that π
ty
Hello, i have a problem with /papi ecloud, when i download the placeholder of vault (with /papi ecloud download Vault) and i reload (/papi reload), the plugin say "0 placeholder hooks successfully registered", so the plugin don't register Vault, why ?
have you tried to see if it works tho?
yes, and it's not work
@woeful valve Do you have the plugin Vault?
Yes
and a economy plugin like Essentials?
installed.
as you need to have vault's dependencies so that enables so that the placeholders can wnable.
no
well that's your issue
you need a economy plugin for vault to work.
and you need vault enabled for the placeholders to enable.
It's work, thank you very much
No problem.
If you have any other issues with PAPI with a placeholder just put your error in this channel.
i don't really know why i keep getting this error π¦
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
@vague pine Get a dev build of Luck Perms, or downgrade the expansion.
As the latest expansion doesn't work with the latest Luck Perms.
@heavy hull when you going to fix your expansion issue.
Latest version works fine, but you can use a dev build if you really want to, there's really nothing different. https://ci.extendedclip.com/view/Plugins/job/PlaceholderAPI/lastSuccessfulBuild/artifact/target/PlaceholderAPI-2.10.5-DEV-82.jar
We actually needed the build for chat injector
Dev build works with chat injector thanks glare :)
Sounds good!
Just an FYI, that's build on 1.15, I'm going to push another build for 1.15.1
Okay will that be today?
It'll be about 30 seconds.
Okay awesome!
Perfect well update now and let you know if we get any issues :)
Sounds good!
@warm oriole as far as I know it's not broken
If you're referring to the latest version of the LP Expansion (at least when I checked a week ago) people were still having issues with it.
The main thing being (again, still, the last time I checked, you haven't released LP 5 yet) is that the expansion is using LP 5 and people tend to download from the SpigotMC site.
To the point where we were getting a solid 10 people in here daily with the issue.
I got complaints when the newer version wasn't on eCloud
Yeah, that's why we just redirect them to the https://luckperms.net website
Another option would be to offer the beta expansion (for LP 5) wherever you offer beta LP5 and then keep the regular live on the eCloud.
Or maybe an expansion that supports both :p
It's not really the end of the world for whichever option you choose, there's just been a big influx of players complaining about it not working.
I'll see what I can do
Never had this issue on pex

because pex doesn't update stuff π
It's in production again, yes.
Yeah the repo is updated often, I love it π₯°
Meh
i love group manager
where does the maven paste go for importing to project
actually before I even install it
for PAPI, it will make NMS easier to use across versions, right?
Depends what you're trying to do.
Not entirely sure if I'm being honest, not sure how that exactly applies to PlaceholderAPI, but I think there might be something in the Spigot Javadocs for it.
alright. Its just that in previous attempts at editing block meta to make custom blocks easier to deal with, I thought NMS was required. Maybe Im remembering wrong.
I may be back if thats the case lol
Alrighty!
I lied I meant NBT data, which Im damn sure requires NMS
does PAPI offer NBT support with itemstacks and blocks?
PAPI is just a framework for parsing strings from data, you'd have to create whatever you're trying to do yourself.
Use the NBT Api.
There might be, but it's not PAPI.
oh dang, thanks gaby, thats exactly what Im looking for
π
Hey Rhodless.
in my intellij
ok
i just updated luckperms to v5.0 and my issue is gone, thank you kylematzen π
π
π
Dev Build Release
For those already on 1.15.x, here's a copy of PlaceholderAPI compiled under 1.15.1.
Not much different than the current release on SpigotMC but apparently the ChatInjector resource that some people use with PlaceholderAPI was throwing a fit since the current release wasn't compiled under 1.15.
Anyone else having issues with Jobs Reborn not liking the PAPI "DEV-83" string within the actual plugin?
Yes, if you are referring to when placeholderAPI is loaded in
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
cause it's in a numberformatexception
@trim mist can you remove the dev and - from the version name so it doesn't bug out with PAPI when you get a chance.
Oh I reckon I know why, that plugin must strip the other stuff
as it looks like it's causing a bug with jobs reborn due to the fact of a numberformatexception.
The jar name doesn't matter.
not the jar name.
Jar name doesn't matter
I'm thinking Jobs Reborns grab the version name.
And that plugin is trying to strip the other data and keep the variables
Its the version number that is passed to Jobs
as it's a word and other characters disallowed.
Yeah
Shouldn't Jobs be better at that stuff then? They should assume you might be using a development build of a plugin and shouldn't crap it's pants when it finds something it doesn't like.
Yeah just checked his error log
β2101-DEV-B8β it got the first bit
But it didnβt like the ending
So it couldnβt pass as a number
I agree Jobs should fix also.
I mean you can manually just edit the plugin.yml for the time being.
Likely, should Glare but can't do too much about it unless the user contacts the Job author.
It's just a single plugin getting upset, not that much of a priority to change it for everything.
true tbh.
I'm just mentioning in case if any other people came in here asking about it.
with other plugins (doubt there would be or similar errors)
If more people have the issue, I'll re-upload with it fixed, but it is something he can fix too by just changing the version in the plugin.yml
I will just edit the plugin.yml, but I would love to see a fix pushed as well. I think someone brought this up with the Jobs Reborn dev as well. So hopefully they can do a better job of handling different inputs as well.
Not sure if I can push a fix, since it would break the system, but I could probably just make another pin later with an updated version jar.
is there sb experienced with the "pinger expansioN" for papi?
%pinger_isonline_testplugins.com:25565%
Citybuild&7: %pinger_isonline_Lunarsky.de:21000% is not working, the server is online and all necessary expansions are installed
/papi reload returning the following
"An internal error occurred while attempting to perform this command" ?
Go grab the error it spits out in console
Thanks funnycube! :)
https://paste.helpch.at/iwamuceyoq.apache
I'm assuming this is what you're after. ( coppied it all, error on line 9 & 10?
Yeah either update luckperms to the latest dev build or downgrade the expansion
what do you mean downgrade the expansion?
I will upgrade to latest dev build but just asking for future reference.
Latest one is for the v5 of luckperms only
Thank you so much for helping me funnycube. Somehow I had a EXTREMELY old version on LuckPerms!
Oh that's no good. π
Worked like a charm! You're an angel! β€οΈ
My bungee placeholders won't work on my Hub server, does my front-end bungee cord server need placeholderapi for it to work?
I did download the expansion on my hub and the servername is good.
Using it on my offline hub server.
On a plugin that supports papi?
Other placeholders work just not that one.
%bungee_<server>%
what exact placeholder are you using?
are you literally using %bungee_<server>%?
or are you using %bungee_hub%...
%bungee_ember% which is the server name
Side note, %bungee_total% doesn't work either.
I wanted to ask if is there a counter available
/papi reload doesn't work I just get this https://pastebin.com/a1cnuEYW
Like, %javascript_counter:{island_level}=3,{exp_level}=50% if you complete each placeholder it will add one to the output, like if you complete the island level one it will say 1, if you complete these two it will say 2
It just breaks on /papi reload
Willmaster04 what's your LuckPerms version ?
check the Jenkins link on it's plugin page
Ok thanks
is it possible to do something like
%online% - %protocolvanish_vanished_player_count%?
have it minus the amount of players in vanish so player count will exclude vanished players?
oooo
Use math
thx
rip
I did maths wrong
%math_{online}-{protocolvanish_vanished_player_count}%
^ That should work right?
where does %online% comes from ?
it's not a valid PAPI placeholder
it's %server_online%
so replace in your expression {online} by {server_online}
hold up
I think I'm dumb
1 sec
server_online still didn't fix it
but wtf did I use before
did you download the ProtocolVanish and Server expansions ?
I could've swore I used %online%/%online_max% and it worked
those placeholders are probably integrated in the plugin you are using
how to remove decimals
actually I could use {bungee_hub}
- {protocolvanish_vanished_player_count}
precision 0 at the end of %math_%
before the last %
π
wait
the playercount isn't updating when I set the delay to 100 in ticks
which is 5 seconds
Are you talking about the placeholders refresh rate inside papi config?
So
so I would add
Set it to 5
Itβs about a counter placeholder or something alike.
Like, %javascript_counter:{island_level}=3,{exp_level}=50% if you complete each placeholder it will add one to the output, like if you complete the island level one it will say 1, if you complete these two it will say 2
I mean you can make that using javascritp
How?
JavaScript
Just return a specific number depending on completion
do I need to add one for protocolVanish like
protocolvanish: check_interval: 5
?
No
And how can I make that? mhm hahah
i'm confused
with the %math_{bungee_hub}-{protocolvanish_vanished_player_count}[precision:0]%
it only ever updates the playercount when I do /papi reload
and then it's static
Where are you using the placeholders?
@median kindle Can't help you with that since I'm on mobile
I'm using them in a player count
do you want me to send you line of code
Title: "&d&lShortFangMC &7(%math_{bungee_hub}-{protocolvanish_vanished_player_count}[precision:0]%/%online_max%)"
'In the player count' A certain plugin or have you just written it down on paper..
if your asking about {protocolvanish_vanished_player_count} i'm using protocolvanish with /papi ecloud download ProtocolVanish
i'm a bit confused sorry if that's not what your asking
oh I'm using DeluxeHub for the scoreboard and stuff
already got that https://cdn.fastermc.xyz/50l0nKS
any idea what the issue is?
sorry for bugging you guys I just am unsure what I am doing wrong
The bungee placeholders still don't work.
%bungee_total% nor %bungee__<server>% work, however I did download the expansion.
and did you reload papi after Sticks?
I restarted the server 10 times.
Since I asked this yesterday and no one helped out. qq
Jordan, Frosty asked in what plugin are you using the placeholder, for example in a Tab plugin or a Scoreboard plugin?
Sticks does it show in /papi list?
I said I'm using it with DeluxeHub
Yes and I it's in PlatinumHubCore.
PlatinumHubCore hmmm
Other placeholders do work, just not that one.
lol DeluxeHub has a lot of the same features
and?
can you send me your config in dm Jordan?
Anyways, hub server is running on offline mode on paperspigot.
The DeluxeHub config?
yes
k
I've seen multiple servers make their Hub out of PaperSpigot and their placeholders work.
Does my front-end bungeecord server need to have papi for it to work, is their a cross-server dependency for this?
not afaik
I don't have papi on bungeecord
or anything like papi on bungeecord
and bungee expansion works
let me try.
Yeah it works.
/papi parse me %bungee_total%
Weird.
I'll take it up the the plugin developer, it has to be on his side.
If not does anyone know how to create time counters, I've seen multiple servers do: AGE: xW xD xH xS I never knew how to do it, anyone got an idea?
Get a custom plugin made for it
Itβd require you to hire someone to make it where each server has a plugin to count the timing or a plugin on bungee to count the update of all the servers while up
We can probably add it to the server expansion, we already have a countdown placeholder.
Can someone help with javascript
Itβs about a counter placeholder or something alike.
Like, %javascript_counter:{island_level}=3,{exp_level}=50% if you complete each placeholder it will add one to the output, like if you complete the island level one it will say 1, if you complete these two it will say 2
@vivid sparrow I saw that only, on theirs, it counts up.
@buoyant hedge
Please be patient and don't ping staff members!
I am I am, just replying to what he said.
No placeholder for DeluxeMenus is picking up for me
http://prntscr.com/qeg7rt
I'm using version 1.8, help plz
did you download the expansion?
Player?
and reload or restart the server
/papi ecloud download Player
/papi reload
@chrome hawk by the way don't message me privately for help.
Hello
how does one check what version of minecraft a version for what version of expansion?
supports
someone told me because we run 1.13.2 it could be why the deluxe chat isn't working
sure
We won't help you without providing that you have bought DeluxeChat.
Then you'll get help in the private chat for DeluxeChat.
done
will PAPI 2.10.4 work with 1.15.1?
@severe coral Glare released a beta version.
Not on spigot.
Check the pins of this channel.
awesome, ty
understood
Hello! Im running a 1.14.4 Spigot server using P-API v.2.10.4 and when I try to download the Servers expansion from the ecloud it says no expansions are available... is there a way to fix this?
Manually download it from the ecloud,
It just means your server/firewall is blocking the connection
It grabbed the players one just fine though .-. why would it block one but not the other?
We can't really say, all hosts are different.
Some of them freak out over the smallest things.
@bronze bison Does your WG PR fix this? https://github.com/PlaceholderAPI/WorldGuard-Expansion/issues/16
Should be yes, but didn't really understand what he meant by his latest reply. @trim mist
Me neither. If you're confident it's tested, feel free to merge to master and post in the eCloud.
Of course it's been tested before opening the pull request, and probably used by the person who reported the issue. Will do later, on phone for the next few days.
when I type /papi parse me %statistic_kill_entity:ender_dragon% it says it is an invalid entity parameter, anyone knows what the right one is? the spigot entity list also says ender_dragon
Use _ instead of :
kill_entity:blaze and all that does work, and when I change the : for _it says invalid stat
/papi parse me %statistic_kill_entity_ender_dragon%
try with EnderDragon (maybe it's case sensitive ?)
nope D:
=/
nor does end_dragon
nope
1.12.2
/papi ecloud download Statistic 1.7.0
/papi reload
And use %statistic_kill_entity_ENDER_DRAGON%
It should work.
that works, but now %statistic_MOB_KILLS% doesnt work...
is there a list with versions and suported placeholders for that version?
oh w8 nvm
1.7.0 is for 1.12.2 and older
That isn't a placeholder in 1.9.2 nor in 1.7.0, you have to use Math expansion to get the total of the mobs you want.
it worked before..
Hmm, don't remember that any version had it.
"Supports all statistics in SpigotAPI. %statistic_<StatisticType>%"
and one of the types is MOB_KILLS
ouch, that explains it
i can't using [console] to open a menu for players π¦
if you can add [op] for deluxemenus that will be very cool
i can do many so things with it π
but why if i don't have require permission to open that menu? ~~"
wot
then give the permission lol
...
i just want players can open the menu but with specified NPC
that will be more fun for some features
maybe try to give the permission from the console before openning the gui, then after you remove it
if i do many of that, do the plugin lag my server?
left_click_commands:
- '[console] lp user %player_name% permission set nganhang.goibac.spawn'
- '[openguimenu] goibac<delay=10>'
- '[console] lp user %player_name% permission unset nganhang.goibac.spawn<delay=15>'
Unless you've got hundreads of players executing it at once yes, otherwise no
Ok thank you, i'll do that, but still hope you will make another way π
What..
If you're talking about adding [op] the answer is no and will always remain a No.
OK placeholders are broken for HolographicExtension-1.10.7, is it the plugin or ProtocolLib-4.5.0-20191214.220133-7-#436. Does any one know which plugin dev I should be bugging yo get this fixed?
I think it should be to HolographicExtension dev
i think i got some issue with Economy Bank plugin ~~"
'rut100000-1':
material: BOOK
data: 0
slot: 10
priority: 1
display_name: "&6RΓΊt 100000 Δα»ng BαΊ‘c"
lore:
- '&f%economybank_balance%'
- ""
- "&eβ³ NhαΊ₯n Δα» rΓΊt bαΊ‘c!"
view_requirement:
requirements:
money:
type: javascript
expression: '%economybank_balance% >= 100000'
i already had 10000 money in my bank but i can't view the menu
i don't get it
Ok
view_requirement: requirements: money: type: >= input: '%economybank_balance%' output: '100000'
do this
Ok i'll try, thank you π
still not work ~~"
i think that's because the placeholder
i think that plugin don't have any expansion ~~"
oh lol
/papi parse me %economybank_balance% what does it return?
probably
Yeah.
Is there another placeholder that returns the number without the , and .xx
?
it's the only one on PAPI wiki
i'll tell this issue to Economy developer to change the format π
Try this ```yaml
view_requirement:
requirements:
money:
type: javascript
expression: 'parseInt("%economybank_balance%".replace(/,/g, "")).toFixed() >= 100000'
@@
Wow, thank you very much π
i'll try now
thank you very much, its working π
I've been working with custom javascript expansions, but the outputs are a bit buggy when more players are online
It seems to flicker between both player's outputs
explain what you mean by 'buggy"?
Hello %bungee_total% isnt showing in my featherboard?
I installed the ecloud to papi
I believe it would be {placeholderapi_bungee_total} if you're using FeatherBoard.
Have you also reloaded papi?
@warm oriole I literally explained it the next line
@leaden depot that barely explains it that it switches between two outputs, I have no idea what you mean and you don't even show any of the code you are using.
You didn't ask for that though. But I can show you some code
@warm oriole https://hastebin.com/xafuvudibe.js
stop tagging me
:>
Lol sorry I am messing around. I don't really see why I can't tag you, it's made for replying if somebody is not there. But I'll happily obey your request
It's worse if you send a message first, and then literally 3 minutes later a tag alone
I get an error when running /papi ecloud placeholders Player
yes
huh
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
We are aware of that.
When papi3 will be released
Never knew that error existed.
What's he trying to do?
>/papi ecloud placeholders Player
guess it get confused on placeholders that require an argument
as the error say "unknown enchantment"
I'll make an issue for it on v3 so we know to avoid it
Or maybe Glare will do that idk
yea tell glare to do it
You already know, remember when we talked my pull request that fixes it Glare
There's currently an open issue about it in papi2 repo
What would i download on 1.8.8 for these placeholder to work ?
http://cruxedkat.live/s/20192571499.png
@ me if you reply β€οΈ
^
ERROR [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.factions.MCoreFactionsExpansion
25.12 04:10:42 [Server] ERROR [PlaceholderAPI] com/massivecraft/factions/RelationParticipator
25.12 04:10:42 [Server] ERROR [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.factions.FactionsExpansion
25.12 04:10:42 [Server] ERROR [PlaceholderAPI] com/massivecraft/factions/iface/RelationParticipator
@mint fable Iv latest MV installed though
@heady axle
Please be patient and don't ping staff members!
Hello I was wondering is there a way to print out a number of people who have a permissions and not list names?
e.g. Staff Online: 9
use javascript
how would I write it? I'm new to JavaScript
@lapis frost so is the for a plugin or what?
it's for a scoreboard thing
So can you code or not is my question as it makes it easy or difficult
I've never written in Javascript I've done HTML and CSS also some basic PHP
Plus is i think placeholder api can help you out with that
Well plugins are typically Java based JS is at least when I use it for discord bots
although thatβs really lose you can of course use js for servers
function playersWithPermission() {
if (args.length == 1) {
var count = 0;
var player;
for (player of BukkitServer.getOnlinePlayers()) {
if (player.hasPermission(args[0])) count++;
}
return count;
}
};
playersWithPermission();```
This _might_ work
Issue is he canβt code that is right
javascript expansion Jerry.
Ahh I kinda just looked at the theory and went yeah and didnβt question that sos
I think you forgot a) after p"permission") Gaby
That should work gaby
yea xd
it is erroring out
I did
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
Wait why are you even using args gaby?
So they can do it for multiple perms
I was only going to use donated.money as the "Permission"
ok, let's see
function playersWithPermission() {
var count = 0;
var player;
for (player of BukkitServer.getOnlinePlayers()) {
if (player.hasPermission("donated.money")) count++;
}
return count;
};
playersWithPermission();```
In the worst case, it doesnt support for loops
didn't work
It should
It's erroring out just like before
maybe this? https://paste.helpch.at/ukizudapaz.js
alright I'll try it
[02:49:29 INFO]: [PlaceholderAPI] %javascript_totaldonated% has been loaded!
and error again...
same as last time but I made the changes you suggested
show the error, again
I will once it stops flooding haha
I even killed the server
@vivid sparrow does this help at all
[02:59:24 WARN]: javax.script.ScriptException: TypeError: players.size is not a function in <eval> at line number 1
also would it help knowing i'm on 1.12.2
Use length I thought it's the same as on java
It's hard to write stuff without testing xd
where do I put that?
If OnLy ShIt We'Re SiMiLaR tHrOuGhOuT
instead of players.size() use players.length
function playersWithPermission() {
var count = 0;
var players = BukkitServer.getOnlinePlayers().toArray();
for (int i = 0; i < players.length; i++) {
if (players.get(i).hasPermission("donated.money")) count++;
}
return count;
};
playersWithPermission();
You also had a typo in Server
writing code on discord aint fun
Indeed it ain't :p
if they will add auto indentation then would be π₯
:/
Quick question gaby, should I allow multi lined messages for messages like reload, deny etc
btw, using | - you can make it support multiple lines without using getStringList() iirc
wait wut
I don't think it liked length to much
that's not the issue
it don't like for
function playersWithPermission() {
var count = 0;
var players = BukkitServer.getOnlinePlayers().toArray();
for (var i = 0; i < players.length; i++) {
if (players.get(i).hasPermission("donated.money")) count++;
}
return count;
}
playersWithPermission();```
It doesnt understand int
this shit takes longer than it should lmao
let me pr the server expansion :))
smh
lol and it's a simple little thing π
Ah, the other are from the ListPlayers expansion which of course isn't OS
ListPlayers v2 then
I mean might as well just add it to server expansion
or vault
or vault
Or vault
@cosmic shale can you merge these so I can clone it? https://github.com/PlaceholderAPI/Vault-Expansion/pulls
Y u no merge urself
Cuz I dont have access
Feels bad, neither
Noobs only https://i.imgur.com/g1EWn0X.png esp 1, 2, 3 and 5
now it says something about
[03:20:13 WARN]: Caused by: <eval>:1 TypeError: players.get is not a function
[03:20:18 WARN]: javax.script.ScriptException: TypeError: players.get is not a function in <eval> at line number 1
if (players.get[i].hasPermission("donated.money")) count++;
??
π€¦ββοΈ
R e a d xd
lmao