#placeholder-api
1 messages ยท Page 34 of 1
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
Its not something spesfic, even the example requriments_menu.yml dosent work on the execuation command of [console]
- '[console] give %player_name% GOLD_BLOCK 1'
send the menu
How can i uploud file?
if you looked at what @tender vapor sent 10 sentences above ๐
done it
thats the regular config guys if your example
each command from [console] dosent work no matter what config is it
its not a syntx problem theres problem with the doing stuff in the name of [console] none commands will work
not an error in the console
and not an error in the chat
and i got the latest version
what about player deaths kills
hi, whenever I want to join the server, I have to type /papi reload for player_displayname to load, can someon help me with it?
statistic_player_kills
statistic_deaths
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
those support offline players
should I send my logs here?
yes
all logs?!
latest.log
is it ok that i past it to pastabin?
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
pastebin works as well
remove AnimaBossbar
it registers it's own player expansion for some reasons and seems to be broken anyways, seeing the amount of errors it throws
use another plugin for bossbars like TAB which you already have
Someone is gonna help me or what ?
I dont get an error at the console for using that [console]
It dosent work
are u sure cuz i ma using this setPlaceholder with offlineplayer but its respond with empty msg
can you show your code?
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
what if you do /papi parse <player> %statistic_deaths%?
does it return the correct value in chat?
no
did the player ever join the server?
does the command work when the player is online?
and when he's on i can do this but when offline i cant
yes
then maybe it doesn't work
I thought it did, but maybe it doesn't actually support offline players
how can i make sure
thx
I have an issue where %server_online% is returning the incorrect amount of players. I've traced this back to a plugin that is using NPC's as some sort and in an ticket the dev claims that the plugin counting the players is in the wrong: https://gitlab.com/TauCu/modispensermechanics/-/issues/9#note_1593766530
Does anyone have experience with this kind of issues / is there already a fix available for the Server expansion?
Any ideas why this placeholder dont works from console? (but works from player using /papi parse me)
var max = BukkitServer.getOfflinePlayers().length
for (var i=1; i < max; i++) {
i += 9
var score = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%ajlb_lb_statistic_hours_played_"+i+"_daily_value%")
if (score <= 0) return i.toFixed()
}
return -1
}
getNextScore()
getNextScore()```
Hello, script plugins and plotsquared plugins do not work in the scoreboard for my aternos server. When I try to download it from Papi, it says there is no such plugin, it used to work 2 years ago
because you're using BukkitPlayer in the setPlaceholders, which returns the player instance, which doesn't exist for console
you could use null instead
it's probably built within the plugin now
Can you upload plotsquared expansions to ecloud for me?
.
the expansion is inside the plugin
install the plugin and it'll load the expansion automatically
no need to download anything else
does anyone have a template for an if else statement placeholder with a permission requirement?
Or perhaps a switch if thats more beneficial
The server expansion simply uses the Bukkit api, Bukkit#getOnlinePlayers and then calculate the size. If their NPCs count as real players to bukkit, that's on them 
if that's the case, then you might want to ask the NPC plugin's dev to make a PAPI expansion with a placeholder returning the amount of real players excluding NPCs
use the placeholder system from eco or tab
I understand, thank you for your answer
Elaborate?
smh :/ u are a support in eco and u don't know how u can make your own placeholders w the eco system in libreforge?
ask exan he knows
I've never used that feature legit never
L bozo :/
quit being sarcastic for once, it's annoyting kris
sorry sweetheart:/
it's okay just stop it.
oke pookie
hi
The PINGER expansion in the check_interval: 30, I want to know if it is in ticks?
Ive been always trying to find a better way of handling colors mostly, for example for ranks, so i can change them easily, ive been wondering how the performance of placeholders are, specifically javascript ones, because the idea i had is to make many javascript scripts for each color and then whenever i need the color of a rank forexample id call the placeholder, but for example for menus this would be like 20 times on a single load, every chat message, is it a bad idea?
probably not a great idea tbh
changeoutput mmight be able to do what you need though
not really sure what that is
Unless im missing a functionality seems a bit away from what i need
do you use luckperms
I more mean, for example we have 3 ranks and each with color admin: &c , guest: &7 , user: &4
Lets say i use these colors in like 20 menus and countless plugins, i want a easy way to change for example users color top &8
yes
you could store the color within luckperms meta I think
although, actually that might be an issue currently with dm
could i retrieve it with a placeholder?
yes
eh its any plugin unless u mean something else
but i would give it a try
even if you can't store the color &7 maybe just storing 7 could work
Still not what i mean
Well maybe it is
any idea how to grab a specific groups prefix and not the players?
/lp user/group <user|group> meta set <key> <value> [context...]
doesn't need to be prefix/suffix fyi
good to know
can be any meta you want, just namme it color
How could i retrieve the admins group meta data without having the admin group?
dont see it on LP wiki
ah man I don't think you can
buttt
I saw a good idea once
save all the colors to the default group's meta
like
color.admin
color.default
and then %luckperms_meta_color.admin% should work
for all players
interesting way to store data
but
thats a good idea
How is the performance over btw? Never have looked into it or ran into any issues
Alright will do ur idea, very good one
can't take all the credit, but no problemo
either way big kiss
Is there a placeholder for what block a player is in?
in or on?
%player_block_underneath%
thier docs are hella good should use them ;)
sorry if the ping is unwanted but any ideas to make something like this work? %luckperms_meta_color.%luckperms_highest_group_by_weight%%
Please respect the rules, be patient and don't ping staff members!
dont want to add the meta to each rank separately
you can try {} for the inner placeholder instead of %%
if it doesn't work, get the utils expansion and do it
Can you send the thing from the bot agian? Dissapeared dont know what the cmd is for the bot
nwm found it :)
%utils_parse_luckperms_meta_color.{luckperms_highest_group_by_weight}% very long one indeed, just for color :)
Okay apparently my chat format is so long its recognized as a link :)
Thanks for help Cj really apreciate it
I can't find a placeholder that indicates the current xp points. Does anyone happen to know one, or does no placeholder exist for that?
nevermind i found %player_current_exp%
hi, I'm used command: /papi ecloud download SpeedPerSec and get error: Failed to find an expansion named: SpeedPerSec
thats because it is not verified, you have to download it manually https://api.extendedclip.com/expansions/speedpersecond/
hello
how to parse raw placeholder value?
&4Test exactly like this
/papi parse me %placeholder% outputs colored one
u can use the utils expansion and the %utils_uncolor_{placeholder}% https://api.extendedclip.com/expansions/utils/
/papi ecloud download utils
/papi reload
is it possible to use placeholders inside of placeholders and to what extent? or that depends on per each expansion?
like can i use changeoutput and inside of it this %utils_uncolor_{placeholder}% (which as you can see will have {placeholder} inside of this utils uncolor + that will be all inside of changeoutput; is this possible now?)
and if it is possible, how? will %utils_uncolor_{placeholder}% become {utils_uncolor_{player_name}} inside of changeoutput?
also, is this normal?
https://imgur.com/4g1psml
whatever the {placeholder} i try, it always surrounds it with %
@sharp bloom ?
ooh opsie try %utils_uncolor_display_name%
probably {utils_uncolor_player_name}
idk what u r trying to make :/
gimme the specific placeholders
Is there a way to get the date when a player first joined?
Utils doesn't require the {} around the placeholder
%player_first_played%
I need help, I'm getting a "exception whilst handling plugin message"
This is the full traceback:
java.lang.IllegalStateException: java.io.EOFException
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:458) ~[guava-31.0.1-jre.jar:?]
at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:455) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCustomPayload(ServerGamePacketListenerImpl.java:3226) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.handle(ServerboundCustomPayloadPacket.java:37) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.handle(ServerboundCustomPayloadPacket.java:15) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$1(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1402) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:188) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1379) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1372) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at net.minecraft.util.thread.BlockableEventLoop.runAllTasks(BlockableEventLoop.java:114) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1506) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1228) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:318) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:337) ~[?:?]
at java.io.DataInputStream.readUTF(DataInputStream.java:583) ~[?:?]
at java.io.DataInputStream.readUTF(DataInputStream.java:558) ~[?:?]
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:456) ~[guava-31.0.1-jre.jar:?]
... 19 more```
I am currently running pufferfish 1.18.2
What could it be? Should I reinstall placeholderapi?
However, the placeholders work nicely, the problem is the error in console which I hate to see.
is javascript expansion safe to use?
i see it won't autocomplete when i type /papi ecloud download Java
for everything else it does
i know there was some exploit or something
why is it unverified? is the exploit still present?
Fixed by reinstalling
reinstall the Bungee expansion
it's not verified because it can indeed be used for bad things, but if use correctly or if you do small calculations and have your permissions an plugins set up correctly so normal players can't placeholders at will, then you should be fine
ok so i can use it for things like timers or whatever, and no other player can access it without permission
ok i thought something is very wrong with it and that's why it's excluded from being verified
thanks for clarification
so we must manually download/add it?
yeah
though I think one of the main point was also that Aternos didn't like that people could download the expansion and run code 
yeah understandable
yea i did xd
bungee expansion gives lots of errors idk why
how? ๐
is there a placeholder that takes off the end characters of a string? so inputting blue_concrete_powder would give me blue
https://api.extendedclip.com/expansions/string/
%string_substring_<startIndex>,<endIndex>_<string>%
null or --null?
--null is in the /papi parse command you run in game, you have to use null in JS to say you don't have any player instance
I have a question: why was the JavaSkript extension removed from ecloud?
it was not removed, it is just unverified
you need to download it manually from the ecloud
check Manual Download
when will he be checked and added to the team?
it won't
not rly, but u can write it yourself 
probably yes but with the nbt
ok but i not need nbt for durability, well i need like way to see if durability is higher than 1000. so far if i will do >1000 it will output yes even if it is not true.
Hey, i have a problem adding the "world" expansion. Papi gives me the error, that it cant find the extension named "world"
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#world
What can i do about that?
try the manual download
Sure, good to know there is a manual download
yes, the manual download works :D
Thank you for your help
What's placeholder for playtime in hours?
@sharp bloom I guess you can help out with this ;-;
%statistic_hours_played%
via the statistic expansion /papi ecloud download statistic
Yess
how can i make when you see not " damage dealt: 1000 " but " damage dealt: 1k " instead?
??
%formatter_number_shorten_<number>%
and the <number> can include a placeholder too
but idk if u have any placeholder that returns that damage :/
huh
wasn't it something with formatted?
i remembed
do i need to restart the server after that or not?
i did all that but nothing worked
it wont just magically format everything
but how can i fix it then
so it formats everything
How can we register placeholders that would be like "%<welcome/leave set >_welcome_description%" and "%<welcome/leave set >_leave_description%"
I have a list of all the sets and stuff, I just need to somehow find out how to get the first part
Does anyone know what placeholder api expansion shows the CPU usage?
so i just need to put that in scoreboard yml?
little bit confused by what you're trying to do, but all placeholders start with the provided identifier (Ex: Player expansion: %player_name%)
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
Bro can you help me about a menu in dm because the menu used in a premium project to sell so i don't want to leak code here?
no, sorry
I'm working on a system to have configurable welcome and join messages, and in the config I have this ```yaml
Messages:
explorers_expedition:
name: "Explorer's Expedition"
join:
description: "This is a test join message"
text: "gradient:#8c7a6b:#d2b48c:#8c7a6bCharting new lands, <player> arrives.</gradient>"
permission: "vampirismmc.messages.explorers_expedition.join"
leave:
description: "This is a test leave message"
text: "gradient:#8c7a6b:#d2b48c:#8c7a6b<player> sails to unknown horizons.</gradient>"
permission: "vampirismmc.messages.explorers_expedition.leave"
minstrels_melody:
name: "Minstrel's Melody"
join:
description: "This is a test join message"
text: "gradient:#6a5acd:#dda0dd:#6a5acd<player> strums into the symphony of our world.</gradient>"
permission: "vampirismmc.messages.minstrels_melody.join"
leave:
description: "This is a test leave message"
text: "gradient:#6a5acd:#dda0dd:#6a5acdThe final note plays as <player> exits the stage.</gradient>"
permission: "vampirismmc.messages.minstrels_melody.leave"```
I want a way to be able to have a placeholder with the name and descriptions of these
okay, just know that all placeholders will start with your identifier
so you could make it %mycustomexpansion_explorers_expedition welcome_description%
you'd have to split the parameters on a space ( ) so you can get the name first
ofc
paramArray = param.split(" ");
setName = paramArray[0];
paramArray2 = paramArray[1].split("_");
type = paramArray2[0];
field = paramArray2[1];
Hello i don't permission have to send files here how i can get permission?
some pseudocode @oak sail
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
@pearl holly 
you think this would work? java @Override public String onRequest(final OfflinePlayer player, @NotNull final String params) { String[] paramArray = params.split(" "); String setName = paramArray[0]; String[] paramArray2 = paramArray[1].split("_"); String type = paramArray2[0]; String field = paramArray2[1]; return VampirismMCPlugin.INSTANCE.welcomeMessages.entrySet().stream().map(stringConfigurationSectionEntry -> { if (!Objects.equals(stringConfigurationSectionEntry.getKey(), setName)) return "null"; return stringConfigurationSectionEntry.getValue().getConfigurationSection(type).getString(field); }).toString(); }
possibly, but I would cache the values from config into memory
how do I do that?
retrieve all the config info when the expansion initializes and store it to a field variable
then retrieve it from there when the placeholder is requested
otherwise you will be making a call to the config every time the placeholder is called
which could be multiple times per second
idk how to do that ๐
ok
%math_{bungee_serverName2}+{bungee_serverName2}[precision:0]%
[15:18:28 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[15:18:28 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{bungee_survivalsf}+{bungee_nether}%
[15:18:28 WARN]: [PlaceholderAPI] [math] Cause: {bungee is not a valid integer number.
[15:18:30 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[15:18:30 WARN]: [PlaceholderAPI] [math] Placeholder: %math_{bungee_survivalsf}+{bungee_nether}[precision:0]%
[15:18:30 WARN]: [PlaceholderAPI] [math] Cause: {bungee is not a valid integer number.
[15:18:36 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
servers: survivalsf and nether
why doesn't it work?
How can I fix this placeholder?
%checkitem_amount_<modifier1>,<modifier2>,<...>% is the example in the description of CheckItem Expansion.
%checkitem_amount_<totem_of_undying_>,<%metadata tag "exploder" of attacker%>%
%metadata tag "exploder" of attacker% is a metadata tag made in skript that returns the playername
the syntax changed, now instead of having [precision:0] you have to do %math_0_<expression>%
also make sure you have the Bungee expansion downloaded
remove the <>
how do i set the server: survivalsf and nether?
It's %checkitem_amount_mat:totem_of_undying% but how do I add the specifc player (%metadata tag "exploder" of attacker%)
I have no idea
the same way you did before
only the precision needed to change
Can I reset everyone's placeholderapi data for example players kill. Even after deleting all player's data in the world file it still didn't get deleted
Hey, was wondering if anyone knew the placeholder for displaying a players max health
like if he has 10 hearts it would show 10, or if he has 11 it will show 11
%player_max_health% ?
Does anyone know how to use the variable? progress?
Is there a placeholder for the block a player is looking at
or perhaps their fish location?
fish location?
How do i write this correctly so that the zmenu_argument_item processes. I can replace the placeholder with what it would return and it works but every thing iv tried i cant get that placeholder to return when inside the math and inside the nascraft placeholder.
"%math_1:_{nascraft_buyprice_{zmenu_argument_item}}%"
is it possible to lower the value of a placeholder? for example %statistic_player_kills%, if a hacker kills 50 people and i dont want that to affect anything, would it be possible to remove those from the placeholder?
Please respect the rules, be patient and don't ping staff members!
Thank You! you missed out the _parse tho after utils.
Hi, anyone know how to get total player online in "velocity"
in bungeecord i have to use %bungee_total% but in velocity what should i install and use?
https://api.extendedclip.com/expansions/player-j17/
%player-J17_block_looking_at:[distance]_[type|direction|data_[<index>|<key>]]%
You'd have to change the player's data in your world folder, I think it's the <PLAYER UUID>.dat files
I think this should work as well, as long as you have one of Velocity's feature enabled that allows for bungee channels or smth
bungee-plugin-message-channel = true
Where this config file?
Ah in velocity config right?
yes
Does anyone know how I can reset everyone's placeholderapi data for example players kill. Even after deleting all player's data in the world file it still didn't get deleted
did you delete the world while the server was shut down?
I didn't delete the world I only deleted the players data in the world files
And yes the server was off
I'm not sure how where it could be saved then
is there not any command to reset an API data to all players
Oh I understand thanks
I deleted the player data file and the stats file is there any other file I need to delete in the world folder?
the stats folder
Anyone got a fix?
https://paste.helpch.at/bujiyadela.swift
remove the _ from your identifier
also, the String in onPlaceholderRequest is not the entire placeholder but only the params
so you just have to check for level_pl, not societyunites_level_pl
Checking it out, but is it able to get the coordinates of the block I'm looking at? That's what I was needing
yup
I think
wait
wait don't tell me I forgot to add that
I forgot
๐ฅฒ
I'll add it tomorrow
๐ thank you very much
tan any idea how do fix this :/ ?
%math_0:_4*{utils_parse_checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_{deluxemenus_meta_craftplanks_STRING_wood}}%
aa %math_0:_4*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_{utils_parse_deluxemenus_meta_craftplanks_STRING_wood}% seems to work
nvm smthing is wrong now cause it returns 0

the %utils_parse_deluxemenus_meta_craftplanks_STRING_wood% returns wood
so %math_0:_4*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_wood}%
this alone works fine
so i guess its something in the utils that i am missing? :/
or mby combined with the rest it doesnt get parsed properly?
normally it would return an issue or smthing on console but i only get 0
smh smh i just had to use utils in the start 
gg
solved ?
yuh
Hello everyone, we are using a custom javascript code that @junior musk helped us write. We have ChatControlRed for chat formatting and it uses DiscordSRV to send messages from discord to in-game, however, this %javascript_getPrefix% placeholder shows as Error: Player is null when a message is sent from discord when the player isnt online. Is there anything we can add to the javascript code to fix this somehow?
function getPrefix() {
var donator = "%luckperms_prefix_element_highest_on_track_donator%";
var player = "%luckperms_prefix_element_highest_on_track_player%";
var tag = "%eternaltags_tag%";
// For non-donor players
if (donator === "") {
if (tag === "") {
// If no tag is equipped
return player;
} else {
// If a tag is equipped
return player + "" + tag;
}
}
// For donors
if (tag !== "") {
// If tag is equipped, return donator rank and tag
return donator + "" + tag;
} else {
// If no tag is equipped, return donator and player rank
return donator + "" + player;
}
}
getPrefix();
not really, this script depends on an online player so this can't work
I don't think JS even supports offline players
Is there a placeholder to check if a player has an item in their inventory
?checkitem
Command:
/papi ecloud download checkitem
/papi reload
Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.
And click here for the CheckItem wiki with DeluxeMenus example menus.
@austere hawk 
and more specifically %checkitem_mat:egg% will return if the user has eggs or not in their inventory, %checkitem_amount_mat:egg% will also return the amount of egg the user have in their inv
๐ Did you ever add the coordinates placeholder?
and it doesnt seem to detect water, which is what I really need
trying to get the coords of where the player fished up a fish
is there any placeholder to get the number of mobs in a world
Yeah
Only server.
btw what is the difference between %server_total_living_entities% and %server_total_entities%
oh yes
use the living
the entities will count armor stand
item frame
paintins
minecarts
boats
i need only monsters lol
https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/LivingEntity.html all known subinterfaces
declaration: package: org.bukkit.entity, interface: LivingEntity
ok thanks
how to i erase a placeholder data
Paper 1.20.4 is sometimes dropping this error: https://pastebin.com/65bJRw8d
it seems related to the javascript expansion? either update if u have an old version, delete it, or mby a js needs an update? idk one of these possibilities
1h,no sorry, I had a massive headache since yesterday, pain in the back abd everywhere in my body at the same time ๐ฅฒ I barely slept at all XD I'll see if I can add it later
I'll see if I can do that as well
ooof mood, i had an acid reflux, woke up at 4;30am and didnt sleep ever since :/
but i got tier 5 in the meantime ;3
also check this out #bot-commands message 
grinding for the helpful role
You should have gotten it by now tbf
I know some of you wanted a count up placeholder, so here it is ๐
wow very useful indeed
rather than using the wacky js
whats its format?
dd/mm/yyyy? or mm/dd/yyyy
same as for countdown
default is whatever is set in papi config, which is MM/dd/yy HH:mm:ss

Nono, take your time and rest up!
what is this abomination
why is that default ๐
blame clip
https://api.extendedclip.com/expansions/player-j17/
You can now get the x, y and z positions, as well as get fluids/sources
Ex: %player-j17_block_looking_at:10:fluids_x%
(10 is the distance, fluids means any fluid layer is taken in account, you can also use sources to only take full water sources)
โค๏ธ thank you so very much!
uhmm hello I use this plugin: Player Profiles
There are certain placeholders when a visitor opens his profile.
But the problem is that it lists the visitor's placeholder.
Is there a target placeholder for this?
I tried the ParseOther plugin and it still didn't work.
Is the target online?
You'll need to ask the PlayerProfiles' dev to parse placeholders for the target instead of the viewer
yeah
It captures the placeholder of the person who opened the menu.
example:
%mmocore_level%
my level: 10
Other player: 15
but when I open his profile it shows 10.
uhm, I thought maybe I could solve it with placeholder.
that's not really possible
How to reset a placeholder's data
which placeholder?
if its something built-in, e.g statistics, then it probably belongs to the playerdata inside of the world folder
yes the placeholder statistics, btw I deleted playerdata it did nothing
Please respect the rules, be patient and don't ping staff members!
How can I make a placeholder expansion that will send requests via http to the api and receive a response from it without delaying the main thread
run an async repeating task that makes the requests, cache the values and retrieve them in the onRequest method of the PlaceholderExpansion
pls help @junior musk
I don't know how they're stored
:-;
hi there, i'm trying to run this release https://github.com/Patbox/TextPlaceholderAPI/releases/tag/2.1.3%2B1.20.1 on a fabric 1.20.1 server, and the mod shows up during initialization, but no config files are created and no commands are available
we're not affiliated with that mod, https://www.spigotmc.org/resources/placeholderapi.6245/ is the PlaceholderAPI made by the HelpChat team (which is a Bukkit/Spigot only plugin)
o i see. my bad there
Hi there! I need to return a value in an NBT, and I tried using checkitem's getinfo but I can't seem to figure out the syntax for it. The few things described are very "yes/no" oriented
Is it possible to return a value? In this case it's just a numeric value
should be %checkitem_getinfo:<slot>_custommodeldata%
the tag in question is PublicBukkitValues..score:usage
replace slot with the slot number or mainhand or offhand
oh. nbt value
nvm
for some reason I was thinking of just custom model data
Heh it's alright, thank you though
is "mat" supposed to work with getinfo?
cause when I try it returns nothing
Acording to the github page, it should
%checkitem_getinfo:mainhand_mat%
try this
and see what it returns when you hold the item in your main hand
@mint fable any chance you can help here?
are you using the latest version of CheckItem?
I just updated a moment ago so I'd say I am
ah. we need the columns
columns?
%checkitem_getinfo:0_mat:%
bad english ๐คฃ
@turbid tide please
help
there is a statistics directory in the world directory
actually it is called stats
Alright with your help I've managed to return all NBT tags of the item, even though I tried to specify a path
@dusky thunder %checkitem_getinfo:mainhand_mat:% for the mainhand
Thank you, mainhand is not the thing in question. Trying to return the value of a specific NBT
still appreciated
Yea? I've gotten to the point of returning all NBT tags and their values, but I need a specific one
/papi parse me %checkitem_getinfo:0_nbtints:NBTTagCompound:PublicBukkitValues{"score:usage"}:% - currently the command I'm working on modifying
u trying to check for score from the executable plugins right?
/papi parse me %checkitem_getinfo:0_nbtints:PublicBukkitValues% does this get you any closer?
trying to find the usage in EI yes
Ah sorry I explained myself poorly. Every PublicBukkitValues tag comes from this string
which is the same result as the one you posted Blitz
I don't think you can check compound tags with checkitem expansion
from what I can see it only works with basic int and string values
I was thinking if you can do yes/no, you should be able to just flat out return the value though?
can u send me the usage from the item?
usage is 1991
%checkitem_getinfo:mainhand_nbtstrings:PublicBukkitValues..score:score-usage=1% try this
how do you do it for yes/no?
i ve used this for the variables, havent tried usage before
that one is described at the bottom of the wiki for checkitem
that doesnt use getinfo tho
Okay I'll check it out one moment
was just answering Blitz' question
oh
returned blank
Maybe %checkitem_getinfo:mainhand_nbtstrings:PublicBukkitValues..score:usage
I tried that already, it led me to the longer string I wrote
well, my knowledge really ends here.
That's okay, thank you very much though! You've gotten me so much closer
ah you might be very right about this, I just found out it says "yes" at any value, not just the specific usage the item has
omg i m dumb @dusky thunder kekw
its an int value
%checkitem_getinfo:mainhand_nbtints:PublicBukkitValues..score:usage=1%
boom
found it 
it returns all compound tags, not just the value
try this ^
oh wait I accidentally added a colon


but the usage is 1991
I got it
%checkitem_getinfo:mainhand_nbtints:PublicBukkitValues..score:usage=101% instead of score:score-usage
"101" is random
Thank you so much!
but i didnt ay score:score ;-;
^
oh it was quicker for me to just arrow up and modify sorry ๐
in-game
originally you said score:score-usage
is it possible to listen PlayerJoin event in external papi expansion?
sure
Hello
Would anyone know why my leaderboards arent showing all players from Placeholderapi
You can give Placeholder for kills in the arena itself and not in the general one? plugin Bedwars1058
Make the expansion implement Listener and PAPI will take care of the registration
hey man
you maybe have any insight on why this is happening?
No
Its strange, im the owner and its not showing me on the leaderboards
The leaderboards plugin might have a permission to hide players and ig you have it
%bw1058_stats_kills%
thahks
as Gaby said, it might be due to your leaderboard plugin. if you're using ajLeaderboards, here's how to prevent that: https://wiki.ajg0702.us/ajLeaderboards/faq#nobody-shows-up-on-the-leaderboard----
you got a buy me a coffee link?
oh thx
Please respect the rules, be patient and don't ping staff members!
nah
What is the place holder api of saber faction ? I need this pleaseโฆ.
Thx !
Any idea why I always ge tthis error on startup?
[23:54:43 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [23:54:43 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [23:54:43 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0:_{aureliumskills_power}-10% [23:54:43 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0:_{aureliumskills_power}-10% [23:54:43 WARN]: [PlaceholderAPI] [math] Cause: '{aureliumskills_power}-10' is not a valid Math expression. [23:54:43 WARN]: [PlaceholderAPI] [math] Cause: '{aureliumskills_power}-10' is not a valid Math expression.
This placeholder is on my scoreboard and parses fine, but why does it say it's invalid at first? Sometimes it's also messed up on the scoreboard too on joining and I have to reload the tab plugin to fix it
maybe it's under 0? and it doesn't return a negative value?
It results in 27
Like it shows fine on the scoreboard, I just wanna get rid of the error lol
probably for different users?
It's only me online dunno if that makes a differnece
try changing it to 10-aurelium
oh
well try the change and see idk :/
i ve had similar weird issues too
I'm gonna try delaying the scoreboard
I dunno if that'll help but maybe it's parsing before the placeholder registers or smthing
nope ;-; rip
yeah the {aureliumskills_power} doesnt get parsed
normally it works tho right?
like /papi parse me %aureliumskills_power%
when exactly do u encouter that error?
on start up? or randomly
When someone joins when the start starts
joins for the first time, or joins back to the server?
Joins for the first time since the server started ye
ye makes sense
probably the scoreboard tries to parse if faster than the aurelium has data on that user?
simply a guess tho, i dont have any idea
but it would make sense for aurelium to take 1-2 seconds to "create" a user
Does anyone know a placeholder that will repeat a character for defined times?
For example %repeat_$_3% would show $$$
I could use javascript and a for loop, but JavaScript isn't optimized
Do you remember adding smth like this to the string expansion @turbid tide ?
Nope. The expansion doesn't have this feature.
It does sound like something it should maybe
Yeah I can make a pr
๐ please do. Don't forget to update version please so I can just release it on ecloud
hey bliz, could u look at yourself the material: placeholder- and maybe open a github issue?
for example if u use placeholder-%player_item_in_hand% that item wont be updated if u re open the menu
unless u /dm reload
which wasnt the case in one of the previous dev builds
oh yeah I see why it does that
the material is parsed and then replaced
but when the menu reopens/refreshes, the material stored isn't a placeholder anymore, but the previous parsed output
ye weird :/
i noticed it yesterday with my enchant gui too, while i was trying to help someone displaying their slots
Looks like a bug introduced by accident
the "stone sword" is the main hand
i even tried 3 different methods to check if it was an issue w dm
placeholder-%parseother_{{player}}_{player_item_in_hand}%
placeholder-%parseother_{{player}}_{checkitem_getinfo:mainhand_mat:}%
placeholder-%utils_parseother:[player]_{checkitem_getinfo:mainhand_mat:}%
@sharp bloom wann test this build? Should fix your issue.
sure thing sexy
lemme backup my menus first
i just realized that my menus are even bigger in size than the jar itself 
I personally tested it with this:
'random_material':
material: placeholder-%string_random_DIRT,GRASS_BLOCK,DIAMOND_BLOCK,GOLD_BLOCK%
slot: 7
``` and whenever I close and open the menu, I do get one of those random materials
aight i ll test it w my enchant menu, since it used to be fine before the placeholder change
material: placeholder-%player_item_in_hand%
yeap all good now @turbid tide at least with that ^
Good to know. Thanks

