#placeholder-api
1 messages ยท Page 175 of 1
Can you do it again, the link doesn't work for me.
any ideas ?
Is that the full log file? Because it doesn't look like the full one.
@umbral sigil hey you managed to solve the problem?
Yes plugins update
??
they updated the plugin
Okey thanks
To the latest version download
How do I update it?
Google search
the same version appears to me
Is 2.10.10?
@umbral sigil can you send me the link pls?
i'm at work right now
something different must format chat because in ess is <> instead of []
How to link papi and skript?
good afternoon I use a spigot 1.16.5 server and the same thing happens to me the placeholderapi does not register the vault.
I am yesterday's person just in case
How to make guis for multiple players in DeluxeMenus? For example /profile <name>?
U can open your profile but u can open other profiles as well
Have you got the vault plugin?
And an economy plugin?
I got it
var player = BukkitPlayer;
var server = args[0];
function getPlayers() {
var players = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "bungee_" + server + "%");
if (players == 1) return players + " Player";
return players + " Players";
}
getPlayers();``` something like this maybe
someone can give skript parse to skript25 dev
even changing the format in essentials does not affect me so it must be from placejolderapi
no, chat is formatting different plugin than essxchat/papi (papi cant even do it)
I linked skript and papi, but if I use the skript variable in the simple score plugin, it is not recognized. Help me
Firstly, don't cross post.
What happens when you try to do /papi parse me <the skript placeholder>
<the skript placeholder> What should I put here?
Well obviously the skript placeholder you are trying to use
/papi parse me <{Stat::level::%player%}>
If you type it will appear the same
<{Stat::level::%player%}>
/papi parse me %skript_{Stat::level::%player%}%
is that right?
When you type it, it appears like this:
<none>player%}%
{Stat::level::%player%} Needs the be replaced with the actual Skript variable name.
For example?
The name you set the variable.
i don't understand
EX: %skript_test% would be the variable {test}
Can you tell me how to create a variable?
No, because I don't use Skript and never will.
But when I look at how to use it, it says that {Stat::level::%player%} can be used like this, right?
Idk, I don't use Skript and never have used it. Try and see otherwise ask the dev of it.
Weren't the developers here?
Idk.
Sorry to be annoying but I forget how to use the bot to find placeholders, what's the one for distance walked?
Hello I've got a question, how do I use the killStats api
I've installed killStats and Papi, In my code I used:
String kills = "%killstats_kills%";
kills = PlaceholderAPI.setPlaceholders(p, kills);
String deaths = "%killstats_deaths%";
deaths = PlaceholderAPI.setPlaceholders(p, deaths);```
Then I used the string in a scoreboard but then it doesn't show the scoreboard & gives me an error
(I've downloaded killStats using /papi ecloud download killStats)
wat
if you want solid line just use "&m "
๐ณ
Hello! I am unable to upgrade from 2.10.9 to 2.10.10 (newest version).
Did a clean install. Downloaded all the placeholders i needed, did a restart and still nothing.
Based on the update note, this cant be normal? What am I doing wrong?
This worked just fine on version 2.10.9.
Feel free to tag me if you reply.
Looks like this in featherboard: https://i.imgur.com/EqPK8Jt.png
do these placeholders work in the parse command? /papi parse me %blah_blahblah%
well yes u change the placeholder to whichever u wanna test
which is?
That works Blotz. Should I just change it from placeholderapi_towny_town to towny_town ?
^^
so you should be using %towny_town% instead of all the {placeholderapi... bulshit
Ah of course. Thank you two for great support.
That worked like a charm. Thank you again โค๏ธ
no problem
Hi im new on creating a server is 1.16.5 i change between custom enchants plugins a the new adds some values i never seen before. Now the plugin works well but shows messages like %groupcolor% %successrate% etc, this is the screeshot of the item, if someone can help i really appreciate ๐ https://imgur.com/a/IcX56PX
Is it intended that papi won't parse a placeholder if it's preceded by an ampersands (&)?
i'd upload a screenshot but i don't have permissions
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
use imgur ^
@strong hemlock you useing Advanced Enchants?
no?
Can someone help me with Bungeecord placeholders, Is there any bungeecount placeholder?
whats the placeholder for players exp? in number format ie: 230,000 exp. I cant find one or get it to work anywhere
can i make placeholders that do not requier a player to parse?
im trying to use %player_exp% but it gives a weird decimal format. I used %formatter_number_format_player_exp% as you described but it just displays %formatter_number_format_player_exp% do i need to parse anything to use %formatter_number_format_{yourPlaceholder}%?
It still gives a decimal. Player has 1,005 exp but placeholder comes back at 0.09 Is there even a placeholder for whole number total exp? you solve this im sending you coffee money ๐
Nbt tags don't work
'1':
display_name: ' '
material: PAPER
nbt_int: CustomModelData:10110
slot: 1
click_commands:
Hey there, does %essnetials_world_time% auto update when no one is online?
@warm plover like world time? yes you did miss spell the placeholder btw its essentials
is it possible to have a placeholder take only first item of a list returned by other placeholder? like:
{some_placeholder_which_takes_string_here>_%placeholder_returning_a_list%}
(specifically talking about making %quests_player_current_objectives_<quest>% work with oldest quest player has)
is there a way to specify the amount of deciamals in a the math placeholder. i know you can do it in the settings but i want it per equation
Does anyone know how to do javascript like, give a diamond to player when player break the block without type /papi parse %player_name% %javascript_test%
Not exactly, but close to what you want. I'm not sure though if you should really do this via javascript if you have many players
thank you
Btw let me know if you can find out if/how one can use javascript for events.
Idk about that tbh
Js expansion is not meant to do that
Can you technically do it though?
You probably can but idk if you should, Silver
There's tones of plugins that could do that
That's what i said above basically. I can't imagine a js looping non stop to run checks constantly to be healthy but then again, not sure if you can even do that
That's also very true
Sadly, very often when looking for small plugins that do maybe 2 or 3 things are rare, usually you end up with getting a huge plugin and disable 90% of it because the rest is not what u need xD
A good opportunity to learn java xD
Shouldnt be too hard; get player, get block, if block = x material then do x otherwise abort mission - or am i wrong
If you boil it down to the basics
Block break event i think?
||yeah that's the one https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/block/BlockBreakEvent.html||
Holy crap, i knew something about java ahaha
For you guys thats probably baby stuff but i cant java for my friggin life, so having known that is a huge thing for me xD
I had the same reaction when I started x)
I started all thanks to Blitz lol
I just wanted to get a list of players, then I did it with PAPI JS, then I wanted more and did it in Java, and continued with more projects x)
I've always been interested in java, it just seems so undoable like you stand in front of this massive wall as rookie and you think 'maybe i should just get outta here instead'
there are some pretty good websites explaining the basics in details
and you can also check other plugins' code on GitHub to help a bit
Idek where to start. 2 years ago i actually bought one of them weird online courses and never got past the explanation of objects
๐
tbh I didn't buy anything, I only checked w3Schools to understand how to set up the thing x) ||https://www.w3schools.com/java/java_intro.asp|| and then checked Spigot's wiki to check what dependencies I had to use and how to actually create the plugin
Lucky you. I mean, i never touched any code language ever so no wonder my brain blew up at first. Now that i have a few basics in javascript, it's a bit better since well, you get a feeling for the way you need to think. I'm still struggling with my all-time enemy: arrays
x)
I hate arrays so much. Soooo much, i can't even put it into words
what's wrong with them?
you get an array, maybe called args, you take the item at position x in the array with args[x] and check for the length of the array with args.length
how ? x)
I did some exercises the other day and it had me check 5 different arrays in one go, one being empty, for which i had to return 0 instead, return first, return last, return every 2nd, so like the whole battery of possible outcomes in one task
Took me 3 hours to get it right and 2 aspirin for my headache
ยฏ_(ใ)_/ยฏ
To you yes, no doubt. For me, that was a trip to hell.
rip
In the end i did it, so i was happy about that ofc but then the next exercise killed me and i haven't done javascript for like a week now lul
Mayyyybe you can explain that one to me :P
Oof yea you're right lol
Feel free to chat @austere hawk @junior musk, just not in this channel
We moved to dms, sorry
No problem
is there a placeholder to show a player name?
?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
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
hi, i'm searching for someone who explains how to send the ip address (not always the same, because it's my ip address) with the DiscordSVR plugin and they told me to ask here if there is a plugin.
Hi, wdym by 'send the ip address with DiscordSRV'? Like you need placeholder for IP address?
yes
where do i have to put
where do you want it
and then to show on DiscordSVR?
if discordsrv support placeholderapi just put it in message where you want
ok thanks
hi, i have this error with the guild plugin on my 1.17.1 paper spigot server
#spigot-linking please
Heya,
how does the "server" expansion retrieve the server name?
It just says "A minecraft server" in the actual java file.
I can't find the config that bukkit provides the server name.
Yes, I have tripple checked server properties
iirc it's from PAPI's config.yml
Ahh! Thank you so much! Why didnt I think of that iwi
Hi guys
I'm having this error that when i get 1.8.2 dev version the placeholder api doesnt work
I can't use 1.8.1 because it dont work for 1.17
(for deluxetags)
https://imgur.com/a/LL1xNsO hi, i use a plugin to custom enchants, uses the placeholders on the image link but i dont know how to use em
delete the expansion
in 1.8.1 tags dont work
it says internal occurred error bla bla bla
don't use 1.8.1
use 1.8.2
and delete the deluxetags expansion
from plugins/PlaceholderAPI/expansions
and then download it again?
which one is to display the tag u have
%deluxetags_tag%
@turbid tide dms
Please respect the rules, be patient and don't ping staff members!
%math_100_[precision:2]% why this doesnt work
@visual yacht you sure?
kk
when they show [] in placeholders it usually imply to saying you can replace it and no need to include []
headsup for the future tense
Helo, does anyone knows why custom placeholders aint working? I have multiple servers and this happened at the same time
how can i do in javascript to transform a number into simplified? i.e. instead of having 12000000 I would like to have 12M
DeluxeChat 1.17.1 @final shadow
Please respect the rules, be patient and don't ping staff members!
?
how can i do in javascript to transform a number into simplified? i.e. instead of having 12000000 I would like to have 12M
like this but not in vault ^^ thousands: k trillions: T quadrillions: Q billions: B millions: M
like this but with another placeholder and not a number :p
solved in #general-plugins-2
hi, i want to put an "-" to the placeholder if it's empty
for example if i'm in a plot in plotsquared, it shows the owner of the plot, but if i'm on the road, the placeholder is like empty
is there a placeholder for what a worlds weather is?
thank you
i have another question
how can i use javascript placeholder for scoreboard?
wdym? the placeholder should work everywhere
everywhere where PAPI is supported*
i mean what is "yourplaceholderidentifier" meaning in %javascript_<yourplaceholderidentifier>%?
%javascript_filename% without JS
well you make the placeholders and declare them in javascript_placeholders.
๐ณ
oh no, i got an error
ReferenceError: "MrEveriX" is not defined in <eval> at line number 1```
can we see your code?
ofc
var output;
placeholder == true ? output = placeholder : output = "-";```
nvm
i forgot to reload papi
but now, it's showing "-" when i'm in a plot too :/
well
parse the placeholder
see if it returns
true/false
or maybe a name
instead of true/false
it's working
i accidently worked with null instead of ""
but anyway, thank you for helping
Hey
I run into a small issue, I want to use ChangeOutput in FeatherBoard.
The issue is that FeatherBoard uses {} and ChangeOutput asks to use {} for inside placeholders
Is there any solution for this?
&f{placeholderapi_changeoutput_equals_%superior_island_top_level_position%_&f_Nincs_#%superior_island_top_level_position%}
All arguments can be replaced with other placeholders, wrapped in {}
Iirc, featherboard does not rely on mvdw placeholders anymore. When i updated to 1.17 and latest featherboard, oddly, my placeholders all broke due to the {}, i had to replace them all with % and now it's fine. Just saying
at which version?
5.0.3b. There was an update on oct 10th to ver 5.0.4, haven't tested that one yet
See https://i.imgur.com/UPQm5Vv.png using % and works el perfecto for me at least
Can someone help me why I get this when installing the vault expansion?
"[10:29:33] [Server thread/ERROR] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!"
do u have the vault plugin installed? and an economy plugin that hooks into vault?
i have vault and essentials x
I have both plugins in their latest version, my server is version 1.12.2, I don't know if that will have something to do with it
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.
my assumption is that the problem is with the version again. seen this happen quite a bit for people. Someone said it might have to do with the system or something but don't remember any fix or anything
When I try running the command "/papi parse me %statistic_join_game%"
It says "Unknown statistic 'join_game', check https://helpch.at/docs/1.17.1/org/bukkit/Statistic.html for more info" but when I try to go there, it says "Nope Page Not Found"
yup known bug. This is where you should go if you're on 1.17: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html
Okay thanks
But the join game stat is gone? I can only find the LEAVE_GAME one
Or I just can't read
what's it supposed to show?
if its supposed to show when you joined, I don't believe that was ever a thing
I believe it should show how many times you joined
I remember it working (quite) some time ago
oh
there is one for how many unique players have joined a server but don't remember any for how many times a player has joined
?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
Please respect the rules, be patient and don't ping staff members!
im gonna guess what blitz said
@exotic lily can u try this for me? if blitz is correct, then this should fix the issue for you
Yes, it is finally solved, thanks for the help, I would like to know what version you gave me
Please respect the rules, be patient and don't ping staff members!
its just one that i created now to fix the issue. but seems as tho it works, i will now create a PR to the expansion on github, and hopefully will be available to everyone else through ecloud soon
Thank you very much, I appreciate your work
[PlaceholderAPI] Failed to load expansion class MathExpansion (Is a dependency missing?)
is there an error to go with that?
does latest PAPI works with java 8?
yes
what java version you got? make sure you're on java 11 or newer as I believe that expansion only supports that
Yes
i am on 16
mr blotz he must be on 16/17 because 1.17 support 16 and higher only
yes
there is an alternative to display players from 2 servers combined?
Math expansion
dosent work
The placeholder 'VotingPlugin_Total_AllTime' does not give a numerical value. Make sure that the placeholder returns a number that is not formatted
did you downloaded the expansion? did u realoded the papi?
what placehodler do you use? what /papi parse me %placeholder% returns?
what placeholder do you use
like %math_hello% or %math_1+1%
My error is with ajleaderboards
how do you know it doesnt work then
i have the error
what error, can you send screen & stracktrace of error (basically error in console/latest.log)
hiya, every once and a while my server will un-register my placeholders for venturechat, vault and such. Just wondering if I could get some assistance with that!
the paste is here. https://paste.helpch.at/uxixijasun.md
Is there a placeholder to get the owner of a worldguard region? I've tried parsing this %worldguard_region_owner% it's only good if your standing in the region something like %worldguard_region_<region>_owner% is what I'm after
i imagine this isnt the fault of papi. but im going to post here in hopes of some help anyway.
Im using mycommand to store playerdata for boss kills. When i use papi parse on a player with no value i get NoData or just the correct numerical value. when i try it again on some other users i get An internal error occurred while attempting to perform this command
for example this is a players data file:
HansGruberKill: 1
TotalKills: 1```
this is another playerd data file
```f8bafa58-d180-4199-89b1-ba01de5fd43e:
MerlinKill: 15
TotalKills: 15```
the output of this command: ```/papi parse <uuid> %mycommand_playerdata_TotalKills%```for the latter player is ```15``` and the other is ```An internal error occurred while attempting to perform this command```
this is consoles output
Hello a few days ago I installed the animated scoreboard but they recommended to me they used the PlaceholderAPI to obtain extra commands and I did so but every time I try to modify something in the animated scoreboard and then restart my server so that the modified work does not respond it is as if it will be in a loading loop, uninstall the plugin and the problem is fixed but I would like to continue using this one, thanks for the help in advance
** 19.10 05:16:47 [Server] Server thread / INFO [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Placeholder expansion registration initializing ... ** ** Full registration: ** https://paste.shockbyte.com/uceboloqalonuqarezon
what is the different between this 2 placeholder? i tried both and they give me the same result
%pinger_gameversion_testplugins.com:25565%
%pinger_version_testplugins.com:25565%
no difference at all. its the same for count and players and the same for max and maxplayer and a few others
just every placeholder has 2 options for some reason
oh ok thanks for the answer
for the javascript placeholder script, is there some BukkitPlayer equivalent for the player that receives the message / placeholder, instead of the player that gets parsed along with the placeholder? (like where it'd always return my username)
or a placeholder / something in deluxechat that does the same
So im having a HUGE issue rn and i have no clue what im doing wrong
my %luckperms_prefix% in deluxe chat is showing as nothing?
it doesnt show the placeholder as if i didnt have it installed in placeholder api, it just shows an empty space where the placeholder should be
idk if anyone can help?
How do I use placeholders like %bungee_<server.name>% on mine bungeecord server? I want it to display the number of players on the main server, but nothing works. Do I need to install PlaceholderAPI on bungeecord server? It is not installed in anyway .
have you downloaded expansion and reloaded papi? /papi ecloud download Bungee, /papi reload
are you using placeholder without the brackets? (<>)
what/papi parse me %bungee_servername% returns?
any error?
do you have vault installed?
i think lp placeholders are not vault dependant
What does it show when you do /papi parse me %luckperms_prefix%
Quick question about formatters โย how do you run a formatter on another placeholder?
{formatter_text_substring_0:7_{player_first_join_date}}
So that I can turn 01/31/21 13:45 into 01/31/21?
formatter only formats integer does it not?
don't think you can take a placeholder and change text around. that sounds like a job for the Javascript expansion. If you know some javascript that's your only option I believe
Agreed, just looked at the expansion and I don't see a way to do this with it.
cool thx! yeah I know some JS, but haven't tried it in MC yet, just in the browser/web dev stuff
that's fine. its the same.
only difference is that you get a few default variables that you can use and also you can access the spigot api if you for some reason want to do that.
/papi ecloud download javascript then /papi reload to install the expansion
ah. one thing before you do that.
it requires java 15 or newer
if you can't update and you're on 14 or lower
you need to install an older version
/papi ecloud download javascript 1.6.0 then /papi reload for java 14 or lower
and now if you navigate to plugins/PlaceholderAPI you should find a javascript_placeholders.yml file. that's where you declare new placeholders you want to make.
you can read more about hat here: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
also about how to make the code and where to put it
and how to call it.
i'm on java16 so cool
btw. a heads up. it uses the nashorn enjine. so ecmascript 5.1 or something like that
function joinDate(){
var datewithTime = '%player_first_join_date%'
if (datewithTime.length > 8)
return datewithTime.slice(0,8);
}joinDate();```
Don't hit me.
Thank god it doesn't shorten itself by removing zeros so the length is always 8 xDDDDD
I was looking into that but w3 failed me or im blind
or change the default time format from papi config if you don't need the extra stuff anywhere else
return '%player_first_join_date%'.split(' ')[0];
Basically. Split at space, include 0 after?
I like to try things so they make sense, what were to happen if you changed the 0 to lets say 3
split() returns an array and you use [0] to access the first element
['01/31/21', '13:45']
Good to know, just glad mine works. First thing that happened to me here was that i had the file on desktop, copied to server and still had the desktop one open... 'why do i always get the same errorrrrrrr?!'
I hate myself
If i want to download Placeholder API from Spigot i got this error
SpigotMC - High Performance Minecraft - Error
Your IP address has been banned.
What can I do than?
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
Okay, thank you
Now, if I do /papi reload, after I do /papi ecloud download luckperms, it gave my that error:
https://pastebin.com/MATbuBRi
What can I do now?
it doesn't find the luckperms plugin. so maybe install it?
Now it works, thank you
For creating a PAPI expansion, the class that extends PlaceholderExpansion is loaded using a class loader ?
because I need to inject a dependency into the class
without using a static reference from my main class.
Is it an internal expansion or an external one?
internal
the same plugin is an expansion also
hello, how to replace two chars in one formatter placeholder?
Like in
{#HHEEXX}A{#HHEEXX}B
I want to replace { for #
and delete }
Hi guys, I am making a Chat Format Plugin. How can my plugin read papi placeholders?
Example of config.yml
format: %nicknamepapi% %rankez% >> message
Does maybe PAPI read them automatically and I do not have to do anything?
I have read that, but I do want players to chose their placeholders, like maybe %essentials_nickname%, so I do not know what they will chose. What do I do?
Hi, I was wondering why the Math-expansion wasn't working when I transferred my exact files from my laptop for localhosting, to a professional platform like Ramshard and the error log below appears. Tried searching around in this chat for any resolved issues but they didn't seem to help my situation.
Overall issue is 'dependency missing' when using Math-expansion on Ramshard, but completely works when running on my laptop.
I haven't spoken to Ramshard support yet since I wanted to see if this was a plugin-side issue first.
Server: 1.17.1 paper-341
Math-expansion: 1.2.5
PlaceholderAPI: 2.10.10
How would I do so if a placeholder gives a value greater to or equal a color code will be given, I tried this but it doesn't seem to work:
if ("%BLP_level%" < "5") perm = "&a"
if ("%BLP_level%" < "10") perm = "&2"
perm```
it works when i do ==
but not when i do <=
so specific values work but not greater to or equal
if (parseInt("%BLP_LEVEL") >= 10) perm = "whatever-color";```
tysm!<3
that depends on the expansion and the plugin. For your example (essentials), you need to download an external expansion from the ecloud. commands to download: /papi ecloud download Essentials then /papi reload. for other plugins you might not need to download anything as it might be built inside the plugin itself. can't think of a good example rn.
anybody's ping placeholder not working?
Hello
does PlotSquared placeholders not work
Im trying to show them in deluxemenus
and they donot have an ecloud download command
the placeholders on the wiki do not work
check vault placeholders
@magic rock why vault?
@austere hawk ^
okay ty
also
do any of yk
if i can use luck perms and have certian perms only apply in certain worlds
not usnig a bungeecord server
@fervent spire
Add world=<world name> to the end of the command, when adding permissions and/or ranks
In the editor you can do it easily just add it to the context field or use https://luckperms.net/wiki/Bulk-Editing
The bulkediting, will allow you to change heaps of them with the one command.
Depending on what you want to change, and how you want to change it
IF you haven't found out why yet, I might have an answer. This is only if you're on 1.17 or newer tho. If you server is on 1.17 or newer, then all you have to do is update the player expansion: /papi ecloud download player then /papi reload
make sure you're using the latest plot squared version. also there is no ecloud download because they're built inside the plot squared plugin itself now I believe
also. here's their official list: https://github.com/IntellectualSites/PlotSquared-Documentation/wiki/Placeholders
of placeholders. they might've not updated our wiki
hello eveytime i try to download the math expansion it says this in the console
[16:48:31 ERROR]: [PlaceholderAPI] Failed to load expansion class MathExpansion (Is a dependency missing?)
is that the only thing it says? it should probably be like a bigger error
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
@arctic loom can you look at this when you got some time? ^
can i contact the guy who made the expansion
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
Hello I have an error on my console which means that I cannot load vault on placeholderapi```
.... [19:16:10 ERROR]: [PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!
update to the latest version of vault
how do i contact the owner of an expansion
andre is the owner of the math expansion, and hes just said he doesnt know
can u send a startup log please? i have a fix for the issue, but just want to gather more information as to why this occurs
I don't understand what you would like
Please respect the rules, be patient and don't ping staff members!
oups
but this problem does not cause it to me that on vault its does it to me on plain else (sorry for my anglish i'm french)
?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.
Hi, not sure how to 'bump' my issue I posted previously without sounding impolite, but I was wondering about the Math-expansion issue similar to Yoshi's.
My previous post.
#placeholder-api message
That would be me...
lmao
I honestly don't quite get the error.... Maybe some java incompatabilities between the expansion jar and Caffeine (The caching utility)?
Maybe it would help if I shade the dependency into my own package?
Right now I only include it which worked from my testings...
Andre, if you don't mind shedding some light on my similar issue as well?
My error seems to result from clip.placeholderapi missing when I'm using it on Ramshard, a hosting platform. Though the same file/configs works on my laptop with no issues.
Hello, I am writing javascript placeholder (I am quite a beginner in this regard)
and my question is how exactly is javascript_data used? Whether it is used automatically when the script is running, is it possible to access it for writing / reading.
would not want to break plugin ๐
The fact is that when writing regular javascript, I used the yml.js module, but I don't know exactly how it will work within the server ...
Did you use their "1-Click Plugin Installer"?
My guess is, that they are the cause of this issue by offering either a old version of the plugin or (even worse) a modified version.
If you installed it manually then I sadly don't know...
What is a 1-click plugin installer?
Idk?
The host you mentioned it on their plans page
Like how did you install the plugins?
Ah, then no. I transferred all my files that were portforwarded on my computer directly into the server files via FTP
hm...
Only other guess I have here is some Java issues... Like incompatible Java versions or something...
Meaning Ramshard's issue
maybe.
I can't tell what the actual cause here is
But if it works fine on your laptop could the cause be on the hosting
Right, I thought so too unless I wasn't aware of something with the expansion.
When you mentioned incompatible Java versions, what versions would those be so I can bring it up with Ramshard support?
Math expansion itself should work on all versions starting from Java 8
PAPI shouldn't be different
Incompatible could also mean that they may use a different distribution of Java which may lack some features or have different variants of it.
I'm not an expert in this, so what I say here could be wrong, so take it with a grain of salt
Heard and thank you.
i tried math expansion on a test server and it worked so im not too sure why its not working on mine, but for now i can do without
thanks anyways , sorry andre i didnt know u were the creator lol
Why isn't something like PAPI built right into Spigot/Paper because in languages like C++, you always have similar placeholder macros available
No, Spigot/Paper don't include PAPI internally. You need to add it.
That's why I'm asking
It's not added because it's not a normal Minecraft function.
Now I see
should? Pretty sure you compiled it to java 11 for some reason
unless I'm misremembering
ok nvm. might be going insane
I remember something about 11+ as well
Hello,
This JavaScript placeholder works, but im wondering if its possible to remove the decimals? Like when 2 humans are online in the hubs then it will return 2.0
function hubCount() {
return Math.round(parseInt(%bungee_hub1%)+(%bungee_hub2%));
}
hubCount();
add a .toFixed() at the end
Np
Was in formatter
Please respect the rules, be patient and don't ping staff members!
Shhhhh
ah
Hello
so
nvm
I installed vault expansion and %vault_eco_top_balance_formatted_1% doesn't work
it just says 0
and %vault_eco_top_player_1% is just empty message
is this the right channel?
the top placeholders were removed from the vault expansion. they are being moved to the essentials expansion
i have ssentials expansion too
you can read in pinned messages why but short answer is they were very bad for performance
the release doesn't have them yet. there's a development build if you check pinned messages
you can take it from there
go to plugins/PlaceholderAPI/expansions and delete the Expansion-Essentials from there
and put the one you just downloaded from pinned messages
and do a /papi reload
the available top placeholders are all listed there
in pinned messages
what placeholder did you test?
%essentials_baltop_balance_fixed_1%
try executing /baltop first and then parsing the placeholder
are you op?
essentials has a permission to not be listed there
essentials.balancetop.exclude
nope
there is my friend in first place
he is op
then there is 3 more friends
and there is null
what version of essentials you got? try getting the latest and greatest
if not you might want to contact their support as I have 0 clues. or maybe ask in #general-plugins and be patient until maybe someone that knows is online
k
Hi, does anyone here know anything about java skript?
I use 3 placeholders in the scorboard, but I need to create my
&b%statistic_time_played:days% &7ะด. &b%statistic_time_played:hours% &7ั. &b%statistic_time_played:minutes% &7ะผะธะฝ.
The problem is that I am displayed 0 days, I can of course remove them at all, but I need to display only what is played.
I can't figure out how to create this placeholder, since my js level = 0
just use the %statistic_time_played% placeholder. it does it for you
ah unless you really need the language
to be that
I need to get the seconds out of there, how?
yeah nah. that won't work. javascript is the way. 1 second. I'll make one for you
changeoutput expansion?
I'm trying something like this right now
if placeholder returns 0, return nothing?
var placeholder1 = "%statistic_time_played:days%";
var placeholder2 = "%statistic_time_played:hours%";
var placeholder3 = "%statistic_time_played:minutes%";
function placeholderCheck() {
if(placeholder1 == "0"){
return "";
}
else {
return "&b%statistic_time_played:days% &7ะด.";
}
if(placeholder2 == "0"){
return "";
}
else {
return "&b%statistic_time_played:hours% &7ั.";
}
if(placeholder3 == "0"){
return "";
}
else {
return "&b%statistic_time_played:minutes% &7ะผ.";
}
}
placeholderCheck();
hmm
it doesn't output anything at the moment, I'm still thinking about how to do
what tangu said could also work
And how can you use this changeoutput, I'm just not very knowledgeable in js and do everything from the guide somehow
I can see the placeholders, but how do I implement it correctly?
var days = "%statistic_time_played:days%";
var hours = "%statistic_time_played:hours%";
var minutes = "%statistic_time_played:minutes%";
function getTimePlayed() {
var result = "";
if(days != "0"){
result = "&b" + days + " &7ะด. " + result;
}
if(hours != "0"){
result = "&b" + hours + " &7ั. " + result;
}
if(minutes != "0"){
result = "&b" + minutes + " &7ะผะธะฝ." + result;
}
return result;
}
getTimePlayed();```
try this code
Wow, thank you very muchโฅ
Please respect the rules, be patient and don't ping staff members!
all good. you're welcome
was it possible to remove the + result? I removed it in minutes and everything seems to be fine
function getTimePlayed() {
var result = "";
if(days != "0"){
result = "&b" + days + " &7ะดะฝะตะน " + result;
}
if(hours != "0"){
result = "&b" + hours + " &7ัะฐัะพะฒ " + result;
}
if(minutes != "0"){
result = "&b" + minutes + " &7ะผะธะฝัั.";
}
return result;
}
Yes it broke him.
Maybe I should try switching things around then?
yeah don't remove the last one
the first one only
function getTimePlayed() {
var result = "";
if(days != "0"){
result = "&b" + days + " &7ะดะฝะตะน ";
}
if(hours != "0"){
result = "&b" + hours + " &7ัะฐัะพะฒ " + result;
}
if(minutes != "0"){
result = "&b" + minutes + " &7ะผะธะฝัั." + result;
}
return result;
}```
this if you want
var days = "%statistic_time_played:days%";
var hours = "%statistic_time_played:hours%";
var minutes = "%statistic_time_played:minutes%";
function getTimePlayed() {
var result = "";
if(minutes != "0"){
result = "&b" + minutes + " &7ะผะธะฝัั." + result;
}
if(hours != "0"){
result = "&b" + hours + " &7ัะฐัะพะฒ " + result;
}
if(days != "0"){
result = "&b" + days + " &7ะดะฝะตะน " + result;
}
return result;
}
getTimePlayed();
this worked
Only now for some reason the days are displayed in hours as I understand it
just put %statistic_time_played% next to it for comparison, and it displays 22 days 24 hours 46 minutes
if you use what we did in the placeholder, it shows 46 days and 46 minutes
I sent you a screenshot in a private message
Two questions ๐ Why are there no clocks, and why are the days different :DDDD
hmm. this is very strange.
are you sure the placeholders are correct?
Well, I think so, it's working right.
so you're saying its working right now?
Yes, everything works. But I put for example a separate playshare stat_day, not the one in the script, and it showed 44 days, although played was 22, and so, if you use stat.._time_played, it will also be displayed as 44 days
I completely zeroed the statistics played time, it seems the bugs are gone, but I'll keep watching.
hey!! I need some help with setting up the place holder for mmohorses. P api says itโs regeistered but I have no idea how to put the placeholders in! I just need the %horse_food_bar%
if anyone could help it would be much appreciated โค๏ธ
there's no wiki section for simplepets for placeholderapi but i can still download the expansion to my server?
I believe if you have the expansion installed you can do /papi info simplepets to see the list of placeholders
yeah i figured that out, it didn't have useful placeholders anyway. i was just curious
Hey!
I have a small issue regarding Checkitem
So I try to use the following placeholder:
/papi parse me %checkitem_mat:PRISMARINE_CRYSTALS,amt:192,nameequals:&6&lHarris Generรกtor Tรถredรฉk%
but it only works for 64 amount, is there anyway to check 192?
it should work for any amount pretty sure
nope
try it, as I experience it only works up to 64
Please respect the rules, be patient and don't ping staff members!
and without enough:
as you can see only got 1 stack
@elder stump execute /papi dump and send the generated link here
maybe I have to update checkitem?
Hey, random number expansion isnt working
which one of them and what about it isn't working?
https://api.extendedclip.com/expansions/randomnumber/
i tried using /papi parse me %randomnumber_number% and /papi parse me %randomnumber_1% but it just returns the placeholder (%randomnumber_number%)
i tried manually installing it
and through the plugin
Pls help
Why my javascript isnt working
I reload the modality and it stop working
https://gyazo.com/be87869d17dbe35b477230e524b6ba6a
Idk whats happen ๐ฆ
did you download the expansion?
yes
can you do /papi dump and send the generated link
The others javascript placeholders are bugged too
hmm not sure. I recommend you use the RNG expansion instead
I know that one works
Anyone can help me with this please, i rlly need fix it.
you said that other javascript placeholders also are broken?
can you do /papi dump and send the generated link here please?
do you know what java version your server runs on by any chance?
(not talking about the minecraft version but the java version)
Ouh, idk... I think its java 11 but im not sure
because we have all javas
We are a network, so...
I really need to solve it, the opening of the modality is today but I don't know why this happened.
well. I need to know your java version for me to fully solve this. but for starters I want you to stop the server then go to plugins/PlaceholderAPI/expansions. in there you should find 2 jars: Expansion-Javascript.jar and Expansion-javascript.jar
delete both of those and start the server
ok. now after it starts do /papi ecloud download javascript 1.6.0 then /papi reload
and test the javascript placeholders after that
Now the placeholders not appears XD
ok. can you go to plugins/PlaceholderAPI/ and copy whats inside javascript_placeholders.yml, put it in a paste bin (https://paste.helpch.at) and send it here?
yes. that
hmm
can you go to plugins/PlaceholderAPI/javascript and send a screenshot with the files that are inside the folder please?
yea
Ohhh, when i put papi reload the tokenmanager placeholder got bugged too XD
But this placeholders got bugged everytime, and i can fix it by deleting the data
Oh okay
show me the cooldown.js contents in a paste bin
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
also. a screenshot of the item you sent earlier. how does it look now?
yeah. you sent a screenshot of a lore at the start showing that it doesn't work
and it was showing the placeholder itself
oh so nothing.
Yea
Available en: And here need to be the placeholder
Before it appeared, but bugged
can you generate a new /papi dump please
ohh
can you try
changing that placeholder from %javascript_cooldown_Mv-tp-Dungeon_10800% to %javascript_cooldown_Mv-tp-Dungeon,10800%
so , isntead of _ for the last one
oh actually nvm. don't do that. that will not fix it
can you set a cooldown instead?
so use the dungeon mv tp
to set the cooldown
Where i need to go
?
Im confused XD
ohh wait i found it
Look, im here.
ยฟWhat i need to do
?
'Dung-1':
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmM3ZTExNDNiZDBmYWM0M2NlYjk5OTQzYWJiYzhlN2RmMGRiMzU2MTNjYTY3YmJlNjA5MDBmY2Y1YWNlODRhYSJ9fX0=
slot: 13
priority: 1
view_requirement:
requirements:
name:
type: string equals
input: '%javascript_cooldown_Mv-tp-Dungeon_10800%'
output: 0s
name2:
type: has permission
permission: essentials.kits.Tools
no no. in the lore only
there should be a lore
use CTRL+F to search for %javascript_cooldown_Mv-tp-Dungeon_10800%
and see if you can find it inside a lore
- '&7Available in: &a%javascript_cooldown_Mv-tp-Dungeon_10800%'
but that's not what you do to set the cooldown
Ohh this
Yea, before when a player click on the npc, a deluxemenus opens
So the players click the item and they be teleported to the dungeon
But with a cooldown too
hmm.
I also have the same javascript in what would be the menu of the mine, they click it and I should tp them

not sure. took a look at all the files and can't see where the problem can come from
I'm trying to replace the yes/no output for boolean placeholders with true/false, But it it doesn't seem to be affecting it ;-; this is my config: https://paste.helpch.at/ufapelovir.bash
I've tried both a reload and a restart, I'm probably just doing something dumb without noticing
not all placeholders use the actual boolean option. some just use a string
so you can't replace it for every single placeholder but just for those who actually use boolean
Oh that explains it, I'll convert it in-script than, ty!
what placeholder are you trying tho? I might be able to find out what they're using
๐ฆ
premiumvanish_isvanished
ah. its all closed source. can't look at it.
test it on one that we know that uses boolean tho
let me find one real quick
ok. found one
try /papi parse me %player_has_permission_some.perm.node%
this one should return true or false
make sure you have the player expansion installed tho
Ik :/, I tried checking the source code at first as well
Yep, that worked perfectly
alright then yeah it uses yes and no strings
you might want to report this to the developers
Will do :p, Thank you!
๐ no problem
OO
I fix it!!
Crane i downloaded the 2.1.0
And it worked XD
the problem is with the 1.6.0
well. that's why I wanted to know the java version
guess you're on java 15 or newer then
I just used 1.6.0 to be safe
lmao
but I Forgot that doesn't work on java 15 or newer lmao
my bad
XD thanks for the support and attention ๐
Hi I need help with the PlaceHolder API plugin
When I try to download the vault expansion I get an error on the console and it won't download
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
send the error in a paste bin ^
ah. well that usually happens because you have a plugin that messes with the class loader. plugins like ChatControl do this.
this will be fixed in the next version tho
of the vault expansion
I have the Chat manager plugin, to make people who have ranges appear next to the name when you write in the chat and for this I need the variables %vault_prefix% %vault_suffix% but the expansion does not download
well idk if that messes with the class loader or not
I uh
Is there another expansion that I can download with the prefix and suffix variables?
Cant get math to work for 1.17?
depends what permissions plugin you use
Luckperms
Is math broken for 1.17?
And if so, what can I do to fix it [Since it is open source]
Basically, its because of the class loader issue.
[19:42:51 ERROR]: [PlaceholderAPI] Cause: LinkageError loader constraint violation: when resolving method 'com.github.benmanes.caffeine.cache.Cache com.github.benmanes.caffeine.cache.Caffeine.build()' the class loader java.net.URLClassLoader @cd71911 of the current class, com/andre601/mathexpansion/MathExpansion, and the class loader java.net.URLClassLoader @2c028a87 for the method's defining class, com/github/benmanes/caffeine/cache/Caffeine, have different Class objects for the type com/github/benmanes/caffeine/cache/Cache used in the signature (com.andre601.mathexpansion.MathExpansion is in unnamed module of loader java.net.URLClassLoader @cd71911, parent loader 'PlaceholderAPI-2.10.10-DEV-123.jar' @447bdb07; com.github.benmanes.caffeine.cache.Caffeine is in unnamed module of loader java.net.URLClassLoader @2c028a87, parent loader 'app')```
Is there any other expansion for the prefix and suffix of luckperms?
yes sir. its called luckperms
Luckperms has prefix and suffix easily in it...
you misunderstood his question. he wants a PlaceholderAPI expansion to display that prefix and suffix
and the vault one doesn't work for him
so I recommended him the luckperms expansion
Oh, well yeah I just use luckperms placeholders myself,
Thankssss
Is there a working version of the math expansion?
the latest should work. and works for me. not sure what the problem with yours is. @arctic loom might be able to help? not sure
Where did you download urs from
Second time this issue appears. Not sure what exactly happens here....
Let me see if shading it into my own path may work...
Hmm holdon, I may have a diff solution im trying quick
I think I might have found the issue...? im trying it.
So basically, the papi ecloud version vs the ecloud manual download, have diff file names?
Im guessin that COULD have something to do with it?
No nvm
Prolly not
they are the same exact size lmao
regardless
I am still tryin
Yeah, didnt fix.
nah same thing
When my google search is correct does that error point to 2 classes loading 2 different poi classes?
Idk... It's confusing to me
Can't even upload a jar here :/
@rich flint Could you try out this jar for me real quick?
https://cdn.discordapp.com/attachments/412716812761825290/901561934812434492/Expansion-Math-1.2.5.jar
lol. fake tier 4
Im tryin it
I have my doubts that it fixes the issue, but if it does....
Otherwise will I relocate the caffeine dependency
Maybe that will help
LinkageError is thrown when a class 'ABC' is loaded by more than one classloader and those classes are being used together in the same code (compared, cast, etc). Independent of whether it is the same Class name or even if it is loaded from an identical jar - a Class from one classloader is always treated as a different Class if loaded from another classloader.
There we go, finally some info...
So I guess another class loader tries to access caffeine or smth?
worked
That actually worked?
Lol. All I did was adding a <scope>provided</scope> to the dependency
Well, The more you know.
๐
It did work tho, atleast, according to the console lol
yeah. relocating it might've also worked then
it might come with another plugin or spigot itself then?
I don't think Spigot is using Caffeine
They have Guava, no?
Which iirc does have a own Cache system
probably. not sure. just assuming
The error mentions 'app' as another class loader
yeah guava has its own cache system
could it be that they have 2 math expansions installed?
That would cause errors on PlaceholderAPI I think
nah. I Think it loads just one
actually
because it happens a lot where people update the server expansion and bcz the name was switched from Expansion-server to Expansion-Server
they have both
and they still have the 1.17 bug
even tho they updated
seen it a lot
Pushed an update
I hope 1.2.6 truly fixes this...
hopefully
@rich flint just for curiosity tho. can you do /papi dump and send the generated link here please?
nope. just one. welp thanks
This seem not to work.
https://i.imgur.com/W8aftsN.png
did you download the math expansion?
also
that's not a bungee placeholder
it should look like this: {bungee_SERVER-NAME}
hey!
Im currently really confusioned with the pinger extension
Its saying the server is offline when it is
im using pterodactyl
I have the extension downloaded
do /papi dump and send the generated link here
can you stop the server, go to plugins/PlaceholderAPI/expansions delete Expansion-math.jar then go here https://api.extendedclip.com/expansions/math/, press download latest and then put the new jar in the folder
then start the server
see if the error still shows up
if it does I might need a full startup log
oh wait
@arctic loom we have a problem
you made it provided
so now it doesn't find it
it means whatever plugins that guy had
was using cafeine
what you should do
is relocate instead
because now for people that don't have that plugin it is ClassNotFound
Will do in a second... Have something else to deal with first
๐ all good
just letting you know
@austere hawk ^^ you'll have to wait for the next update
Yh np, at least we know what's the issue now ๐
how to make %essentials_baltop_player_0% to now show prefix?
@austere hawk Try this jar: https://cdn.discordapp.com/attachments/412716812761825290/901578234087489547/Expansion-Math-1.2.6.jar
It should have Caffeine relocated
https://hastebin.com/relamaluda.sql
Nope, still getting the same thing
strange
you can open it with winrar and see there's no dependency there
still
do yo uhave the maven-shade plugin?
seems to be there
@austere hawk can you test?
Yes. Seems to load now but it doesn't load
https://hastebin.com/yideloyubo.sql
xd
Idk? I guess?
Like my pom.xml is set to 8
Just update Java I guess
I seriously can't be bothered to fix that now, especially since it can be fixed on your end anyway
AND im back
so my math doesnt seem to be working
I did %math_10+10%
and it doesnt work
Hmm
@arctic loom do u know what im doing wrong here
papi parse that doesnt work
Ooooo
its not finding it
yea so
the 1.26
isnt working
NoClassDefFound:
[21:58:07 ERROR]: [PlaceholderAPI] Cause: NoClassDefFoundError com/github/benmanes/caffeine/cache/Caffeine
Did you try 1.2.7 yet?
Oh wait what?
Like @turbid tide said it works for him
Please respect the rules, be patient and don't ping staff members!
Idk at this point
U had 1.25, that wasnt working, u pushed 1.26
that one isnt working
holdon....
ill go back and try
the 1.25 u sent me
that worked
The only issue I got from others was that Java versions are incompatible
Needs Java 11 now
I have java 11 but the no class found error thing
that must be the same reason
ill check
yea it worked my bad
Sorry for the bother
Hi, I'm runnig a 1.8.8 server with java 8 but I'm getting this error with javascript extension. Anyone know how to fix it ? https://hastebin.com/emaloketul.rb
set lore
That is absolutely fascniating.
1.2.6 works for me. 1.2.7 does not.
The only error I get from 1.2.7 is
[Sun, 24. Oct 2021 06:19:41 UTC ERROR] Failed to load expansion class MathExpansion - One of its properties is null which is not allowed!
but hey, I'm happy it works now
Using 1.2.6
Hello everyone is there a placeholderapi for Bungeecord?
you need java 15 or newer. if you want to use it on java 8 then downgrade to javascript 1.6.0
What math version should I use for Java 8
Since I can't really update unfortunately
โซ
ye I saw ... but how do I downgrade to javascript 1.6.0 ... I didnt get that
/papi ecloud download Javascript 1.6.0
or download the file manually from the ecloud and put it in your Expansions folder in your PlaceholderAPI folder
Thx
Please respect the rules, be patient and don't ping staff members!
Is there a way to set a scoreboard value to a placeholder value?
How to use args to create /stats <player> so /stats opens your stats but /stats <player> opens an offline player stats?
Hi, is there any way to parse a placeholder before parsing a javascript placeholder ? e.g %javascript_format_player_name% where player_name is from %player_name% placeholder
nvm, using %javascript_format_{player_name}%
you cannot indeluxemenus I'm afraid. if you set arguments you have to use them. they can't be empty.
was gonna ping then saw second message. lmao xD
yes bracket placeholders indeed
Is there a placeholder that shows the players current coordinates
%player_x% %player_y% and %player_z%
it didnt seem to work when it was imported in my thing
did you download the player expansion?