#placeholder-api
1 messages ยท Page 109 of 1
sure sure
Do you want the actual scripts?
This is my javascript_placeholders.yml
https://paste.helpch.at/lowijaziga.shell
And this is my config.yml of PAPI
https://paste.helpch.at/ifilozupep.bash
Turning on the debug mode of Javascript and PAPI doesnt show up any extra information :c
Do somebody have same issues like us, when server is restarted, some plugins don't have registered placeholders, is that issue from plugin or it is PAPI issue?
@tidal geode Plugin
And do you know how to fix that? I want to tell it to my developer
If it's an internal placeholder, it'll be hard unless you got source, otherwise you need the set the persist() method to true within the placeholder class
Hey. Does progressbar works with double values? /papi parse me %progress_bar_{prisonranksx_nextprestige_cost}%
It' just say "Completed", but this isn't true
nope I don't think so
wait
actually
yeah
its suppose to have 2 values not 1 xD
._.
%progress_bar_{placeholder}_c:&aโ _p:&eโ _r:&7โ _l:10_m:100_fullbar:&aCompleted!%
here
you can learn what every letter in there means
at that linjk
link(
Meh.. I still doesn't understand ๐
%progress_bar_{vault_eco_balance_fixed}_c:&aโ _p:&eโ _r:&7โ _l:10_m:{prisonranksx_nextprestige_cost}_fullbar:&aCompleted!%
here you go
what does /papi parse me %prisonranksx_nextprestige_cost% return?
15000.0
yeah that will be a problem
We can use mine?
Oh wait
Prisonranks doesn't have a prestige placeholder for each one
%prisonranksx_prestige_cost_<prestige>%
use the formatter placeholder
Update the prisonrankxs placeholders on the website?
i think that'll work right?
@lyric lion are you okay with changing it manually?
no it's not time
^^^
Nope
nope ?
%progress_bar_{vault_eco_balance_fixed}_c:&a:_p:&e:_r:&7:_l:10_m:(price)_fullbar:&a&lCOMPLETED%
credits go to blitz tho
yea i learned it from you xd
that didnt work
that was for the precentage
that is why I was confused xD
you just put the price of each rank instead of that
%progress_bar_{vault_eco_balance_fixed}_c:&a:_p:&e:_r:&7:_l:10_m:1000000_fullbar:&a&lCOMPLETED% for example
I'm using it in DM. So, now I need to create 100 DM "pages" ๐
why?
Price of every rank increasing (I don't know how to translate this.. Meh)
1 prestige - 5k, 2 prestige - 10k
no
oh I see
yeah that won't be good
maybe try and contact the author of the plugin to see if he can change the placeholder to return xxxx instead of xxxx.x
or add a placeholder that does that
I tried everything
but it just gives errors
isn't this fixable with javascripts ?
how would i go about updating a scoreboard i made every so often with the placeholder?
I know the placeholder works (i tested with manual parsing)
and the scoreboard is created internally (i dont use an external plugin for the scoreboard)
Nevermind, I decided to use teams for updating my scoreboard
I didn't want to adjust my method at first but after doing so it's much easier..
Again, I am having issues. I have to do /papi ecloud download server and then /papi reload every time the server is restarted.
It stops working when i restart, and plugins cannot detect it.
How do I get placeholders from one Bungeecord Subserver to the other?
Keep in mind we don't support that and will most likely not fix anything that this 3rd party add-on breaks.
is there any other way? It's not my server, so I really don't want to pay for the plugins, lol
@unborn smelt,
Please respect the rules, be patient and don't ping staff members!
y
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
Is anyone able to help me with purchasing items using a custom economy
does the economy use vault
does it have placeholders
okay
does it have raw?
Not that im aware of
autosellapi, codeblocks, colors, customheads, deluxemenusglow, dictionary, discorddev, dm-builds, dm-update, docs, dry, ecloudblock, enchants, entities, external-menus, help, hidden-roles, hosting, imgur, item-data, javadocs, js-factionname, js-tag, json, luckperms, materials, nojquery, notowner, optimize, papibot, particles, paste, placeholders, player, plsnoarrowcode, requirements, roleperks, site, solid, sounds, spigot, spigotid, startuplog, tagess, tryandsee, welcome-screen, yaml
I've never used javascript in my life lol
A resource that allows information from your favorite plugins be shown practically anywhere!
โข Spigot
โข Wiki
โข Placeholder-List
โข GitHub
โข eCloud
How would I go about it
Never used javascript before, literally no idea where to start
@mint fable ?
I found the example ones
But they don't have what I need
just google exactly what you want to do
So I need to learn javascript?
javascript remove commas from numbers
var a='1,125';
a=a.replace(/\,/g,''); // 1125, but a string, so convert it to number
a=parseInt(a,10);```
it's made already
I dont get it
no need to pay
Where do i put the mobcoins placeholder
so
so put the placeholder there
a=a.replace(/\,/g,'');
a=parseInt(a,10);```
yep
that will just remove the commas?
should do
ok ill try it 1sec
not sure if you need to put it in a function or not, but try it
did it have that before
nah
oh wait
it says use parseFloat
i change it to that and its still doing the same
any idea how to fix
it does same thing
so
will it still work with the .0 on the end
i don't get it
cause its a number now
because
testing it here
it works fine
๐คทโโ๏ธ
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
its literally just var a='%mobcoins_balance%'; a=a.replace(/\,/g,''); a=parseInt(a,10);
you don't even return anything?
did you follow the wiki
and I said follow the wiki
and it returns 1000000.0
you might have to put it in a function
it should work with the decimal tho?
its just gotta check if %javascript_mobcoinsraw% is greater than or equal to 5000
and %javascript_mobcoinsraw% still returns a number but just with a decimal
Ill try it
this is how it should be setup?
requirements:
mobcoins:
type: '>='
input: '%javascript_mobcoinsraw%'
output: '5000'```
looks right
do ops bypass requirements
Commands & Permissions - HelpChat Wiki
Bypasses all menu's open requirements. DeluxeMenus.OpenRequirement.
Bypass.<Menu>. Bypasses theย ...
only open requirements
kk
Caused by: org.yaml.snakeyaml.error.YAMLException: A simple key is required only if it is the first token in the current line
What have i done wrong
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
oh ye ty
Okay
its not working
I'll try putting a function thing
how do i do that
var a='%mobcoins_balance%';
a=a.replace(/\,/g,'');
a=parseInt(a,10);
}
mobcoinsraw();```
that right?
nice
ty for help
ok new thing
I need to view reqiurement to find out if %superior_island_leader% has a permission
make 2 requirements. one to check if player is leader, second to check for permission
I want all island members to be able to open the gui
so it would need to check if a different player from the one that opened the GUI has the permission
is that possible?
parse other expansion?
idk what u mean by that
If i parsed it it would be /papi parse %superior_island_leader% %luckperms_has_permission_spawnerlevels.2%
smth like that?
im confused lol
didnt know that was a thing ty
so it would be %parseother_superior_island_leader_{luckperms_has_permission_spawnerlevels.2}%
?
?tryandsee
/parse me %parseother_superior_island_leader_luckperms_has_permission_spawnerlevels.2%
tried that
you didn't follow the format correctly
ik i forgot to remove { and }
...
who said remove it
this is the placeholder right?
%parseother_{superior_island_leader}_{luckperms_has_permission_spawnerlevels.2}%
like that?
yes
ty
also why ask when you can try?
running /papi parse is faster than waiting for a response
Hey.. Is it possible to get the motd of a server which is running on 127.0.0.1?
for deluxemenus what is format for heads as the material in 1.15.2
Hey.. Is it possible to get the motd of a server which is running on 127.0.0.1?
@rapid sundial it must be working even on the ip "0"
How to use custom heads in DeluxeMenus:
a) A player name material: head-extended_clip
b) The player's head material: head-%player_name%
c) The base64 code of a head material: basehead-<code>:
- Go to https://minecraft-heads.com and find a head.
- Copy the head Value code (from the page bottom)
d) EpicHeads material: heads-<id>:
- Require https://www.spigotmc.org/resources/13402/
e) HeadDatabase material: hdb-<id>:
- Require https://www.spigotmc.org/resources/14280/
Hello,
None of my placeholders are working. Ive checked the wiki and ALL placeholders are correct. I have MVDWPlaceholders as well as Placeholderapi.
Any fixes?
Do you have the required expansions?
have you downloaded the correct expansions?
Do you have the required expansions?
@brisk coral Like what?
@neat gulch,
Please respect the rules, be patient and don't ping staff members!
oops
ie. If you're using a placeholder which has the player identifier (first string), you need the player expansion which you can download with
/papi ecloud download player
/papi reload
It's still not working
Where are you trying to use them?
On a scoreboard
Featherboard?
SimpleScore :)
Does it support papi?
(do /papi parse me %placeholder%, and see if it returns the correct value)
Pretty sure. I also tried a different one that said papi was a dependency and it didnt work either
okay
It said %placeholder% in chat
Use the placeholder you were trying.. not %placeholder%..
It worked in chat
When I do any VAULT ones, it doesnt
I used %Player_name% and it worked.
Download the vault expansion
Nope, %vault_eco_Balance% doesnt work.
You ran both commands correct?
is there a placeholder to signify if it is sun/rain/thunder in the world?
also is there a way to display money as $1,000,000,000 instead of 1000000000?
%vault_eco_balance_commas%
ah thank you, i was looking at the wiki page and it only had 3 entries
Which wiki page?
I see, that's the old wiki
I'll see if I can get it removed, cause it's full of wrong info
https://helpch.at/placeholders will take you to the updated wiki
if not may be worth adding something to the top of PlaceholderAPI plugin placeholders page 1 too (because that message is only visible if you go to the wiki main page if you can't get removed
Yeah if I can't i'll just remove all the placeholders and have a message to the real one
Funny some placeholders need an uodate on the website
There's an issue template you can use to let us know
What do you mean
Anyone know how %formatter_<options>% works? I'm trying /papi parse me %formatter_format:(#,###.#)_value:(%vault_eco_balance%)% as well as %formatter_format:(#,###.#)_value:(1234.5)% but not having any luck
Hey, using the Javascript expansion, how can you parse a placeholder, with a variable inside of it ? or is it even possible?
because everytime I tried, it just returned the placeholder unparsed =/
@junior musk you can get the papi instance
And parse it using papi.parsePlaceholders(player, string);
ooh nice, thanks !
papi.setPlaceholders
smh clip
What
welp, I just realized idk how to get the papi instance x)
I'm not good enough with js for that =/
Yea. I'm try to contact with author of plugin
If someone need it (plugin was updated):
%prisonranksx_rankup_cost_integer%
%prisonranksx_rankup_cost_integer_plain%
%prisonranksx_nextprestige_cost_plain%
%prisonranksx_nextprestige_cost_integer%
%prisonranksx_nextprestige_cost_integer_plain%
%prisonranksx_nextrebirth_cost_plain%
%prisonranksx_nextrebirth_cost_integer%
%prisonranksx_nextrebirth_cost_integer_plain%```
https://discordapp.com/channels/164280494874165248/573429521554866178/722179677766287404
@lyric lion I did to.
and contacted him again. to make these for per rank
but he doesn't answer that fast
maybe something is possiable with javascript I don't know
Blitzz
if you see this
so the prisonranksx author added some placeholders and half listend to my request.
He added these placeholders:
%prisonranksx_rankup_cost_plain%
%prisonranksx_rankup_cost_integer%
%prisonranksx_rankup_cost_integer_plain%
%prisonranksx_nextprestige_cost_plain%
%prisonranksx_nextprestige_cost_integer%
%prisonranksx_nextprestige_cost_integer_plain%
%prisonranksx_nextrebirth_cost_plain%
%prisonranksx_nextrebirth_cost_integer%
%prisonranksx_nextrebirth_cost_integer_plain%
I don't know if it's possible to do something with these with javascript or something.
%progress_bar_{vault_eco_balance_fixed}_m:{prisonranksx_nextprestige_cost_integer}%
Now it would looks like this, I think
but if you do this for the rest of them
it's only going to work for thier next prestige
Yeah, but this is that I need for now.
ooh
I can't post screenshots, but... I can post link to it :D
i thought you wanted like a whole menu for all the prestiges
aah
you got lucky xd
๐
Heeeey Frostyyyy, I have to really suck because I don't know how to make it work x)
sup
yo
so, I was trying to parse this thing
function test() {
return '%'+'listplayers_with_perm_'+args[0]+'%');
}
test()
and then Frosty told me to get the PAPI instance and then use papi.setPlaceholders
, but since I'm stupid idk how to add them here x)
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "placeholder");
function list() {
var players = [];
var online = BukkitServer.getOnlinePlayers();
for (var i = 0; i < online.length; i++) {
var player = online[i];
if (player.hasPermission(args[0])) {
players.push(player);
}
}
return players.join(", ");
}
list();```
This might work
ooooh
I didn't know how to do it for permissions and worlds so I was thinking of using the ListPlayers placeholders x)
but yeah if that works like that, then yeah x)
do you want it per world too?
can you store the placeholders in a MySQL Database?
I don't think you can. I might be wrong tho
Anyone know how %formatter_<options>% works? I'm trying %formatter_format:(#,###.#)_value:(%vault_eco_balance%)%
did u download the expansion?
Yes
I've taken it down to the basics, %formatter_value:(20)% works
%formatter_value:({%vault_eco_balance%})% doesnt work - and thew wiki says "<value> can either be a full number or a placeholder using {} ({placeholder})."
oh right
i've also tried without the inner %s
%formatter_value:({vault_eco_balance})% id imagine that should work
with the format ###.# or whatever
It just comes up with 'No number or placeholder provided' unfortunately, however including the inner % it actually displays 'No number or placeholder provided!vault_eco_balance%})%' with the last part appended to the error message weirdly
ah ok
It sounds stupid but typing in 1234.5 manually doesn't work - it might be that the placeholder doesnt support decimals
Unless there is an easier way to do this, I want to have all numbers under 10,000 display as #,###.# (0 would display as 0.0, 4 would display as 4.0, 1,237.2 would display as 1,237.2) and then all numbers 10,000 and above be ###,###,###,###,..... etc
Hello?
@mint fable What other information to give? There is no error message?
Plugins:
@unborn smelt,
Please respect the rules, be patient and don't ping staff members!
Again, upon restart with the newest PAPI, it resets every time I restart the server or edit the config of another plugin that uses PAPI, and I have to redownload and reload the plugin.
why do you have to redownload? can you restart the server and send a startup log?
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
can I use Statistic on 1.15.2 server?
yeah
how?
/papi ecloud download Statistic
/papi reload```
the world files
.stats file
ohh
its not stored by papi
noice
PAPI just displays data that its given to it
Is there a placeholder to center a text?
I know there is to keep it to the right and left
but is there one to center?
Not really, since you'd need to specify the amount of pixels the chat size is
It'd be a hover text in the chat
let me show you, maybe you know how I couldnt center this better
it will be centered because I made the spaces perfect for my nickname
but people with shorter/longer names will not have it centered
not as perfect
I'd like to center players names
as forsty said before
๐
because it will look different from each screen to another
Hello !
Did you know an extension/solution/plugin to make a leaderboard which takes into account the time arleady played of player and the futur time played with the plugins Hologram displays ?
LeaderHeads (plugin) + Statistic(papi expansion)
also you'll need HolographicExtension(plugin) for placeholders to work with HolographicDisplay
Thank you !
struggling with the math placeholder
%math_50[prc]*{ezrankspro_cost}[precision:2]%
gives the error:
[19:53:38 INFO]: The provided value was invalid!
Reason: Unknown unary operator '*' at position 4
%ezrankspro_cost% gives the number 100000.00
Yes
how do you multiply and get the rest in the same operation?
wdym
50% should equal 0.5, no?
so it's the coding operation
that won't return 0.5 either
yeah
@turbid tide That's the confusion. There is nothing appearing in logs, I have already had it checked. It literally requires a reload after every edit of configs of other plugins with a placeholder in them. Is there any solution to this so I don't have to re-download placeholders and/or reload papi everytime I modify a config that has it like Chat Manager? It's like is never existed, but no appearance in logs. Nada.
@unborn smelt,
Please respect the rules, be patient and don't ping staff members!
@unborn smelt,
Please respect the rules, be patient and don't ping staff members!
one sec
And can you re-state your issue for me? I've forgotten since I was pinged
is it having to redownload every startup?
Sorry for the ping also, but I thought it would be hard to follow. It's not every startup, it is on startup after I edit the config file of another plugin
That has a placeholder
send the startup log of you doing that then
ok I will try to replicate again
Also, do you have to re-download or reload?
Currently I have tested redownloading, but I will test just reloading this time. If it's just reloading is it an easy fix?
We'll cross that bridge when we get to it.
it doesn't let me send files
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
that's the 3rd time we've sent that btw ^
I'd assume so, but it is just gibberish
So I think you have to open it and extract the log first?
with a program that can open .gz files
Well anyway, can confirm that it is not just when reloading the plugin.
What?
The file is too big it says
what says
log
would you like to elaborate
It says it is too big
Did you extract the log?
uh
did you restart the server?
the log shouldn't be that big
do you not have a latest.log file?
it's 5400 lines long
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
it should paste fine
How can i update thag to the new api
It doesn't it's too big
walrus are you on our paste site?
Ignored 100%
actually
Yes
Sorry that I don't have an immediate response
you need to have patience
that's the new format
I was kidding man :( that is back to u also if u want to ignore lol
so you can follow that and transfer what you need
you come in here, spam down 5 lines and expect an immediate response
Hey isn't there more stats like blocks placed and stuff in Statistics placeholders?
those look pretty limited
#spigot-linking to get #deluxechat support
Hey isn't there more stats like blocks placed and stuff in Statistics placeholders?
@austere hawk there are. Where did you see the list of placeholders?
Out of curiosity is there a placeholder to list all online players names? Cant seem to find any anywhere under player or server
Out of curiosity is there a placeholder to list all online players names? Cant seem to find any anywhere under player or server
I just did a js script yesterday :)
shh xD
Oh tang
players.push(player.getName()) xd
Nah it's alright just seen mvdw has it already
And conveniently my chat runs off that mainly
ok
But its mainly for discord lmao I am putting in a command to list all the online players
ah x)
I mean, the code I gave you was adding the entire player object to the list, not only their name
gennerally, MC to Discord plugins have a /list command
But thanks for asking anyway
change players.push(player) with that
I mean, the code I gave you was adding the entire player object to the list, not only their name
ah yeah
Its uh the bot I am simply adding a new command for
!online to list all the online players when used
I understood a part of it, and saw you added it to the list, but didn't fully understood x)
what are you using for that, ash?
Discord srv
Lmao
what placeholder?
and you've used these placeholders: https://factions.support/placeholderapi/ ?
Premium Factions for premium people.
๐
@turbid tide https://gyazo.com/9a970ff9b80f59a6f02e273587c7ed01
how do i get things like a players rank and balance to show?
where are you trying to use the placeholders? in other plugins?
still for scoreboard
then you have to go down on that page
oh wait
nvm
%vault_prefix% and %vault_eco_balance_fixed%
you need the vault expansion
/papi ecloud download Vault
/papi reload```
what does /papi parse me %vault_prefix% show in chat?
then probably you have hit the character limit
no pex doesn't have anything to do with it
the placeholder clearly works
the scoreboard is at fault
well not the plugin itself but the limit from minecraft
can you go into the scoreboard config and paste the entire row?
that the %vault_prefix% placeholder is in?
i chaged it from player rank
i think it has soemthing to do with the plugn
thanks for your help tho
i don't has any premium support channels after linking my spigot page. What have I done wrong?
Depends on what plugins you bought and when
GMT +3
today
13:23
Sorry
=check @glad prawn
Successfully checked that user for new purchases!
oh, now i got it
Awesome
can someone help me? i want to make a leaderboard for who has the most money using papi and holographicdisplays, but all that happens is this
wait i cant post pictures
uhh
?IMGUR
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
ohh
for placeholders to work in HD
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
have you downloaded the Vault expansion?
/papi ecloud download Vault
/papi reload```
did that nothing changed
what does /papi parse me %vault_eco_balance% return?
9.9999899E7
wait a second im soo stupid
i diddnt specify a user
i probably need to do that..
you want to do a top right?
yeah
%vault_eco_top_balance_formatted_#%
%vault_eco_top_player_#%```
use these 2 placeholders
change # to the top number
you want to get
the fist placeholder returns the balance
and the second one returns the name
have you restarted after you have added HolographicExtension?
yes
not reload. restart
Did you install protocol lib
oh that too xD
no, should i do that?
ok
yay it works
allthough, it says Hepno - 100M, can i make it say the exact number?
yeah
how?
%vault_eco_top_balance_fixed_#%
how do i do that?
{fastest} - 0.1 seconds.
{fast} - 0.5 seconds
{medium} - 1 seconds
{slow} - 5 seconds
{slowest} - 10 seconds.
add one of these on each line
at the begging
so for example {slow}%vault_eco_top_balance_fixed_1%
ok
ty
do theese lag the server?
or will it make no diffirence
uh
i did that now nothing apeers
nvm, im just stupid
but do they make the server lag at all?
well if you have a lot of them like hundreds and all on fastest it might but if you have like 20 or something not
and also I recommend the slow or slowest
for this
you don't need it to check every 0.1 seconds
or second
yeah i have slow, and theres only 10
well depending on the hardware you could have hundreds of them and still not lag
i got 2gb ram soo
This keeps spamming my console :( https://hasteb.in/ekawokov.md
you are using quite an old version
of PAPI
I recommend updating and seeing if the error will remain
hey guys im wondering if this tag is still a valid placeholder, i tried to use it but it doesnt seem to be returning the proper results:
%denizen_<denizen-tag>% (EX: %denizen_<player.flag[MyFlag]>% )
It is still a thing on the wiki. not sure its still a ting in the plugin
is there any way to check? or if i wanted to request it to be added back, would I do that here, or ask the denizen guys?
maybe ask the denizen developers
sounds good thank you
Hello, %rel_factionsuuid_relation% don't work... but I installed faction extention
I use NameTagEdit
can someone help me pls
Trying to get a placeholder on a hologram. The result is just {player} being displayed. I have protocol lib installed and my server is 1.8.9
%redisbungee_total% returns 0 for me
Trying to get a placeholder on a hologram. The result is just {player} being displayed. I have protocol lib installed and my server is 1.8.9
@keen cape You can use HolographicExtension HolographicDisplay and ProtocolLib and use%player_name%
also you need PlaceholderAPI and the Player expansion /papi ecloud download Player /papi reload
%redisbungee_total% returns 0 for me
@mossy nacelle Do you have PlaceholderAPI on all your server and also the RedisBungee expansions on all of them?
Hello, %rel_factionsuuid_relation% don't work... but I installed faction extention
@indigo lichen What does/papi parse me %rel_factionsuuid_relation%TESTreturn?
Is there any placeholder with teams, members of team and money on right? I mean (Team) (members)(totalmoneyteam) .
I want it to appear automatically on TAB when I created a team. Somebody can do that? I am bad with making placeholders
Hey, I want ton prompt a scoreboard value in my tablist with the plugin Tab. To do this, I installed the Placeholder "ScoreboardObjectives" (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#scoreboardobjectives)
But I have a problem, the name of my scoreboard is : bac_advancements and in the syntax of the placeholder : %objective_score_<obj-name>%, if there is another "" it take the following characteres like a pseudo a no for the name of the scoreboard like this syntax say it : %objective_score<obj-name>_[otherEntry]%
Have you an idea of how say to the placeholder consider bac_advancements like a scoreboard name and not the scoreboard bac with the player advancements ?
And I can't and dont want to change the name of the scoreboard ^^
@turbid tide Hello, thanks a lot for your answer, when I type this command in chat :
@indigo lichen,
Please respect the rules, be patient and don't ping staff members!
%rel_factionsuuid_relation%TEST
it just returns that?
I don't think that should be a problem
What do I need to do ?
so theres no way to find out what placeholders a plugins registring with an internal hook?
kind of frustrating when the plugins doc's are garbage
Decompile the plugin and check ๐คทโโ๏ธ
yep not that skilled.
Is there a way to make custom placeholders with placeholderapi?
Only with custom plugin / expansion
Ah alright
Quick question for sanity check on 1st time using PAPI:
When extending PlaceholderExpansion if I'm supporting OfflinePlayer do I just override onRequest and I can ignore the onPlaceholderRequest that's in the wiki tutorial?
Or do I need to override onPlaceholderRequest to call onRequest?
Blitzz, Frosty any idea for my message a bit higher ?
Is there any placeholder with teams, members of team and money on right? I mean (Team) (members)(totalmoneyteam) .
I want it to appear automatically on TAB when I created a team. Somebody can do that? And send me PlaceHolder? I am bad with making placeholders
Hey guys, I wanna do something with some placeholders but idk how to
if someone could help
Heres what im trying to do:
I'd like that for when players type @hand, in the chat that will be replaced by [Item_They're Holding] and when you hover over that it'd show the lore as normal items do and the enchantments
there are plugins you can use for this like InteractiveChat
%player_item_in_hand_name% %player_item_in_hand_data% %player_item_in_hand_level_<enchantment>%
I believe these would be the ones I would use
but how can i build that
i'll check that out
but wouldn't there be a way to build something by just using papi?
no need of another plugin
such as a small javascript maybe
well you'll still need a plugin to replace that part of text with something
so not rly
Got it
that plugin suggestion was great tho
Im pretty sure it'll work perfect with what i want and even more
thank you
what?
what does "creat" mean
I'll try to decipher:
"Hi! I have a problem with the plugin "PlayerRanks" and "DiscordLink" regarding PlaceholderAPI. Can anybody help me?"
Blitzz really no idea ?
Would you guys now of any placeholder I could use that would count time?
Im looking for something such as:
"Jailed time: 1 h left"
59 min
it would show the time I had set
%time_count_from_3600%
where 3600 would be time in sec
Hi I have papi and i downloaded vault expansion and its not working
Did you reload papi?
I restarted the server
And in log i have a error 1min
[17:36:27] [Server thread/WARN]: java.io.IOException: Server returned HTTP response code: 403 for URL: https://www.spigotmc.org/api/general.php
[17:36:27] [Server thread/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
[17:36:27] [Server thread/WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
[17:36:27] [Server thread/WARN]: at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
[17:36:27] [Server thread/WARN]: at rien.bijl.Scoreboard.r.Session.isUpToDate(Session.java:45)
[17:36:27] [Server thread/WARN]: at rien.bijl.Scoreboard.r.Main.init(Main.java:33)
[17:36:27] [Server thread/WARN]: at rien.bijl.Scoreboard.r.Main.onEnable(Main.java:24)
[17:36:27] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
[17:36:27] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352)
[17:36:27] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417)
[17:36:27] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:462)
[17:36:27] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:376)
[17:36:27] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:457)
[17:36:27] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:267)
[17:36:27] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:784)
[17:36:27] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:748)
I have this error
But only vault its not working
Server and Player work
Any idea?
Tag me btw
Whatever rien.bijl.Scoreboard.r.Session.isUpToDate(Session.java:45) (scoreboard plugin) is using an outdated method to check for updates.
Contact the author.
K
Blitz, update on that plugin
it started giving me errors and kicking players off the server
I had to disable it, I reported errors to the author
and Im back looking for a javascript or plugin to parse [item]
weird
well I know there is another one called ShowItem
I use that plugin tho and no errors
or anything]
Could it be because I run a brazilian server and we use some characters the plugin wouldn't read maybe (?)
no clue
I have no idea
Quick question for sanity check on 1st time using PAPI:
When extending PlaceholderExpansion if I'm supporting OfflinePlayer do I just override onRequest and I can ignore the onPlaceholderRequest that's in the wiki tutorial?
Or do I need to override onPlaceholderRequest to call onRequest?
First one
Blitzz, Frosty any idea for my message a bit higher ?
๐ฆ
Is there a placeholder that shows the first join date on a server of a certain player?
%player_join_date% ig
Why CheckItem expansion don't detect "potato" or "carrot"?
Forget it, I had to write "carrot_item" and "potato_item" instead
I have the full ProSkywars and want to use The PlaceHolderAPI %proskywars_kills% but it apparently doesn't work or something, I already tried to download older versions of placeholderapi and it still doesn't work
where did u find that placeholder? i cant find anything on this @dusk crane
nvm im blind. i see them now. can u post a startuplog please?
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
so i just installed a vote party plugin and the placeholders it says to use arent working in my scorebord plugin, any ideas?
deluxe chat work with luckperms ?
Yes.
I saw several forums talking about %luckperms_prefix% which does not work with deluxe chat
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
where did u find that placeholder? i cant find anything on this @dusk crane
@warm topaz I did not understand anything
I have papi installed and it is not working in my scoreboard plugin
it just shows stuff like %player_name%
oh thanks lol
Hey, so I use leaderheads and whenever I try to do /leaderheads validate statistic_hours_played it says that its not a papi placeholder
I have the expansion statistic installed and also tried it with %% but it would just return the number and say that "37" is not a papi placeholder
Do you have any idea why these arent working out for me?
Yes
What could it be?
It might be
Might be what?
You're going to have to test it to make sure it works
What?????
Yup, looks good!
w a t
A job well done!
i quit
whats the placeholder to show the date on the scoreboard?
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#server %server_time_<SimpleDateFormat>%
papa
I have the full ProSkywars and want to use The PlaceHolderAPI %proskywars_kills% but it apparently doesn't work or something, I already tried to download older versions of placeholderapi and it still doesn't work
Contact the author of the plugin @dusk crane
The expansion is built into that skywars plugin
I can add a death counter with player expansion or i need another plugin?
%statistic_deaths% Might be better?
Thx
Hey funnycube, any idea for my problem ? :
I want ton prompt a scoreboard value in my tablist with the plugin Tab. To do this, I installed the Placeholder "ScoreboardObjectives" (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#scoreboardobjectives)
But I have a problem, the name of my scoreboard is : bac_advancements and in the syntax of the placeholder : %objectivescore<obj-name>%, if there is another "" it take the following characteres like a pseudo a no for the name of the scoreboard like this syntax say it : %objectivescore<obj-name>[otherEntry]%
Have you an idea of how say to the placeholder consider bac_advancements like a scoreboard name and not the scoreboard bac with the player advancements ?
And I can't and dont want to change the name of the scoreboard ^^
can someone help me i need absorption placeholder please
Hello,
https://github.com/kangarko/ChatControl-Pro/issues/1709
If there is any PlaceholderAPI representative who knows how to fix this. PM me.
Thank you.
Hi @dusty dagger, I believe @trim mist is watching this issue.
Thank you. I will PM him.
i need absorption placeholder for health
Why, when I do /leaderheads validate statistic_hours_played
it says that its not a papi placeholder?
do /papi parse me %statistic_hours_played% and see what it returns
Hey, do I need to have kiteplugin to run the animation placeholders?(https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#animations)
I tried using it on a hologram plugin and on a scoreboard, but it doesn't work
i need absorption placeholder for health
bump
Hey, do I need to have kiteplugin to run the animation placeholders?(https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#animations)
@clear nebula No
It works without
yep, /papi parse me %statistic_hours_played% works perfectly, but when I try to do /leaderheads validate it says its not a valid placeholder
So, not sure if this is a thing, but i was looking into making something and im not sure how to do it, if it is even possible.
I was looking for a way to put a players name/uuid into a placeholder so that when its like sent to chat you can see info for the player who sent it rather then yourself
Hmm I may have to look at delux chat then
Is Gems Eco Expansion outdated?
Is there any planned support for passing text components as values for placeholders?
Seeing as RGB text is coming in 1.16 but only to text components, it kinda seems like mojang are killing the "legacy" format code system
Probably not until PAPI 3, since we actually work with TextComponents in our Sponge port.
If that's in 1.16, great.
Correct.
PAPI3 is redesigned from the ground-up to allow us to support multiple platforms. At launch, Bukkit, Sponge, Nukkit. If that goes well, Bungeecord & Velocity over time.
Any ideas on release for that?
Not currently. It will be when it's more stable.
Fair enough
It'll be awhile, that's all I can really say for the time being.
This is a feature I desperately want to see and i'm happy to submit a pull request for it
Should the need arise obviously
You're more than welcome to submit a PR for it and the team will look it over.
Not much point if PAPI3 is coming though
Well, we're still talking a few months.
I guess there is that
The current structure of papi2 is extremely unfavourable for text components though
We'll probably make some changes to enable more support for 1.16. Not right away though. But I plan to drop a dev build (and I'll pin it) day 1 that we can so people can start testing and we can get feedback.
Expansions will probably be awhile longer.
That makes sense
You're still welcome to open an issue / draft PR and we can discuss options. I haven't used TextComponents much in the projects I work on, so I'd have to do some research on them.
I will do that in the next few days then
Text components are ideal because they're part of minecraft itself, which instantly means cross-platform
๐
yeah
2 ways. Java or javascript
java is to make placeholders for plugins. Javascript is to make well placeholders using data from other placeholders or from methods. https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
that is a link to learn how to use the javascript one
doesnt have to be for plugins
u can just create an expansion without depending on an other plugin
smh blitz ๐
Did the data problem with js placehlolder numbers get fixed?
what problem?
Hello, I want to report a bug or error in the placeholderapi plugin. The bug I have is when I use the placeholder %essentials_kit_time_until_available_ <kitname>% . The bug begins with the delay that each kit of the essentials has, I am trying to put this placeholder to my kit that has a delay of 7889400 but at the time of visualizing the placeholder the time appears in 0 and not in the time that corresponds to the kit . And if I add a delay of 1209600 to my kit, you can see the time. The placeholder doesn't work with 7889400 delay and i need to use this delay.
Again the issue is still not resolved. There are no error logs to speak of. It must be a glitch.
Placeholder API is NOT, I repeat NOT consistently connecting.
And is therefore, unreliable
What's happening?
This is what I have in the Chat Manager config:
First_Join_Message: "&6&l %server_unique_joins% &bpeople have joined &f&lMCVantage&r&b! Everyone welcome &l&f{player}&r&b!"
What's the actual issue though?
@unborn smelt ^
It only sporadically works and I have to do /papi ecloud download server and /papi reload, every time the config is edited for Chat Manager, and sometimes it doesn't work at all.
There are zero error messages, and there doesn't seem to be a way to replicate it. I've tried older versions of papi, the updated one, etc.
I've tested it with other plugins too. I can't even get Essentials Chat to work with it at all, and when I try to use Chat Manager with it, it's spotty at best.
Is it broken at the moment?
Have you tried just doing /papi parse ?
what did you type?
the syntax should be /papi parse me <placeholders>
%math_50-{tm_tokens}%
where i must put [precision:<number>] to show only 50 and not 50.000
I don't know, you were talking about /papi parse saying incorrect usage ยฏ_(ใ)_/ยฏ
%math_50-{tm_tokens}%
where i must put[precision:<number>]this to show only 50 and not 50.000
put it before the last %
My issue was that placeholderapi doesn't seem to consistently 'hook'
ah
Works now, thank you ๐
so the placeholders are showing like that %placeholder% instead of their output ?
Also is there a way to show the item's display_name with placeholders from deluxemenus in the message
or i need to type it
they are working
it was showing me 50.000 instead of 50 before putting precision number
oh sorry I confounded you with Walrus x)
@unborn smelt you're still there?
so the placeholders are showing like that %placeholder% instead of their output ?
and do they work when you do /papi parse me <those placeholders>?
I am currently testing
hey, i need help with the statistics placeholders (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#statistic)
they stopped working for some reason
they are like stuck
for example i use this one: %statistic_hours_played% and im stuck at 1191hours since 2 days, and the same thing happens to all of my players
i also use the placeholder that counts for deaths and that one is stuck too, so i guess all of the statistic placeholders are stuck
i have this placeholder %pinger_isonline_hypixel.net:25565%'
but it shows up offline in game
If you parse it again, does it still show offline?
how do i do that?
/papi parse me %pinger_isonline_hypixel.net:25565%