%string_repeat_<times>_<string>% -> %string_repeat_3_$%

โค๏ธ yall fast asf
does anybody know if there is an placeholder which returns a specific nbt?
implement the Taskable interface in your PlaceholderExpansion class, and you'll get a start and stop method
ah
well both work I guess
?
I forgot about that, but Taskable is probably the proper way to do so
alright
thx guys
anyone have issues with bungee expansion on latest papi? %bungee_total% works fine but %bungee_servername% always shows 0
do u use the latest version of the bungee expansion?
appears that parsed placeholders have a lot of extra formatting, any way to get the plcaeholder stripped of color codes?
this is what I mean
I would like to print the value of testIntNBT, where the type of the tool in hand is NBT, which is an int.
Is this possible?
I've written this far, but I don't know what to do next.
%checkitem_getinfo:mainhand_nbtints:testIntNBT~~~%
Fixed with utils_uncolor
is there a way to make a number always 4 characters long? so %math_{player_health}% would return 20.0, or 7.00, but always 4 characters long
heyo cj89898 can you send me checkitem 2.7.3 when i do /papi ecloud update checkitem its still on 2.7.2
[PlaceholderAPI] Successfully registered external expansion: checkitem [2.7.2]
i need your fix with the escape chars
and escaping it with a \ the yaml parser has a mental breakdown
as far as i know in order for nbt check to work you need to pass in a material as well
%checkitem_matcontains:HELMET,inslot:39,nbtints:testIntNBT~~~=12345%
https://ezylang.github.io/EvalEx/concepts/rounding.html
i didnt really understand it so, this is what chatgpt said.
oh its not letting me paste the screenshot
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload or similar service to upload images/screenshots.
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#math
here it says precision, while in game the tab complete says decimals
but its %math_4:UP_3.14159%
that gives 4 decimal places, I need 4 characters total
so including the whole number 3
I need it to give 3.14 or 3.145 (ignoring the decimal)
not 3.1415 (4 decimals, currently does this)
yep it shows decimals, even though precision on EvalEx BigDecimal shows otherwisehttps://imgur.com/a/p3RfVzl
hmm what about rounding down with 4?
%math_4:DOWN_3.14159%
should be 4 numbers total right?
okay yeah i tried it thats for decimal places and not precision, yikes
i found this but its unlikely that yu want a whole other expansion for handling it
%formatter_number_[precision]:[roundingmode]_<number>%
yeah idk it doesnt look like it will work
hi there, sorry if this is long, i'm just going to try to explain as best i can.
i had a question about the local time placeholders, i was trying %localtime_timezone_<TimeZoneID>% which shows the date and the time, the timezone we use is America/New_York, but the date is in the dd/mm/yyyy format instead of mm/dd/yyyy format like it would be in New York ๐
is there any way to change that, or a different placeholder i should be using instead?
i noticed with %localtime_time_<SimpleDateFormat>% i can use EEE, MMM d, yyyy which is what i was wanting, and then i noticed %localtime_timezone_<TimeZoneID>,<SimpleDateFormat>% which i thought would be a combination of the SimpleDateFormat i choose and local time for the TimeZoneID i choose, but it seems to only be showing me the SimpleDateFormat i choose and not the time for the TimeZoneID at all, am i doing something wrong? I was trying:
%localtime_timezone_America/New_York,EEE, MMM d, yyyy%
where can I download javascript 1.6.0?
Check placeholderapi config.yml
oml, tysm. sorry ๐คฆโโ๏ธ
kotlin
Why that specific version?
well I need any version that works with java 8
Please respect the rules, be patient and don't ping staff members!
Is there any placeholder I can use to check if the value is empty and returns true ?
change output probably @lethal breach
Thank you thank you for the idea
Please respect the rules, be patient and don't ping staff members!
please help me, I made a js.I expected it to output is int, but instead it outputs floating point numbers. This is code. var sum = 0;
sum += parseInt('%bungee_BedwarsLobby-1%', 10);
sum += parseInt('%bungee_Hbedwars-1%', 10);
sum += parseInt('%bungee_Hbedwars-2%', 10);
sum += parseInt('%bungee_Hbedwars-3%', 10);
sum += parseInt('%bungee_Hbedwars-4%', 10);
sum += parseInt('%bungee_Hbedwars-5%', 10);
sum += parseInt('%bungee_Hbedwars-6%', 10);
sum += parseInt('%bungee_Hbedwars-7%', 10);
sum
Thanks everyone, I solved it, because I accidentally installed an extra version of the expansion
Use the math expansion @proven monolith much better
Got it ๏ผI will try it.Thank you
Please respect the rules, be patient and don't ping staff members!
How can I get the placeholder to see someones health with the playername before like:
%<name>_health%
%parseother_{<name>}_{player_health}%
does placeholderapi support 1.20.4
yes
How to apply placeholders with custom braces using the API?
PlaceholderAPI.setBracketPlaceholders(OfflinePlayer, String)
But where do I specify the bracket there is only 1 string parameter
ah
you can't modify the brackets
it's either %% with PlaceholderAPI.setPlayers(), or {} with setBracketPlaceholders
Hello is there a way for a backend server to retrieve a proxy placeholder? Example: i need to find a way of telling on which server other players are without using proxy plugins. Well i can use a proxy plugins but the information needs to be sent to the backend also so when i do papi parse me %server% for example it would tell me. I need it for a plugin that couldn't be installed on proxy but on the backends.
Without a proxy plugin to send the info to other backends, that's gonna be hard
and PAPI doesn't have any way to do that either way
There could be a proxy plugin but i need for it to send it to the backend not just to the proxy. Do you know any?
Use the proxy plugin to request the value from the server where the player is 
Proxy plugin requests %player_health%
Spigot plugin replies with 20
@broken locust can you try updating the expansion first, and if that doesn't work, please provide the exact placeholder you are having an issue with
รฑ
idk if im being understood, i want to know the name of a server or at least world (that could also come in handy) of player on one server while on another server but does plugin like that even exist?
there is a placeholder for the player world yes its in %player_world% in the player expansion
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
now for checking in which server a player is, i am not really familiar with the existence of such expansion
Help, my server says: Invalid signature for profile public key. Try restarting your game.
The %player_world% is good but it works only on the current server right? if i wanted the name of the world a player player is playing on another server papi wouldn't send the packet across the proxy right?
yeap only current server
eh i dont think it can send across proxy? but maybe there is a plugin that does that
where do i find placeholderapi for 1.20.4
latest should already work
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
latest is 2.11.5, right?
yes
thats an issue with protocol lib
[19:10:24 INFO]: [PlaceholderAPI] Loading server plugin PlaceholderAPI v2.11.5
it doesnt work
might need to use their dev builds, https://ci.dmulloy2.net/job/ProtocolLib/
alright ive put the supported 1.20.4 dev build on
oh that seemed to work thanks
let me just double check in game
any way to speed up expansion load? it takes like 10 seconds
Is there a placeholder extension that makes a leaderboard for random player things? Deaths, block breaks what not, i see a statistic one, but one that puts them in a leaderboard?
use ajLeaderboard plugin
%statistic_break_item% working but %statistic_break_item:coal_ore% not working, why?
break_block, break_item refers to fully using an item like a pickaxe
Showing "Unknown statistic 'BREAK_BLOCK'."
mine_block
Not working same error
Please respect the rules, be patient and don't ping staff members!
I saw and I tried these:
%statistic_break_item:coal_ore%
%statistic_break_block:coal_ore%
%statistic_mine_block:coal_ore%
But not working on Paper 1.20.4
yeah idk then, it should be fine 
and not working COAL_ORE
Im using PlaceholderAPI 2.11.5 but is it updated for 1.20.4?
Because some placeholders not working
%statistic_mob_kills%
%statistic_player_kills%
What does it say?
Unknown statistic 'mob_kills', check https://helpch.at/docs/1.20.4/org/bukkit/Statistic.html for more info
But this link is not working ๐
declaration: package: org.bukkit, enum: Statistic
Im not sure why the placeholders don't work and afaik this is the only report we got so far
Just showing this without any console error or any message
works fine for me
or maybe not
it doesn't seem to change at all
well tbf the mine_block stat has always been weird and broken XD
I solved %statistic_mob_kills% to %statistic_MOB_KILLS%
But BREAK_BLOCK not working again
facts
it randomly got back working for me for some unknown reason
Hello, I have a problem with a variable that won't let me download
It's the one from world, it won't let me download it, help me
Does the latest version fix this issue?
https://imgur.com/a/lsSZg2U
I have been getting some random console spams
your tabplugin is trying to parse an animations placeholder which requires a player and doesn't provide one
because the expansion hasn't been reverified since it got updated
idk why but noone has done so
I will do it later, is it yours?
So its the tab plugin issue?
nope
yeah
The plugin is not mine, it's just that since I saw it on the wiki I thought it could be downloaded with the command. ๐
Thanks!
it can if verified, but when an expansion gets updated, it looses its verified status (so we can make sure that the new jar is safe)
it was once verified and I see no reason why it shouldn't be anymore, unless the author left a malware in there lol
Hello, is there a placeholder for showing the name of a player who executed a command?
Example: %executer_player_name% did %command_executed%
There isn't
I do wonder what would be the purpose?
in what kind of plugin would you use that?
if it's a plugin that listens to commands executed, then they probably have their own placeholders for that already
Its only for a plugin that you can send as whatsapp messages, and when you send them it only show: (Player who recived the message) > Hello
Like, you dont know who sended it, it only shows YOUR name and not the sender's one
Roleplay Plugin Messages
It has PlaceHolderAPI support, when I contacted the developer he just said: There might be a Placeholder for that
I'm not sure I fully understand
the plugin is for sending messages to WhatsApp, right?
and you want to get a command executed from where?
how do you know which command you want
Hello, we created our server for Bedrock players and Java players, so we also use geyser. With Java and Bedrock on the phone everything works without any problems. For example, as soon as we have a Bedrock player with the PS5 or a Minecraft for Windows player, the client crashes immediately if you enter a "/" as the first character. We have now been able to limit this to 2 plugins, which is Redischat in conjunction with Papi. If you deactivate it, Bedrock players can use the "/" without any problems. Unfortunately, there is no error message in either Bungeelog or the server log. Can you check what could be the problem?
I'm not sure how PAPI could affect that, it doesn't modify the gameplay in itself, it only provides tools for other plugins
Hear me out, When the SENDER sends a message to someone its all good, but, when the person who RECIVES reads it appear like this: (PERSON WHO RECIVED IT) > (message), I want a placeholder of the name of the person who sended it
ah
So it would look like this:
Send: (Person who sended it) > (message)
Recive: (Person who sended it) -> (Person who recived it) > (Message)
Now its clear?
yeah
Now, what Placeholder or plugin should I use?
you could use %player_name% -> %player% in the sender/messager's message, and %player% -> %player_name% in the receiver's message
%player% is from RoleplayerMessages and will show the other player, and %player_name% is from PlaceholderAPI and will show your name
Hello, I have a problem with a variable that won't let me download
It's the one from world, it won't let me download it, help me
download it manually from the ecloud
New info, it only affects the Windows Bedrock client. I also gave all the information here to the Redischat dev. One of the plugins must be causing it.
couldn't it just be a bug in the client?
or even on Geyser's side, since it works perfectly fine for Java clients
and you said it works for all Bedrock platforms except one
so it could be either a Geyser or client issue
I really don't see how PAPI or a chat plugin could make a client crash
Well, as far as I know, this occurs on 5 Windows Bedrock clients (different PCs and locations), so I don't assume it's a client problem. If we don't use a chat plugin or Bungeechat or CMI chat instead of Redischat, everything works without any problems. If Redischat is active without papi, it works too. therefore it is one of both plugins.
New server only PlaceholderAPi and Redischat client Windows Bedrock crashed.
Server Server only RedisChat everything works
Tronix and me are from the same server
PlaceholderAPI has nothing to do with bedrock. Try to contact the devs of whatever redischat is or what other plugin is causing issues.
Of course, GEyser has to be on it for Bedrock to work on Java
And Redischat says we should ask you
I or we think the error lies with Redischat
PlaceholderAPI is just a bridge between multiple plugins, it doesn't do much on its own, therefor it is very unlikely it can cause this issue. Also, bedrock problems are not our concern since we don't have any support for it ๐
We will then forward your statement to RedisChat
perhaps share the error
Error is good, it just crashes when you enter a slah, there is no error or I don't know where the crash report from Bedrock is on the PC
Maybe the issue comes from a PAPI placeholder that's used in RedisChat (which would explain why it doesn't happens when you remove PAPI), try to remove your PAPI's expansions folder, restart the server and try again
though I wonder how this could be happening
and what placeholder could cause this
good point
We also assume that, possibly an incorrect integration of the API, etc. Nevertheless, thanks for the quick help.
We will try with the expansions folder
No, deleting the extension folder didn't help. As soon as I type a slash, an immediate crash occurs

