Hey!
Please respect the rules, be patient and don't ping staff members!
Barry's Anti Abuse System | v1.4.9
1 messages ยท Page 23 of 1
Please respect the rules, be patient and don't ping staff members!
[14:34:01] [Craft Scheduler Thread - 7/INFO]: [VoidGen] VoidGen v.2.2.1 is available here: https://www.spigotmc.org/resources/25391/
[14:34:30] [ForkJoinPool.commonPool-worker-3/WARN]: [PlaceholderAPI] failed to post dump details
java.util.concurrent.CompletionException: java.net.ConnectException: Connection timed out
at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:113) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.net.ConnectException: Connection timed out
at sun.nio.ch.Net.connect0(Native Method) ~[?:?]
at sun.nio.ch.Net.connect(Net.java:579) ~[?:?]
at sun.nio.ch.Net.connect(Net.java:568) ~[?:?]
at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?]
at java.net.Socket.connect(Socket.java:633) ~[?:?]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304) ~[?:?]
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174) ~[?:?]
at sun.net.NetworkClient.doConnect(NetworkClient.java:183) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:531) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:636) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266) ~[?:?]
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:380) ~[?:?]```
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) ~[?:?]
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179) ~[?:?]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:142) ~[?:?]
at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:102) ~[?:?]
... 7 more```
in the consol
this command work
Please respect the rules, be patient and don't ping staff members!
but i don't take %essentials_baltop_player_1%
for to collect the first player with the most money
yeah our paste service is down for moment =//
does it work if you parse it /papi parse me ?
work just this variable doesnt work: %essentials_baltop_balance_<rank>%
try %essentials_baltop_balance_fixed_<rank>%
hmm?
I don't know I asked for help elsewhere someone told me that since June 6 he had been infected and was no longer working very well
I wanted to put the latest essentialsX version but it doesn't work, do you have one that works?
in fact it's good essentials works but for the economy part it tells me none while the /eco works
Can anyone explain why this wouldnt work? https://sonot.pics/upload/jj2eulq.png
treid with spaces
around the /
still dosent work ๐ฆ
did you download the math and statistic expansions?
how did you download the expansion and how does it not work? does it not show up in /papi list ? does it throw errors in console? (and if so, send them here)
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
no the plugin now works surely a server error. but when I do /essentials version it puts me economy: none
i have essentialsX and essentialsXspawn
Yes
Stats work
and math works with 1+2
in which scoreboard plugin are you using the placeholders?
and without the spaces?
and do you get a message in console when you run the parse command?
what's your Math version? (/papi info math)
oh sorry
dw
as for Essentials, I'm also getting Economy Layer: None
but it seems to work fine
what doesn't work?
the baltop placeholders?
yes
[PlaceholderAPI] [math] Cause: '2 / 0' is not a valid Math expression.
๐คฆ
2 / 0 seriously?
you have 0 kills
im sorry that my stats give that
flipped
still dosent work
[13:33:32 WARN]: [PlaceholderAPI] [math] Cause: '2 / 0' is not a valid Math expression.```
Surely should still give output????
instead of just nto working
how
2sec
alr nw
just need to boot the game to try it
I can try if you want
so you have an idea?
download Utils and ChangeOutput
@pulsar willow %utils_parse_math_{statistic_deaths}/{changeoutput_equals_input:{statistic_player_kills}_matcher:0_ifmatch:1_else:{statistic_player_kills}}%
2sec
baltop placeholders seem to only work once you do /baltop at least once
Thank you how can I round down to only be 3.55 for example instead of 3.5555
math_2 _...
cheers
o_O /baltop doesn't even work anymore for me
welp, I'm not sure how Essentials' baltop system works, it's been a while since I've used it and it doesn't seem to work properly for me
I've also seen people having issues with it in the past, whether it was because it didn't support offline players or it didn't update, idk why but I don't have any other idea as to how to make it work
/baltop and /balance show me different things it doesn't seem to update. vault and essentials work well together, don't they?
where is docs for utils
they should work together yeah, and also got that same issue with /baltop and /bal xD
/baltop didn't update, thought a restart could fix it but now /baltop just doesn't work at all lol, it says Unknown chapter. instead
How could I make it so this only ever shows 2 of the variables so either 1w 2d or 5d 4h or 7h 35m etc
ok
but %essentials_baltop_player_1% don't work. I need to retrieve the different players in order to do a manual ranking
no idea, but Utils doesn't have that
it doesn't work for me either =/
any way I could?
I can't help, sorry
well it's not really the point of the expansion
it's mostly focused on parsing placeholders with nested placeholders & colors
other solution for create a leader board?
if %vault_eco_balance% works correctly, you could use a plugin like ajLeaderboards
Okay
but suddenly we can no longer make a menu manually with the placeholders? maybe it should be postponed for it to be put back, right?
we can no longer recover for example the second richest player on the server with the placeholders, right?
you can
with the ajLeaderboards placeholders
that's the main feature of the plugin
a ranking menu of the richest players
yeah
Ok i go look this plugin
but it's a shame it requires going through another plugin before we could simply do it ourselves
Hello, I have a minimessage can I somehow put it in onPlaceholderRequest? so that the formatting is saved
Hey there, I have a placeholder to show the players max durability in a math equation, I was wondering if it was possible to remove trailing 0's from this placeholder
%math_2:_{mmoitems_durability_max}/4%
For example, the max durability would show as 100.00, is it possible to just show 100?
Would it be possible for it to remove trailing 0s but not decimals? The placeholder will show a different number for various items
Trying to make a javascript for loop
for (int i = 0; i < 4; i++) {
return "Hello";
}
}
woodSelection();```
Gives Script error (check console)
Hello, is there any javascript code to replace a custom character by an image using Papi javascript?
I tried one but its not working:
registerPlaceholder('character_image', (player) => {
const caractereSpecial = player.replace(/&/g, 'ยง');
switch (caractereSpecial) {
case 'เฎน':
return '****\textures\UI\ranks\owner.png';
case 'โข':
return '****\textures\UI\icons\bullet.png';
default:
return '';
}
});
As an alternative to Oraxen / ItemsAdder *
Ok so I was able to get my thing to work:
for (i = 0; i < args[0]; i++) {
if (args[1] == args[2+i]) {
return args[3+i];
}
}
return args[1] + args[2+i] + args[3+i];
}
inputOutput();```
But the issue is that I parse `%javascript_inputOutput_4,3,1,a,2,b,3,c%`, where if args[1] (3 in this case) equals 1, it gives a, if it equals 2, it gives b, and if it equals 3, which is does, it gives c. It should give c, but it doesn't. If I put 2 or 1 in for args[1], it works fine, but whenever it's on the last case it doesn't. Any idea?
ok I asked ChatGPT and it helped me out ๐
nvm it made my problem worse
I got it to work!
does somone know how to get these placeholders working?
can i download them somwhere? they arent in the ecloud
you probably just need the plugin installed
i have
which placeholder are you using and where?
{corearena_player_phase}
Scoreboard.
Also tried
%corearena_player_phase%
does it work in /papi parse me %placeholder% ?
nothing
what does it show in chat?
%corearena_player_phase% get this back
does corearena show in /papi list?
yes
try to reach out to the developer then
maybe they didn't list the placeholders correctly
can't really do anything since the plugin is paid
I can't check the code to make sure which placeholders work
what you need?
I would need the plugin to be open-source but it's not so you'll have to wait for the dev to answer
oke
Guys
I don't know why my PAPI javascripts are not loading, got no errors
I try to transform a unicode ingame to a text in console
@balmy marten could you please verify Enchantment papi expansions on eCloud site? Thanks.
Please respect the rules, be patient and don't ping staff members!
how does this rule work? not allowed to ping staff yet, eCooud site says "ask a staff member in the Discord"??
funnycube said it was ok to ping him for important things
Ask... not ping. But ^^^
ask without ping?? how does it work when the instruction was to "ask a staff" ? I hope "staff members" have to "search their unpinned name in questions in this channel. It sounds very impractical rule and instruction.
don't stress, I've seen your request
I get it I don't care about pings. But they just have to glance at the channels. It's usually not that many messages.
We no longer verify expansions that have been obfuscated, if you want to go that way it needs to be built into the plugin.
got it, so, obfuscated standalone expansions are not longer hosted on eCloud. I guess i will post them on somewhere else and put a link to hit on wiki, thanks.
Correct, we'd recommend including it within your plugin to avoid people needing to download anything extra.
well, it's a standalone expansion and not a part of any plugins.
Please respect the rules, be patient and don't ping staff members!
but i will put them on Github release page.
Is there a placeholder or way to determine whether it is day or night in the player world?
Hey @junior musk sorry to bother you again ๐
%utils_parse_changeoutput_equals_input:Vacio_matcher:{servervariables_value_skin_active}_ifmatch:&e_else:&7(Nivel {servervariables_value_skin_{servervariables_value_skin_active}_level}&7)%
but this placeholder is parsing that for some people, do you know why?
it was working well with nested
what version of Utils?
Utils-Expansion-1.0.2
I think the issue is here {servervariables_value_skin_{servervariables_value_skin_active}_level}, like it doesn't parse first the placeholder from inside
Sure, much appreciated!
check /papi info utils
just to make sure it loaded the right version
Nice, would appreciate it ๐
@deep hollow /papi parse me %servervariables_value_skin_active% | %servervariables_value_skin_Vacio_level%
it worked fine for me (I used other placeholders because I didn't have servervariables)
yeah that's weird
seems like your level placeholder doesn't work
but the thing is that if servervariables_value_skin_active returns Vacio (Empty), it doesn't have to parse level placeholder
then why do you use the level placeholder?
hmmm lol
if you don't need it, don't use it xD
because if the skin isn't Vacio, it should show the level of that active skin
use the level placeholder with your active skin in the parse cmd
wait you did
it's Vacio
so the placeholder is broken
your active skin is Vacio, you tried the level placeholder with Vacio (your active skin) and it didn't work
so it's the level placeholder that's broken
yeah, but this changeoutput checks if your skin is Vacio, so if it's Vacio it doesn't return anything
it worked fine with nested so that's why I think it's weird
%utils_parse_changeoutput_equals_input:Vacio_matcher:{servervariables_value_skin_active}_ifmatch:&e_else:&7(Nivel \{servervariables_value_skin_{servervariables_value_skin_active}_level}&7)%
wait wtf
the input is Vacio and the matcher is {server_variables_value_skin_active} ?
well, it doesn't really change much
usually, people do the opposite but alright xD
yeah this returns Vacio if the skin selected is Empty
I mean, input should be the placeholder and matcher should be what it's supposed to return
but the issue if I'm not wrong is this one
but it doesn't matter
try this placeholder %utils_parse_changeoutput_equals_input:{servervariables_value_skin_active}_matcher:Vacio_ifmatch:&e_else:&7(Nivel \{servervariables_value_skin_{servervariables_value_skin_active}_level}&7)%
prevents Utils from parsing the level placeholder
so ChangeOutput will parse it only when necessary
someone? :C
If %purpur_player_afk% gives "false". Is there anyway to make the placeholder don't show anything?
And if it gives true- it should display &7&lAFK
So, to make it more clear, %purpur_player_afk% gives the outcome either true or false.
I want to change to if it gives false, it makes the placeholder blank
if true, it displays &7&lAFK
ty
%changeoutput_<options>_input:<input>_matcher:<matcher>_ifmatch:<output-if-matched>_else:<output-if-not-matched>%
This is the placeholder I was looking for!
Is this correct setup? (Check two messages up)
%changeoutput_contains_input:contains_matcher:{purpur_player_afk}_ifmatch:_else:&7&lAFK%
your input should be {purpur_player_afk}
also, I would prboably use equals instead of contains
right now you're checking if false contains false
which is always true
ya... not quite right
your input should be
{purpur_player_afk}
also, I would prboably use equals instead of contains
change the matcher back and fix the input
%changeoutput_equals_input:{purpur_player_afk}_matcher:false_ifmatch:_else:&7&lAFK%
Like this?
ya
np
Hello ! I was wondering if a placeholder exists, somewhere for a player's head, like the placeholder shows the player's head skins ?
(Not the item player head, but like a 2D texture of it)
is there a placeholder that gets the item of a name and its color codes
DM keeps showing [DeluxeMenus]: Invalid meta action! Make sure you have the right syntax. even though it's fine, and it works as well
hello
i us %checkitem_amount_HAY_BLOCK,checkitem_mat:HAY_BLOCK%
= 256 of 128
some players, will sometimes skip the check, in the inventory do not have this item but still active
I have 2 servers a and b. How can I show the placeholder "%crazyenvoys_cooldown%" on server a on server b? so the remaining time of the event will also appear on server b
I think you should connect the two to the same database
Is there a placeholder that makes text move like a scroll/ticker? (To ensure players can see the whole prefix & name when it's too long inside TAB?)
..
Looks like a problem caused by your res
Does anyone know how to get Statistics palceholder api
In diffrent world by Multiverse plugin
Hello guys i have a problem can any one help me?
ive want to add the "money" to the scoreboard for this ive added the Vault expension but it still says just the PlaceHolder name on the score board
i need help with something
my leaderboards isnt working
it says bdne
but the placeholder are all correct
Nvm someone already dmed me
So I'm using a plugin for server managment that allows me to reload plugins.
It is helpfull for me when I update my plugins or corrects bugs, but my placeholders aren't updated when I reload my plugin,
I got a log saying: [PlaceholderAPI] Failed to load expansion chasetag. Identifier is already in use.
that's because PAPI changed something in 2.11.3, either ask the plugin's dev to unregister his PAPI expansion when disabling or just restart the server instead
It's my plugin xD
How do I unregister my expansion onDisable() ?
nvm
.unregister()
when you initialize the expansion class, save it in a variable and call unregister() on it
yeah
Does anyone know how to get Statistics palceholder api
In diffrent world by Multiverse plugin
Example:
World_nether = 12 kills
survival: 4 kills
Kitpvp: 65 kills
%math_1000-{player_balance}% how would this look correct
vault_eco_balance instead of player_balance
math_0_...
oh
Does anyone know how to get **Statistics **placeholder api
In diffrent worlds by **Multiverse **plugin?
Example:
World_nether = 12 kills
survival: 4 kills
Kitpvp: 65 kills
Pls someone tell me I have been waiting for 18 hours for help
not possible
at least with the Statistic expansion it's not
you'd need a plugin that keeps track of player kills per world
how can i delete data from Statistic? I want to clear/delete the kills etc
go in your world folder, playerdata folder, and delete the files of your players
or open them with a probram like UniversalMC that supports .dat files and delete the specific statistics
i deleted whole playerdata folder and its still there
you have to delete it while the server is off
otherwise, everything will come back when the server stops and save all data
oh okay
i still have 3kills and 2 deaths, nothing changed:/
you removed the files from the main world folder right?
yes
idk then
:/ k ty for help
sorry
np <3
Is there any ways, or any existing placeholders to get the 2D player head image?
placeholders can only return text
unless you use a plugin like ItemsAdder that uses resource packs to add images
Perfect, I'm doing that
What should I do next?
I'm not sure, I've never used ItemsAdder before, but they have a wiki with quite a lot of stuff that you could check
or you could also ask on their own Discord server
Yeah I've read this wiki thousand of times xD
Never seen somethings talking about player heads
๐๏ธ๐๐๏ธ Link ?
I just said it's listed on the wiki ๐ฅฒ
oh wait
I just found that https://www.spigotmc.org/resources/items-custom-player-heads-2d-head-big-wearable-head-for-itemsadder.99121/
uh
idk if it supports dynamic player heads though
oh it says it does
well then maybe yeah
idk what's the placeholder though
probably the usual %img_<imageName>%
but idk what images you need
it was made by the same dev that made ItemsAdder so you could try to ask on their Discord server anyways
I'll try, thanks you for help!!
This is only items, no placeholders :c
they use them in books though
so I thought they had a placeholder to use it elsewhere as well
I think that's the /e from itemsadder but not sure
I'll try to dig deeper
I think its inventory only
โ
2D head in inventory
โ
2x2 2D head in inventory
r u trying to add it as an item in a menu?
if so thats what i have @pale storm
material: 'head-%player_name%'
model_data: 10001
No no, I don't want a head item, I'm trying to have it as an image, like to be displayed as same as emojis
Nope
can someone help me?
hello, does anybody has any ideea why this happens?
https://prnt.sc/imaRTH3QLi2I
(( %bungee_tycoon2% parses 0 players online, but in reality and in /glist it has 40 players ))
same thing for %bungee_total%, only shows 168, when in reality is 240 (https://prnt.sc/8ny0mmhM-tDg)
how to use tempdata
okay I may be dumb, but how the heck do I use the playerlist hook to get a list of banned players
trying to get the list so i can use it in dmenu
Is there any placeholder for distance from x, y, z
not rly but u r gonna need math and the pythagorean theorem to make one
%math_0_SQRT((({player_x}+101)^2)+(({player_y}-155)^2)+(({player_z}+31)^2))%m thats what i have for example
when the location is negative use + and when its positive use -
gosh I hated Pythagorean theorem
m2 bestiee
love it
That's where I'm going to use it too
I can't believe how well that works I'm so excited to use it lol
Tysm

๐
what is the difference between %statistic_hours_played% and %statistic_time_played:hours% i have a scoreboard gui for each user and it seems to be resetting their total time played every 24 hours and i currently have the scoreboard set to display %statistic_time_played:hours%
time_played:hours is supposed to be used with time_played:weeks and so on
to show like a 7w 5d 23h 27m 10s sort of format @merry basalt
ah okay! so how do i prevent the scoreboard from resetting the hours played? its the only placeholder resetting
heres how it set up^
thank you!
how to use papi variable in papi variable? how to nested
hello everyone, I have a problem with the plugin at 1.20, yesterday it worked fine, but today it stopped working and gives errors if they are needed, then I can throw them off
It's most likely an expansion rather than placeholderapi itself
check the logs to see what's causing it
here's what it says in my console
[18:17:18 ERROR]: Unable to load plugin plugins/PlaceholderAPI-2.11.3.jar
com.velocitypowered.api.plugin.InvalidPluginException: The plugin file PlaceholderAPI-2.11.3.jar appears to be a Bukkit or BungeeCord plugin. Velocity does not support Bukkit or BungeeCord plugins.
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.getSerializedPluginInfo(JavaPluginLoader.java:154) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.plugin.loader.java.JavaPluginLoader.loadCandidate(JavaPluginLoader.java:64) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.plugin.VelocityPluginManager.loadPlugins(VelocityPluginManager.java:96) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.VelocityServer.loadPlugins(VelocityServer.java:345) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.VelocityServer.start(VelocityServer.java:227) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
at com.velocitypowered.proxy.Velocity.main(Velocity.java:69) ~[velocity-3.2.0-SNAPSHOT-259.jar:3.2.0-SNAPSHOT (git-bda1430d-b259)]
but on Velocity it worked fine yesterday
PAPI isn't a Velocity plugin
impossible, it doesn't support it
you can only use it on Spigot
he died and how did he work for me then
I have no idea but PAPI has never supported anything other than Spigot
even if you got PAPI to run on Velocity, it would be pointless since no Velocity plugin would hook into it
well, how did he also work with the TAB plugin for me
I can even throw a screen that it worked
that's different, TAB has a bridge plugin that you install on Spigot to retrieve PAPI placeholders and send them to the main plugin on Velocity
what is that plugin @junior musk?
I don't know any
This is great however its round the wrong way. do you recon its okay just to change the first 2 placeholders around or does the end have to change too?
you can switch the placeholders
change statistic_deaths by statistic_player_kills and vice versa
how can i input material id have _ as args[0] in javascript expanasion ?
like oak_sapling
maybe i should use args[0] + "_" + args[1]
just use _ in the Javascript placeholder
arguments in JS are separated by , and not _
hello, does anybody has any ideea why this happens?
https://prnt.sc/imaRTH3QLi2I
(( %bungee_tycoon2% parses 0 players online, but in reality and in /glist it has 40 players ))
same thing for %bungee_total%, only shows 168, when in reality is 240 (https://prnt.sc/8ny0mmhM-tDg)
Weird question but does anyone know of a placeholder that can pull a string out of another placeholder? For example if a placeholder gives a list <name>, <name>, <name> is there a placeholder that can sorta and pull each one of those out? So: %placeholder_<first name>%, etc, etc
I'm having an issue with PAPI. It says my expansion is registered yet none of the placeholders are working. I've double checked everything is spelt correctly yet still nothing. My expansion shows in /papi info too so I am very confused
can you share your class and how you're testing the placeholder?
I would recommend using /papi parse me %identifier_placeholder% to test them
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
your identifier can not contain _
๐
i would always recommend /papi parse fyi, just to be 100%
ah ok
How can I get the material in my mainhand only if it's not named?
so checkitem getinfo mat combined with strict
tried /papi parse me %checkitem_getinfo:mainhand_strict,mat:%
but that returns mat:BEEF for some reason
and it still returns that if I rename the beef
you'd have to use changeoutput or something
%checkitem_getinfo:mainhand_mat:% will return the mat no matter what
Good afternoon, I need help with a problem, when I start the server it keeps loading, this is solved by deleting the expansions_name.jar, from what I could see in the console it keeps analyzing these files. I left it for a whole afternoon to verify that it was not some time
Server Magma 1.12.2
[18:50:18] [Server thread/INFO] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Placeholder expansion registration initializing...
no, was an example
I have 3 vault, player and server
And it gets stuck loading with those 3?
I don't know exactly, I tried deleting 1 by 1
English only please and thank you
sorry my bad xd
Does your server load with those 3 expansions?
it was out of habit
Or is it getting stuck with those 3?
When I start it and download the expansions it works fine, then when I want to reboot it doesn't load unless I remove all the expansions
there is no one in particular that causes it
Hmm, can you send a log and a dump?
PAPI Dump
To generate a PAPI dump, execute the command /papi dump. Then you can copy the link by clicking on it in chat and selecting the COPY LINK button.
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
Can you send a log where you /papi reload and shut down the server?
also, I found something odd in finaleconomy
the way it registers the expansion is... not quite right anymore
i wonder if deleting that would fix anything
even if you remove the Final economy plugin it doesn't change anything.
hmm
can you send this over?
can you delete the expansions, start the server, download them, reload, stop server, send log?
it is also possible using 2.11.2 fixes the issue
What happened to the Teams expansion? I can't install it anymore
[03:17:46 INFO]: Failed to find an expansion named: teams
skript expansion is also gone
is there a reason?
does papi support 1.20.1?
or is there a dev build or like what version of papi support 1.20.1
Update your expansions, the plugin works fine.
Hey I'm trying to register my expansion for my plugin but I can't get it working, I followed all the steps on the wiki but I'm still just getting "0 placeholder hook(s) registered!"
@lone ferry they both have to be downloaded manually
I might not be able to help much atm, but can you send your class file over?
?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
(Expansion Class)[https://paste.helpch.at/igajetizun.kotlin]
(Main Class)[https://paste.helpch.at/yulobitena.java]
aw man discord didnt do funny mardown things
If you need an online player I would use onPlaceholderRequest FYI
onPlaceholderRequest**
mkay
You never check if the player is valid or not, just a tip
Your version returns โvoidlevelingโ?
Donโt think itโs an issue, but not accurate
oh right i just copy pasted the other one lol
Hmm, do you have placeholderapi as a soft depend?
yep
well PlayerStats and PlayerLevel return 0 if the player is null
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.
sure
Ah ok, but all placeholders would be null for offlineplayer right?
maybe, im not really sure lol
If you use onPlaceholderRequest, the default onRequest method will only pass online players through
Cut it off early
I gotta hop in the shower might be able to take a look at the log and stuff before work, but no guarantee
alright ๐
Although having the info here will be helpful for others too
https://paste.helpch.at/dasexesago.makefile - Startup log
doesn't seem like theres anything too interesting in there tbh
Please respect the rules, be patient and don't ping staff members!
can you add a debug line to your if statement to check if papi is null
if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
// <-------
new PlaceholderHook(this).register();
}
sure
[15:35:36 INFO]: VoidLeveling has been enabled!
[15:35:36 INFO]: PlaceholderAPI found!
/papi dump
/papi parse me %void_level%
o
without me doing anything
same papi version and all?
yeah
i would send a screenshot but i cant embed lol
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
did you change the version by chance?
i dont think so
hmm
hmm, interesting to see if that's the case
because versions could also be like 1.5b-273dc
๐คทโโ๏ธ
if it continues to work, then great ๐
right
@lone ferry try papi 2.11.2 I think that's what i've seen others say when this bug is encountered
@austere hawk Same goes for you I would suggest.
If you can/want: send a startuplog where you have the expansions already in the directory, turn on the debug: true in the papi config, start server then stop it(might not be able to since it gets stuck), send log
and how do i do that?
Please respect the rules, be patient and don't ping staff members!
opes sorry
I might be the only blind, but where is the rules channel or message? ๐
ok
Nevermind found it.
so any1 knows how do i update the expansions to papi?
Is there a way to get the name of an item, hex color and color codes and all
like it'd say &6Example
rather than color code it
Please respect the rules, be patient and don't ping staff members!
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
how do i use placeholders in decentholograms? it says only to use numerical and alphabetical characters
welp, that gave me nothing sadly. Does 2.11.2 work?
maybe your placeholder isn't working if that's the case?
what are you trying
nop
hmmm
%Level_bskyblock_top_value_#rank#%
usually identifiers are always lowercase
the identifier is level not bskyblock?
ah I see....
No idea, that's what it says on the placeholders api website thing
Yo, how would I get/view all the placeholders of a plugin? It's not listed on their overview page
I would at least like to be able to use the player extension
I'm trying to use placeholders with deluxeholograms to show top islands for skyblock however none of them work and just return the placeholder in the %'s
I'm trying to use these placeholders:
%Level_bskyblock_topvalue#rank#% Island level of the #rank#-th island in the Top 10 1.9.0
%Level_bskyblock_topname#rank#% Island owner's name of the #rank#-th island in the Top 10
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
also show the output in chat of /papi parse me %placeholder%
Anyone think they could help me with ItemsAdder and adding Placeholders to the items from it?
ask ItemsAdder to add PAPI support
idk, you said you needed it so I assumed it doesn't work
Why cant i send pictures bruh
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.
idk either, I've never used any of them
that just returns %placeholder%
you were supposed to replace it with the actual placeholder
and you're supposed to replace the # with a number
to get the value of the player at # position
as you can see in the image i did
also i did '/papi parse me %Level_bskyblock_topvalue1%'
and it still just returned %Level_bskyblock_topvalue1%
the placeholder is incorrect
%Level_bskyblock_top_value_#rank#% you're missing a _ between top and value, as well as between value and 1, and you kept the # in the other placeholders in your screenshot
%Level_bskyblock_top_value_1%
Thank you โค๏ธ
I have a question. Is it possible to create a custom placeholder with the help of PAPI (with the wiki). Can other plugins use this custom placeholder?
you can make your own placeholders with PAPI, and any plugin that supports PAPI will be able to use it
check the wiki to see how to create your own placeholders
Thank you โค๏ธ
For example I want to create specific ores mined placeholder. The data abt the ores where shall i store it? What would you recommend? ;d
maybe in a database or a yml file, idk, the latter one may not be very efficient with a lot of players
Aight thanks โค๏ธ
Hey so placeholders dont work, ex: beasttokens, none of beasttokens placeholders work and with other plugins too what can i do?
does it work with /papi parse me %beasttokens_tokens_formatted%
shows the placeholder
no numbers
/papi dump
?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.
sure
can you send that over? beasttokens expansion doesn't seem to be registering
yea
like playerkits?
or deluxemenus?
also, /papi list should be local expansions
/papi ecloud list shows ones on the ecloud
the ones that cant be downloaded with /papi ecloud download
?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
playerkits would work fine
same for deluxemenus
hdb
emf
they are all registering properly
There seems to be some invalid syntax in your config! You can paste it into https://yaml.helpch.at/ in order to find out where your issue is!
just checked and erankup yes
working?
erankup works
ok
but tokenmanager, beasttokens, jobs, etc nop
๐
I have a question, I can't find an expansion that works in game on Minecraft for a KDR stat, or a Killstreak Stat. Anyone know any expansions that work ingame for this?
Utils, Math, ChangeOutput and Statistic:
%utils_parse_math_{statistic_player_kills}/{changeoutput_equals_input:{statistic_deaths}_matcher:0_ifmatch:1_else:{statistic_deaths}}%
for deluxemenus update_interval: 1 which is the lowest u can have
No, I have custom plugin ):
how can i delete data from Statistic? I want to clear/delete the kills etc. deleting stats folder doesnt work i deleted the whole world folder it didnt work
javascript expansion, what was wrong ?
const main = [ {
prefix: "&cMainPrefix",
mItem: "something here...",
mMoney: "something here..."
} ];
function callValue(){
var value = args[0];
if (value == "prefix") return main.find().prefix;
if (value == "item") return main.find().mItem;
if (value == "money") return main.find().mItem;
}
callValue();
find() expects a condition
but given that it was a StackOverflow im guessing something like mItem contains a placeholder that is referencing your placeholder
i.e. it's recursive
What StackOverflow?
Yeah idk
hi i want all char replace to a space using formatter but dont know how to target all char
/papi parse me %formatter_text_replace_<target>_ _fnfa8234na%
I'm making [Staff Mode] Player appear above the nickname, but it doesn't work, so I have the variable is with TAB of NEZNAMY.
&4[Staff Mode] %staffplusplus_session_inStaffMode_@player=<playername>%
how can i delete data from Statistic? I want to clear/delete the kills etc. deleting stats folder doesnt work i deleted the whole world folder it didnt work
statistics are stored in the world data, your default world.
you have to do it while the server is turned off
yeah it was off
was it the world folder that is named in your server.properties next to level-name ?
changing level-name will work?
it will create a new default world
so wont use the data on old one
i already deleted it but maybe its parsing from somewhere else
uh, well if you deleted the old world it already should create a new one
idk
try it and see
though also try checking out other world folders
i did none has player stats
this didnt work either
it created new world folder named like world2 it doesnt have any data but it still doesnt work
I tried to login into my discord account and then I got the 2fa code I looked it in the app wrote it in and then it always says that the code is wrong but its right?
anyone help me please else I cannot login to my main account
what do I do now
if u linked ur phone number to ur acc before
just do
forgot my password
with ur phone number
if it doesnt work gg its gone
yea but I cant reset my pass cuz I need 2fa code
:///
if I click on the thing to reset my pass I can write my new pass in there and then it asks for the 2fa code
but how did someone hack into my acc if they also need 2fa
bruhhh
Im confused as fuck
Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.
why it return item_not_exist ? javascript expansion
// args[0] = "name"
// args[1] = "grass_block"
let item_not_exist = "empty";
const itemList = {
"grass_block": { name: "2 colors block", buy: 50, sell: 4.50 },
"shulker_shell": { name: "purple thing", buy: 5000000, sell: 0.1 },
};
function changeValue(args) {
let value = args[0];
let id = args[1];
if (value === "name") {
const item = itemDictionary[id];
return item ? item.name : item_not_exist;
}
}
Hello guys, i have encountered some weird bug with Deluxemenus: every time i try to refer to the player's name with a placeholder its shows "%player_name%" instead of the actual name of the player, i also tryed "%player%, {player},{player_name}". PlaceholderAPI 2.11.3 is installed. I tryed DM version 1.13.7(newest) and the 1.14.0 (DEV 164) also, but got the same results. My server runs 1.18.2 paper. Other placeholders just works fine. Any ideas?
did you download player expansion ?
U would save me a ctrl+c+v if u just started whit this in the general channel ๐
But thanks it worked.
@ocean beacon the object is named itemList and you use itemDictionary
i changed it
is it just me or is papi not working fully?
what's not working?
the placeholders
Also, you dont need to define args, they are defined by default, idk what happens if you do.
which ones?
all of them
give me an example
%luckperms_primary_group_name%
smh barry
does it work in /papi parse me <placeholder>?
i just gives me %luckperms_primary_group_name%
did you download the expansion from the ecloud?
yea
does LuckPerms show in /papi list?
Do a /papi reload
i cant reload
why?
/papi dump
did you get an error in console?
i think
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
[INFO] ArtiDoot issued server command: /papi reload
[PlaceholderAPI] Placeholder expansion registration initializing...
[PlaceholderAPI] Fetching available expansion information..
thats it
is there nothing else? o_O
in the console
bruh
A easy to use Paste site for Minecraft Server logs.
oh yea my server is running 1.20
can you send the link of /papi dump as Gaby asked earlier?
that does not work
were you on 1.19 or other version before?
o_O
That doesnt make any sense
xD
Restart the server and send the latest log
can you go to your PAPI folder and delete the expansions folder? and then /papi reload
or that
try as Gaby said
where can i send it
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
do /papi list and /papi reload work now?
now try to download the LuckPerms expansion and again and /papi reload
that worked
๐
my other server has the same problem
try to delete the expansions folder and restart there as well
i think its working
thanks!
nvm
im trying to download the player expantion and now i cant reload
any errors?
also, when you ran the download command, which version did it say it downloaded?
2.0.5
no
what's your server hosting?
pebblehost
yea
try to manually download the Player expansion from here https://api.extendedclip.com/expansions/player/ and replace the old expansion jar with this one
i think that worked
if (args[0] === "tien-ban-thanh-cong" && (args[1] === "c" || args[1] === "confirm")) {
let tienBan = ((itemList.find((element) => id === element.id).sell) * soLuong).toFixed(3);
if (args[2] === "f") tienBan = tienBan.replace(/\B(?=(\d{3})+(?!\d))/g, ","); // why i cant use this ?
return input.replace("%vat-pham%", vatPham).replace("%so-luong%", soLuong).replace("%tien-ban%", tienBan);
}
// currunt
if (args[0] === "tien-ban-thanh-cong" && (args[1] === "c" || args[1] === "confirm")) {
let tienBan = ((itemList.find((element) => id === element.id).sell) * soLuong).toFixed(3).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
return input.replace("%vat-pham%", vatPham).replace("%so-luong%", soLuong).replace("%tien-ban%", tienBan);
}
java.util.concurrent.CompletionException: zip file closed (expansion file: /home/container/plugins/PlaceholderAPI/expansions/Expansion-checkitem.jar)
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:433) ~[PlaceholderAPI-2.11.3.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.lang.Thread.run(Thread.java:1589) ~[?:?]
Caused by: java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:832) ~[?:?]
at java.util.zip.ZipFile.getEntry(ZipFile.java:330) ~[?:?]
at java.util.jar.JarFile.getEntry(JarFile.java:516) ~[?:?]
at java.util.jar.JarFile.getJarEntry(JarFile.java:471) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:195) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:588) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:155) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:130) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.entrypoint.classloader.group.SpigotPluginClassLoaderGroup.lookupClass(SpigotPluginClassLoaderGroup.java:43) ~[paper-1.20.1.jar:git-Paper-71]
at io.papermc.paper.plugin.entrypoint.classloader.group.SimpleListPluginClassLoaderGroup.getClassByName(SimpleListPluginClassLoaderGroup.java:37) ~[paper-1.20.1.jar:git-Paper-71]
at io.papermc.paper.plugin.entrypoint.classloader.group.LockingClassLoaderGroup.getClassByName(LockingClassLoaderGroup.java:34) ~[paper-1.20.1.jar:git-Paper-71]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:173) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:150) ~[paper-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:575) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.3.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:411) ~[PlaceholderAPI-2.11.3.jar:?]
... 2 more```
what is issue?
it causes when i installed DiscordSRV
24.07 05:50:18 [Server] [WARN] [PlaceholderAPI] [math] Placeholder: %math_{ultraprison_fortune_level_raw}+50[precision:0]%
24.07 05:50:18 [Server] [WARN] [PlaceholderAPI] [math] Cause: '150+50[precision:0]' is not a valid Math expression.```
Anyone know how to fix this
The format has changed
https://helpch.at/papi#math
what file do i go into to change the format tho
sorru i didnt add the math stuff my dev did
Go where you use that placeholder, on newer version it is no longer [precision:#], I think it is smth like %math_(precision):(rounding)_math equation here%
so in the placeholder api plugin, under expansions?
So it should be %math_0:_{ultraprison_fortune_level_raw}*50%
No, ask the dev where they used the placeholder
The placeholder comes from a papi expansion, but the error doesnt tell where it is used.
See if your FTP client allows you to do some global search
Actually, it doesn't seem to have an option to search the content, but only by file name.
yeah
You can download the server locally (if you exclude the jars and data files, it should be quick)
And most text editors (e.g. VSC) have global search
And you are looking for this math placeholder
might be a skript
duno how to do that xD
but i already have the whole thing downloaded
Open the plugins folder in VSC and press ctrl + shift + f
And it should open a dialog in the left side where you put the text you want to find
Ah found it!
๐คฆโโ๏ธ
Nice
so i change %math_{ultraprison_fortune_level_raw}+50[precision:0]%
to
%math_0:_{ultraprison_fortune_level_raw}*50%
Try first in chat with /papi parse me, I hope I got it right xD
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.
What placeholder did you use?
im dumb
i was testing on the wrong enchant
it works
im sorry
%math_{ultraprison_fortune_level_raw}+25[precision:0]%
so this would change to
%math0:{ultraprison_fortune_level_raw}*25%
and so on right?
No, you need a _ after math and one after the colon
See this
Exist any form to do anything like this?:
%Advancements_playerCompletedAmount_<essentials_baltop_player_1>%
well hello I have a little problem with the rankup plugin I would like to put a progress bar but it does not work with the diamond can you help me
&eObjet DIAMOND : 5 %progressbar{rankup_requirement_item_DIAMOND_5_percent_done}_c:&d|_p:&d|_r:&3|_l:20_m:100_fullbar:&a&lTerminรฉ !%\n
or if you find something else like for example a percentage progression like you have completed the mission to have 5 diamonds at 80% for example you see?
to answer me come in mp or ping me
pls help
Hey there, how can I make a JavaScript placeholder to replace all , in a placeholder result with nothing
old version of what?
Java/MC
so?
Formatter doesn't work on the version of Java the servers uses
what are your mc and java version?
I could see if the owner would want to update but it's not mine haha
1.12.2 and Java 11
could update to java 17, but alr
if you can't and want to use JS, then do placeholder.replace(",","")
I'll see if they can use 17 first then if not go with JS lol
Alrighty yeah, java 17 doesn't work sadly
I'm trying to use this but it's giving me an error when parsed
function prestigeraw(){
return placeholder.replace(/ /g, ",");
}
prestigeraw();```
Not sure if this is correct, not great with JS lol
just do replace(" ", ",")
although, hmm, that error might no have anything to do with your code
darn..
https://pastebin.com/nx8MqsDp idk if this is a placeholder issue or not
it not display as i want :/
javascript expansion:
https://prnt.sc/2lL5M92NGP1P this is output
https://prnt.sc/zgdQIq5UC-hJ this is code
ฤฑ need help : https://paste.helpch.at/werowivura.md what is the reason for the warnings?
so im having a situation where i
/papi ecloud download math
/papi reload
/papi list -> does not show math
and parsing something like %math_5+3% doesnt parse
nvm i forgot to check console
[02:13:21 ERROR]: [PlaceholderAPI] com/ezylang/evalex/EvaluationException``` it just does that lol
?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.
can you send that over
do you need anything from it besides papi-related logs?
this same msg shows in startup from papi
better to send the whole log
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
I would try updating placeholderapi first
Is it possible for the math placeholder to return 10,000 instead of 10000?
no
any help ?
javascript can
formatter should be able to as well
Does anyone know what's wrong with my code here
function checkAndPrintPlaceholders() {
const placeholders = [];
for (let i = 1; i <= 10; i++) {
const placeholderName = `%Level_aoneblock_top_name_${i}%`;
const value = getPlaceholderValue(placeholderName);
if (value === "") {
placeholders.push("Empty spot");
} else {
placeholders.push(value);
}
}
// Print the placeholders
console.log(placeholders.join(', '));
}
checkAndPrintPlaceholders();
Trying to have it go over all %Level_a_oneblock_top_name_1 to 10% baiscally to then check if its empty or not.
Caused by: java.lang.IllegalArgumentException: No group with name {i}
Hello ! i have an issue, player without perm see this :
%palce_holder%
instead of the placeholder ^^ (i'm OP on the serv and i see the placeholder correctly)
Hey there guys
you surrounded the placeholder with `` instead of ""
oh nvm my bad
try this though, shouldn't need regex
for (let i = 1; i <= 10; i++) {
const placeholderName = "Level_aoneblock_top_name_"+i;
const value = getPlaceholderValue("%"+placeholderName+"%");
Hey, I'm unsure if this is where I would ask this question, however I have 2 questions. If this is not the right place just let me know
you can use the formatter expansion for both things
if you click download it will bring you to the ecloud, which links to the source, which links to the wiki
probably easier to click it myself
%formatter_number_format_%player_total_exp%% Would I have done this wrong? It does not show a number
Ahh, so is there no way to add a placeholder into the placeholder?
Huh?
The expansion allows you to use placeholders from other expansions such as the Player expansion.
To use a placeholder, make sure to use the bracket-format instead of the percent one (i.e.{player_name}instead of%player_name%).
it says it right there
Fixed! THank you
hi can i put a placeholderapi in the model_data in a deluxemenu?
if you can't in the latest release, try the dev build
You can find the latest DeluxeMenus dev builds here: https://ci.extendedclip.com/job/DeluxeMenus/
[03:36:37 INFO]: Kurichibo issued server command: /papi parse me %javascript_islandtop%
[03:36:37 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'islandtop
javax.script.ScriptException: <eval>:2:2 Expected an operand but found const
const placeholders = [];
^ in <eval> at line number 2 at column number 2
function checkAndPrintPlaceholders() {
const placeholders = [];
for (let i = 1; i <= 10; i++) {
const placeholderName = "Level_aoneblock_top_name_"+i;
const value = getPlaceholderValue("%"+placeholderName+"%");
if (value === "") {
placeholders.push("Empty spot");
} else {
placeholders.push(value);
}
}
// Print the placeholders
return (placeholders.join(', '));
}
checkAndPrintPlaceholders();
mmmmm
very confused
what about
function checkAndPrintPlaceholders() {
var placeholders = [];
for (let i = 1; i <= 10; i++) {
var placeholderName = "Level_aoneblock_top_name_"+i;
var value = getPlaceholderValue("%"+placeholderName+"%");
if (value === "") {
return "Empty Spot, "+i;
}
}
return "No Empty Spot";
}
checkAndPrintPlaceholders();
[04:36:15 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'islandtop
javax.script.ScriptException: <eval>:4:11 Expected ; but found i
for (let i = 1; i <= 10; i++) {
^ in <eval> at line number 4 at column number 11
function checkAndPrintPlaceholders() {
var placeholders = [];
for (var i = 1; i <= 10; i++) {
var placeholderName = "Level_aoneblock_top_name_"+i;
var value = getPlaceholderValue("%"+placeholderName+"%");
if (value === "") {
return "Empty Spot, "+i;
}
}
return "No Empty Spot";
}
checkAndPrintPlaceholders();
@dense trail
Please respect the rules, be patient and don't ping staff members!
Okay I didnโt think getPlaceholderValue existed
I was confused when I saw it in your script
PlaceholderAPI.setPlaceholders(BukkitPlayer, <insert the string here>)
@dense trail
Sorry for formatting, on mobile
%utils_parse_changeoutput_equals_input:{pixelmon_party_slot_1_form}_matcher:None_ifmatch:_else:{pixelmon_party_slot_1_form}%
anyone wanna take a stab at fixing that?
idk if I am allowed to ping the utils guy but
Doesnโt look like utils is needed for this @warm sequoia
๐ฎ
ok let me test w/o
Even with the utils
yeah