#placeholder-api
1 messages ยท Page 187 of 1
otherwise i duno how to change vanlla chat
but
maybe bukkit or duno
well what did u changed
nothing
if it didnt work with the luckperms placeholder, then the only thing i can think of for it not working is because u have luckperms on the bungeecord server, rather than on the spigot server
im not sure
i recommend checking this out https://github.com/PlaceholderAPI/Javascript-Expansion/blob/master/scripts/holding_lore_lines.js
i see
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
You have the Vault expansion installed but not the Vault plugin. Either install the plugin as well or delete the expansion.
๐
๐คฆโโ๏ธ that makes sense lol
new server thought I had all of the plugins transferred
appearently forgot one
bltz
is it possible to make a loop for searching in lore of particular text ?
and output it
make it where?
var player = BukkitPlayer;
var material = '%player_item_in_hand%';
function lorelines() {
if ( material !== 'AIR' ) {
var lore = player.getInventory().getItemInHand().getItemMeta().getLore();
var has = player.getInventory().getItemInHand().getItemMeta().hasLore();
}
if ( material === 'AIR' ) {
// return 'AIR' when you aren't holding an item (You can change it to whatever you want)
return 'AIR';
} else if ( has ) {
return lore.length;
} else {
// return '0' when the item you're holding doesn't has lore (You can change it to whatever you want)
return '0';
}
}
lorelines();
so basicaly
to search of a specific lore and output it
ill show u
pic
u see how this Strenght: +10
is there
thats modifier
but also is it in the lore
apperantly i cant get NBT tags in JS
my other way is to search for a exact lore, get the value when contains the lore and modify it
like custom enchanter
Hi guys, can someone help me out with the placeholder expansion of the plugin deluxecombat. I tried everything like /papi ecloud download deluxecombat and /papi reload . This is what I see in the server (https://paste.helpch.at/semivinobu.sql). I have got the right plugins in the server with the right version. I get this error in the console. I did exactly what the server asked me to do to implant a leaderboard with holographic displays.
I am not sure why it isn't working, but have you tried adding the plugin HolograpicPlaceholders? Might solve your issue since it supports all papi placeholders. (https://www.spigotmc.org/resources/holographic-placeholders-holoextension.64535/)
Nah bro, still not working.
Have you read through this? https://wiki.virtusdevelops.eu/holograpicplaceholders/configuration/papi-examples
%deluxecombat_ranking_kills% this placeholder is working when i reload Holographic but %deluxecombat_ranking_kills_1% this isn't
plz help
Weird, it could be an issue on the plugin it's side? Maybe the developer knows how to fix it?
getting this, what could be causing it?
https://paste.helpch.at/yuheyoyona.md
/papi ecloud download Server
/papi reload
if the error still occurs, check your PlaceholderAPI's Expansions folder, if it got 2 server expansion jars, delete them both then reexcute the commands
thx, fixed ๐
Didn't work
I figured out why it's not working [Mon, 21. Feb 2022 20:18:19 UTC INFO] Successfully registered expansion: math [1.3.1] โ#########[Mon, 21. Feb 2022 20:18:19 UTC WARN] Loaded class net.luckperms.api.LuckPerms from PayRank v1.0 which is not a depend or softdepend of this plugin. [Mon, 21. Feb 2022 20:18:19 UTC INFO] Successfully registered expansion: server [2.6.0] [Mon, 21. Feb 2022 20:18:19 UTC INFO] Successfully registered expansion: vault [1.7.0] [Mon, 21. Feb 2022 20:18:19 UTC INFO] 3 placeholder hook(s) registered!
That's just a warning
Lol well I don't use it i use it to test errors
But idk why it's doing this
errors โ broken things
Ye
Hey guys how I can solve this?
https://paste.helpch.at/eviporiqat.sql
Your plugin?
Hello, I have made a js variable, but the issue is that when I try to "update" it, it does not update, it is a variable that changes each range that I have, but when I put another one it simply does not update, where or how do I do that instant update? This is the code: https://sourceb.in/p6cbRdj5xa
I have the papi plugin with the pinger expansion installed. It is working to show info about the hub server but it wont show info about other servers
make sure youhave the latest version
and you have the correct format
apart from that, i can't tell
i just downloaded everything
it seems to be only for a certain server. it works when i try to ping others but it is only this certain one
im looking for a Coins/Tokens Plugin that have option for muliplier/boosters
any ideas ?
Have u looked at token manager
why are all placeholders working for attributes excepting knockback and flying speed?
%attribute_player_value_GENERIC_ATTACK_KNOCKBACK%
is it a problem from deluxemenus?
or from papi
or something else.. i can t figure it out
hi
listplayers expansion is not updated
https://api.extendedclip.com/expansions/listplayers/
possible to make the source public or fix it ?
can you try this @woven mural ?
it should print in console all the attributes that you can use
Hey, any reason %vault_eco_top_player_1% is returning an empty line? (Top balance is also 0 for some reason)
i typed ./papi list and i don t see this expansion in the list
should i load it or something?
oh i know why
is an error
do i need another extention/plugin?
or is because my server is running on 1.17.1?
@vivid sparrow
Please respect the rules, be patient and don't ping staff members!
oh
can you update to papi 2.11.1?
oh i didn t know there is a newer version
1 sec
ok now is working fine
it was my fault i didn t updated papi
it shows GENERIC_ATTACK_KNOCKBACK too
but is not working
should i do something else? @vivid sparrow
also.. if i type the wrong attribute i get this
flying speed
Hello, I having been using Papi for a long time now and have made no changes to it recently and it now it seems to not load in correctly when the server is restarting. However, a simple /papi reload gets it working properly. I am running PAPI 2.11.1 on Purpur #1563.
PAPI Error: https://mclo.gs/hThzeO9
Full log if you need it: https://mclo.gs/zWUdx2A
Hello!
Can I somehow creat an account on eCloud?
I would love to create my own expansion for PAPI.
Hello, I have made a js variable, but the issue is that when I try to "update" it, it does not update, it is a variable that changes each range that I have, but when I put another one it simply does not update, where or how do I do that instant update? This is the code: https://sourceb.in/p6cbRdj5xa
@austere hawk message funnycube#0001 an email and username
What exactly is not updating? @wraith pawn
Also, why are you not using prefixes
Is there an expansion for formatting hex colors?
I use a placeholder that doesnt turn hex codes into the colors themselves
Papi Dump: https://paste.helpch.at/icacowokif
The variable is not updated, that is, if I change roles, I have to leave and enter the server again for it to appear
Please respect the rules, be patient and don't ping staff members!
and I don't understand what about the prefixes, if you mean luckperms, yes I use it, if you mean the code, I wouldn't know how to answer you since I didn't do it
What you are doing looks like prefixes
Ah, yes, the idea is that it shows what rank I have
What I come to is that I saw the other time that in the config I can make the variable update...
If you parse the placeholder with /papi parse, does it update?
Because LP placeholders update instantly
Exactly, that's why I say
Yes
But in the scoreboard (where I have the variable, it is not updated)
Uh, it's supposed to be the scoreboard itself which is holding it back, right? since I remembered that the scoreboard plugin is custom, it could be that... I'll talk to the dev
@balmy marten
Please respect the rules, be patient and don't ping staff members!
Sorry, I couldn't find you ๐
He has messages turned off even friend requests...
I think your friend requests are off
Yes
They're not
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
it doesnt have multiplier/booster
well still searching for second currency for my server (gems/tokens/coins what ever) and to have a multiplier/booster option ....hope some1 got idea
Hi, I want to make a SSB2 placeholder return "None" if %island_exists% is false, does anyone know how I could achieve this
ssb2?
superior skyblock 2 ๐
changeoutput expansion
https://paste.helpch.at/ixeputuvuy.sql
I am getting this error while i am guessing the scoreboard is trying to update score from DeluxeCombat
maybe full console log to help staff to help you (maybe include /papi dumb or something)
can I suggest changing %bungee placeholders to %proxy as it supports velocity too - made it kinda confusing to set up (totally wasnt looking for velocity placeholders for like 10 minutes)
ya...
def not gonna happen to something that's used so widely already
also people looking for bungee placeholders, 99% of them won't know to look for proxy
:L
๐จ It has come to my attention that a user was using a leaked plugin, they have been... well let's say.. dealt with.
Does Placeholder API support Sponge?
just bukkit
Ok thanks ๐
Hello is there a way to create my own placeholder? just a placeholder for gender: male/female
you can, you have 2 options (maybe 3)
- code your plugin
- code an expansion
- use changeoutput
- use javascript
well it was four, but 1 and 2 are almost the same
how about use javascript?
how are you going to change the placeholder?
I just want a Gender
Yes, but how do you want to set that gender
command? menu?
custom parkour mission?
๐คทโโ๏ธ
command
then you'll need an expansion/plugin
or you could do some more advanced things with a plugin like mycommand and a javascript placeholder
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
I'll use mycommnad i have that plugin. Thnaks
Anybody knows a plugin that enables users to create their own placeholders?
Sure, thanks!
Alright. What if I want to point my placeholder to another placeholder? (e.g. %name% will return %player_name% which outputs the player's name)
Is coding an expansion the only option now?
It's hard to explain but I'll try my best
Basically I use TAB Premium and they have a layout option for each line of the tab list. The syntax of it is slot-number|text|avatar
The placeholder I want to use in text contains the character |, which makes the plugin thinks the stuff behind the | is referring to avatar
sure with javascript it's easy
the entire js file would be
"%placeholder%"```
and you can name it whatever you want and use %javascript_yourplaceholder%
I have zero knowledge in coding so...
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
Thank you so much! It working now!
Please respect the rules, be patient and don't ping staff members!
Oh sorry
can't divide by 0
you could try using changeoutput to change the 0 to a 1
although I'm not sure if you'll be able to nest the placeholder in {} again, which I think is required
might just need to make a custom js to do what you want instead
js is slow right?
I don't get the deluxetags prefix I get like this {deluxetags_tag} player> hi
@mint fable help pls
Please respect the rules, be patient and don't ping staff members!
why
๐ฆ
do you ask the same thing in 2 channels
yes
someone literally asked you a question in #general-plugins and you go ask in another channel and ping a staff member (which is against the rules) ... please go back to #general-plugins and give more context like you were asked to. thanks
Hi, anyone knows how to create an if statement for a placeholder?
elaborate a bit more?
some1 with knowledge of Skript ?
It's very laggy at mid-high scales yeah
well not really. The problem is that it can have a pretty big impact on performance when you use it in places like TABs if they refresh very fast. I keep forgetting what it was or if yugi ever found a fix for it but I believe he had an idea of what the problem might be. I think I asked him like 10 times already so he'd probably scream at me if he saw this message lol
even low scales can be bad.
it uses eval method?
Yeah I had no idea it could be this bad until I tried making a semi-interactive GUI using a few js placeholders. TPS dropped to like, 16 whenever opening the gui lmao
ended up coding my own expansion and it worked pretty well
yeah. I really wanted to try the kotlin expansion but was too lazy to do so
oh is that a thing already? Haven't heard of it before
yeah not on the ecloud
you'd have to build it yourself https://github.com/PlaceholderAPI/KotlinScript-Expansion/
pretty sure. don't see why not
best solution: code a plugin
yugi hates us thats why
๐คจ
Dose anyone know, how to get Entity methods in javascript
Hey, I'm using the changeoutput expansion however the input I'd like to check returns nothing, how would I use changeoutput in a way that it can detect the empty line?
Which placeholder are you trying to use?
What do you mean?
That puts out a blank output
%deluxetags_tag%
Gotcha give me one moment
Okay ๐
%changeoutput_equals_{deluxetags_tags}__<what you want this to say when none>_{deluxetags_tags}%
@vapid merlin
Let me know if that works
you might want to add one more _ at the end. for the output
That worked, thank you very much !
hey
can someone help me
I want it to open the menu only when %mmocore_level% is greater than or equal to 20, what should I do?
Please respect the rules, be patient and don't ping staff members!
sry
You literally pinged 3 staff members lol
sry T^T
can someone help me pls T-T
suggestion, dont ping staff in any server you join, just saying ๐
bruh
idk if you can do that with DeluxeMenus
go read the rules before
maybe choose items based on placeholder, but idk if thats allowed in command to open the gui
im sorry
@kind shale Please Refrain From Pinging Staff, and even worse deleting it
ya its possible
you can use math placeholders
what the type
javascript
np
oh I missed context of DM
I thought this was a scoreboard
my fault
all good
There is a channel for that plugin support iirc
verify your account to access to it i guess
what placeholder should i use to tell the player how active he was at the server ?? ๐
as in how much has he played? then %statistic_time_played%
I try to import PlaceholderAPI by use
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>```
``` <dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.1</version>
<scope>provided</scope>
</dependency>
on the import line, it just normal color
Dose anyone know how to fix it?
it say Could not find artifact me.clip:placeholderapi:pom:2.13.0 in spigotmc-repo (https://hub.spigotmc.org/nexus/content/repositories/snapshots/)
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
2.13.0? what?
why did you change the version to that? use 2.11.1
yeah, i change to 2.11.1
but it
can't import they package
import mc.clip.placeholderapi.PlaceholderAPI;
it not import
just normal color
package mc.clip.placeholderapi does not exist
that what it say
Hello i need help , when i do /papi reload
my plugin placeholder breaks
is there a fix for this?
can you check the console and if there's an error put it in a paste bin: https://paste.helpch.at and send it here?
oky
not sure if this is the best way to handle placeholders ,
oh i can't post a picture here
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload or similar service to upload images/screenshots.
yeah that's alright i GUESS
so what's the problem??????
Hello. Sorry. I had to go somewhere. is this the error you're talking about? [19:11:46] [Async Chat Thread - #0/ERROR]: Could not pass event AsyncPlayerChatEvent to SkyPvP v1.8.0.0 bcz I don't see any other error and this one seems to be related with the SkyPvP plugin's chat formatting
Is there a way using the Statistic placeholder to get how much wheat someone has farmed? please ping with reply im trying to use %statistic_mine_block:WHEAT%
And didnt work? XD
public static final Material WHEAT```
BlockData: Ageable
Hmm, maybe not
Hi all, is this not released, yet?
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
no. I had no time to go thru it and check if everything is good. But I believe the pinned version might be the final one.
๐ฆ
I mean why not use that one?
I want to use the ChangeOutput expansion for a json message, but it doesnt seem to work because json messages use { and } which the expansion probably recognises as a placeholder, is there a way to get around this?
nope didn't work
I've broken multiple wheat crops and the statistic didn't leave 0
Does PAPI work on Waterfall, so that I can use placeholders in the server list motds?
nope
what placeholder were you wanting to use
They're player-specific btw (it's how papi is setup)
The %pinger.. % ones
ah
I have seen parsing against an offline player which is set to null works on some serverlist plugins
I tried myself but failed xED
ya, no communication to the waterfall server via papi
so won't be able to parse anything
ah, even Serverlistmotd says The Spigot version also comes with PlaceholderAPI support.
tried to make a waterfall plugin?
Well, I am still on Velocity and thought about changing to a bungee base if it would work there
icic
so I tried a velocity thing, but yeah
won't work anywhere
but if you're going to make a plugin, you could just make the motd yourself
and ping the servers in your own plugin
how do you write this checkitem command?
nbtstrings:<key>=<value> or nbtstrIngs:<key>=<value>
the first one tells me everything not with the correct and incorrect data.
the second tells me everything yes with the correct and incorrect data.
Can you send the entire placeholder @delicate haven ?
/papi parse me %checkitem_nbtints:slots=3%
my nbt data is 3 but the checkitem says no
what if you supply a mat:
now it works
weird
but that would be two conditions
would matcontains work better for your situation?
it works
if i let matcontains the blank will be as a single condition
thank you very much, it will be very helpful
PS: the messages were translated by google
DeluxeTags no longer requires an expansion! Go to plugins/PlaceholderAPI/expansions and delete the DeluxeTags expansion. Restart the server afterwards.
?dm-heads
How to use custom heads in DeluxeMenus:
a) A player name material: head-extended_clip
b) The player's head material: head-%player_name%
c) The base64 code of a head material: basehead-<code>:
- Go to https://minecraft-heads.com and find a head.
- Copy the head Value code (from the page bottom)
d) The minecraft texture url material: texture-<id>
- Only put what's after https://textures.minecraft.net/texture/
e) EpicHeads material: heads-<id>:
- Require https://www.spigotmc.org/resources/13402/
f) HeadDatabase material: hdb-<id>:
- Require https://www.spigotmc.org/resources/14280/
make sure you are doing it correctly
Good day, im having issues with 3 of my plugins unable to hook into papi causing them to not enable and disable them upon start, any ideas why this may be
these plugins were working just 2 days ago and i haven't touched anything regarding them
unless you share and error or something
i dont think someone can help you
just saying: use latest version
i am
https://pastebin.com/bU8XkZdj here is one out of the 3 plugin errors
their all roughly the same issue
[09:25:49 WARN]: Caused by: java.lang.NoSuchFieldException: placeholders
[09:25:49 WARN]: at java.lang.Class.getDeclaredField(Class.java:2070)
[09:25:49 WARN]: at kangarko.chatcontrol.hooks.PlaceholderAPIHook.<init>(HookManager.java:576)
weird, looks like an issue with the other plugin
try asking its dev
placeholder api works completely fine
CC ๐คก
imagine all plugins having issues
its 3 plugins made my 3 different devs all having the same console issue
doesn't seem like its the other plugin causing this
Good day,
I downloaded the latest version of the plugin, but I can't use the command to download the skript extension. Console tells me that this extension could not be found.
didnt know there was a Skript expansion 
that's bcz there isn't a verified expansion with that name
if you want you can manually download one from here: https://github.com/Altruiis/skript-expansion/releases/
Well, no there are not placeholders based on events
where are you trying to use placeholders like those?
you may need a plugin to grab those variables
Is there anyone who speaks German? ๐
Guys where do I find live support?
Questions, for some reason my vault placeholders do not work. I have got both the Vault and Essentials plugin and placeholders installed.
issue: https://gyazo.com/eed4d6d0bf6cef307769b4e1f5c3df05
/papi list installed: https://gyazo.com/85476821090f831a6047a7ffb27d2eda
Does anyone what I have done wrong or how I can fix it?
@sleek grove Where are you trying to use them?
You can use /papi parse me %placeholder% to test if the placeholder itself works
Is the Balance a placeholder as well?
that looks like it works
I am trying to use them in a deluxemenus -> baltop menu.
/papi parse lo_cl %vault_eco_top_balance_formatted_1% = 0
papi parse lo_cl %vault_eco_top_player_1% = nothing
My balance is $150 atm
%vault_eco_balance% works
and what about /papi parse me %vault_eco_top_rank%
doesn't recognise it
I am getting the placeholder as output
Anything with %vault_eco_top_ doesn't seem to be working
the baltop placeholders were removed from the vault expansion, checked pinned messages for the updated essentials expansion which has them instead
they are still on github list O_o
older versions will still have them
It will most likely (hopefully soon) be edited when changed
good to know
Any idea when we're pushing that build?
I just noticed that was 2 months ago
ยฏ_(ใ)_/ยฏ
@turbid tide When are we pushing that essentials build to the ecloud?
If you need something looked at for the baltop not running at the start, and adding a placeholder replacement for %vault_eco_top_rank% lmk
i dont think theres been any issues with that build so far, so might be worth asking blitz/glare if we can get it the ecloud
With the new essentials 'expansion', is there a replacement for %vault_eco_top_rank%?
the expansion source hasnt even been updated on github ๐
so idk if blitz has missed a placeholder in that message or not
try downloading an older vault version
When was it removed?? september??
in 1.7.0?
wot
it says it's disabled by default
i think u have to go back to the 1.5.3 update or whatever it is
@sleek grove check your config
maybe you gotta enable baltop
then run the /baltop command once most likely
then test
i dont think the setting works kek
Thanks, this fixed it! ๐
be warned tho u might experience some performance issues with the vault baltop placeholders, thats why they were removed
Mm okay thanks for the warning. I tried the essentials one but it didn't work properly. So I think I'll stick with the older Vault expansion for now.
1.6.0 started caching them if that works use that
instead of 1.5.2
at least that's what the changelog says
@sleek grove
Thanks for letting me know, I'll give it a try
hello. I was pinged
I shall read the 200 sent messages and figure out what is going on now
Ugh. first of all. I didn't make the update!
Star and Cube did!!! don't blame me please.
Second of all. The code is on github. just under a different branch I believe.
Third, the baltop is updated at the start @mint fable. its updated every time the expansion is loaded now bcz there's no realistic way of doing it only when the expansion is loaded on server start.
About the other placeholders tho, idk. I told star to make a 1 to 1 copy of them but he decided to not and instead even change other essentials placeholders. I could add them if you open an issue before we release, whenever that will be
@errant iron bad
agree
Well Star lmk if you need anything so we can push that
I personally can't push it, but can help if any (other) placeholders are missing
The only vault placeholder related to baltop that is missing, is %vault_eco_top_rank% as far as I know.
shakes stick at star ๐คฆโโ๏ธ
[19:02:37 INFO]: [LocalTime] Couldn't get _Chriqsq's timezone. Will use default timezone.
why cant it get anyones timezone
I'm trying to create a placeholder for placeholderapi so other plugins can use it. Does anyone know why it doesn't work?
if (player == null) {
return "";
}
switch (identifier) {
case "kills":
return (ProfileManager.getProfile(player.getUniqueId()).getStat(PlayerStat.KILLS) == null ? "" : (ProfileManager.getProfile(player.getUniqueId()).getStat(PlayerStat.KILLS)));```
Error says `Operator '==' cannot be applied to 'int', 'null'`
im guessing getStat returns an int?
Yes
yeah, primitives cant be null hence why u cant compare it to null
so pretty much that whole line is redundant and can just be return ProfileManager.getProfile(player.getUniqueId()).getStat(PlayerStat.KILLS)
unless ProfileManger.getProfile can be null, in which case null check that instead
how do you make the rainbow chroma effect shown on the website?
Hi, can anyone help me? The javascript extension stopped working after I've updated my server to 1.18. I've updated the extension and the plugin.
Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.
Download the latest js expansion
I did it twice with the ecloud command. I get the same error.
Send the console error again?
If you downloaded the latest papi plugin and restarted your server it should work
Delete the placeholder file entirely and let the jar file create a new one
the file may be corrupted
๐
what version is your server?
1.18.1
That's probably why
problem is that a class is not being initialized I believe
and I think because papi may not be updated for that specific version
can you try on older servers?
OH
@subtle oriole you are missing a dependency?
I tried it on my server and it seems that you need a dependency to load this parse
Do you have the plugin that connects for it?
Make sure that plugin that you have as a dependency works for the version you are using or papi won't recognize a jar file that doesn't work
I don't think so
Yah
Send the spigot link for it
It's worldedit lol
i dont think so
worldguard*
I have worldguard on my server and it doesn't recognize
oh you mean from the other plugin?
Itemsadder works without any issues rn
just the javascript acting crazy
it was working without any issues before updating to 1.18
so the version change is the problenm
one of the dependencies is not compatable with the update
as i mentioned before
That can't pe possible as I've updated everything to 1.18
that doens't mean it's compatitable
unless region is not a placeholder but i doubt that's the case
maybe it's called something else
the javascript was supposed to identify the region and then turn it into a itemsadder image.
Tried both of the placeholders separately and had no issues
so maybe they are not compatiable with each other in the newer versions
+ [X] PlaceholderAPI Placeholder api is not supported for 1.18 #912966755352199218
the discord is more reliable
Hey. Is there some easy way to create custom placeholders with a command? Say I have an equation and want the result of that stored as a placeholder, can I do this with PAPI or do I need some extrenal plugins for this?
The reason I'm looking for something like this is that I'm using CMI to calculate two placeholders together, and would like to use this result with a third plugin. This third plugin doesn't allow the formatting I need for CMI placeholder to work. So I'd like to store that CMI placeholder result in a placeholder the third plugin can actually read. ๐
You could maybe try the math expansion from papi:
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#math
I will look into that, thanks.
on the Javascript expansion how would I write a message to the server console (for debugging purposes)
How would I add a date to my scoreboard?
@primal steppe try System.out.println or() PlaceholderAPI.static.getInstance().getLogger().info()
ill try the second one because i already tried the first one and it didnt seem to work
how do i use the second one
like where to i put the message
or like what does it do ahah
javax.script.ScriptException: TypeError: PlaceholderAPI.static.getInstance is not a function in <eval> at line number 2
oh its as simple as print() ahah
%localtime_time_<SimpleDateFormat>% What would I write in the "simpledateformat"
Go to https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html (also linked at the expansion) and scroll down to the examples header. There you will find a few examples. If you need yyyy.MM.dd, then do %localtime_time_yyyy.MM.dd% at the placeholder.
Thanks :d
And yes it can be null, it's kills. So can be 0 and more. Would u mind telling me how to null check?
This is my current code
switch (identifier) { case "kills": return getInt(profile.getStat(PlayerStat.KILLS)) == null ? "0" : profile.getStat(PlayerStat.KILLS);
But I'm getting error:
https://i.imgur.com/xvCTbJ6.png
Please respect the rules, be patient and don't ping staff members!
In using the Javascript expansion
okay so this:
print(args[0]);
print(cost);```
prints the following in the console:
1
0.33But this gives a null error when i try to parse itvar cost = parseFloat("%deluxeshop_"+args[0]+",sell%");```
Why would that happen??
args[0] is 1 so why would it give an error when i put that variable there..
need help with js expansion
How do I show the amount of wins a player got in total in bedwars
on the scoreboard
ur plugin should have placeholders
show plugin
Did you find placeholders?
its "clashwars bedwars"
Go to their resource page on spigot and join their discord. They should have a list of placeholders in there (according to their resource update post)
PlaceholderAPI is 100% supported for 1.18...
As you even pointed out in #912966755352199218
I'm sure tons of people can answer it ๐
hey cj do you know why this happens
No thats mercalys bw
parse it separate
can i extract email from authme in JS expansion
var placeholder = "%deluxe..."+args[0]+"...%"
var num = parsefloat(placeholder)
might help with when the placeholder is parsed
in authme there is a command /authme email, shows registered email
and i want to replace it with symbol
like indicator
that player got email
js expansion
var placeholder = "%deluxeshop_"+args[0]+",sell%";
var num = parseFloat(placeholder);```still gives null error
so need to ask this in general ?
whats the placeholder
no, you're fine
I just saw bedwars then authme and missed the js part
do you mean args[0]?
the one you're testing with
yea i wana try to make a script showing registered email but replaced with some indicator like a symbol
the sell price of an item in deluxeshops
its related to the code you sent me yesterday
%javascript...%
try PlaceholderAPI.static.setPlaceholders(placeholder)
Treb did you find placeholders the plugin?
ohh %javascript_dm-refund_{item}%
surround with `` to escape formatting
var placeholder = "%deluxeshop_"+args[0]+",sell%";
var num = PlaceholderAPI.static.setPlaceholders(placeholder);``` also gives: `java.lang.NullPointerException: null`
.
can you send the whole script and whole error
that is the whole script. this is the whole error: [DeluxeMenus] Task #939390 for DeluxeMenus v1.13.4-Release generated an exception java.lang.NullPointerException: null
the placeholder doesnt do anything at the moment because i removed the script to debug, but this is what the script used to look like:js function fun() { var placeholder = '%checkitem_give_mat:{deluxeshop_{item},name},amt:{deluxeshop_currentAmount}%'; var notGiven = parseInt(placeholder); var buy = parseFloat("%deluxeshop_{item},buy%"); if(!isNaN(notGiven)){ return (notGiven*buy).toFixed(2); } return 0; } fun();
wait 1 second thats not right
but the item tag doesnt work so i pass in {item} so it becomes args[0]
cj when u done here tell me if i can do this
like so js function fun() { var placeholder = '%checkitem_give_mat:{deluxeshop_'+args[0]+',name},amt:{deluxeshop_currentAmount}%'; var notGiven = parseInt(placeholder); var buy = parseFloat("%deluxeshop_"+args[0]+",buy%"); if(!isNaN(notGiven)){ return (notGiven*buy).toFixed(2); } return 0; } fun();
function fun() {
if(args[0] == null) {
return "No item specified";
}
var mat = PlaceholderAPI.static.setPlaceholders("%deluxeshop_"+args[0]+",mat%");
var placeholder = PlaceholderAPI.static.setPlaceholders("%checkitem_give_mat:"+mat+",amt:{deluxeshop_currentAmount}%");
var notGiven = parseInt(placeholder);
var buyPlaceholder = PlaceholderAPI.static.setPlaceholders("%deluxeshop_"+args[0]+",sell%");
var buy = parseFloat(buyPlaceholder);
if(!isNaN(notGiven)){
return (notGiven*buy).toFixed(2);
}
return 0;
}
fun();
what about something like that
still says its null. one sec ill a get a paste of the new error
yes
quick question, can i use some parts of plugin in JS expansion?
because i did already replace the items with item
I accidentally put items in placeholder
ah
ah well i see
the material is not gonna be the args
try?
same error
i seem to get the error whenever i try and concatenate strings when settings up the placeholder
same exact error?
yeah
because the last error was to due with checkitem
and the material being invalid
it was not the same error from the start
or anything to do with js
well the last error only appeared because you were entering null into the checkitem material, but my initial error when i was doing print was because i was printing null
when i enter the item argument manually (which is 1) it works just fine, as i show up here^
When you type /papi parse me %javascript_dm-refund_1% does it work
ahhhh
setPlaceholders(BukkitPlayer, "")
fix all that and it should be workin
function fun() {
if(args[0] == null) {
return "No item specified";
}
var mat = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%deluxeshop_"+args[0]+",mat%");
var placeholder = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%checkitem_give_mat:"+mat+",amt:{deluxeshop_currentAmount}%");
var notGiven = parseInt(placeholder);
var buyPlaceholder = PlaceholderAPI.setPlaceholders(BukkitPlayer,"%deluxeshop_"+args[0]+",sell%");
var buy = parseFloat(buyPlaceholder);
if(!isNaN(notGiven)){
return (notGiven*buy).toFixed(2);
}
return 0;
}
fun();```
like so??
ye
because that gives the same error
^
line 5 is just print(mat);
sojs function fun() { if(args[0] == null) { return "No item specified"; } var mat = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%deluxeshop_"+args[0]+",mat%"); print(mat); print(args[0]); var placeholder = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%checkitem_give_mat:"+mat+",amt:{deluxeshop_currentAmount}%"); var notGiven = parseInt(placeholder); var buyPlaceholder = PlaceholderAPI.setPlaceholders(BukkitPlayer,"%deluxeshop_"+args[0]+",sell%"); var buy = parseFloat(buyPlaceholder); if(!isNaN(notGiven)){ return (notGiven*buy).toFixed(2); } return 0; } fun();
i gotta go, but it's saying that args doesn't exist
never defined
try checking your papi config
make sure everything is right there
other than that I got no clue rn but I wish you luck
when i do print args[0] i get 1 in the console
hmm okay, well thanks for your time๐
try to separated the % from the rest of the strings
PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%deluxeshop_"+args[0]+",mat%");
PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%" + "deluxeshop_" + args[0] + ",mat" + "%");
tried it already, but when i concatenate the % to the start and end it just gets the same problem
iirc not separating them cause some problems
ayy yep that was the solution thanks!
Please respect the rules, be patient and don't ping staff members!
oops sry
function fun() {
if(args[0] == null) {
return "No item specified";
}
var mat = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%" + "deluxeshop_" + args[0] + ",mat" + "%");
var currentAmount = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%" + "deluxeshop_currentAmount" + "%");
var string = "checkitem_give_mat:"+mat+",amt:"+currentAmount;
var placeholder = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%" + string + "%");
var notGiven = parseInt(placeholder);
var string1 = "deluxeshop_"+args[0]+",buy";
var buyPlaceholder = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%" + string1 + "%");
var buy = parseFloat(buyPlaceholder);
if(!isNaN(notGiven)){
return (notGiven*buy).toFixed(2);
}
return 0;
}
fun();```
toReturn.add("&7%server_time_dd MMM yyyy% Wargrounds");
Would anyone know how to make my internal scoreboard work with placeholderapi?
// Expand shorthand form (e.g. "03F") to full form (e.g. "0033FF")
var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
hex = hex.replace(shorthandRegex, function(m, r, g, b) {
return r + r + g + g + b + b;
});
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
return result ? {
r: parseInt(result[1], 16),
g: parseInt(result[2], 16),
b: parseInt(result[3], 16)
} : null;
}```
can some1 tell me whats wrong with this
You are returning .. something
sry for tag, but how it should be ?
Please respect the rules, be patient and don't ping staff members!
Anyone know any win stats placeholder's?
win? win for what?
Bedwars
Lke on the scoreboard I want it to list the amount of wins the player has
I tried looking for a placeholder for the plugin but I couldn't find one
you have to tell us the plugin if you want help. we can't just guess.
what code?
how often do placeholders refresh?
like this one per exemple %math_0_{townyadvanced_town_townblocks_maximum}-{townyadvanced_town_townblocks_used}%
That's not really up to PAPI. Each plugin handles its own caching if there is any at all
I know the math expansion caches it for a few seconds or something like that
The script
Please respect the rules, be patient and don't ping staff members!
This one
Im getting empty result
attempted to use the command "/papi parse me %player_has_potioneffect_REGEN%" https://paste.helpch.at/xayulojati.bash
and got this error
how to remove a placeholder from the ecloud?
you can't remove something from eCloud lol
d;fields spigot potioneffecttype
org.bukkit.potion.PotionEffectType%LUCK
org.bukkit.potion.PotionEffectType%HEALTH_BOOST
org.bukkit.potion.PotionEffectType%HERO_OF_THE_VILLAGE
org.bukkit.potion.PotionEffectType%SLOW_DIGGING
org.bukkit.potion.PotionEffectType%INCREASE_DAMAGE
org.bukkit.potion.PotionEffectType%WATER_BREATHING
org.bukkit.potion.PotionEffectType%WEAKNESS
org.bukkit.potion.PotionEffectType%CONFUSION
org.bukkit.potion.PotionEffectType%LEVITATION
org.bukkit.potion.PotionEffectType%SPEED
org.bukkit.potion.PotionEffectType%REGENERATION
org.bukkit.potion.PotionEffectType%GLOWING
org.bukkit.potion.PotionEffectType%INVISIBILITY
org.bukkit.potion.PotionEffectType%SLOW
org.bukkit.potion.PotionEffectType%POISON```
Because it is "REGENERATION", not "REGEN"
Is there any way to figure out if one server is whitelisted from another server? Im trying to use something like %server_has_whitelist% on my lobby to tell if a different server has its whitelist enabled
No I dont think so
Well you can clear them so i think you can delete one
Delete?
Clear?
eCloud can only be modified by his owner (papi dev)
If you mean remove your expansions, delete the files in Expansions folder
i wanna suggest about an option that checks specific gui slots like anvil slots
so i can utilize it on my custom items plugin to block specific enchantments and etc
just wondering, example? (im not papi dev, just wondering)
How can I import javascript packages in javascript expansion's scripts
It is possible if you did not do /papi ecloud download Vault
and it is also possible that superlobby would not have papi support
i prefer using %luckperms_prefix% xd
With the gradient expansion can i add format codes to the message like '&l'
Sadly not supported
you checked wiki?
okay
ยฏ_(ใ)_/ยฏ
thanks for help
you can always code it ๐
I guess
also I know this placeholder exists because i've seen it before on other servers, but whats the placeholder for lifetime players joined? i cant find it on the wiki
is not hard
you simply say:
it returns my prefix
instead of target
or similar
indeed
dont setPlaceholders for you
set it for him
i dont think its your plugin
the one you ahve problems with
so you wrote the code
udemy
._.
PlaceholderAPI.setPlaceholders
dont user your player
use the target
or viceversa

Is there an expansion that allows me to add countdowns? For example a something that would count down lets say 10 seconds so it would go 9 seconds, 8 seconds (etc)
afaik
server expansion has a countdown thing
but you need to set the target date/time
i think what you want is an expansion that converts milliseconds to pretty ms
like 1000 => 1s
(yeah, i dont know any)
Ok, ty
what do you need that for?
i mean, if you want to convert remaining time of something
that plugin should probably add a placeholder for it

I'm making an item generator with skript and I have a hologram over it which I want to display a countdown till the next item spawns (these countdowns can be 1.5 seconds to like 10 seconds)
naaa, you still using skript
ยฏ_(ใ)_/ยฏ
and how you plan to link
the data to placeholder
I have that covered, I just need to know if theres a countdown expansion
server expansion
has countdown thing
you need to specify the end date tho
that means you cannot repeat the countdown
until you modify it i guess
Alright I'll look into it, thank you

ะฟะพัะตะผั?
ั ะฟัะพััะพ ะฟะตัะตะทะฐะณััะทะธะป ัะตัะฒะตั ะธ ะฟะธัะตั ะพัะธะฑะบั
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
How can I import javascript packages in javascript expansion's scripts
No internet conection or firewall maybe?
Hello can i use "require" for my Javascript placeholder.
Is this correct
view_requirement:
requirements:
anythinghere:
type: javascript
input: '%vault_group%'
expression: '"INPUT".indexOf("iron") != -1 || "INPUT".indexOf("gold") != -1 || "INPUT".indexOf("diamond") != -1 || "INPUT".indexOf("emerald") != -1 || "INPUT".indexOf("ruby") != -1'
What? If you mean you can use something like
let file = require("./file.json")
I guess you can
Javascript engine read it as code
So you should be able to
Why am i facing issues when i try to use the placeholder
%mysqleconomybank_balance%
not only this i am facing issues when i try to use any mysqleconomy bank placeholder
Ye it is, but i got the error. cam
don't know the require
ReferenceError: "require" is not defined in <eval> at line number This one bro
hiya! was wondering if it were possible to add a certain time to this? %server_countdown_dd.MM.yyyy_01.03.2022%
nvm figured it out
please help with this
i'm facing issues with %this_is_a_random_placeholder%
Please help me without giving any details about what is not working or if i have errors
did you installed those extensions today?
my all extensions working fine but error with the mysqleconomy bank because i installed that extension today ig
๐ฅด
r/woooosh
How add placeholder to Html Website?
is that possible?
i cant download skript with /papi ecloud download skript
and what is says??
it says not found
then its not found
bruh
bruh what
its not a verified one
ask the dev to verify it
or download it manually from the github
k
i get an error loading skript expansion
makes sense
i manually downloaded it
I'd recommend the one on the ecloud at least
it was updated most recent (august 24, 2021)
click that download 
{"Detail": "Expansion does not exist.", "Error": 1}
gotta click it
and btw i already have it
but it loads with an error
maybe it was renamed or soemthing
it was
weird
Didn't you download the one from the github Alonso sent?
ill download this one
and also more outdated
ill tell u if it worked or not
Could not load 'plugins/Expansion-Skippi_NOjwIyx.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
ah, did you do the same with the last one?
ye
noice
it should create a leaderboard with ajleaderboards
but the placeholder gave me a error
so /papi parse me %skript_<variable>% is erroring?
might have to re-check your skript configuration or try contacting the dev
could also see if anybody in skript's discord knows anything that could help you
uhh is that right that it returns "N/Aplayer%"
do i need the < >
/papi parse me %skript_player%?
no
/papi parse me %skript_{money::%player%}%
oh that's why
{money::%player%} is the variable
you can't put %player% in it
wait
hmm
is %player% a skript thing?
or are you trying to pass the player's name?
ye not gonna be possible if the variable contains %
ohh wait
you could try...
I feel I got your hopes up, sadly this won't work
oh
the skript expansion doesn't let you parse other placeholders in the variable
I was going to say use the ascii expansion to get a %
i will try
๐
but i gtg for now i will tell you when im back home and tried
im back imma try it now
ok so
i tried it
with /papi parse me %skript_{x}%
and it returned an "N/A"
didnt work
Please respect the rules, be patient and don't ping staff members!
is the variable {x} or x
{x}
I really recommend asking in a server where people know skript tbh
wait ill set it to x
oh thats impossible
well ill just go continue look at skunity to find it
Sooo I have economy formatting (vault) setup right as far As I Can see but when going over 1q It breaks and just showing numbers instead of the formaatted
OMG i upload 2 json file my bad haha
๐ช i will upload the js file tomorrow. I already turn off my pc
it breaks on quintillions and then completly gets wrecked in the hextillions
how do i get it to show things like balance: q, qi, H for %vault_eco_balance_formatted%
cant find it anywhere
we are using vault
ints have limits
is there any way around it ?
ints are ints
unless its your plugin
i dont think so
1 000 000 000 000 000 000 000 000 000 000,
thats way too much money
dont expect too many plugins
to support more than that
Well On other server that I know has the same they din't break like that so I'm guessing its the plugin thaats fcked then maybe?
we have less then that when it breaks
does placeholderapi always return string values when used in configs?
I ask because I'm looking to parse and evaluate an expression in a config file using a value that a placeholder returns
also, can anyone tell if it's possible to create my own variables in a config
looking to do something like this
x = %placeholder%+1
then be able to call the variable in the (votingplugin) config where it executes a command when triggered by a vote:
/lp user %player% permission set limit.x
hence calling the x variable there
theres an expansion to let me know the world size in GB?
hey, im trying to integrate my plugin into papi to have a custom placeholder, but it doesnt look like the onRequest method in my custom placeholder class is every firing... Thanks!
i would assume that would fire anything a plugin tries to update any placeholder?
my placeholder appears registered in /papi list
