#placeholder-api
1 messages · Page 86 of 1
@old lance It already does, make sure you're using the v5 expansion
How do I get that?
Remove the expansion from the expansion folder, then run /papi ecloud download luckperms
Okay
And /papi reload and it'll install the latest expansion
Thank you 1000x
Just fyi, you just need to download the new version of the expansion. No need to delete the older one.
Make sure it’s in your papi list
it was somewhere here in the chat 😄
/papi ecloud download vault
/papi reload
here it is
Yeh
#bot-commands
oh sorry
The link i sent has all placeholders btw 😄
So it’s like 12k?
but it has .0 after it
Yeah
cant it be 12.000
12.000$
Oh why would you want it to show .0
Looks messy
But I guess you probably still can
What’s the current placeholder your using @merry flicker
I want it not to show .0
Wrong person 😂
because it now shows it
i want it to show as http://prntscr.com/qpfvak
vault
What placeholder...
Can’t u just tell the one you put into the command
Instead of having to bring the whole list
%vault_eco_balance_commas%
Use that
i didnt see it but everything is ok now
Cool
=paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
What happened here? https://paste.helpch.at/emezacoyow.sql
You probably need to update your LuckPerms
it's the latest version
Are you sure? What is the version number you have?
LuckPerms-Bukkit-5.0.39
Hmm I just tried and had the same error as you, was running old luckperms version, currently I have LP 5.0.39, PAPI 2.10.4 and LP Expansion 5.0-R2.
If you have the same make sure you restart your server and try again.
/papi ecloud info luckperms
Yeah, same thing here. 5.0-R2
And you get the error even after restarting the server?
you cants use the % signs in it
ill try with it
as if that doesn't work it'
it's likely not supported or someone else can answer for me, as I don't use Towny.
I guess I will just remove the extensions and try again
Seems to have fixed the issue.
Have removed all extensions and reinstalled 😐 Am I doing something wrong or is it just messed
upgrade luckperms to v5 or
/papi ecloud download luckperms 4.1
/papi reload
id recommend upgrading
Have you tried removing the LuckPerms expansion and reinstalling it?
it started with an issue with chat messages sending twice and then i was trying to find the culprit plugin then Papi started spitting this out after reenabling it
yep
even manual download
@wise scaffold seems to have a similar issue above? ^^^
Still not working for you?
try using the 1.15 jar in pinned messages
it is
If you're on the latest dev build of LuckPerms, make sure you're on the latest version of the expansion.
yes sir i am
All good! Glad it's working!
ive been trying to fix something for like 8 hrs and now its 5am so im... not doing... the smartest things
We've all been there.
it was right in front of me
i didnt put the right file in
Thank you for your patience LMAO
Yup!
Can you add a feature about inventory full notification? ~~"
If their inventory is full, the items will not giving to players
What is u on about?
Every time I restart the server, the placeholder %gangsplus_gang% breaks. The placeholders for papi don't stay downloaded and you have to re-download them after the restart in order for it to work.
@vague pine That's not a plceholder xD There are plugings that do that, not placeholders
clip could you please try and fix the issue with DeluxeTags where the tag won't be recognised until we type in chat? We would all definitely appreciate that!
does %premiumvanish_playercount% exclude vanished players?
yes
It includes vanished players if you have permission to see them
@upbeat lichen
good to know 👍
I need help with registering a placeholder
I've followed the tutorial on site but it doesn't work?
Red strikethrough on everything related to placeholder
Should be using register
You're probabaly looking at an old guide.
Use the wiki on GitHub
Can someone possibly answer my question up there ^ Don't wanna repost it xD
@sacred dew Contact the author, also make sure you are running the correct version beforehand
is there a placeholder for blocks placed I can't find it?
%statistic_mine_block%
wouldn't that only count blocks mined though?
Oh sorry miss read your question
Possibly could be %statistic_use_item% But you'd need to test it
He told me that's PlaceHodlerAPI's problem.. @brisk coral
okay thanks!
@sacred dew Try stopping the server and manually downloading the expansion from our site
Thank you, and where would I place this in the plugins ffolder
Does it delete the expansion from the folder?
No it doesn't
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
I'm using current versions of GangsPlus and PlaceHolderAPI
Alright so turns out you don't actually need the expansion as it's built in now
So delete it out of the expansions folder
and your placeholder list is here
np, hope it works
Perfect, appreciate all the help
Hello!
After I installed the ProtocolSupport plugin the PAPI plugin stopped working
Is this normal?
Any errors?
Did that already
Then make sure you have the latest LuckPerms expansion installed
Expansion?
Yes, papi runs off expansions
Whilst the server is stopped
Head to /plugins/PlaceholderAPI/Expansions/ and delete the LuckPerms expansion
Then start the server and run:
/papi ecloud download luckperms
/papi reload
Np
Cuberoid, perhaps a /papi ecloud <expansion> delete command within papi 3.0? ;)
@carmine veldt / @trim mist
Oofity
no clue how we'll do it
although maybe
/papi remove <expansion>
As the other command sounds like ur trying to delete it off the cloud
Or that ye
Loop through the expansions folder, and check if the given string matches an expansion, then delete it
eZ
it's gonna be painful af, there's no standard way to remove a jar as far as I can tell. Looks like we're literally gonna be unregistering it through bukkit, papi, guice, etc, nulling the classloader, then waiting for gc to remove the classes
which is kinda what papi does atm, not as complicated though
might look into sponge and see if it has any fancy mechanisms for it
Have fun kek
'twas cube
@trim mist, You dun goofed.
Come on, dare you to
<o/
Damn Barry be a bad boy
Which placeholder are you trying to use? Or making one as in making your own placeholder?
basically %utils_progress_pig% to return data about pig
i'm making one
i've got it to work & it registered successfully but I don't know how to make what I talked about above
I've got a variables class with all mobs. Basically the thing I've worked on is that when a mob gets killed, it drops a player head with the same texture as that mob and when you right-click the head, you get a ++ in the /headstorage. I'm working on a spawner rankup system. Where you start with the pig spawner, have to collect like 250 pig heads before you can access the cow spawner
So far that works but now i'm making the requirements with placeholderapi so I can make the gui with deluxemenus as i'm not really good with guis
So that placeholder counts the amount of pig heads, correct?
Return the value of the heads they have, and just check if it's greater or equal to the required numbet
^ Thats what I was thinking
I'll grab the config for it for DM
expression: '%utils_progress_pig% >= 250'```
https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements
As a requirement
Yes @white ivy
but I have to make the placeholder first so it shows numbers when parsing it
and that's the part I don't know
oh derp 🤦
I have no idea, I haven't made them before
Let me send you a screenshot
https://prnt.sc/qprype - Basically all mobs are listed here with their textures etc for the drops & head storage GUI
You said you were storing the values (number of heads), so just return the correct number according to the type and player
yeah.. I can't figure out how :/ @brisk coral
@austere hawk
Please respect the rules, be patient and don't ping staff members!
Oh, sorry for the tag. Didnt know
How are you storing the players kills?
YAML
its heads collected btw
when a entity dies, it drops an head
and when you right-click that head, it adds ++ to the entity collected
Show me the storage for one single player
Zombie: 4
Stray: 2
Spider: 2
Creeper: 20
Endermite: 3
Skeleton: 2
Passive:
Squid: 1
and this is my variables class with all the mobs stored https://prnt.sc/qps6tl
And are you checking for the players uuid or?
uh nope, just name I believe
but i'll use uuids soon so if players change name they'll still have their progress
Thank you for taking your time to help me btw. Really appreciate it!
So use the placeholder to retrieve info like this
file.get(player.uniqueId() + ".Hostile.Pig"
Amd just return that when the placeholder is called
And*
Also use getInt instead of just get
File being the yaml file you're storing it, amd I believe it's player.getUniqueId()
Ofc after you change it so it stores uuid instead of name
I have a problem, I did these 3 commands
/papi reload
/papi list```
There was no error, But statz expansion is not added to list.
Might need to download it manually
Do you have the plugins?
Console errors?
What is the error?
what placeholder is best to use for getting a servers "online" status i was using
%pinger_isonline_***.**.***.***:28749%
But for some reason just doesnt want to work anymore
Even pinging popular servers like hypixel still give the offline result
@ me if anyone replys pls
@heady axle the default update interval of pinger expansion is 30 seconds, you can change that from PlaceholderAPI config file.
That will probably fix your issue.
its already on 30
pinger:
offline: '&cOffline'
check_interval: 30
online: '&aOnline'
Anything i "ping" returns a "offline" value
I dont know why either
Thats the update interval, you need to wait 30 seconds from parsing the placeholder for the first time to get an updated value on the second time you parse it.
Any idea why my server keeps returning a offline value then even after 30seconds waiting
Ok so pinging the network returns a online status, but tagging any of my sub servers is just "offline"
is there something that can stop a ping return answer ?
Use the numeric IP, if you're using that already.
i did
Hmmm.
That's really weird, as the expansion seem to be working fine since it's working with public servers.
Know of any other placeholders i can try ?
Other than pinger placeholders? Unfortunately no, sorry.
Weird thing is my hologram placeholders work fine but they wont work in the GUI menu 😦
are you using them like this: %placeholder% or like this?: {placeholder}
%pinger_isonline_***.**.***.***:28749%
Does your GUI menu's plugin support PlaceholderAPI plugin?
Yeah it just displays "offline"
- '&6Status&7: {status: Survival}'
- '&6{online:Survival}&7/&e100'
This is my Holograms placeholders
This isn't a Pinger placeholder, thats why.
you need PlaceholderAPI and Pinger expansion downloaded
GUI:
Name: 'Server Selector'
Slots: 27
Items:
survival:
Item: GOLDEN_SHOVEL
Slot: 10
Amount: 1
Glow: false
Name: '&a&lSurvival'
Lore:
- '&7Minecraft With Q.O.L Plugins &4(PVP)'
- '&a%pinger_online_137.74.186.117:28749% &7(%bungee_Survival%/100)'
- '&e&o1.8-1.15+ &7&o(1.12.2)'
- '&7'
- '&cFeatures:'
- '&6 - Land Claims'
- '&6 - Set your home by sleeping in a bed '
- '&6 - PVP outside of claims'
Commands:
- '[bungee] survival'
- '[message] &7Sending you to: &eSurvival'
so if you have PAPI instaled make sure you do "/papi ecloud download Pinger" and "/papi reload" after
Iv got them downloaded...
Offline in red like in my config is setup to do
pinger:
offline: '&cOffline'
check_interval: 30
online: '&aOnline'
but your server is online I assume?
Indeed
are you sure that the port is the good one?
port ?
Yes its right, users connect fine.
they connect with this: [bungee] survival and not with this 137.74.186.117:28749
Well considering im using a network no, they wont connect with 137.74.186.117:28749 otherwise that allows users to bypass protections and pose as any other user.
but bungee forwards through the network to 137.74.186.117:28749
yeah that's why I am asking if you are sure about the port
The port is correct.
Bungee has to use the 137.74.186.117:28749 IP to forward the user there
ok then i have no clue what the problem could be
do you get any errors in console when doing /dm reload or /papi reload?
Are you sure that the ip is right then?
Its right.
Hello
Would someone know why doesn’t this DeluxeMenus menu work;
https://paste.helpch.at/ezubedakac.cs
This is going nowhere forget it, Non of my backend servers are returning a "online" value with pinger. my "bungee" is the only one that returns a online status
IP's and Ports are correct, if they weren't my Holograms "status" wouldn't work or show the player count live.
it worked a while ago but since this new update its not been working.
ok
Use the older version then
I would but iv no idea how long its been broken so i don't know what version to go back to, But i know 100% it worked when i initially set it up, I only knew it was broken today when a user pointed it out.
Does Pinger use the query port ?
http://thecynicalkitty.com/s/20201965557.png
Proxy
Survival
Hub
Dev
Proxys only one that shows online.
It uses the port that you connect from, ths one on server.properties. so no.
Ok this is really fucking with me because minecraft pings the servers fine
http://thecynicalkitty.com/s/20201987960.png
and holographic displays work fine
http://thecynicalkitty.com/s/20201935169.png
is there a way to make a custom placeholder in a plugin?
Hi, I would need to change the variables of a placeholder that if it says "Yes", I want it to say "On" thanks
The placeholderAPI config will let you change that
boolean:
'true': 'yes'
'false': 'no'```
Hold the item and run /papi parse me %player_item_in_hand%
DIAMOND_PICKAXE
Does it open if you're not holding a diamond pickaxe?
ye
Yeah looks back to front
Then change it to == instead of !=
I want "default" to say "user"
Bit more context than that will be needed I'm afraid
My guess is a vault placeholder is returning default
Do I need placeholderAPI for voteparty?
Yup
I have it and it still says %player_name% :I
Head to #spigot-linking
Im using the KitPvP plugin and with a custom scoreboard. I would like to use some of its placeholders with placeholderapi but it is just showing this: https://imgur.com/a/R8BH673
It was working because I reloaded papi*
Nevermind its working now
Any reason why PlaceholderAPI won't load LuckPerms placeholders?
Can't figure it out.
Any errors in console?
Most likely the expansion version doesnt match your server version
?luckperms
I couldn't find anything for: luckperms
Reeeeeeeeeeeeeeeee
Post the error, barry shall help you
This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.
If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.
Just in case xd
I have this error:
https://pastebin.com/Huuv2Kei
@brisk coral It just doesn't load up. 😦
The XpBoost thing is different.
No need to ping, also my guess would be an incorrect version of the expansion, or the plugin already offers an internal one
If an expansion fail to be enabled, the others wont be loaded either
milkwalk#7776 contact them if you can't figure it out
Body, can you remember me how did you make the plotsquared open source
Placeholders
Is that supposed to be me? Anyway can you be more specific?
And by the way, no one made the PS open source, its opened source by the author.
You have shown me like a link
Where I could edit the plotsquared placeholder
Because it was “open-source” or something alike
Because I was asking, how could I make it answer like
If the player were in the plots world
Even if he isn’t
=paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
if anyone work with placeholderapi and featherboard know this problem
every new player's
@austere hawk can you show me latest log ?
Can you try /papi parse me %orthyonbank_balance%
[Server thread/INFO]: [MVdWPlaceholderAPI] Orthyon-IslandBank added custom placeholder {orthyonbank_balance}
return $0.0
@austere hawk since you did that you dont need placeholderapi infront
Try just {placeholder}
Im getting "No cloud extensions at this time" error when I do /papi ecloud download Player
tag with response please
You can download expansions manually. https://api.extendedclip.com/expansions/player
@hollow hawk is there anyway to fix the could?
Iwas just useing 2.10.4
But right now im trying 2.10.5
yeah its still telling me the could cant be reached
huh all I had to do was /papi refresh
Working now?
Must've been a temporary thing then.
real dumb question, im trying to use the placeholderapi on featherboard and wanting to use the ecloud math expansion, "{placeholderapi_math_{redisbungeecount@red}+{redisbungeecount@blue}}" should that logically work?
I don't know if you can
you would be able to use a javascript placeholder though
and you can use math in there
?papi math
yea im trying to use the math one but its like mvdw doesnt have any math so im kinda switching between two
ima try some thingsd
javascript would work for sure
yea gotcha thanks ill try that :p
👍
thank ya
aye it worked thanks cj lol
nice
havent done js in a minute good to touch the surface again lol
haha
I get this error using votepart on paperspigot 1.15.1 https://pastebin.com/iTjxp0bP
Head over to #spigot-linking
What version does Papi and EzRanksPro work together?
papi isnt version dependent
So, why this error? https://paste.helpch.at/loticatedu.bash
Which version of EzRanksPro are you using?
Latest
Can you check for me the version of your ezranks extension? Also better to talk at #ezrankspro
You fork/clone it, open it using your IDEA, change it and compile it and use it
mhmmm discord lagged or something alike
:?
Abruptum thingo?
someone needs to update the version string on the guide
@undone crag Could you be more specific
no problem
the register class part of the guide,it has this on the constructor but I see no need for an argument there, am I missing something?
Are you referring to this
public ExampleExpansion(SomePlugin plugin){
```And
```java
new SomeExpansion(this).register();
?
Ignore the ExampleExpansion, just noticed it and will fix it.
@undone crag ^?
oh huh I guess that's not what I meant
is there a command I could use to check if my registered placeholders work?
hi there!
I need some help with a DeluxeMenu menu thatis not working as it should...
its a voteshop menu where you can buy votecrate keys, the currency used for that is VotePoints from the plugin VoteingPlugin
when someone buys a key the points are taken from the player, but when that players hits 0 points thay can still buy those keys.
So basicly the left_click_requirement: is not working and i dont know why...
Here is the YML
https://paste.helpch.at/agisucijoz.bash
if you think you could help me please DM or Mention me 😄
is there a command I could use to check if my registered placeholders work?
@undone crag yeah its/papi parse (username/me) (placeholder)
I think I'm messing it up somehow, when I try that all I get is a mirror of what I typed in, what's the format for the placeholder?
that means you don't have the placeholderapi expansion installed
@undone crag if you go here: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders
%leaderheads_score_kills_score_1% pls help me not working
you will see that all placeholders are in a category or group or whatever you want to call it
deluxemenus
so for example %player_online% is in Player
and you need to do /papi ecloud download Player
and /papi reload
for %player_online% to work
@turbid tide my placeholders are in my own plugin
me?
EmraIRG did you doo /papi ecloud download LeaderHeads and /papi reload?
yes
well i can't help you there magmaguy. I taught that a placeholder that is already there isn't working
I think it's in here but I also don't know if there's a way to list the palceholders that a specific plugin has
Blitz?
@undone crag Built in expansions don't show up on /papi list,
Have you registered the placeholder in your onEnable class,
Have you added all the correct methods, as well as properly defined the return values,
Are you using the correct placeholder and it's identifier
Check those things and ping me ^
EmraIRG I am afraid I have no clue
help me pls
it shows up on PAPI list and yes to all of those @brisk coral
- ' &7Durumu&8: &c%leaderheads_score_kills_score_1%'
- ' &7Durumu&8: &c%leaderheads_player_<kills_score_1>%'
- ' &7Durumu&8: &c%leaderheads_score{kills_score_}1%'
not working all
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Emral, is the kills score placeholder from a different plugin or?
I'd try %leaderheads_score{kills_score_1}%
Change it to helpchat paste Magma, I preffer not to be blind, thank you very much
and score
Remove the player is online check
Seems like you forget the persist method @undone crag
did I?
tried to copy this straight from the wiki
the plugin won't handle offline players all that well
U should use this https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#internal-class
Would 't that only matter for reloads tho aBoo? Also wouldn't it show an error if not present?
It won't show an error, and yes its for reloads
Magma, guessing you'd return it as featherboard status, etc. Meaning the player is online
Only actual time you'd need to check if the player is online is when parsing for other players, imo
Its good to have that? Whatever you'll be using it for, its good to prevent causing errors.
thx
aBoo, meh
well I've added the version from aboodyy
still same issue
oh I'm extra dumb actually
it's working just fine, I was just typing the alternative placeholder name that I ended up not using
apologies
ok anyone here that can help me with a time js placeholder?
i can't find a function that transforms a timestamp in normal time like 21:05 for example
or if I found one I don't know how to use it
Not sure if you've read it https://discordapp.com/channels/164280494874165248/573429521554866178/667471337627058189
all good 😄
well if you could do it when you have time it would be nice
What do i need to type in my holo to get the players name up?
%player_name%
I try but dos not work
If you're using holographic displays, then I'm sure it has its own.
If you want to use PAPI placeholders there, you need to download Holographic extension plugin and protocollib plugins for that.
Okay ty i will ty
@bronze bison I have protocollib now but the Holographic extension idk whats goining on https://pastebin.com/SdSxaQyW
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
u got HolographicDisplays?
no
well u need that.
Great!
Hey @maiden holly @median kindle,
I've added 2 placeholders, %plotsquared_plot_count_<World>% and %plotsquared_has_plot_<World>%
Download the expansion from here:
http://aboodyy.net/expansions/PlotSquared-Expansion.jar
vaultprefix says default, but I want to tell user how to change
@runic lintel what plugin?
vault prefix
luckperms and vault
rank default is default but i want default to User in %vault_rank%
@runic lintel You can rename it with uh let me get the command
/lp group *GROUP* setdisplayname *NAME*
@runic lintel ^^
now i try thanks
Thanks a lot
How can I make a variable that has character limits in a name?
I don't think you can
it could have been possible if you could have used arguments in requirements but you can't
woaaaaaa booodyyyyyy
?
I’ll try it later, how much is it?
He made a custom expansion of plotsquared for worlds
So how much is it
Aaah
He updated the current public one
Thank him for making it 🙂
As terfs said, Its public (My fork) and I wouldn't get anything for such a thing anyway.
naw Aboo is super talented 🙂
I'm not :p
You are
Hey guys, is there a way to /papi parse the message to a specific player? Kinda like /papi bcparse but for a specific player instead of everyone online.
With /sudo perhaps? But then I think said user would need the permission to use it
Yeah that's exactly what I'm trying to avoid
papi parse <player>?
that's the player who the placeholder would be evaluating for, not the player the parse message is showing to
/papi bcparse NAME @plucky maple
oh wait your trying to show someone else someones display on the placeholders?
yep
How can i make %premiumvanish_isvanished% placeholder no just be "blank" and Yes be a different prefix
@heady axle papi javascript
anyone know if its possible to run commands as op in deluxemenus
or if theres an addon or something
!papi
No its too dangerous
Surely theres some way to implement it securely
I dont see if being a problem if people are going to use the option at their own risk aswell
What command are you trying to run?
I thought there's permission specifically for each menu? Won't that be safer?
i want players to do /warp end which will give them the 7 second teleport timer
but not give them permission to run it outside of the gui
if i used the timer action i would not be able to check if the player has moved in that 7 seconds
Can the warp plugin warp the player via console?
This should've been asked in #general-plugins instead...
its essentialsx
im not 100% sure but i think it might just tp them instantly
just checking now
If you use lp or similar you may be able to give them the warp perm for a second before firing the command
hm
I believe lp has timed permissions
Better then oping the player for a second
Dmenus will never have it
If it was a seperate jar that people needed to add it would warn players that there is risk
and to use it at their own risk
is dm opensource?
quick question, if a placeholder works through the /papi parse me %whatever% command does that mean that the placeholder is correctly registered and accessible by other plugins?
Yeah
huh that's what I thought
ive changed my plan to make it so players have to pay instead lol
does featherboard have some special way of accessing these that my 3am brain isn't getting or somethign?
{papi_<placeholder_wihout_%>}
wait, really?
thanks for the help
look at all these differing standards
someone out to create a new standard and make that the new standard for everyone to use
Well thats kind of the plan with papi, to move everything to use the one system so they can all share info
Hi there, Any chance to join the placeholder inner a placeholder?
%progress_bar_{math_{jobsr_user_jmaxexp_fish}/100}%
like this
Use javascript
Thank u
u can use {} and $()$
The second one will be replaced first then the placeholder with {}
Jesus aBoo
Thank u very much
No problem 😄 :p
😄😄😄
Hi, i'm having a couple issues with another plugin (tab reborn) and i've spoken to them and the conclusion they came to is that i need to create relational placeholders and i have no idea what to do
for?
well the plugin doesn't have that meaning
you likely need to request for a plugin to made for a plugin to have relational placeholders
or need to pay someone likely to make a expansion with PAPI for that to use on tab reborn
@valid locust
hectic, thanks
@brisk coral Unknown expansion.
My custom javascript placeholders stopped working
fuuid doesn't support relations btw frosty.
@valid locust There's a relations expansion on the ecloud, perhaps that could be of some assistance
papi is broken until pig or fc fixes it for v3 bot.
@valid locust its pretty much the same as a normal placeholder, but with 2 players.
https://github.com/PlaceholderAPI/PlaceholderAPI/blob/master/src/main/java/me/clip/placeholderapi/expansion/Relational.java#L27
@brisk coral what is it called? like what do i put at the end of the download command?
@trim moon can you explain stopped working?
@bronze bison It says {javascript_placeholder}
Where are you using that? PAPI placeholders use %% and not {}
Venturechat, thats what it uses
Ah, how about trying it using the parse command? /papi parse me %the placeholder here%
Do you get the same thing?
i really just wanna explain what i wanna do to see if you can help or it just isn't possible atm
@bronze bison thats not working either
Make sure that the name you used is the same one you set in the javascript_placeholders.yml
Go ahead Skullz
Its not working the problem is that the engine isnt loading
Remove the engine line from that file for that placeholder.
I assume you got something about that on console when reading papi
it was working yesterday
Wait, did you reload using papijsp command?
papi reload
Hmmm, well just remove that line it will use that engine for you by default
If reloading the plugin didn't work, try restarting the server.
reading?
Sorry, reloading *
That shouldn't be an issue, so no don't think so.
Restart didnt work
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Java version?
Umm I think java 8 but not 100% sure
I would have to talk to my admin, but I think he updated paper, and added 1.15.2 support with viaversion
Rolling back paper might work, but not sure and would be odd tho
@bronze bison rolling back paper fixed it
Build 62 breaks javascript, Build 60 still works
Ok ty
Good evening, I use PlaceholderAPI, and in particular the Placeholder associated with time output ( %statistic_time_played%). The problem is that the output takes place with the indication of foreign units of time calculation, for example, hour-h, minute-m, second-s. How can I translate these letters (h, m, s) to analogs of my language?
I'm talking specifically about myself and my players who see foreign values on my server
Formats in Vault have changed "letters" for currencies, but not for dates/times. Why?
function replace() {
var data = '%statistic_time_played%';
var hour = 'h';
var minute = 'm';
var second = 's';
return data.replace(/h/, hour).replace(/m/, minute).replace(/s/, second);
}
replace();```
Hello ! I have a little request if someone can help me :D
I want to create a placeholder that return something depending on the permission :
for example :
if player has permission XX.A it returns AA
if player has permission XX.B it returns AABB
if player has permission XX.C it returns AABBCC
I tried to check on spigot but there is only 1 example that is checking ONLY 1 perm, and not checking multiple perm
// 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 "&aYou have the Test permission!";
}
// if the haspermission varibale wasnt true it will return what we set down
else {
return "&cYou don't have the Test permission!";
}
}
// by this we are calling the function to run
permission();```
(it was this one )
I have this javascript but I don't know if I can adapt it to work for me :
return BukkitPlayer.hasPermission('test.permission') ? '&7YES' : '&7NO';
};
hasPermission();
var output = '';
if (player has permission a) output = output + 'AA';
if (player has permission b) output = outout + 'BB';
return output;```
Thanks 😄
I just need to change the a and b right ? ( for the permission ) ?
like
if (player has permission testt) output = output + 'AtestA';
you replace the check with BukkitPlayer.hasPermission("permission.node"), that's just an example
function replace() {
var data = '%statistic_time_played%';
var hour = 'h';
var minute = 'm';
var second = 's';
return data.replace(/h/, hour).replace(/m/, minute).replace(/s/, second);
}
replace();```
@vivid sparrow Thanks a lot. Everything worked out. Not the first time, but it took 20 minutes and everything works. Thanks)
@reef galleon
Please respect the rules, be patient and don't ping staff members!
omFG
Why do i ALWAYS get shitty reload errors
Let us post ss in here of our server's chat
ffs
Use imgur, only tier 2+ people can upload screenshots/files directly. (Sorry but it prevents spam/file dumps)
Imgur, Gazyo, prntscr or similar all work aswell
This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.
If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.
Oh it's luckperms
Yeah need to update it to v5
Hmm
well thanks for that. Sorry for that uh. Random post lmfao, maybe i should read console more 😂
No worries, hope you understand now why we can't allow direct uploads 🙃 It's a pain sometimes i know
eh all g
Yo, possible to have multiple javascript placeholders in a file, instead of making a file for each placeholder?
something like this: https://gyazo.com/5fc72c7c6f64455759fa2e8c92ec7405
no (?)
Kinda
But they would return the value using the same placeholder
If (whatever)
return function1
Well, you can do that using arguments - my bad
so for example, return soldier; ?
soldier()
Yea I’ll let gabby help u
function main() {
if (args.length == 0) return "";
switch (args[0]) {
case "soldier": return soldier();
case "rokie": return rokie();
default: return ""
}
}
main();
function soldier() {
return "Soldier";
}
function rokie() {
return "Rokie"
}```
%javascript_scriptname_[argument]%
Hmm, let me try it
What you have showed are just multiple if statements
Cause what I'm trying to do is, if you have under 1 kill, you are a rookie, then when you have anywhere above 1 to 50 kills you are a soldier, and it keeps going
function f() {
var kills = "%statistic_player_kills%";
if (kills == 0) return "Rokie";
if (kills > 0 && kills < 150) return "Soldier";
// default value
return "";
}
f();```
dont use "" for values when you want to compare numbers
excepting for placeholders
which?
Yeah, tried that but it returns blank, will try again
< - less than
> - greater than
<= - less or equal to
>= - greater or equal to
== - equal to
Thank you, figured it out! 🙂
np
update luckperms to the dev version as well as the expansion
where i can find those links
i have been looking and i cant find them
https://ci.extendedclip.com/job/PlaceholderAPI/ i found this, i updated it but is the same
also the same with the luckperms dev version
redownload the LP expansion
How do I get LP Expansion for Sponge ?
We don't have a sponge version of PlaceholderAPI yet, but it is in the works.
We're not affiliated with the current one on the sponge site.
ow ok sorry
> [16:10:18 ERROR]: [PlaceholderAPI] net/luckperms/api/LuckPerms```
Why isn't LuckPerms expansion loading
?luckperms
This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.
If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.
@austere hawk ^
ye I just tried that
still, oh hold on let me restart. I did papi reload
nawp
still
> [16:15:18 ERROR]: [PlaceholderAPI] net/luckperms/api/LuckPerms```
What version of luckperms are you using?
4.4.31
4.4.31??
No worries
How to make this only return day? %server_countdown_dd.MM.yyyy_02.05.2020%
dd
right now it is returning day, hour, minutes and secnds
%server_countdown_dd_02.05.2020% ?
it returns 0 when I do so
i think you have to do %server_countdown_dd_MM_02.05%
e.g. %server_countdown_dd.MM.yyyy_01.01.2020%
<time> is the date and time for the countdown. It needs to match the <SimpleDateTime>```
@cerulean ore
Still returns 0
oh
well rip then
i think it is made to return hours minutes and seconds whatever format you are using
i tried only yyyy and it works for 2021
but it says it in days hours minutes and seconds
maybe using javascript it wold be better
Not sure how to do with javascript
@cerulean ore
there is one already made
but you will have to change it a little bit
Ok will try
you will have to follow the instruction there
to add it in the first place
and then you will have to change it and see if it works
Yeah
.
Ok, so I got closer now
it is returning months and days only when using https://paste.helpch.at/tecavelaso.js
How to turn amount of days into months?
Instead of 3mo, 90d
it tells you lol
Hi!
What's wrong with it
"%animations_wave?<wave colors=\"&e,&a,&c\">Wave effect</wave>_Welcome, {player_name}!%"
?
How to set this placeholder?
Hello,
I need help please :
I want to use a personal placeholder in a public GUI
I want to do a skyblock leaderboard and show the quantity of a block a player have using "%fabledskyblock_island_level_block_count_<blockType>%"
But is it only a personal placeholder, you can't use it for another player, you can only do "/papi parse XXXX %fabledskyblock_island_level_block_count_<blockType>%"
so in the gui, everybody will see the amount of block the player XXX has on his island
So I wanted to know how I can make in a deluxemenus that is parse this placeholder for someone else ?
The player name won't be fix, as it is a leader, the player_name will be determined with "%fabledskyblock_leaderboard_level_<1-10>%"
If someone can help me it would be perfect ! 😄
@meager vault DM will get values for player viewing the gui
/papi parse <players_name> <placeholder>
Yeah I know, that's why I wanted to know if it was possible to parse the placeholder for someone else in DM
so you want to see others data when you open the menu
yes
want everyone to see it or just you
but each item will shows data from different the others ( as there will be 10 people in the leaderboard )
everyone
I think you might need a plugin that makes a custom leader board
or custom placeholders
ParseOther expansion
I forgot about that, but it will not find the top
Ah yea true.
Or I added a request of a plugin to completely made a new leaderboard into a .jar.. If someone is interested that's in "request-paid" ( hope I was precise in my description ), and hope i'll find someone to do it for me without beeing too expensive
Wait you get the top player from a placeholder?
yes
If so, then its possible with ParseOther.
%parseother_{top player placeholder}_{data placeholder}%
Ohh nice, I'll try to do my own leaderboard gui
And I let the request, because it also changes other little things, hope someone will be interested by doing it :p
what's the command to download the parse other expansion?
/papi ecloud download ParseOther
/papi reload
I would of guessed that but wanted Warn to have correct info
Wdym?
I was searching on placeholder's wiki but thanks, I saved 1-2mn :p
he wanted to help me by directly give me the command to have the addon
the command, I never used parseother that's why I don't remember about it
I might now since I can make my own custom leaderboards
Bruhh doesn't work very well :c
the parsed player need to be connected, or it doesn't show anything
I think I'll have to find a dev to make the addon I requested ^^
I need help with my plugin. I'm trying to make a placeholder but it's not working
https://pastebin.com/kMPwdpmk - The error I get
tacospigot might not be supported maybe
um
it usually works fine
i registered placeholders before and it worked with this spigot
and here's line 52 that it's saying the error is at???:
this.configFile = new File(this.plugin.getDataFolder(),
Hey Frosty
help xd
uh mining stats
hold on
https://pastebin.com/9xjsEkXb - ConfigWrapper
https://pastebin.com/wBq7EbmL - My placeholderapi class which I need help with
https://pastebin.com/kMPwdpmk - The error I get
What i'm trying to do: Register a placeholder.
@Override
public String onPlaceholderRequest(Player player, String identifier){
Player p = (Player)player;
UUID pn = p.getUniqueId();
FileConfiguration c1 = OreSaver.getConfig();
int Coal = c1.getInt("ores." + pn + ".Coal");
if(player == null) {
return "";
}
// here's what I need help with. VV
if(identifier.equals("coal")) {
return Integer.toString(Coal);
}
return null;
}```
Dev related problem
Can you help me?
What's wrong with it?
"%animations_wave?<wave colors=\"&e,&a,&c\">Wave effect</wave>_Welcome, {player_name}!%"
PlaceholderAPI is not working anymore on my servers?
why is that a question?
define "not working"
It just stopped working all of the sudden
It shows %player_name% instead of the playername
/papi ecloud download player /papi reload?
It worked before
but its not now
That means that i already did that
do it again? it wont hurt
Why this not work?
i use /papi ecloud download Bungee and /papi reload but still doesn't work
Aysel_ are you sure that you are using the correct server name?
yes
How about %player_health% placeholder? :(
https://imgur.com/7R3loCj
there is %player_health_rounded%
@hallow sluice do you have PlaceholdersAPI installed? If so do : "/papi ecloud download Player" and after that do "/papi reload"
sorry don't understand
@turbid tide sorry d:
I tried but it didn't work
ohhh
it is %player_name%
that is why none of them work
here is a list with all of the placeholders:
Hey.. is there a way to get rid of the seconds in this papi countdown? %server_countdown_dd.MM.yyyy_31.01.2020%
output is 5d 1h 29m 21s
Because the format is incorrect, that's the default format (d h m s)
I think at least