#placeholder-api
150650 messages · Page 85 of 151
Yeah was typing the not discord command when I read invalid user xD
Greetings
Hello
I have a question about a api expansion called parseother
Okay
i run into an issues and dont know how to solve it or maybe if its on my site be able to fix it?
Parse other allows you to parse placeholders for other players
i know
but the problem now is
when i am onlone and i parse a placeholder about me all is fine
when i use this placehodler outside too
but when i wehnt offline
the placehodler seems to turn back nothing
The placeholder that u are fetching from an offline player cant fetch data from offline players most likely
Which placeholder is it?
From what plugin?
Some plugins cant fetch data from offline players unfortunately
your answer is long, confusing and unnecessary. I understand you need xp but still
What Convace means to say is that some placeholders work for online players, some work for offline players as well some work even without a player required.
The most likely problem here is that the placeholder you're parsing for the other user %parseother_{user}_{OTHER-PLACEHOLDER}% so in this case OTHER-PLACEHOLDER might only work for online players. and since user is offline that's why it breaks or rather just returns an empty string.
Thats what i said
I didnt say it cuz exp. Im on phone so i type shorter lmao
i tried parseother the placeholder of a player that is offline.. but i just get a result of "nothing" when the player wents online i get the reight result..
i tried this from cosnole papi parse Cloude_Lecaw %parseother_{Cloude_Lecaw}_{cmi_user_meta_angeleventgewinnerplatz3uuid}% i used it two times
first time i was online
secound time not
wel in result on first try i got the right entry from the placeholder
and when i was offline the result was blank
so it looks like parseother placeholder itself just feedsbacks a blank result whenyour offline..?
it's not parseother at all
as blitz said, it's cmi
the cmi placeholder does not work for offline players
it's accessing the player's actual nbt data, which is only loaded when they're online
if you try to parse %cmi_user_meta_angeleventgewinnerplatz3uuid% when you're offline it probably won't work either
hm i see so i should ask cmi?
no

