#placeholder-api
150650 messages · Page 116 of 151
Some way to get the player's timezone
He was banned for pinging someone. He cant reply lol
Apparently he sent logs and got banned for that
then he was probably using leaked plugins
Leaked plugins meaning what
a paid plugin that you download illegaly for free
Hello there,
Is there a placeholder api version for 1.7.10?
Im being told it was bought
send the logs again then
This page is no longer available. It has either expired, been removed by its creator, or removed by one of the Pastebin staff.
Ctrl+F "leak"
oh goodness
It is indeed a leaked plugin..
yeah
Im just a middle man in this lol
latest version should work fine
He says he inherited the server
Alrighty
if he resolves the piracy issue would unbanning him be an option?
🤷you should see that with the staff
Does anyone have any idea of how i could do this?, Change output or something like that?
well apparently you cant ping in here
He fixed it. Another dev added a leaked iris without his knowledge.
assuming you made %afk% return nothing when the player is not afk:
conditions:
nickcolor:
conditions:
- "%afk%="
yes: "%essentials_nickname%"
no: "%essentials_nickname_stripped%"
and in groups.yml
_DEFAULT_:
tabprefix: "%afk%"
customtabname: "%condition:nickcolor%"
Whyyyy you usin leaked PlUGINS
May i ask why?
Leaked plugins are not allowed
Hes aware of that fact. However, it wasnt him who had used the leaked plugin.
He has since resolved that issue.
How would we know that?
Could send you another log. For proof
¿?
If I remember correctly this is not possible seen servers require users to set their timezone via cmd
with a custom plugin or something
^
Have him appeal in the helpchat DMs on spigot
And how does the localtime expansion do it?
let me know may it is a thing
see*
sec
lol
ig it does work
type /papi ecloud download localtime
He says he cant make a post
no
whats it doing?
In the console I get that I can't take the timezone and use the server's
And they are not blocking ipapi.co
Getting the local time the user has with %localtime_time%
hmm ill ask but 99% chance its going to get denied
How are you running it through console?
I need to know what your trying to make
exactly
/papi parse me %localtime_time%
Open Minecraft
And when I do it in the console it appears
it needs to be ran as a player
Something about the fact that I use the default timezone (the one from the server)
its per player
Are you trying to see others player timezone?
You can use the parseother expansion
How?
No
I put it on the scoreboard anyway and it gives me the server time
%parseother_{player_name}_{localtime_time}%?
Localtime doesnt work
Yes
#placeholder-api message he told you how to fix this
Yes, I ask how I get the key and they didn't say anything
Could you tell me?
thats weird, did that eftn guy get banned as well
Could you give me an api key test please?
So you went on another account to ask this?
Youd need to request it
i am not eftn
i joined to see if i needed some help
i was about to ask a question
then figured out my own priblem
problem* sorry
Where?
And what is the difference of this the key test and normal
Normal seems to be expired or outdated I am not sure never used this it before
@primal wren have your friend rejoin they were both unbanned the first one needs to appeal
?
Where did I order it then?
Eftn and Jonathan
and Eftn?
no i just see that they left quickly
or banned
whatever it was
kicked i dont know
mk
fourth time i ask
I do not know I have never used it before its a 3 year old expansion
If you want something custom id recommend using our service channels to try to hire somone to make one
But in the Github it says that I heard one that did not pay
Wow, you have to pay for your expansion to work, interesting
The expansion was made by someone from the community
The one on github is free / ecloud but you need to get your own token because it seems like the one that was offered expired
If that doesnt resolve it it can be the host
I already consulted it and it is an expansion error
Pr that I have tried on several hosts
Im sorry I am out of solutions for this issue
But it's a key test, are you sure I have to pay for it? If not, you can ask your colleagues.
The key is free to generated as for paying I was saying for a paid solution by getting something custom made
its not required but an option
am sorry if ping but why eftn man get banned? it look like he did no wrong
Not going to disclose others punishment's
ok no problem man have a nice day 👌 👍
Hi
I making the Minecraft public server but how to add coins like for baying whit online payment and how to add online shop
I need developer
me try to find the destination of the appeal but i not find? wbesite broken??!
what?
Extermal say me to go this server and get support
makes no sense what your requesting
i thibk he asking you for money 💰
I whant developer to make Minecraft server
Oh wow, you are genius, i didn't remember that condition feature!, i instead used the %essentials_afk% and checked if it was = no, tysm!!!
Can you help free
Some help
I almost make the server but I have a problem how to add online payment and get player coins in game
use buycraft
Is vepsit
how do I make this plugin compatible in a network?
I know that this is placeholder-api support, but, seeing that you helped me this well, uhm, do you know if there is a TAB plugin support discord?, i tried finding it but didn't succeed, hmmm, What i want to do is to fix Tab Size and, to make players appear one on the side of the other instead of only on top, because when there is around 15 players online TAB covers all screen vertically
it does, but it's only available to those who paid the plugin
and what you want to achieve is somewhat possible, you can enable layout and change the order from COLUMNS to ROWS, remove all fixed slots and add a player group that covers slot 1 to 80
The only downside is that all tablist slots will be shown to the player, even empty, which I believe is exactly what you don't want, so not possible
if you mean that you want to use PlaceholderAPI on Bungee, that's not possible
there are some plugins like TAB that have a separate plugin to forward placeholders from the backend to the proxy, but without such, it's not possible either
do u guys know if its possible with the changeoutput to use 2 options? for example > 10 < 50 cause i want to show smthing that is between 2 numbers and idk how :/
(contains isnt an option for what i wanna do ig)
do you use TAB ?
TAB's config:
conditions:
yourCondition:
conditions:
- "%placeholder%>10"
- "%placeholder%<50"
yes: "yay"
no: "rip"
placeholders:
register-tab-expansion: true
then use this placeholder in DM
%tab_placeholder_condition:yourCondition%
hm eh i ll give a try to combine progress expansion with changeoutput instead :/
since i wanna make a progress bar myself
okay 🤷
i managed to do what i wanted with progress changeoutput and utils :d
how do i reset the papi statistics or any api in general?
isnt there an option in changeoutput for string doesnt equal? 
Yes, I don't like that you pay for something "custom" supposedly to fix the error, what if the error is fixed jaja
what
how do i reset placeholder api statistics?
Wipe playerdata in the world
i did that and it didnt work.
Main world?
i also deleted rhat
Oh, you are so kind for trying to help,
Ohh, i see why you said "who paid", i searched for it and it can't be purchased now, how sad, i would buy it only for the support lol
Yes, i have it configured as ROWS, but, players still don't appear on the side of the other... hmmm, i wonder why,
do i need to add a vertical max count amount or something?, so that players do appear one on the side of the other?,
And, sorry, i didn't get that "remove all fixed slots", do i have fixed slots?, sorry xd
And, hmmm, i get what you say, make it so it is always max width, right?... hmmm, i could see how that looks, only... i don't know how to do it, i'll try now
Thanks!
layouts:
default:
fixed-slots: []
groups:
players:
slots:
- 1-80
Sorry, where do i place that? u//u i've been trying for a while!!! i didn't want to disturb
remove the existing layouts and put this one in there instead
set it to true, reload TAB and it will generate the rest of the config
uh, uh, ok!, sorry
dw
Ohhh, it is perfect now!, now everything aligns!!
Now, the last thing is... and sorry to keep asking things, how do i make so that hmmmm, players can appear one on the side of the other?, not only vertically?, i already have ROWS enabled but i doesn't seem to work
first or second?
any, i wanted rows, so i set the setting to rows but it doesn't seem to be working
send your config
my players just stack on top of the other in tab
?paste
I need to create an account?
(i left the default layout because it made everything line up)
Do i have to make a layout for rows?
and add that at the bottom of your config
right under empty-slots-ping-value
not bugged, it's normal
as I was saying here, the downside of this feature is that all 80 playerlist slots must be shown at all time
and no, there's no other way to have players display in rows instead of columns
it's unfortunately a limitation imposed by the game
but info can't be read because is text on top of other
but players would have to do that too, i guess it is better even if the vertical space gets full really quick
this is even bigger xd
thank you so much either way
there's no other way
and once your server reaches 20 players, it'll do pretty much the same thing
Where could i send you a screenshot?
then when you get to 21 it'll split into two, until you reach 40,and then it'll split again at 41, and 61,ans then you get to 80
?imgur
Oh, that's automatic?
I didn't know that "20" thingy, hmm, so i'll have to wait and see, thanks
Do you see that hearts no longer align?, do you maybe know a way of making every stat align
If i artificially set deathcount stat to the same on the two of my test accounts everything lines up, so it is that (even when changing nicks, yeah)
is that possible?
not really
well
somewhat
it would work but only up to 999
which placeholder do you use for the hearts?
%healthbar_getbar% from Healthbar expansion
I imagined like a placeholder that places an space if there is no info there, found this: https://github.com/ItsDoot/papi-pad not exactly what i was looking for, only adds spaces if there is no info
oh my bad, I need the other placeholders
the one that returns the number
placeholder-output-replacements:
"%the placeholder here%":
"100-999": "%value%"
else: " %value%"
add that under the placeholder-output-replacements section in your config (while using the actual placeholder)
Oh, that's great, either way, i wanted to leave a limit in 999
perfect
Uuuhhh, you were right!, only that the 1 character width is a little different than the space, but i believe that's the best we can do, you're great at this!, thanks!!!
try to add &l in front of the space and &r after
&l adds 1 pixel
even for spaces xD
lool, tyy xDD
I have a super, super weird bug, do you know why it might be happening?, my tab miss-aligns only when the player nick has a "d" on it, yes... wth?
When player nick has a "d" it adds an space at the end, so Ping has a space, i'm gonna leave a screenshot
Super weird bug
https://imgur.com/a/6oIPeZb
did you get an error file in your TAB folder?
No, just the usual files;
animations.yml, config.yml, groups.yml, messages.yml, skincache.yml, users.yml
I don't know what the issue is then
Deam, every time something super duper strange happens with any plugin, i'm surprised lol
What would you recommend to do?
oH, OHH
you helped me a lott!, have a nice evening
I think i'll delete all my config and try to do everything from scratch and try to se if the bug appears
how do i reset placeholder api bruh pls some one help statistics.
delete your stats folder in the world folder
Which is the best lobby for server
And how to upload lobby to server world
@sharp jay
?help
how do I do that with the Lifemc plugin that the lives are displayed on scoreboard
What's the placeholder to see online players?
do you want the player count or the player list?
player count
%server_online%
thanks
don't forget to download the Server expansion
/papi ecloud download Server
/papi reload
already did, thanks ^^
o_O
hmm
I was almost certain there was one
I see EZBlocks but that's outdated
no idea if it'll work
yo is there a placeholder that gets the color of like a vault/luckperms group
swear there was but it was removed or something
Does anyone know how to disable this kill message?, or how to be able to translate it?,
https://imgur.com/a/epyx5Mp
It is from the default minecraft:kill command
I haven't found a plugin that is able to translate that one, but i want
Hi!, I'd like to create an ecloud account
hey can anyone help me i bought a pc recently and its rebootign like every20 mins whem i plac cod
Hi! The towny placeholders doesn't seems to be working. Can anyone help me?
what placeholder are you trying @still goblet ?
What is the need?
i want to publish a standalone extension to it
looks good to me, I've let cube know
only other thing that could replicate it is string_replaceCharacters, which is a lot more complicated to use
ive made it mainly because that font thingy is a new trend
its being asked for on spigotmc discord daily
icic
This is using %towny_town%
Did you download an expansion?
Of course
that's why the expansion is not verified anymore
So this doesn't work?
it's for older towny versions
yep
Thanks man!
no problemo
hello all, i have a problem with a pleceholder of a plugin called playerlist, i can't use it in my codes and i need it. I did shorter code to make sure the placeholder was the problem. I contacted the discord server of those who made the plugin but they sent me here for help. I hope you can understand what the problem is.
/papi parse me %playerlist_staff_amount% @thorn bay
in game the placeholder works
ah, then i'm not sure sorry I don't use skript
ok no problem if i knew someone who can help me i would really need it
also just fyi, since the placeholder works in-game, it is a problem with your skript/skript itself
yes, the type of the plugin also told me but in the log it tells me this:
[19:13:54 INFO]: [Skript] You're currently running the latest stable version of Skript.
however I agree that the problem could be that but I don't find other versions for the script to install, could you send me some links to install it?
I don't know anything about skript
add funnycube and provide an email address in dms
yo im having a problem with placeholderAPI... i have imported it in my pom, have checked it in my Main and i have it on my server with the needed downloads installed.... still: PlaceholderAPI.setPlaceholders(null, "§7Players: %bungee_<lasertag-1>%/100") is not working 😦 anybody have an Idea? Its my first TIme using PlayeholderAPI. Greets!
hello when I tried to install an extension it doesn't register it, I restarted the plugin with /papi reload and restarted the server
no errors in console
DM me a username and email address and I'll have the account created
What if you install it manually?
I do not know how
You have DMs closed
@tardy glade From what i see in the jar you uploaded, the bold wouldn't work
unless my decompiler is just failing
i see the line return "" + ChatColor.BOLD + ChatColor.BOLD; in my decompiler, but your source shows
https://github.com/KaspianDev/Tinify/blob/master/src/main/java/com/github/kaspiandev/tinify/Tinify.java#L33
just an fyi, I can test it myself in a bit
probably some weirdness with my decompiler
it was tested with many different cases
ok my decompiler just be buggin then
yepp, just tested to confirm
stupid decompiler, never perfect
which one did you use
jd gui
yeah its pretty ancient
any recommendations?
gah, seems to complicated lmao
I ran the jar and it opened nothing lol
oh ya, recaf booted up nice
thanks 👍
Hey guys, is there a way someone can help me out? I am looking to make it so a users cpdata is updated and added overtime upon command execution.
" CatchCommands:
- 'cpdata add %player_name% bronzecatch 1'"
For example from seen above, a user catches a fish, and the "bronzecatch" value gets +1 everytime.
what I have in place now, works, but I can not figure out how to get the value to increase progressively. I did install the "math" papi extension but I do not seem to know how to use it.
Any feedback would be super much appreciated!
It does not recognize the extension if I put it manually
what is cpdata
oh, sorry. Its Command Panels. It allows you to create placeholders of your choosing, that I am trying to increase upon command execution
so %cp-data-bronzecatch% would return the value?
correct
What do you mean by increase progressively?
Upon the user catching a special fish, I can make it execute a command. This is fine and working.
What I am struggling with, is I want the placeholder to increase by number.
So, after the user catches 2 fish, the value of the placeholder becomes 2
how can you tell if the user catches 1 fish or 2
that is handed by another plugin, it will execute a command on catch
the command doesn't run once for each fish I presume
oh
then it should just run the add command twice, no?
the command can execute everytime a fish is cauht
Oh, I think so. I can make it run multiple commands, is that what I am looking for?
yes yes
that command is cpdata add %player_name% bronzecatch 1
which, should mean, if the player catches 2 fish, the command will be run twice
and you shouldn't have to do anything with math at all
hmm
Earlier I asked this
and you said it would be handled by the plugin executing a command on catch
Yes, each time the user catches one
Correct, I am not worried about the touchyness of that
So do you have a way to get the amount of fish the user caught or no
is there a variable for it?
For everytime the user uses a fishingrod, and makes a catch, this placeholder value is increased by 1
hello when I tried to install an extension it doesn't register it, I restarted the plugin with /papi reload and restarted the server
no errors in console
reguardless if they caught 1 or 2 fish per catch, I am not worried about that part