Whatโs the likelihood that an expansion that can print a players face (colors and all) could be made
0
dang, whyโs that?
well it depends
I was thinking like:
%playerhead_skin:[URL]_row:1_column:1%, this is a simplified example but yeah
it could be done 2 ways:
- some plugins send messages on join with your player head made out of lots of characters in color over multiple lines, a placeholder could just return that same thing
- if you want a small icon, as in 1 character, you'll need a resource pack
yeah so you're likely wanting option 2
and I'm not even sure if that's possible
Itโs not possible from what I know, only player heads can do that
because it'd mean that you'd have to update the resources pack everytime a player joins with a new character with that player's face and idk if that works
I was looking for option 1 specifically
then that could be made, though idk how xD
Thing is I donโt know how Iโd make it, maybe commission someone for it but Iโm not sure if anyone would take it haha
I know someone has an API for player heads in chat not sure if that could be used in it
๐คทprobably
uh, so you can update resources packs midgame
but yeah either way that's for option 2, and you want 1
probably wouldn't wanna do that but it's always an option
Thanks for the resource though, good info ๐
This is the API I was talking about
that's probably what I thought of as well
but yeah, if we just do the same thing as that plugin does, but in an expansion instead, you'd have the same thing
Yeah only thing is I can't but those heads in other plugins via a placeholder lol
I guess I don't technically need the placeholder, I could always just paste the result of that plugin, it's for a very specific use case so I'm still thinking i tout
from what I can understand, the magic starts here https://github.com/Ugleh/ChatHead/blob/master/src/main/java/com/ugleh/chathead/command/CommandHead.java#L68
Bukkit/Spigot plugin ChatHead https://www.spigotmc.org/resources/chathead.71036/ - Ugleh/ChatHead
I can try to see tomorrow or another day if I'm able to do anything
That'd be awesome
I did just try the plugin on a localhost and it's a bit rough, might be too outdated
it'd probably just be copy-paste, except that I'll make it so RGB actually works since 1.16 added that
ah lol
exactly what I thought of
rip rgb
the plugin hasn't been updated since 2019
anyways, I'm off to bed, see ya
why does this doesn't work? /papi parse me %math_1+27000[precision:2]% in math expansion
Hey, just wanted to let you know I got a solution
There is this plugin called ChatImage, and the developer is going to be working on placeholders, so you could do any image not just skins! Pretty cool if all works out
Oh okay thanks
Hi there, i have a very weird issue with a changeouput placeholder, and i'm not sure what is causing it
when my cient do /papi parse me %mmocore_cooldown_bound_1%,
he get the expected result of 0.0
but when he do /papi parse me %changeoutput_equals_input:{mmocore_bound_1}_matcher:noskill_ifmatch:0_else:{mmocore_cooldown_bound_1}%,
the output is "> mmocore_bound_1" instead of giving out the value of the mmocore_bound_1 placeholder.
am i missing something ?
it gives this output in both scenario whether the input equals "noskill" or not
type /papi parse me %mmocore_bound_1% @bronze shell
oh yeah sorry i forgot to precise that
the %mmocore_bound_1% placeholder is also working fine
wait, I'm a little confused here
you said
the output is "> mmocore_bound_1" instead of giving out the value of the mmocore_bound_1 placeholder.
the output is > mmocore_bound_1?
or is the output mmocore_bound_1?
it literally gives the text "> mmocore_bound_1", it doesnt give the value of the %mmocore_bound_1% placeholder
really, the output should be either 0 or the {mmocore_cooldown_bound_1} placeholder
ikr ๐ญ
it should not be returning mmocore_bound_1 at all
what you're describing should be... impossible
not all my client have this issue, it's specific to this client who did a fresh install of my product. i checked everything with him and everything is correct, down to the placeholderapi config
is your client able to come here for support?
I have to leave really soon, but somebody else can help for sure
what your client said seems impossible
sure i could ask him to, but i don't think he can help much more than me since he doesn't know how the product works in details
mmocore_bound_1 should not be returned in chat at all
and I have no idea where the > is coming from
same ๐ญ
i asked him to redo the papi command and to show me how he wrote it down in minecraft chat
I'll be back later if you still need help
but just to re-iterate: the output should be either 0 or the {mmocore_cooldown_bound_1} placeholder
NOT "the value of the mmocore_bound_1 placeholder" as you stated earlier
good luck ๐
yeye both output is what i'm expecting but im not getting any of those two
he sent me this screenshot
https://cdn.discordapp.com/attachments/1192936296553922691/1193989524808806400/2024-01-08_15.48.06.png
the "you are still trying to complete a command" message seems highly suspicious.. it's not something that comes from papi, is it??
you can see he wrote the command correctly, and that the weird output is shown in chat
idk what it is but that's probably the cause
the chat shouldn't look like that at all XD
okay so it's not papi
unlikely
time for the client to have fun and disable his plugin one by one
Bingo, it was a plugin called "CommandPrompter" that was breaking everything
it's all good now
how can it even do that XD
lol he was stuck in commandprompter
should've typed cancel
(I see they did, it definitely bugged lol)
very odd never heard of that with commandprompter ๐คทโโ๏ธ
same
how to remove kit perm I want everyone to have it not only people with permisions
how to make placeholder inside placeholder parsable in my plugin?
any code example?
it depends on the placeholders you use
some placeholders like Math support placeholders within them if you use {} (for example: %math_{server_online}+1%)
though not all placeholders support that, and they only support 1 level of nesting, if you need more or want to do it for placeholders that don't support this, you can use the Utils expansion as such: %utils_parse_placeholder1_{placeholder2}%
I mean I want to implement it in my plugin
you just parse placeholders normally with PlaceholderAPI.setPlaceholders(OfflinePlayer, String)
hello friends
I am looking for a mspt placeholder for my server, do you know any placeholders?
I use purpur and I will not use plugins like tpsbar or tabtps I will add this mspt value to a menu.
https://api.extendedclip.com/expansions/buycraftapi/ can I be verified pls
Your expansion has been unverified for inclusion of metrics since PAPI already includes it's own bstats. https://api.extendedclip.com/usage
I also noticed on spigot you pushed 4.6, but ecloud still has 4.5, just FYI.
||There also seems to be a lot of unnecesary classes in your exported jar file that weren't present in versions below 4.5||
is there any way to make a placeholder all caps?
Yea, the String expansion should do that
%string_capitalize_<string>%
So this would force %player_name% to return with all capitals %string_capitalize_{player_name}%
so instead of percents can I do {string_capitalize_luckperms_highest_group_by_weight}
Should do, give it a whirl
ok, will try out. thanks
The outside placeholders will need %%
?
depending on the plugin you're using it in
featherboard
Is it relocated in a package?
Please respect the rules, be patient and don't ping staff members!
I pushed 4.6 only on spigot because I can't push the new version on ecloud lol
I'll check for the useless classes. I moved the project to gradle so maybe that is the problem
I updated the jar and commited changes on github
hello
