#placeholder-api
1 messages Β· Page 83 of 1
π
we good
now how do I get it to not say 1.0 but just 1
return count.toFixed();
^
only 1h
aye it works!
This took an hour π€¦ββοΈ
god damn lol
Say thank you to Gaby for that one then
@vivid sparrow I should of just given you access to my panel and what not haha but thanks dude
Nah itβs better if you do it
Nah, I'm good xd
If it didn't work this time i'd of just said screw it I quit lol
Canβt spoon feed also at least I prefer to not have about 200 panels at the end of it
You saw a small glimpse into coding isnβt it funnnnn π
amazing
yeah I've done some coding but nothing really fancy lol
Dumb me was using java stuff on javascript
I love open loops they great I remember when I first did them and ik Gaby I do that too much π
If I'd try knowing my luck I'd prob start trying to use C++
But that is something you may get to see one day an open loop is fun
open loop?
for(x = 0; x < -4;xβ) {
for(y = 0; y > 4 y++) {
}
}
I call those open loops most people call them stacked loops or whatever else
ah
That sir is called a double whatthefuck loop
Ahh yes the best name
smh Luke hasn't fixed the expansion issue yet
can someone help me?
?asktoask
i can't download towny placeholder
Do you have Towny installed?
yes
show your console if you have it installed
sec
/papi ecloud download Towny if there is a expansion for that.
if you haven't done that yet and /papi reload
or restarted.
no expansion found
likely there isn't any for Towny 1m.
but there are variables for it
Towny
/papi ecloud download Towny
%towny_town%
%towny_friends%
%towny_nation%
%towny_title%
%towny_town_residents%
%towny_town_size%
%towny_town_tag%
%towny_town_balance%
%towny_town_mayor%
%towny_surname%
%towny_town_rank%
%towny_nation_rank%
No problem.
Hey I accidently clicked on a "update" button ingame and it broke my placeholders for LuckPerms
You can either downgrade the expansion or grab the latest dev build from https://luckperms.net
Downgrade,
/papi ecloud download Luckperms <version>
/papi reload
/papi ecloud download luckperms 4.0
Perfect! Thank you so much
Just texted Luck, going to see if he made any progress on fixing the expansion to support both APIs.
Cool, ty.
should've just deleted the expansion tbh, and made a option to download the beta expansion on his website.
so people don't accidentally update their expansion or plugin.
Agreed.
I already discussed that stuff with him and he came to the conclusion that he would try to make it work on both APIs.
Anyone know why vault placeholders dont work?
did you install vault? and did you download the expansion from the ecloud with /papi ecloud download Vault?
yes
does it show in /papi list?
do /papi reload
send server logs
can i link pastebin here?
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
i put it in how do i put it in discord now?
copy the url
can you try to do /dm reload and check if there is an error?
no error
and does it work now?
try to remove the space before the title maybe?
ok
Dude im going to freaking cry π¦
I found the issue with MvDW placeholders...
You are REQUIRED to have one of Mv's plugins on the server for MvDW placeholders to work, Most annoying part is Im not interested in ANY of of shit crappy plugins... so now iv got to use some plugin just to support MvDW placeholders
That is such a stupid system
His only decent plugin is Featherboard but iv got something even more lightweight for my scoreboard...
PAPI not have the placeholder you're after?
cant download expansion from ecloud
Why not?
when i try to do /papi ecloud download Vault
Sometimes the hosts blocks it. You can download it manually. https://api.extendedclip.com/all
it shows me No cloud expansions are available at this time
o
k so
i installed vault
btu placeholder working in deluxechat
i did reload papi
so it works
what works
i have %vault_eco_balance_formatted%
but its just showing %vault_eco_balance_formatted%
ya
you just said it worked O.o
i did
full restart, not a reload right?
ya
type /papi parse me %vault_eco_balance_formatted%
||that sounds like something somebody who didn't restart in the first place would say||
and is your balance 0?
restart
but it still doesnt work
and no
its not
but if i do the parse
it shows 0
put that in your deluxechat format and restart, see if that helps
@mint fable
To link your Spigot profile please do the following:
- On Spigot, set your Discord to
cj89898#7801under contact details. - Run the
=Spigot <Spigot Username>command.
Note:
If you have changed your username in the past or haven't made many posts you may need to use =spigot <numeric id>
Spigot Account Linking
To get support for a premium plugin owned by Clip you will need to verify your spigot account using =spigot in the bot-commands channel. After you have successfully linked your spigot account you should ask your question in the coresponding channel for that plugin. If you have already linked your account and want to update your roles, run this command =spigot check
@slate siren ^
You'll have to have them join the Discord.
Well we can only give help to verified buyers ^
Yes?
Papi doesn't seem to work for me on spigot 1.8.8 with pinger or server expansion at least, I use papi 2.10.4 and when I parse for example %pinger_max_testplugins.com:25565% (I have replaced testplugins.com with my own server or with other servers that are online, it just gives me 0 value, always. I have tried to use expansion Player and this one works just fine. Just Server and Pinger don't work at all. Any ideas? I'm thinking it might be related to my network system? (I uses pfsense for routing and have a fully managed 48port netgear switch, also I use pihole as a DNS server with redirects to cloudflare)
did you download the expansions ? do they show in /papi list ?
Yes, they do show, latest versions, of course.
and what's your PAPI version ?
2.10.4, I have tried with 2.9.2, same result
Papi version wont change anything
sometimes it does
use IP not dns
Does it work if you have it set to testplugins?
try what Gaby said
I have tried with IPs like local ip of my minecraft subservers, like 192.168.1.240:2, etc, no difference.
isnt it 127.0.0.1 ?
Make sure to give it ~30 seconds each try
I have multiple internal conenctions to that Rack server, so I bind the minecraft servers to specific ip address, not localhost/127.0.0.1 (loopback)
But does it work if you have it set to something external?
No, it doesn't either
Be mindful it really does take a bit of time to first update
Just set the update interval in papi's config to 1, then try it
I'm sure that it's working fine, tried it for someone not too long ago
Just did that, didn't fix it at all. Apparently only Pinger has issues, all the other expansions work just great. If I parse to see online players, it always shows 0. If i parse to see server name or version, it gives a blank message. If i do a pinger_online it shows testplugins server or any other server offline as well.
I think i will replace the players count functionality with bungee expansion and I will say goodbye to server status fucntionality (offline/online). Thank you for your help guys.
Can i use group.media for ListPlayers? Im getting an error when doing that. {"text": "[Media]: %listplayer_with_perm_group.media%"} [Server] INFO com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 10 path $.text
OHHHH WAIT
i forgot an s smh
Wait but since i have groups inheriting from each other in luck perms, that shows me in every list. Is there a way to fix that?
most likely no.
well, thats a rip
then it should only show people in media?
maybe cause im oped?
oh yeah that's the problem
i deoped myself and did /staff still show in media hmm
probably because your group has *
oh yah it does
then I maybe have an idea
negate the group.groupname?
yeah x)
will that still make them inherit?
i want moderator to inherit from helper but not show up in helper list
idk
maybe make a suggestion for the Expansion ListPlayers to add a placeholder only for primarygroup
where can i suggest?
do you use luckperms?
yaeh
yes he uses LP
ah that's for one user
yeah
Hey !
I need help please, I want to change the return of a placeholder ( %fabledskyblock_island_role% )
Because the placeholder is "bugged" and doesn't support translated placeholder ( it displays it in english only, but I'm french..)
So with javascript I would like to make that it detects what the placeholder returns and change what will the placeholder will really return.
I wanted to do if someone can do this for me please ( it's basic but I'm a noob with javascript π¦ )
There are 3 words it can returns :
-Operator
-Member
-Owner
So I would like to have possibility to translate theses 4 words π
you can change FabledSkyBlock's placeholder in it's language file
Done, but then when I use the placeholder is doesn't return a translated placeholder ^^
It's still in english
My problem is here since many months
I already reload/restart
I also contact some other people that have the plugin, they have the same problem
I'll check on my server
https://prnt.sc/qgfh8t
This translate the placeholder in fabled GUI's, not in the placeholder
yeah I can't find it
seems like you'll have to use javascript
I can do that later for you if you want but my pc is off now
Yeah it would be cool if you can do this !
Don't hesitate to tag me or contact me in private message about it π
var role = "%island role placeholder%";
function getRole() {
if (role === "Operator") return "operator in french";
if (role === "Member") return "member in french";
if (role === "Owner") return "owner in french";
return "none of the above";
}
getRole();
Write the correct placeholder and the values u want @meager vault
Thanks @bronze bison , like always you're here to help me π
:p im here to help you and everyone π
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
https://paste.helpch.at/ipanufosiy.cs
Anyone know what the error is here?
/papi ecloud download luckperms 4.0
Then I get this: https://paste.helpch.at/oluvuredes.cs when doing /papi reload
luckperms version?
/papi ecloud download Luckperms
/papi reload
Then
@bronze bison, thanks very much π
No problem π
Hello can someone help me please
?asktoask
ok
have it your way
Hi amazing coders, I have a serious issue regarding my placeholderapi plugin. Each time I do papi ecloud download luckperms, it goes through successfully but when i do papi reload it has an internal error. Can someone please help? thanks
you have to download LuckPerms v5
Latest version of LuckPerms expansion is for v5
You have to download an older version of it
/papi ecloud download Luckperms 4.1
/papi reload
For LuckPerms v4
Well yeah, if you want download the dev build v5
β€οΈ
No problem! Glad it did.
Is the issues in github a place for official papi expansions' suggestions?
I want to make a suggestion for ListPlayers
@arctic loom Do we have a template for that? I can't remember.
Not really.
The PAPI repo has templates for suggesting changes to PAPI, report bugs of it, or request changes to the wiki.
I didn't add a template for expansion suggestions/changes as they often have their own repo
Good point.
One idea could be to have expansions under 1 repo? Like the server and player one that is currently under separate repos
Nah that'd be a mess
See I think personally would be cleaner approach, similar to how one of the bots here has a folder full of plugin names, you could have a folder name for each module
hello
What's wrong here? I want to replace %etheraltokens% with something from a plugin but nothing gets replaced: https://paste.helpch.at/ebafuhuxay.java
Properly read how you are supposed to make a expansion.
There should be a example on the GitHub.
ping me when someone answers
well whats the error
it only says script error
in console?
@warm oriole and what am I doing wrong, I followed it
Np
well another problem :))) it only returns 2, 3 and 4 :)) i want it to return 1 as well
technically javascript you dont need to add the ; but nashorn is being weird, or maybe because of the way the input is given to nashorn
ok lemme check the correct stuff for math.random
dk what i did but it returns 1 too now
Its random
btw https://discordapp.com/channels/164280494874165248/573429521554866178/660256142286651432 (ping when answering)
ohhh
I see it now
um another problem
[01:04:06 WARN]: [QuickBoard] Plugin QuickBoard v3.8 generated an exception while executing task 7264
java.lang.NoClassDefFoundError: net/etheral/TokensAPI
at TokensExpansion.onPlaceholderRequest(TokensExpansion.java:33) ~[?:?]
Im having trouble getting %player% to work...
%player% isnt the placeholderapi placeholder. its %player_name%
/papi reload```
Okay thats why! Thanks. Must be a issue with the default join message being %player%!
Thanks Kaliber!
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
Means it can't find the class
has a 1.15 version been resleased? or a Dev build
Update luck perms @outer herald
to the very latest v5
@half crown the current version of papi will support 1.15 but there are dev builds pinned in the top right
ok
Question who does the updates for the Expansion? Im looking for the Parkour Expansion as its not working in 1.15
Is it this expansion @half crown https://api.extendedclip.com/expansions/parkour/?
Yeah, shoot them a message asking for an update if it's broken
just on the page for spigot?
Or join their discord on the page
Hey guys. What would be the best placeholder to show the player count - vanished players?
I have been using the ones from PremiumVanish. But that one seems to be really inaccurate.
For example it says ''Survival 8/30'' but I count 9 players online, 10 if you include me (but i'm in vanish)
Once I leave vanish it says ''Survival 10/30'' and when I enter vanish again then it updates to ''9/30''.
It's almost always inaccurate, definatly when more vanished players are online then just 1.
Kind of reveals staff in vanish too.
Do i contact Clip about my ListPlayers suggestion?
Is it OS?
no
No, you either ask clip nicely to os it or add whatever u want π
@final shadow yo, os that expansion β€οΈ
My suggestion is have a placeholder removing vanished players
Js is always an option
well, it depends on what plugin you are using for that.
π
i dont think you can do javascript
Can you check a placeholder for a specific person other than the person running the command
in js
U dont use that placeholder π
wAt
?
vanish plugin?
supervanish
that should be eazy
you only check if the player has a certain meta
private boolean isVanished(Player player) {
for (MetadataValue meta : player.getMetadata("vanished")) {
if (meta.asBoolean()) return true;
}
return false;
}```
u talking in java or js?
both
in js u cant check a placeholder for another person other than the executor
not sure if it will work but hey! xd
you loop over the online players
and just run that code for each player
Just loop over the online players ye
so my only option is making a expansion that does the placeholder
var players = BukkitServer.getOnlinePlayers();
var count = 0;
for (var i = 0; i < players.length; i++) {
var player = players[i];
for (var meta of player.getMetadata("vanished")) {
if (!meta.asBoolean()) count++;
}
}
return count;```
I have no idea if this will work but hey!
That isn't depending on supervanish..
Couldn't find it, might write u a new if u didn't find a solution
wait why loop of player meta?
that's what supervanish say to do lol
oh lol
I doubt that will work, it was too easy xd
That's a double whatthefuck loop
but u just loop over the players and check if the player can see the player ( using canSee(Player) spigot method) if he can, count it, if he cant then dont and it will go to the next player π ez
Oh thats better
varΒ serverΒ =Β BukkitServer;
varΒ onlineΒ =Β server.getOnlinePlayers();
varΒ numΒ =Β 0;
functionΒ number()Β {
Β online.forEach(function(player)Β {
Β Β Β ifΒ (BukkitPlayer.canSee(player))Β {
Β Β Β num++;
Β Β Β }
Β Β });
Β Β returnΒ num;
}
number();
π
Thanks
No problem!
How does the Javascript placeholder work?
Could give me an example?
well you have to make them
Oh, new files were generated in the PlaceholderAPI folder, I now understand how it works
Hello
Could someone tell me how could I get any answer from a placeholder like if the player were in that world
Like %in_world_world_nether_{has_permission_essentials.fly}%
Then it would answer like if the player were in world_nther
no
Canβt I?
no means no lol xd
Why do you have to be like that?
PAPI doesn't have a ability for what you are wanting.
Being like what Gaby is being honest?
PAPI doesn't support that and he gave you the answer of no that it doesn't have that capability to do that.
Would you rather him mention "No, PAPI doesn't support what you are wanting in any way possible"
Idk kyle, I personally like to receive a straight forward answer for some questions than a long one which resume to yes or no.
I get ya just trying to make a point.
yup not saying anything about you.
I just thought it was a bit rude
I mean, βno means noβ
I think you will not understand it
Didn't mean't to sound rude.
Yes, I know
I understand it completely, but that wasn't rude just saying.
Yes, I know hah, thatβs because itβs like rude in my country
Maybe because it sounds different
And you know
yup xd
Aaah
And what about if I make it with a javascript?
Can I make it with javascript?
Small question: should I verify myself as an author in the ecloud page? My plugin is verified, but saw some authors were verified and some others not
Hey, what would a plavceholder be to get the current time like 19:24
use the server time placeholder, it will display the time that the machine is running on
Yepp, got it, ty!
I can't seem to find the placeholders for where I typed invalid where do I find them? - https://gyazo.com/b29b3bd201397bbaa3b55002d7596d07
the config for it
'1':
material: hdb-20
data: 0
slot: 9
update: true
display_name: '&6&lSugar Cane:'
lore:
- '&cBroken&7 - Invalid'
- '&aPlaced&7 - %statistic_use_item_SUGAR_CANE%'
left_click_commands:
- ''
right_click_commands:
- ''
I just wrote invalid since I can't find a placeholder which works for it
so you're trying to find a placeholder that works
that's the entire list for the statistic expansion ^
I already have that expansion
That's what I used for the other ones as you can see. Everything works except the ones I marked as invalid
Look at the list
find a placeholder that can work
and use it
You came here asking where you can find the placeholders, so I gave you the list.
So which do I need to use?
I have no idea what you're trying to accomplish, but by the way your config looks, %statistic_break_item:<material>,<material2>%
Your name is familiar from somewhere 
I'm trying to accomplish having a statistic of all farming materials, so as I have placed and broken for all others, some of them don't work, hence I typed invalid at them. I figured there might've been another placeholder which works for them.
This works for Melon (break and place):
- '&cBroken&7 - %statistic_mine_block_MELON_BLOCK%'
- '&aPlaced&7 - %statistic_use_item_MELON_BLOCK%'
But it doesn't work for the others
Mine?
Yes,
And use break item. Depending on your server version you should use : or _
did you try the placeholder I sent at all?
Except instead of : use _ as frosty pointed out
I use 1.8 so it's _ right?
I tried this one %statistic_break_item_338% (338 = Sugarcane)
why use the ID?
- '&aPlaced&7 - %statistic_use_item_SUGAR_CANE%'```
you don't use the ID there ^
I also tried with SUAGER_CANE instead of the ID
I'm a familiar player within the Factions community if that's where you've seen me. I also mange a few large Discord servers and do a lot of advertisements @brisk coral
Triad?
Yeah
We spoke a long time ago then kek
Doesn't work either
https://gyazo.com/38a466263d92112e706765a573ba6e6c
I'm on a 1.8 version so the Statistic expansion is outdated
Was this what you wanted me to do?
/papi ecloud download Statistic 1.7.0
/papi reload
``` is for 1.12.2 or older
Latest version is for 1.13+
so put /papi parse me %statistic_break_item_SUGAR_CANE_BLOCK%
He has the old one iirc @bronze bison
since he uses _ instead of :
Seems like it yea, just telling him why
what version is your PAPI?
There should be an error in console
It returns 0 and send the error in the console for that version iirc
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
I made a placeholder that counts all the players on my server, even servers that are not connected to the bungeecord.
But the total number has a .0 at the end (like a: 84.0), how can I remove it?
Here the code:
var survival1 = Number('%pinger_players_<survivalip>%');
var survivalop = Number('%pinger_players_<survivalopip>%');
var skyblock = Number('%pinger_players_<skyblockip>%');
var creative = Number('%pinger_players_<creativeip>%');
function totals() {
var total = survival1 + survivalop + skyblock + creative + theothermodes...;
return parseInt(total);
}
totals();
@fervent jackal use math expansion
@fervent jackal return parseInt(total).toFixed();
or add a second param to parseInt.
Or what Blitz said
leaving parseInt alone with one param is not suggested like the documentary.
thanks for the help
@quick tinsel The supplied Material does not have a corresponding statistic try other sugar cane materials names until u find the one u want
You could use the item in hand placeholder and check what the material it returns is and use that then
It's a piece of sugar cane, how do I use the in hand placeholder?
Hold the sugar cane in your hand, and parse the placeholder using the command
What command again? /papi parse me
/papi parse me %player_item_in_hand%
SUGAR_CANE
U need player expansion for that tho
I have that π
Ok then use that in the placeholder
%statistic_mine_block_SUGAR_CANE%
%statistic_break_item_SUGAR_CANE%
If it's none of these, what could it then be?
%statistic_mine_block_SUGAR_CANE%
%statistic_break_item_SUGAR_CANE%
I tried both of these in my config. Both still just show 0 in the GUI
Try using CANE
Aren't all statistics available in-game through minecraft?
or does spigot add additional ones?
Not sure. There's the statistics tab on the escape meny - https://gyazo.com/4a3b53d0ab7899bd38c3e988a9b34e26
check if there's something there for breaking sugarcane
This doesn't display breaking sugarcane either
CANE instead of SUGAR_CANE doesn't work either
Would I just be better off having my developer make me some placeholders for these 5 placeholders which aren't working?
are you able to count upwards with the countdown placeholder in the server expansion?
like count up from a specific date
not to
Not atm
I'll be working on making a expansion soon unless Clip or whoever maintains it updates it as I believe the source isn't public.
For counting upward.
Add it to the server expansion
Hello how are you? I have a problem with placeholderapi when I put / papi ecloud list all and / papi ecloud download and "No cloud expansions available at this time". They could help me and it's not because of Java, I guess because I have Java 8

?
LuckPerms had an API update, if you are using LuckPerms 4, you have to choices:
- or download an older expansion
- or update to LuckPerms v5
Ok wait I see the version of my luckperms
I have version v4.4.1
I download luckperms v5?
yeah
ok
thanks @junior musk it worked out you are the best!
Is someone here available to answer me something?
just ask and someone will help you
guys
i got placeholders problem
when i use in featherboard 2 placeholder i get issue
here is config https://hasteb.in/abogeciq.yaml
also here is parse comand
featherboard uses mvdwplaceholderapi placeholders
not papi
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
see if your placeholder is on there, if not, you can use the placeholderapi placeholder to parse papi placeholders
π
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
You need to use mvdw's PAPI placeholder to use papi placeholders in mvdw
{placeholderapi_*}
yep
it dos not works
i got also this
&e{placeholderapi_server_time_dd/MM/yyyy}'
one works
one no
here is picture
well you didn't reload then
i restart hole server 3 time
it shouldn't be showing %CoinsAPINB_coins% at all, you don't have that in the config
you should have {placeholderapi_CoinsAPINB_coins}
are you sure you have it saved and restarting the server didn't overwrite/revert it somehow?
π
when i delete time placeholders
only works
when i delete this {placeholderapi_server_time_dd/MM/yyyy}
doesn't mvdw have a server time?
no
π¦
Hello, someone available?
Hey guys!
I'm having an issue regarding my scoreboard and I'm not sure if its the placeholders or something.
I am trying to display how many kills & deaths each player has.
The plugin I am using is called Scoreboard-R (Scoreboad Revision).
When I use the placeholders %kills% & %deaths%, it doesn't work.
Anyone know how to help?
Thanks
Link to the scoreboard?
Those aren't PAPI placeholders.
If you aren't using PAPI placeholders please move to #general-plugins.
Hey I'm having problems with the redisbungee placeholder
[09:50:21 ERROR]: [PlaceholderAPI] Channel must contain : separator (attempted to use RedisBungee)```
It's a issue with RedisBungeeExpansion.
Looks like they decided to change the methods so likely needs to be updated with the expansion.
Due to the fact RedisBungeeExpansion is likely limited to a older method with "RedisBungee".
@turbid phoenix for the time being you'll have to likely downgrade RedisBungee to a older version of it.
As that expansion can't run with whatever version you are running of RedisBungee.
I also don't know of a ETA when that can be fixed.
Ok thanks. It's not urgent so no worries.
Hello !!
Do you have a solution to make it work directly in the console.
Sorry for bad english i'm french.
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if(!(sender instanceof Player)) {
String msg = "Β§cTEST 1 ==> %totemfactions_version%";
msg = PlaceholderAPI.setPlaceholders((OfflinePlayer) sender, msg);
Bukkit.broadcastMessage(msg);
}
return false;
}
what are you doing man
nah wrong wrong.
Just do this:
String msg = "Β§cTEST 1 ==> %totemfactions_version%";
Bukkit.broadcastMessage(PlaceholderAPI.setPlaceholders((OfflinePlayer) sender, msg));
If there's a expansion for that plugin it should work fine.
Jesus
You may need to convert it to a player.
I don't work with sending Placeholders to console like that.
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
Yeah you can't do that.
PAPI doesn't support what you are wanting to do that way.
As you can't cast a coluredconsolesender to a offline player.
That's your issue
How I could make it work in a console ?
String msg = "Β§cTEST 1 ==> %totemfactions_version%";
Bukkit.broadcastMessage(PlaceholderAPI.setPlaceholders((OfflinePlayer) sender, msg));
Elzorro99
The best way to do this.
Is to loop through all the players.
and individually send the message
and set the placeholders per player
Frosty
I wasnβt asking to ask, I was asking if someone is available to answer me something about PAPI, sometimes, if you ask something and no one is here, nobody will answer it then because other people will be asking anything else
Noone can help you if you don't ask the question
My question is
Is there a placeholder to make the placeholder think the player is on another world
And answer to the placeholder as if the player were there you know
What..
Why would you want a placeholder to make another placeholder think a player is on a world?
what is a need of that
like at all
Because
Plotsquared placeholders doesnβt work outside the plots world
And I want to make it work outside
For conditions I have
This is what a Plotsquared developer said:
@median kindle PlotSquared's placeholders return plot values only, so it wouldn't make much sense to attempt to use them in non plot worlds
If I want to know if a server is online using the %javascript_status<serverIP>% placeholder, should I do this?:
var server = org.bukkit.event.server
var serverip = args[0];
function status (){
var players = serverip.getNumPlayers();
if (player >= 0) {return "Yes";}
else {return "No";}
}
status();
you can simply use the Pinger expansion
I want is to receive a text if the server is online like as "yes, the server is online"
you can change the ouput in Papi's config
Can I put other placeholders inside the output?
well, i will
By the way, to make a placeholder with arguments (%javascript_name_argument%), I must make variables like this?:
var arg = args[0];
I think
@warm oriole
Yes @fervent jackal, %javascript_name_arg1,arg2,arg2% and it will be
args[0] = arg1
args[1] = arg2
args[2] = arg3
Are the arguments strictly separated by commas?
Yes. You can't change that unless you fork the expansion and change that in code.
But shouldn't be an issue?
You can use your own by using the first argument and split it to whatever character you want.
If I want to get a placeholder through arguments, should I do this? Or should I skip the part of "onPlaceholderRequest"?:
var PlaceholderAPI = me.glaremasters.guilds.placeholders;
var status = "%pinger_online_" + args[0] + "%";
var placeholderstatus = onPlaceholderRequest(status);
function online() {
if (placeholderstatus === "online") {
doanything..
}
}
online();
You don't do that, and are you using a modified version of the expansion? because the first line won't work.
I am not using a modified version, I thought that for that to work, you have to import packages
For the arg placeholder part, you can't do that with the current version.
If you want, you can download my fork from here https://github.com/PlaceholderAPI/Javascript-Expansion/pull/8 and use
var p = Placeholder.setPAPIPlaceholder(BukkitPlayer, "pinger_online_" + args[0]);
You can't use other plugin's APIs in JS code.
Thank you very much for the help
No problem!
π
π π
I saw my name in that.
Oh.
Does JavaScript still need ;? Last time I used it with NodeJS never needed them
For this javascript engine yes apparently
Maybe on
it will be rewritten to a more advanced javascript engine
*cough* @cosmic shale @carmine veldt *cough*
cough
Lemme check
Please.
What's the issue with the current one? Not sure I know.
The current engine is old and I think piggy said is no longer updated
Like it doesn't support new stuff, not even const I think.
Alrighty I opened an issue for it.
He said to use some graalvm thing but I would let you have fun with it xd
The js expansion is very good, imagine if you can update.
I've personally never used it but yeah, we'll definitely look into it.
ploz
Oh so it's built into the JavaScript Expansion and not PAPI?
what
It looks like it's built into the JS Expansion
Nothing to do with the regular PAPI
I know, I mentioned
because piggy said that we will update the expansions that we have access to.
I don't mind if you update it sooner xd
Well it's a good thing I tagged the issue as a reminder.
Cause now it just looks stupid
hmm
The thing is that drupi (https://github.com/drupijs/Drupi-JS) uses nashorn too but it has access to more advanced javascript than we do.
Probably because you have to specify the engine for each script and default is "javascript"
Which idk what it means ("javascript")
Ahh
I don't even see anything that says nashhorn in this expansion.
I wonder if it's just the javax one.
That's what I have been told
What I know is that I would love to be able to use more advanced javascript xd
- a few additions like creating and parsing placeholders using arguments (
"%player_has_permission_" + args[0] + "%")
Ahh
wonder if we can have expansions for other languages too, like python
Hmm, wonder why Andre added v3 milestone to bungee support. Currently we're just doing bukkit, nukkit, and sponge.
I could look into making a javascript expansion in boredom potentially.
Anyways Glare couldn't find the thing you were wanting I thought I had one in my storage.
I know we talked about Bungee but not sure if we were planning to have it right away at v3
By the way.
Rip
As RedisBungeeExpansion needs to be updated to work with their new versions by Clip.
yeah
Ahh, yeah I can update it.
forget who mentioned it earlier with a channel issue.
and I read in the github of redisbungee
mentioning that the expansion has to be updated to support their new methods.
Yeah I think I remember someone talking about it. The best option would be to add the repo to the org and then we can just go from there
But most likely would have to remake the expansion from scratch since I don't have the source
This issue:
[09:50:21 ERROR]: [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.expansion.redisbungee.RedisBungeeExpansion
[09:50:21 ERROR]: [PlaceholderAPI] Channel must contain : separator (attempted to use RedisBungee)
as it won't even load.
Well, if someone wants to remake the expansion, we can update it, pending it works.
do you have the source for it like publicly?
But most likely would have to remake the expansion from scratch since I don't have the source
ah.
didn't see that.
I tagged clip in it but doubt he'll read it and he doesn't really have a lot of time atm anyways.
to maybe make the source public so it could just be modified over redoing the whole expansion
Is the Server expansion public @trim mist ?
or in a private repo
Mhmm
you got a link if it's public.
A collection of expansions from PlaceholderAPI - Help via our Discord https://placeholderapi.com/discord - PlaceholderAPI
like for the source.
I'll be doing a few PR's likely tonight to a bunch of the expansions likely.
Nice!
Is the server expansion the one with the countdown?
as I think someone asked for a counter that counts upward.
may look into that
RedisBungee source
Uh I have no idea which expansion does that. There's like almost 200
server
I'll look into tonight into potentially fixing the RedisBungee expansion.
Just need to see what method is outdated and not working in the code.
@vivid sparrow any expansions that need placeholders added that are public that you know of?
@alpine anvil
yes?
well i sorted mine out with javascript placeholders but eh for others, can you add a listplayers placeholder to remove vanished
listplayers
I'm confused by listplayers..
that's it name
I know you want that placeholder
ah no repo for that so likely need to decompile it.
oh u got to love decompiling
I've got a custom decompiler.
oh really?
yeah
can get somewhat exact?
jd-gui is bad
I custom made mine but won't continue here #off-topic .
Yeah, not all of the expansions are in the org.
It would've been pretty annoying to move over 120+
hf
is there a way to change the outputs for %discordsrv_linked_online%? i searched in placeholderapi folder and also in discordsrv server but can't seem to find anything.
change to what?
well i want dnd to be do not disturb
and online to be capitalised
Online/Offline not online/offline
is that placeholder for in-game?
javascript placeholders
oh yeah i can make them π forgot about that :))
I mean I'd like to look into the js expansion when i got time, but not very excited about adding things to expansions as if i didn't merge the pr, it wont get merged :p
It will
@bronze bison @mint fable Do you remember trying to help me out with the PAPI for breaking sugarcane? I'm yet to have figured it out if you guys have time to help π β€οΈ
@quick tinsel
Please be patient and don't ping staff members!
Sorry mister.
Would I just be better off having my developer make me some placeholders for these 5 placeholders which aren't working?
If minecraft doesnt track these items, I guess your guy will have to track them manually.
Alrighty thanks.
Yikes, I wonder why they don't.
It's not a huge thing to keep data of
Well they do have it somewhere I believe I don't think it's grabbable though.
in the blocks section
Yea, looks like they don't.
Hello, that chat reaction plugin https://www.spigotmc.org/resources/chatreaction.3748/ is open source?
Or is there any way of me getting it somehow?
Unfortunately no, and ask clip when you see him online to open source it π
Ugh... okie ty anyways.
No it isnβt
Clip wonβt open source it as far as I am aware @bronze bison
Due to people trying to copy it etc I would assume
I thought he is talking about the expansion (its #placeholder-api ).
then yea dont think he will
@placid smelt were you talking about the plugin or expansion?
The plugin will never be open sourced as far as I am aware
@warm oriole Anything that works I need d
Just look on spigot or make your own
Or just use regular chat reaction
Not sure why you need the source but you wonβt be able to get chat reactions
I made a placeholder that shows badges depending on the player's permissions
https://cdn.discordapp.com/attachments/634867511296524288/661337326408171550/Captura_de_pantalla_157-1.png
But i have a problem
This happens if I don't have the permission of badge 3:
https://cdn.discordapp.com/attachments/634867511296524288/661337326902837258/Captura_de_pantalla_159-1.png
How can I make it look like this?:
https://cdn.discordapp.com/attachments/634867511296524288/661337326902837261/Captura_de_pantalla_158-1.png
Here the code:
var badge1 = "%player_has_permission_badges.badge1%";
var badge2 = "%player_has_permission_badges.badge2%";
var badge3 = "%player_has_permission_badges.badge3%";
var badge4 = "%player_has_permission_badges.badge4%";
var badge5 = "%player_has_permission_badges.badge5%";
var page = args[0];
function badges() {
if (page === "page1") {
if (badge1 === "yes" && badge2 === "yes" && badge3 === "yes") {return "&8[&1&lBadge 1&8] [&2&lBadge 2&8] [&3&lBadge 3&8]";}
else if (badge1 === "yes" && badge2 === "yes") {return "&8[&1&lBadge 1&8] [&2&lBadge 2&8]";}
else if (badge1 === "yes") {return "&8[&1&lBadge 1&8]";}
else {return " ";}
}
if (page === "page2") {
if (badge4 === "yes" && badge5 === "yes") {return "&8[&4&lBadge 4&8] [&5&lBadge 5&8]";}
else if (badge4 === "yes") {return "&8[&4&lBadge 4&8]";}
else {return " ";}
}
else {return " ";}
}
badges();
How about you make a variable that will have the text it will eventually display, and a counter maybe
and you check, if he has the badge add the badge to the variable and count up, if it reached the limit stop and return
If I do that the badges will be adjusted by themselves? 
I will try it, thanks for the help
for the second page, you check if they have more than the limit, and if they do add the rest if the dont just return nothing.
Would anyone be able to help with a problem Iβm having with the Player expansion...now matter what I try it will not load in and work
I try to download it from the in game command it tells me to papi reload but it still will not show up even though itβs in the actual expansions folder
when you download it and then reload, what it says in console?
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
So how do I go about doing that
Copy the text from the console, open this side
, paste it, save it and send the link π
Seems like you don't have the latest version of LuckPerms
I do
You sure? Latest version is v5
its either you dont have the latest of LuckPerms or LuckPerms expansion
5.0.9
Ok then, redownload LuckPerms expansion to get latest version
π
Sorry
All good!
Just committed a new change to my PAPI fork to prevent that from happening.
EzRanksPro and trying to check placeholders with PAPI https://paste.helpch.at/arilimosor.bash
Done @trim mist
in my scoreboard it shows Total Players: %bungee_total%. I downloaded Bungee in papi and it still just shows the placeholder
you need to use the mvdw placeholder @cyan meadow - as featherboard doesnt support plain papi. {placeholderapi_bungee_total}
Thank you
Hi, I am trying to use plaholderapi with Towny but the placeholders arent working on my scoreboard, anyone have any idea?
Anyone know why Vault placeholder is not registering?
/papi ecloud download Vault /papi reload?
the expansion doesnt hook
Do you have vault?
@muted bough you downloaded the expansion if it has one? Does your scoreboard plugin support PAPI?
Here's a list of all placeholders and their download commands if it has one:
https://helpch.at/placeholders
/papi ecloud isnt a valid command so i can't download extensions - using the Sponge version of the plugin - how do I install the LuckPerms extension???
@analog token contact their support below and see if they have a expansion for that
You may need to check the ecloud and try that one and see if it works for sponge
Sponge PlaceholderAPI is nothing like clip's PlaceholderAPI afaik
Don't think it supports clip's expansions
how tf i get placeholderapi to work
I mean what's not working..
alright so i downloaded it
im trying to use it with this plugin https://www.spigotmc.org/resources/free-faction-map-scoreboard.23071/
but im not sure what i have to do/put down to get the %'s to function
You download the expansion, if the plugin provides one, and then reload the plugin
Lol, he claims "they worked for me, so if they don't, come to PlaceholderAPI support for help"
he doesnt provide any explanation as to how to actually make them work or even what expansion to use
Well if there is not expansion available, then the placeholders are internal, which means if they don't work properly, you will need to sort it out with the author
alright ty
Anyone used PAPI with deluxechat?
Probably a #deluxechat question
yo
I have some problems
Placeholders on featherboard are not loading?
ive never had that problem before
Not loading as in? displaying the placeholder, or the value not updating
yes
And if so, any console errors?
ill check in a bit
%server_countdown_dd.MM.yyyy_01.01.2020%
i wanted to add the server date
on the scoreboard
yet not working
use {placeholderapi_server_countdown_dd.MM.yyyy_01.01.2020}
Hello i have a problem with my scoreboard
all my scoreboard placeholders are not working
added MVDW and Placeholderapi and hooked in mvdw api and Vault api but nothing works
Does your scoreboard plugin support PAPI?
its FeatherBoard
its not working
For PAPI placeholders, {placeholderapi_<PAPI Placeholder without the %% and %%>}
and make sure you have the expansion of that placeholder.
Well, thats a FB issue. Contact the author of it.
Try downloading MVdWPlaceholderAPI plugin. Might fix it
@bronze bison
is there a placeholder from the placeholderapi Player Deaths and Player Kills?
i added that but its not working
was that
/papi parse me %THE placeholder here% does it work?
Did you download the expansion?
well then,
/papi ecloud download Statistic 1.7.0
/papi reload
ok
Mentioned on the wiki btw.
how can i remove this 1?
You don't. Just run these commands
Great!
WARN Unexpected exception while parsing console command "papi reload "
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
paste the whole error @austere hawk
latest version of papi really has issues with updating placeholders... ive said this already 2 weeks ago. I have looked at this, and everything related with numbers in placeholders are not updating correctly. Sometimes it does, sometimes it just stays at 0. Happens by plugins, but also by redisbungee, playercount, and bungee expansions.
And yes update interval is fine.
Anyone has a javascript for me that counts an age of a server
im sure that i made this for that https://www.spigotmc.org/wiki/placeholderapi-javascript-expansion-scripts/#difference-between-2-dates
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
also about that issue, i still think its something on ur end.
Do you have the update: true tag on your items?
you mentioned the interval, but not that part ^
Just want to make sure
@austere hawk
thats a cooldown
Hey, my venturechat isn't showing the DeluxeTags in chat, just the placeholder for it. I'm pretty sure it's a problem with the papi expansion because it doesn't show up in my list of active ones, and when I try to download it gives me this error: https://pastebin.com/Fm0p3GAt
Seems like a VentureChat issue? /papi list DeluxeTags there?
the deluxetags hook doesn't show up, venturechat does
when I try to add the deluxetags hook that error on pastebin pops up
Well it downloaded it fine, just can't tell what happened after.
Oh, update LuckPerms.
Seems that these errors are from MineverseChat
And DeluxeTags expansion isn't getting loaded because of LuckPerms expansion.
what do you mean?
I can't believe that would work that way π
All set now, thank you!!
Great! No problem π
Example holograms, but also menus, and featherboard also not.
ah
Well it could be both not updating the placeholders fast enough.
there is a config option in papi for updating things I think, maybe that could be it?
@bronze bison How can i make from example i released a server yesterday, how can i make it so that it counts the ages of the server.
so like the server is now 12 hours old
@bronze bison 10 seconds should be fast enough.
Don't look at Cooldown one, i linked to the one above it
it also happens by economy plugins that should update instant.
and u just set the date, and it counts from there
oh nice

about the other thing he wants cj π
I was responding to the economy statement π
there is a bungee check interval in the config though if you want to try that @austere hawk for those placeholders
the economy one... not too sure
Already did...
can you send versions of what you're using?
does not help