#placeholder-api
1 messages Β· Page 40 of 1
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 π₯²
make a papi expansion that hooks into a plugin, otherwise probably not possible π
since they dont have any placeholders regarding these info
tell me about it
when i tried to do the same thing for superiorskyblock2 i failed miserably
Hello, is there a placeholder that can strip color code formatting from another placeholder?
With the Math expansion can I check if a placeholder (number value) is equal to or greater than another value?
in a placeholder? no
explain more :/ ?
@austere hawk
you do not need to use #1007620980627230730 for images
?imgur
just post a link
π
click and read what i said
no need to ask me what I said if you can read what I said 
don't
trying to make an expansion like the one you want would be the most backwards way to go about doing what you want lol
just pay somebody to do it
idk $5
there's no need to say last question lol, we're always here
there are always more questions
π
it's all volunteer
I'll respond if i want
π€·ββοΈ
that sounds like a custom plugin or something
maybe a skript but idk, I don't use skript
but I am off for now
o/
imagine how many security flaws in expansions we are unaware of 
%utils_uncolor_<placeholder>%
like that utils/parseother, very spooky scary stuff
https://ezylang.github.io/EvalEx/references/functions.html
%math_IF({placeholder}>={placeholder},1,0)%
we are aware of all
π
all verified ones
oh so there r more besides these 2 ones
well checkitem
everything has security updates
so
all g
hense
unsafe
oh not added to utils list yet but
and yet one of the best expansions :/
just when you actually need a placeholder, not an argument
yes, see unsafe parses placeholder
but the regular does not
mhmmm
||so if you parsed a deluxemenus argument placeholder into it instead of a player name...||
ok really gotta sleep
o/
gn!
ye?
im making a papi expansion. What dependancies are there?
the wiki does not explain that, as far as i can tell they have the same dependency as a spigot plugin?
im making a standalone expansion
The only dependency is papi
If you need the api of another plugin, you add that too π
good to know, but what about the fact onRequest is an offline player
wouldn't I need bukkit too?
Yes.. I though it is obvious you need spigot for anything
idk what this papi stuff is π
Returns yes and no or what?
I think it'll return 0 or 1 for false or true
try it in the /papi parse me <placeholder> command and see by yourself
you'd need to learn Java first
and your request barely has any info π
placeholders for what?
which placeholders do you want exactly?
? 
doesn't load the img 
might be my school network
for f enemies & allies, would it just be the list of player names?
you can't
XD
yeah that's what I meant mb
ah
nah don't
I get it
π€¦
Hey, anyone knows
why Formatter is returning too many decimal numbers?
this guy is having same issue
Heya! For some reason, the ecloud seems to be inaccessible on one server whereas on another it's perfectly fine for me.. what's really strange is that both servers are identical and the ecloud only sometimes (really rarely) loads correctly on the other server.. What could be the cause of this and/or how can this be fixed? π€ (Please do drop a ping if you have any ideas regarding this)
It's really weird! The expansions I have are 'Bungee', 'Pinger', 'Player', 'Server' - all of which work perfectly on one server but not on the other. (Both servers are identical in terms game version, plugin version and even configs)
One thing to note would be that commands such as /papi dump or /papi reload don't run on the faulty server - it only registers internal expansions
@austere hawkwhat's your Java version?
@austere hawk
%medievalfactions+_enemies%
%medievalfactions+_allies%
%medievalfactions+_description%
%medievalfactions+_lews%
if you get an error because of the java version, let me know
Just remembering
some of us are having the same issue so I suppose it's an expansion issue
So basically I created a blank java project, add PAPI and Spigot dependancies. How do I compile it
what does it return?
and did you get an error in console?
/papi dump
you didn't put the jar in the expansions folder?

btw I think I didn't add a check for when you don't have a faction
let me add that
oh you want the leader too?
I can do that
no lol
you'd have to decompile it first
but I'm posting it on github rn don't worry
there's a few apps and websites that do that
for apps, there's recaf
and for websites, I use those when I'm on phone and don't have access to my PC, I just take the first one 
lul

it shouldn't be, unless you're using a plugin with a code just as weird as mines, and unfortunately for you, Medieval Factions fits exactly this criteria XD
I can't even find a simple method to find the leader
I'm searching through the /f infon command's code but even there I can't find it XD
yeah you already did earlier
"/papi ecloud download skript" when i do this command it says it failled to find it
o alright
why is onRequest not called in my expansion
canRegister works but onRequest is never called
well rn it's java @Override public String onRequest(OfflinePlayer player, @NotNull String params) { plugin.getLogger().info("GOT REQUEST: "+ params); }
send the whole class
also you're not returning anything
so this shouldn't even compile
there is more to it than that
although it looks like
Naethan had you make it
whatever
uh?
assuming there's only 1 member with the role owner, yeah
if there's multiple, it'll just break 
which nickname plugin? Essentials?
/papi ecloud download Essentials
/papi ecloud download Utils
/papi reload
%utils_parseplaceholder:[{medievalfactions+_members_with_Owner}]_essentials_nickname%
[] is just to get the zone where the placeholder is
and {} is because we can't use %% within a placeholder
send the error

are you using the latest jar I sent?
send the full error
?paste
isn't there more in the console?
that's not the right jar
redownload this one #1216608242491461724 message
maybe you have multiple jars?
send the full error again