I cant get the value to increase though
you literally are worried about that part
if they catch 2, you want to increase it by 2
if they catch 1, increase it by 1
so in your plugin that is running the command after a catch, is there a variable provided for how many fish the user caught?
maybe I should re-phrease my question
If there is not, then it won't be possible
Can I use papi math, to increase the value of a previous placeholder
okay....
But can I use a different command, to increase the cpdata placeholder by 1 each time a command is executed?
now it makes sense
🫰
I was going to send the placeholder earlier, but noticed the command was add and immediately ruled out the need for math
%math_0:_{cp-data-bronzecatch}+1%
hello when I tried to install an extension it doesn't register it, I restarted the plugin with /papi reload and restarted the server
no errors in console
Oh my gosh thank you so much, I could not find a use-case example anywhere online
thanks CJ, I looked at this page but I still didnt know exactly how it looked
Your example is all I needed!!! ❤️
@fluid bough can you send your log over 
apparently the Statz extension does not work correctly that was my problem
How to add lobby in world in server
Is there a placeholder that checks the amount of blocks placed by the player.
I type in player_colored_ping and at the end it gives me some obscure symbol.
What could be the problem? I can't send a screenshot to this chat for some reason.
Is there any placeholder to format numbers like 10700 to 10.7k
It seems that PAPI does not work entirely on 1.20.1. I have PAPI, ProtocolLib, and 2 plugins that I use (venturechat and TAB), but both VC and TAB don't register any placeholders as being functional, all the way to the point of VC just refusing to send chat messages at all, and TAB has %afk% tacked to the end of everyone's names in the list, where PAPI would put ' ' or '[afk]' depending on if the user is or isnt afk. Can anyone else confirm this, or is it just me? PAPI version 2.11.3, ProtocolLib version 5.1.1 (latest dev build 665), Venturechat version 3.6.0, and TAB version 4.0.3
The TAB part of this is due to a change in TAB where they removed their built-in placeholders.
%afk% got removed, use %essentials_afk% for essentials and %purpur_player_afk% for purpur's afk detection
%essentialsnick% got officially removed, it was already partially removed previously only returning player's name```
Make sure you have the correct expansions downloaded and that you are using the correct placeholders!
So if you're using Essentials, you'd need to download the Essentials expansion and then use iirc %essentials_afk%
I'll double check that! It was getting very annoying 😛
You can always check if a placeholder is working without using any extra plugins by running /papi parse me %placeholder%
ok thank you much!
Hey guys, I cant seem to parse CommandPanels Data Values with Papi, can someone help me?
/cpdata get ClassicRockDude fishquest | This returns a valid number
/papi parse ClassicRockDude %commandpanels_fishquest% | Just gives a blank line in chat
I got it nevermind 🙂
Hey does anyone know how to get the UltimateClaims plugins placeholders to work on a tab
i have added
%ultimateclaims_totalpower%
%ultimateclaims_claims%
hello?
Hey guys, what console command would I use, to increase a math placeholder?
there is no command to increase a math placeholder
So, what is this - 'cpdata add %math0:{cp-data-bronzecatch}+1%'
I need to increase another plugins placeholder value, with a console command
Is that possible?
it's adding a value to a plugin that has a cpdata command
correct, what would be the "console" command to execute, to set the players bronzecatch plus 1 each time
i dont know, it doesnt seem to be a valid command in-game
where did you find it?
I kinda made it up, but I was given the "%math_0:_{cp-data-bronzecatch}+1%" by another support member
So, I assume that is the "math" section, but how do I apply it in a command?
@junior musk Sorry to inturrupt you but, You know how to fix my problem?
read
I answered you in the channel you asked for help
no need to ping me if you don't even read what I say
I already installed the plugin but its only for 1.13
there's no command to change the value of a math placeholder
I seem to understand the point then 😦 I dont get it
Let me try from the top;
How may I adjust a placeholder through math-data via a console command?
Example, the player catches a fish, and the console executes a command.
Using another plugin, that allows you to create placeholders, the command would increase that value +1?
I was given this operation from a previous helper, but unsure how to apply that via a command.
%math0:{cp-data-bronzecatch}+1%'
Where, {cp-data-bronzecatch} is the "other plugins placeholder data"
Any help would be major appreciated!
The end result I am going for, data of a players placeholder, will increase by 1, each time a fish is caught. Like a scoreboard or some sort, what would such a command look like?
I have a really frustrating problem someone explain to me why this ```java
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
getLogger().info("PlaceholderAPI found, registering!");
new SpawnerLevelsPlaceholderExpansion(this).register();
} else {
getLogger().info("PlaceholderAPI now found, skipping!");
}``` won't register my Listener class?
where does %cp-data-bronzecatch% come from
package si.jezen.spawnerlevels;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.entity.Player;
public class SpawnerLevelsPlaceholderExpansion extends PlaceholderExpansion {
private SpawnerLevels plugin;
public SpawnerLevelsPlaceholderExpansion(SpawnerLevels plugin) {
this.plugin = plugin;
}
@Override
public String getAuthor() {
return plugin.getDescription().getAuthors().get(0);
}
@Override
public String getIdentifier() {
return "spawnerlevels";
}
@Override
public String getVersion() {
return plugin.getDescription().getVersion();
}
public boolean persist() {
return true;
}
@Override
public String onPlaceholderRequest(Player player, String identifier) {
plugin.getLogger().warning("HELLO " + identifier);
if (player == null) {
return "";
}
// %spawnerlevels_current_level%
if (identifier.equals("current_level")) {
PlayerData playerData = plugin.getPlayerData(player.getUniqueId());
return String.valueOf(playerData.getLevel());
}
// %spawnerlevels_next_level%
if (identifier.equals("next_level")) {
PlayerData playerData = plugin.getPlayerData(player.getUniqueId());
return String.valueOf(playerData.getLevel() + 1);
}
// %spawnerlevels_current_kills%
if (identifier.equals("current_kills")) {
PlayerData playerData = plugin.getPlayerData(player.getUniqueId());
return String.valueOf(playerData.getCurrentKills());
}
return null;
}
}```
this is my listener
what does console say?
nothing
§6Fetching version information...
[23:30:24 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[23:30:24 INFO]: 0 placeholder hook(s) registered!
its been driving me nuts
did you add PlaceholderAPI in your plugin.yml's softdepends?
oh im idiot but why Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI") is this false
i thought that was optional
well i added it but still [PlaceholderAPI] Placeholder expansion registration initializing...
[23:34:58 INFO]: §6Fetching version information...
[23:34:58 INFO]: 0 placeholder hook(s) registered!
it's optional if you don't have any plugins you rely on, but since you rely on PlaceholderAPI, it's required
send the entire logs again
Nevermind, thank you for help it works that log message just makes no sense
That is coming from "Command Panels" another plugin which can assign "data-placeholders" to player to view dynamic content.
What Placeholder would you guys recommend to use in combination with Chatty to display roles when hovering over player names in chat?,
For example:
Best Base 2023
Most Mobs Kills
Etc, i thought of %luckperms_groups% but it looks bad without any possibility of formatting and it always displaying the "default" group, if i could remove that it would be fine
Or, is there any placeholder that i could just set text to every player differently?
Im trying to make it so i have enchantments placeholder. i have fortune on a pickaxe but the placeholder doesnt change dm me for the image
and does that plugin have a command to set the value of those data-placeholders?
what placeholder doesn't change?
also, for images, check this:
?imgur
use %luckperms_prefix% and set a prefix to your groups with /lp group <group> meta setprefix <prefix>
can have colors
so i added fortune placeholder and i have fortune on the pickaxe but it doesnt change
try without <>
alright
doesnt work
It does, but not sequentially. Only predefined values at a time.
does the placeholder work in /papi parse me %placeholder%?
it does
then use the math placeholder you currently have in your command
oh sorry lol
wasn't replying to you xD
But what is the format? what would it look like, i know x_x haha
you already have the placeholder
you just need to use it in the command at the position where you would normally set a value
it says an internal error occured while perfoming this comand
if the command is /setsomedata set <mydata> <value>, you'd use /setsomedata set <mydata> %math placeholder you sent earlier%
check console
?paste
send the error
send the placeholder you're currently using
%enchantment_<fortune>_level%
try without <>
it says 1
then it's working?
but on the lore it still comes up as this https://imgur.com/qPCmcnu
send your menu file
wdym
im not putting it on a menu im putting it on a pickaxe lore
/give commands
then it won't work
how do i do it then?
PAPI doesn't parse placeholders in items
so it wont work on the pickaxe lore?
any suggestions?
not really
Hi, I need some help with this line of code:
PlaceholderAPI.setPlaceholders((Player) sender, consoleCommand);
How can I use this if the sender is console?
the code works if a player is running the command
use null in the player argument, some placeholders will suport it, some won't
for example, %server_online% can be parsed when no player is associated, but %player_name% will require one
the KillStats expansion requires its associated plugin, did you download it as well?
considering it hasn't been updated since 2014, idk if this is really something you'd want to use
use the Statistic expansion
%statistic_deaths%
%statistic_player_kills%
delete the playerdata files in your server's main world folder (while the server is turned off)
?
what do you mean by "player spend time"
ah
that's also in the statistic expansion
%statistic_time_played%
send /papi dump
i need help, i'm registering an hook but when i integrate it with TAB plugin i need to restart the server each time a new player joins because it shows the placeholder instead of the value retrieved from database
is there an api that counts when there will be night?
Who has faced this? At some point, placeholder CheckItem stopped working. There are errors in the console:
[13:23:21 INFO]: Placeholder got blocked due to security concerns (%checkitem%)
Server 1.19.3
PAPI 2.11.3
Hello, I'm trying to get playerlist to work but when I do /papi parse <user> %playerlist_online,world,yes,amount,pvp% it's not working. I've installed the extension still nothing
you're using the old format
Okay thank you
Haven’t seen anything block it before, but somebody must have done that in their plug-in. There was an issue with give/remove placeholders being able to be parsed by users. This resulted in me disabling give and remove placeholders by default. Changeable in your papi config
Not sure if disabling them will “unblock” the placeholder though since I don’t know what’s doing it
As I understand it, I can't fix it in any way?
I remember seeing an update frm a plugin about that
I think it may have been CMI
let me check
yup
Opened a discussion on CMI's github if you're interested @open pivot@mint fable
https://github.com/Zrips/CMI/discussions/8083
Thank you very much for helping to sort this out 🙂
02:46 WARN]: [PlaceholderAPI] Cannot load expansion vault due to an unknown issue.
[19:02:46 WARN]: [PlaceholderAPI] Failed to load expansion bungee. Identifier is already in use.
[19:02:46 WARN]: [PlaceholderAPI] Cannot load expansion bungee due to an unknown issue.
papi dump ^
https://paste.helpch.at/duwohilunu
delete both and redownload
as for Vault, do you have an economy plugin?
the expansion won't load if none is found
lighteconomy
check /vault-info
I don't see that plugin in the /papi dump you sent
omy got meaby forgot to upload newest version xD
yea it should be correct
because was config update
and trying update and forgot
nice nice 👍
eh
anyway
why bungee expansion doesn't support vanish?
?
when im on vanish and have bungee online there is still shows as online
me on vanish + 2 players = 3
and 3 shows
the expansion only takes the data Bungee sends back, which is the amount of players connected to the Bungee, and Bungee doesn't have a vanish system
though since you're using PremiumVanish, you could use its placeholders
can i use from networkmanager ?
it allows you to use the plugin on both the backends and the proxy to forward data, and it has placeholders to get playercount on the proxy while accounting for vanished players
idk, check if it has any
but aren't you using PremiumVanish?
then why would you use NetworkManager?
becuase have this too and using small amount of his features 😂
nevermind
oh yes now understand
vanish placeholders will support vanished layers
iq 1000
There's probably some really simple solution to this which I haven't realised but I've been trying to get these to work all day and I'm very close
however, papi doesn't use the color codes in my luckperms prefix
since 2.11.2 or .3, PAPI doesn't parse colors anymore
the plugin where you're using the placeholder now has to parse them
or you can use another placeholder to parse them for you
I made one in my Utils expansion, %utils_colors_<placeholder>%
i might know a way
if your placeholder is %essentials_nickname%, you would use %utils_colors_essentials_nickname%
very interesting to me that cmi blocked it, so there must be a way for users to parse placeholders in the plugin
thanks for opening that up and informing them 👍
oh btw I think I have an idea to fix it in the meantime
surprising
lmao
Ya, interesting that they give no detail to the user about it though
lol they blocked it after I made the update to fix it
it must've been that one guy that was REALLY complaining about it
bruh
now, in fairness, it doesn't update previously-existing configs
but 🤷♂️
Thanks again for mmaking the discussion for it
is it possible to parse a placeholder inside your plugin?
like from another plugin
say i wanted to do something like player.sendMessage("%player_time%");
which placeholder is responsible for counting the picked up items
what is this suppose to mean?
i have the required papi extensions
😥
?startuplog
send the whole log
I don't know if there is such a placeholder @mighty frost but you can try %statistic_pickup%
or you would need another plugin that adds it
&8[%progress_bar_{redisbungee_Skyblock}_c:&a█_p:&e█_r:&7█_l:10_m:40_fullbar:&aCompleto%&8]
when using the placeholder, returns the variable, but not the colors. It looks like this:
&a█&a█&a█&e█&7█&7█&7█&7█&7█&7█
papi does not color things
you would need to rely on whatever plugin you're using it in
I don't understand
sorry
placeholderapi does not do anything with coloring
so you won't see a color unless the plugin where you are using it colors it
Any placeholder so that the text returned by a placeholder is lowercase, uppercase, or just the first uppercase letter?
If the value of a placeholder is "example" return it as "Example" "example" "EXAMPLE"
@austere hawk looks like %str_capitalize_<text>% should work
And for lowercase and only the first capital letter?
That is what %str_capitalize_<text>% would do
turn example into Example
there is also lowercase and uppercase
for EXAMPLE
No, but I want to choose whether to return it in upper or lower case
That does not depend on the text
I am confused
let me see
%str_lowercase_EXample% would return example
is that something you need?
Something
%str_uppercase_exAmplE% would return EXAMPLE
yes
%str_capitalize_examPle% would return Example
Work %str_lowercase_example%?
it would say example
yes
- %str_lowercase_EXaMple% - Returns the text in lowercase (example)
- %str_uppercase_EXaMple% - Returns the text in uppercase (EXAMPLE)
- %str_capitalize_EXaMple% - Returns the text with only the first letter in uppercase and the rest in lowercase (Example)
yes
should do
if not, let me know
you can test with /papi parse me %placeholder%
capitalize might not do that exact thing
but you can do it with combining placeholders
And can I use %str_uppercase_{placeholder}%?
makes it a little trickier
yes
O
you might have to try %str_capitalize_{str_lowercase_{placeholder}}%
according to the wiki, that should probably work
if we are right
Whats the use case?
Capitalize the first letter, if the first character is not a lowercase letter, return it as it is.
yes i've seen that
Although this looks good to me
ok, i'll try
this works best
Because if the text is heLLO returns HeLLO
hi i search a placeholder for the vp plugin who have ?
hello. is there any way how to make papi translate hex colors itself I've just downloaded a plugin which supports papi and want to display name using hex colors with luckperms but this plugin does nothing with hex colors so i want papi to do it
how can i make a placeholder round to the nearest whole number?
i don't understand it, this is my placeholder: %math_{ecobits_rankupvar}*2.5+1% but it returns as 41.000 when i need 41
guys please where can I find hex translate expansion
the default [decimals] is 3
%math_0:_<expression>% for 0 decimals
Currently cant get vault placeholders nor essentials top balance placeholders too work.
I have updated the config to allow for it, installed both vault and essentials and reloaded.
It still outputs blank, any idea?
Am I missing something, doing something wrong?
which placeholders are you using?
%essentials_baltop_player_1%
%vault_eco_top_player_2%
Tried using both just for test purposes
Vault's baltop placeholders were removed
and for the essentials one, I remember them not working properly with offline playeres
or only when you run /baltop before hand
Ah that is going to be a pain for me.
Not sure I can work around that.
Might need to find an older version of the vault expansion then.
imo the best option would be to go with a plugin like ajLeaderboards and use the %vault_eco_balance% placeholder
I'm not setting a on screen leaderboard, therefore that doesn't really help me unfortunately.
it does provide placeholders though
Oh, hmm, okay that might be worth a look then thankyou.
WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
WARN [PlaceholderAPI] [math] Placeholder: %math_2:_{luckperms_meta_ShopBlock2Price}*32%
WARN [PlaceholderAPI] [math] Cause: '*32' is not a valid Math expression.
Runnning math 2.0.2 and PlaceholderAPI 2.11.3 Just updated and started seeing these warning spam our console. What's weird is its working in game as we expect, like its doing the math right but was curious if anyone knows how to fix?
oof it removed the **32' is not a valid Math expression. Theirs only one asterick btw.
no sir, just ran
/papi parse me %luckperms_meta_ShopBlock2Price%
and returned
1.84
can you try the math placeholder in papi parse?
and it is succesfully multuplying it by 32 and returning a result.. I just noticed(prob durig some other testing) I turned on debug=trrue in my server.properties.. maybe Im just seeing a non error that always been there?
Yep one sec
Using it in a DeluxeMenu and it seems to appear anytime I even open the menu.
running math...one min
can you send that menu?
You may have found it.. it may be a non error.. I just disabled debug and about to reboot.
/papi parse me %math2:{luckperms_meta_ShopBlock2Price}*32% returned %math2:{luckperms_meta_ShopBlock2Price}**32%
Yep, I'll send it, dm?
?paste
that's because you copy-pasted the placeholder from your msg earlier
and Discord yeeted the _
copy paste it from your console directly, or from your menu
Okay I went to the helpchat pate and saved it there.. just the url?
https://paste.helpch.at/ikasapujiq.vbnet
could it be because of the open_commands ?
those specific placeholders aren't coming up in the log it's everywhere I'm using math. Ohh.. I bet your right. So user opens the menu and at the time those may be null, and it's reporting back the possibility that the math calculations are wrong... but then the commadns run and user has the placeholder for the block prices and qty. I may be able to ignore it. Turning off debug to see if the messages stop. I don't see yet where it's hurting the daily shop or where users aren't gettign the correct amounts calculated
Okay, I disabled debug in server.properties and the message stopped and th emenu still works.
ty for your time. I fyou think of any issues with leaving it like that I'm open to look into them.
Em, it happens that the newt placeholder are not with %placeholder%
They are [lang]<key>[/lang]
Interesting to use /papi parse me %str_uppercase_{[lang]rank[/lang]}% and /papi parse me %str_uppercase_[lang]rank[/lang]% and return the placeholder as text
The creator of newt says that he made the placeholders with that format why can't you use the arguments
what is newt
/papi parse will only parse placeholderapi placeholders, nothing else
so if [lang]rank[/lang] is an internal placeholder in another plugin, papi can't parse it
does placeholderapi also work for arclight?
translation plugin
No, it's a placeholder
If it works /papi parse me [lang]ranks[/lang]
If it gives me the value of the placeholder, but if I use it with str it doesn't
server plugin? Can you link to it?
I don't even know it is doing that
Jaja, here they told me about that plugin lol
what does this return exactly?
can you send an image maybe
?imgur
La placeholder
please send a picture
I can not now
But it wouldn't make sense why it just returns me the placeholder in mayisc
can you please tell me exactly what it says
The bot deletes the message
1 moment
The bot removes the message by capitalization
because of the way the translation plugin works
it translates the message after it's been parsed
so the placeholder, uppercases ALL the characters, and the plugin no longer translates it
So you will not be able to uppercase, capitalize, or lowercase any of the translations
But if it works on /papi parse me
yes, because the message is translated after it is sent
when you type /papi parse me [lang]rank[/lang] what sends in chat is [lang]rank[/lang]
that is then replaced by the translator plugin
into what you are supposed to see
Or I want the Uppercase to be applied to the value of the placeholder
you can't
No
you don't understand i think
I am trying to explain it
oh my god you don't seem to be paying attention
please be patient
I understand what happens
the placeholder works
and shows you the correct word
in your language
I understand that
What I am telling you is that when you type /papi parse me [lang]rank[/lang]
If I do /papi parse I get [lang]rank[/lang] it returns the correct value
Rank returns me in English and Spanish Rango
this is then INTERCEPTED and TRANSLATED by the plugin
that is why you see the correct value
and the reason you do not see the correct value when using %str_uppercase_[lang]rank[/lang]% is because
placeholderapi sends the message to you saying [LANG]RANK[/LANG]
which will NOT be intercepted and parsed by your translator plugin
because it's out of format
if you were able to have triton translate before it reached the internals of papi, things might be different
but I don't know if that would be possible in many/any scenarios
wait!
triton provides placeholderapi placeholders
so you can use it
%str_uppercase_{triton_rank}% should work
The creator told me that the placeholder %% doesn't work
%triton_rank% doesn't work?
why would it be on their wiki then 
says since v1.1.0
/papi parse me %triton_rank% what does that say?
Oh what to download expansion?
looks like it's built-in, no expansion needed
and what about /papi parse me %str_uppercase_{triton_rank}%
Work
Still the problem with localtime?
Does anyone know another way?
Since the only way to fix localtime temporarily is with the key test that I have to acquire
@junior musk hey i've just used ur color_utils expansion, is it possible for me to add hex support? i tried to edit ur source but it resets color to previous anyway 💀
RGB colors depend on which plugin you use the placeholder in
I don't think I can parse them myself
ohh okay thank you
is it possible to insert one variable into another like: %rgb_%luckpermsrank%% ?
actually i did the same but doesnt work for some reason...
send me what you used and what it returns
i used the same as in your message and it returns the same string in output '%utils_colors_{rgb_{luckperms_rank}}%' without any changes
did you download Utils?
sure
oh my bad try color instead of colors
oh everything translates now except rgb part i think it could be a problem of that extension?
I don't think so
it's just that it depends where the placeholders are used
RGB is not supported everywhere
and not all plugins support it
yeah but plugin i use support it when used alone
here's the plugin
i mean extension
and the plugin
idk
oh ok thanks anyway
that rgb expansion doesn't seem to translate RGB colors
only allow you to add gradients
idk if it translates those colors tho
i mean to add method hex and in translate colors method insert hex(message) so it will do it for itself
ah, well gl
any ideea of how to fix console spamming this?
java.lang.IllegalStateException: java.io.EOFException
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:472) ~[guava-31.1-jre.jar:?]
at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:455) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCustomPayload(ServerGamePacketListenerImpl.java:3741) ~[?:?]
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$0(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.20.1.jar:git-Purpur-2035]
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:1366) ~[purpur-1.20.1.jar:git-Purpur-2035]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[purpur-1.20.1.jar:git-Purpur-2035]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1343) ~[purpur-1.20.1.jar:git-Purpur-2035]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1336) ~[purpur-1.20.1.jar:git-Purpur-2035]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1314) ~[purpur-1.20.1.jar:git-Purpur-2035]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1202) ~[purpur-1.20.1.jar:git-Purpur-2035]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[purpur-1.20.1.jar:git-Purpur-2035]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:346) ~[?:?]
at java.io.DataInputStream.readUTF(DataInputStream.java:595) ~[?:?]
at java.io.DataInputStream.readUTF(DataInputStream.java:570) ~[?:?]
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:470) ~[guava-31.1-jre.jar:?]
... 19 more```
try this Bungee expansion https://cdn.discordapp.com/attachments/920613796970655765/1118658607173607454/Expansion-Bungee.jar
and please let me know if it fixed it, because everytime I send it, the person with the issue never comes back to let me know if it did or not 
okay, one second
seems okay now, if the issuse will persist, I will just delete the entire expansion (I don't really use it on that server), thanks for pointing out that 'Expansion-Bungee' was causing it.

Hi there, I have a mini issue where the placeholder isn't working 😅
This is the Utils class where I have registered the placeholders
public class Utils extends PlaceholderExpansion {
@Override
public String onRequest(final OfflinePlayer player, final @NotNull String identifier) {
if (player.isOnline() && identifier.equals("current_dimension")) {
// Return the balance as a string
return AdventureWorld.getInstance().getCurrentDimension().getType().getDimensionWorldName();
}
if (player.isOnline() && identifier.equals("time_left")) {
// Return the balance as a string
return AdventureWorld.getInstance().getStringOfTimeLeftTillRotation();
}
return null; // Placeholder not found
}
@Override
public @NotNull String getIdentifier() { return "ad"; }
And this is the class where I check for the plugin and register the above class
public class Hook {
private Hook() {}
/**
* Checks if PlaceholderAPI is enabled and registers the custom placeholder expansion.
*/
public static void placeHolderAPIChecker() {
// Check if PlaceholderAPI plugin is enabled
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
Log.info("PlaceHolderAPI plugin detected!");
// Register the custom placeholder expansion
new Utils().register();
}
}
}
Then I call the Hook class in the onEnable method.
In game I do %ad-time_left% and nope not working, any ideas?
It does register the identifier tho [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: ad [1.0]
try ad_time_left instead of ad-time-left
Well
That worked lol, thought it will work with ad- and not ad_ lol, thanks 😄
Can't I make it ad-... ?
Oki no problem, thanks tho 😄
Any idea why %pinger_isonline_testplugins.com:25565% isn't working in a hologram?
How can I use Hex Colors using Papi?
I am trying to use hex rather than BungeeCord RGB color codes
Please ping any response, thanks
if a another plugin has a placeholder, how can i get its value in code?
Which method on the placeholderapi do you use to get the value of an existing placeholder
eg papi parse... but within a plugin
setPlaceholders
not sure that s at the end is there
thank you btw
HEX is just the code that RGB colors use, and depending on which plugin you're trying to user RGB in, you have to use its appropriate format, if it supports it. For example, some plugin use &#RRGGBB, some use <#RRGGBB> while some simply use #RRGGBB, so you'd need to use that inside your PAPI placeholders (I'm guessing you want to use it in LP prefixes or smth similar, you'll have to use one of the above format in your prefix), but not all plugin support those colors, so you need to check their doc
it's setPlaceholders because it checks the whole string inputted and parses all placeholders in there, not just 1
Yo i have a question, what is the online players placeholder? For only one server, no global
%server_online%
thanks
does anyone know if there's a way to remove the seconds from %server_uptime%
maybe with JS
I tried what you said in this message after searching through the helpchat discord but it didn't seem to work? just gave a wierd output
it's not exactly the same thing
you just want to remove seconds right?
minutes and hours should still show ?
function uptime() {
var uptime = "%server_uptime%"
var times = uptime.split(" ")
var seconds = times[times.length-1]
if (times==seconds) return "0"
return uptime.replace(" "+seconds,"")
}
uptime()
should work
javax.script.ScriptException: <eval>:4:20 Invalid return statement
if (times==seconds) return "0"
^ in <eval> at line number 4 at column number 20```
Yooo! It works! Thank you so much! 🙌
I'm struggling to figure out how to show the online player count. I tried with the "Server" ecloud download and use server_online, but that just says "yes". It's not a bungee server, just standalone paper

?
/papi parse me %server_online% returns "yes"?
are you sure you're not using player_online ?
That's what I was told, I haven't been able to test myself
So %server_online% should work for what I'm trying to do?
yeah
it's likely that the user had the wrong placeholder and used %player_online% (which returns whether the player is online or not) instead of %server_online% which returns the player count
I'll double-check when I get home. I assume it works, so I'll just say thanks for the help now.
Thanks 🙂
is there any placeholder that returns for how much time a player has been online? aka smthing like the /seen of essentials
there's a placeholder for the time a player joined at, but idk about a placeholder for that
ye i couldnt find anything like that either thats why i came to ask :/
you could make a suggestion on the Player-Expansion repo
that expansion hasnt been updated in ages 
ok wait last update was june 16 of 2023
not bad
there might be a workaround with players localtime placeholder x last join placeholder 🤔
but aint gonna bother to find it 
so I won't do JS 
