#placeholder-api
150650 messages · Page 59 of 151
I can't find the papi of the Guilds plugin. Who can tell me
%math_({formatter_text_replace_,__% this is the placeholder it tries to parse, and maybe this %}/100)*3% as well
Thank you i'm connected
I can't find the papi of the Guilds plugin. Who can tell me
=check @primal tartan
I asked my friend
He is not good at English. He is next to me now
I asked her to open his account
I have no idea how to use javascript lol
any chance you could help me?
@turbid tide hi, Star is here ?
Is there a way to get a random player name with any expansion?
Deeply nested placeholders wouldn't work.
A workaround could be the shortcut placeholder
Yeah, im using a conditionaltextplaceholder
basically allows me to put 2 placeholders into 1
Hi, I let my friends in with me, let my friends ask for the rest
and then put that 1 into the math equation
What is the papi of guilds?
Yeah. Use the RNG expansion
thanks
Yeah. This was his response #placeholder-api message
You can try and use the nested placeholders expansion. I am not sure how it works tho.
Is that a thing?
what even is a shortcut placeholder?
And how do I do it, I don't really understand?
Can someone tell me how to use precision in math expansion
it used to be like this but its not working
he basically is saying that one of your plugin might be breaking it. I think
/papi parse me %math_({conditionaltext_money}/100)*3[precision:0]%
%math_PRECISION_MATH-HERE% for example: %math_0_2+4+5%
ah okay its been changed then?
yeah
/papi parse me %math_0_({conditionaltext_money}/100)*3%
well there's more than just precision now. there's also rounding I think. but yeah
yeah that looks alright
ty for all help peoples
Hello! I have a server with PlaceholderAPI but some placeholders don't work, even though I have all needed expansions downloaded. Could anyone help me, please?
can you please send a full startup log and do /papi dump and send that link as well?
Sure! Here is the startup: https://paste.helpch.at/iqakukuqay.md and here is the /papi dump: https://paste.helpch.at/kibemuturo
and can you give me an example of 1 placeholder that is supposed to work but doesn't?
Vault
but like specific placeholder. is it the economy ones? is it the rank ones?
well it's economy (%vault_eco_balance%), sorry I'm new to this
well. it doesn't look like you have any economy plugins tho.
vault is not an economy plugin. its just a bridge
but I have another server in which this works, but in the other doesn't. I have all the same plugins and expansions. But, in the one that works I have Essentials, is that the thing I need?
yeah. essentials is an economy plugin indeed. vault and placeholderapi are just trying to get the data from somewhere and don't have from where. but if you were to install essentials for example it would take it from there and it will work
Oh thanks! It worked!
👍
is there a placeholder for the worldguard region title of the region you're currently standing in?
by title you mean name? then: %worldguard_region_name% %worldguard_region_name_capitalized%
you can find the rest of the placeholders here: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/placeholders#worldguard
ah. nope. no placeholder for that
according to the wiki it is for this plugin: https://www.spigotmc.org/resources/craftconomy.2395/
it may still work with forks
or stuff like that
i dont find what's the difference between craftconomy and "" 3
can you link me craftconomy 3?
oh. probably
I mean the one from above
is at major version 3
so probably that's the difference. just a more updated one
yea probably
hmm the placeholder doesnt seems to working
maybe i entered it wrongly
doesnt work
can you try with /papi parse me %placeholder% ?
can you paste the placeholder you've tried in here as well pelase?
that shows the same text i enter so doesnt work
and the placeholders are
%craftconomy_coin_@int% and
%craftconomy_dollar_@int%
ugh. doesn't int need to be a number there?
oh nvm. it does not
can you send a full startup log @flat peak please?
hi will it be an update for vault ?
update for vault? this is not the Vault discord server
vault papi extension its not u guys ?
oh. what update does it need?
thought you were talking about the plugin since you didn't mention extension
%vault_eco_top_balance_#% does not workd on 1.17.1 with last vault update and last papi update
that's intentional. they've been removed completely from the vault expansion. you can still use them if you want. but they're being moved in the essentials expansion.
Few reasons they're been disabled and moved:
- They used to work only with essentials anyways
- They were very very laggy for no reason.
but if i choose 2 version beind of vault expension it work but it bring my server up to 100 % cpu usage and ram
yup. that's why they've been removed from vault expansion
there's a test build pinned if you want to try it. for essentials expansion I mean
do you have the placeolder for essential that give baltop ?
if you jump to the build message above or under
they're listed
yes i would love thise expension 😄
i am lost where is the build message in discord or on essential site ?
oh yeah... [18:21:52] [Server thread/WARN]: [PlaceholderAPI] craftconomy is attempting to register placeholders via a PlaceholderHook class which is no longer supported! the CraftConomy expansion needs updating.
in this discord. see the pinned messages.
oh is there any way i can do something?
the only way would be to contact the developer of the expansion but he seems to not have been around for a while. You could also contact the developers of the CraftConomy plugin itself and add them to add official placeholders instead
or i can use another economy plugin XD
yeah. why not use essentials?
its economy is pretty solid
i have find the essential expenssion but not able to find new placeholder 😦
i'm looking for one which supports atleast 2 currencies
ah. well then try looking at either: GemsEconomy or MultiEconomy
do you see the jump button?
press it
it will take you here:
I'll just update the pinned in a second tho to have them listed there
adblock? what would your adblock have to do with this? do you use discord web?
but you're welcome 👍
btw @vivid swift you will need to use development builds of essentials as well
it doesn't work on 2.18.x
you can find them here: https://essentialsx.net/downloads.html
yep already have dev build 😄 thanks alot
yw 👍
New test build for the Essentials Expansion. This one adds the baltop placeholders that were removed from the Vault Expansion with a lot of performance improvement.
Added placeholders:
%essentials_baltop_balance_fixed_<position>%
%essentials_baltop_balance_formatted_<position>%
%essentials_baltop_balance_commas_<position>%
%essentials_baltop_balance_<position>%
%essentials_baltop_player_<position>%```
As you can see the formatting from vault will still work here.
Exampels:
```diff
- fixed: 1000000
- formatted: 1M
- commas: 1,000,000.00
- no special format: 1000000.00
The player placeholder returns the display name of the player from the respective possition.
All positions start from 0. So:```diff
- Top 1 will be position 0
- Top 2 will be position 1
- etc```
At the moment, the baltop placeholders might not load when you start the server. You will probably have to run a command like /baltop to load them into cache and then they will work.
u too man. and you're welcome
@errant iron what u think of my message? xD
Didn't you use to be staff for Discord Bot Maker or something.
whats the best way to make a leaderboard with placeholders? Is there any easy way to do that?
some expansions may already handle a leaderboard, but there is a plugin called LeaderHeads that can manage leaderboards for all placeholders
LeaderHeads or ajLeaderboards
any comment on which is better (prefermance or usability wise)
welp leaderheads doens't have 1.17 supported and hasn't been updated as recently, so i'll use aj
Looks pretty good!
No.
Would never support such a lazy thing
lmao
Where do i know you from then 🤨
Imagine there being like a tab that shows what servers you share with someone...
Already looked
- doesn't really make sense though because i never talk in them.
Luckperms?
Regarding the PAPI plugin. There are no placeholders for checking achievements? Or can I make a check in some other way?
I forgot to look there for something 😄
Yeah. Was mod there for a while
hello is there any way that i can display a given value for a given placeholder? e.g.% statistic_mine_block_usernr1%? I'd like to rank anything like block mining.
Sorry but my bad eng :<
E.g.
%statistic_mine_block_user1%
%statistic_mine_block_user2%
Etc
You can use a plugin like LeaderHeads or ajLeaderBoards to create leaderboards for a lot of placeholders
so how to register custom placeholder?
i am using a placeholderexpansion class and PlaceholderAPI.registerPlaceholderHook(bla bla bla
this method seems to be deprecated
new PlaceholderClass().register() in your enable method
thx a lot
is there a placeholder to check the server time?
like if the time is to 0 ticks there is a boolean
%player_world_time%
and i can do something with javascript papi?
probably. yeah
can papi expansions be used for offline players?
eg can i parse %player_name% without the player being online
if not why the heck does it take an OfflinePlayer
yeah u can
up to the expansion if it allows offline player
but papi should let you
hmm
eg most of the essentials placeholders work offline
does the player expansion?
certain things might
which placeholder?
player_name
oh wait
it should
so
im guessing this is a problem on my end https://img.bristermitten.me/screen_2021-08-04_12-58-29_znDE.png
yeah it would return nothing if it failed
yeah i was looking at that, just misread it
cool beans
smh.
yo @slow crystal you need a lot of players to join your server btw?
or what u need this for?
May I introduce you to Server-Side bots? xD https://www.spigotmc.org/resources/fake-players-server-side-bots.91163/
lambda attack
anyone know the placeholder for unique player count # ?
I want it in the welcome msg
%server_unique_joins% 👍
TIL
ty
I have a problem installing JavaScript. Below is the error.
[PlaceholderAPI] expansion class JavascriptExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory
update the javascript expansion.
/papi ecloud download javascript then you do /papi reload
what is the custom-join-message plugin? does it support PlaceholderAPI?
essentials has {UNIQUE} btw
Exactly the same error
can you do a /papi dump please? and send the link here?
can you go to plugins/PlaceholderAPI/expansions and delete this: Expansion-javascript.jar then restart the server, then do the download command again and reload after
Nothing has changed
can you restart server again and send a full startup log please?
@thorn thunder please help. idk what's going wrong
it can't find nashorn
but the download command should've downloaded latest version
Could it be because I have PAPI 2.10.9 and not 2.10.10?
Ok
Could you provide the output of java -version ?
Java 8
Is there any other exception in your log?
After installing PAPI 2.10.10:
Ah heres the issue java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 52.0
As I understand it, you need a higher Java?
i was been looking around and tried to find an placeholder that says what world an specific player is in
Yea, but that seems to be a mistake. We'll fix that asap
Well thank you I will wait
me too
did u google or guess
I've used it already
you know there's a wiki that lists hundreds of placeholders right?
player_world how do i make it say what specifiy player, {playername}_world?
im new to all dis
you use the parseother expansion
%parseother_{playername}_{player_world}%
Installing the JS 1.6.0 add-on solved the problem, I will work like this for now
https://cdn.discordapp.com/attachments/840627211647057970/872572385184858162/unknown.png
The placeholders turn to PNF after updating
Which placeholders are those
OtherPlayer
it means it can't find the player you're trying to parse the placeholder for
oh i think i am online (-?
well are you parsing them for yourself? are you not using parseother? also why use otherplayer when you are online? just use the Player expansion instead
Could somebody give me an example of how to use precision with the Math expansion for papi please. I've tried several ways to enable precision in my placeholder and it fails. Here is the example on the github that I'm following for reference. %math_[precision]:[rounding]_<expression>%
%math_0_1+1%
Oh ok I was overthinking lol, thank you.
since the placeholders are the vanishing thing imma ask here
why do my DeluxeMenus Item Lore Placeholder ParseHolder(aaa) go away after a second
it doesnt give any errors,
but i think you could make the errors better like if a line in a text was bad should say theres da bad and not throwing some random bly*d
i also tried removing da dot
only using 1 lore
idk
errors come and go
lol
looks like im burger king for errors
Is it possible if someone can help me a bit as i am struggling
I would like to create a custom "currency" either directly inside placeholder API with javascript or to use some items with custom name and lore (Like let's say cookies)
I would like to create a small "shop" or menu that would use those coins or cookies like 1 5 25 or 100 and it will take that from the user if it has and i would like to add those coins to virtual budget/balance
So in conclusion i would like to replicate a system on popular server where they receive a timed hype points where they can use it and vote for some options, i can do something similar where it will use those coins but i can't manage to create a system where those will be stored under x player (can i use like balance for either armor stand or unknown player with some id)
Thanks for anyone who can help me out with this 🙂
I feel it would be easier and less resource intensive to make a plugin
and more reliable with the data storage
because, while you can store data with javascript, it's not really supposed to be done how you want it
because you usually want to retrieve all data when server starts, cache it, save it when server stops
I know but that would require more brain from my end xD
And that is at least for now on short term as i just started learning java until i learn the whole database, storage and everything i would probably either won't need the plugin or someone will beat me to it
xD
otherwise you'd be reading/writing everytime you called the placeholder basically
You could however, try using player meta via deluxemenus
which comes with a placeholder too
and remember you can execute the deluexemenus actions from anywhere you can put a command
/dm execute <action>
on minehut this https://www.spigotmc.org/resources/backpack-store-any-item-great-for-survival-servers.17192/ pluggin doesnt work if i edit it
anyone know how to help
Hello, how would I go about making a request regarding the multiverse expansion?
I realise I need to bug the MV guys about that one
hey I can't register why
hey i want to join the web placeholder-api but i can't why
Anyone know the placeholder for the total numbers of players who has joined the server?
In the PAPI "Server" module there is this: "%server_unique_joins%"
I would guess that is what you want.
That is indeed what I've been looking for. Thanks so much!
How do i list players out in tablist?
%playerlist_online,normal,yes,1%
%playerlist_online,normal,yes,2%
It returns with "Offline"
help!
if you want to get a specific player, you have to start with 0, if you want the entire list, replace the number with list
register is disabled on the ecloud, if you want to create an account, you need to ask funnycube to add you
Hi Im trying to make a list of player online in tab
41: refresh: 4 text: '%playerlist_online,normal,yes,list,0%' 42: refresh: 4 text: '%playerlist_online,normal,yes,list,1%' 43: refresh: 4 text: '%playerlist_online,normal,yes,list,2%' 44: refresh: 4 text: '%playerlist_online,normal,yes,list,3%'
list will list all the players in just 1 tab
it works. But if the other players not found it will return as "Offline"
How do I fix this
you can't really fix that
that's how its meant to work.
what do you want it to return if there is no player?
can the expansion of playerlist edited?
it is open source. so yes if you know how to you can. but you could also use another expansion for this:
%changeoutput_contains,ignorecase_{playerlist_online,normal,yes,list,3}_offline__{playerlist_online,normal,yes,list,3}%
try this one
and please don't modify anything in it.
doesn't work.
Am I doing this right?
44: refresh: 4 text: '%changeoutput_contains,ignorecase_{playerlist_online,normal,yes,list,3}_offline__{playerlist_online,normal,yes,list,3}%'
Doesn't recognize the pllaceholdeer
Oh it works! But I have a problem. It now shows my name 6 times in the tablist
and it didn't do this before? also you did switch the 3 for every single item in the list right?
👍 no problem
i believe u running unsupported java version, the new javascript expansion now run on java 11 at least
though i suggest java 16 if possible\
My server is 1.8, when Java 11 or 16 is used, the server does not turn on
sadly u have to role back ur javascript expansion version
find it on ecloud
as new version intended to make working with new java version
I already managed to install javascript
is it work now ?
hi does anyone know alot about changeoutput?
ok, I get it
1.8 servers can run on java 16
How can i help?
When i use the placeholder, it only gives the yes value
Can you show me what you're trying to do please?
@smoky spoke u might've missed my message ^
sorry i took a shower
👍
No they cant
well.. internet went down. I was saying that I thought it the same until glare told me it doesn't actually work.
wat
but-
i just did it-
20 minutes ago
unless they have some other server software
im using paper 1.8.8
and AdoptOpenJDK 16.0.1.9 hotspot
https://i.imgur.com/Bim32Xb.png and the huge error in the middle always happens, idk what it means but it doesn't affect the server, i can join the server and stuff
ooh I had the same issue along time ago, it's in the start.bat thingy
you have to add some weird code
look at #off-topic
Hi one question: How can I make the pinger expansion take the motd from a minigame plugin, and not the motd from server.properties?
you can't.
Ok, but isn't there a plugin that can do it?
If there is a Placeholder that reads whether there are other players next to the player and outputs Yes or No
you can use the PlayerList expansion. It has a way to show how many players are near a player and you can give it the distance.
Thanks, but i found ParseNear
ugh alr then.
How can you kill a player like /kill %player% but that doesnt work so how do I do it
Kill it feom where?
so I'm trying to do a command where it kills you when you touch water it all works fine for when I do like @p but I want to make it kill the player that touches it so basically how can I do a kill command for the player that executed it
so like how can I do a command block for when you step on it it kills the %player% without doing @p
Pretty sure the only minecraft way to obtain the target player like that is @p.
How do I fully disable the baltop placeholder from running? I tried disabling it in the config, but it still works.
In the Vault expansion?
Yeah
I only use Vault for the prefixes, don't use baltop on my server, but its causing a lot of memory usage and lag for me.
I didn't even think it worked on the latest version of the Vault expansion
i'll whip up a quick version of the vault expansion that doesn't even have baltop code at all
Ok, thank you!
Could you temporarily accept my friend request, so I can send you a link that I don't want shared publicly?
What link?
Flare
What's that?
Am I allowed to advertise a link to flare?
uh, I don't know what it is
It's a way to profile lag issues, a better alternative to spark and timings.
I want to show you that the baltop task is still running
On my new version?
Yes
The code for the baltop task literally doesn't exist in that one
I did /papi reload, was that enough to disable it?
Do a full server restart
Alright
./papi reload makes all devs cry
Well it's usually pretty good
lol
but the weird tasks that the baltop thing does kinda sidestep papi reload
I noticed there were two Vault plugins, 'vault' and 'Vault', so they are both disabled, and reloaded the plugin. Everything works like before and the lag issue from baltop tasks is gone now.
Thank you very much
nice
what's that?
sorry i forgot to respond.
%changeoutput_=_{Special70}_{player_health}_6_yes_no%
ugh. what's the Special70 for?
i believe this placeholder should say yes if i have 6 hp right? when i parsed this with full hp, it gave me a value of yes
1 sec. that placeholder is not right
%changeoutput_<options>_<input>_<matcher>_<output-if-matched>_<output-if-not-matched>% This is the model.
equals - match the input exactly
ignorecase - match the input while ignoring cases
ignorecolor - match the input while ignoring colour codes
contains - check if the match contains input
>= - check if the input is larger than or equal to the matcher
> - check if the input is larger than the matcher
<= - check if the input is less than or equal to the matcher
< - check if the input is less than the matcher
``` These are the options. no `=`. and no name required. That placeholder is supposed to look like this: `%changeoutput_equals_{player_health}_6_yes_no%` @smoky spoke
I thought for some reason he said /plugman reload
my memory was prob mixed up with the otherplayer placeholder
Just so you get the clarification too Star and don't think I'm an idiot roasting your guys' placeholder plugin lol. My mind interpreted his command as plugman not papi
yeah. I assume the parseother placeholder. all good. and you're welcome.
lol plugman
lmao. I feel that.
what a hot meme
hey question with xconomy
papi trow errors
any idea why?
i remember it also caused problems with other economy plugin
you'll have to contact the developer of xconomy. seems like vault is trying to fetch the data from xconomy but the problem is that there is no data to fetch. something is null in there.
but i got a similiar issue also with a custom economy plugin too
randomy economy of players fucked up and when i stop server papi spammed a lot of error
(1.15-1.17)
well its not PAPI's fault that I Can guarantee. at least not this time. In this case, Vault is trying to get the economy to display it in a placeholder but it can't find any economy bcz it is null.
well dunno i just removed vault module and now work fine
that's why it says PAPI. bcz it tries to display it in a placeholder.
well yeah. error was like this economy plugin -> vault -> vault expansion
but the root problem is from the economy plugin
yeah i think too is that why i tried to switch economy plugin
why not use essentials's economy tho? If you have the essentials plugin installed, it has a good economy implemented. its pretty good
but yeah if you don't have and don't need essentials I understand. also try plugins like GemsEconomy.
i use already cmi but is a pain to import economy inside it
since they use this prefix
CMIGlobal%%0.0
on field
i noticed removin papi vault
cpu usage went from 500%-600% to 17%
was something bad with it/economy
lol
yeah. vault leaderboards are very bad. they are currently being rewritten and moved directly in the essentials expansion.
i was using vault placeholder on featherboard (papi)
but is fun to see server usage going 400-600 with 0 players
and timings never show that
i am so happy that i fixed it
so it was economy or placeholderapi fault?
its the vault expansion's fault. not really economy or papi
oh
it was years that i got that issue only in skyblock lol
never figured until today
how do i only show first letter of my placeholder
can you explain a bit more?
so I use a luckperms_suffix placeholder whose values are [Newbie, Rookie ...], I want to show only the N R and so on
ugh. then you'll have to use the Javascript expansion.
you do need a bit of javascript knowledge but shouldn't be much
here's the wiki and all that for the expansion ^^
so how do i use it? %javascript_server.charAt(0)% this isnt working
well. the code doesn't go in there. there should be a file generated for each javascript placeholder in which you will place the code.
where is the file generated
i installed jsexpansion and gave myself placeholderapi.js.admin permission but i cannot use the jsreload command
oh sorry, i didnt know that counted as ping
yeah. you can disable then to the right when you try to reply. it has an ON/OFF button.
gimme 1 minute pls. will look into it
btw @wheat gulch if you really can't get it to work and I don't find a solution just use /papi reload
but will look into it
see if I can find anything first
i did /papi reload, it didnt work so I reloaded the plugin using superutils and it crashed the server, so I did a complete server restart 🥲
Has anyone gotten this error? 😬 https://paste.helpch.at/utowigugob.shell
yeah. just update your server expansion. /papi ecloud download server then /papi reload
Already tried that 😦
then go to plugins/PlaceholderAPI/expansions adn delete the Server expansion from there, do a full server restart. No reload or anything like that, and then download the expansion again
okay
that's for Merawrr btw.
I can't seem to find anything about this permission
@wheat gulch can you do /papi reload and show me the errors that happen when you do it?
That worked! It appears that there were two versions of server downloaded 😕 😭
Thank you 🙂
no problem. 👍
i cannot send an image here
^^^
in the console I mean. do you get any errors/messages?
so how did it crash last time?
if it works I think you'll have to stick with /papi reload over /jsreload unless you want to OP yourself. I don't really know what's wrong with the permission rn.
it crashed because i reloaded the plugin with superutils (its like plugman)
oh please don't.
that's really bad
just restart the server if you want to reload or if the plugin offers a reload command use that
but don't do /reload or plugman or anytihng like that
@thorn thunder can you help us here btw? It seems like the admin permission for /jsexp relaoad doesn't work. can't really take more time to look at it right now
I got it to work and the helloWorld example is working. the command shows red but it works
oh yeah. those commands are not actually registered for tab completion.
is there a way to limit papi for certain plugin only because even if i do unregister as soon i do restart my server everything is back 😦
I don't really understand what you need. can you explain a bit more? what are you trying to accomplish?
exemple i have a plugin orereplacer i dont whant it to handshake with papi and in orereplcer they dont have a config that stop theyre placeholder to load i want to load only plugin that i use if i do unregister orereplacer its not in /papi list anymore and when i do restart the server its back in the list . so i wanted to know if its possible to stop some plugin to link with papi
sry for my bad english
no. the plugin would have to provide an option for that. its not possible from PAPI to do it.
I Don't see why you would unregister it either. just let it exist
does it affect something or why would you want to unregister it?
because since i have install papi my server lose alots of tps when people login and i dont whant to remove papi because its insane 😄
hmm. yaeh. you would either have to edit the code of the plugin if its Open Source, or at least ask the developer to add an option in config for it to hook into papi or not. or something like that.
ill find an alternatif 😄
@summer nexus [20:15:28 INFO]: BlitzGamer_88 issued server command: /papi parse BlitzGamer_88 %checkitem_remove_mat:stone,amt:3% [20:15:28 INFO]: 0 what's with the output? can you remove that by any chance?
that's the console output while I do the command from ingame
Blitz gamer
only happens when I remove items @mint fable. so I assume its a debug message you forgot. please do remove when you get some time
?
ugh. just use %vault_group% instead of prefix. bcz that takes in the group actual name which usually doesn't contain colors and all that other crazy shit
yes sir? how can I help
there's some random number outputed when I Parse checkitem remove. dk what it means or what it is
sir hypixel
alr. 1 sec. will open MC
I take you pinged the wrong cj?
invite only pls. k
oh lmao
didn't even notice
sorry
wait. why make prefixes with js??? this seems like a waste.
just use luckperm's prefixes and stuff
well then at least use LuckPerms's placeholders instead of vault
@turbid tide #ecloud-updates
thank you sir
blitz the problem was orereplace thanks agaiin for ur good work 😄
ok so let me get this straight. you want this javascript to return a prefix if the primary group is X for that player?
have you tried /papi parse me %vault_group% to see what it actually returns? @vast anchor
wait but why does your group name contain a color? it really shouldn't
and you need to replace the ampersand symbol with a section symbol to check for colors because in javascript they are already parsed
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.9</version>
<scope>provided</scope>
</dependency>```
Dependency 'me.clip:placeholderapi:2.10.9' not found I copied directly from the github api page
dont crosspost plz
please stick to 1 channel. thank you
sorry i just saw that this was a dedicated papi api channel
well I mean you can still ask that question here but you already did in #development so please stick with that
ah ok
@vast anchor pinging you bcz I assume you missed this. ^^^
Can anyone tell me what all placeholders are available from chatreactions?
Is there any place holder for amout of scrambles resolved by a perticular player?
there is a full list of existent placeholders for that plugin on the wiki: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/placeholders#chatreaction
there is. and its called %chatreaction_wins%
thank you just what i needed
👍 no problem
Chance there is a .upper() thing for placeholders?
https://paste.helpch.at/hogojadave Is there a way to fix this error?
Oh?
Lmao
Hi, placeholder spam my console and idk fix it
.... [07:54:49 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70)
.... [07:54:49 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98)
its fine. he fixed it somehow. probably gave the wrong permission
Just don't use switch and instead use if and indexOf. like this:
var rank = "%vault_group%"
function getprefix() {
if (rank.indexOf("Administrator") != -1) return "&9[&lAdmin&9] ";
else if (rank.indexOf("SomeOtherRank") != -1) return "&eSomeOtherRank";
else return "&cНяма";
}
getprefix()```
that's the only thing it says? nothing else?
.upper()? what would that do. can you explain a bit?
the problem is one of your ParseOther expansion. you are using it wrong
papi parse %player_name% %javascript_rewards-delay_Mvp+_start%
and I get
You must supply a target, and a message: /papi parse {target} {message}
why is that?
well... you see. commands don't usually parse placeholders
just use me
instead
or where are you using it? are you using it in another plugin like deluxemenus?
yes in deluxemenus
ah
well don't use all that
just use [console] %javascript_rewards-delay_Mvp+_start%
but how will it know to parse it for the player
im trying to make a rewards system with a cooldown
ugh
the player is the viewer it already parses other placeholders. anyway if you really want to use that command just download the player expansion
/papi ecloud download player then /papi reload
but I'm telling you, my option will work too
so
if I just add
[console] %javascript_rewards-delay_Mvp+_start%
without any player name
it will add the delay just for me?
yeah
because deluxemenus parses the placeholder
before it even does the action
in a new update I've added a [placeholder] action just for this but its not yet out. need for Glare to check and merge my pull request first
hard to believe
but it worked
you are a genius
ok
now how do i make it to update items
so it says 23h59m42s
if i reopen it will update
how do i make it to autoupdate without closing and reopening
well I Don't know why it would be hard to believe? but just use update_interval: 1 in the menu options (so basically where your menu title, size and all other stuff is) and then add option update: true in the item options so where the material, display_name etc. is
Is there a way to parse a placeholder as another player then send the output to a different player?
parseother
parseother expansion
hello short question how do i enter 3 permissions in the query at the same time
what query exactly?
type: permission
expression: ''
deutsch ?
do you want it to check for all 3 of them? or 1 of the 3
all 3
first:
type: has permission:
permission: PERM.1
second:
type: has permission
permission: PERM.2
third:
type: has permission
permission: PERM.3``` something like this
will work
how can i prevent that he can buy a position several times in the menu.
the player should only be able to buy each position once
when they buy, you give them a permission
and then only allow them to buy if they don't have it
how do i write that?
something like this
left_click_commands:
- '[console]lp user %player_name% permission set SOME.PERMISSION'
left_click_requirement:
requirements:
noperm:
type: '!has permission'
permission: 'SOME.PERMISSION'```
I can have 2 requirements on the right left hand because at the same time I check the money whether he has that much
yeah. you can have as many requirements per each click type as you want
like I Showed you with the 3 permissions
they can be any type and how many you want
right_click_requirement:
requirements:
example_3:
type: has money
amount: 5000
deny_commands:
- "[message] &cDu hast nicht genügend Geld."
- "[close]"
left_click_requirement:
requirements:
example_3:
type: has money
amount: 5000
deny_commands:
- "[message] &cDu hast nicht genügend Geld."
- "[close]"
these are my current requirements how do I write them down now?
can you please write them down for me as an example
lets say I have the placeholder %ajpk_current% and I want it to parse that placeholder for "Robot" and I want to send the output to "Robot2" What would the parseother parse command be? When I tried I got a console error.
how do you write down what? the thing I Just showed you?
/papi parse Robot2 %parseother_{Robot}_{ajpk_current}%
@hidden pumice here you go. https://hastebin.com/ilequnonop.less
something like this should work ^^6
I only did it for left click tho.
but its the exact same for right click
I also modified the deny_commands spacing a bit so its better now
Is there a placeholder to show how many people are online that are in a specific Minecraft/scoreboard team?
I use because I hve to use 2 different LPerms Groups for 1 placeholder
What is the placeholder to add a date
anyone know a PAPI Permission placeholder that i can use in the holograms that says if a player has a certin permission it says true or false i tried the player extension but it doesnt work with Holograms and i do have Hext
if u do please tag me
Failed To Find An Expension Named: Player
How can I solve problem?
have you tested the placeholder with the parse command? /papi parse me %player_has_permission_PERM.NODE% ?
@wide bridge read this please ^^
%server_time_dd/MM/yyyy HH:mm% You can learn more about it here: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#server
i realized how to do it
you could probably use the PlayerList expansion + the team expansion.
it works but it doesnt update on the hologram
so on the hologram it just show the placeholder itself?
How Do I Know If the Host Allows Connections to PlaceholderAPI eCloud?
or what exactly is happening?
you'll have to ask them I guess
and you're 100% sure you have Holographic EXtension and PRotocolLIb installed?
To who?
Yes
the host. ask the host if they block any connections or anything like that
then please send a startup log
Thanks i'll try it
Someone know which placeholders should i use for ezblocks top player and top broken blocks ?
you will need to use a plugin like ajLeaderboards or LeaderHeads if you want to create leaderboards
ok which one do you suggest ?
any idea how i could add placeholders by itself to the plugin?? without using ecloud as one of the plugins im using got removed :/
I need some help with a custom expansion.
I tried to follow the wiki (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion) but it don't work as expected.
At first i create a expansion class: https://paste.md-5.net/qevuwuqoku.java
In the onEnable method of my plugin i register the expansion: https://paste.md-5.net/ifehejihos.coffeescript
Console: https://paste.md-5.net/junetapapi.md
I also added papi as dependency in the plugin.yml
What could wrong with my code ?
It's quite strange it say's Successfully registered expansion: BungeeBridgeS and two lines later No expansions were registered!
Also the method onRequest will not be called.
The other message only shows external expansions I think. It won't list the internal ones like yours
Also you should make your identifier lowercase
Also u sure you called it correctly? /papi parse me %BungeeBridgeS_factionsuuid_player_power%?
What do you mean with "other message" ?
Isn't this documentation (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-a-plugin-internal-class) for a self created plugin ?
Wait, let me test it
The message that says 0 expansions registered
oh okay 😄
/papi parse me %BungeeBridgeS_factionsuuid_player_power% works..
Strange ;o
Well not strange
Its case insensitive
If you made your identifier BungeeBridgeS then that's what you use
oh okay, let me try something
Also I meant to say case sensitive. Not the other way around
It's working, thank you ! 🙂
Yw 👍
why can't I use the command "/papi eclod" and what's worse, I can't download anything like Player, vault, server and everything can't be downloaded I tried to download the vault on the eclod web but it doesn't work, why?
please give my heart
im asking for a rework of the %player_pitch% placeholder or is it not possible?
the reason why is that when im facing down, it's giving a positive value instead of a negative value
Use a javascript placeholder to invert it if you'd like
ok
i forgot how placeholderapi worked, i needed to put something like <fastest> <fast> <medium> <slow> <slowest> and then the placeholder in right?
I don't think so? I think you're thinking of HolographicDisplays and the rate in which they refresh placeholders.
Hello, for some reason Mcmmo placeholder dont work for me.
With prase the output is just the placeholder
i did donwload the expansion
and restarted the server.
what else i can do ?
can you send a startup log please?
Hey there! Where is %server_name% edited?
plugins/PlaceholderAPI/config.yml I believe
Perfect! Tysm!
can you also do a /papi dump and send the generated link @shut bluff ?
sry
no worries. what placeholder were you testing on?
for example: %mcmmo_level_swords%
but a few of them, no placeholder is working from mcmmo
others from other plugins do work fine
do you see anything in console when you try /papi parse me %mcmmo_level_swords% ?
[21:12:38 INFO]: Parthurax issued server command: /papi parse me %mcmmo_level_swords%
no :/ strange issue
also what mcmmo plugin are you using? can you link me the spigot page please?
so. I think the problem is that
This expansion gives users placeholders for both mcMMO Classic (1.x) and mcMMO Overhaul (2.x).
anyone using mysql extension for papi help ? query: SELECT x FROM y WHERE name = '{%mysql_xx%}' can i use mysql parsed parameter inside a another query to achive a different information from mysql table ?
it should be fine, hmm i will try request support on mcmmo again. thank you very much for your help !
alr. no problem 👍
as of now I don't think the expansion supports bracket placeholders. and even if it did, you would use them as {mysql_xx} not {%mysql_xx%}.
if they do not work like that you can always request the developer to add support on the expansion's github
open a new issue asking for BracketPlaceholder support.
thanks for response, may i ask a question ?
sure xD
is it possible to parse placeholders from one of the bungeecord connected servers from another one with any plugin or extension other than just parsing with mysql
there is an API that allows that but you will need a plugin to implement the api. https://www.spigotmc.org/resources/unmaintained-bungeeplaceholderintegration.79900/
If the plugin "Deluxetags"doesn't work, and only shows placeholder and nothing else is that bc i don't have placeholderapi installed?
@ me if you answer
okay fixed
it was indeed the problem
ayo so when i use this plugin in my own plugin
i have some placeholders such as %player_name%
the join message only produces my name and no one elses
so if someone joins my server it says my name instead of theirs?
i'm having this placeholderapi from luckperms error while i'm on the latest version of the expansion https://paste.lucko.me/PcYJEYXyiM
do u have latest luckperm ?, this issue have been talked on lp support channel before about miss-match expansion version and luckperm version . Current latest lp is .55. If u unsure what expansion version to get pls contact luckperm support team
can anyone tell me what i am doing wrong here? this math placeholder
%math_0:_MIN({math_0:_{checkitem_amount_mat:{cp-data-crucible.mata}}/({cp-data-crucible.amt.A}*{cp-data-crucible.qnt})},{math_0:_{checkitem_amount_mat:{cp-data-crucible.matb}}/({cp-data-crucible.amt.B}*{cp-data-crucible.qnt})})% i am using keep refusing to work and is always giving out the same error that is
[09:56:38 WARN]: [PlaceholderAPI] [Math] Cause: '{checkitem_amount_mat:lapis_lazuli ' is not a valid Math-Expression. and i am pretty sure that i am not missing any parenthesises like the error stated
in this situation:
cp-data-crucible.matais replaced with lapis_lazulicp-data-crucible.matbis replaced with gold_ingotcp-data-crucible.amt.Ais replaced with 80cp-data-crucible.amt.Bis replace with 20cp-data-crucible.qntis replaced with 1
id appreciate it very much if anyone can help me with this problem as im struggling to understand what i did wrong
@fast egret I don’t think you can use command panels data inside placeholders like that
At least I tried it before and it didn’t work so
nah its possible, i have plenty of other placeholders with cp placeholders inside them and they worked well, im not sure whats wrong with this one
i suggest u make it into a javascript placeholder, it will work better
Papi parses math placeholder and it works, but it does not work in holograms. What to do?
u need to have hologram extension
just download from spigot
You mean this: https://www.spigotmc.org/resources/holographicextension.18461/ ?
yes
if u use server from 1.16.5 and higher use for hex support https://www.spigotmc.org/resources/holographic-placeholders.64535/
I've downloaded and loaded it but the math expressions still do not work
my bungee placeholders broke i have the plugin update and when i donwload bungee and try to reload it i have error in console
https://pastebin.com/jwy9LA4M
i dont know any javascript and dont have the time to learn it, i guess its a dead end for me ;-;
i think i can help u
id appreciate it a lot lot if u can
so what u want to achieve ?
i just need the placeholder to work
what you're doing wrong. is that you have. %placeholder_{inside_placeholder_{inside_placeholder}}%. And that's not possible
so can u break down the placeholder so maybe some of us can help ?
here
i did explain the other placeholders i used in it
this might as well be the case, its quite messy if im being honest lol
well. it is the cause. that's exactly what the error says. if you want to go with more advanced like that you need some javascript knowledge and use the javascript expansion.
i think i can help u write 1
you nee protocol lib as well.
I have it
tysm in advance if u can spare ur time to get the thing going for me, i currently dont have much time to learn javascript as im occupied by other tasks atm
can you send a startup log then please?
first i need to know what placeholder u using beside checkitem
and the cp-data-crucible.qnt where is it come from so i can call it
im using math and the cp ones r from a gui plugin called commandpanel
k
@fast egret im not good at commandpanel, but is this item from player's inv or a menu slot ?
its from a chest gui's item
ugh. according to that startup log I can't find neither HolographicPlaceholders or HolographicExtension
oh.
you do have some extension
but I've never heard of it
[13:52:06] [Server thread/ERROR]: Could not load 'plugins/HoloExtension-0.0.1 Alpha-all.jar' in folder 'plugins'
org.bukkit.plugin.UnknownDependencyException: Unknown/missing dependency plugins: [Vault]. Please download and install these plugins to run 'HoloExtension'.```
On my way
I'm pretty sure he can read. xD that's why I pasted him the error and not told him what the problem is
Thanks Bltz
so u want to check item from chestGUI ?
install vault
i use that placeholder as a lore part for an item in a slot, and to set a variable's value
i just need a quick recreation of the placeholder
I'm gonna ban you now. ok? thanks
try
I've installed Vault but the placeholders still donot work
Not in hologramdisplays nor in citizens
probably bcz you were meant to install HolographicExtension or something. you installed some HoloExte plugin I've never heard of
it took you a while to do the inspect
Baole told me it's for 1.16.5, which is my server on. The holographicextension does not support 1.16.5
it does. it support up to 1.16.5. It breaks in 1.17 tho.
and for 1.17 you should use HolographicPlaceholders
instead
Okay I try it then
i said use holographicPlaceholder if u on 1.16.5 or above
👍 no problem
now i still need to figure out what the other guy to to do. So far i understand that he want to calculate the item in a menu from chest command plugin, which is call via command pannel, which is also another GUI plugin .....
nah its pretty simple, all i need is the math placeholder working, the cp placeholders r dealt with other things that ive made
its ok if u dont want to do it, ill return to it in the future and try to resolve it on my own
nah im already working on it, i just worry that i cant call the material
oh ok 👍
almost done
@fast egret i just realize on the wiki page they don't mention the crucible.qnt and other things, is that the name u give them ?
ye, i created those variables
k
is there any extension to save numeric statistics monthly?
so it should me %cp-data-crucible.qnt% and other things like that ?
@fast egret ok so here the thing, so what would u want the math to return cause currently here is what i break it down
known math
math_0:_MIN(
{math_0:_
{checkitem_amount_mat:{cp-data-crucible.mata}}/
({cp-data-crucible.amt.A}*{cp-data-crucible.qnt})
}
,{math_0:_
{checkitem_amount_mat:{cp-data-crucible.matb}}/
({cp-data-crucible.amt.B}*{cp-data-crucible.qnt})
}
)
so u want to compare and return the name of the material or the amount of the smallest material ?
the amount of the smallest material
if they were to be equal, i guess ill have it pick either one
well they both have same number but it would return 1
i mean for example if both were to be 2, then it can go with either a or b, or just a or b for simplicity
tysm for the immense help 👍
if it not work just nag me and i will make version 0.2 .-.
👍
imagine it straight up not working ;-;
is it working ?
i was a bit distracted by a few other things, ill check it tmr as i dont have access to the server rn, it looks pretty fine imo so im pretty sure it will work
if there is any problem, ill ping u 👍
is there any extension to save numeric statistics monthly?
u can save it using javascript
I updated from 1.16.4 to 1.16.5 and my placeholders broke
but only some of them broke
what would cause only some of them not to work
im using v2.10.10
disregard
ok WTF
I do /placeholderapi ecloud update all
and the issue gets fixed but it refuses to save past a restart
How do I use or in a placeholder
Like if the placeholder is blank it says something else
What?
json is the popdown menu when you hover over chat
you can use the javascript expansion. or even the changeoutput one for this case
I mean. you can read the wiki. it explains it there: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/placeholders#changeoutput
How do i use placeholder api without maven or Gradle ?
Because i am a noob developer
setting up a build tool is very easy
I will install maven in the future
everything is basically laid out for u, and ur just missing out on great features that will hinder ur experience
gradle > maven
i amma use maven (but not rn)
lmao

thanks 🙂

either one is much better than importing jars
So i am getting a error but i dont know what i need to do to fix it:
Code: https://paste.helpch.at/efixonalit.java
Error: https://gyazo.com/9225d0fb559b218636fc0569c56f596d
it tells you that you don't have placeholderapi installed
But i added the jar
also you should probably know that %tps% is not a PlaceholderAPI placeholder
cant i use ecloud downloaded placeholders?
%tps% is from server
its %identifier_ETC%
yeah
but anyways. As I was saying, you don't have placeholderAPI Installed on your server
thank you 🙂
Now i get an error that he doesnt understand %
This is the code if it helps:
public void onPlayerChat(AsyncPlayerChatEvent e) {
Player p = e.getPlayer();
String rank = PlaceholderAPI.setPlaceholders(p, "%server_tps%");
e.setFormat(rank);
}```
Found the issue
and solved it 🙂
After updating from placeholderapi dev build to the latest spigot build
all placeholders broke on my server
going back to the dev build fixes it
this is my dump
you will probably need to send a startup log from when you have the spigot release installed as well
I get this error
Is that all you need?
from that error it seems like one of the expansions (I assume townychat expansion) can't find the townychat plugin
can you send a /papi dump from when using PAPI 2.10.10
PLEASE?
please*
yeah. @austere hawk seems like you have the townychat expansion but no townychat plugin installed
that is probably 99% sure the problem
I Just realised your dump does actually use 2.10.10 xD
hi
someone can help me?
i need use papi in minecraft version 1.7.10
what version that my use?
I don't know if PAPI works with 1.7 my man
Any idea why some expansions are removing themselves upon restart?
oh no
what can i use to replace?
https://paste.helpch.at/efijoxirut
This is right after installing luckperms, player, and vault extensions
uh, upgrade to a version of minecraft that came out in the last 6 years possibly?
did you do /papi reload?
no kk
yes. I did papi reload and registered each one
send your startup log
?startuplog
will do. /papi reload seems to unregister those plugins for some reason
?paste
0 possibilities for me to use the bookstore on 1.7.10? @errant iron
I mean you can try
But 99.9% of servers don't run that version anymore
and it's hard to support, so we stopped supporting it
oh no
do you have FactionsUUID or Mcore Factions?
FactionsUUID
delete the Expansion-Factions.jar from your expansions folder
that's looking for Mcore Factions, and it throws an exception which stops the loading of placeholders for some reason
it seems to be an issue with just that expansion as far as I've seen
thank you , that's a big headache over
yeah it does lol
oops sorry
I dont think thats the issue
I returned to the older dev build and it works fine, it just ignores the townychat expansion since I dont have the plugin.
how can I detect if a player is in a nether portal
idk u can make a script to get player standing in nether portal event
[AnimatedScoreboard] PlaceholderAPI caused an error while parsing line "&bÔùÅ &7Yetki S├╝resi&7: &f%luckperms_expiry_time_essentials.fly%" for Proomp
https://hastebin.com/ibafagahus.md
Help me please
format error ?
any chance your scoreboard plugin parses placeholders as null instead of Player? bcz that might be it. not sure tho
Hi, is rlir possible to get a placeholder value of specific player by given nickname?
Something like
%value_{placeholder_name}_<nickname>%
you can use the ParseOther expansion
well. oyu can. but not by nickname. just by minecraft name
yeah i meant that
then yeah you can use the parseother expansin like tanguy said
Thanks
I don't understand you.
I try %luckperms_expiry_time_essentials.fly% in scoreboard but not working. Show empty.
(I download papi ecloud)
have you tried with papi parse? /papi parse me %luckperms_expiry_time_essentials.fly%
what does it return?
also check the console for errors when doing that command
I think you will have to contact LuckPerms discord for this one.
I try DeluxeCommands and some errors...
Could not pass event PlayerCommandPreprocessEvent to DeluxeCommands v1.11.2
https://hastebin.com/akemaqiviv.csharp
with the same placeholder I assume?
yes
how would i make one that is one placeholder but checks for multiple permissions but some are sorted higher than others? (javascript placeholder)
if player has npc.reza return blah blah blah.
if player has npc.nisan return somethin else. (this would be prioritised if the player has this one)
// create a variable and name it wantever you want like this
// and use the placeholder you want, i'm using this one
var haspermission = "%luckperms_check_permission_npc.nisan%";
// create a function with the name you want
function permission() {
// if the haspermission variable that we created before return yes (true boolean)
// the js placeholder will return what we set in the return down
if (haspermission === "yes") {
return "&aUnlocked!";
}
// if the haspermission varibale wasnt true it will return what we set down
else {
return "&cLocked!";
}
}
this is the only one i can find but it only checks for one permission. But i would need the same placeholder for multiple permission checks if u get what i mean
yeah. it seems to be like something's null when calling the placeholder. not sure what but probably the people in luckperms discord can help
Okay thanks
function hasPermissions() {
if ("%luckperms_check_permission_npc.reza%" === "yes") {
return "SOME MESSAGE!";
}
if ("%luckperms_check_permission_npc.nisan%" === "yes") {
return "SOME OTHER MESSAGE!";
}
// this will be returned if the player has neither
// npc.reza or npc.nisan permissions.
return "SOMETHING ELSE!";
}
hasPermissions();``` @molten bison something like this is probably what you want
thank you!
but hmmm what if they have both=
which one will it prioritise?
because when i just tried it. It just returns the first one. And not the second one. Which is how it would be needed to be
it priorities the first in the list
just switch the checks
if you want the first one to be second
there is perm priority