#placeholder-api
150650 messages · Page 77 of 151
just the luck perms one
and if you remove it does it still happen
Hi, how can I use bold formatting when using the gradient placeholder? I've tried placing &l before the placeholder and inside as well but neither seem to work, any ideas?
Why is giving this error if the placeholderAPI is in the plugins folder? ould not load 'pluginsPlaceholderAPI-2.11.1.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/google/gson/Gson
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
is that the entire error? and when does the error show up?
pretty sure the gradient expansion doesn't support bold
Gotcha, thanks!
start server
Could not load 'plugins\PlaceholderAPI-2.11.1.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: com/google/gson/Gson
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot.jar:git-Spigot-c3c767f-33d5de3]
at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:291) [spigot.jar:git-Spigot-c3c767f-33d5de3]
could you possibly send a full startup log over?
use at least 1.8.8 @austere hawk
oh. is that 1.8? I see
SPIGOT?
yes
Issue with checkitem expansion when trying to use the getinfo modifier
Latest version of checkitem 2.4.2
it seems like the expansion requires you to have some sort of modifiers other than the slot. try %checkitem_getinfo:mainhand_% just to test
@mint fable is this a bug maybe? or are the modifiers really required?
Hello friends, well, first I'm using Google translator, so if you have any spelling mistakes, you know why.
Well I have a problem with the Placeholder API, I'm using a plugin to create commands, and it supports the PlaceholderAPI, I created a /server command to show information such as players on and the like, I gave /papi ecloud download Server, it downloaded normally, but I gave /papi ecloud download MVDW and it downloaded normally, hooked it up here, but when I put the placeholder in the chat, it doesn't appear. looks like this: Check it out below!
Now that I've seen it, I can't send a print, but the placeholders that contain %% work, but the ones I want to use are the MVDW's, they're in {} and they're not going, even though I put them in %%, if someone can tell me help, please call me in my private, and I'll send prints, thanks for your attention!
modifiers are required
I could make it return all the info ig
sort of hard to sort through, but 🤷♂️
I also messed up the version number
Now updated to return all values if no modifiers are used
if they exist
so by default, material, amount, and data will get returned
You can filter it out via regex easily as I added prefixes
mat:STONE amt:5 data:0
How do I use the checkitem NBT parsing to check for Damage on an item?
None of my attempts with NBT ints and strings worked before
how much damage the item does?
checkitem nbt is only custom tags
like CustomModelData
NBTInt damage = this.nbt.getTagOfTypeOrNull("Damage", NBTInt.class);
I'm taking the literal interpretation of "Damage" here
@jaunty zephyr ?
Sorry, I should have specified how much damage the item has taken durability wise
Since that is technically an NBT tag
that would be data
actually it falls under data and nbt tag Damage
#ecloud-updates @jaunty zephyr
Ty
notice the lowercase nbt now
Hello friends, well, first I'm using Google translator, so if you have any spelling mistakes, you know why.
Well I have a problem with the Placeholder API, I'm using a plugin to create commands, and it supports the PlaceholderAPI, I created a /server command to show information such as players on and the like, I gave /papi ecloud download Server, it downloaded normally, but I gave /papi ecloud download MVDW and it downloaded normally, hooked it up here, but when I put the placeholder in the chat, it doesn't appear. looks like this: Check it out below!
Now that I've seen it, I can't send a print, but the placeholders that contain %% work, but the ones I want to use are the MVDW's, they're in {} and they're not going, even though I put them in %%, if someone can tell me help, please call me in my private, and I'll send prints, thanks for your attention!
?imgur
make sure to follow that format 
Hi, is there any expansion to return whether something is number or text
Hey, I wanted to know if it was possible to give an item with a glowing effect (with checkitem)
Hey, can someone explain me the _math function
math_(%playerpoints_points%)>=(2500)% it says missing argument which is alright
but I only need to see if its the same or greater than, so not sure
use js for comparing
not required. the math expansion uses EvalEx which supports a lot of stuff including comparison
my bad then
%math_{playerpoints_points}>=2500%
all good. not a lot of people know that.
its actually not even mentioned anywhere. it just mentions it uses EvalEx and gives a link to it.
hey there ive attempted to run papi ecloud download vault
and papi reload
it dosnt actually register it
this is my papi dumb if anyone needs it
do you get an error in console when you do /papi reload?
no
I think the expansion requires an economy plugin to be loaded
make sure you have one registered in /vault-info
interesting interesting
Hey, I wanted to know if it was possible to give an item with a glowing effect (with checkitem)
papi parse %player_name% %checkitem_give_mat:phantom_membrane%
its a null for econy
then why do you need the Vault Expansion? 🤔
for venturechat
i am currently running and manging a waterfall networ
@quaint meadow you have 2 vault expansions. delete them both, run /papi reload then run the download command once and the reload again
kk
I assume you'd have to enchant it. that's the only way to make an item glow in minecraft. and not even sure if you can make a membrane glow. there's items that can't glow at all. example: player heads, chests
oh true, but still why would you need the vault expansion ? since you've got no economy plugin, there's not really a point 🤔
ventruechat requirements
ugh. vault is also for ranks tho?
It is possible to enchant it but I would like to hide the enchantment to make it glow
yeah but I don't see any in his PAPI dump
well uh in their docs / plugin info it states i need to install papi vault
not sure you can add item flags with checkitem.
that is if you want to display money / ranks
I guess
No solution ?
yeah
that just for placeholders
dosnt work for some reason
but are you using the Vault placeholders?
if you don't, then you don't need the expansion
wait so papi isnt the reason the plugin aint
loading
what
im not just plain confused
[13:19:47] [Server thread/INFO]: [VentureChat] Enabling VentureChat v3.3.1
[13:19:47] [Server thread/INFO]: [VentureChat] - Initializing...
[13:19:47] [Server thread/INFO]: [VentureChat] - Config found! Loading file.
[13:19:47] [Server thread/INFO]: [VentureChat] - Checking for Vault...
[13:19:47] [Server thread/INFO]: [VentureChat] - Could not find Vault and/or a Vault compatible permissions plugin!
[13:19:47] [Server thread/INFO]: [VentureChat] Disabling VentureChat v3.3.1
[13:19:47] [Server thread/INFO]: [VentureChat] - Disabling...
[13:19:47] [Server thread/INFO]: [VentureChat] - Disabled Successfully
Cus in my logs it stated that vault was missing but it actually existed
wait that makes some sense now
ive only installed luckperms on the proxy at the moment
you will need it on the Spigot server as well to manage Spigot permissions
okay that makes sense now
check this wiki page for some more info https://luckperms.net/wiki/Network-Installation#the-bungeecord-version-of-luckperms
👍
i need help from the changeoutput dev
the placeholder breaks if i attempt to use {player_name} when the player has an underscore in the name
im aware of this issue
will find some time to fix it eventually
for now id recommend converting ur placeholder into a javascript placeholder
is it possible to convert all of the %player_name% placeholders into a javascript placeholder?
what is ur entire changeoutput placeholder
%changeoutput_<_{mmocore_profession_experience_QUEST_003_003}_6_mycmd-runas {player_name} /system-iron-shard-formed-to-iron-ingot_%
im using {player_name}
that's not the 1st version as i thought using mycommand would somehow fix something
function smth() {
var profession = parseInt("%mmocore_profession_experience_QUEST_003_003%")
if (profession < 6) {
return "mycmd-runas %player_name% /system-iron-shard-formed-to-iron-ingot"
}
return ""
}
smth()```
that might work idk, u just need to put this into a js file with the js expansion
just asking, what's the estimate time for the ign underscore fix before i go through all of the placeholders that needs revamps?
no rush
¯_(ツ)_/¯
its a lot more complicated than expected, i have an idea of how to fix, but i just need to figure out how to actually to do it
ill take another look at it soon
👍 ty
Not sure how to get this Damage NBT tag to register, I've tried all sorts of different things
most notably %checkitem_inhand,nbtints:Damage=586%
where 586 is the damage of the tool
Just says no even though it should be saying yes
specify a material you're looking for
Also are you on the latest version @jaunty zephyr ? 2.5.2
if you used /papi ecloud download checkitem it sometimes takes a while after I upload it
you shouldn't need to though... test to see if it works for some reason
I am on 2.5.2
also my end goal requires it to not have a material check, but that would be weird if it does require it
%checkitem_inhand,mat:DIAMOND_AXE,nbtints:Damage=586%
Tried this and it still doesn't work
I see what you mean about data being 586 though
why when i enter this command: /papi ecloud download ScoreboardObjectives
i have this message:
Input command ecloud was not a valid subcommand!
ecloud download ScoreboardObjectives
usage:/papi
How to set deluxe menu that the nether star will be in our last inventory slot
use a plugin like ItemJoin
Ok
I'm trying to have the placeholder %playerlist_online,nearby,no,amount,50% for players on a scoreboard, but it shows vanished players, is there a simple way of hiding them?
Hi! I got some questions for parseother extension? Why is it that this returns to yes even though the player is offline
/papi parse me %parseother_{Requesta}_{player_online}%
Glad someone could help me :>
But when i do
/papi parse Requests %player_online% it will say no?
Yeah I tried variations of this too and it still didn't work
Any luck on the dev end?
Hi I've got a problem with world time %world_time_my_world% will not return any time. Seems to be a problem with the _ in the world name. Worlds without _ in the name work fine.
@brazen dragon mind screenshotting exactly what it displays?
It's empty. Nothing.
looks like the issue has been around since atleast august 10th
the issue is with how args are parsed,
String[] args = params.split("_");
this would split world_nether into 2 seperate args which would cause an issue cause how getWorld works is that it gets the arg length -1, which would then get the world called nether.
a fix for this could be to change how the args are parsed or use a loop to piece the worldname back together
I'll lyk when I take a look
does it work if you do data:586 though?
always has been
like, before Damage was a thing
it was data
and it still is data 😂
Anyone :>
Interesting
items that weren't damageable used to use data to store different types
like all logs were just log:0 log:1 log:2 log:3
the number being the data
why when i enter this command: /papi ecloud download ScoreboardObjectives
i have this message:
Input command ecloud was not a valid subcommand!
ecloud download ScoreboardObjectives
usage:/papi
do you have ecloud disabled in your papi config?
or maybe it's disabling due to connection issues
they can be downloaded manually here https://api.extendedclip.com/all/
manual download direct link 
Hi how to use on bungee?
I've serverlistplus on bungeecord
And i want to put a timer for the reset
But can't since placeholder isn't available on the bungeecord server!
You can't use placeholderapi on bungeecord
[14:27:33 INFO]: sphings issued server command: /papi parse me %world_time_futurecity%
[14:27:43 INFO]: sphings issued server command: /papi parse me %world_time_futurecity_farmwelt%
[14:27:49 INFO]: sphings issued server command: /papi parse me %world_time_futurecity_nether%
[14:27:55 INFO]: sphings issued server command: /papi parse me %world_time_futurecity_the_end%
%world_time_futurecity% gives back the correct ingame time. The other 3 commands will only return a cleared line
Does anyone can try this?
Is there any way to fix this error?
https://pastebin.com/Abj0e4Qv
Thx
...
should be as easy as updating the server expansion: /papi ecloud download server /papi reload
Thank you! Where I can see this inside the error so that I know for the future?
I mean there isn't a direct line telling you this. its just that the MinecraftServer class or location was changed in NMS in 1.18 and this tells me it can't find that class
but there was an update fixing this
Ah, okay. Thank you 😄
Hello friends, well, first I'm using Google translator, so if you have any spelling mistakes, you know why.
Well I have a problem with the Placeholder API, I'm using a plugin to create commands, and it supports the PlaceholderAPI, I created a /server command to show information such as players on and the like, I gave /papi ecloud download Server, it downloaded normally, but I gave /papi ecloud download MVDW and it downloaded normally, hooked it up here, but when I put the placeholder in the chat, it doesn't appear. looks like this: Check it out below!
Now that I've seen it, I can't send a print, but the placeholders that contain %% work, but the ones I want to use are the MVDW's, they're in {} and they're not going, even though I put them in %%, if someone can tell me help, please call me in my private, and I'll send prints, thanks for your attention!
I talked to the plugin developer and he said that the problem is in the papi or placeholderapi.
I've tried several ways and I didn't get any.
what extension is it??
did you install it
because each placeholder is depended on its extension
expansion*
this is how you use it
link me that page
I'm trying to use this site from this
is that MVDW
once again that plugin needs to support MVDW
I'm getting these placeholders and I try to use.
This server is for placeholderapi
So, it supports placeholderapi, all api placeholders with %% work, as long as I download it from papi ecloud donwload, now those from the MVDW that is from the site I sent you don't work
What plugin are you trying to put that CPU placeholder?
I don't have any plugin to check the CPU
I'm trying to pull the CPU through the placeholder
First did you type
/papi ecloud download MVdW
/papi reload
then did you use %mvdw_cpu_architect%
do you also have MVDW placeholders installed(the plugin)
Alright, I'll try and send prints.
Yes
I did what you suggested and it didn't work.
what does /papi list show
What should I do?
contact the MVDW developer as we cant do anything about that not working
Alright friend, thank you very much 😉
I don't know how you guys work, here in Brazil this is super normal.
papi!
It’s a Minecraft based server
They help with Minecraft plugins
how do I spoof ping of %ping% placeholder ?
where did the placeholder of deluxetags go?
spoof ping? wdym?
He means papi parse %placeholder%
This channel is for placeholder API.
Other channels have other support available. Ask any Minecraft plugin rated questions in #general-plugins or #general-plugins-2 and if someone knows the answer or can help, they will ^^
Hey i need support , The deluxe tags Papi , doesnt seem to be working with TownyChat , how can i fix this?
%ping% displays 300ms for me , I want it to display a random int from 1 to 30
🤨 why lol, players are not idiots/they will think server is lagging
you need to use JS expansion
thats the point of %ping% to display your ping
if you want rand int use rng extension
#spigot-linking if u want support with a premium plugin
How can i format current player xp in placeholderapi?
not sure if to report here, or viavesions server but i'm getting this message in console. Didn't happen before.
[PlaceholderAPI] Loaded class com.viaversion.viaversion.api.type.Type from ViaVersion v4.1.1 which is not a depend or softdepend of this plugin.```
it's actually happening for quite a few of the downloads via PAPI
Ignore that, is just a warning from spigot
Hey i need support , The deluxe tags Papi , doesnt seem to be working with TownyChat , how can i fix this?
the format isnt working
the {deluxetags_tag}
hi, does anyone know who maintains the checkitem extension?
Did you set the deluxechat option in the config to false?
The check item extension was made by “cj89898” so I believe they maintain it.
ah okay thanks, ill try to contact them
rip they have messages enabled to just friends
hi, your checkitem extension on placeholderapi is kinda broken, when using the getinfo argument with enchanted, it errors out if the item has no meta @mint fable
Do you have the error?
not rn let me get it in a sec
?paste
should hopefully be a simple fix
probably a meta check missing or something
https://paste.helpch.at/owixijidor.apache here it is
everything except material, amount, and data is stored in meta
if that statement is correct, I fix easily
hope you can fix it soon 🙂
gonna eat first then work on it
it's an OOB exception that I might've fixed in the latest version if you're not on it
2.5.2 is latest
?checkitem
you can try the manual download if /papi ecloud download checkitem is giving you the old version ||shouldn't be anymore, usually would only happen shortly after uploading it||
How can i format current player xp in placeholderapi? im trying to get it to say 1k instead of 1000 or 1m instead of 1000000
Yes
im on 2.5.2
at least thats what /papi info shows
haven't eated or looked at the code yet, but I think I have an idea
its alright, ill wait, ill be grateful if you could ping me when you find a fix or something
thank you
Always getting this warning in console. Nothing seems broken. Just thought I'd report it. Running Paper -182 (1.18.1), PlaceholderAPI 2.1.1.1.
https://pastebin.com/7rUsVip9
Hello, little ask is it possible to put placeholder api on proxy? Or it need to be on all backends servers.
all backend
@novel moss I believe I've fixed it, test it out and lmk if you have any issues
i'll upload if not
hi i need help in javascript
how i return the variable number?
i want to return the value given by the variable profession on the bottom part
couple things @smoky spoke , = is not a comparator, also don't you always want to return profession?
no matter if it's 4 or not?
im just playing around since it's my first time using javascript
ahh okay
I was gonna say, this makes no sense
at all
also, image for text = no bueno
?paste
?codeblocks
use == to compare numbers
aight ty for the extra info
if you want to return that, you just put return profession
and also you technically don't need to surround the 4 in quotes either
if you returned a number it gets converted to a string either way
how do i make it return an int value instead of a double value
dunno. here's my script
function smth() {
var profession = parseInt("%math_({mmocore_profession_experience_QUEST_001_001}>=33)+({mmocore_profession_experience_QUEST_001_002}>=33)+({mmocore_profession_experience_QUEST_001_003}>=9)+({mmocore_profession_experience_QUEST_001_004}>=161)%")
if (profession >= 4) {
return "4"
}
return profession
}
smth()```
imma try doing it again with a simple math equation
function smth() {
var profession = parseInt("%math_0_1+1%")
if (profession >= 4) {
return "4"
}
return profession
}
smth()
it returned 2.0
in the bottom return part?
ye it worked ty
wait
how were you testing it
/papi parse me %javascript_...?
so weird but I'm not a javascript professional so
yes
ohhh ya know
I think a lot of the time I use .toFixed()
profession.toFixed(2) = 2 decimal places
profession.toFixed() = 0 decimal places
more info for ya
gotta love js
its fixed 🙂 a qol change you can also make it is to display false instead of nothing
where exactly would i change the value that the server expansion get %server_name% from?
Papi config
thank you
Np
anyone know how i can get the luckperms/vault prefix with the color code stripped from it, please ping if you respond
Hello, I use %math_0_10000000-{vault_eco_balance_fixed}% to give the missing money to the player, I would like to know if instead of having 10000000, have: 10,000,000 (with commas)? thank you
Try using vault_eco_balance_commas instead of vault_eco_balance_fixed
Try using luckperms meta feature. You can assign a rank with a meta value and have it shown through the luckperms meta placeholder.
Doesn't work, it returns me %math_0_10000000-{vault_eco_balance_commas}%
does the player expansion not support hex colored displaynames?
Hey there.
I have a problem while requesting a cutsom placeholder
switch (param) { case "durability": if (player.getInventory().getBoots() != null && player.getInventory().getBoots().getType() != Material.AIR) { NBTItem boots = new NBTItem(player.getInventory().getBoots()); int durability = boots.getInteger("currentDurability"); return String.valueOf(durability); } return player.getName();
The player has boots and the obv. the type isnt air either.
But it still wont send back durability but the player name instead.
probably gonna stick with nothing because it's consistent for all modifiers
you can probably use changeoutput if you wanted to switch it to false though
or js
hello? :c
yeah i didnt mind it funny i actually needed your placeholder in a js but idk i just feel it looks cleaner if its true/false
Anyone around?
might get more help in #development
but obviously one of your statements is false
but i dont get it
i changed it to be boots are not null
and it still returns loading instead of the desired value
lore:
- ''
- '&6■ &fRank: &e#1'
- '&6■ &fBalance: &a%vault_eco_top_balance_formatted_1%'
- ''
- '&a» &fYour Balance: &a%vault_eco_balance% «'``` currently have this as a baltop, and its not showing the top balance player or bal its a placeholder in the menu it self
That's bcz the baltop placeholders are being phased out of the vault expansion. You should be using the development build of the essentials expansion for this.
see pinned messages for download and placeholder list
Is there a way to ping your localhost server with the Pinger placeholder expasion?
Yo, is there an absorption hp placeholder?
I found this commit https://github.com/PlaceholderAPI/Player-Expansion/commit/14993335830a11d75dd4716f113580033d6c0159 but the placeholder it's not in the player expansion
Yeah, looks like I forgot to publish the update
material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjcyYzA1ZGQ3NjI4OGY0MzI4YTI0MzkxYmY0NzI1ZmQyMjYwNTkyZGIzY2Y5YjJiYzIwMzJkZDA1OTZjZjQ0MCJ9fX0=
slot: 13
display_name: '&b① &b&n%ajlb_lb_iridiumskyblock_island_bank_crystals_1_alltime_name%'
lore:
- ''
- '&7■ &fRank &8» &b#1'
- '&7■ &fBalance &8» &b%ajlb_lb_iridiumskyblock_island_bank_crystals_1_alltime_value% &b✵'
- ''
- '&3» &7Your Balance &8➔ &b$%iridiumskyblock_island_bank_crystals% ✵ &3« '``` currently the name is working same as the last line, but the value isnt showing up
oh alright
i cant get the playertime placeholder to work... i doublechecked if it was the right placeholder and that i installed the right one, but i did and it still won't work
it just shows %playertime_time_hours%
and you ran this /papi ecloud download playertime
/papi reload
i did run this
it still shows %playertime_time_hours%
any idea on how to fix it ?
the wiki says its called PlayTime not PlayerTime
please?
@sharp jay Unknown expansion.
@upper zinc link me the plugin page
np
how can i make it possible to use papi placeholders in my plugin?
i followed https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI#import-with-gradle but it doesnt seem to be working, is there something else i need to do?
what version did you specify?
If you want to use placeholders IN your plugin, then yes
PlaceholderAPI#setPlaceholders
I wanna use it in the footer of tab which is specified in a config file of my plugin
The one it said at the top, 2.11.1. Do I need to include the v?
No
do i need to import me.clip.placeholderapi.PlaceholderAPI twice or is that just a typo?
i assume its just a typo lol
ya, whatever IDE you use should sort that out
but that's just an example of how to use it
that's an example plugin class
heh heh i dont use an ide... i just use notepad++ cause i dont code most of the plugin
I have no words
LMAO
uhm: ```/home/runner/work/geeksmp/geeksmp/src/main/java/com/commandgeek/GeekSMP/Main.java:59: error: incompatible types: Main cannot be converted to Listener
Task :compileJava
Bukkit.getPluginManager().registerEvents(this, this);
^
/home/runner/work/geeksmp/geeksmp/src/main/java/com/commandgeek/GeekSMP/Main.java:61: error: cannot find symbol
getLogger().warn("Could not find PlaceholderAPI! This plugin is required.");
^```
i think i did something wrong
here's the file if u wanna take a closer look: https://github.com/srnyx/geeksmp/blob/master/src/main/java/com/commandgeek/GeekSMP/Main.java
is that the same as that visual studio thingy
#development can also help you with any more issues to due with plugin dev as well
probably will get better/more answers there
Just a quick question, can someone explain what the [placeholder] action type does? Slightly confused as to what situation it'd be useful
it can be used to run a placeholder (like a command)
example is checkitem if you want to remove an item
[placeholder] %checkitem_remove_mat:stone,amt:10%
it used to be [console] and the placeholder would parse, but that would give you an invalid command message in your actual console/logs
Gotcha, so just to be clear; the command can be stored in a js file which can then be executed using the [placeholder]
Let's say for example I wanted to run a placeholder in the command itself
should i ask any more questions i have about adding papi to plugin there too?
not entirely sure what you mean by this, but sadly I gotta go
you can, yes
It's a bit of a weird system tbh. I'll try to explain.
I've made a custom script which returns a dynamic number value. I then want to use %javascript_price% in a PEconomy command, which would look like this: peco take %player_name% %javascript_price% tokens. Of course though, PEconomy returns a syntax error because it's trying to deduct %javascript_price%, not a number
hey i have an error when placeholder api loads up and it seems to be with essentials but i dont have that plugin and neither do i have its set of placeholders registered, here is the error. https://pastebin.com/cG7a4GWu
please ping for response
Hi there, odd question: is there a placeholder that always outputs true no matter what?
huh xd
why lolp
That legitimately outputs “True” or outputs a true value for a placeholder from a plug-in?
how to use placeholderapi in command block?
You don't
know a plugin that uses actionbar(json) and papi
why do you need it to be a placeholder? just put true wherever you need it
Hello cj how are you today ? 🙂
It’s long to explain. But I don’t really think the “why” matters right? The question is whether it exists or not 😇
Oops sorry
its nonsense to create placeholders with static value
hello, i want to integrate luck perms placeholder into my scoreboard but it won't
here is my code :
public void setLines(String ip){
objectiveSign.setDisplayName("§bUndercraft");
objectiveSign.setLine(0, " ");
objectiveSign.setLine(1, "§7Connectés§f: " + Bukkit.getOnlinePlayers().size());
objectiveSign.setLine(2, "§7Lobby§f: n°1");
objectiveSign.setLine(3, "§1");
objectiveSign.setLine(4, "§a§l✔§f " + player.getName());
objectiveSign.setLine(5, "§7Grade§f: %luckperms_prefix%");
objectiveSign.setLine(6, " ");
objectiveSign.setLine(7, ip);
objectiveSign.updateLines();
}
you have to parse the placeholder using PAPI's setPlaceholders method
alredy did that in my main.java
the setPlaceholders method is not in your code
you don't use that in the main class just once, you use that on every string that contains placeholders
there's an example at the bottom of the page
I’m just looking for something like “is server online?” = true
then use pinger expansion or fixed string "true"
||https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#pinger||
how to use papi on bungee?
Can't
bruh
is there a placeholder to show player attributes such as generic.movement_speed
and generic.attack_damage
or do I have to make my own using the javascript expansion
How do I call Attribute.valueOf("GENERIC_ATTACK_DAMAGE") using the javascript expansion. It returns an error when using Attribute or BukkitAttribute
You might have to make your own expansion for it if you know some coding
Yes I can easily make my own expansion, but I just hoped I wouldn't have to do it :/
Well yeah I ended up just adding the placeholders to my own plugin 🙂
thanks for the suggestion
Hey everyone is it possible to avoid people opening the DeluxeMenu from certain world please ?
yes u can use open requirements
Any links for the wiki that leads to this ?
basically u would have the type be !string equals or smth,
input be the player's world (i think %player_world%, make sure u have the player expansion downloaded)
then the output be whatever world u want to deny
idk how the is near requirement works, but maybe it could be possible with that?
I'll try both of those options thanks 🙂
open_requirement:
requirements:
type: is near
location: "spawn,119,37,232"
distance: 4
deny_commands:
- '[message] &cRetourne voir le chef pour cela !'
This one is not working am I not using the right syntax ?
[22:50:39 WARN]: [DeluxeMenus] Detected invalid configuration in file: chef.yml
[22:50:39 WARN]: org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
[22:50:39 WARN]: in 'reader', line 11, column 5:
[22:50:39 WARN]: type: is near
[22:50:39 WARN]: ^
[22:50:39 WARN]: expected <block end>, but found '<block mapping start>'
[22:50:39 WARN]: in 'reader', line 12, column 7:
[22:50:39 WARN]: location: "spawn"
[22:50:39 WARN]: ^
they say my location is not the good syntax
What about I just use string equals and then in output I put the world I want
This one still not working
open_requirement:
requirements:
type: string equals
input: "%player_world%"
output: "spawn"
deny_commands:
- '[message] &cRetourne voir le chef pour cela !'
ur missing a requirement name
requirements are in the format of
open_requirement:
requirements:
some_random_requirement_name:
type: string equals
input: "%player_world%"
output: "spawn"```
Can you give this a try for me, please?
// Available for all game versions
%attribute_player_has_<attribute>%
%attribute_player_baseValue_<attribute>%
%attribute_player_value_<attribute>%
// 1.11+
%attribute_player_defaultValue_<attribute>%```
@warm topaz you too if you want
no u
how do you give these items?
if you are using essentials, {USERNAME} should be what you are looking for
looks like it has an option in config serveritem.replace-holders and two placeholders, %player_uuid% and %player_name%, which I think you can guess what each represents
serveritem:
#if server saved items has placeholders inside displayname or lore should replace it?
#default placeholders: %player_name% %player_uuid%
#support all placeholders of PlaceHolderAPI
#
#This affects give/take/sell/sellmax/buy/buymax actions
#holders may generate inconsistency if holders values change or if who owns change
#this inconsistency may affect only items with placeholders
#
#inconsistency examples:
#player A buy an item with %player_name% holder, player B take A item, B try to sell the item but he can't because %player_name% for B it's not the same of A
#player A buy an item with %player_name% holder, player A change name to B, try to sell the item but he can't because %player_name% now it's B and do not match old name A
replace-holders: true```
NP
how can i make
a javascript
that would replace a placeholder that returns nothing
to something
so if a placeholder returns nothing, we return a little X
Hey! So I've just created a plugin, it's a custom currency. I'd like to create a, for example, %balance% placeholder that takes the balance of the person to use in holograms etc, but I have no idea where to start and would appreciate some help
Yes thank you, I've looked through there and even gone through the steps, but I'm still left with no idea of how to actually do it- if that makes sense. Creating the %balance% placeholder and having it know exactly what it is
I'm using PAPI, but the %vault_eco_balance% placeholder isn't working, does anyone know why? I'm trying to display it using a TAB sidebar. The %vault-prefix% works perfectly fine and is displaying the correct thing, but the other one (and all of the other economy placeholders) don't work. Can anyone help?
if (var == null) {
return ..
}
this should work for you
I actually did, but it turns out I needed to reboot.
Hello o/ , how would I fix this? https://paste.helpch.at/buticatimi.sql
My essentials nickname has color codes and formatting, but when I use %essentials_nickname% it doesn't give me the color codes. Also, when I run /papi parse me %essentials_nickname% it just returns %essentials_nickname%. However, it does work in my TAB plugin, because it does show up, it just doesn't have the formatting. Any help?
maybe try deleting the expansion and reinstall it
@simple musk /papi dump
my vault isn't 1.7.0 RIGHT NOW since it didn't work at first, been trying different versions
ah magma too?
Idk about that
kk, ty ❤️
my vault isn't working either but im using spigot
Hi, I got this error in console [18:11:52 WARN]: [PlaceholderAPI] Task #622 for PlaceholderAPI v2.11.1 generated an exception org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'. at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1752) ~[paper-1.18.1.jar:git-Paper-187] at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108) ~[?:?] at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45) ~[?:?] at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201) ~[?:?] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.1.jar:git-Paper-187] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1547) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-187] at java.lang.Thread.run(Thread.java:833) ~[?:?]
what can cause this?
java.lang.NumberFormatException: For input string: "Failed to connect to MySQL: (2002) Connection refused"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:668) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:786) ~[?:?]
at java.util.stream.ReferencePipeline$4$1.accept(ReferencePipeline.java:214) ~[?:?]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?]
at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?]
at java.util.stream.IntPipeline.toArray(IntPipeline.java:562) ~[?:?]
at me.clip.placeholderapi.updatechecker.UpdateChecker.toReadable(UpdateChecker.java:111) ~[PlaceholderAPI-2.11.2-DEV-148.jar:?]
at me.clip.placeholderapi.updatechecker.UpdateChecker.spigotIsNewer(UpdateChecker.java:95) ~[PlaceholderAPI-2.11.2-DEV-148.jar:?]
at me.clip.placeholderapi.updatechecker.UpdateChecker.lambda$fetch$1(UpdateChecker.java:73) ~[PlaceholderAPI-2.11.2-DEV-148.jar:?]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[pufferfish-1.18.1.jar:git-Pufferfish-43]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[pufferfish-1.18.1.jar:git-Pufferfish-43]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[pufferfish-1.18.1.jar:git-Pufferfish-43]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]```
Wrong password or similar. Connection is refused
Check your log in credentials
but i dont remember that placeholderapi wants any sql credentials?
Judging by this, you aren't using bungeecord
%server_total% attempts to get the players located in the world total
Is is different from %bungee_total%
🥴
The issue is because spigot was down, not bc credentials were wrong
Hello. I'm trying to make head and tails of the Math placeholder expansion; basically I want to take the result of various placeholders and get the mean of all of those values. Is this possible?
I would prefer creating your placeholder with javascript to calculate multiple things, that arent possible with only math expansion
I know this isn't really PAPI and all, but anyone have experience with the formatting placeholder? %math_[precision]:[rounding]_<expression> I am trying to get the output as XX and not XX.000 | This is what I have right now: %math_precision_24-{statistic_hours_played}% but it wont parse with the precision part
%math_0_24-{statistic_hours_played}%
no problem
Wouldn't know where to start with that one..
you can add placeholders with the math expansion yes
as you can see here you use {} instead of %%
so you could do %math_({placeholder-1}+{placeholder-2})/2%
blitz is right , sorry I thought he was making somethin more complex
well I am, obviously his example is dividing my two where I need to add all the numbers together, then divide by the total numbers.
so yeah, I'll figure it out ig
If you want to use js I can help you, if you want
feel free to DM me 🙂
Hello, I have a problem with the plugin because when I download it and put it in the plugins folder and enter the server, the placeholderapi does not work for me, the version of my minecraft server is 1.8
Is it possible to intercept a placeholder with placeholderapi, manipulate it, and return it?
I have a plugin that returns an integer and I was wondering if its possible to intercept it with my own expansion and apply a color to it based on the number range
Yes @wispy ravine
how?
@silver minnow an expansion?
yes but how would you override the other expansion
without decompiling & rebuilding
and reflection
You wouldnt override you just re parse it?
he's talking about a different plugin
intercepting a different expansion from his own
at least afaik
Is he putting this placeholder inside that plugin or like deluxemenus?
lots of questions
im guessing like tab/deluxemenus/etc 🤷
hm
wait why can't he just make a new placeholder... 
What's the placeholder that shows the amount of diamonds you mined? statistic_mine_block:diamond just returns 0 constantly.
diamond_ore?
diamond is the item
won't really be able to tell how many you actually get unless it's custom tracked I bet though
if that's a requirement of yours ^
hmm wdym?
are you trying to track how many diamond ore the player has mined?
yes
How can I use the age of a crop in a placeholder?
I'm trying to make a farming leaderboard but there is a loophole where people can place and break blocks instantly without them growing
you can't
do u have any reccomendations to make a top10 leaderboard ?
can enyone tell me whats wrong with this Placeholder "Rank:&#%team_color%%team_suffix%"?
What would be wrong with it? Only the &# looks a bit weird to me tbh
it probably returns a HEX color
it dosent rerturn enything but "Rank:"
and the "&#" is for hex color codes without the "&#" i dosent work either so idk what to do
use the ajLeaderboard plugin.
well have you tested the placeholders with /papi parse? if not try /papi parse me %team_suffix% and see what it returns
I am but the thing is people can find loopholes especially for the block breaking leaderboards
ah you want something more complex. idk then I'm afraid.
when i do it, it just returns a empty chat.
well there's your problem. your team has no suffix
but i does 😅 the suffix is "[Owner]"
well I'm not sure but as you can see the placeholder doesn't return it. I'd suggest you contact the developer of the expansion or of the plugin to see what's going on.
the PlaceholderAPI expansion I mean. where did you get it from? the ecloud?
I mean, if you use the default team commands or scoreboard objectives, do you see [Owner]?
you should use a permissions plugin not the teams function
Hi, i have an issue with hex colors in LuckPerms/Papi placeholders :
Prefix LP : https://i.imgur.com/LdxGxvf.png
Placeholder prefix with LP (and %vault_prefix% same) : https://i.imgur.com/irTf2jR.png
I didn't have this issue with "&e" colors for example.
That's bcz luckperms has its own hex parser that it does not use when parsing the placeholder. I'm not sure if this is intentional or not but you might want to contact the luckperms team I guess.
You could try and open an issue here I guess https://github.com/Paul19988/TeamsExpansion/issues but I recommend you use LuckPerms for ranks like Gaby said.
i didn't have any issue in the first screen with hex parser with LP =/
yes. bcz as I said, it gets parsed there
with luckperm's internal parser
but they don't parse it before returning it in a placeholder
because minecraft/spigot doesn't understand the &#aaFF00 format. so it needs to be changed and that's what luckperm's parser does for their own messages but doesn't for the placeholder
Lp lets the plugin where the placeholder is used to parse the colors
okay, but how do i then make a scoreboard that displays "Rank: (the rank of the player)?
how do i then make a scoreboard that displays "Rank: (the rank of the player)?
well did you switch to using an actual rank plugin like LuckPerms?
if yes then use their placeholder %luckperms_prefix% or %luckperms_suffix% (whichever you've set)
I used %vault_prefix% for the prefix.
%essentials_nickname% is returning a nonformatted name. Is there any way to fix this?
try using %player_displayname% instead maybe
I do, but then it also shows the prefix, which I don't want.
then %player_name% ig?
yeah but that again won't show nicknames
wym by formatting?
formatting = &a &l &b &d &n (color codes)
I feel like %essentials_nickname% should definitely be formatted
there are 2 placeholders
%essentials_nickname_stripped%```
stripped would be without color codes
%essentials_nickname%
that's what i was first using but it doesn't have any colot codes
Oh, so they show up as &* instead of the colour?
no
there's no formatting
unless my nick is wron
g
and im using another nick provider
and there's just no formatting
but it hink it's essentials
Okay, I can’t send the link but the moss discord will be of more use
if you're using another provider, what is it?
i'm not
oh
Give the moss discord a try 🙂
Im having a problem because the expansions in PlaceholderAPI are registered async which makes
depending on papi virtually useless.
Any workarounds for this? Some Future<Void> i can hook into.
I would suggest making the expanson registration blocking when starting the server so dependent plugins
can actually use placeholders.
How/why are you trying to use %player_level% so early?
For deserialization. I need to to get a PlaceholderExpansion for later use in a lambda.
Hm. I could make it lazy. But that would require some work...
Is there any reason why the expansion registration is done non-blocking when the server starts?
can't answer that question, but most placeholders are player-dependent
%player_level% for example returns nothing if the player hasn't logged in
or maybe even if they aren't online
Yeah i dont want to use a placeholder right away. I want to get a PlaceholderExpansion which corresponds to a String for later usage.
Ill just make it lazy then -.-
just curious, would you need to re-do this upon /papi reload since it reloads the expansion classes?
Are the expansion objects updated or are new instances created for each expansion?
i feel it's new instances but i'll take a look
Because then i would have to make it truly lazy without caching...
I believe you would have to
except for persisting ones
if it's just player, then it doesn't persist
Well... then ill just solve it with a Supplier<PlaceholderExpansion> instead of a Memoizer.
thx
@balmy marten
@sudden kayak ^^
added
Hi! Is this error that we found on our server console okay? Like it says Loaded class 'plugin name' which is not a depend or softdepend of this plugin?
You can check it here on the link: https://pastebin.com/PS5Pyva8
no error, all ok
Why do I get this error?
seems like a corrupted expansion potentially
Do I have to delete all and download again?
well you could just move them to a separate folder and add them back 1 by 1
or 2 by 2
and do /papi reload?
yeah papi reload will probably be enough
Alright thanks
[19:34:55 WARN]: [PlaceholderAPI] Task #657 for PlaceholderAPI v2.11.1 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1752) ~[paper-1.18.1.jar:git-Paper-187]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201) ~[?:?]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.1.jar:git-Paper-187]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1547) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-187]
at java.lang.Thread.run(Thread.java:833) ~[?:?]```
When updating bungee it gets this error
yeah read what the bot said. it should help you fix it
Done that, then it says there is an update. I update Bungee and then get the error above
but when you removed the expansion, did you remove all of them?
if not, remove them all then do the download command
if you can't get it to work do /papi dump and send the link here
alright do /papi dump and send the generated link over
ok. you seem to have 1 bungee expansion isntalled rn
Expansion-bungee.jar
can you delete that, do /papi reload
then do the download commands?
I have done that
And that works fine
But it says that i have to download
But when I do, it gives the error
Nothing wrong with not updating
but you have version 1.0.1. the latest is 2.0
you need to delete the Expansion-bungee.jar one first then download
and a /papi reload inbetween
ok just delete the one from the expansions folder, do /papi reload and manually download it from here: https://api.extendedclip.com/expansions/bungeecord/
and put it in the folder
then do a /papi reload
ok it seems like there's a bug in the code of the expansion. it is still registered as 1.0.1. don't update anymore. just leave it as it is (you have the latest). Will report it
Thanks!
Guyssss
I need help, how to gather a group prefix please ?
What Placeholder can I use ?
%vault_prefix%? this will return the prefix of the group the player is in
Not working, unless there a papi to download ?
yeah /papi ecloud download vault /papi reload
Omg thanks man
no problem
Hello again !
How could I put two requirement in my menu please ? Can anyone give me an exemple on what syntax I should use please ?
Oh no sorry I mean
I need one view requirement and one click requirement
My syntax was already not good
Alright I don't know how you correct it but now it's working perfectly
Is it because of the way I wrote it ?
With too much space between each other ?
well the one I sent should work
Hello, can I make the Math Expansion compatible with Java 1.8? I saw that the previous versions of the expansion work with Java 1.8 but I don't know how to add the previous version to the placeholderapi.
Is there a placeholder that only shows unique kills to prevent farm kills on alts?
how do i track all blocks mined?
The statistic expansion has a placeholder for that
Does it just return 0?
it says 2
And it doesn't go up?
nope
is it a world thing
is there a pl for it
ok wtf
i figured sum out
so
it only works if i mine in the regular world
but when i mine it goes up by 2 lmfao
Well there are some statistic plugins out there like statz. The statistic expansion just gets the data from spigot
Like those are just the default minecraft stats
Afaik
Hello, I have a 1.8.8 server and I use Java 8. I would like to use an extension which can be used only with Java 11+. Can I make it compatible somehow?
NachoSpigot works fine with java 11 and java 17
So I'd suggest updating to NachoSpigot and then using java 11. Only badly written plugins break with newer versions
idk what NachoSpigot is tbh, so can't recommend that but what I can recommend is using an older version of the expansion. some of the expansions like Math, Javascript have versions that work with java 1.8
FOSS 1.8 spigot fork
I tried to use Math's previous version, but I dunno how to make PlaceholderAPI use it. It only puts errors.
you need to do /papi ecloud download math 1.1.0 and /papi reload. that's the latest version that will work with java 1.8
but it will also have some things different. like precision and also has no rounding.
thank you so much! Do you know how I would make this %math_{bungee_missilewars}+{bungee_missilewarstwo}% show only integer numbers? It shows 20.000 and I would like it to show 20
yeah. %math_[precision:0]{bungee_missilewars}+{bungee_missilewarstwo}%
nice
Hi, I'm having an issue with the Pinger expansion, it doesn't show the correct player count. It shows that there are 0 players on the server I am currently on. It's a server behind a Waterfall proxy running on Pterodactyl, could that be the issue? Thanks.
This is the placeholder I'm using %pinger_players_172.18.0.1:25556%
I recommend you use the bungee expansion to show the player count. the Pinger expansion is pretty buggy sometimes. I don't know why or how to fix it and my only recommendation is this really
Update…
Ez
(Yea I know it’s hard but 1.8 is 6 years old at this point and shouldn’t really be used for anything)
Understand, some people rather 1.8 pvp over any 1.9+
There exist plugins that change it
they aren't perfect tho, and also java 11 works fine with paper 1.8.8
Scam ☝️
Hi
Want somthing like
%javascript_placeholder_<arg one>_<args two>%
That args one is placeholder that parse a number and args two is an integer to add or decreess the parsed placeholder
btw use `` to escape your text, removes formatting
Discord mobile 🤕
quitter talk 😂
Can someone tell me why this is not working
?help
t
Odd
The GUI is just not opening
no errors or anything
Pretty sure its the parseother placeholder
on java8 so that might be the problem
cant update to 17 until next season
You probably have errors in console?
what placeholder is balanceformatter?
what it says
custom expansion?
its a replacement for %vault_eco_balance_formatted%
yeah but if i parse balanceformatter on its own
it works fine
heres the github for it
and what happens when you do /papi parse me %parseother_{vault_eco_top_player_6}_{balanceformatter}%
Internal error
might be because the player is offline
what if you put the name of somebody offline
instead of vault_eco_top_player_6
lemme try
oh okay hold on
Yeah
aight
theres people online
So what cmd do you want me to do
/papi parse 123 %balanceformatter%
?
yes try that
yeah when i type that it says failed to find player
and now try the parseother one
this
That one says internal server error
I feel it might be erroring trying to find the balance of an offline player
oh, one more real quick
try /papi parse me %parseother_{123}_{vault_eco_balance_formatted}%
this one just says 0
Any idea on a fix?
is that correct
Yeah its correct
oh that's good news then
The issue we have is that the money is like QT, S and higher
it means the balanceformatter expansion can be fixed to do this
also
why use a custom expansion like that
instead of a js script
Thats just what I found
conveniently I made one https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#number-suffix
@mint fable
god send
its working
Do you know if theres an addon that can tell me if a player is online/offline
theres %player_online% but it just returns yes/no and i wanna be able to change the output ideally
well you can use changeoutput expansion
tea
or, if you want to change yes/no for all placeholders you can edit the placeholderapi config
okay
How would I go about parsing this
%changeoutput_equals_{player_online}_yes_Online_Offline%
but {player_online} needs to be %vault_eco_top_player_1%
well first of all, the top placeholders are being phased out of the vault expansion and moved into the essentials one. You should maybe consider switching. (see pinned messages for download and placeholders list). Second of all if you want to check if vault top player is online then give a custom output based on that, it won't work with this bcz you'll have 2 nests while PAPI only supports 1 realistically.
Damn
Is there any possible way to do it
& yeah our seasons are 4 weeks
So i'll end up switching over
javascript expansion
Is there a public one I can use?
but that is known to have bad performance lately.
that's public.
or you can simply code a small plugin which adds a placeholder like %isonline_playername% and %isonline_{anotherplaceholder}%
hi
the js example for args is wrong ?
var kitName = args[0];
var placeholder = "essentials_has_kit_" + kitname;
var hasKit = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");
function hasKit(){
if(hasKit == "yes"){
return "&aTrue";
}
return "&cFalse";
}
hasKit();``` don't work for me
i want to put an arg in placeholder but don't know how 🤦♂️
what ?
any help 😦
can you show the placeholder you're testing?
luckperms_group_expiry_time_[arg here]
ugh. that's not javascript tho?
I'm talking about the javascript placeholder you're using
%javascript_calc_luckperms_group_time_vip%
vip is arg here
and in your javascirpt_placeholders.yml how did you declare the placeholder?
can you copy paste it please?
yeah my bad
but isn't a good idea to put the whole placeholder in the arg ?
or should i set the luckperms_group_time_ in the js and not as arg
I mean you can do it, but idk if this will do what you want really
you have to understand the kitname will become literally luckperms_group_time_vip
just want to %javascript_calc_vip%
how to put the vip arg in the placeholder ?
in what placeholder exactly? in the essentials kit one?
yeah this don't work
even when you use %javascript_calc_vip%?
i'm new in js
i want to use an js argument in a placeholder
so i look at the examples in https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Advanced-Scripts and didn't work for me
if the essentials kit name is fixed i can fix mine to
