#placeholder-api
1 messages Β· Page 177 of 1
this is such a waste of time
okay so i've followed the steps from https://forums.skunity.com/resources/papi-skript-expansion.250/ which includes downloading the thing and restarting my server
i've parsed the variable using /papi parse %skript_variable::{uuid}%
and it still doesn't show in tab
have you tested the placeholder using /papi parse?
@turbid tide
ugh. you need to parse it for someone
do /papi dump and send the generated link over please
ok. seems like the skript expansion isn't registered at all. can you please restart your server and send the startup log over?
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.
[19:45:47 INFO]: [Skript] Loaded 7 scripts with a total of 11 triggers and 7 commands in 16.86 seconds
[19:45:47 INFO]: [Skript] Finished loading.
[19:45:47 WARN]: [PlaceholderAPI] Loaded class ch.njol.skript.Skript from Skript v2.6 which is not a depend, softdepend or loadbefore of this plugin.
[19:45:47 WARN]: [PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
[19:45:47 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[19:45:47 INFO]: 1 placeholder hooks successfully registered!
ill upload the whole log in a sec
nah this is enough
so you got an outdated expansion. what you need to do is go to plugins/PlaceholderAPI/expansion and delete the skript expansion you got rn. then you need to go here https://github.com/Altruiis/skript-expansion/releases/ and download the expansion from there. after that put what you just downloaded in the expansions folder and then do a /papi reload
π
https://gyazo.com/da9ae51bc33b76ff963e0eaaee966cab does anyone know why in 1.17 placeholder after reloading unregister itself?
Could anyone help me, ive been trying to update a few plugins on the server and been staring at the error log for too long and im spacing out. It seems like discordSRV is causing an issue when i try to do my papi reload command, I cant seem to find the error spot though
Hello, I'm looking for help with the MATERIAL NAMES of potions. I can't put them in the following placeholder:% statistic_craft_item: <Item Material>%
have you tried checking the logs? maybe an expansion breaks and takes down the entire registration with it
I mean can you share the errors?
I don't know if that's possible with spigot. since there is just one general name for all potions.
idk if minecraft even keeps track of different potions at all
Yeah that what was causing it and I resolved the issue. Cheers for the info tho.
Hm thankβs
hey, i'm having a problem creating a baltop hologram.
the placeholder will count only online players
%vault_eco_top_player_1% i'm using this placeholder.
tried to parse it and it count only online players
[07:53:20 ERROR]: [PlaceholderAPI]
java.lang.NullPointerException: The expansion version is null!
at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:166) ~[PlaceholderAPI-2.10.10.jar:?]```
is this normal?
Is there a way that when I click on an item it sends commands with the name of a player that I post in the chat?
(deluxe menu)
yes. you have to use the plugin called CommandPrompter tho.
use the expansion that is pinned in this channel
/papi parse DonKolia% world_nearbyEntities_200%
it does not work
%world_nearbyEntities_<radius>%
where?
Please respect the rules, be patient and don't ping staff members!
what does it return?
empty
I need to create a Math but everything i do fails it's placeholders from statistics...
%math_22[prc]{server_online}% This works
%math_22[prc]%statistic_pig_one_cm%/100)% - This doesn't work
you forgot to replace the inner %% by {}
./papi parse me %math_22[prc]{statistic_pig_one_cm}/100)%
Fails
fails in what way?
Well there is just a thing that i can't use, but now it works
[20:19:09 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[20:19:09 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_(precision:0/60)%
[20:19:09 WARN]: [PlaceholderAPI] [Math] '(precision:0/60)' is not a valid Math Expression.
precision was changed
I know
How can i Round this number? - %math_({quests_category:killinghostile_completed}/9*100)%
Thank you π
@turbid tide wasn't it :0_?
It was π
Yeah. My bad
how do you get the expansion for factions mcore now?
it doesn't find factions as an expansion even though it was one before
For some reason in deluxmenus, the placeholder for player (%player%) is not working
@thick kindle Think it was built into the plugin or discontinued
well I found it on the website but for some reason it doesn't come up with the command
and no it is not built into factions mcore
but I got it solved anyways by just manually downloading it
Kk
how to create ecloud account? the registration is lock
Send @tender vapor a private message and one of the admins will help.
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
@austere hawk read this ^
hi there, im trying to use this placeholder provided by the plugin playerkits but its no working, it said that it works through papi, so im here to ask if someone know why ( im not able to post pics here)
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
sorry, i just saw the error, forget about all and sorry for the troubles, it was a capital letter in the middle of the kits name xd
jsexp works
Papi giving lots of warns when start server (too long message) i have two images but i cant send those
send the errors in paste bins please https://paste.helpch.at
update your server expansion
hi, can i make a JS placeholder that doesnt depend on a player
i guess not because of this
which is a pain
ugh that's offline player
it works for offline players
but discordsrv doesn't pass a player at all ;-;
ah Ic
cringe plugin
I mean you could update the js expansion to work without a player. its not that much work
just an extra check in evaluate when adding the offline player bindings
and removing the null checks
but yeah the other papi placeholders that you parse in javascript will not be parsed unless they support null
π
I'll make an issue anyways. just in case I have nothing to do for the next hacktober fest. lmao
good idea
man I love my job. just giving myself a pat on the back
Wanting to use null are we? π
Anyway, good point. You can probably temporarily use a OfflinePlayer with an impossible name
Assuming there are characters in the username that mojang doesnt allow
god no
absolutely not
i fixed it now anyway
with a plugin
Is it possible to get papi expansions removed from ecloud?
We regularly have users who installed an unofficial expansion for our plugin called IridiumExpansion which wasn't updated for about 9 months and completely breaks when being installed. It's just annoying because apparently, many people believe that it's an official expansion and complain in our support about it. I believe that the expansion in its current, outdated state is absolutely useless.
@wary epoch whats the name of the expansion?
nvm
@wary epoch Do you have one to replace it with?
getting this error when trying to get Javascript expansion to work https://paste.helpch.at/fozerowida.sql
PlaceholderAPI-2.10.10-DEV-132 running on Magma/Paper 1.12.2
the expansion I'm using is Expansion-Javascript-QJS
I figured out this error, but still can't get the JavaScript placeholders to work, only change now running PlaceholderAPI-2.10.10-DEV-133 now
which helped me figure out the error better
[22:14:38] [Server thread/ERROR] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!
There is no time to wait! Ask your question @calm fiber!
does your plugin stp us from placing armour stands
@vivid sparrow please tell im in a bit of hurry
Please respect the rules, be patient and don't ping staff members!
what
cuz i cant place armour stands in my server
"your plugin" this is a server where people ask for help with many plugins, be more precise
none of clip's plugins does that
does your plugin placeholder-api stop us from placing armour stands
Why would it do that? No
ok thanks
lol
Oh, did I delete that part of my message? We hardcoded the placeholders, no extension is required. A lot of people apparently don't know that that's possible
Please respect the rules, be patient and don't ping staff members!
removed it
I don't know what "ping if you're not actively involved in a conversation" is supposed to mean, sorry if it was bad
Thank you
What do you mean with that? :D
I know that it states that it's an unofficial expansion, but as I mentioned, many people just don't read that text, they probably just search "iridium" and install the first expansion. The issue is that IridiumSkyblock 2.6.7 was published on January 7 2021 and is completely incompatible with IridiumSkyblock 3.0.0 - 3.1.6 (every version after 2.6.7). The functionality is integrated in the plugin now.
@wary epoch as an admin set it it will be stayed that way but pretty much it was set as unverified @balmy marten (does this mean the command will not work?)
As this isn't a verified expansion you can only install this expansion manually.
@wary epoch ^
via the ecloud website
Oh, I see, that helps a lot
Ye
the vault and JavaScript expansion throw null errors
show the errors please. in paste bins
https://paste.helpch.at/fozerowida.sql here is one I posted last night
I've seen this quite a lot lately, from what I've understood the problem could come from plugins that mess with the class loader. Such a plugin is ChatControl. Not sure which others can do this.
I don;t use chatcontrol, I use dchat
yeah but there might be other plugins
and if I don't run the latest papi dchat will not work
that mess with the class loader
doesn't need to be a chat plugin
what I can recommend is remove your plugins 50/50 until it stops to figure out which one it is.
ok, all plugins on this server run on another server with no issues, difference is bukkit and paper
vault worked on PlaceholderAPI-2.10.10-DEV-132, I get null error on PlaceholderAPI-2.10.10-DEV-133
@carmine veldt any comment on this? they get the null version error on PAPI 2.10.10-133 (so latest) but not on build 132.
javascripts gets null on both
oh...
can you send the javascript jar
which one stops on 132 then?
pls send your javascript expansion jar
what server ver?
these expansions https://paste.helpch.at/asigopobog.css run fine on Spigot 1.12.2 with PlaceholderAPI-2.10.10-DEV-111, I have tried this same combo on Magma/Paper 1.12.2 and no combo seems to work
vault might of been me delete vault from plugins by mistake reboot server now to test
can u send ur vault jar & vault expansion
I'm not running normal paper, it's magma/paper
can you link that or send me the jar for it please
https://magmafoundation.org/, I wouldn't run paper, but this is how I can tie in all my servers chat
magma allows me to run forge mods
I can make a temp server and pull one mob out at a time to see one of those are my problem, mods can't be removed as easy as plugins without causing issues to the map since they add new blocks
you had no mods
yeah no mods
just papi plugin and javascript expansion
and I got the same null error
issue is magma
I know when I reboot server with someone still connected it may not start back up
guess I will have to not use JavaScript placeholders and vault, I can see is ess works
javascript just allowed chat colors I'm sure I can figure out another way
essentails expansion will not load either, guess I will remove balance from dchat
a lot of the expansions handled by helpchat will break if thats the case. so youll probably have to give up a lot of expansions
I know, I have 4 working and no need to add more yet
I see it as use dchat on all servers is more important then a few placeholders
server version?
1.8.8
welp. deluxemenus doesnt support that anymore
1.8.8
1.12.2
1.16.5
1.17.1
v1.10.5
v1.13.3 - Latest
v1.13.3 - Latest
v1.13.4 - Dev Builds
I have to use version 1.10.5 ?
What was the error if not?
yes you have to use version 1.10.5
material: INK_SACK
data: 10
slot: 11
display_name: '%javascript_rankColor_getStatus,10%Gold Rank Color'
lore:
- '&7Changes the color of the plus in %javascript_rankColor_getRank%'
- '&7to gold, turning it into %javascript_rankColor_getRankPreview,&6%&7.'
- '&7'
- '&7Shown in tablist and also when chatting.'
- '&7'
- '&e%javascript_rankColor_getMessage,10%'
hide_attributes: true
hide_enchantments: true
hide_effects: true
hide_unbreakable: true
priority: 1
view_requirement:
requirements:
permission:
type: string equals ignorecase
input: "%luckperms_inherits_group_mvp+%"
output: "yes"
left_click_requirement:
requirements:
hours:
type: '>='
input: '%statistic_hours_played%'
output: '10'
deny_commands:
- '[sound] ITEM_CHORUS_FRUIT_TELEPORT 1 0.1'
right_click_requirement:
requirements:
hours:
type: '>='
input: '%statistic_hours_played%'
output: '10'
deny_commands:
- '[sound] ITEM_CHORUS_FRUIT_TELEPORT 1 0.1'
left_click_commands:
- '[console] lp user %player_name% meta setprefix %javascript_rankColor_getMeta,&6%'
- '[message] &a&lPREFIX &8Β» &7Changed your prefix to %javascript_rankColor_getRankPreview,&6%&7!'
- '[sound] BLOCK_NOTE_BLOCK_GUITAR'
- '[close]'
right_click_commands:
- '[console] lp user %player_name% meta setprefix %javascript_rankColor_getMeta,&6%'
- '[message] &a&lPREFIX &8Β» &7Changed your prefix to %javascript_rankColor_getRankPreview,&6%&7!'
- '[sound] BLOCK_NOTE_BLOCK_GUITAR'
- '[close]'```
The menu does not want to open and that puts errors in the console! Do you think it must come from the JavaScript expansion?
what error does it put?
oh yes @austere hawk the error can show up from the javascript expansion as well. if your server is 1.8 then your java version must be 8 right? you'll probably have to downgrade the javascript expansion as well
ok pinger expansion has no errors when I parse this it says offline when it is online %pinger_online_127.0.0.1:25450%
should I try and downgrade pinger on 1.12.2
Can I have javascript for version 1.8.8 please
Please respect the rules, be patient and don't ping staff members!
I believe version 1.6.0 should work.
How did they find version 1.6.0?
On the web site there are no javascript versions
/papi ecloud download javascript 1.6.0 then /papi reload
wtf
yes?
after papi reload
everything broke
π
even restart server
some of the placeholders are working
but those are not
wtf
@simple nova do /papi dump and send over the generated link please. also a very useful thing could be your full startup log
this might help
ok
it was /papi ecload download quest
now i deleted expansion
everything is fixed
weird
yeah. you had the quest expansion but not the quest plugin
%statistic_player_kills% is that wrong?
bc i getting this error:
Unknown statistic 'player_kills', check https://helpch.at/docs/1.17.1/org/bukkit/Statistic.html
its %statistic_kills%
I believe
wait let me double check
oh nvm. it should be %statistic_player_kills%
bc i getting this error:
Unknown statistic 'kills', check https://helpch.at/docs/1.17.1/org/bukkit/Statistic.html
hmm. that's strange
yea.. same
This server is running Tuinity version git-Tuinity-"4c31ea1" (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 4c31ea1 on HEAD)
You are running the latest version
btw. just so you know. tuinity now comes inside paper. so maybe try latest paper build
I thought it hadn't passed yet? Are they integrated?
ow, thanks for information. Whatever how about player_kills xd
well I'm saying try paper just in case
something is messed up with the server jar
tho I doubt it
le me sec
if it still doesn't work for some reason, test %statistic_PLAYER_KILLS% maybe it doesnt like the lowercase
and make sure you have the latest version of the statistic expansion
i have just installed the expension
now, im waiting the server
okey
This server is running Paper version git-Paper-378 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: cc2ecbc)
You are running the latest version
Previous version: git-Tuinity-"4c31ea1" (MC: 1.17.1)
thats worked
thanks ^^, it must be cause of lowercase
yeah. strange tho. I'm 100% sure that it should make it uppercase
before trying to get the statistics from paper
yeah. the code is there
Hi I need help with placeholderAPI not noticing that the essentials Expansion is not downloaded. I am also using Magma 1.12.2 so idk if that has anything to do with it but i just would like to have my nicknames working in chat
if you read few messages above, you'll see that manga breaks loading for a lot of expansion and I'm afraid there is no fix on our end for that
oh okay. Is there another way around it for nicknames on essentials to work?
you can try the player expansion with the %player_displayname% placeholder
It still just shows percentplayer_displaynamepercent. Is there an expanison for it or no? if not nicknames aren't that big of a deal. π
yeah. /papi ecloud download player then /papi reload
does anyone know where i can download an older version of placeholderapi that supports 1.7?
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
Spigot page. There is a "version" or "version history" tab
Hi! And how to combine bold text with this placeholder %gradient_message_{#hex1}_{#hex2}_message with colors% or %gradient_percent_{#hex1}_{#hex2}_{percentage:0..100}%?
You cant
Maybe there is a similar placeholder that I do not know about?
havent seen any that supports bold its open src so you can always add it yourself
Okay, thanks
What's wrong with PlaceholderAPI.setPlaceholders (player, text); In text there are several placeholders in% ...%
But nothing happens. Only the placeholder% ...% is output
several placeholders? do you have an example of the text
not sure why this error happens during bootup of Spigot 1.17.1 https://paste.helpch.at/raqinusayu.sql
update the server expansion
thanks, I updated the rest of the expansions, a few show they need update but they are built into the plugin, how do I fix those?
how can i get stsats from offline players like with this for ex %statistic_mob_kills% how can i make that with offline players?
if %essentialsnick% not working what cause it
it worked tho but now it shows the placeholder not the name
Yes there are several in the text
Please respect the rules, be patient and don't ping staff members!
?
thats not a valid essentials placeholder. it should be `%essentials_nickname%
Do you have an example of the text? Or the exact text you're trying to use by chance?
"[%clan_tag%]"
do you have the clan expansion installed on your server?
also what plugin does this clan placeholder come from? can you link
?
This Plugin use PAPI
do /papi parse me %clan_name% while youre on the server and tell me what it says
Is there a placeholder for a player's name in all lowercase letters?
no. not that hard to make with javascript tho.
it should be just one line
BukkitPlayer.getName().toLowerCase();```
literally just this in a js placeholder
hmm don't really know too much about them but ty
An expansion that allows you to use javascript for processing
β’ Wiki
β’ Community Scripts
β’ GitHub
β’ eCloud
here's the wiki for it ^^
works! ty!
π
%clan_name%
yeah. that means that either that placeholder is not a PlaceholderAPI placeholder, or your expansion is missing or just broken.
you'll have to ask the developer of that plugin to see what's going on
wym
Are you installing through game/console or manually by putting .jar into folder?
hey.. so when i change the group/rank prefix to hex codes in luckperms it looks fine in tab (using bungeetabplus) but in chat it keeps the '&' for some reason, using deluxechat.. tried all different placeholders.. vault, luckperms etc.. all keep the '&'
any ideas? xd
In game
But i thinking i am using a old version of skript. Can that be the problem?
i tried
When you kill 1 person, it should write 1 kill, but it writes 20 kills, what is the reason? https://prnt.sc/1zkd76e I use "d%statistic_player_kills%"
I mean the expansion just gets the statisitics from spigot/minecraft. they're saved in world/stats/player-uuid.json. You probably have a plugin that messes with the statistics or something
and? u cheked the startup log for errors/warnings?
hey folks, im trying to get a command working in skript and its doing my head in. I had everything right up until the point where i realised that luckperms doesnt play nicely with skript. so ive setup placeholderapi and downloaded the luckperms and skript extensions and im still struggling.
can someone please have a quick look at this code and let me know what im doing wrong? Thanks so much
every 10 minutes:
loop all players:
if {play::%loop-player%::time} is greater than or equal to 10 minutes:
if loop-player %player_has_permission_<discord.nolink>% contains "yes":
send "You need to link your account" to loop-player
send "Go to blah blah" to loop-player
else:
stop
why skript π
lol i asked the guys over in the skript discord the same question and they said why luckperms and then pointed me to the placeholderapi link
skript aint good
what would you suggest instead that can achieve what im trying to do?
making an actual plugin
i wouldnt even know where to start
Hire a developer to make one for you then. #904591268515029032 #904591269005770762
[06:19:39 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
why does this happen on startup sometimes?
it fixes with a reboot but comes back randomly
remove the brackets between discord.nolink
tried that with no luck. i think its an issue with skript not reading %player_has_permission_discord.nolink%
i thought skquery allowed skript to use placeholderapi variables but i dont think thats the case
ah
Yeah. So Iβve just installed Ersatz which I think is going to solve the issue but Iβm giving up for the night. Thanks for the suggestion though
is that the entire error? nothing more?
Hey guys, i need someone to help me, i use %player_first_join_date% as first join date BUT some players even me have bug, where the first join date resets randomly. For me my first played was 9.3.2021 and now its 14.11.2021 - the exact time matches with time that was "disconnect by myself"
Need to mention i use ForceResourcepacks, if player declines it, it kicks them (dont know if it can be doing something with papi or not)
Is it possible that your uuid changed? Certain plugins mess with uuids, an improperly configured bungee network can cause this as well. That's the only possibility I see here. A new uuid would mean a new data entry - makes sense
well not sure this is fixable from PlaceholderAPI either way. The Player expansion just takes the time from spigot itself which takes it from the world/playerdata/<player-uuid>.json file.
as Zeromaniac said, either you have plugins messing with uuids, either you have plugins messing directly with the data file or your uuid changed
Who to find a scoreboard plugins that does not need PlaceHodlerAPI or if you can find version 1.7.10
Hello, it say failed to load class file expansion how do i fix this
send the full error in a paste bin please: https://paste.helpch.at
oh sorry, i already fix it, turn out there is one expansion that is not working(?)
https://pastebin.com/u2ieR1Lh
what's wrong with this?
what version of the math expansion do you have?
actually im just asking questions on behalf of another person
that person downloaded the math placeholder with the /papi ecloud download Math command
and that error appeared
thank you.
Math [1.3.0] sir
what server version and what java version are you using?
also is that the entire error?
Yes, it is.
1.12.2 with java 8
ah. that might explain it. the Math expansion will require java 11 to work properly
i see, so there is no way to fix it right?
you could possibly go down a few versions and use that. but it will be using a different format and could have some bugs
how can I use RelCon expansion? none of the placeholders work
can i have some help?
maybe? just tell us what the problem is. we can't guess
I got a new extended storage devise for my computer and I have set it up and it appears on my files and it works as I have tried installing a game on it but there is an application I'm trying to download on there but it download on my normal storage which is full and cant download it is there any way to make it to download it on the extended storage device?
Ugh. I'm not sure this has anything to do with PlaceholderAPI? This discord server is about minecraft and development. Not sure I can help with that. you can try in #dev-general tho but doubt a lot of people will be able to help
how can I use RelCon expansion? none of the placeholders work
Can someone help me? I'm having these errors when I try to display some information.
[23:54:54] [Craft Scheduler Thread - 43/WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[23:54:54] [Craft Scheduler Thread - 43/WARN]: [PlaceholderAPI] [Math] Placeholder: %math_([precision:0]{statistic_minecart_one_cm}/100)%
[23:54:54] [Craft Scheduler Thread - 43/WARN]: [PlaceholderAPI] [Math] '([precision:0]0/100)' is not a valid Math Expression.
Is there a way to learn a player's name from their UUID with a placeholder?
I dont think so. well its possible but there isn't a placeholder for that
if you know javascript you could use the javsacript expansion to make it
to make a placeholder that does that*
actually. not sure its possible with the js expansion
you might need a custom expansion for that
ok
should be possible, you can use BukkitServer.getPlayer(uuid),
well, that would only work with online player though
oh I see, and I guess there isn't a way to get an UUID from a string within JS ?
or at least, the Java UUID class
Yeah
oh damn. you're right
π
gaby any chance you know what it is for quick js? been looking around and I found something about JavaClass.forName but doesn't work. it doesnt exist basically
no clue
I've tried this placeholder: %rel_relcon_player_group.default_&a%%rel_relcon_viewer_group.default_&c%
and it gives red on both player and viewer
why?
I get package me.clip.placeholderapi does not exist when I try to compile my plugin, I'm just trying to hook into PlaceHolderAPI
I added this to my pom.xml
<repository>
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
and
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.0</version>
<scope>provied</scope>
</dependency>
When I import import me.clip.placeholderapi.PlaceholderAPI; it's blue (the normal color) and its not grayed out.
Don't exactly know how to fix this... pointers?
ty u xd and here %math_0:_{quests_category:mining_completed}/9*100)%%' u can help me plz xd
Please respect the rules, be patient and don't ping staff members!
anyone?
possibly because uve spelt provided wrong
also, did u mean 2.10.10 version? because 2.10.0 is like 2 years out of date
not too sure what to use then, the placeholder wiki said to use 2.10.0
Itβs blue though, and it i shift click it (my import) it opens the code in my libraries
that is what is weird, but my guess is that the IDE doesnt read the scope value, so it works, but when compiling it will error on mavens end (just a random guess)
could also be a cache issue thats causing the inconsistency between maven and IDE
also, what wiki are u looking at? because on github its fine, which is the latest wiki
used 2.10.10
I mistook the 'this example only works for 2.10.0 or higher!' for 2.10.0 to be the version I should use
thank you very much!
I've tried this placeholder: %rel_relcon_player_group.default_&a%%rel_relcon_viewer_group.default_&c%
and it gives red on both player and viewer
why?
I have a problem with the variable vault in papi
?help
Β» Give the helpers some details
Β» Ask suitable questions
Β» Be polite
Β» Wait
@elder flax what plugin
Hi, i'm having this problem when i use /papi ecloud download Vault, and then /papi reload. I'm using a magma server.
https://pastebin.com/FpRD6WyS
i think the issue here is magma
other people have reported this issue, all with magma
Thanks
Is it possible to run place holder API with mohist?
yeah but we've noticed a lot of expansions breaking on it
so you can run only a few expansions
It is RelCon expansion, not plugin
Please respect the rules, be patient and don't ping staff members!
I think he means in what plugin are you testing it?
because plugins need to specifically support relational placeholders otherwise they won't be parsed right
I used /papi parserel to test it, and I was using it on TAB
Also I think TAB supports it because owner told me to ask it there
ok. just to make sure. have you read the wiki for the relcon expansion to see how it works?
Yes.
There isnt any afaik
sad
We could add our own api if needed
If there any specific use-case where thats needed?
if you want. but I personally wouldn't use it anyways
ah, nvm then
the guy wanted to get a player's name from their uuid
and to do that I would've needed the UUID class
hmm
can you show me the exact command youve used to test?
I think its possible with some reflection
BukkitServer
provides Server, which has the getOfflinePlayer method
if you reflectively try to get the first argument, you should get the UUID class
/papi parserel PlayerOne PlayerTwo %rel_relcon_player_group.default_&a%%rel_relcon_viewer_group.default_&c%
const a = BukkitServer.getClass().getMethods()
var uuidClass
for (i : a) {
if (i.getName() != "getOfflinePlayer") continue;
uuidClass = i.getParameterTypes()[0]
}
alr
Well that will only return colors. have oyu tried placing text inbetween to see how it works? Also I can't seem to get my minecraft to launch so can't test it myself
/papi parserel PlayerOne PlayerTwo %rel_relcon_player_group.default_&aasdasd%%rel_relcon_viewer_group.default_&casdasd%
so finally got minecraft to run.
what this will do is check if PlayerOne has permission group.default and it will show &aasdasd if they do have it and then check if PlayerTwo has permission group.default and it will show &casdasd if they do have it
is that what youre trying to do?
Actually I just want every player to see their name green and red for others. I don't know why this thing require permission
So I entered a random permission which is everyone has
oh
I don't think you can use the relcon expansion for that
you might need a custom expansion for that as I don't think there is one that does what you need or can do what you need
π¦
yeah. the problem is that this expansion checks for permissions. not something else. if it would let to check for name for example, we could do that but it doesn't
okay
So it didn't let me use : but switched to of and it tells me that the value is not iterable
printing a I get [Ljava.lang.reflect.Method;@21e06d3a
its not an array
Heyo! Im trying to parse 2 placeholders into one, i only dont know how. I am trying to get the world time of the world that the player is in with %world_time24_<world>*, only the <world> differs between players and i dont know how i can make it take the %player_world% value
hello. you don't have to do that at all. the player expansion has world time already. %player_world_time_12% %player_world_time_24% and I'm pretty sure the world expansion just tells you to use these instead. it doesn't even work anymore.
that indeed works! i dont know why i didnt see them. Thanks!
I am just trying to run like 4 in total but one of them is not working at all on mohist
Its the core one too :(
btw. just so you know for the future, not all expansion support placeholders in placeholders. those that do are usually %placeholder_{in_placeholder}%
so basically { instead of % for the inner placeholders
yeah. am afraid there is no fix from our side. mohist messes with the class loaded
Alright I will go over there Thanks :)
Hey guys so im trying out PAPI for the first time and i've run into this issue i cant figure out how to solve
I have a scoreboard dummy objective called sidebarcountdown that holds a number
when i parse this for myself with sidebarcountdown = 120
%changeoutput_equals_{objective_score_sidebarcountdown}_-1_Waiting..._{formatter_number_time_{objective_score_sidebarcountdown}}%
It outputs {formatter
I expected it to output 2m
when i parse this for myself with sidebarcountdown = 120
%formatter_number_time_{objective_score_sidebarcountdown}%
Its outputs 2m as expected
and if i replace {objective_score_sidebarcountdown} in the main placeholder with 120 literally, it works just fine
Is there a limit on how much you can nest placeholders? How can i make this work?
unfortunately you can't parse nested placeholders within nested placeholders
so your method won't work
though you could use the JavaScript expansion to do that
/papi ecloud download Javascript
/papi reload
go in /plugins/PlaceholderAPI/ and open javascript_placeholders.yml, add
objective:
file: objective.js
in it
then go in /plugins/PlaceholderAPI/javascripts/ and create a file called objective.js
open that file and put this in it:
function objective() {
var obj = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%objective_score_sidebarcountdown%")
return obj == -1 ? "Waiting..." : PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%formatter_number_time_"+obj+"%")
}
objective()
/papi reload
and then you can use %javascript_objective%
@finite bluff
file called objective.js not tokens.js
π
oh wow you wrote it for me
Thank you so much :D
That is an array
Please respect the rules, be patient and don't ping staff members!
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
guys
how to unregister my expansion when plugin is disabled
i see no unregister method
(api)
or does it do it auto?
I mean your plugin should only be disabled when the server stops anyways. And yeah I believe it auto unregisters. there's no unregister method that's for sure
actually. there might be some but you're not meant to use it
yeye but in some cases it can disable randomly
(simply when using a plugin manager)
yeah. people should not use those.
you should not bother fixing your plugin for people that use those
Hello,
I get an error message with PAPI: https://pastebin.com/G84ke8Pm
I am in 1.12.2, I have the latest version of PAPI (I tried 2.10.9) & the latest version of SaberFaction.
Do you have an idea?
Hey, what does this mean? Running on 1.17.1
try to redownload the Player and Mvdw expansions
/papi ecloud download Server
/papi ecloud download Mvdw
/papi reload
if it keeps happening, check in your Expansions folder in your PlaceholderAPI folder if you don't have the expansion files 2 times
you said you're using SaverFactions right? well it seems like you've got the expansion for Factions by MassiveCraft, which doesn't work since the plugin isn't installed, try to go to your Expansions folder in your PlaceholderAPI folder and delete the factions expansion, and see if it happens again
Resolve ! Thanks π
Anyone know if it's possible to use the item_enchanted statistic but only for specific tools? Exactly like the block mined statistic with specific blocks
you don't need to download an expansion for saberfactions placeholders
you could use the CheckItem Expansion
not what they need @junior musk
oh
right I see
I guess it works require a plugin that counts that and which stores the amount in a file
https://img.olziedev.com/847NSG847xk847847VW.png for some reason it wont let me use variables in a placeholder, any ideas why?
it doesn't parse placeholders every time you declare a string
like the concatenated one
it wont be parsed
instead you have to use the PlaceholderAPI.setPlaceholders method
can you send the code in a paste bin or put it in code blocks please?
oh i see
sure
var player = "%player_name%";
var id = args[0];
function sponsor() {
var placeholder = "%pw_warp_sponsor_" + id + "_owner%";
console.log(placeholder);
console.log(player);
console.log(id);
var placeholder2 = "%pw_warp_sponsor_1_owner%";
console.log(placeholder2);
return placeholder2 == player;
}
sponsor();
okay i think i get it now, ty
PlaceholderAPI.static.setPlaceholders(BukkitPlayer, placeholder)
yeah. that
correct, (looking at the docs atm)
okay thank u
i thought it would of parsed it lmao
also
it should be like this
var placeholder = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "pw_warp_sponsor_" + id + "_owner%")```
bcz if you put it like "%pw_warp..." it will try to parse that first
the thing is it parses the string when its first declared and thats all
so in your case it was parsing the first string "%pw_warp_sponsor_" on its own
then the second one as well
ohhhh
Okay
https://haste.olziedev.com/vofanidaki.properties i'm now getting this error, i'm guessing the instance is null?
nice π
https://guilds-plugin.github.io/javadocs/me/glaremasters/guilds/placeholders/PlaceholderAPI.html#persist-- Just also found out /papi reload breaks my placeholder, forgot about this lmao
yeah. if its an internal expansion, it needs that
ye completely forgot abt it lmao
btw. u seen that gitbooks kinda fixed their shit? its way better now but still not as good as before xD
oh god haven't bothered because its so god damn fucking frustrating lmao
meh maybe when i actually have the motivation to document my shit on their service then i might found out for myself
lmao
Just currently hammering through commissions atm
Should it be there twice or not?
Okay Iβll try that
if there are 2 jars, remove them and redownload the expansion
Okay sure, thank you
is it possible to find out what plugins are calling placeholders?
https://ibb.co/dDRX5jW why does this work. But this doesn't https://ibb.co/R78YN1j (I have installed the Expansion "Luckperms" using the /papi ecloud download luckperms and then /papi reload)
what's the difference between player and luckperms. what is luckperms?
also is the palyer you parse for online? if they're not then there's your problem
the luckperms expansion only supports online players
it's for a scoreboard.
the Expansion that I just downloaded using /papi ecloud download luckperms
I meant in the code. you showed 2 lines of code. 1 parsing the string for a variable that's called player and one for a variable thats called luckperms
I was asking what is that variable
I'm not sure how to answer you
you're asking me what the luckperms variable is called. Or the "(player/luckperms, "%test%"));"?
expansion?
https://ibb.co/71Zjj7D the expansion has to be downloaded in order for the "player" to be recognized. Not the same for luckperms tho.
Hey, for some reason all my placeholders work when I use the /papi parse command but just arenβt working in chat or on scoreboards at all
This isnβt just for papi but on mvdw placeholders like featherboard also
u sure your scoreboard plugins support PAPI tho? also make sure they don't have options to enable/disable the PAPI hook
Yeah itβs featherboard
what version of featherboard tho?
Latest
only versions 5.0.0+ support PAPI
Iβm using 5.0.4
how are you using it? the placeholder
%placeholder% or {placeholderapi_placeholder}?
nvm I fixed it. I just had to relog lol
I just upgraded
From 1.12.2 to 1.17.1
Is there anything specific that I need to change?
yeah. so in 5.0.0+ you're supposed to use them as %placeholder%. featherboard switched to using directly PlaceholderAPI
Like I want to use the {prefixcolor} placeholder
Would %mvdw_prefixcolor% not work
Well it isnβt currently
Fixed it, great thanks
nice
PAPI is so easy as a dev to implement. thanks guys!
is it possible to find out what plugins are calling placeholders?
not afaik, how come?
anyone know why im getting this ??
getting a shed load of calls for getBalance, cant figure out what plugin is calling it
very tps intense as it use vauts getOfflinePlaywr
what expansion?
Vault
i think u might be able to track it with spark
i tried
aw no search feature βΉοΈ
yeah lemme get a spark for u
alr
and also how do u know that getBalance is being called a lot?
oh because of the shit ton of placeholderapi threads shown in flare
can you try temp disabling Slimefun? i think that might be part of the issue
and only the main thread affects TPS (unless the other threads are running enough stuff to slow down the entire cpu)
its ram that seems to be the issue atm
oh
we keep OOMβing
even though we have 12GB for this server with 4GB on top for docker
total used i think
iConomy is just like EssX economy its a manager
so it cant be i dont think?
unless idk
ye i dont think vault is the issue
no ik i think something is just getting players balances repeatedly and idk what
ill give it a shot
Anyone know which placeholderapi i need to install for this %bungee_online_<server name here>%
,/papi ecloud download Bungee
Yea i just got it thanks :D
Hey guys, did anyone know a placeholderapi for timer?
i need to find a timer for clearlag estimation time
@vast anchor
val players = BukkitPlayer.getWorld().getPlayers()
val p1 = players.get(0)
val p2 = players.get(1)
if (p1.getUniqueId().equals(BukkitPlayer.getUniqueId())) {
return ...
}
return ...```
To get their name for the parse other placeholders use pN.getName()
How can i replace multiple Placeholders in a message? this isn't workingjava PlaceholderAPI.setPlaceholders(p, "%player_name%" || Config.getPrefixNormal(), "%cs_cfg%")
huh?
you put an or statement in the middle of your string
very confused
to parse multiple placeholders, just put them all in a string
PlaceholderAPI.setPlaceholders(p, "%player_name%" + Config.getPrefixNormal() + "%cs_cfg%")```
not sure if you wanted all 3 of those, but that would be the way
maybe add some spaces
PlaceholderAPI.setPlaceholders(p, "%player_name%");
PlaceholderAPI.setPlaceholders(p, Config.getPrefixNormal());
PlaceholderAPI.setPlaceholders(p, "%cs_cfg%");
this?
shouldn't even need to separate it
obviously if he wants separate variables for each one
go ahead
ah
oh yeah thx
and thank you too
Does ListPlayers not work anymore?
yeah. ListPlayers was marked as non verified as its old and not updated anymore. instead playerlist gives way more options and is better
Okay thanks
Please respect the rules, be patient and don't ping staff members!
click_requirement:
requirements:
type: has permission
permission: 'test.vip'
so i want to make that when the player click on the item if he have permission the action works but if he don't it doesn't work but now i don't have the permission above and i can click on it and the action work
the problem is your spacing and youre missing a line.
click_requirement:
requirements:
requirement_name:
type: has permission
permission: 'test.vip'```
thanks
nope didn't work
can I see the entire menu in a paste bin? The problem might come from somewhere else
they are open but please put it in a paste bin
wait they might not be
I Might've closed them yesterday. 1 sec
OK. 1 thing I can't stress enough. never use /dm open those are meant to be admin commands
but thats unrelated
OHH
I See the confusion
@quiet bear so the thing is, click_requirements only work for click_commands
they don't transfer to left_click, right_click etc
I mean you can do that. just remove left_click_commands: - '[player] bw join solo2' right_click_commands: - '[player] bw join solo2'
and add
click_commands:
- '[player] bw join solo2'```
ok
in deluxemenus use [openguimenu] play-solo and when not in deluxemenus use the custom commands youve set.
hey
so i have a prison enchant menu made with deluxemenu, and it requires math to work, and i was told that the math is within the placeholderapi plugin
does anyone know how to make the math work?
hmmmmmmmm please help me ?
/papi ecloud download math then /papi reload
help with what exactly?
Why %vault_eco_top_player_#% and %vault_eco_top_rank% doesnt work? It creates a black square with no info. (others like %vault_eco_balance% works)
because the top placeholders are being removed from the vault expansion. This is because they have very bad performance. But they are being moved to the essentials expansion
you can get the dev build of that expansion from the pinned messages. you can also see there what changed
"At the moment, the baltop placeholders might not load when you start the server. You will probably have to run a command like /baltop to load them into cache and then they will work." So if my server restart everyday at 5am i need to type /baltop or is it just a one-off?
probably every day
And can You tell me why when i choose commas i get word nbsp in box instead of comma?
/papi parse me %math_0_[prc]bank_money[prc]%
[13:31:19 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[13:31:19 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_0_[prc]bank_money[prc]%
[13:31:19 WARN]: [PlaceholderAPI] [Math] '%bank_money%' is not a valid Math Expression.
@arctic loom can you please explain them how prc works? I have tried in #general-plugins but they don't understand. I'm also a bit busy to go over this again
@fluid flint the [prc] placeholder is used to use the % expression in math to get the remainder of values. For example would 21%4 return 1, because removing 4 as many times as possible leaves 1 remaining.
It is NOT used for PAPI placeholders. Use the bracket syntax ({bank_money}) instead.
@arctic loom I will try that, but anything i have tried it didn't display the value it needed to be
Do you have a something that can work
The plugin is Bank Lite
And the placeholder is %bank_money%
%math_{bank_money}*0.50%
and i need to withdraw 25% and 50% of the bank balance
Iirc is the right formula to get 25 percent of a number <value> / 100 * 25
So for you %math_{bank_money}/100*25%
I mean *0.25 should also work
Idk
how do I reset a placeholder
That's not up to placeohlderapi I'm afraid. PAPI is just a bridge. It can get data from other places and display it. thats all
is that an answer to my question?
Please respect the rules, be patient and don't ping staff members!
sort of
what placeholder are you trying to reset?
yes - PAPI itself doesn't store any placeholder data
np
also does anyone know how to use the skript placeholders addon?
20%4 is 0 btw xD
Wanted to write 21
i used /papi parse Killers0992 %player% and %player% placeholder is not working
i tried that because featherboard also have not working placeholders
well a lot of them are listed on our wiki: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders. Those that are not, you will have to look for on the wiki of the respective plugins or their spigot pages etc.
I have src of a plugin , it has a class called papihook , but now I aint able to figure out what are its placeholders...... can someone help me out ?
Can you give us the source?
Also it doesnβt necessarily need to have placeholders. Maybe it just supports placeholders
No itβs better if you send the GitHub repo here
its not a github repo , my firend sent me the src
so like I compiled it and tried
but I cant figure out its placeholders
anyone know a placeholder that returns current world time in ticks?
^^ nvm, %player_world_time%
Is there a placeholder that shows which player is on the score?
for example, for the welcome message
"Welcome UserName you are #0001 player on our server"
Where #0001 is placeholder #%placeholder% ...
Anyone know if the expansion pack "Server" is supported on 1.8.9/java 8? I'm having some issues getting it to download
you can try older versions https://api.extendedclip.com/expansions/server/versions/ /papi ecloud download server <version>
Thank u :)
is there a placeholder for how many player online?
can you give me?
can you give me?
Hi, is it possible to use Pinger on Pterodactyl? If so how? I tried to use the public IP, the 172... IP and localhost but neither of them worked
does the vault formatting go beyond quadrillions in papi config??
i don't know
Anyone with experience creating JavaScript placeholders mind helping me solve an issue? Iβm a bit confused by the wiki for it and not sure where to start if someone doesnβt mind guiding me through it a bit, I was trying to use a placeholder in a hologram but it has a nested placeholder so it makes the result return 0, it was suggested by the plugin dev using JS Placeholders might be what I need
Please respect the rules, be patient and don't ping staff members!
/papi ecloud download Quests
everything was working before i wrote this, as soon as i typed /papi reload papi got corrupted?
yes it fixed after deleting the quest extension. How could an extension break PAPI π€
hey folks, was wondering if theres any recommendations for how to combine two* block types in the statistics tree. what i mean by that, for example, if theres a methodology to track both deepslate_iron_ore and iron_ore in a single placeholder? im able to combine these two values with %math but it doesnt update on its own like %statistic_mine_block:XXXXXX% would. basically was hoping to be able to track both normal, and deepslate variants of blocks in a single placeholder that auto-updates
edit: nevermind it seems i messed up my command when adding it previously and appears to be working disregard π
Heya! We've been trying to get a javascript placeholder working, but can't seem to figure out what's wrong.
javascript_placeholders.yml > https://bin.bloom.host/ebekamihot.properties
the placeholder; https://bin.bloom.host/oxalurogux.php
It returns blank each time i try to parse it, and i can't figure out why.
what placeholder are you using? how are you calling it
%javascript_pwsponsor_1%
pwsponsor,1%
does it need to be a comma?
%player_colored_ping% isn't working for "Player" like it should, on 24ms it's red
or at least the default value. you can change it to something else in config.yml for PlaceholderAPI but no reason to
/papi parse me %javascript_pwsponsor,1% still returns blank
go to plugins/PlaceholderAPI/config.yml and look at the options yml player: ping_color: medium: '&e' high: '&c' low: '&a'. Make sre the colors are right there
this code https://bin.bloom.host/oxalurogux.php is in plugins/PlaceholderAPI/javascript/pwsponsor.js right?
yep!
thanks @turbid tide
no problem
can you show me your config.yml? for placeholderapi
Thanks! I'll get back to you :)
HI, a question can i use placeholderapi on bungeecoord?
Currently PAPI does not support Bungee. No
ah ok
Hello
for some reason API of the plugin can not recognize if Player expansion is installed
if I do PlaceholderAPI.containsPlaceholders(Text) and contains %player_name% it stills returning true when Player expansion is not installed
(I think) it only detects the format of placeholders, not if placeholders actually exist
not really, i tried with other words and returns false, looks like the problem is only for Player one
if you try %test_test% does it also detect it?
it returns false :p
weird
have you installed the javascript expansion and set up the lore placeholder?
how to set up it? i do only installed the expansion
follow this tutorial: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#lore-lines
perfect it works! Does this also work with armor? Need that also for the armorslots
this only works for the item in hand I believe
btw. you should note. in newer versions of deluxemenus you do not need all of this
you can literally just set the material to material: off_hand
and it will copy all the information
off_hand or main_hand
whichever you want
but this only works in the newer development builds
hello! having a bit of trouble here with the %statistic_player_kills% placeholder always showing 0 despite players actually getting kills.. any clue what might be wrong?
running spigot 1.15.2, latest version of papi
have you checked the statisitics in minecraft options? see if they're recorded there?
because the statisticc expansion just asks spigot for the data and displays it. nothing more. it doesn't record the statistics itself
oh, let me check
yeah, there's nothing there either.. it all shows 0
had no idea it's actually a spigot thing! I just found this in the spigot config
could that be the problem right there?
oh yeah 100% that. was my next debug step
stop the server, enable that and start the server
it should start recording statistics now
works like a charm! thanks :>
Please respect the rules, be patient and don't ping staff members!
use the latest dev build (119)
sry for ping
placeholders in nbt options were just added
Awsome! thanks, i will test it
π
making an expansion, wondering how to properly return true/false so it's translated into the values set in the config yml boolean: 'true': 'yes' 'false': 'no'
PlaceholderAPIPlugin#booleanTrue and PlaceholderAPIPlugin#booleanFalse
perfect, thank you
Someone an idea?
problem is that %armor_material_helmet% returns AIR. which is not supported in deluxemenus
what Id recommennd is you use the changeoutput expansion to check if its air and set it to barrier or something like that. or you can set view requirements. which would be even better since it would show as air if its air
But it does not work with the dev build. It worked before. :/
when yo uhad no armor it worked? it would just show air? because if it did then that was probably a bug or something.
and its not that hard to set up a view requirement
view requirement doesnt work. i get this error.
'1':
material: placeholder-%armor_material_helmet%
# nbt_int: 'CustomModelData:%javascript_helmet_data%'
slot: 1
priority: 2
hide_attributes: true
update: false
hide_enchantments: true
view_requirement:
requirements:
not_air:
type: "!string equals ignorecase"
input: "%armor_material_helmet%"
output: "AIR"```
like this ^
[12:32:19 WARN]: [DeluxeMenus] Plugin DeluxeMenus v1.13.4-DEV-119 generated an exception while executing task 351416 java.lang.NumberFormatException: For input string: "AIR" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?] at java.lang.Integer.parseInt(Integer.java:660) ~[?:?] at java.lang.Integer.parseInt(Integer.java:778) ~[?:?] at com.extendedclip.deluxemenus.menu.MenuItem.getItemStack(MenuItem.java:710) ~[DeluxeMenus-1.13.4-DEV-119.jar:?] at com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$5(Menu.java:386) ~[DeluxeMenus-1.13.4-DEV-119.jar:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Paper-384] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[patched_1.17.1.jar:git-Paper-384] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.17.1.jar:git-Paper-384] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?] at java.lang.Thread.run(Thread.java:831) ~[?:?]
no no.
what are you trying to do exactly
because rn you've put the view requirement on the wrong item
it should go on 1_1
and switch priorities arounnd
can you send the menu again inn a paste bin please?
did you remove item 1_2?
and you get the exact same error as here?
.
yes
Is there another possibility
Ok. so I'm looking at the error rn and the weird thing is this. java.lang.NumberFormatException: For input string: "AIR"
which means DeluxeMenus is trying to parse the placeholder as a number somewhere
but not sure where
since you didn't set it as a slot or anything else
wait. @tawdry pecan can you try restarting the server?
this is line 710 .setTag(itemStack, parts[0], Integer.parseInt(parts[1]));
which means, the nbt option is still registered
Yes, but was there a change in the plugin? Because as I said, it works with the release build without error. Then Stone is displayed to me.
somewhere
no. so the error shows up from one of the nbt_ints options
but in the menu you sent you commented it out
so either its still registered for some reason or something weird is going on
its basically trying to set a custom model data with the number "AIR"
which obviously is not a number
okey understand. I will test it with a server restart
This would be the new js, although it's still returning blank when parsed
using command; /papi parse me %javascript_pwsponsor_1%
I believe you still have to use comma after pwsponsor
yeah
ok. what engine are you using for javascript again? also what version of the javascript expansionm?
Expansion ver 1.6.0
And i don't have an engine specified
So i think it's the default then?
I was trying to get it to work; and the developer i was talking with was using 1.6.0 at some point
what is your server version and java version?
1.17.1, Java 16
ok. you will need to update to latest version of the javascript expansion
which is like 2.1.0 I think
done so, although i can't reload papi due to some expansions breaking with it
again, i'll get back to you once it's applied!
thanks for the help
Oh shit. I still had a variable with the modeldata for the helmet open and not set with a "#". Now everything works... π
nice
You should contact the devs of those expansions, theyβre just outdated
embarrassing π¬
Discontinued, sadly..
there is an updated one
Really?
it should. yeah
Itβs probably just missing the persists method
does it use the same placeholders?
yeah. it should. I'm pretty sure I Just fixed it breaking. thats all
btw @final swan. After you've made sure you're running the latest version of the expansion, I need you to go in PAPI's config.yml and find an option called use_quickjs or something like that. please make sure thats true and restart the server after
Also, was the Statz expansion updated at some point?
No. Not that I know of at least
there is version 1.3.3 that is a bit newer
have you tried that one/
it should be just /papi ecloud downloat statz /papi reload to get the latest
yep
and it does not work? do you get any errors/warnings on server startup?
Oh no, it just borks on reloading placeholderapi
Sorry, was a bit busy getting to work π
that's strange
guys
i cant unregister my expansion
idk what is wrong
either with api or with command non works
(registered from the plugin)
Failed to unregister expansion: DiscordSRVUtils
hey. everytime my server restarts I have to /papi reload to make placeholders work.
I get this message on startup. ```yml
[15:03:37 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:383) ~[PlaceholderAPI-2.10.10.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:113) ~[patched_1.17.1.jar:git-Purpur-1427]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[patched_1.17.1.jar:git-Purpur-1427]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:128) ~[patched_1.17.1.jar:git-Purpur-1427]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:105) ~[patched_1.17.1.jar:git-Purpur-1427]
at java.lang.ClassLoader.loadClass(ClassLoader.java:573) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.10.10.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:359) ~[PlaceholderAPI-2.10.10.jar:?]
can you rsetart the server and send a full startup log?
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.
[15:02:57] [Server thread/INFO]: [PlaceholderAPI] Loading PlaceholderAPI v2.10.10
[15:03:04] [Server thread/INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.10.10
[15:03:04] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[15:03:04] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: ultimateautorestart
[15:03:05] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: insights
[15:03:05] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: spark
[15:03:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: guiredeemmcmmo
[15:03:20] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: cc
[15:03:21] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: ultracosmetics
[15:03:22] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: mycommand
[15:03:23] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: hdb
[15:03:23] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: deluxemenus
[15:03:23] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: tab
[15:03:23] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: pvpmanager
[15:03:25] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: goldencrates
[15:03:26] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: storestats
[15:03:28] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: CloudEtc
[15:03:29] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: mypet
[15:03:29] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: premiumvanish
[15:03:30] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: interactivechat
[15:03:32] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: cmil
[15:03:33] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: cmi
[15:03:34] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: CloudRankSystem
[15:03:35] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: hyperverse
[15:03:35] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: eglow
[15:03:35] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: pw
[15:03:35] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: plan
[15:03:37] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:383) ~[PlaceholderAPI-2.10.10.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:113) ~[patched_1.17.1.jar:git-Purpur-1427]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[patched_1.17.1.jar:git-Purpur-1427]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:128) ~[patched_1.17.1.jar:git-Purpur-1427]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:105) ~[patched_1.17.1.jar:git-Purpur-1427]
at java.lang.ClassLoader.loadClass(ClassLoader.java:573) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.10.10.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:359) ~[PlaceholderAPI-2.10.10.jar:?]
... 7 more
[15:03:37] [Server thread/INFO]: Done (45.544s)! For help, type "help"
please for the love of god just put the entire log in a paste bin. don't put it all in chat
Can anyone help me formatting the "%vault_eco_balance%" to #.###,## - Like showing money balance like in Europe.
try %vault_eco_balance_formatted%. If that doesn't work then you can probably use the formattedexpansion
formatter*
Can I edit the %vault_eco_balance_formatted%?
no
%formatter_number_format_:#.###,##_{vault_ec_balance_fixed}%
something like this
probably