#placeholder-api
1 messages ยท Page 159 of 1
player_name was for the example, i need parse_other because this placeholder wont work if run from console, it does not come with player flag or something like this
I'll try something else
I recommend the javascript expansion. that's probably your best chance
Ahh ^^ I'm too bad to do something like this, i'm not gonna use math placeholder instead :p
javascript ain't that hard. especially for what you need.
the code would look something like this: ```js
function check() {
var value = parseInt("%parseother_{player_name}_{jobsr_user_jlevel_hunter}%")
if (value >= 10) return "message1"
else return "message2"
}
check()
Well, well its hard for me XD, 'ill try this
I need help
There is no time to wait! Ask your question @cunning pier!
It's hard to explain since I can't post pictures in here
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
The apple suddenly became huge
https://imgur.com/a/Qcar0jO
Hello i cant find any placeholderAPI for Most Challenges completed and for Most unique challenges completed for my bskyblock any there can help? ๐
https://www.spigotmc.org/resources/placeholderapi.6245/ is it the last version?
I have the placeholders but i miss the statistics for the most Challenges completed for bSkyblock ๐
hey everything of mine placeholder is working except for the luckperms one
%luckperms_prefix%
did you install the expansion?
hey
i am doing this
'{%vault_prefix%} &7{player} &8&lยป &7{message}'
but the rank prefix is not showing up
in chat
i download vault expansion also
what chat plugin
its a skript gamemode in config it allow to change the chat
is there any placeholders expansions that allows you to do static placeholders with fixed values?
maybe config @lofty valve
Can anyone help me please with placeholder Pinger?
Any way to detect when a placeholder's value changes?
not by default @wild karma
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
@dire violet
wdym
I mean, unless you store the values on an interval, no
Yes?
like every X amount store it ?
oh well ye ofc, I meant an event that tells me when placeholders change
Pinger ping motd from server.properties
but i want to see the motd which makes the plugin for minigames. Anyone help?
no
well yeah but we cant really check that
Is there a placeholder that shows a list of plugins on the server?
how to let placeholders work on holographic display such as ess placeholders
you need holographic extension plugin
spigotmc
I can't get the math extension to work with VentureChat because math uses {} for nested placeholders and VC uses {} instead of %% for standard placeholders
is there any way to fix this?
not from here no. The math placeholder just uses the standard PAPI nested placeholders
just use javascript for the math
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
Hello
Iโm a new-is dev
And I would like to speak to someone who has made APIs to see if Something I want is possibly and if they could suggest a site or place to go about it .
Itโs simple , I want there two be 2 possibilityโs Based in a variable , the possibility being it display a X or. A Tick , eg Unlocked : X. And the variable being a Certain Permission , or unlockable in a plugin ( Mcmmo) . Is this possible or is it impossible
Feel free to dm or reply here
Good evening!
I have a skript of which here is the code below: (MC 1.16.2)
on join:
if player has permission "admin.test":
set {test::%player%} to "&c&oNo &4โ"
But my plugin (TAB) does not recognize the variable ... https://prnt.sc/14lbfem
Config of TAB:
- '#FFEF99VIP &7: %skript_test::{player}%'
I downloaded the Skript extension directly in game and PAPI (2.10.9) works fine on the other extensions, do you have any idea what the problem is?
You code APIs?
No
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
(I don't know if it's for me, but if so, I already have it ๐ )
Wait what does that script do btw
Explain a bit more
It is used to bring out a different sentence depending on the presence of the permission on the same variable
Could all the righ APIs
But the problem is not with the script
Got all the right APIs
Good luck
Iโm not sure
Seems a good script if it worked
Iโm in a similar dilemma
If a Support has time to watch this, it would do me a great service ๐ญ
which is the prefix placeholder of the highest group of the user with luckperms
Hey,
I would like to add my extension to the cloud but I can't register. How can I apply for registration?
Send @tender vapor a private message
%luckperms_prefix_element_highest%
The Skript expansion available via the eCloud command is broken. Use this instead: https://api.extendedclip.com/expansions/skriptlang/. If you look closely in your console, the original Skript extension throws an error when trying to load.
Is there a placeholder that returns amount banned?
Depends on the plugin you're using to handle the bans
Not to sound impatient but that bot is a bit unresponsive.
Hi yes, dm me a username and email you'd like
Will do ๐
hello
not working placeholder voteparty
frames:
- '&eโ &fVoteParty: &e%voteparty_votes_required_total%&f/&e50'
i updated the version placeholder
and not working
If you're wanting help with VoteParty please see #spigot-linking first.
Hi
i just made a custom economy via skript
how do i make an placeholder with it
because i can just put it in messages via skript
but not on quickboard which is linked to my PAPI
https://paste.helpch.at/yepovukufe.rb - using mohist not sure what's wrong
Contact Mohist support. We don't directly support that.
even tho yeah you should ask Mohist's support, I think you placed PAPI in the mods folder instead of the plugins folder
are you using a resources pack?
with the Javascript plugin, how do I get it to work on 1.16? What engine do I use since nashhorn won't work anymore?
yeah it's not in the documentation as far as i can tell
also i meant the 1.17 update with JVM 16
they're working on updating it. probably will be released in the next 2 days
so is it ok to test my server on 1.16 Java 11 for now and wait for the new.... PAPI update to release?
is this something that needs to be fixed with PAPI in general or just this extension
yeah. PAPI won't be released. Just the javascript expansion
yeah just the expansion. not PAPI
hmm i didn't see they were updating it anywhere but yeah thanks
where'd u see that?
I will be releasing some information most likely tomorrow about the JavaScript Expansion.
no, just a placeholder that looks at how many players that are in the banned players json file
there is no placeholder for that then
o
which expansion controls stuff like %player_name%
because it's not working for meh
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
.
hi to you too
have you tried parsing the placeholder in /papi parse to see if it works?
Hello, I'm trying to use the placeholder %statistic_hours_played% however whenever I attempt to it doesn't seem to function. When I type /papi parse me %statistic_hours_played% a 0 is displayed.
Plugin Version: 2.10.9
Server Version: 1.16.5
@austere hawk I'm running same versions as you and that command parsed for me
Interesting! I wonder what the issue may be then ;-; When I use /papi list it shows that "statistic" is there
update: i even tried deleting the expansion .jar and redownloading it, same issue persists
make sure you only have one version in the expansion folder
@austere hawkare you running Spigot or Paper?
Currently using a fork of Paper. Every other placeholder I have seems to work fine.
statistic data comes from the paper version your running
Hmm... Think it might be because in my spigot.yml I have this? ```
stats:
disable-saving: true
could be
I am kinda noob with PlaceholderAPI
Please respect the rules, be patient and don't ping staff members!
Hi. I'm trying to figure out how to find and get the highest number from a scoreboard objective from all players. just a quick question, is it even feasible without writing some javascript because I don't see a way to loop over all the players within a list returned from %playerlist% to get the appropriate scoreboard value and feed that into the %math_MAX()%
Hey, would there be any way to view the placeholders that are inside of this expansion? They are not listed on the plugins spigot page or github and there is no expansion folder in PlaceholderAPI
Hey, i'm running a javascript for doing infinite rankup prices
anyone know how can I get the formula for infinite rankups?
Rank 3 - 2,141
Rank 4 - 6,364
Rank 5 - 14,987
Rank 6 - 30,441
Rank 7 - 55,751
Rank 8 - 94,553
Rank 9 - 151,118
Rank 10 - 230,363
Rank 11 - 337,867
Rank 12 - 479,887
Rank 13 - 663,367
Rank 14 - 895,951
Rank 15 - 1,185,994
Rank 16 - 1,542,572
Rank 17 - 1,975,490
Rank 18 - 2,495,297
Rank 19 - 3,113,287
Rank 20 - 3,841,513```
I mean a formula like formula: "({previous} + 500) * 1.005"but with the values I sent, I'll appreciate any help, thanks! ๐
did you install the expansion?
.
/papi reload```
can someone help i want to use a variable value in another plugin (discordsrv) but idk how. I did /papi ecloud download skript and then put in the value %skript_<joins>%. (The variable is {joins} ). What to put in?
it just says %skript_<joins>%
Are there any papi expansions that tell you the version a player is connecting from
if u have viaversion, then yeah
The problem is that I don't think the ViaVersion expansion is updated
and the API changed or something
so it can't detect 1.17 properly
I didn't even know VV has an expansion tbh.
I hope this clip person will update it if that's the issue ๐ฅบ
Very likely he won't. He's pretty busy IRL. I don't even see the source for it in our org.
I can reach out to the ViaVersion team and see if they have anyone interested in maintaining it.
If not, I can try and see how hard it would be to update it later this week.
That would be great honestly a life saver
The issue with the ViaVersion expansion is fundamentally the same, it produces Unknown (755) for players who try to join
https://github.com/ViaVersion/ViaVersion/issues/2513#issuecomment-856540780
https://gist.github.com/KennyTV/3778685985ddc45bd99e003191ff02eb
Oh so it's their API returning "Unknown (755)"
Yeah the person was using an older API
Which placeholder is producing that?
%viaversion_player_protocol_version%
Thanks. Yeah, I'm at work but I can look into this later today or maybe later this week!
Okay thanks for the help ๐
@shadow grotto I had an extra minute or 2. Did you want to test this out? Same placeholders.
I will test it out soon! Thanks.
Working ๐
Produces 1.17 as the version number
Beautiful. Thanks.
Placeholder API Javascripts broken on the latest update?
yeah starting with Java 15, it doesn't include a JavaScript engine
I think Blitz is working on fixing that, should be soon
Hi!
One question
I'm trying to create a placeholder that checks the value of another placeholder and returns a new value
So I can have something like this
x = a
y = b
z = c
If %otherplugins_hero% is x, then %myplaceholder_hero% is a
well u got a few options. Either the CheckOutput expansion. Or the Javascript expansion
ChangeOutput @turbid tide
that ^
๐
I will make an announcement on this sometime in the near future. TL;DR they will over time work, yes. Right now, not right away. We're super close though.
js has been broken for a awhile now (at least some of the functions) ๐
Yeah
Please respect the rules, be patient and don't ping staff members!
ull be better off using the javascript expansion then
yes
Please respect the rules, be patient and don't ping staff members!
is there any bungee placeholder plugin
i download server and bungee extension but still it showing 0 when i put %server_online_survival% and im survival there are 45 players online :/ now what
What's the name of placeholder like on Hypixel Score bioard here was a date placeholder https://fantom-is.ddosing-your.site/โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ like this under skywars i wanna know name :D
ik it's bad explaining, sorry
i can;t send photos
and embeds
epic
=image
Please use imgur to share screenshots and other images.
โข Imgur
okay
i send it
need plugin name
Hypixel use all custom stuff. What placeholders are you exactly wanting to get?
%server_online_<world>%
under skywas there was a date thing like 01/05/2021 i highlited place
can't i set server??
i want that player can see online players number from lobby
i think that will work
If you read the link I sent you, It shows you what the placeholders are.
%localtime_time_<SimpleDateFormat>% what should i put in <simpleDateFormat>?
Read the sentence under the placeholders. It has links that explain all that.
yay worked!
where here is no bungee placeholders?
like this.. %bungee_status_server%
@wraith goblet ... This link...
is there any other placeholders to only set this https://imgur.com/vokm3Bj that ins't higlited?
is there only 2 place holder for bungee?? no status
%bungee_total%
%bungee_<servername>%
The second one will give you a total of how many players are online on that server, the first one gives you a total amount of players across all servers.
ik that :/
Isn't that what you were wanting
%pinger_isonline_***.***.***:25565% &e%bungee_slimefun% My server is online.. Why it is showing offline
nvm now it showing online
gg
i figure out my self xD btw thx for link
/papi ecloud download PlayTime not working
i have the recommended plugin
installed also
.
Can someone help me I'm having problems with PlaceholderAPI 2.10.9, I've done everything and I can't fix the error and this ([PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: cooldown)
Are you on Java 16?
no
Which version of Java?
from the server?
Yes.
1.8.8
Alrighty.
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
oofers
Sorry buddy, I can't help you. We don't support piracy.
๐จ A user has been banned for using plugin leaks, be like me and use legit copies of plugins.
has anyone has issues with the ListPlayers expanstion?
ok thanks
Ok so i got that down but if there is no one in the world it wont show an item. Is there any way around this? (%playerlist_online,world,yes,amount,worldedit%) that the code rn
im using this in the "stack:" part
so its stack: '%playerlist_online,world,yes,amount,worldedit%'
what stack? where is that? what plugin are you using it in?
oh well. if there is no player online, it will always return 0. you can't really do anything about that.
ok
well maybe use the math expansion
1 second
@arctic loom did the math expansion not have a if statement u could use before?
no
strange. I Saw quite a few people ask about this here before but never actually looked up if its a thing or no.
well then the Javascript expansion is your only chance.
it's not
alr
The expansion does nothing more than handling math expressions
var players = parseInt("%playerlist_online,world,yes,amount,worldedit%")
if (players == 0) players = 1
players```
this is all the code you need
oh much thanks
if the players will be 0 it will change it to 1
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
again, much thanks
@turbid tide
Please respect the rules, be patient and don't ping staff members!
I waited like 4 days
yeah I saw. and bcz I Didn't answer usually means I've got no idea why
also has nothing to do with PlaceholderAPI
But I put the apple there using PlaceholderAPI
Hi. One user told me that placeholders in my plugin aren't working, but for me they are working (at my test server). In his logs we saw [PlaceholderAPI] Successfully registered expansion: rep but in /papi list he didn't see this expansion.
What can I do?
You can check my code at https://github.com/iBuseWinner/Reputation/blob/master/src/main/java/ru/buseso/spigot/free/reputation/Utils/RepExpansion.java
ugh. but the placeholder works tho right? IDK what to tell you. I never used HOlographicDisplay to place items. so id
k
ask them for the /papi dump and startup log. and yeah /papi list only lists the external expansion. Not the ones built in the plugin. that's fine
usually u can see in the log, errors or something like that.
also see what /papi parse me %placeholder% returns
does it return the placeholder back? Or some text
?
For me - it returns what need
For user - no (/papi parse me %rep_rep% -> %rep_rep%)
alr. send their log here. I'll take a look at it later and see if I can spot anything
also the dump
/papi dump will generate a link. send that link
well gtg now. going to look at it in a few hours if no one else does.
https://paste.helpch.at/nibopigiqo
My plugin is Reputation and it registered
Logs: https://github.com/iBuseWinner/Reputation/files/6633735/latest.log
placeholder
can you show me the logs from your servers by any chance?
oh @quiet dune I recommend u stop helping that user. He is using leaked plugins. We are not going to help any more just because of that
I've just added PAPI support to my plugin and I want to test it, but I'm a bit confused on how it is utilized.
If I do /papi info myplugin I can see my plugin listed as registered
you can parse placeholders using the /papi parse command
/papi parse <target/me> <text>
I tried it but nothing is being sent to my onPlaceholderRequest function
did you register the placeholder class when your plugin enables?
mind sending the github link?
one sec, gotta update it
๐ just leave it here when u're done
I put a test on this line to see if I actually get any requests: https://github.com/stumper66/FindPlayer/blob/main/src/findPlayer/PAPI_Manager.java#L41
but have yet to see it do anything
and what command have you tried? the entire command please
/papi parse me %findplayer.location%
and
/papi parse me %location%
ah, it worked!
๐
glad it was something simple. Thanks!
no problem
Is there a way to make your own papi extension?
yeah if u go to the wiki on the github page itll show u everything u need to know
A resource that allows information from your favorite plugins be shown practically anywhere!
โข Spigot
โข Wiki
โข Placeholder-List
โข GitHub
โข eCloud
Is there a pre existing placeholder that counts # of players in the banned players.json?
Not that I'm aware of.
PlayerList expansion
ohh i did not see that
Can you install papi in a proxy server? for things like TAB.
nope, it's a Spigot only plugin
but TAB already has its own bridge tho. so you don't need it. But at the moment PAPI is spigot only yeah
yeah he came on TAB's discord to ask that too
u not going to say anything?
?
Yeah was just a little confused about the papi bit, haha. Tanguy helped me out though ๐
I have evolved and you didn't even notice? 
I am both a developer and TRusted now
nice
just 2 more weeks and I Will get my final form
admin ? ๐
well u suck then
but I Don't aspire for such great things yet
x)
i thought you were working on it
ohhh what
they rewrote it since thien is gone for like 3 months
what was the whole thing about you sending me that JS thing and having me test it
so he wasn't able to push to github so we can take over
was that for nought
yeah pretty much I guess. The features can still be added by thien later but he'll have to work with then new expansion
also a full rewrite is being worked on I think for when PAPI 3 comes out
man I wish I was doing cool stuff and not rewriting my stupid tab completion for my shitty essentials plugin ๐ฆ
get glare to do it for you xD
well no I want to be doing cool stuff is the point lmao
well I tihnk I'll be going to sleep now. good night
Hey there I know this is super specific but, I want to have a placeholder that I can set a number and it will return a value that goes down and down every second by 1 until it reaches 0, any ideas?
sounds like a job for the countdown expansion to me ๐
is there a placeholder for uptime in a bungee server?
example
Vanilla:
Online from: %placeholder%
Bedwars:
Online from: %placeholder%
hmm there isn't one named that
hi, how do i fix this https://paste.helpch.at/cuxehepate.sql
Are you running 1.17?
no, java 16, paper 1.16.5
iirc you'll need to be on java 8 for 1.16.5
since thats the js engine the expansions and plugins use
yeah im not doing that, the whole point i updated to java 16 was to prepare for 1.17 not go backwards
i'll wait for paper to hit 1.17 then, thank you
Placeholder %player_ping% can not use in 1.17 spigot.
this bug has been reported and a jar will probably be put in #852317810394267708 when its fixed
Looks like an Issue with Lunar Client, I wasn't able to reproduce on Vanilla
Please respect the rules, be patient and don't ping staff members!
hello, can i create my own placeholder without creating my own plugin? i want to save a value in my own placeholder, so i can use that value easily in many place
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
with javascript that's real easy
the script is exactly what you want
5
``` should theoretically work
just follow this guide https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script
mmmm without using js expansion
well sure
because java 16 wont support nashorn engine i think
gotta make an expansion with java still
ya... atm that won't work
but it will eventually
they're working on it yeah
that's how you can make an expansion for it though
Hello, how can I make a top of kills
use a plugin like LeaderHeads or ajLeaderboards
to make the leaderboards
and use the %statistic_player_kills% placeholders to make them
But I want to do a top kill on the scoreboard
well the plugins will give you placeholders
for top kills after you set them up and you put those placeholders in your scoreboard
https://github.com/PlaceholderAPI/Javascript-Expansion/pull/38 this should fix it
%server_time_<SimpleDateFormat>%
does placeholderAPI supports rgb? I don't know what kind of &'s it requires which is too confusing (there's like 3 possibilities), don't know if its because of DeluxeChat which doesn't support %luckperms_meta_name-color% or I typed it wrong. Tried &x#XXXXXX and &x&X&X&X&X&X&X
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
here cause i cant paste any photos inhere
https://www.spigotmc.org/threads/placeholderapi-and-gui-need-help.510564/
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Hello, I am currently creating a PlaceholderExpansion which is included in my plugin, and I've done all the steps that are indicated on the wiki, registered my expansion (and i checked it is loaded in game), but when i'm using placeholders (in my scoreboard) then it doesn't works : i just get the placeholder text but not the value it is supposed to return.
Here is my code :
https://pastebin.com/2DzQrN9t
https://pastebin.com/h6kLGaL7 (interesting lines are 1, 2, and 29).
I'm 100% sure my scoreboard code is working because it was working 5 minutes ago before I change to placeholders)
Try printing out renommeeString after line 2
Then it's not setting your placeholder correctly
wait
that's not the right placeholder
your placeholder would be %nouveaumonde_player_renomee%
your identifier is how it knows where to find the placeholder
since what you tried to do is check in the player expansion for renommee lmao
np lol
i have another question : is it possible to add parameters to my onPlaceholderRequest or will that break stuff?
Well you don't call onPlaceholderRequest, PAPI does
excuse me , i have registered my placeholder but it's not work although my plugin is present in /papi list
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
full class?
so you don't include the name of your papi expansion or the %%s in your case statements
so you'd just want show_name
and show_level
ye i've tried with show_name and show_level and test on AnimatedScoreboard but not work
you should have java /** * Because this is an internal class, * you must override this method to let PlaceholderAPI know to not unregister your expansion class when * PlaceholderAPI is reloaded * * @return true to persist through reloads */ @Override public boolean persist(){ return true; }
but change it to show_name and show_level, then go into the game and type /papi parse me %EmpireX_show_name%
alright i will try , ty for help
it does not. not yet at least. PAPI v3 will tho. but that might take a while
can we see the menu in a paste bin? if you are using arguments btw then show that not the %player_name% placeholder. so {argument} instead or whatever its named
i am back soryy it took long uhh im using gui plus and luckperms
Please respect the rules, be patient and don't ping staff members!
I'm afraid I Don't know how that plugin works. you'll have to contact their developer.
well then is there any tutorial on how to make a gui ? like the one i made in that thread?
idk. I've never used that plugin. I Personally use and recommend DeluxeMenus over any others
Hi, I don't understand how Vault placeholders work, can someone help me please?
well just say what about them don't you understand?
That is to say that I try to make a menu with DeluxeMenus to make a money ranking, but it does not work correctly, for example I use this to display the TOP 1 %vault_eco_top_balance_formatted_#1% but it doesn't display the first player's money: /
the top placeholders have been disabeld
disabled*
you need to install an older version of the expansion and also enable them in plugins/PlaceholderAPI/config.yml
so do /papi ecloud download Vault 1.5.2 then /papi reload then go to conifg and enable top placeholders
then do /papi reload again
they should work after
vault:
baltop:
check_delay: 30
cache_size: 100
enabled: false
yeah set it to true
I met true?
okay
I test and I tell you again if it's ok
Now it's the money that doesn't want to show up, I use that as a placeholder: %vault_eco_top_balance_formatted_#1%
The players look good, but not their money :/
Might there be any hacks for running JavaScript placeholders on Java 16? - I'm aware of what's said in #852317810394267708 and I'm just looking for something that can serve a proof of concept until the release of the proper stuff.
You might be able to contact Yugi, he's working on the JS expansion for new versions afaik
well there's a couple proof of concepts xD
Maxim made PR if you want ot use that one
also thien has a build and its a bit buggy but it works
for most stuff
Link me. ๐
this
its not PRed tho but u can compile his fork
if u really want it
Ah, okay.
Any chance you could compile it for me? I'm clueless as to how to do so.
ugh not rn no. later maybe. or maybe @errant iron ?
btw its just mvn package I think
I've never even used Maven, so yeah... clueless.
Still in bed ๐ฅฒ
I can send you a jar of my fork which makes the expansion work with the JSEngine plugin if you want
Hello, how can I use offlineplayers in my placeholder expansion? Because the onPlaceholderRequest method only uses Player and not OfflinePlayer
use the onRequest one
oh okk
thanks
but then how do I tell the plugin to use that onRequest instead of onPlaceholderRequest ?
u don't it automatically knows. you use one of the 2
well actually i'm trying to use both at different places and it doesn't works, it broke all the placeholders that were in my onPlaceholderRequest method
why use both tho?
don't think u can use both and I really don't see the reason to do so
because sometimes I need to use specific placeholders on players that are online
well you can get the online player from the offline player and if its null you just return null
so basically the placeholder will only work when parsed on an online player
no problem
/papi parse player %luckperms_meta_metakey% is not working with offline player
anyone can help about this?
oh nvm, i think this problem is from luckperms
yeah the LuckPerms expansion doesn't support offline players
hello !
i need assist in make an addon for my tokens system plugin
an addon for placeholdersapi .
so i can use %tokens% in holographicDisplay or smth .
hello, looking for some support on using PAPI. I am trying to make a podium that displays peoples balances (using essentials and vault economy). However I haven't found many tutorials on actually displaying the stats via PAPI
what eco plugin you using @abstract hare
I found AJleaderboards, are u familiar?
Yeah I keep getting a "does not return numerical value error"
I want to make a sign or signs that dispaly top three balances through vault
Ideally I want NPC's with the player skins standing on a podium that refreshes every say 30 ish minutes idk. Saw the citizens plugin would work but MCProhosting shows it as "(Abandoned)". However also still ahving issue trying to load the vault top balances to work / how to
kk will do, thanks!
Once 1.17 comes out, what will become of the Javascript Expansion since Nashorn has been removed>
We have implemented a different engine that has better EMAC standards (I have no idea what that means but people asked for a better support of that).
The soonest we'll probably be able to get development jars out will be Tuesday. Shooting for a full eCloud rollout by EONW.
hi, im using placeholderapi in conjunction with tab from neznamy (paid version) and everytime i reload the plugins it gives some error
and when i use colored ping it spams the coonsole with errors
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
no alternative to nashorn? what am i meant to do for now?
What placeholder can you use to grant items to the user who clicks?
What would be the correct placeholder?
- '[console] ps give COAL_ORE %player_name%'
That looks fine.
It doesn't work for me
- '[takemoney] 7000'
- '[message] &6.................'```
Money and message works
[22:01:24] [Server thread/INFO]: Player not found. (%player_name%)
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
Are you on 1.17?
Yes
Did you download the new server placeholder in #852317810394267708
go to plugins/PlaceholderAPI/expansions and delete one of the 2 BUngeecord expansions. (you should have only 1 in there)
Is there a way to put placeholders on to a html website?
JavaScript expansion is not loading the scripts, even with the latest build in #852317810394267708... On 1.16.5
https://www.spigotmc.org/resources/rest-placeholderapi.90266/ maybe something like this will help
@honest mantle <#852317810394267708 message> why the
?
My guess is because he thinks JS Expansion and PlaceholderAPI are related.
If that's the case, I'll just remove the downvote and assume everything is fine.
heya, i'm using the forge version of papi and ecloud does not seem to work? is that something i did wrong on my end
We don't have a forge version?
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
Please respect the rules, be patient and don't ping staff members!
Joe, as I stated earlier, JS and PAPI aren't related here.
Please read the JS information in #852317810394267708
yes?
you copy paste the link here?
Sorry, I don't friend
Send it here or you won't get help
what's the password lmao
yea I'm looking
Do you have any MVdW plugins?
Ah so that's just NameTagEdit thinking that you don't have any MVdW plugins installed
but it kinda looks like you do lol
so you can just ignore that
also I don't think you setup your SQL for GadgetsMenu correctly lol
uh the database for it
lmao
scared someone's gonna steal your placeholders lmao
the SQL configuration
in GadgetsMenu
huh well, looks like it isn't right
I dunno man
Is javascript working with the latest build?
Not a publicly accessible one
We're still waiting on the JS provider framework thingy to release a stable version
We've been told by the developer that he is releasing a stable build tomorrow. So, we'll just have to see if that really happens.
Does PAPI have a player kill streak count placeholder?
wait is this not your papi?
https://ore.spongepowered.org/rojo8399/PlaceholderAPI
no that must be a version maintained for sponge
altho unofficial, we have nothing to do with sponge
ahh okay so they must not have implemented ecloud
ahh crap. im trying to setup commandutils for an item hunt but can't figure out my item ids
@bronze lotus that version was not made by clip, it's made by rojo8399
ok sorry... then I'll have to wait...
Hi. Is there any reason why my %player_ping% placeholder doesnt seem to be working?
i have it in my animated scoreboard
"but it's just displaying %player_ping%"
Are you on 1.17 and have you done /papi ecloud download Player
yes to both
like other placeholders off of the player set are working
you might need to download the player expansion from #852317810394267708
like player x y z, and direction
ohhhhh
totally missed that
thank you!
do i just plop that into the plugin folder?
there should be an expansion folder inside the PlaceholderAPI folder
okay, after that, will a /papi reload do the trick?
it should, yes
should i remove the old expansion-player.jar?
yes
not a problem
Do you know why my javascripts stopped working? i'm use PAPI 2.10.10-DEV-VERSION
https://paste.helpch.at/gevejotuxi.md
The JS expansion isn't updated for 1.17 yet
Ouh, I was reading the channel #852317810394267708.
hi, anyone know why the craftconomy expansion in the ecloud won't hook into the plugin? it downloads to the expansion folder fine but when /papi reload is ran it says no expansions were registered.
Wowza. That expansion was last updated by it's author in 2016. I would be very impressed if it still worked.
hmm, that might explain it then, since the last craftconomy plugin update was after that
it was in 2017, so still long ago, but the plugin itself still works in 1.16.4
I have no idea who this is (iso2013) but that's who last updated that expansion.
Your mission, should you choose to accept it, is to find out who that is, their relationship with Craftconomy, or reach out to whoever maintains Craftconomy and see if they want to update it.
craftconomy is no longer maintained, sooooo. mission failed i suppose. XD
could try update it yourself
i could, though i have no experience with the making of plugins myself so it might end up fruitless. Thanks for the help, though.
as a beginner I'm going to be honest, you probably won't have much luck updating a full on plugin (assuming craftconomy is "full on")
but an expansion, they're very simple pieces of software
an easy way to get started with java
any idea where i would look to for guidance on that?
Online Courses:
Online courses are also great for learning java. Some websites that offer them are:
- Coursera - Free unless you want a certificate
- PluralSight - Great courses from what I've seen. Mostly Paid
- Udemy - Never used them myself but they seem to all or at least most be paid.
My first ever course was one from Coursera. - I can say it was pretty good at introducing me to the programming world as a whole not just java.
Oracle Docs:
Oracle docs can help a lot at learning and understanding java:
- Start with this,
- Breeze through this (skipping stuff that doesn't seem relevant like bitwise operators),
- Hit this.
They're the first three from this larger thing which you should definitely go through overall. But those three should be enough for slightly better understanding of what is happening here without feeling like a huge time sink.
That one is a small part of this larger site wherein "Essential Java Classes" and "Collections" also have good useful stuff
Other services:
Some other cool services that will help you learn java are:
As you can see there are plenty of good ways to learn as long as you're willing to invest the time. Have fun learning!
but I can't vouch for that as I personally didn't use any of those
I learnt via trial and error, and deconstruction of other people's code
for updating the expansion, papi has a wiki
you can find it on github
think i found it, yeah. thanks
Is there a placeholder that returns the amount banned using litebans?
@trim mist Unknown expansion.
Doesn't look like it.
Reach out to the developer of Litebans and see if they want to make an expansion.
||iirc the dev doesn't want to, and even made a wiki page saying why||
Whelp, then you're probably SOL unless you hire someone to make it.
How much would a dev charge for this? **approximately
I can't really give an answer but if they charge you more than $10 for just that, then they are overcharging you.
mk
I would like to report @marsh stone for DM advertising
It's probably a bot as well
It wouldn't let me dm @tender vapor for some reason so I reported it here
I just banned about 30 accounts. Let me know if it continues.
Alright
I installed PlaceHolder API and when i typed in chat it said [Global] {vault_prefix} {player_displayname}: hi
can anyone help?
what chat plugin are you using?
Is there a way to parse a placeholder from console and get a response back?
papi parse <name> %placeholder%
papi parse console doesnโt work tho
just give it a random name. it will only work for placeholders that don't require a player tho
Ya put in your player name
Ok, Thanks it worked
also if u wanna test player placeholders just run the FakePlayers plugin. https://www.spigotmc.org/resources/91163/
they're server side so u can test a lot of things with them
whats the message sender placeholder on messageannouncer?
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
Hello,
I would like to have my expansion verified. Who should I contact for this?
staffplusplus
When I do /papi parse me %pinger_players_ip:port%, it shows the player count, but it's not showing it on a hologram
do you have HolographicExtension
Yes
/papi dump
does any1 know why this is showing ? https://prnt.sc/15jun2b
you don't have ProtocolLib?
Whoops
paste your config
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
sec
is the time format supposed to be like that'
im not sure
I don't think so
how should it be?
kk ty
oh you also didn't quote out < >
also a lot of placeholderapi arent working in chat
and I think you're supposed to put a space after everything in remove-strings:
what chat plugin are you using
deluxechat
do you have the expansions
/papi dump
So I was told to come here after receiving javascripts to fix time on autorank.
So the autorank outputs in minutes and I was given 3 javascripts for papi to calculate it into day/hours/minutes
I have no clue how to use it. I dont know if I can send files here but if requested I can dm.
If placeholders are not showing correctly,
- Ensure you have downloaded and install PlaceholderAPI.
- Ensure you have the correct expansion installed. (/papi ecloud list all -> /papi ecloud download [Expansion])
- Use /papi reload
- Test the placeholder in /papi parse %placeholder%
- Check https://helpch.at/placeholders for valid placeholders.
Nice will try out new updated Js when it get released :) see if bugs in old Js is fixed in new js .
I'm unable to use RedisBungee placeholders, anyone could help?
[PlaceholderAPI] Failed to load placeholder expansion from class: com.helpchat.redisbungeeexpansion.RedisBungeeExpansion
are you using a Math placeholder ?
if yes, do you use [precision:some number] in it ?
if yes, then try to replace it by %math_some number:0_<your expression>%
I updated placeholderAPI and got the player expansion but I'm still getting this error whenever I message something into the chat. https://paste.helpch.at/wivopoguxa.cs
Can anyone give me a hand, I've just managed to get myself confused lol, thanks in advance ๐
Please grab the jar from #852317810394267708
I did so for placeholderAPI and got the player expansion, do I need the others as well? I thought it was just a player issue.
you only need the player expansion for this issue but the other jars would be better to use in case of another issue, wouldn't hurt to update anyways ยฏ_(ใ)_/ยฏ
Hello there, about the PAPI expansion statistic, i found that there is more than 24h shown in the parsed amount (eg. 17d 38h), also some of our playtime reset...
Sure Iโll try the other one but I have got the player one ๐
So I got the other 2 expansions for the heck of it from #852317810394267708 and I stil l get this isssue. https://paste.helpch.at/wivopoguxa.cs
Every message I send has an issue (if I say test it says 'test <chest=4jtrjge-45iut blah blah blah'.)
Are you sure that you actually deleted the old jars and put in the new one? That's coming from the Player expansion.
Yeah seems like a reflection error from pre-1.17
I never had a pre 1.17 player expansion, I only updated and placeholderapi, the rest are new.
where do i do this?
TAB's config
?
send over your full startup log please
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
[14:58:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: spark
[14:58:09] [Server thread/INFO]: [spark] Registered PlaceholderAPI placeholders
[14:58:09] [Server thread/INFO]: [BuycraftX] Enabling BuycraftX v12.0.6
[14:58:10] [Server thread/INFO]: [BuycraftX] Validating your server key...
[14:58:10] [Server thread/WARN]: [BuycraftX] Your server and webstore online mode settings are mismatched. Unless you are using a proxy and server combination (such as BungeeCord/Spigot or LilyPad/Connect) that corrects UUIDs, then you may experience issues with packages not applying.
[14:58:10] [Server thread/WARN]: [BuycraftX] If you have verified that your set up is correct, you can suppress this message by setting is-bungeecord=true in your BuycraftX config.properties.
PlaceHolderAPI startup ^
I've looked through the logs, nothing concerning papi.
Apart from
[14:58:09] [Server thread/INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.10.9 [14:58:09] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
Which is just the plugin loading.
[18:59:19] [Server thread/INFO]: XeNitrogen issued server command: /papi reload [18:59:19] [Server thread/INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [18:59:19] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information... [18:59:19] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: bungee [18:59:19] [Server thread/ERROR]: [PlaceholderAPI] Failed to load placeholder expansion from class: com.helpchat.redisbungeeexpansion.RedisBungeeExpansion java.lang.reflect.InvocationTargetException: null at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:336) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:138) ~[?:?] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?] at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?] at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:605) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?] at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64) ~[patched_1.12.2.jar:git-Paper-1618] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:423) ~[patched_1.12.2.jar:git-Paper-1618] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:840) ~[patched_1.12.2.jar:git-Paper-1618] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1618] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1618] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1618] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.IllegalArgumentException: This registration already exists at org.bukkit.plugin.messaging.StandardMessenger.addToIncoming(StandardMessenger.java:92) ~[patched_1.12.2.jar:git-Paper-1618] at org.bukkit.plugin.messaging.StandardMessenger.registerIncomingPluginChannel(StandardMessenger.java:218) ~[patched_1.12.2.jar:git-Paper-1618] at com.helpchat.redisbungeeexpansion.RedisBungeeExpansion.<init>(RedisBungeeExpansion.java:43) ~[?:?] ... 24 more
[18:59:19] [Server thread/ERROR]: [PlaceholderAPI] Failed to load placeholder expansion from class: com.helpchat.redisbungeeexpansion.RedisBungeeExpansion java.lang.reflect.InvocationTargetException: null at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?] at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?] at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:336) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:138) ~[?:?] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?] at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?] at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:605) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?] at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64) ~[patched_1.12.2.jar:git-Paper-1618] at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:423) ~[patched_1.12.2.jar:git-Paper-1618] at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:840) ~[patched_1.12.2.jar:git-Paper-1618] at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1618] at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1618] at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1618] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.IllegalArgumentException: This registration already exists at org.bukkit.plugin.messaging.StandardMessenger.addToIncoming(StandardMessenger.java:92) ~[patched_1.12.2.jar:git-Paper-1618] at org.bukkit.plugin.messaging.StandardMessenger.registerIncomingPluginChannel(StandardMessenger.java:218) ~[patched_1.12.2.jar:git-Paper-1618] at com.helpchat.redisbungeeexpansion.RedisBungeeExpansion.<init>(RedisBungeeExpansion.java:43) ~[?:?] ... 24 more
Then when I try and dl the placeholder using /papi ecloud download RedisBungee I get this ^
As shown in the screenshot it doesn't work ^^
I've tried downloading the thing directly from PAPI ecloud site and put it in the expansions folder still doesn't work after a server reboot.
ok so first of all please when I ask you for the startup log just send the startup log in a pastebin. Posting 5 2000 char messages is not the way to do it. Also that nitro.admin.rip website does not exist according to my browser.
Now to the problem. go to plugins/PlaceholderAPI/expansions and there will be 2 or more RedisBungee expansions. delete them and only leave 1.
Hello, I have downloaded the Placeholder statistic. I need to do a cleanup. How do I clear the given placeholder?
You have to delete the player data on the server for that player.
And where?
I have the Essentials plugin, I removed all userdates and nothing has changed
nope its saved in the actual world file
is the minecraft statistics
I think its in a folder called stats
Is it in the root folder of minecraft?
Thanks, I reset to zero
Hi. Why isn't it working? https://prnt.sc/15mpew1
Hello, I had an error, I install BuyAPI (expansion for BuyCraftX plugin), after that I got a lot of errors, even when I remove this plugin and restart server - all my placeholders stop working, someone know how to fix this?
check #general-plugins please and don't post in every channel. be patient
ugh you meant to use %luckperms_prefix% ?
I can't really tell what's happening there
yes i used it because titlemanager has this format
no !? you should just use it as %luckperms_prefix% I'm pretty sure
omg thx
when placeholders are being parsed, they get parsed insanely fast right?
Typically, unless the plugin that implemented them did it wrong.
oh ok thank you
Hello there, about the PAPI expansion statistic, i found that there is more than 24h shown in the parsed amount (eg. 17d 38h), also some of our playtime reset...
2 things you might wanna try: The development builds of PAPI or The development builds of the Statistic expansion.
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
here's the papi builds ^
and nvm
that's all you can try. statistic expansion doesn't have builds xD
when will the be a 1.17
1.17 for what?
papi
check #852317810394267708 channel. there's a dev build there u can use
@austere hawk What kind of problems are you having with the Player expansion?
For real
wait, what? [07:50:13] [Server thread/WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder:
after updating to java 16
yeah the javascript engine that the expansion used to use, was removed since java 15
there will be a new version posted in #852317810394267708 soon
i put engine: graalEngine the new javascript engine and don't work
are you using the graal jvm?
so. no javascript placeholder at the moment?
noup
yeah for java 15 and 16 no javascript expansion
then you can't use the graal engine
but I thought it might work.
there was a way to do it with the GraalVM yeah but I Don't remember how to do it
okei... my server is javascript based server (?)
I Don't remember the name you have to use*
- the disadvantages of not knowing how to programme. *
well you either wait, move back to java 14 or lower, or try and see if you can get GraalVM to work somehow
nop. i need java 16
really? no javascript expansion for now? i don't have any alternative?
@junior musk get one
He did a custom version for me (for java 16)
@trim mist is javascript expansion safe to upload publicly?
well as I said. you can try and get GraalVM. Or there are a few ones made by community members yeah. I Forgot about that
even with GraalVM, the current JS expansion can't detect it on Java 16
I use Graalvm 21-16 (so on java 16)
And I get this error :
org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (hasPermission) on org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer@1bbcec79 failed due to: Unknown identifier: hasPermission```
so graalvm doesn't work perfectly ๐ฆ
if someone get a fix would be nice :/
is that with my JS expansion or the official one?
yours
send your "tab" script
Could you please provide it to me?
No. We ran into some errors yesterday during testing. Yugi is working on it this week.
yes (?) xD
There's a GC leak that's causing problems.
if (BukkitPlayer.hasPermission("grade.vip")) return "A";
if (BukkitPlayer.hasPermission("grade.vip+")) return "B";
if (BukkitPlayer.hasPermission("grade.mvp")) return "C";
return "D";
}
hasPermission();```
here's the one I made if you want, you will need the JSEngine plugin as well
it's gonna have full es6 support
I might not be affected by that, the scripts are simple. I promise not to ask for support if they don't work.
and in theory it should be faster
thanks
seems fine, idk why it does that
got an idea tho
if ("%player_has_permission_grade.vip%" == "yes")
and just replace grade.vip by your other permissions
see if that works
thanks.
org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (hasPermission) on org.bukkit.craftbukkit.v1_16_R3.entity.CraftPlayer@1bbcec79 failed due to: Unknown identifier: hasPermission```
send your script again
Does anyone here have the ChatInjector plugin that works with PAPI v2.10.9?
is one of the reasons why I stay with 2.10.5
if ("%player_has_permission_grade.vip%" == "yes") return "A";
if ("%player_has_permission_grade.vip+%" == "yes") return "B";
if ("%player_has_permission_grade.mvp%" == "yes") return "C";
return "D";
}
hasPermission();```
๐ค
๐ฆ
wttff
I have no idea what's wrong
If someone gets an idea :c
any ?
nope. both the old version and the new one are broken on papi 2.10.7 +
idk why or how to fix it either I'm afraid
you should really just switch to a chat plugin that supports PlaceholderAPI
there's a few free ones that work fine
chat plugin?
i need chatinjector to inject other plugins
with chat injector i can inject placeholder anywhere
ah Ic
I don't understand why they took out that feature.
well they didn't really took it out
its just that all placeholders
will get lowercased
for some reason
so for example if your name is Test and you use {player_name}, in chat it will be test
you say that with 2.10.7 don't happen this right?
it does
so i can update to 2.10.7 ?? xD
with 2.10.6 it doesn't I think
Well may u registriert it the current Version most ppl use is 2.10.10...
https://paste.helpch.at/ozerajarin.md
Spigot 1.17, Expansions:
[16:35:29] [Server thread/INFO]: A total of 13 placeholder hook(s) are active:
[16:35:29] [Server thread/INFO]: discordsrv, essentials, luckperms, multiverse, player, playerlist, server, spark, supervanish, tab
[16:35:29] [Server thread/INFO]: vault, venturechat, worldborder
discordsrv and vault show up in white color while rest show in green color
papi 2.10.9
can u explain a bit more? I DOn't understand what u mean
you need to use the server expansion from #852317810394267708
go to plugins/PlaceholderAPI/expansions
and delete the server one from there
download the one from #852317810394267708 and put it in the same folder, then do /papi reload
okay thanks!
Is there any alternatives of nashorn?
the new JS expansion is currently being heavily worked on, right now there's a GC leak so it's not ready for real use
The new expansion will also add in ES6 support (I've been informed that Nashorn only had ES5 support).
We are working hard to get this done, we've just had some walls come up along the way ๐
I'm hoping we have an initial build ready to go within the next week.
For now, someone made their own update if you scroll up that still uses Nashorn, but it requires a plugin called JSEngine. That can hold you over until we can get ours rolled out if you need.
would someone be able to help me super fast
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
lol alright
so i am trying to get the statistic for someone's bell taps and i don't know what it would be
@trim mist Unknown expansion.
If it's a spigot provided one, I would check the spigot API to see what it's called.
alright
Does PAPI work on 1.17 yet?
Hello i have an problem with Placeholders cause i tried to use placeholder from Skript (i downloaded expansion) and how to write this correctly? ( Placeholder is {c::%player%} ) Help pls
what api? if you want someone to update the plugin then #849215409295196180 / #849215410560827432
btw if you want us to add placeholderapi placeholders, that's up to the developer of the plugin to do so
how do you see placeholders of an expansion?(non ecloud)
do /papi list
I am getting an error with my placeholderapi plugin. I will get the error. Hold on.
Here is the error. https://pastebin.com/kEVhqtUu
@late glen The dev build does work.
Are you on 1.17?
Here is the dev build. https://ci.extendedclip.com/job/PlaceholderAPI/
Yes I am on 1.17
Oh are you using the new Server expansion