do you have a faction?
then idk what went wrong
oh way nvm I get it
idk why it does that but I think I get it
uh
idk how to explain it
oh
it's not what I was thinking actually
I'm just super dumb
I was using ByPlayerId instead of getFactionByFactionId

did you post the source code somewhere for that?
u r the best
i wanna use it as an example to try and do some things with ss2
no? i just said ss2 ;-;
i want to do(try) things for skyblock
blank and a space are different things
/papi parse me .%placeholder%.
if the . are next to each other, the placeholder returns an empty string, if there's a space between them, then there's a space π€·
/papi parse me %medievalfac...%
/papi parse me %utils... %
which one?
oh that's what you meant
what does the Utils placeholder return? and what about the servervar one with your factions name directly and not the placeholder?
won't work
what does the utils placeholder return?
yes
yes

you can't use placeholders directly within commands in your chat bar
unless you use /papi cmdparse
yeah
I'm not sure why
can you send a screenshot of the medievalfac placeholder & the exact cmd you ran, for the Utils placeholder?
what code?
seems fine
that won't really do anything
I'm completely lost
I don't understand why this doesn't work
but that's what Utils fixes
Utils allows the use of nested placeholders in placeholders that don't support it
I don't see why it would
you're using the same faction placeholder in the /svar cmd and in the ut8ls placeholder
so it should be fine
I'll check again when I'm on PC

