#placeholder-api
150650 messages · Page 130 of 151
If it were possible, I would fix it myself.
but i dont see that file
All this code is in a jar file that is better not to open, because you won't read or understand anything there anyway
how to use placeholders on aternos
yes
What does rounding mean in %math_[precision]:[rounding]_<expression>%
it rounds the expression either up or down depending on what you specify
hmm
do I need rounding?
depends on what you want
trying to just go from #.### to #.##
It doesnt
but in any case, you can use %math_2_<expression>%
%math_6+({jobsr_user_jlevel_blacksmith}*0.03)% Shows 3
%math_2_6+({jobsr_user_jlevel_blacksmith}*0.03)%
I have some questions about the MySQL expansion.
If I fill out the settings.default section of the config am I then able to use a %placeholder% to refer to the host, port, database, user and password/
The reason I'm asking is because I'm tired of filling in the database details of half a dozen plugins on five servers...every time the database is reset or a password is changed.
It's easier to change it in one place than have to remember which plugins have database...
No, I would highly advise against a placeholder that stores any of that information
you do not want users possibly getting access to your ip, port, database, user, AND password
as much as it might suck to have to change it in multiple places, that is the most secure way
If you have a program like NP++ you can use the search function within directories, not just single files. If that helps
I do use Notepad++, and I have for several years.
I have a single file that I keep all the important bits on, such as database, bot tokens and backup codes. tat makes it easier to just copy pates.
It just sucks having to update a couple dozen files every month when sql and ftp passwords are changed.
Why not have someone write a cronjob for you that creates, updates and publishes new database information
that's what i'm saying though. If you search the old IP and replace it with the new ip for all files in a directory, it'll be a lot easier
I do that now, but the problem is I have to go to each of the files, download them from the host, edit them and then upload them again.
ah right
then maybe sounds like what makiil said might help
I have no clue
There are expansions you can use to just store a variable
but
I highly recommend against that for security purposes
please do not do that
do not make that information available via a placeholders
You know better than I do on this subject, so I'll take your advice.