it's not going to be something you can do
its not really a lot you can do
You'll need another plugin that can store/access data regardless of the player's online state
Now, you could use the javascript expansion and give that a try if you wanted
you mean write a java script?
but that one's pretty buggy so I wouldn't really recommend that one either
yep, kind of yikes
na its to much for a normal user to ask to learn javascript now
😂
you don't have to
the code is already written
you just have to set it up by following the instructions at the link above
i just need to find the file right?^^
but as I've mentioned it is pretty buggy. sometimes store data just resets,
sometimes it returns wrong values
hm
it gives you step by step instructions on how to set it up.
hm no
damn
I had the thought of using Topper to cache the values
(leaderboard plugin for placeholders)
but obv it only works for numbers... as it is a leaderboard plugin
saj
does anybody have the answer to this?
I can't figure out any other way to type \uE000 as it's a private use character
I'm trying to use it to make custom icons and things for chat
it's a private use character that is safe to replace
is it an actual symbol or just a random unicode
hard to answer, it's kinda like a blank symbol to be used for whatever you need
ye, just a random unicode
it doesn't actually exist normally until you replace it
but for minecraft, you can replace it with a resource pack and stuff
ye ye
normally you can just use json text for vanilla minecraft stuff as it will replace the unicode
but plugins... no likey
it would be nice if there was a unicode expansion for this, I know there's one for ASCII but obviously that doesn't go above 127
something like %unicode_E000%
maybe I'll make one
that would be really nice
ya but it's a pain
I had one but I can't find it anymore
How would an expansion save you time tho? Or anything
cause I found the same thing annoying
🤷♂️
I used fake symbols
so if I copy/paste they all look the same
like that box
so I can't tell which is which
Ic
it's niche
👍
well that was quick
i gotta restart my system for my pc to show unicode in console though, wasn't actually able to check if it's the correct unicode
ig i could check with something other than a box... but i'm already ready to restart 😂
%unicode_E000%
1 line
What does the Unicode Expansion does?
just gives a way to type unicode characters through placeholders
it just allows you to type the hex value vs having to go find the character, copy it, then paste it
basically if you know your resource hex value is ||0x||E050, then you can use it very easily in menus when configuring
oh nice that sounds very usefull
for the resourcepack people yeah lol
vs going to a website or something and typing in ||0x||E050
ye, pretty useful
and the most simple
so i canprinzout things like Ⓤ with it?
yep that hex value is 24CA
you can also copy that character now that you have it though
but still good to know it does exist 😄
like let me send you my chess title
&f七七七七七七七七七七七七
I have absolutely no idea what any of those boxes are
I know what the symbols are, it's just spacing
but the boxes I got no clue
obviously when I made it I knew and I could take some guesses
but something like an ATM
🤔
is there a placeholder to show the total amount of players on a specific server?
thanks lol
the bungee expansion
is there a placeholder to show if a server is online but to show for example (status - Online/Offline)?
there's the pinger expansion but there's been many reports saying its broken.
ah thanks
hi is there a way to get the amount of armor the player has in papi?
i've tried all the modules related to armor and player and they just return confusing values
for example %player_armor_boots_data% gives 163 for my boots and same value for every other armor piece im wearing
oh ok so i figured out it's damage that the armor piece has taken
is there a way for me to get the actual value of the armor bar?
ugh. update essentialsx
or if you don't have the essentialsx plugin at all delete the essentialsx expansion
i have the last version of essentials
can you do /papi dump and send the generated link here?
you have 2 essentials expansions installed in your expansions folder. remove them both, execute a /papi reload, and redownload using /papi ecloud download essentials then /papi reload. https://i.imgur.com/P5taA5r.png
oh
can you restart and send a new papi dump?
Ok
can you send a startup log?
Why does the papi detect my core, but it doesnt actually detect it, whenever i reload papi one of them dissapear, and the other is there, but doesnt work
I cant upload archives
that's why you use a paste service
the persist method
look at the wiki
btw, papi supports 1.7.10 right?
not anymore
bc i have it in my server rn, and it works
well it might work
can i like download a older version of papi and it works then?
but we don't actively support it
well I mean papi might still work just fine. but you can. the latest version that supported it was like 2.10.9 or something like that
okay, i can't find the thing u said on the wiki
persist
Nothing called that in the wiki
public class SomeExpansion extends PlaceholderExpansion {
private final SomePlugin plugin; // The instance is created in the constructor and won't be modified, so it can be final
public SomeExpansion(SomePlugin plugin) {
this.plugin = plugin;
}
}
so i just put this in the papi config? and change it out with the names of the plugin?
I am not that good with understanding, cuz english is not main language
idk, if i am stupid or something, but i can't seem to find persist1
the thing called "full example"?
oh yeah, that i found
@Override
public boolean persist() {
return true; // This is required or else PlaceholderAPI will unregister the Expansion on reload
}
you have to add that
in the config right?
no. in your placeholder class
and where is that located?
wait I'm a bit confused.
are you making the core? like are you developing it?
or is this a plugin you just downloaded from somewhere?
ohh. I thought you're actually developing it.
you'll have to contact the developer of the plugin
nah bro, that too complicated for me
and tell them about your issue
it registers, but whenever i reload it gets removed
and none of the placeholders will show on 1.7.10
even the ones i downloaded from ecloud
yeah. well that's up to the expansions/plugins to make sure they work on 1.7.10
contact the developer of that plugin, tell them what the problem is and give them this link. https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-a-plugin-internal-class
GitHub
okay, thank u
Hello, I have problem with placeholder to one plugin - Ultimate Stats (uStats) i can't found placeholder to this.
Can someone help mi with that?
hello! i have a problem with papi plugin. placeholders "%player_ping%, %player_displayname% dosnt works. I download essentials from papi cloud but still dosnt works. Sorry for my english ;/
%player_ping% also
i mean "extensions"
love u Barry!
I have a problem with placeholders %rank%, %deaths%, %nick%
this placeholders dosnt works
all papi placeholders are formatted: %identifier_value%
so for ex %player_deaths% (doesn't exist, but it's just an example)
sorry bro
i dont know what the actual placeholders are though
well in that case it was a common question so it was just ?player
¯_(ツ)_/¯
%player_displayname% might work for nick
and maybe some luckperms or vault placeholder for rank
and now i gtg
good luck 👍
?
Look at the statistic expansion. It has deaths and kills
wait i check this
If the placeholders are not listed on our wiki then they most likely are on the plugin's spigot page or wiki. Otherwise ask the developer of that plugin
player_deaths still dosnt works 😦
for other %statisic_deaths% works 🙂 sorry for spam 😄
Works for essentials chat only I believe
Hmmm thats weird
You can try %deluxetags_tag% to place
I can't remember if you need to parse deluxetags
assume you would need to if you are gonna use that placeholder outside DM
can you try doing /papi parse me %deluxetags_tag% ?
What does it output?
is there like a death location tracker
this is not needed anymore. it has been unverified. if you do install this expansion with the latest version of deluxetags it will just break.
you would need an extra plugin for this. I know DeluxeCombat has a functionality for that iirc but the plugin has way more functionalities than just death location
interesting
okay i found one but do i need to download with the ecloud thing
or do i only need to download the plugin
oh nvm
i did it, it worked
what plugin exactly? because each plugin can chose to either have an external expansion or not
thanks dude
death coord
ah. alright then
yeah. then no need for an ecloud downoad
it gives the x y and z of the death location
download*
okay, cheers
Is there a way to make placeholders work for 1.7.10?
its up to the expansion/plugin to add support for 1.7.10
not to placeholderapi
I heard with one of the cores, and they said they had support for both 1.7 and placeholder api
Aquacore
and when i do /papi reload, anf /papi list aqua still shows
what placeholder i use to see the time im playing
there;s some in the statistic expansion
%statistic_time_played%
you can also get it unformatted as seconds, minutes, hours etc.
not sure I Understand the issue here?
You know when i join the server with 1.7.10
the placeholders are just shown as %(whatever)%
and when i join with 1.8 they work
as they should
and the plugin i am using is supporting 1.7.10
what version of PLaceholderAPI are you using?
Is in the GitHub?
yeah.
PlaceholderAPI (2.10.9)
thats the one u said should work for 1.7.10
yeah. 1.7.10 support was removed in 2.10.10
I could get the latest if u want?
the thing is, I Kinda doubt this is a PlaceholderAPI problem for some reason.
what is your actual server version? if you do /version.
08:40:24 INFO: ● This server is running aSpigot.
08:40:24 INFO: ● Made by Scalebound.
08:40:24 INFO: ● Spigot version is 1.7.x to 1.8.x - v2.4.4.
08:40:24 INFO: -----------------------------------
what the hell is aSpigot?
Idk, apparently a spigot hcf servers use?
what spigot should i use for 1.7 and 1.8 support
well I mean idk what aSpigot is at all
can you give a link or something?
oh. I've found it https://www.mc-market.org/resources/6101/
you seem to be paying a lot of money for stuff you might not exactly need btw.
yeah, seems that way
tryna get a good server out of it, but i run into small problems all the time
why do you even want to support 1.7 in the first place?
cuz hcf is supposed to be in 1.7
like you could've done so much better if you went just paper (normal paper) 1.8.8 instead and instead of aqua core you went with some already existing plugins like Essentials, DIscordSRV, etc.
bc of the pots and etc doesnt work properly in 1.8
like in my personal opinion, those are just scams. idk
the thing about custom forks, is that they make internal changes and break other plugins that might work just fine on paper/spigot
I personally enjoy playing hcf a lot, and theres a big difference with 1.7 and 1.8 when it comes to playstyle
so i don't think ppl will wanna play on a 1.8 hcf server
yeah. but still. your custom fork, might be the one breaking plugins. like you never know. anyways I Don't think its PlaceholderAPI at all.
alr, could u link me a spigot that should work and is working for both 1.7 and 1.8?
i can try it out
Pls say u didnt get that fork from mcmarmet
All forks on there are scams
Y did u get a fork tho? For bow boosting? Or some pot function? U dont need a fork to fix those
idk, first i bought a premade, then the premade had rescripted a lot of the plugins, and the dev that sold me the premade quit, so he won't instead i bought all the plugins he had rescripted, and i just changed them out with the newer versions
so idk where he got the fork from
or idk what it even does
Y did u buy a server if u dont know how to make one? U will end up spending lots of money that u dont need to
ik how to make one, but idk like why these things doesnt work
Ok
but yeah
%statistic_time_played
only this?
yes.
Hiw fix it?
https://pastebin.com/62dGqXYy
seems to be related to a PlayTime placeholder.
not really sure how to fix other than removing the placeholder itself from the hologram
! [Fri 19:09:29 WARN ] at DecentHolograms-2.3.1 (2).jar//eu.decentsoftware.holograms.api.holograms.Hologram.updateAnimationsAll(Hologram.java:419)
! [Fri 19:09:29 WARN ] at DecentHolograms-2.3.1 (2).jar//eu.decentsoftware.holograms.api.holograms.Hologram.tick(Hologram.java:224)
! [Fri 19:09:29 WARN ] at DecentHolograms-2.3.1 (2).jar//eu.decentsoftware.holograms.api.utils.tick.Ticker.lambda$tick$1(Ticker.java:79)
Too same
hmm?
Okey 😦
DecentHolograms same problem
I understand to write directly to the plugin developer?
to the PlayTIme developer maybe. I'm not exactly sure
Oki
Which placeholder can I use for Killstreaks? I tried to use killStats but that didnt work even after /papi ecloud reload or whatever..
??
most likely
@austere hawk try this plugin out maybe https://www.spigotmc.org/resources/combatstats.94932/
guys where is the kitpvp placeholeders ecloud
yeah but KillStats has a rank thing where its like killstats_killstreak_rank
so it wouldnt work on 1.17?
no thats for leaderboards
i want it on my sidebar to say like #31 or something
in kills
not really
so next to the kill and stuff it would say &8(&6#31&8) or something
hmm? how so?
oh well i cant even send a screenshot which wouldve made my question make sense
%combatstats_placement_killstreak_YOURNAME% would return 31
theres no papi ecloud thin-
like any other plugin and the placeholders will just work
well it works but now my problem is that its not synced with actual kills
the kills got reset
well yes. because it stores its own information
by default minecraft doesn't store killstreaks and all that
it only stores kills and deaths
that's why you need an enitre plugin to even get killstreaks
so how do i get this to work
wait
ffs
i need an imgur 1 sec
its not showing the player name
ugh. change %player% to {player_name}
@turbid tide ı send a picture but ı cant
use imgur
you still need the % at the end
wait i forgot that?
smh
sorry
still same thing
i remember deleting the percent then thinking after typing playername that i would add it back but i forogt
anyway, its till the same
@austere hawk ı dont use ımgur
what if you do /papi parse me %player_name%. what does that say?
please send my pictures
why what
you dont need an account
you just need to go to https://imgur.com/upload and drag the image there
it will do the rest for you
I cant register
it just says my mineraft ign
smhhhhh you dontneed to
no
ok. what kitpvp plugin do you use?
yes
yes. I saw. one second. what's your IGN?
Zxnus
it just says Zxnus
when i do papi parse me %player name%
ok try and do /papi parse me %combatstats_placement_killstreak_Zxnus%
what does this say?
but ı dont dowload Kitpvp placeholders because eCloud dont have folder
1 which is my current killstreak
I asked you what kitpvp plugin do you use?
what if you do /papi parse me %combatstats_placement_killstreak_{player_name}%
what does this say?
also when i die it still keeps my killstreak at 1......
yes. because that shows your top killstreak
not your current killstreak
oh i wanted it to show current
@placid scarab check your config.yml.
make sure placeholderapi option is enabled
and restart the server
so is there not a one for current killstreak?
Which ?
%combatstats_killstreak%
bru-
your kitpvp config
i mean for the rank
okey bro
this returns your rank %combatstats_placement_killstreak_{player_name}%
this returns your current killstreak %combatstats_killstreak%
the first one doesn't return your top killstreak. it returns your placement in the leaderboard
yeah thats top killstreak not current
i want current
that's what the second placeholder is for
no. thats your placement
OOHHHH
in the top
OKKK
wait but what about this cos this is literally just showing the string https://imgur.com/a/JMgMvF3
but if you do /papi parse me %combatstats_placement_killstreak_{player_name}% what does it say?
okay this is bad and needs fixing quick because now people are joining my server with no rank..#
the one in my photo was KILLS not KILLSTREAK
well actually it was both
I just took one of them
what does /papi parse me %combatstats_kills% return?
1 which is how many i ave
the kills works but placement doesnt
i hate the imgur thing
i have to send sooooooooooo many
I think you're not understanding what the placeholders do
Alright you need to reply quickly, my entire server is broken rn over this and people are joining without ranks.
ok. I'll try.
thank you
yeah that shows #1 which is me
but how do i do it for all players
is the question
IC. I found the problem. I'll send you an updated plugin jar in a second
hey so i need this to be quick. its disabling my tab plugin and ppl are joining without ranks.
I'm trying. having some problems actually compiling it
when i do /tab reload it gives no errors in console
oh ok sorry thank you
@austere hawk I recommend you remove combat stats for now.
I can't get it to work and it might take a while
dont worry i already did lol but thank you anyway
im pretty sure thats what i just had?
its an updated version
%combatstats_placement_killstreak_{player_name}% should work now
i mean fine ill try it i guess
Hey i got an error but cant post an Link from hastebin 😄
java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.ConfigurationSection.getKeys(boolean)" because the return value of "me.gabytm.placeholderapi.config.ConfigExpansion.getConfigSection(String)" is null
?paste
ok.. nevermind after pasting it on the side i see the "config expansion".
After this i remember i forget to remove it in the Expansion folder .. 🤦♂️
I have a question regarding interaction with the menus using middle-click. I have a shop menu with a middle-click function which works in creative mode but not in survival. What might be the cause of this?
mojang. they removed that functionality from minecraft in 1.18. they only allow it in creative mode now.
Alright, thanks.
hey, so i ended up not using CombatStats but it literally won't go. I deleted the .jar and the folder and every time my server restarts the folder is back.
can you do /papi dump and send the generated link here?
i think its in the placeholderapi config.yml
date_format: MM/dd/yy HH:mm:ss
@austere hawk in config.yml
you mean translation wise?
ahh oka
not too sure i know its possible as ive seen it before
I was trying to add papi to my pom
for a plugin, and I got this
Blocked mirror for repositories: [clip-repo (http://repo.extendedclip.com/content/repositories/placeholderapi/, default, releases+snapshots)]
Since Maven 3.8.1 http repositories are blocked.
Possible solutions:
- Check that Maven pom files do not contain http repository http://repo.extendedclip.com/content/repositories/placeholderapi/
- Add a mirror(s) for http://repo.extendedclip.com/content/repositories/placeholderapi/ that allows http url in the Maven settings.xml
- Downgrade Maven to version 3.8.1 or earlier in settings```
hello
i am creating a server with my friends and i want to add a top deaths scoreboard. I am using RealScorboard
But i dont know how i should do
Use a leaderboard plugin, like leaderheads or ajleaderboard
The wiki will help you do the rest
thx i did that
use https: instead of http
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
is there a player effect placeholder
ty
How would i make a placeholder for a plugin with Skript?
You don't
thank you gaby

anytime blitz
wym?
Literally that
Is it impossible, or is there a reason why I shouldn't
what if there is a placeholder I want but isn't available
I heard some ppl do it
impossible
Idk how someone else made then but okay
If I were to make placeholders for another plugin, would I need to make another plugin or edit that plugin?
you'd need to use java/kotlin/other jvm language to make an expansion
Hey, I'm getting this error after a server restart, I always need to reload the plugin to fix it, how to fix this issue so I would not reload the plugin?
https://paste.helpch.at/corusasahi.sql
first thing, try redownloading PlaceholderAPI
if not then it might just be one of your expansions that's broken and breaks the loader so maybe delete the expansions and read them 1 by 1 until it starts doing it agai
does papi work with java 8
is there a way to make the string a placeholder returns all uppercase
like
%player%
but all uppercase
%player_name%
Probably not
you could use the string expansion. to change the outputs of other placeholders
/papi ecloud download string then /papi reload and use %string_uppercase_<string>%
for example %string_uppercase_{player_name}%
Hello, is it possible to create a stats for multiple players with deluxemenus like (/stats <offlineplayer>)
Hello,
is there a placeholder for the blocks placed and for the number of sheep sheared?
I do not find anything :/
Thanks
Statistic expansion
hello, how can i change the lanuguage of essentials placeholders (for example %essentials_kit_is_available_<kitname>% or %essentials_afk%)
I changed in config of essentials language to polish but this placeholders are still in english - how can i change it???
(for example this placeholder: %essentials_kit_time_until_available_<kitname>% is in polish so i dont know whats wrong...)
is there a placeholder that returns your slot #?
I looked in the statistics but I couldn't find anything for the blocks placed/ crops placed and for the shearing of the sheep :/.
I manage to bring out the data for broken blocks , crafts, etc....
But these 3 actions I can't find a placeholder... :/
yes. in deluxemenus look for the args option. then use the parseother expansion to parse placeholder for the target.
not all placeholders return text from essentials. some its just internal text or from placeholderapi's config.yml
so like the item in that slot?
then you can use the checkitem expansion
you might have to use %statistic_use_item% for placed.
most statistics are just taken from spigot https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html
so you can look there see if you find one but I couldn't find any other ones myself
nah, looking for a placeholder that returns what slot the player is on
1-9
ahhh. hmm wonder if you can even do that in spigot. don't know any placeholders. sorry
hmm seems to be possible. at least on latest. just no placeholder I can find on the wiki
Thank you vers much, I will look into it in more detail 👍
👍
Hi all
Someone can help me with this warnings?
[10:56:45 WARN]: [PlaceholderAPI] Loaded class me.clip.ezblocks.EZBlocks from EZBlocks v1.5.0 which is not a depend or softdepend of this plugin.
I got several
you can ignore
its bcz some expansions (in this case the ezblocks) one is accessing data from another plugin
which is EzBlcoks.
Okay
Another question
For dev stuff i use ServerUtils to reload my core
And after i do that, all the placeholder stop to work
yeah. its really not recommended. you should restart the servers instead.
I've created a class in my core that extend PlaceholderExpansion
In 1.8 works and in 1.18 it doesn't?
We're going ahead or behind?
serverutils is not "going ahead". like the plugin does some weird stuff to do the reload. not even normal /reload is recommended.
does it break on /papi reload tho?
if it does just override the persist method and make it return true
Please note that reloading may not be compatible with each and every plugin! Plugins which depend on a reloaded plugin, are likely to be error-prone for reloading. Improper cleanup, or improper startup practises may break plugin (re/un)loading as well. Please be careful!
this is on server util's page btw.
well now that I read it, its not really the best thing I could come with
xD
I'm talking of PlaceholderAPI, not of serverutils...
right. but you're saying that specifically supporting serverutils is "going ahead" which is completely wrong?
i'm talking in general
In 1.8 there's 0 error
No problem with serverutils
And no warning
now in 1.18 warning and no serverutils
That's what i'm saying
And the last version of placeholderAPI is of 6 months ago
these warnings?
you can "blame" spigot for those. they're literally just telling you that a plugin is loading stuff from another plugin. In this case your EzBlocks expansion (which is considered part of PlaceholderAPI) is loading stuff from the EzBlocks plugin (which it needs so it can get the data to display placeholders?).
this warning was probably added at a later version by spigot
its not a warning added by PlaceholderAPI
yeah. and? it works. and it is still getting updated. but there's no reason for weekly updates?
6 months = weekly?
Don't come with those excuses now bro xd
check the github repo. its getting updated.
excuses for what? I gain nothing from this
exact
So what's the point to find excuses
If there's no stable version means that they are doing something
excuses for what exaclty?
But it's still not working properly
Or not secure enough
ANd it's fine
I'm not saying that's a problem
The problem is that idk why but from 1.8 to 1.18 it's no longer working
But writing here will not solve anything
not exactly... it just means that they're waiting for more stuff to pile up so they drop a bigger update. dropping a few lines of text changed update every day is not something we really want to do?
So i will stop waste your time, i was just curious
I mean if you really think its a problem don't heistate to open a issue on github
Hope it will get support for serverutils in the future
hesitate*
It's sure a problem, reloading the full server for every test means losing 500% of time
Just bc who knows what placeholderAPI does
but do you know what ServerUtils does?
Spigot was literally not made to be reloaded.
and paper even warns you when you do /reload and makes you do it twice
its something very well documented and known. a few googles would probably find a few spigot posts explaining it
test != real server
test server = you can do what you want
and stopping me from fast reloading changes is a bullshit
once again I don't work on the plugin. so open an issue and a developer will give you an answer
It's fine
Thanks for your reply
ah here we go https://madelinemiller.dev/blog/problem-with-reload/
yeah. but that doesn't stop stuff from breaking. it doesn't just see its a test server and says "now the reload command can just work". I mean PAPI has a reload command itself. if you want to reload expansions do that. and for your core you should have a reload command if you want that reloads stuff safely
Just updated to 1.18.2 to see the damage 💀
I get this error, what's it saying https://pastebin.com/wVvZe7gq
I think there is a bug with this placeholder -> "%statistic_mine_block%" when I mine any block it adds 1 to the counter, but if I mine stone it turns into rock and counts as 2 mined blocks when it should really be 1, no?
is there a placeholder to check how long a player has been on a certain world?
after restarting the server it forgets what extentions i installed
[20:36:05 WARN]: [PlaceholderAPI] Task #12342 for PlaceholderAPI v2.11.1 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
anybody knows why when i tried to use %server_tps% or %tps% placeholders into TAB PREMIUM plugin of Neznamy, placeholder prints me 3 times the tps?
What command should i use to remove a specific amount of item from the inventory to the user ? and what placeholder should i check for the amount of the item ?
https://paste.helpch.at/zisujomibe.bash
im using deluxemenu and checkitem PAPI
Ok, i just made it but, it doesnt check all the three requirement to be able to click if the player has only one they can click
https://paste.helpch.at/ozasodisol.bash
omg im so st*pid, al my requirements had the same name xd
is there like an item placeholder
the placeholder prints the values at 3 different times. iirc its 1 minute, 5 minutes and 15 minutes. or it might just be seconds. there's placeholders to get the values for all of those separately:
%server_tps_1%
%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%``` first 3 just get it normally and the other 3 get it and also color it.
what exactly would this do? there's the checkitem expansion that works with items a lot but not exactly sure what "an item placeholder" is
@turbid tide sorry, i meant when i use those placeholders in a bungeecord or waterfall environment, it prints 3 different tps on the same line
sorry, i meant when i use those placeholders in a bungeecord or waterfall environment, it prints 3 different tps on the same line
Ugh. PlaceholderAPI doesn't support bungeecord? not sure how you're using it there
java.util.concurrent.CompletionException: java.lang.NullPointerException
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI-2.11.1(1).jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.NullPointerException```
seems like one of your expansions is broken. I'd recommend you remove them 1 by 1 until it stops to find out which is at fault
These are the ones i use [17:41:55 INFO]: A total of 23 placeholder hook(s) are active: auctionhouse, bountyhunters, broadcastplus, bungee, chatmanager, cmil, combatplus, crazycrates, ezcolors, jobsr oreannouncer, plan, player, robottags, rosestacker, server, spark, supervanish, tab, townyadvanced trademe, vault, vulcan
I´m put the Placeholder API on all of my paper backend servers, i'm not put them on the proxy
The TAB plugin is on the proxy and i put the TAB bukkit-bridge on my backend servers as the author says on the wiki
But i can´t resolve that bug on %tps% placeholder
I guess there's your answer. %tps% is an internal placeholder from tab, not placeholder api and therefore will most likely glitch out or even parse it for all servers connected within the bungee, using the bridge. so my guess is you got 3 that fit the criteria
Hi, I'm looking to add a permission that only activated at certain times of the year through contexts. I'm planning on using the ExtraContexts addon for LuckPerms and PlaceholderAPI placeholders, but I was looking at the "server_time_X" placeholder, and I was curious how I would make it so the placeholder would define a period of a month instead of one date, or do I have to add a placeholder for each day of that month? Any help is greatly appreciated!
Try this
%server_time_<SimpleDateFormat>%
M for 3
MM for 03
MMM for Mar
MMMM for March
So you'd do %server_time_M% to get 3
or well, 5 since its may
Will that last for just today, or can I make it last several days?
I think you have to put D if you want days as well?
can you give a better example?
Say I wanted a permission that lasted for all of this month (1st of May to the 31st of May), what would that look like?
Yep so what you could do is
%server_time_M%, then check if that equals to 5
and if it does, then you're in may
Not sure if you can run checks like this with ExtraContexts
oo yep you can
Hmm ok, thanks for your help, also, do you how to I define checks, say I wanted to make a permission for a month in the future?
You'd put this in your ExtraContexts config
placeholderapi-placeholders:
month: "%server_time_M%"
Then in your luckperm context you'd probably do like month=5
Ok, thanks, I’ll start adding this to my server, thanks for your help 🙂
yeah np
Hi, sorry to bother you again, but would “%server_time_MMMM%” work if I wanted to set December as the month in the context? Thanks again for your help!
yep that should work
I think numbers are easier to work with though imo
but, whatever fits your use case haha
Yeah they are, just want to make sure there’s no prob going from single digit number (like 5) to a number with two digits (like 12)
So 12 would still work under M, or would it need MM
No it should work with just M
Ok, and MM would make 12 012 or smth
Nah would be just 12
Ok, thanks, I’ll give that a try
Hmm, I’ve set the extra context to the permission, but it doesn’t seem to be doing anything, does ExtraContext need to be installed on Bungee and Spigot? And if so is there a specific Bungee version? Thanks again for your help 🙂
no idea, I've never used the plugin
But I know you can't have placeholderAPI on bungeecord, so
What you could do is link all your luckperm plugins with a database, then put extra context on each of the spigot servers
and it should carry through throughout the whole thing
Yeah, I do use a database for my LuckPerms, so that shouldn’t be the problem, I’ll go ask LuckPerms if ExtraContext needs to be on Bungee, thanks again 🙂
np
Hello, I downloaded Heroes-expansion, but noone placeholder works, example : %heroes_main_class_name%
I already used Statistic, Vault etc.. But this one doesn't show
.
And I have another question, the placeholder "%player_first_join_date%" returns this: https://i.gyazo.com/62a8af8682fc2af516b16cfe00cc141a.png
But I need only the date "03/12/22" and in my country format, is it possible?
what about %player_first_played% %player_first_join% %player_first_played_formatted%
prob easiest to use js
var date = new Date("%player_first_join_date%")
date.toLocaleDateString()
maybe
How do I use it as a placeholder?
day/month/year is what you want?
yes!
might be easiest to just disect it then
date.getDate() + "/" + date.getMonth()```
to start
API for Heroes doesn't work for me, can someone help?
might get more help in #development
A friend of mine told me that by editing the date in the PlaceholderAPI config I can do it easily, I didn't remember that xD
I looked for that
But yes, this is another way of doing it, sorry ping
it types %heroes_main_class_name%
?startuplog
can you send that over
Also, you said you downloaded the expansion jar
from where?
the spigot page?
try the one from the spigot page instead
you can send it in a paste
but it looks like the one on the ecloud is different from the one on the spigot page
probably better
Can you send me the link?
all the placeholders are also listed on the spigot page for that one
bit different from the other one
%math_{Hub-1}+{Hub-2}%
Does anyone know why this doesn't work? I wanna get combined number of players from multiple servers
how could i use a % sign in a placeholder?
wym
if you are talking about math placeholders, it is [prc] I believe
MiniMessage support is coming in v3?
Does anyone know how to restart statistics?
World folder
If I delete playerdata folder, nothing bad will happen?
or stats
I mean If I delete the folder, it will automatically make new one or?
Hey, I want to make a javascript placeholder which returns the current time in unix. But all I get is like 1.652523635E9 which won't work with timestamp in discord. https://paste.helpch.at/oqibuvagub.js
Edit: Fixed it
Yes it will
Like inside the changeouput placeholder, I want it to output the text %
Basically I want the changeoutput placeholder to be able to output text with the percent sign in it
oh ok thanks
How can I divide the %player_health%
amount to make it display only hearts not half hearts
%player_health_rounded% maybe @drowsy jackal
I tried that
a 0
i want it to show 10
if im at max health
not 20
so %player_health% and %player_health_rounded% both return 20?
what shows 20
okay, so you're saying shows 0
can you test it with /papi parse me %player_health% %player_health_rounded%
and tell me if it still returns 0
20.0 and 20
install that one
done
if they have 9.5 hearts do you want it to say 9.5?
it works!
Hello!
How i can take permission for player but he are offline
i test papi: OtherPlayer , ParseOther, but nothing if player off
try luckperms if you are using it
fairly certain their placeholders do not work for offline players
welp
How could I make a changeoutput placeholder where it compares the first thing to multiple texts?
like this: %changeoutput_contains_{checkitem_getinfo:40_mat:}_BEETROOT\_SEEDS OR POTATO OR CARROT OR WHEAT\_SEEDS_ADD_SET%
Trying to check if the offhand item is BEETROOT_SEEDS, POTATOES, CARROTS, or SEEDS
probably just want to use javascript at that point
Sorry, had to go, could I use javascript like a placeholder in another plugin that supports PAPI?
yeah. with the Javascript expansion
ah alright
you can create your own custom placeholders that execute a javascript script
😭 I have no clue how to do this
I've been looking at it and i know not one thing of java script coding
well that's what the "javascript" expansion is for xD
well I think I have a way to do what I need without it
But I do have another odd issue
so I have this placeholder: %changeoutput_equals_{checkitem_getinfo:40_mat:}_WHEAT\_SEEDS_SET_ADD%
Which should check the offhand item, and see if it's WHEAT_SEEDS, and if it is, then give me "SET", and if it isn't, give me "ADD", correct?
yeah.
I have COOKED_PORKCHOP in my offhand yet it's still giving me SET
Change it to %?
hmm.
but cooked_porkchop but all caps
So I changed the {} to cooked_porkchop (but all caps) directly, and it gave me "ADD"...
so it works fine there
can you try something like this: /papi parse me %changeoutput_equals_TEST_WRONG\_ANSWER_SET_ADD% and then /papi parse me %changeoutput_equals_TEST_WRONG_SET_ADD%
so these do work fine. hmmm
maybe I have to escape the underscores in the {} placeholder?
that shouldn't be the case. let me double check the source code tho
oh was it that? I thought it parses the placeholders first
then splits the arguments
yeah I was wrong. it doesn't
it splits first
so basically it was taking {checkitem as one argument then getinfo:40 as another and then mat:} as another
👍 got it, thanks
im back
%changeoutput_equals_{checkitem\_getinfo:40\_mat:}_CARROT_SET_ADD% should check my offhand for carrots, and if it is, then output as "SET", right?
It gives me "ADD" even though my offhand is carrots
I ran /papi parse me %checkitem_getinfo:40_mat:% and it gave me CARROT
I ran /papi parse me %changeoutput_equals_{checkitem\_getinfo:40\_mat:}_CARROT_SET_ADD% and it gave me ADD though
... I removed the \ from the {} placeholder and it works fine then
I'm so confused
if no one is answering I'm going to be taking another look in like 15-20 minutes. not doing very well rn
ah, your fine. I think I can figure it out on my own with some testing. I'll let you know how it goes
ok so, doing %changeoutput_equals_{checkitem\_getinfo:40\_mat:}_WHEAT\_SEEDS_SET_ADD% with the forward slashes doesnt correctly check even if I have wheat seeds. It always gives me ADD. Doing the placeholder without the forward slashes always gives me SET, even if having wheat seeds or another item. The only time it works properly without the forward slashes are when I don't have anything in my offhand
ok so I'm not feeling very well today and I just double checked and I was completely wrong. the \ in the bracket placeholders should not be needed at all
😬 I'm sorry to keep bothering you then, but if I remove the \ then anything I hold in my offhand is considered wheat_Seeds
no wait... Only cooked_porkchop does it
nvm, a lot of stuff do it
But oddly enough, carrots, potatoes, and wheat work normally
any chance the checkitem placeholder give a colored output?
you might want to try something like this:
%changeoutput_equals,ignorecase,ignorecolors_{checkitem_getinfo:40_mat:}_WHEAT\_SEEDS_SET_ADD%
nope, still gives me SET with cooked_porkchop
and the text is in full caps, white color
this confuses me a lot. anyways I think I could just give you the javascript code. should be just some simple if checks
yeah. that's basically the precedent for checkitem expansion
But I'm saying use the javascript expansion as an alternative of changeoutput.
function checkItem() {
if ("%checkitem_getinfo:40_mat:%" == "COOCKED_PORKCHOP") {
return "SET";
}
return "ADD";
}```
ah ok. is that all thats needed?
yeah. you need to set it up first in javascript_placeholders.yml and then in plugins/PlaceholderAPI/javascripts/
the wiki should tell you how to create a javascript placeholder step by step
alright, thank you very much! sorry for all the trouble I've caused
you've caused no trouble at all. I'm here to help
whenever I do /papi parse me %javascript_change%, it just gives me a blank text in chat
can you put the stuff you have in javascript_placeholders.yml in a paste bin and send it here?
alright. and you've placed this code inside plugins/PlaceholderAPI/javascript/change.js?
oh yeah that's my bad
I forgot to call the function
function checkItem() {
if ("%checkitem_getinfo:40_mat:%" == "COOCKED_PORKCHOP") {
return "SET";
}
return "ADD";
}
checkItem();```
pog it works! ❤️
alright. and how do you want these all to work? do you want to check if its X or Y or Z? or just check if its X?
Yeah yeah. about this
ah, well basically I was trying to make a custom enchant that replants crops when harvesting them, but if the offhand item is a specific crop then it would plant that crop. So if you had nothing in your offhand and you broke carrots, it would plant carrots. But if you had potatoes in your offhand, it would plant potatoes
well, overall, I spent far too long on something extremely dumb and nobody would use 😂
but javascript is awesome! changed my file from: https://imgur.com/a/GAdkMK8 to https://imgur.com/a/03ZnMGW haha
well awesome for this. not in general tho xD
I actually use the changeoutput placeholder in so many places, javascript will definetly help :D
So im using a formatter inside a formatter what would I use when doing %{3rd placeholder}%
Can you access api from other plugins in JavaScript
Can placeholder api have bungee support/can be installed on a Proxy?
nope i guess
Where are the papi for this https://www.spigotmc.org/wiki/mvdw-placeholders/#tickspersecond ?
Can't find it anywhere
Where is the average tps and tps rounded tho
%server_tps%
%server_tps_1%
%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%
Alrighty thank you
it will only return it rounded I believe
%server_name% isn't returning the correct name
its returning the name you set in plugins/PlaceholderAPI/config.yml
Ah okay
Does the Bungeecord server name return still exist under a different expansion than Bungeecord or no?
no
Hello, once in a few server restarts I get this error on my server. What could be the issue? Other times everything loads up fine.
Here's what happens when PAPI breaks:
https://pastebin.com/raw/McpgBfBB
AND here's what happens when it loads up normally with nothing changing on the server:
https://pastebin.com/raw/PUw2VNjR
Any help please?
it just seems like either a corrupted plugin jar (you could try redownloading PlaceholderAPI) or a broken expansion. you can try by removing all expansions from the expansions folder and seeing if this still happens
Thank you very much! Will do!
hello I have a little problem with my api i try to be the api kill stats on my tab but its does not work it downloads but it does not appear in the list of papis is normal?