did you change something?
are PAPI placeholders being replaced off the main thread? e.G: if i want my extension to grab data from a web server - should I, when a placeholder request is made, fetch the http data and return it, or, alternatively, just return empty strings untill my data has arrived?
In this case, its a plugin i am implementing myself, hence the question
are you making the placeholder or parsing the placeholder?
im not sure where the difference is, i am making a place holder expansion using the API.
so you're creating a placeholder, that returns something
yes
parsing is when you use a placeholder in a plugin to display the value
oh, my bad, that makes sense
so for example, using %player_name% in a DeluxeMenus menu
regarding your use case, fetching http data should probably be done async yeah, so I'd implement the Taskable interface and use override the start() method to start a repeating async task that fetches the data from your webserver and stores it in a hashmap or smth
and then get that hashmap from the onRequest method
alright, thanks
Hello everyone, can someone help me how I can put the command to my icon, I explain:
I have an icon in my menu that is quests, the plugin that I will use is quests, which opens with /quests, I have to do so that when I click on it opens the quest.
Hi I want to make it so it shows the amount of player in a specific group and a specific gamemode to be shown
Is there any placeholder ?
Is it possible to temporarily add a value to a variable? (for example +2 for 1 day, +5 for 12 hours)
DeluxeMenus?
Hey there what is this error https://paste.gg/p/anonymous/f747f4fe3a4f491e933bd86e213f747b
i am also unable to download expansions
damn so u telling me all that time i could just use math instead of the rng expansion? i just found out about the RANDOM()
what?
just talking to myself dont mind me
β οΈ
i use bedwars1058 and it's proxy plugin. when i type /papi list it shows that there is bedwars1058 in the list and when i use decent holograms to show bedwars stats it shows 0 even if the phpmyadmin shows that there is 4 kills instead of 0, how do i fix this?
why post it again when you already posted it in #general-plugins and got your answer π€¨
I just thought I threw it in the wrong place.
you did, but you already posted it and got your asnwer anyways, so there was no point in reposting it
Oh I'm an idiot thank you...
https://tarkan.dev/tmgenerator
Why doesn't it work?
Hey, i just wanted to ask if there is support to skript, because in wiki there is skript section to download palceholder through command /papi ecloud download skript but it looks like it doesnt exist
i'll update the wiki
is there a plugin that has placeholder like %getmaterial_COBBLESTONE_SWORD% and will return Cobblestone Sword
wat 
ah
not really no
or at least I don't know of any, but there may be ways to do it by combining some placeholders
/papi ecloud download Utils
/papi ecloud download String
/papi ecloud download Formatter
/papi reload
%utils_parse_string_capitalize_{formatter_text_replace_{u}__COBBLESTONE_SWORD%
Hi someone knows answer this? I can give example img
No.. it gives smth like this #placeholder-api message
Ow oke
the _formatted placeholder is probably what you're looking for
yeah it's first_join_date
or first_played_formatted, both do the same thing
Yep but it produces same result as unformatted versions
uh, you used the first_join or first_join_date placeholder?
first_join is unformatted, the other 2 are
Both ya
U can see from msg i link how it looks too
Sure thing, meanwhile i will experiment with javascript approach bc i cant use millisecond
Ok tnx i will use this instead π
hi
townyadvanced_top_town_balance_n
This placeholder becomes invisible when added. The towny dev said it's your problem.
i can't download the luckperms with /papi ecloud download LuckPerms
can anyone help me fix this? https://imgur.com/a/zOacl8G
I tried to donwload the expansion and reload and it threw me this https://pastebin.com/0hTbm4KB
?
Yes, obviously I put it between %
%townyadvanced_top_town_balance_1%
It became invisible
When you place it in npc/hologram, the placeholder becomes invisible. Both citizens and decent holograms
Now when it's chat or scoreboard, it works well3
https://imgur.com/a/RAmZhv1 Why doesn't this work?
I used the command /holo create Start_5 &4[Owner] &r- ErrorHunter is Online: %parseother_{<ErrorHunter>}_{player_is_online}% but it doesn't work
there shouldn't be <>
@oak field
test placeholders in chat with /papi parse me %placeholder%
Hey!
I was wondering if anyone could help me get this placeholder using PlayerLists:
The placeholder to return the amount of ALL users (online and offline) with the %plotsquared_has_plot% = true
playerlist:
lists:
plots:
type: ALL
included: true
filters:
- PLACEHOLDER:%plotsquared_has_plot%=true
%playerlist_plots_amount%
keep in mind that not all placeholders support offline players, so I can't guarantee it'll take them into account them
try yourself with /papi parse <offline player> %plotsquared_has_plot%
if it works, then all good, if it doesn't, then I can't do anything about it
anyone know how to get javascript installed in placeholder api? the command doesnt work as it doesnt register javascript. i Went to a website to manually put the jar in the placeholder expansion folder. However whenever i execute a script in java script , it doesnt work. i do not understand what is going on.
i tried running simple static scripts to place into the javascript folder and call upon those scripts but it doesnt work
i ensure every file is placed correctly and that my /papi list would show my javascript installed
i spent 12 hours on this and i cant seem to make it work and theres no tutorial i can find so any help would alleviate my stress://
my server log doesnt give any error messages as well
yeah thats the one i downloaded but it doesnt seem to be working
here
did you add the file name of your scripts in your javascript_placeholders.yml file?
and script files should be in a javascripts folder (with a s)
wwait omg i had to?
whoa wait hold up lemme try right now
yes im aware of this
Does anybody know if there is a version of Skript expansion for PlacerholderAPI that works for 1.8.9?
Hi, I'm using chatchat and I prefix it with luckperms, but it's showing no formatting, no colors https://imgur.com/a/ES2gtPW
what?
you're asking how to change the code of the expansion
guidance on... changing the code?
this is support for placeholderapi and using placeholders
development is definitely where you want to be for coding things
Can anybody help me please.
you can see 4 different ones on the ecloud https://api.extendedclip.com/all/
if those all don't work then π€·ββοΈ
the one by blakegamez is the one used mainly
The one from blake doesn't work for me
do you get an error?
When i make a scoreboard in TAB and use variables it f*cks the server
then i need to remove the expansion and then restart the server
then it gets normal again
like PlacerholderAPI and TAB doesn't work with the one from blakegamez
lol
any errors though?
because if the other 3 don't work either, i feel this is the best bet
but you might need a custom one idk
gl
ajleaderboards
well it's quite a lot to do
you have to store all the values
uhh
i mean
is it only 3 placeholders you need to sort?
sorting placeholders is tough without a plugin lol
top 3?
but how many values are there
is it all players?
so that's the issue
you need to store all those values
into a list
cache it
in a database
then sort it and return it to the user
it's a lot of steps
optimum data management is what you want
ajlb is pretty good
now, if you're going to try to code a placeholder, you wouldn't need ajlb ofc
but, ykno
how can i trim % from the papi placeholder output
or to trim last character because it's always %
%formatter_text_replace_{ascii_37}__{placeholder}%
Does not work properly
https://prnt.sc/DJOPXGqUQ1fK
did you download the Ascii expansion?
sorry i'm stupid
works...
thanks a lot!
is there MSPT papi placeholder? i know there is TPS inside of Server expansion, but is there MSPT or a way to calculate it (via math expansion)?
do you use TAB?
%tab_placeholder_mspt%
otherwise idk
oh actually, spark might have one
uh
well it has placeholders, but idk if those are the right onesπ
that's a lot to work with, thank you! π
Hi, I have a question does the JavaScript expansion still exist? to work on java 8 ?
I need to make a placeholder that returns 0 if I don't have a bounty placed on my head because the Bounty plugin if I don't have a bounty placed
Everytime I loads the server, some placeholders arent working until I do /papi reload. I tried /papi parse but it's not working neither.
Video: https://drive.google.com/file/d/1iaEsovGWiwCMgSprMwScPYVmgFc3CdbT/view?usp=sharing
papi dump: https://paste.helpch.at/nasasufiro
Is there a placeholder I can install (with bungeecord), that I can make a placeholder where it tells me how many players are in a different server that I choose?
%bungee_<servername>%
What if thereβs a space? βParty_Gamesβ?
It would be the one that you set up via the bungee config
So would I put an underscore for the space, or just put a space in between?
Whatever the name is in the bungeecord/proxy config. Underscore. I guess just figure it out by using the placeholder.
I haven't ever had a two word server name... lmfao.
could anyone help ?
How do I do this on Velocity?
title: '&x&f&f&e&f&0&0&lTower Defense'
lines: # %formatter_number_round_
- '&6&m-----------'
- '&6Coins: &a%towerdefense_coins%'
- '&6Kills: &a%towerdefense_kills%'
- '&6Wins: &a%towerdefense_wins%'
- '&6Games played: &a%towerdefense_games_played%'
- '&6Highest wave: &a%towerdefense_highest_wave_survived%'
- ' '
- '&dExp: &a%towerdefense_player_exp%/%towerdefense_player_next_rank_exp%'
- '&dRank: &a%towerdefense_player_rank%-100'
- ' '
- '&bTowers built: &a%towerdefense_towers_built%'
- '&bTower upgrades: &a%towerdefense_tower_upgrades%'
- '&bTowers sold: &a%towerdefense_towers_sold%'
i tryed this %formatter_number_round_%towerdefense_player_next_rank_exp%% but that wond work do you guys now how to forment a placeholder number?
%formatter_number_round_{towerdefense_player_next_rank_exp}%
did not work but i found it
title: '&x&f&f&e&f&0&0&lTower Defense'
lines: # %formatter_number_round_
- '&6&m-----------'
- '&6Coins: &a%nf_###E0X_towerdefense_coins%'
- '&6Kills: &a%nf_###E0X_towerdefense_kills%'
- '&6Wins: &a%nf_###E0X_towerdefense_wins%'
- '&6Games played: &a%nf_###E0X_towerdefense_games_played%'
- '&6Highest wave: &a%nf_###E0X_towerdefense_highest_wave_survived%'
- ' '
- '&dExp: &a%nf_###E0X_towerdefense_player_exp%/%nf_###E0X_towerdefense_player_next_rank_exp%'
- '&dRank: &a%nf_###E0X_towerdefense_player_rank%-100'
- ' '
- '&bTowers built: &a%nf_###E0X_towerdefense_towers_built%'
- '&bTower upgrades: &a%nf_###E0X_towerdefense_tower_upgrades%'
- '&bTowers sold: &a%nf_###E0X_towerdefense_towers_sold%'
- '&6&m-----------'```
Hey!
I want to display %vault_eco_balance% in simplescore but it doesn't work because PlaceholderAPI has an error with Vault. I have already installed the plugin manually and added the expansion-vault manually. However, the console shows me that PlaceholderAPI has an error with Vault, but for unknown reasons. Does anyone know what to do?
Console log:
[19:49:04 WARN]: [PlacerholderAPI] Cannot load expansion vault due to an unknown issue
send your server logs & the link you get after running /papi dump
Hi everyone, is there a way to have a redstone signal if a papi placeholder equals a certain string (e.g. "Hello")
You can use ConditionalEvents to run a command that spawns a redstone block/torch or smth when a placeholder == something https://www.spigotmc.org/resources/conditionalevents-custom-actions-for-specific-events-1-8-1-20-4.82271/
all logs?
https://paste.helpch.at/ewahinejon.makefile
/papi dump
"Failed to post dump, check console console."
the error is from your simplescore config
tho idk why the Vault expansion isn't loading
try maybe redownloading it manually from the ecloud ? https://api.extendedclip.com/expansions/vault/
and replace the old one in /plugins/PlaceholderAPI/expansions/
ok, I'll try
It didn't worked. There's still the alert in the console and the think that is weird is that if I type in /papi ecloud list installed, thit doesn't list vault.
so all good?
yes, thank you for helping me!
Lovely. (Im not awake enough to figure out half the syntax ha ha)
I'm not on pc anymore but I can try to text it and send you a config tomorrow
I figured part of it out, I just need to figure out how to tell it how fast to do it. Right now for me it looks like its only doing it on config reload. Here is my config:
figurethisoutifitworks:
type: figurethisoutwhenitworks
conditions:
- '%pinger_online_localhost:25565% == &aOnline&r'
actions:
default:
- 'cancel_event: true'
- 'message: &7yo it works!```
Greetings, can i ask here about the usage of the API of Papi?
So well i'll ask and if im not supposed to ill move it on development :v So im trying to write a placeholder for one of my plugins, and currently i've set up the classes like that. I also register it on my onEnable, but when im parsing the placeholder i do not see anything, i just see the placeholder as it is.
https://paste.helpch.at/obujepobut.typescript
which placeholder did you try? syntax is %identifier_params% so it should be %joltingparties_glow_color%
and does joltingparties show upi in /papi list?
did you run /papi reload? when you don't override the persist method and make it return true in your PlaceholderExpansion class, /papi reload will clear the expansion
can you also show your plugin's onEnable method?
send the whole thing just in case
there u go https://paste.helpch.at/hiyuvelejo.kotlin
you have to call register() on the class after initializing it
π€¦ββοΈ
Apparently you do, and its shown clearly on the documentation for it :3
:D
Ty mate, and sorry for that big waste of time :v
dw
Yeap its working now as it should, thanks alot π
Can someone tell me why two placeholders with the same readings would show differently on the server?
nvm I figured it out. I was missing a number/letter in my hex code.
Hey there again, so from our yesterday's conversation, i did register a placeholder and it worked just fine, now i also tryed to make a second one. But from what i understand it registers only the latest one that has the .register() method. This is my method inside onEnable() if anybody could help me out a bit.
new PartyGlowPlaceholder(this).register();
new PingGlowPlaceholder(this).register();
Bukkit.getConsoleSender().sendMessage(JUtil.format("&3&l[JoltingParties] &7Placeholders have been registered!"));
}
else {
Bukkit.getConsoleSender().sendMessage(JUtil.format("&4&l[JoltingParties] &7Could not register placeholders!"));
}```
are you using the same identifier in both of your expansions?
also you could just make 1 expansion instead of 2
1 expansion isn't limited to 1 placeholder
Oh, i just do multiple of these checks?
if (identifier.equals("party_color"))
Hmm i think thats the usage i saw on the spigot page, could you lmk whats the general usage?
nvm now i understood
it's just a variable name, doesn't change anything
instead of identifier
yeah
yeah nvm, i thought you said about the string that you're comparing it to
Hi ! How can i with checkitem check if the player got one or more netherite hoe with max durability and no enchantments ?
is it possible to add a value to a placeholder, for example if i placeholders value was 5, could i make it 10 with a command or something ?
you could use ServerVariables https://www.spigotmc.org/resources/servervariables-custom-data-and-variables-for-players-1-8-1-20-4.107803/
it says the variable i put in doesnt exist even tho it does
did you set it with /svar set <name> <value> ?
ye
%statistic_mob_kills% and /svar set %statistic_mob_kills% 5
o
I'm not sure if the cmd parses PAPI placeholders but try this
/svar set kills %statistic_mob_kills%
and check what it returns with /svar get kills
oh actually you have to define the variable in the config too
oh thats prolly the issue
though I'm assuming that you want the variable to update according to the %statistic_mob_kills% placeholder?
ye
if that's the case, it likely won't work
it'll only be set once and won't update unless you run /svar set/add all the time
so that won't do it
alright, no worries then
another solution would be to use MC's deathCount scoreboard objective (which updates when you die and has cmds to change its value per player) and get its value through the ScoreboardObjective placeholder
/scoreboard objectives add deaths deathCount
/papi ecloud download ScoreboardObjectives
/papi reload
%objective_score_deaths%
and to change a player's score: /scoreboard players set <player> deaths <number>
or /scoreboard players add <player> deaths <number>
Is there a placeholder that gives me the index of a string seperated by a seperator?
so like getting the first index of test,hello,something would give me test
I think I got it
I was wondering if there was a way to display the irl time for the player?
Assuming not since that would be a lot of calculations as far as timezones and stuff
Who knows tho, worth asking
can't get what?
The usage of it
The author wrote some broken English so I can't understand anything
ah
all the prices are in the repaircostconfig
and the ranks
it checks your tool (that you're holding I presume) or your armor (that you're wearing)
v interesting, definitely made for a specific purpose
Assuming can only display Server Time
Not sure :(
That would suck if it didn't translate tho
Oh dope, so it is a thing??
but there is one issue you might run into
well
Wonder if there's a workaround
Oh ok
if other people from the host are also using ipapi sort of situation
Any idea as to why that is?
i'd try it for sure
the issue explains it all on github
After manually compiling the expansion with an added debug log, turns out the issue is rate limiting. Every response is coming back with a 429 error.
rate limiting = ipapi limits the amount of free api calls from ips
Right right
The key is "a placeholder from your ranking plugin", what is it?
Ranking what?
I might be extremely stupid for asking this, but what exactly is it asking me to input here for the date format?
%localtime_time_<SimpleDateFormat>%
How is it formatted exactly?
right
There is a link to the reference page
Thanks
full placeholder list fyi
How do you format %math_0_{statistic_mine_block}/2% with formatter expansion? Tried %formatter_number_format_{math_0_{statistic_mine_block}/2}% but it doesn't work
try with %utils_parse_formatter.... %
and don't forget to download the formatter and utils expansions
It worked, thanks
How do I send info from one bungee server to another such as playtime from one server to another with placeholder api?
you can't with PAPI
Know of a way or plugin that can do that? Really I just want playtime or placeholder to be shown from a survival server to be shown on my hub server on an image board
not really
Would someone be able to help me with this task?
Now I got a question.
For placeholderAPI, I do know that LocalTime Exists in papi, Yet I was wondering if there was something that acted like Discords placeholders.
I wanted to have someting set up where I have it print out Monday, March 25th, 2024 at 6:00 PM EST
I know I can just type it out without papi, but my thought was that on every Sunday, (in this case the 31st) It would change to display Monday, April 1st, 2024 at 6:00 PM EST
is there a way to do that?
%server_time_<format>%
https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
you can any of the listed characters in the format to display something
So that will act like a placeholder?
Okay. i was about to ask if that was it for the example
My other question.
how do I set it to be a specific time? Like I want that to show the 25th of march today.
and when it becomes the 31st, I want it to show it being the 1st of april
<t:1711404000:F>
Like that
And when it passes March 31st
it changes to
<t:1712008800:F>
What I mean is that for the auto updating there. is that even possible?
the auto updating is exactly why I recommended you to ask a dev to do this for you π
I see.
Again. I still dont understand. by doing %server_time_EEEE, MMMM ww, yyyy at K:mm a zzz% Wont it just show the CURRENT time instead of a preset time?
I'm not even sure if there's a PAPI placeholder that targets another date
yeah it does show the current time
yeah. I mean preset times like discord timestamps
yeah
I just wanted to give you the format, but idk if there's a placeholder for a specific time
i see. Thanks for the help though
I got a new thing that might work. I would have to manually do the command
Though is there a placeholder that targets "next monday" or soomething
Hey, whats the placeholder for playtime?
hello guys
some placeholders in menus are not showing after player disconnect
theres a way to fix that?
i wanna show playtime of players and im using %playtime_player% but its not working
also do i need to have the vault plugin for /papi ecloud download vault?
yes
and you need the playtime plugin for this one to work
one last thing
what plugin can i use for %vault_eco_balance%
alr thanks downloaded that
also /papi ecloud download teams dosent work
even tho it shows that on the github page
Hello. I installed papi server (/papi ecloud download Server) on my network servers and I am using %Server_Name%. The problem is that it always shows me "A Minecraft Server" and I don't know where it comes from, I check the different files and can't find it.
it's in your PAPI config.yml
Thanks!!
it's been unverified is why
Hi ive never really used placeholder api before and im not really sure what the options are here
i made a plugin that syncs real life weather data with the game and wanted to add placeholders for it so other plugins can acsess that data
so far ive only found "PlaceholderExpansion" and "onPlaceholderRequest" which doesnt really apply to my usecase as it takes in a player object
just disregard the player object @craggy bison
Yeah I realized that myself just a few seconds ago
thanks anways
have a good night!
yep, you too
is it an expansion you made within one of your plugins?
if yes, you need to override the persist method and make it return true
if no, send the link you get after running /papi dump and your console logs when you run /papi reload
I am using %betterteams_<variable>% but it dosent seem to be working and on the github page its saying "NO DOWNLOAD COMMAND" so im not sure what im doing wrong
i have the plugin downloaded too
yes it does
so it basically just shows %betterteams_<variable>% on the scoreboard instead of what team i am in
oh wait i replaced it with nothing
just kept it the same

wait one more thing
im using %vault_eco_balance% and i have 10 balance on my scoreboard but it still shows 0 as my balance on the hologram (im using decent hologram)
wait i fixed it
whoops
are you sure you're using the same placeholder in the hologram?
I have a question whether it is possible to use placeholders and the Placeholder API plugin on a proxy server (waterfall)?
how can i change a number to a HH:mm:ss format?
i need to format a number to time format
like 60 -> 1m
120 -> 2m
Formatter expansion might work
Can anyone help me with the bungeecord placeholders API?
I want to use placeholders in my java code within a bungee cord plugin
but it doesn't want to work because of ProxiedPlayer, how do I make it work inside bungee?
not have no way?
you can do like plugins such as BTLP or TAB did and make a bridge, an extra plugin for Spigot servers that, forward placeholder data to your Bungee plugin
okay, thanks
There is this scoreboard where everybody starts with a value of 0. After playing the game, each player's score increases by approximately 700 points. However, when I use %objective_scoreposlow_{dropper_score}_{1}%, I can only see entries with the value 0. Is there a way to display the correct score?
hmm
wouldn't that show the lowest value? unless there is NO value with 0, then that should be returning 0 I think
@jagged snow
i want to show month date and time what was the place holder for it
for example January 25TH 12:20
how do i do that
Hi another question ;_;
Is it possible to use a placeholder like Formatter to convert a value like 2h 2m 2s to an integer, like 7322 (seconds)?
Yep, that's my problem.
Here's how my tech works:
Player goes through the door; player counter scoreboard value increases.
Player goes through the end; player counter scoreboard value is set to player score scoreboard value.
Highscore: When player's score < player's highscore -> score = highscore
Here's the problem:
When the player plays the game for the first time, the highscore is null. However, you can't use:
if score @s highscore > @s score run scoreboard players operation @s highscore = @s counter
And due to this, I set the value to 0 with /scoreboard players set * highscore 0, and then I have to set the highscore to the score, when the player plays the game for the first time.
i don't think so, but here is a javascript placeholder
var time = "%playtime_time%";
var weeks = parseInt(time.match("(?:\\d*(?=w))"));
var days = parseInt(time.match("(?:\\d*(?=d))"));
var hours = parseInt(time.match("(?:\\d*(?=h))"));
var minutes = parseInt(time.match("(?:\\d*(?=m))"));
var seconds = parseInt(time.match("(?:\\d*(?=s))"));
var total = 0;
if(!isNaN(weeks))
total += weeks*604800;
if(!isNaN(days))
total += days*86400;
if(!isNaN(hours))
total += hours*3600;
if(!isNaN(minutes))
total += minutes*60;
if(!isNaN(seconds))
total += seconds;
total.toFixed();
Thank you so much!
Hi, I wanted to know if you could take the output of a placeholder of a plugin in a specific server and take it to another server (e.g.: %bedwars_status% returning "waiting" or "in game", on the bw-arenaName server, and this output should also come out in the bw-lobby with a placeholder which could be %bungee_arenaName_status%)
If I have not been clear let me know
is it possible to get a placeholder for the UID of a player?
%player_uuid%
Can I ask for help? Please ;/
please
someone answer this please
%server_time_<SimpleDateFormat>%
https://wiki.placeholderapi.com/users/placeholder-list/#server
Does anyone know if it possible to nest placeholders inside of placeholders. %customfont_mini_%ultimatefactions_faction_name%%
Im trying to nest %ultimatefactions_faction_name% inside of %customfont_mini_%
Utils expansion
I tried that, and it still doesn't seem to work. Am I doing smth wrong?
Show what you tried
wait
you donβt even need utils for that
%customfont_mini_{ultimatefactions_faction_name}%
Its too late at night for me to look rn, but I'm pretty sure I tried that and the placeholder just didn't work. The place holder ultimatefactions_faction_name only seems to work with %'s not {}
Expansion site says it should work
Have you tried just parsing %ultimatefactions_faction_name%
And %customfont_mini_Text%
Yes the customfont part seems to work just fine when parsed. I tried with {luckperms_prefix} as well and it just outputted {luckperms_prefix}. Of course it showed it in the mini font style
Interesting
And just to confirm this parses?
;o
Somebody know if it's possible?
Hi!
Having trouble with papi. Used it on previous servers and never had this difficulty. Papi will parse %% by itself, but other plugs wont return any API (essentials and discordSRV). Any suggestions?
Paste bin: https://paste.helpch.at/ezinepoziv
I realised I should add specific examples.
In particular Iβm interested in /broadcast functions and broadcasting %% such as players and worldboarder limits etc.
Both in game and through DiscordSRV
Im trying to add Papi support into my plugin. I created the separate class to extend PlaceholderExpansion and registered it in my onEnable and I see in the console it outputting "Successfully registered internal expansion: xxxx" but when I try to parse the placeholder it just spits out exactly what I typed. I even tried just putting in a random debug message to print and it doesn't show up. If you want code I can copy and paste just didnt wanna flood the chat with code blocks right away if its a simple thing im missing.
send your PlaceholderExpansion class & the exact placeholder you typed
public class Placeholders extends PlaceholderExpansion
{
@Override
public boolean persist() { return true; }
@Override
@NotNull
public String getIdentifier() { return Utils.getPluginName(); }
@Override
@NotNull
public String getAuthor() { return Utils.getPluginAuthor(); }
@Override
@NotNull
public String getVersion() { return Utils.getPluginVersion(); }
@Override
public String onRequest(OfflinePlayer player, @NotNull String params)
{
if (params.equalsIgnoreCase("blocks_broken")) return "xxxxx";
return null;
}
}
/papi parse me %blocks_broken%
/papi parse me {blocks_broken}
/papi parse me blocks_broken
tried all 3 of these methods
yeah
Well I feel silly. Yup that worked. Thanks
no prob
I'm looking for a placeholder that would change value after you hit an entity (player or mob), and change value again if you hit nothing within the last x seconds. i know that kind of stuff exists through plugin, but i was wondering if there's a similar system with placeholder expansion only
any idea? couldn't find anything by searching myself in the expansion list
Why this not work?
%changeoutput_equals_input:Null_matcher:{townyadvanced_nation_or_town_name}_ifmatch:Brak_else:{townyadvanced_nation_or_town_name}%
does this placeholder return Null? {townyadvanced_nation_or_town_name} @final shale
on the wiki I just read it says it returns blank, not Null
Could you write how it should be? Because it still doesn't work
%changeoutput_equals_input:_matcher:{townyadvanced_nation_or_town_name}_ifmatch:Brak_else:{townyadvanced_nation_or_town_name}%
@final shale
conventionally I would switch the input and the matcher, but it doesn't matter
Thanks for help β€οΈ
Overall, I have a slight problem with the placeholder from ScoreboardObjectives
MythicMobs:
` Skills:
- modifytargetscore{objective=straznik_glebin;action=add;v=1} @trigger ~onDeath
DeluxeMenu:%objective_score_{straznik_glebin}%`
The main thing is that I am trying to make it display how much a given player (e.g. how many sea creatures I have killed).
https://prnt.sc/yiWwvV5MX5IH
Bumping this Question
essentials doesn't support using papi placeholders, the expansion only provides them if that's what you mean
not sure about discordsrv
rip. Yeah ok
can try https://www.spigotmc.org/resources/chatinjector.38327/ for essentialschat if you want
What is the issue?
Thx for the help
yep np
Im trying to use a placeholder that will only works when the lore has the name Hi using Checkitem.
%checkitem_getinfo:%slot%, lorecontains:Hi%
is %slot% added in a custom build you have from deluxemenus? @nimble snow
or where does that come from?
getinfo retrieves the info of an item in the specified slot, is that what you want to do?
This, and yeah, im using it for executable items
i'm about to head off to bed
but what slot are you wanting to check?
the user's hand?
%checkitem_getinfo:mainhand_lorecontains:Hi%
sorry i should be more clear, this is my base placeholder argument but I need to add lore contains %string_containsIgnoreCase_{checkitem_getinfo:%slot%_nbtstrings:PublicBukkitValues..executableitems:ei-id}_executableitems%
This placeholder works but dose not have the specifications when it comes to lore, which i need
why
why papi show wrong x coordinates
π
game: -174
papi: -175
%player_x% -__-
my own plugins fault or confirmed bug?
It's not working as it should and with mythicmobs they sent me here (support)
i realised there are 2 placeholders now
XD
mojank made my life easyer or something
theres now xyz player
and xyz block
.
mojank now got 2 coordinates
now if u looking at XYZ
those coordinates are wrong
XDDDDDDDD
you need to look at Block
mojank makes my life easyer everyday
istg
papi reports xyz block
π π€£
Math.ceil()
xD
[12:33:14 WARN]: [PlaceholderAPI] Failed to download expansion information
java.net.ConnectException: Connection timed out
at sun.nio.ch.Net.connect0(Native Method) ~[?:?]
at sun.nio.ch.Net.connect(Net.java:579) ~[?:?]
at sun.nio.ch.Net.connect(Net.java:568) ~[?:?]
at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:593) ~[?:?]
at java.net.Socket.connect(Socket.java:633) ~[?:?]
at java.net.Socket.connect(Socket.java:583) ~[?:?]
at sun.net.NetworkClient.doConnect(NetworkClient.java:183) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:533) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:638) ~[?:?]
at sun.net.www.http.HttpClient.<init>(HttpClient.java:281) ~[?:?]
at sun.net.www.http.HttpClient.New(HttpClient.java:386) ~[?:?]
at sun.net.www.http.HttpClient.New(HttpClient.java:408) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1309) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1242) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1128) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1057) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?]
at java.net.URL.openStream(URL.java:1161) ~[?:?]
at com.google.common.io.Resources$UrlByteSource.openStream(Resources.java:70) ~[guava-32.1.2-jre.jar:?]
at com.google.common.io.ByteSource.read(ByteSource.java:296) ~[guava-32.1.2-jre.jar:?]
at co```
how to fix this
@glad glen
;/
bro can you help me
in??
You know what I don't even have a clue what he is writing here ;d
Maybe try re-downloading all downloaded PAPIs, then remove and reinstall and upload again
i did
can papi fix coords?
please
its inacurate
im not joking or troling
player placeholder shows block coordinates instead of player coordinates. They diferent by 1 digit.
use the %player_x_long% placeholders
done my scoreboard uses half of my screen now
math.ceil would be better solution
and will folow mojank implementation
%math_0_{player_x_long}%
I still have no idea what the actual issue is, can you please elaborate?
the math expansion does have a ceiling function
Trying to make it display how many sea creatures someone has killed
imma just put this here #placeholder-api message
Can you send the menu please?
What is currently happening and what are you expecting to happen?
I see the placeholder parses fine here https://prnt.sc/yiWwvV5MX5IH
Someone knows a placeholder for 1.12.2 that acts like the formatter placeholder? /papi parse me %utils_parse_formatter_text_replace_o_o1_oi% im trying this command in 1.12.2 with the 1.5.0 (yeah, it's the most recent version that i found for 1.12.2 and this placeholder only work for 1.6.0 + version ) and this don't work
this just return the %utils_parse_formatter_text_replace_o_o1_oi% for me when i use
I generally have something like this
question i downloaded DiscordSRVUtils but i am struggling after i config it but it says this [15:18:24] [ForkJoinPool.commonPool-worker-2/WARN]: [PlaceholderAPI] Loaded class org.jetbrains.annotations.NotNull from DiscordSRV v1.27.0 which is not a depend or softdepend of this plugin. which i dont understand
you can ignore that
so what can i do to use the commands on discordsrvutils
Someone knows a placeholder for 1.12.2 that acts like the formatter placeholder? /papi parse me %utils_parse_formatter_text_replace_o_o1_oi% im trying this command in 1.12.2 with the 1.5.0 (yeah, it's the most recent version that i found for 1.12.2 and this placeholder only work for 1.6.0 + version ) and this don't work
;o
does anyone know if i can strip the output of %craftingstore_donator_1% somehow to only display numbers instead of MinecraftName: Amount
What about this? https://prnt.sc/yiWwvV5MX5IH
It counted up to 9, and then it stopped
All the time it doesn't count anymore and I don't know - is it good in your opinion?
prestley, when u finish you mind helping me ?
if the value is not changing, then it seems to be a problem with this
you can verify if it's the placeholder though by using the vanilla commands to check the value
/scoreboard players get straznik_glebin I believe @molten junco
I'll get home and check
i'm not sure of the syntax, try to check in-game
should be something like that
I tried several syntaxes and there is no
Believe I tried many things + mythicmobs tried to help xD and finally they sent me to you guys
Admittedly, you probably don't have mythicmobs, but here is the config with deluxemenu and mythicmobs
what mc version are you on?
1.20.4 purpur
the command works fine on my game
/scoreboard players get cj89898 straznik_glebin
I can't translate what it's saying
what does it say to you
In my case it is unknown result array target : straznik_glebin.
?
And show ss what is displayed to you, please
what?
.
log
But it surprises me I have the latest version of placeholderAPI + scoreboard
spigot
okey
waiiit
did you put scoreboardobjectives in your plugin directory?
I thought I had to have it
that's an expansion
and you already have it in your expansions folder
so you can delete it from the plugins folder
but that error shouldn't be causing the issues
done, restart server
But it doesn't detect it for me, what extra did you do in general?
what do you mean doesn't detect it?
does it say that the objective doesn't exist?
is it in the list?
or does the list command still not work
https://prnt.sc/ninyKEhbBhv-
Generallyi is trying to create it somehow or something
how can I make the math placeholder return an int?
modifytargetscore{objective=straznik_glebin;action=add;v=1} @trigger ~onDeath
Maybe I have something wrong here
you'd have to check with mythicmobs again
no decimals? %math_0_...
Tysm
Okey, then I'm back to them again xd
%objective_score_{straznik_glebin}%
But this placeholder yes it is good?
yes, does it work if you change the score via commands? @molten junco
/scoreboard players set MrTobik straznik_glebin 3
modifytargetscore{objective=straznik_glebin;action=add;v=1} @target ~onDeath
And it should actually add +1 every time it kills
placeholder shows 3?
yes
ok yeah, ask mythic mobs why that isn't working
unless it just wasn't working because the objective didn't exist
it generally works
not sure if you've tested again
modifytargetscore{objective=straznik_glebin;action=add;v=1}
xD now it works, out of curiosity I checked and it works xd
yeah, it just never existed lol
welp
glad it's workin now
weird the commands weren't working earlier
~onDeath I'll add it more, because it currently counts every hit but that's how it works already
thanks
yep, np
I mean it started working when I removed @target/trigger
Then now do the same for the other 6 sea creatures ;d
thanks
Hello! How can I remake this code for javascript placeholder extension:
https://paste.helpch.at/jitawudake.js
are there anyplans to upload placeholderapi on modrinth?
can someone uhm tell me whats the palceholder for velocity proxy? like to show all the online players in the network or a server?
@sharp jay Unknown expansion.
Doesnt bungee one support velocity?
the expansion
I tried to use %bungee_survival% it shows 0
if it shows 0 it means that "survival" is not the correct name
make sure its the same as the bungeecord config name
Okay lemme check
oh wait do i have to install papi on the velocity plugins?
np π
what placeholder from which expansion returns the current server's name a player is based on how it is defined on proxy?