?help
hello im using autop rank and its not working
default to beginner:
prerequisites:
in group:
value: default
requirements:
bedwars_stats_wins:
value: 1
results:
command:
value: lp user add parent beginner
message:
value: Congratulations, you have been promoted to beginner!
options:
display name: beginner
auto choose: true
show based on prerequisites: true``` %bedwars_stats_wins%
please help
default to beginner:
prerequisites:
in group:
value: default
requirements:
1 ; %bedwars_stats_wins%:
results:
command:
value: lp user add parent beginner
message:
value: Congratulations, you have been promoted to beginner!
options:
display name: beginner
auto choose: true
show based on prerequisites: true```
how can I make a spawner upgrade menu using Spawnermeta and deluxemenus
I can make one for you
An example please
An example of how I can upgrade it to a zombie spawner
I can make one for you if you’d like
I am not making an example menu without getting paid sorry man
Ok
no shot ppl try n get money for making menus lmfao
Gotta make money some how yk?
XD
Would it be easy to create a placeholder that gives a different output depending on if the player is burning, or if the player is frozen ?
apparently nothing of the sort exists as of now but i need something like that, so i'm thinking of just doing it myself if it's doable
knowing that the burning and the frozen condition are not considered "status effect" by minecraft, unlike all the other potion effect
Is there any placeholder to get the date of the first connection to a server¿?
how do i make it so if my placeholder %deluxetags_tag% is noting ten it will turn into &8&l[&7NONE&8&l]
is there a placeholder for this in papi?
// Define a function to handle the custom placeholder
function customPlaceholder(player) {
// Retrieve the value of %deluxetags_tag% for the specified player
var deluxetagsTag = placeholderAPI.getPlaceholder(player, 'deluxetags_tag');
// Check if the value is an empty string
if (deluxetagsTag === '') {
// Return the replacement text
return '&8&l[&7NONE&8&l]';
} else {
// Return the original value
return deluxetagsTag;
}
}
// Register the custom placeholder with PlaceholderAPI
placeholderAPI.registerPlaceholder('javascript_tag', customPlaceholder);
``` can you fix the js?
ChatGPT 
function tag() {
let tag = "%deluxetags_tag%";
return tag === "" ? "&8&l[&7NONE&8&l]" : tag;
}
tag()
and in your /plugins/PlaceholderAPI/javascript_placeholders.yml file, add
tag:
file: "<name of the file>.js"
``` while replacing the file name of course
AI will replace us
not yet apparently lol
Truee XDD
uh try this?
function tag() {
var tag = "%deluxetags_tag%";
return tag === "" ? "&8&l[&7NONE&8&l]" : tag;
}
tag()
omg it works tnx
Hi Hi, I'm new I was wondering if anyone can help me out, first time using this.
Theres a E-cloud for stastistics from spigotAPI and just stand alone individual player stuff.
But is there any plceholder for like global server stats: "like total_mobs_killed".
Basically any player-ish stats but like collecivly for the entire server added together. Like I want something like %statistic_mob_kills% but like all the players added up and all the mobs ever killed ever in the server
Also im using spark for my tps and ram monitoring but my placeholder for spark isnt working, says no download from E-cloud server available so im assuming its hardcoded but dosent work
o em jee, better than chat gpt
- placeholder -
- '%javascript_itemattloreline_{javascript_itemattlore_NeutralDamage,%var_NeutralDamage_int%}%'
- javascript -
function attloreline() {
var test1 = args[0];
var test2 = args[1];
/*var fire = args[1];
var water = args[2];
var earth = args[3];
var lightning = args[4];
var divinity = args[5];
var darkness = args[6];*/
return test1;
}
attloreline();
is this can anyway?
if i run this.
print
{javascript_itemattlore_NeutralDamage
Hello, can anyone tell me what the problem is?
screenshot - https://ibb.co/VSGSrDP
is there a way to go from
text 1 [aad]
text 2 [daa]
text 3[ada]
text 4 [dda]
text 5 [add]
text 6 [ddd}
text 7 [aaa]
for a js placeholder?
please ping me
What
switshing test for a placeholder for tagsd
hey i have KDRatio papi downloaded for kill/deaths stats how do i reset everyone stats i did everything world folder deleted stats playerdata and they are still not reset
Hello !
I have an issue...
function questhistoire() {
const metiersString= "%player_name%";
return metiersString
}
questhistoire();
[PAPI] [Javascript-Expansion] An error occurred while executing the script 'parse-command
com.extendedclip.papi.expansion.javascript.evaluator.EvaluatorException: Failed to evaluate requested script.
at com.extendedclip.papi.expansion.javascript.evaluator.QuickJsScriptEvaluator.execute(QuickJsScriptEvaluator.java:26) ~[?:?]
at com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate(JavascriptPlaceholder.java:120) ~[?:?]
at com.extendedclip.papi.expansion.javascript.commands.ParseCommand.execute(ParseCommand.java:69) ~[?:?]
at com.extendedclip.papi.expansion.javascript.commands.router.CommandRouter.execute(CommandRouter.java:72) ~[?:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:1001) ~[purpur-1.20.1.jar:git-Purpur-2062]
...
Caused by: com.koushikdutta.quack.QuackException: ReferenceError: 'Loupric' is not defined
at <javascript>.<eval>(?:1) ~[?:?]
at com.koushikdutta.quack.QuackContext.evaluate(Native Method) ~[PlaceholderAPI-2.11.5.jar:?]
at com.koushikdutta.quack.QuackContext.evaluate(QuackContext.java:600) ~[PlaceholderAPI-2.11.5.jar:?]
at com.koushikdutta.quack.QuackContext.evaluate(QuackContext.java:615) ~[PlaceholderAPI-2.11.5.jar:?]
at com.koushikdutta.quack.QuackContext.evaluate(QuackContext.java:653) ~[PlaceholderAPI-2.11.5.jar:?]
at com.extendedclip.papi.expansion.javascript.evaluator.QuickJsScriptEvaluator.execute(QuickJsScriptEvaluator.java:24) ~[?:?]
... 26 more```
Any idea ? x)
Is there a way to increase the max placeholder length? I'm parsing placeholders that are well beyond the max length and it's annoying finding workarounds 😅
there's a max length?
everything past some point gives this error: Caused by: java.lang.StringIndexOutOfBoundsException: start 136, end 172, length 102
that's not the issue 😅
oh?
just Utils is half broken
send the whole placeholder
%utils_parse_javascript_cornHoeIndex_{math_0_40-{commandpanels_data-y}*9},largeCorn{javascript_inputOutputEval_{commandpanels_data-upgradepoints}==0,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem,{commandpanels_data-largecorn}==100,MaxLevel},{math_0_31-{commandpanels_data-y}*9},{javascript_eval_{commandpanels_data-largecorn}!=0,upArrow_{math_0_31-{commandpanels_data-y}*9},air}%
should be fine
Hey, I'd like to create a placeholder that returns the ammoCount NBT value from the item the player is holding. However, %checkitem_getinfo:mainhand_nbtints:ammoCount% returns a whole bunch of text, specifically nbt:NBTTagCompound:pbs:{ammo:30,fm:1,lid:-734358647925573780 2L,mid:6981303501539724888L) instead of the actual value. Does anyone know how I could obtain the actual value?
Here's the nbt data of the item I'm holding when parsing the placeholder:
("pointblankreload_cooldown": (totalUninterruptedFireTime: 0, ammoCount: 0, lastSyncTime: ØL, correlationId: 8397, lastShotFiredTime: ØL, fireState: 0)), id: "pointblank:tmp", Count: 1b, tag: (GeckoLibID: 105L, pbs: (mid: 6981303501539724888L, ammo: 30, lid: -7343586479255737802L, fm: 1}}}], z: 3, id: "minecraftbarrel"}
send the full error
changed the placeholder to %utils_parse_javascript_cornHoeIndex_{math_0_40-{commandpanels_data-y}*9},largeCorn{javascript_inputOutputEval_{commandpanels_data-upgradepoints}==0,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem,{commandpanels_data-largecorn}==100,MaxLevel},{math_0_31-{commandpanels_data-y}*9},{javascript_eval_{commandpanels_data-largecorn}!=0,upArrow,air}%
at the end
missing a } ?
or an extra ?
had _{math_0_31-{commandpanels_data-y}*9} at the end
And that wasn't even needed in the first place
uh okay
I do see that {javascript_inputOutputEval is not closed in your previous placeholder
I'd recommend either asking someone to make you an actual expansion, using Utils shortucts, or even just moving most of the stuff into a Javascript since you're already are using it
wellll what I'm trying to do is pretty complex
I don't think I can move it all into one javascript
I mean technically it is, its all in the cornHoeIndex javascript, but the arguments for it are placeholders with placeholders, hence why I need the utils parse
see any missing {/} in here:
%utils_parse_javascript_cornHoeIndex_{math_0_40-{commandpanels_data-y}*9},largeCorn{javascript_inputOutputEval_{commandpanels_data-upgradepoints}==0,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem,{commandpanels_data-largecorn}==100,MaxLevel},{math_0_31-{commandpanels_data-y}*9},{javascript_eval_{commandpanels_data-largecorn}!=0,upArrow,air},{math_0_22-{commandpanels_data-y}*9},{javascript_eval_{commandpanels_data-largecorn}!=0,sweetCorn{javascript_inputOutputEval_{commandpanels_data-upgradepoints}<2,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem,{commandpanels_data-sweetcorn}==100,MaxLevel},air}%
?
huhhh papi parse dunescifye %javascript_inputOutputEval_{commandpanels_data-upgradepoints}<2,MissingUpgradePoints,"{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no",MissingItem% gives an error, that checkitem placeholder is causing it. If I make it a utils parse, it works fine
you definitely can
if you can do it with Utils, you can definitely do it in JS
send the error for that
issue in your js
mmm I see
the javascript uses eval(args[x])
its evaluating "{checkitem_inhand,nbtstrings:PublicBukkitValues..executableitems:ei-id=cornhoe}"=="no"
so trying to make it in one js, should I keep using the math placeholder?
for stuff like {math_0_40-{commandpanels_data-y}*9}
why use the math placeholder while you can just do the operations in the script?
kk
Hey I need help about my hacked account
i dont now what is worng
Hey, how would I obtain the ammo value from the nbt of this item using the CheckItem PlaceholderAPI extension? I've tried %checkitem_getinfo:mainhand_nbtints:ammo%, but this returns https://cdn.discordapp.com/attachments/1174820426912899183/1211031365093687408/image.png?ex=65ecb7d9&is=65da42d9&hm=70daec6e5e48b3b495361d32bdbde43645420db02e6b9b555e7db132bbea52e7&
This is the nbt data of the item:
https://cdn.discordapp.com/attachments/1174820426912899183/1211030523967963156/image.png?ex=65ecb710&is=65da4210&hm=e27e92ee34bddb512ad459a21a006ee02fa7f8174494b7943dc064fda6e582a2&
Whats the dangers of using the eval() statement in JS?
Remove things one at a time until the issue is fixed, then you have found your problem
i now that the probleem is i jsut need that tink just idk how to fix it
@flint ingot 
this is the discord the pluging sand me to
@short solar that was not addressed to you...
o
I've emailed them already and sent a request form but I just got an email from Clyde bot that wasn't helpful because I can't change the email back
🤷♀️ I wish you good luck
but this discord will be of no assistance to you
?not-discord
Ugh I see the issue here, spent a solid 2 hours trying to do this, and the issue is that the checkitem placeholder uses the ,, and JS doesn't like that
it breaks my entire thing
easy fix
pog it works! I compressed it all into one javascript placeholder as recommended
var list = ["air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air","air"];
for (i = 0; i < args.length/3; i++) {
if(eval(args[i*3])){
var numbersArray = args[i*3+2].split('|');
var output = numbersArray[0];
for(b=0;b<(numbersArray.length-1)/2;b++){
if(eval(numbersArray[b*2+1])){
output = numbersArray[b*2+2];
}
}
list[eval(args[i*3+1])] = output;
}
}
return list.join("|");
}
cornHoeIndex();```
Is JS supposed to look this messy 😭
is there a way to have placeholder inside of placeholder inside of placeholder
3 way
utils_parse
hey guys, could anyone help a noob out?
When I run /papi parse me %player_name% the output is %player_name%
The startup logs look fine to me.
Here is dump from /papi dump
https://paste.helpch.at/ihuxinekoc
# No placeholders are provided with this plugin by default.
ok ok, sometimes typing my problem out gets the gears turning...
where is player expansion ?
I realized after I typed my question that I may have to manually down some expansions
I think I'm alright now.
it working now 🙂
I have u problem with Expansion-player.jar
[03:27:06 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[03:27:06 INFO]: [PlaceholderAPI] Fetching available expansion information...
[03:27:07 WARN]: [PlaceholderAPI] Failed to load external expansion player. Identifier is already in use.
[03:27:07 WARN]: [PlaceholderAPI] Cannot load expansion player due to an unknown issue.
[03:27:44 INFO]: Carlos2025 issued server command: /papi unregister player
[03:27:47 INFO]: Carlos2025 issued server command: /papi reload
[03:27:47 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[03:27:47 INFO]: [PlaceholderAPI] Fetching available expansion information...
[03:27:47 INFO]: [PlaceholderAPI] Successfully registered external expansion: player [2.0.8]```
I have to do "UnRegister and then reload" for it to work and it's a problem because I have to do it every time the server restarts.
I am using paper-1.18.2 - Java 17
you may have multiple player expansion jars in your /plugins/PlaceholderAPI/expansions/ folder
or mayhe you're using the broken AnimaBossbar plugin
I only have one expansion in the folder
Author: LagBug
I guess there's yet another plugin that registers its own Player expansion...
send your logs
it'll be easier to find which one did
idk
Ok ok
Thanks
hello sorry to bother essentialsx sent me over to you guys and i wanted to see if you guys knew what is causing my issue i seem to be having a baltop issue and was wondering how i could fix it the hologram seems to be wrong and not doing it right i have images if needed
Do you have the "Vault" expansion?
you mean the vault plugin then yes
sadly that didnt fix my issue im replacing the jar to make sure they are up to date and seeing if that works
The baltop placeholders are a part of the eseentials expansion
Go to the expansions folder, delete any essentials expansion you have there and download the latest
so idk if i fixed it or not do you know how i can fix my tab placeholder it keeps showing only the %player_name%
Hey! I'm trying to get this command to run from a yml config.
papi cmdparse --null execute as 135efcbd-9be0-4733-8ca6-88ae0362b9e2 run data merge entity @s {CustomName:'{"text":"TEST: %parseother_{ImmortalRhyme4}_{javascript_fbcs_{objective_score_Test},{objective_score_Temp_InHand_Stack_Size_Count}}%","color":"red"}'}
It runs fine through the console but yaml formatting doesn't seem to like the % symbols, as it gives the error: Plain value cannot start with directive indicator character %
Is there any way around this?
send the yml file with the cmd
This is the only relevant section
Hello, I'm attempting to run check item's remove placeholders and am getting the error stating remove placeholders must be enabled in the config.yml, yet I am missing a config.yml for PAPI. I found the config on Github but it seems to be missing anything to do with remove placeholders and also I do not know which folder I should place it in within the plugin directory
Is there a placeholder that takes off the last x characters of a string?
Just made one via js
you should have a papi config, or your plugin is working incorrectly
I would suggest updating papi if it's outdated
Where would i find it?
I would also like to give you extra warning that you probably should not use the remove placeholders from checkitem for security reasons @austere hawk
That's why it was disabled by default in the first place
plugins/placeholderapi/config.yml
It's just a little server with my friends, but out of curiosity what security reasons?
cant i just permission block the papi commands?
No, they wouldn't/shouldn't have access anyway
ah well thank you for the help! ill def try and mess with the version/build and see if that helps
yep
What is your reason for needing/wanting checkitem remove placeholders? @austere hawk
I guess I never gave an alternative, but I would recommend just using the vanilla /minecraft:clear command
or, if you're using custom items, the plugin they come from might also have a remove command
Did you never find the placeholderapi config?
I just said "yep" without really reading lol
no its def missing but \o/
v odd
if you want to share I'm a little curious
haha the alternative would be sucking it up and writing my own plugin but rn im just messing with shit and i made this altar thing that adds enchants to items after a puzzle but its supposed to cost an item to use
im sure most of the issues r just from me using a shitty free hosting service but i plan on moving to a better one soon once im more financially stable
hmm, maybe, but that wouldn't really cause this issue
🤷♀️
but the vanilla clear command should work for this situation
I say should
it will
without a doubt
just has to have the right syntax
hmm i havent messed with any params for /clear before so i'll have to learn that
is there a way to make sure it only takes an unnamed item with no lore or enchants?
or to specify nbt values to match?
Hi. Does PAPI have a javadoc?
Everything you need should be in here https://wiki.placeholderapi.com/developers/
This is a wiki with guides, I need a javadoc for API reference, do you guys have an API reference, or are all the methods and classes explained in the wiki everything PAPI has?
Thank you
run /paper dumpitem, copy it, do /minecraft:clear playername pastePaperDumpItemOutputHere
hello, when I enter the commands they do not work, someone who can help me please
What command
for example I use /papi parse username %server_name% and the chat responds with %server_name% and not with the server name
Do /papi ecloud download Server
Then /papi reload
Then try it again
And did you actually type "username" or your actual username
there if it worked for me, thank you very much

Anyone know a placeholder to get the value from vanilla /data storage command?
Does placeholderapi work on bungeecord? because it doesn't seem to wanna load?
Hey, I have a question about the plugin I would like to create a placeholder for the AntiCheat Matrix for example something like (%server%) Since the developer of the plugin does not want to create his own placeholder for it, he recommended me to use PlaceHolderAPI unfortunately I have no experience with the plugin and do not know if something like this is possible to create and how:
An example of what I want to achieve is the following:
Matrix: Player XYZ Might be using KillAura on ( %server% Bedwars1)
hi
I can't get the Essentials Chat format to recognize the %deluxetags_tag% variable
Could someone help me?
format: '{deluxetags_tag}{DISPLAYNAME}: {MESSAGE}'
?tagess
I've followed these steps and it's still not working.
@junior musk Can you maybe help me
send your DeluxeTags config
uh, are you trying to use PAPI on BungeeCord? because that's not possible
No only on Spigot
then why do you need a %server% placeholder?
It's already working, thank you very much and discuss the hassle
hey! i asked for some help some weeks ago, it was about a placeholder for a lp prefix with custom prefix, it was working fine on my survival, but now it actually stopped working on my lobby, even throug im using the same exact config: https://imgur.com/a/zqwdr6F
I added the same exact expansion for both server, any tips?
the %img_owner% placholder works, so its not something releated to the texturepack
ping me for any replies please
Good evening I have a quick question, I use the essentials plugin and I put his afk placeholder in my dcp tab when a player is afk next to his nickname it writes yes and when this is not the case it says no and I'm trying to change it, does anyone know how to do it?
You use TAB? In tab config.yml placeholder replacements
here ?
placeholder-output-replacements:
'%essentials_vanished%':
'yes': '&7| Vanished'
'no': ''
Hi,
I'm trying to make a placeholder for waterfall?
@Override
public String onPlaceholderRequest(ProxiedPlayer player, String identifier) {
if (identifier.equals("coins")) {
int coins = coinsManager.getCoins(player);
return String.valueOf(coins);
}
return null;
}
It seems that whenever I try this, it can't find the PAPI dependency.
Wait.. is PAPI even working for Waterfall or Bungee?
aight
net.minecraft.server.level.PlayerInteractManager field "net.minecraft.server.level.EntityPlayer.e" with illegal data type conversion to int
/papi ecloud download Player
/papi reload
why cant i download the papi teams
/papi ecloud download teams
it says there is non
and how can i download the ecloud?
?
yeah i downloaded it
why isnt it working with my simplescore plugin?
im reloading it
its supposed to show the team that im in
send the link you get when running /papi dump
and what does /papi parse me %team_name% say?
does it say %team_name% or the actual team name?
😐
well the plugin simplescore
does it say %team_name% or the actual team name?
oh
this isn't a question you can answer by yes or no
gg
send your simplescore config
okay
?paste
the config.yml or the scoreboard.yml
?paste
I don't see anything wrong
hm
did you get errors in console? maybe when reloading SimpleScore?

by switching to another plugin like TAB 
Why is %bungee_total% doubling? im the only one online https://prnt.sc/L9h-29RCKI_D
Does anyone know if there is a free plugin to be able to make more combos in pvp?
Hello developers,
I'm facing an issue with the Deluxe Menus plugin. It seems that I'm unable to use purchase requirements in my Shop Cash menu for values above 1000. It works fine for values from 1 to 999, but beyond that, it's encountering some sort of failure. I would like to request a fix for this issue. https://prnt.sc/aq26Db-rLBem
Look for a RAW placeholder from your ypoints plugin
presuming that %ypoints_points% goes from 999 to 1K, not 1000
the raw placeholder should work
hmm, ypoints seems to only offer these two
%ypoints_points% - Returns player points.
%ypoints_formatted% - Returns player formatted points.
sounds like %ypoints_formatted% returns the 1K format maybe, but %ypoints_points% might be returning 1,000 instead of 1000 which also causes it to break
hmm, I can never remember if formatter works or not for this, but maybe you can use %formatter_number_format_:####_{ypoints_points}%
@hot relic
there probably is a way to make it but I don't know how, which is why I just end up using formatter_text_replace_,__ 😅
i love when i come to ask a question here i end up finding the solution myself the moment i start typing
i was trying to parse someones localtime %utils_parseother:[{username}]_localtime_timezone_{geolocation_timezone}% and i ended up using this
makes sense, I think I usually use string replace
but i think that requires config or smthn
nah it doesn't
well, formatter_text_replace doesn't, string_replacecharacters does
ye
does anybody know a placeholder that returns a players version?
Viaversion
what do I do then? I really need to resolve it today
try the formatter placeholder I sent, or the one Tanguygab sent
you'll need the expansion
%formatter_number_format[[locale]:[pattern]]<number>%
%formatter_number_from:<timeunit>to:<timeuinit><number>%
%formatter_number_round[[precision]:[rounding]]<number>%
%formatter_number_shorten_<number>%
%formatter_number_time[<timeunit>]<number>%
%formatter_text_capitalize_<text>%
%formatter_text_length_<text>%
%formatter_text_lowercase_<text>%
%formatter_text_replace_[target][replacement]<text>%
%formatter_text_substring_[start]:[end]<text>%
%formatter_text_uppercase<text>%
How do I use it?
I already downloaded the formatter
@mint fable
try
try
parse in chat
/papi parse me %formatter_number_format_:####_{ypoints_points}%
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%formatter_number_format_:####{ypoints_points}%'
output: '4'
deny_commands:
- '[message] &c&lSeu Cash acabou sinto muito :('
right_click_requirement:
requirements:
anything_here:
type: '>='
input: '%formatter_number_format:####_{ypoints_points}%'
output: '4'
deny_commands:
- '[message] &c&lSeu Cash acabou sinto muito :('
?
[19:35:45 WARN]: [PlaceholderAPI] [formatter] Invalid placeholder %formatter_number_format_:####_{ypoints_points}%
[19:35:45 WARN]: [PlaceholderAPI] [formatter] Cannot convert {ypointspoints} into a BigDecimal.
ah
try %formatter_text_replace_,__{ypoints_points}%
não deu o erro mas continua não funcionando
Didn't give the error but it still doesn't work
left_click_requirement:
requirements:
anything_here:
type: '>='
input: '%formatter_text_replace_,{ypoints_points}%'
output: '4'
deny_commands:
- '[message] &c&lSeu Cash acabou sinto muito :('
right_click_requirement:
requirements:
anything_here:
type: '>='
input: '%formatter_text_replace_,{ypoints_points}%'
output: '4'
deny_commands:
- '[message] &c&lSeu Cash acabou sinto muito :('
@mint fable
What placeholder can I use to get the name of a server? %server_name% returns "A minecraft server". I'm using Velocity
Edit server name in config, I believe
Papi config
Hi what params mean in the PlaceholderExpansion ?
And where i have to put the params ? Like "%placeholderIdentifier.params%" ?
public class SomeExpansion extends PlaceholderExpansion {
private final SomePlugin plugin; //
public SomeExpansion(SomePlugin plugin) {
this.plugin = plugin;
}
@Override
@NotNull
public String getAuthor() {
return String.join(", ", plugin.getDescription().getAuthors()); //
}
@Override
@NotNull
public String getIdentifier() {
return "example";
}
@Override
@NotNull
public String getVersion() {
return plugin.getDescription().getVersion(); //
}
@Override
public boolean persist() {
return true; //
}
@Override
public String onRequest(OfflinePlayer player, @NotNull String params) {
if (params.equalsIgnoreCase("placeholder1")) {
return plugin.getConfig().getString("placeholders.placeholder1", "default1"); //
}
if (params.equalsIgnoreCase("placeholder2")) {
return plugin.getConfig().getString("placeholders.placeholder1", "default1"); //
}
return null; //
}
}
I'm new with papi ^^
a placeholder follows this syntax: %identifier_params%
the identifier is what you have in your getIdentifier method, and params is what comes after
Ok i maybe miss that part 🤔
so in this example, you have %example_placeholder1% and %example_placeholder2%
Ok thx u a lot 🫶
yes
please help me if u can
is there a javascript where you can straight up parse javascript directly from the placeholder?
like rather than having a js file, it'd just be the placeholder
is there a placeholder for sup skyblock?
I want to show ranks via simplescore and I installed that and placeholderapi and it does not show %luckperms_prefix%
Is it at all possible to somehow make a placeholder that can show the TPS on a back-end server of a velocity network?
Even if I have to nest placeholders with the utils extension.
whats a tps
haha i figured it out
/papi ecloud
what uses %de_raw_player_balance%?
i figured it out thank u
im about to nut everywhere
this was a thing with the Groovy expansion (allowed you tu parse Java code within placeholders) but because it allowed exploits and people to use it to destroy servers, we decided to rmeove it from the ecloud
/papi ecloud download LuckPerms
/papi reload
yes I solved that a while ago lol
PAPI doesn't allow you to show the output of a placeholder from another server as far as I know
there are/were some plugins that allowed that, but idk if they're still up to date
Is there any exploits possible with the eval() code?
isn't eval just for math expressions?
nevermind, it definitely can do stuff
it's the same thing, it can run code
so yes, if anyone is able to parse the placeholder with their own code, your server goes bye bye
that's also partially why the JS expansion got unverified
I have no experience with resources packs
%player_health%/%player_max_health%
How can I round it?
now is 20.0/20.0 i want 20/20
%player_health_rounded%
THANKS 😘
How can i get sum of armor?
In that case is there a way to show the tps, RAM, et cetera for the "current server", because right now I just get the information for the proxy no matter which server I'm on in the network
%server_tps_1%
%server_tps%
%server_tps_1%
%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%
%server_ram_free%
%server_ram_max%
%server_ram_total%
%server_ram_used%
though PAPI is a Spigot plugin
proxy plugins can't access it, unless they have some kind of bridge like TAB or BTLP
I already use %server_tps% and others. Those are only showing the proxy.
I stand corrected. I apologize.
I'm thinking of the RAM.
which placeholder are you using?
Which...for some reason isn't server_
and which plugin are you using even
&fRAM: &b%memory-used%&7/&b%memory-max%'
I'm using a pre-built tab config, which is not exactly the best formatted
once you installed TAB-Bridge, you'll be able to use the placeholders here as well as other PAPI placeholders
Yes I have tab brdge on the back-end.
I'm working on the format on a stand-alone server, and moving the config to the proxy to see what it looks like on a back-end server. I have to do this because there doesn't appear to be a tab reload command on the proxy
then you can use those PAPI placeholders for your backend's RAM instead of TAB's %memory-...%
yea, I'm just made of stupid today.
I left off at two in the morning, and started again just a moment ago. I haven't had my morning spicy bean juice yet.
Sorry for wasting your time, Tanguygab
dw
Okay, another question.
I've been struggling to get the server time zone using %server_time_h:mm a z%, but is only shows UTC.
Is there anyone that knows the simple date format well enough to suggest how I can get it to show the time for the server's physical location (In this case, Eastern)
I think I know why it's showing UTC.
Because the host has the server's time set to UTC. /)_-
is there a placeholder for mob killed/block mined since I only found the statistic and it only gives me 0
You can probably use the %statistic_% set
https://wiki.placeholderapi.com/users/placeholder-list/#statistic
that doesnt work for me
It would give a number if it's greater than 0.
Try /papi parse me %statistic_mine_block:grass_block% and see.
Then mine a grass block (in survival) and check again
How can i get sum of armor?
I figured it out, I'll use %localtime_time_<timezoneID>% instead
does not work
Do you have the extension installed?
/papi ecloud download Statistic
Are there any WORKING placeholders that can check if PvP is enabled in a world?
the %world_canpvp_<world>% placeholder always returns false for me
still doesnt work
Hi, I'm looking for a deathcounter
Was asking in TAB Plugin and they delivered me here
Hi, is there some event that is triggered when some placeholder changes value?
^
thanks for the double useless ping
and here's SuperiorSkyblock's placeholder list https://wiki.bg-software.com/superiorskyblock/overview/placeholders/global-placeholders
Hello ! I have a big problem... My boss bar use a custom placeholder created with JSextension but, I think I have a memory leak.... https://prnt.sc/kWDtEOZu__Ys (The RAM is cap at 15GiB in my ptero but when I use my placeholder, the RAM continue to increase)
function food() {
return Math.round(parseInt('%player_food_level%')/2);
}
food();
It cause my server a crash when It hit my pterodactyl server memory limit...
How can i sum 4 variables?
is there a placeholder for mob killed/block mined since I only found the statistic and it only gives me 0
I already downloaded the papi for the statistic and I already parsed it, still doesnt work.
Hi, is there some event that is triggered when some placeholder changes value?
can someone help me with worldguard regions? there are 2 regions
and i want to show like navigation
Hello ! I have a big problem... My boss bar use a custom placeholder created with JSextension but, I think I have a memory leak.... https://prnt.sc/kWDtEOZu__Ys (The RAM is cap at 15GiB in my ptero but when I use my placeholder, the RAM continue to increase)
function food() {
return Math.round(parseInt('%player_food_level%')/2);
}
food();```
It cause my server a crash when It hit my pterodactyl server memory limit...
how can i edit the mine_block in statistic with command?
make sure you're using the latest version of the JS expansion on the ecloud, if you still get issues, try enabling use_quick_js in PAPI's config
You also don't need the JS expansion for what you're trying to do, you can just use the Math expansion with %math_0_{player_food_level}/2%
you can't
uh
there's no command for it
you either have to manually go in your main world's folder and into the stats folder or find someone to make you a plugin that adds commands to do that, unless one already exists
does anyone know if there is a way to show textures of items in chat? maybe using placeholders?
so use minecraft vanilla textures as a font
does anyone know how can i get a action bar to a plaecholder?
like how can i display a scoreaboard on a placeholder?
what
wait lemme show u
u see thiss https://ibb.co/rvsmZd9
yeah i want to display it on a plugin called simple score
it does a scoreboard sidebar next to ur screen
but i dont want to display my coins on my action bar
sorry i didnt mention what was i displaying earlier
yeah so i want to display it on my scoreboard
is there a place holder for it?
and plus the scoreboard plugin is called simplescore
use the placeholder for coins in the scoreboard instead of the action bar, idk what the problem is tbh
how can i use coins
for example can i add 100 coins if someone kills another person
or can i add it manually
this?
%simplecoinsapi_coins%
EssentialsX?
can you please stop replying to my messages when they are completely unrelated to your question and pinging me?
is there a placeholder for mob killed/block mined since I only found the statistic and it only gives me 0
I already downloaded the papi for the statistic and I already parsed it, still doesnt work.
Hello quick question does somebody know a Placeholder that tells in which player slot is a Elytra
sowwy 🥺
how would you go about getting the nbt int of an item with checkitem?
for example %checkitem_getinfo:0_nbtstrings:PublicBukkitValues..executableitems:ei-id=% would return the executableitems ei-id id
Where does %player_first_played_formatted% pull its information from? I ask this, because that placeholder is reporting that I joined my dev server 23/06/24 (June 23, 2024)
I deleted the playerdata thinking it was taking information from the file creation date...
Now it's reporting that I joined for the first time on 02/46/24 6_o
date_format: dd/mm/yy
Changed it to dd/MM/yy and that appears to have fixed it...
Edit:
For anyone searching for this in the future, it does indeed pull the data for this placeholder from the file creation date for the user's playerdata within the overworld folder.
mm is for minutes😅
How can show a different text in deluxe menu, when the placeholder is empty?
Will %changeoutput work?
https://wiki.placeholderapi.com/users/placeholder-list/#changeoutput
Who can I talk to from TeamVK, about the Enchantment extension throwing an error?
You would want to join vk2gpz's server. You should be able to find their discord from their profile page.
Hello everyone. Please tell me how to display the value of online players from multiple servers
I suppose it should be like this
%math_bungee_grief-1+bungee_grief-2+bungee_grief-3%
there are several modes and I want to display the general online mode and in the mode there are several servers
I have found a solution
%math_0_{bungee_grief-1}+{bungee_grief-2}+{bungee_grief-3}%
I cannot seem to find that user, unless I'm being totally blind.
Or Discord is being funny again...
Hey, does someone mind helping me out on why I am getting an error. Still new too this stuff.
http://luigical.me/images/IryqjWnTRo.txt
I want to eventually make it so I can do something like %javascript_enchanthand_LOOT_BONUS_BLOCKS% and it would give me the level of the fortune enchant, but for now im not even doing variables and just hard coding this in.
Here is the error I am getting, I tried it without the Enchantment. as well, but that didn't seem to change anything, appreciate your time! http://luigical.me/images/Screenshot_03_03_nZGZn5L5uZ.png
if u want the enchant level, u can just use %player_item_in_hand_level_<enchant>%
hello, is there a way to getting player's nbt value or bool?
i need to parse and print local player's nbt value
{"ForgeCaps":{"epicstat:player_variables":{"player_lvl"}}}
someone tell me is it possible?
Is there a placeholder for max food value of a player? i cannot find anything like that
i know the max food value by default is 20 but i'd rather have a responsive value in case the player gets more/less food points by any means
is it even possible to change the max food? o_O
i... don't know tbh but it doesn't sound like a far fetched possibility
it's not
really?
just checked and there's no maxfood in the Player class, only foodlevel & maxhealth
foodlevel being the current food point of the player i suppose
yeah
alright, thanks
and just in case, you don't know about any placeholder for burning player and frozen player? 😭
I don't see any
lul
ah yeah, no images
more placeholders for my Player-J17 expansion :D
ayooooooo
that would be awesome dude
i'm making a custom hud and i wanted to change the appearance of the health bar depending on the player status
i did wither, poison and absorption already
https://pastebin.com/eM4J1xaW what's wrong here?
how can i use this %unicode_<value>%
its not working when i use it on my simplscore plugin
then whats the correct format?
just a number
so i cant add these?
well its a custom font
so this?
E001 is the hex value for the unicode character that is replaced by your custom font
nope
still doesnt work
oh wait
it worked
but the color isnt right
oh nvm thanks
👍
i figured it out too
ya, gotta color it white
alr thanks
np
i'll change value to hex value
so you don't have to read the expansion description to see
No problem
@junior musk when you updated j17 with the placeholder we talked about yesterday, please do not hesitate to ping me, i'm highly interested ahah
and thank you, of course!!
I'll try later
🙏
%player-j17_is_freezing% & %player-j17_is_burning% & %player-j17_burning_ticks% & %player-j17_freezing_ticks%
https://api.extendedclip.com/expansions/player-j17/
I need a help
I downloaded placeholder api 2.11.5 but it's not working
I use in scoreboard but not working
😕
Does someone know a placeholder to remove , & . from a placeholder
Right now if i parse the placeholder i get the first thing i need the second thing
100,000 -> 100000 (What i need)
But I want it to be clean to use in deluxe menus
https://api.extendedclip.com/expansions/string/
%string_replaceCharacters_<configuration>_<string>%
and then in papi config once you have installed the expansion you create a part like this :
string:
replacements:
coma:
',': ''
otherwise, you can use the formatter expansion of you don't want to do it from config
%formatter_text_replace_,__{placeholder}%
yeah if it's just one char it's probably simpler
string is better to format multiple character differently i guess
yeah
Hey, I have a problem.. I installed PlaceHolderAPI 2.11.5 but when I download the expansions (/papi ecloud download), they install but when I do /papi reload nothing happens and the expansions are not active yet they are in the expansions folder. I tried to restart the server but nothing changed and even reinstalled the plugin either..
In the console no error is displayed
@storm sorrel send that over 
what did you try to download
Player, Bungee, Statistic, Vault
can you send a log where you are trying that?
as well as a papi dump if you can
?papi-dump
is there a placeholder for a players current biome?
%player_biome%
can you send a list of the expansions in your expansions folder? @storm sorrel
or try deleting them all and redownloading what you need
easier that way
i believe one of the expansions you have is causing all external expansions to fail
- Expansion-bungee.jar
- Expansion-player.jar
- Expansion-statistic.jar
- Expansion-vault.jar
I tried to delete the extensions and download them 1 by 1, the download for each is done correctly in the expansions folder, it is only by doing /papi reload that the extensions are not activated (still even after restarting )
I put it in the expansions folder but nothing changes, no placeholder is displayed, /papi reload and /papi dump do not return anything
ah so
hmm
what if you disabled the cloud in the config and restarted
might be having issues
very odd
oh, there is also a debug option if you want to set that to true
sorry, just noticed
No placeholders are loading (they are still in the expansions folder but still the same problem) x), I'm sorry, this is also the first time I have a problem with the plugin
I just saw your message, I'm doing this
Is there a way to use the output of a command as part of a placeholder, say I wanted to do a calculation %math_<whatever>{data get entity @e[type=minecraft:potion,distance=..4,limit=1] Motion[0]}%
not that I'm aware of @austere hawk
its okay you can tell me to just write my own plugin lmao
what?
im just trying to do the most overcomplicated things that would prob be fixed if i just broke down and made my own plugin haha
An expansion like that* doesn't currently exist, you can create your own if you would like
but not something we'd put on the ecloud
*An expansion that parses commands and returns the response
i would be very careful if you create that expansion though
seems like a very high security risk
as for what you're trying to do, I have no idea lol. So it might make more sense to make your own plugin, might not 🤷♀️
Sorry to bother you, were you able to see what my problem was? 😅
I have no idea sadly
internal class if you can include it, or external jar
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-a-plugin-internal-class
maybe can try dev build? https://ci.extendedclip.com/job/Placeholderapi/
I see this issue from last year https://github.com/PlaceholderAPI/PlaceholderAPI/issues/948
weird issue
idk what the cause would be
i was wondering if there was a way to call a username from an offline player.
Im setting up a hologram to call a rank prefix, and i found a placeholder from "otherplayers" to call a username. But when that player goes offline the tag dissapears.
also is there a way to call only a group prefix?
you can't get those placeholders for offline users, no
once the user goes offline the data that stores their rank/permission information is uncached
Hey I use Math expression with PlaceholderAPI, I know how to make the precision change according to what I need but I'd like to make it adapt itself if it finds a 0 after a comma. For example, if it returns 0.0100, I'd like it to automatically return 0.01 without having to specify it in the Papi formula.
%math_3:_{deluxemenus_meta_SELL_STRING}*{deluxemenus_meta_AMOUNT_INTEGER}%
I need help guys. How are you doing? Ive been 3 days searching for a solution to this problem: I wanted to divide %vault_eco_balance% by 1000. So that the product always is shown divided by 1000, so i add 3 decimal places. Thanks!
No
I don’t understand anything about his idea unfortunely
What is the code for a division ?
Sorry to bother you with this, I just want to warn you. I tried with Dev Build, it still doesn't work. I have another server on which it works, so I will try to reinstall and reconfigure everything to find out where the problem is coming from and report to potentially correct the problem. In addition the issues that you sent me have exactly the same problem as me
I found the problem! When I have the EssentialsX plugin (stable version or build), PlaceholderAPI no longer works
Don't worry, I'll check with EssentialsX support too
donno how well it'd be if it had symbols in the string
/papi parse DaisyEseyad %checkitem_nbtstrings:SkullOwner:={Name:"Owo"}%
/papi parse DaisyEseyad %checkitem_nbtstrings:SkullOwner={Name:"Owo"}% neither of those work
/papi parse DaisyEseyad %checkitem_nbtstrings:SkullOwner..Properties..textures;Value=eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDMyZjg1MGFmZmFjNmJiNzQ5Y2JiZGJhYjQzZTg1MzQ2YWE5YzJjNjA5MGMzYzYxNmJmMzY4NmQzZmY4MjlhNSJ9fX0=% always returns "no"
also triied : and .. where the ; is
i can't remember if skullowner info can be checked/compared
Could you hold the item and type /data get entity @s SelectedItem?
Send an image of the response
@deft wasp
/papi parse DaisyEseyad %checkitem_nbtstrings:SkullOwner..Properties..textures..Value=eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDMyZjg1MGFmZmFjNmJiNzQ5Y2JiZGJhYjQzZTg1MzQ2YWE5YzJjNjA5MGMzYzYxNmJmMzY4NmQzZmY4MjlhNSJ9fX0=%
What about this? @deft wasp
I noticed you had a ; instead of ..
Also, you might need to specify the material
so if that still doesn't work, add the material and try
I'm not positive it will work
if all the above doesn't work, try both methods again with textures....Value instead of textures..Value
/papi parse DaisyEseyad %checkitem_mat=PLAYER_HEAD,nbtstrings:SkullOwner..Properties..textures..Value=eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDMyZjg1MGFmZmFjNmJiNzQ5Y2JiZGJhYjQzZTg1MzQ2YWE5YzJjNjA5MGMzYzYxNmJmMzY4NmQzZmY4MjlhNSJ9fX0=%
/papi parse DaisyEseyad %checkitem_mat=PLAYER_HEAD,nbtstrings:SkullOwner..Properties..textures....Value=eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDMyZjg1MGFmZmFjNmJiNzQ5Y2JiZGJhYjQzZTg1MzQ2YWE5YzJjNjA5MGMzYzYxNmJmMzY4NmQzZmY4MjlhNSJ9fX0=%
both returned "no"
fixed mat=PL to mat:PL and still both are "no"
i think it only works with nested compounds, i looked at the github source code
i was afraid of this
Yeah, not really double nested
like the [{ i guess
and it's still in the issues as a feature request :L
ahh
could allow for something..0..something or even something..*..something
skbee said there was an issue implementing numeric lists as some nbt lists are weird. I am not sure what they meant by that tho.
idk about the nbt
but for skulls specifically was my plan
waitt
oh that's odd
it looks like i was going to add support for hdb but never did
would be interesting for it to be its own modifier
headtexture:<value>,<uuid>,<signature>
noteblocksound:<sound>
also color:<color> for armor and potions (and firework star)
seems complicated
yeah i blame bukkit for not giving an easy path to do player head stuff
Hello
Related to math papi expansion
I want to parse player_ping papi placeholder into it and using math to make sure it will only show 3 digits, so if someone has ping of 1500 it will show 150 (this is just rough example of what i need it to do)
this
i assume this would require changeoutput(?) which i don't want to use
because i will have too many nested placeholders if i use it
you can do nested placeholders with utils expansion
i know i know, i just don't need changeoutput in this situation
i would actually use math for otherp laceholders but i just mentioned player_ping as example to better explain
I don't really know what you want
ok so, this could be more simple
if player_ping placeholder goes above 999, i want to have it fixed at 3 digits (and max is 999)
nothing else than that, just capping to 3 digits
%string_substring_0,2_{player_ping}%
because sometimes it happens that my players have ping of 214... int max
Hold on
or negative int max (idk ok)
i did not say that
we can use changeoutput for the 999 thing, or just truncate it
i need this
that seems to be only option here
well there are 2 options there
do you have something else in mind?
%changeoutput_>=_input:{player_ping}_matcher:1000_ifmatch:999_else:{player_ping}%
that is the changeoutput one
and this is the truncated one
what would be more efficient, changeoutput or string in this case
i don't really care if player has 1500 ping at it shows 150
i assume String?
I can't really say, changeoutput is coded in kotlin
it looks real efficient
but you're parsing ping twice
so
string then
and using math would be less efficient than both
hi is it possible to do with java script extension like i got a placeholder here, %pinger_players_testplugins.com:25565% this returns the amount of players in a server, and this %online% returns the current amount of players in the server we are, so possible we could use java script to combine both of the placeholders like if there are 100 players in %pinger_players_testplugins.com:25565% and 20 in the server we are rn, itll show 120
Isn’t easier to just use the math placeholder
%math_(pinger_1)+(pinger_2)% etc
%math_{pinger_players_testplugins.com:25565}+%online%%
would work if %online% is parsed before papi placeholders, which I feel like it would be
if it isn't, then you can also use the server expansion for the local players
%online% isnt working, i do have server expansion installed
%math_{pinger_players_15.235.204.117:25580}+%online%%
might want to delete that
also you might want %math_0:_...
for 0 decimals
hi, is anybody aware of any placeholders that can be used to display active effect timers? for example, having it display a haste effect on the action bar etc
How can I delete old statistics? I want it to go back to 0
Guys, im trying to divide the %vault_eco_balance% by 1000. But its not working, this is my code: ' &7%vault_eco_balance%$ %math_/1000%'
What is the right code? Thanks
&7%math_1:_{%vaulteco_balance%}/{1000}
not working neither
%math_3_{vault_eco_balance}/1000%
Thanks!!! amazing
life saver
%math_3_{essentials_baltop_balance_fixed}/1000%$ is not working
idk why i did exactly the same, this is for a leaderboard on decent holograms
This is the full code line:
- content: '&a%math_3_{essentials_baltop_balance_fixed}/1000%$ &6- %essentials_baltop_player_1%'
aren't you missing a 1 at the end of the baltop placeholder?
yeah, you didn't specify the rank 1
for the baltop balance fixed placeholder
sorry for disturbing again, but the following line of code doesnt work on a holgram, its simply showing the letters, so something not working
- content: '&a%math_3_{%vault_eco_balance%}/1000%$'
I just want a hologram to show the players balance
And i have vault installed on PAPI
does it work in chat if you run /papi parse me %math_3_{%vault_eco_balance%}/1000%$ ?
with underscores before and after the 3, but it doesnt send on discord idk why
ok
%math_3_{vault_eco_balance}/1000%
hello, why is /papi ecloud download skript not working?
it is in the placeholders list
it's not verified
so it can only be downloaded manually
there's 4 of them for some reason, try one of them
ty
the one by blake is the right one
sadly can't use the -papi command though because the name is not the url
a custom faction plugin?
I thought I linked you the wiki
no, have you developed with java before?
what faction plugin?
ah, well
#development can help, but you'd really want to learn java
medievalfactions5 has placeholders
Hey ! For extension "ParseOther" the player need to be online ?
%parseother_unsafe_{guilds_master}_{luckperms_meta_guildcolor}%
Oh, thanks :/

that is a bit odd, yeah
we had this discussion with Naethan 2 minutes ago lol
About that? x)
offline players' meta 😅
#general-plugins message
Oh wow xD
you could try and reach out to the dev to add those placeholders tho https://github.com/Dans-Plugins/Medieval-Factions/issues he seems fairly active
he does say to reach out as well
kotlin 
If I understand correctly, after doing a few quick tests, I can't parse a player who isn't online, right?
you can parse placeholders for offline players, but not all placeholders support offline players
in your case, the %deluxemenus_meta placeholder relies on a Spigot mechanic which does not support offline players
OhOh interesting!
so the placeholder therefore doesn't support offline players
so... yeah, can't parse it for someone who's offline
LuckPerms' meta placeholders can for example
wait actually
no nevermind, I think they can't either

No it's luckperm meta in my placeholder x)
I remember trying it, and was like "oh hey, since LP can read meta of offline players with its commands, surely it works in placeholders!" and then got massively disappointed 🥲
Aha 🥲
I'd have to find a way to save a player's choice in a menu even if he's offline
well, if you just want to store it and not display it, you can use LP's meta commands
store it when online anytime, use when online
yep
and then when you want to display it when he's online, use the meta placeholdere
actually you can store it when offline too nvm
Actually, I need something to come back, in my case it's a color to change the color of the guild name :/
%parseother_unsafe_{guilds_master}_{luckperms_meta_guildcolor}% = %parseother_unsafe_NASTOUH_&b%
In ChatControlRed &bGuildeName I think it's a goner and my whole project will fall apart from now on x)
My placeholders dont seem to be working on citizens. I have the placeholder: %utils_parseother:[lDashi]_essentials_nickname% which should make it return the nickname i'm using. It does when /parse and I have both Utils and Essentials expansions installed but just doesn't work on my citizens
I don’t think citizens supports PAPI that way
Could be wrong
i had it working before, but i did a fresh install of everything including essentials and papi and just copied my citizens save file over
not sure what is different
did you have another plugin to add papi support to citizens?
Hello, how i can get player_time with placeholder api pls ?
like i want to know how many time a player spend on my server
/papi ecloud download Statistic
/papi reload
%statistic_time_played%
yea thx a lot i just find it on posts channel too
Hello everyone. I really need help, I want to check if the 10 slot in the player's inventory is empty. What should %checkitem_getinfo:10% it be equal to in order to check an empty?
ty
is there a place holder to show what is my play time
%statistic_hours_played% via statistic expansion
no this one is just for hours
ok
replace the hours with days if u want days
there is the whole list here https://api.extendedclip.com/expansions/statistic/
i have a problem but i cant send a pic
nvm
bad indentation of a mapping entry (43:7)
40 | 3: ''
41 | 2: '&7» &6&1Hours Played'
42 | 1: ' &7%statistic_hours_played%'
43 | - '&7&m+----------------+'
------------^
44 | - '&7&m------------------'
45 |
this is the problem
.
wut is the problem exactly
idk how to tell
this is the message that
and send the link for it
where
can i put pics in it
i rly cant explain without pics 🥲



