#placeholder-api
1 messages · Page 199 of 1
Are there any difference between %statistic_hours_played% and %statistic_time_played:hours%?
yea

so do i do %team_prefix_<team_name>%
I couldn't understand
no difference
thanks
ah, it's only for your current team
how do i change that
or is there no way
I don't think there's a way
sadge
do you use the prefixes elsewhere?
wdym
i use the suffix as a timer
could you store it to a custom objective instead?
i could try
One more question
when I try papi parse MetuMortis %statistic_hours_played% from console it logs blank string. Does this mean player must be in the game to use this placeholder
i should think about using vanilla objectives to store data more often
yes
they gotta be online
thanks
@mint fable how do i make a timer with placeholder api
Please respect the rules, be patient and don't ping staff members!
mb
alr, thanks
Please respect the rules, be patient and don't ping staff members!
Oops, sorry
can someone help me with this?
is this correct way of detecting if at least 1 requirement is true?
view_requirement:
minimum_requirements: 1
requirements:
tier_1: # This requirement will check if they have the rank, and if they do it will show the has_vip item instead.
type: string equals ignorecase
input: '%custom_placeholder%'
output: '1'
perm_1:
type: "has permission"
permission: floor.staff
I tried this and it only check the permission one for some reason, if the permission is false it blocks the view
Please respect the rules, be patient and don't ping staff members!
oh my god i forgot
im sorry
can anyone please help me
can anyone help me ive been waiting for someone for 3 hours now
You're asking for a very customized project to be done
It's not just basic plugin or placeholder help
I am currently busy, if I have free time, I will make it. But until then your best bet is #992627658229809162 or #992627660146626601
alright i guess
If you wanted "help" then you would try and learn some javascript or at least explain what you want done so people CAN help you
cj is a busy lad
I'm not going to lie, most of my javascript just comes from me googling "xyz javascript"
sorry im just not really patient
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
well does anyone know how to use the teams placeholder api
just state what you want to do
if people can help, they will
but they won't know if they can help until you fully lay it out for them
im trying to make a timer on my sidebar that i made with a plugin called "TAB" and the minigame that i made was made in datapacks therefore its kinda hard to transfer stuff like team suffixes and team prefixes and all that stuff so i was wondering if placeholder could help since it probably has something
Is there a way to have a leaderboard with top ingame moneymaker of the week, that auto resets. SImilar to how topvoter of the month works?
how do i import placeholder api into my plugin via POM
@stoic garnet looking at the scoreboardobjectives extension, it doesn't look like it's possible to do what you want
oh
There is no way to tell what position a certain entry is on the leaderboard
Is there a maximum number of teams?
it would then be more do-able
8
always 8 or no
always 8
How do you know which team you're on?
%team_name%?
I presume that would work, ye?
I started work, will lyk when I finish prob later tonight
i think it would
alright ty
also just dm me the script when it’s done since I’ll probably be asleep when it’s ready
Please respect the rules, be patient and don't ping staff members!
Morning, so i was using CheckItem-Expansion yesterday and found an issue with nbtstrings
Im using 1.19, but this morning i found a solution and just wanted to ask if it could be updated. All that needs to happen is the dependencies in the pom need updating
Like below and this seems to fix the issue i was having with nbt not working```
<artifactId>spigot-api</artifactId>
<version>1.19-R0.1-SNAPSHOT</version>
<artifactId>placeholderapi</artifactId>
<version>2.11.2</version>
<artifactId>item-nbt-api</artifactId>
<version>2.10.0</version>```
If it could be updated officially that would be amazing
It definitely does, 2.9.2 works til 1.18 only. Maybe make a PR
java.lang.NullPointerException: Cannot read field "left" because "r" is null
at java.util.TreeMap.rotateLeft(TreeMap.java:2543) ~[?:?]
at java.util.TreeMap.fixAfterInsertion(TreeMap.java:2610) ~[?:?]
at java.util.TreeMap.addEntry(TreeMap.java:770) ~[?:?]
at java.util.TreeMap.put(TreeMap.java:828) ~[?:?]
at java.util.TreeMap.put(TreeMap.java:534) ~[?:?]
at com.extendedclip.papi.expansion.vault.VaultEcoHook.setBalTop(VaultEcoHook.java:110) ~[?:?]
at com.extendedclip.papi.expansion.vault.BalTopTask.run(BalTopTask.java:56) ~[?:?]
at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[pufferfish-1.18.2.jar:git-Pufferfish-72]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]```
What's this?
why every time that i try to dowload Javascript extension my papi just stop woking
[15:27:57] [Client thread/INFO]: [CHAT] An internal error occurred while attempting to perform this command
[15:28:05] [Client thread/INFO]: [CHAT] PlaceholderAPI configuration reloaded!
im using the command /papi ecloud dowload Javascript and then /papi reload
thanks fyi
No probs buddy
@stoic garnet yo
yo
lot more complicated than originally thought
but what if you're 1st/2nd place
what do the other lines show
lemme check 1 sec
1. 1st place
2. One above you
3. You
4. One below you
when your in first it shows the 3 teams behind u
If first
1. 1st place
2. 2nd place
3. 3rd place
4. 4th place
yea
same thing for 2nd?
so uh
if your 8th/7th
5. 5th place
6. 6th place
7. 7th place
8. 8th place
what is this
you want it to show ALL teams?
I thought you wanted first place, one above you, you, one below you
nonono
do you want 8 lines?
thats if your 8th or 7th
because you just did 5 6 7 8
wait
it should show like this
if you're 8th though, do you want to show 2 people above you instead of 1 above/below?
yea
aight
%javascript_scoreboard_name,#% to get the translated name of the team in # position
(not sure if you'll need it though)
%javascript_scoreboard_line,#% to get the line
so I did 4 lines: 1 2 3 4
this might end up being laggy fyi
it is javascript afterall
vs an actual java plugin
so do i change the original name of the script from example to scoreboard_name
and it runs the engine every time it's called
scoreboard
oh
name and line are "methods"
it isn't actually entirely setup yet, gotta make some changes
only 1 script
I thought you were just replacing what you had
i had to reset my server yesterday, what expansions do i download again?
this isnt working for some reason
/papi parse me %javascript_scoreboard%
%javascript_scoreboard_name,#% to get the translated name of the team in # position
%javascript_scoreboard_line,#% to get the line
so your scoreboard should be
%javascript_scoreboard_lines,1%
%javascript_scoreboard_lines,2%
%javascript_scoreboard_lines,3%
%javascript_scoreboard_lines,4%
Hi. I am currently having trouble with the vaults placeholders. I have added the vaults placeholder to my current scoreboard plugin, but all it is doing is the showing the placeholder in the scoreboard as %vault_eco_formatted%. I have installed the placeholder and reloaded placeholderapi. Any reason why it is not loaded or anyway to fix it?
does %javascript_scoreboard_name,1% do anything
nope
send your javascripts config
also it's lines not line ig
it doesnt let me send a file
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
shouldn't be too big
# Version: 2.11.2
# Created by: extended_clip
# Contributors: https://github.com/PlaceholderAPI/PlaceholderAPI/graphs/contributors
# Issues: https://github.com/PlaceholderAPI/PlaceholderAPI/issues
# Expansions: https://api.extendedclip.com/all/
# Wiki: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki
# Discord: https://helpch.at/discord
# No placeholders are provided with this plugin by default.
# Download placeholders: /papi ecloud
check_updates: true
cloud_enabled: true
cloud_sorting: name
cloud_allow_unverified_expansions: false
boolean:
'true': 'yes'
'false': 'no'
date_format: MM/dd/yy HH:mm:ss
debug: false
expansions:
javascript:
debug: false
github_script_downloads: false
argument_split: ','
use_quick_js: false```
that's the papi config
oh
I need the javascript.yml or whatever
# This is the main configuration file for the Javascript Expansion.
#
# You will define your javascript placeholders in this file.
#
# Javascript files must be located in the:
# /plugins/placeholderapi/javascripts/ folder
#
# A detailed guide on how to create your own javascript placeholders
# can be found here:
# https://github.com/PlaceholderAPI-Expansions/Javascript-Expansion/wiki
#
# Your javascript placeholders will be identified by: %javascript_<identifier>%
#
# Configuration format:
#
# <identifier>:
# file: <name of file>.<file extension>
#
# Example:
#
# 'my_placeholder':
# file: 'my_placeholder.js'
example:
file: example.js
it's still named example
i change it from example.js to scoreboard.js right
whatever your file is named, keep it that way
if it's still named example.js keep it that way
but replace the example above it to scoreboard
honestly, it doesn't really matter
it's just for organization purposes if you need more javascripts later
really you can use %javascript_example_lines,1%
🤷♂️
# This is the main configuration file for the Javascript Expansion.
#
# You will define your javascript placeholders in this file.
#
# Javascript files must be located in the:
# /plugins/placeholderapi/javascripts/ folder
#
# A detailed guide on how to create your own javascript placeholders
# can be found here:
# https://github.com/PlaceholderAPI-Expansions/Javascript-Expansion/wiki
#
# Your javascript placeholders will be identified by: %javascript_<identifier>%
#
# Configuration format:
#
# <identifier>:
# file: <name of file>.<file extension>
#
# Example:
#
# 'my_placeholder':
# file: 'my_placeholder.js'
example:
file: scoreboard.js
thats good right
is your script saved as scoreboard.js?
its named scoreboard so yea
now it says
script error
but it only does that when the 2nd to last line example is changed to scoreboard
huh?
okay i fixed it
but it still replies with blank
/papi parse me %javascript_scoreboard_lines,1% right??
well its just sending blank so idk what to do
what if you do %javascript_scoreboard_name,1%
same thing
%objective_entryposhigh_{coins}_{1}%
same thing
same thing
same thing
what about a restart
alright 1 sec
and also, send your javascripts.yml again
and a picture of your Placeholderapi/javascripts folder
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
# This is the main configuration file for the Javascript Expansion.
#
# You will define your javascript placeholders in this file.
#
# Javascript files must be located in the:
# /plugins/placeholderapi/javascripts/ folder
#
# A detailed guide on how to create your own javascript placeholders
# can be found here:
# https://github.com/PlaceholderAPI-Expansions/Javascript-Expansion/wiki
#
# Your javascript placeholders will be identified by: %javascript_<identifier>%
#
# Configuration format:
#
# <identifier>:
# file: <name of file>.<file extension>
#
# Example:
#
# 'my_placeholder':
# file: 'my_placeholder.js'
example:
file: scoreboard.js
it's still
uh
example
example is the name
scoreboard.js is the file
all you need is
scoreboard:
file: scoreboard.js
when i do that it says Script error (check console)
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
?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.
same thing
fully?
all 4 lines?
if so then it's just time to test when you're at every position 1-8 in the scoreboard
yea
but theres 1 more thing i want to do
which shouldnt be that hard
i want it to show on the side of team name
the placement
and their coins
so like if your in 3rd with 8 coins
- Orange Ocelots 8
I don’t know if that’s possible because I think the number on the right decides which order you see it
But you could just put the value itself next to the team name, not as the value way on the right
hello guys! Who know how to fix this? https://paste.helpch.at/vurinicinu.md
(PAPI version: 2.11.2)
JS expansion:
2. Javascript clip Y 2.1.0
Hi, is this support for ServerTime PAPI expansion?
what do ya need?
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
So, I was sent here from the DiscordSRV support server because I need help with a date placeholder. I downloaded PAPI and ServerTime expansion and did the %servertime_<SimpleDateFormat>% placeholder. I need help making my server online and offline messages have a timestamp like this: <t:1657146564:R>. When I added %servertime_<SimpleDateFormat>% and started and shut down my server this is what my bot messaged. (Attached to this message is the bot's discord message (for start and stop) and the DiscordSRV config message (for start and stop).
https://cdn.austinispog.tk/Opera_Snapshot_2022-07-06_153304_discord.com.png <-- Discord messages
https://cdn.austinispog.tk/Opera_Snapshot_2022-07-06_153304_discord.com.png <-- DiscordSRV config
I dont use that lol, I use my custom image uploader
that's fine
Java version: 17
kind of odd, but what happens if you put an actual SimpleDateFormat?
wdym?
also I accidently did the wrong messages for the second screenshot
here are the messages:
The server is online. Started error whilst parsing the date
The server is offline. Stopped error whilst parsing the date```
from the bot
so, you'll probably want a custom js placeholder on top of servertime
idk how to do that
ok
try putting %servertime_MM/dd/yyyy HH:mm%
No idea how discord works with the whole 7 minutes ago thingy FYI @austere hawk
I mis-spoke here
its a timestamp
but as long as you know how you integrate that part into discord then we're good
7/6/2022 5:39 PM CST
https://time.austinispog.tk (select Relative time)
ah
what is that
that is what makes this
the number
The server is online. Started <t:1657147146:R>
The server is offline. Stopped <t:1657147146:R>
idk
I think like it tells Discord when the time was or smth
you didn't make the converter?
nah
I just hooked it up to my custom domain so I don't have to remember another url lol
@mint fable
we are getting somewhere
Austin's Assistant
BOT
— Today at 3:39 PM
The server is now online. Started 07/06/2022 15:39
Now I need it to look like this lol
send your placeholderapi config
type /papi ecloud download server /papi reload
then send the config
ooh actually
sorry
I found localtime
download that and try this
ok
ok
Placeholders:
%localtime_time%
%localtime_time_<SimpleDateFormat>%
%localtime_timezone_<TimeZoneID>%
%localtime_timezone_<TimeZoneID>,<SimpleDateFormat>%
which placeholder do I put?
An expansion that allows you to use javascript for processing
• Wiki
• Community Scripts
• GitHub
• eCloud
lol
download that then follow this example to make a blank script https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script
do I delete the other expains?
I'll send you it soon
use_quick_js: true helped, nvm
lmao
ok I reloaded and added JS
where?
in the expansion config?
Why I everytime must reload papi, if I restart server?
PlaceholderAPI/config.yml
contains everything what u need
ok
pok
so tell the server that the thing you added/changed is new and to listen to it
y
doesn't work
what doesn't work
To test it, run /papi parse me %javascript_hello_world% (doesn't work in console)
And ta-da! example
that
it shows up as blank
you reload, ye?
give it a nice /papi reload and try again real quick
Also, you can rename it all to whatever you want now, I suggest unixtime or something
yeah I did
unixtime:
file: unixtime.js```
and save this as unixtime.js
(Date.now()/1000).toFixed(0)+""
/
home
/
container
/
plugins
/
PlaceholderAPI
/
javascripts
/
unixtime.js
in that file?
yes
/papi parse me %javascript_unixtime%
ok ty
It responded with 1657149515
ig add the extra stuff in to the script too
why not
if it's only for discord
"<t:"+(Date.now()/1000).toFixed(0)+":f>"
or whichever format you want
or add it to discordsrv config
🤷♂️
<t:1657149515:f>
<t:"+(Date.now()/1000).toFixed(0)+":f>
?codeblocks
Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```
For example:
```yaml
test:
- “hi”
- “there”
```
Produces:
test:
- “hi”
- “there”```
or if you surround with `` it escape formatting too _like_this
DiscordChatChannelServerShutdownMessage: "The server is now **offline**. Stopped <t:"+(Date.now()/1000).toFixed(0)+":f>"
``` like this?
no no
your script
that's your script
ohhhh lmfao
ye
Did you put the right placeholder
Do you know which player it parses placeholders for?
wdym?
in papi, placeholders get parsed for a specific player
so I'm not sure how discordsrv manages that with these messages
Just to make sure it's still working type /papi parse --null %javascript_unixtime%
if that works then we might have to ask discordsrv
@austere hawk 
can you elaborate
can we make it so a placeholder resets every 7 days? eg: for %eco_balance% etc
using placeholder api, or is it inbuilt into what ever plugin im using?
PlaceholderAPI only acts as an API to transfer data between plugins
It doesn't cache and it doesn't actually provide any data itself
So %eco_balance%, you'd have to have it so that your economy plugin resets balances every 7 days or whatever you want there
I'm having issues with PAPI extension Player, where %player_direction% outputs different things depending on the location on the server.
You can see below that /compass outputs N with 359 degrees, but papi parse me %player_direction% returns NW
https://ibb.co/dBXrh4k
I have tried this in 3 location on my server so far and the closer i am to 0, 0 the center of the world the more inaccurate some of the directions become. I have tracked the following.yml N is set from 0-23 # should be 337.5 to 22.5 NE is 24-67 # should be 22.5 to 67.5 E is 67 to 113 # should be 67.5 to 112.5 SE is 113 # should be 112.5 to 157.5 S is 114-179 # should be 157.5 to 202.5 180 returns NOTHING SW is 181-239 # should be 202.5 to 247.5 W is 240-300 # should be 247.5 to 292.5 NW is 301-359 # should be 292.5 to 337.5
Is there any reason this might be happening? Any way to try and fix this on my end? Like i said, when I'm further away from the centre of the world it start working properly.
And here when i'm facing south, /compass outputs S with 180 degrees, but papi parse me %player_direction% returns BLANK
https://ibb.co/mbfv3Yn
public static BlockFace getDirection(Player player) {
return radial[Math.round(player.getLocation().getYaw() / 45f) & 0x7].getOppositeFace();
}```
that is how it is calculated in the expansion
there is probably some room for improvement lmao
Austin's Assistant
BOT
— Today at 4:57 PM
The server is now offline. Stopped <t::f>```
Please respect the rules, be patient and don't ping staff members!
but what does it say in the chat
when you type /papi parse --null %javascript_unixtime%
Thankyou Star!
also fyi the yaw goes from -180 to 180 for bukkit
um, I'm still stuck with this, could anyone help or make a change?
Any idea why I'm getting this error? https://keig.tk/Feather_Launcher_MYaPzmviWZ.png
it's the same as this error ^^
and i've re-installed my expansions already
Try seeing if it loads with no expansions installed in /plugins/placeholderapi/expansions/ If that loads then slowly add them back one by one till it fails to see which one is causing it to go wonky
but it needs some expansions to be loaded in order to show them? https://keig.tk/javaw_XyF4U9CtqC.png
So yeah, slowly add back expansions till it fails
ok so i did that, they're all fine but then when i retstart the server they're all back to showing the raw text again. As soon as I do /papi reload they go back to normal
i think someone forgot to put the latest Player expansion on e-cloud.
https://ibb.co/7gxftMw
the github has 2.0.3 but latest available through ecloud is 2.0.2.
08:28:07 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected!
[08:28:07 WARN]: [PlaceholderAPI] [math] Placeholder: %math_(precision:0/60)%
[08:28:07 WARN]: [PlaceholderAPI] [math] Cause: '(precision:0/60)' is not a valid Math Expression.
help someone
@vivid sparrow should be able to answer that, potentially not stable idk the details on it.
something weird going on w/ papi on 1.18
tried updating and all placeholders just broke
the math expansion has changed its syntax in the latest version (or a recent-ish one) instead of using [precision:0], use %math_0_{expression here}%
Ok
Maybe more information about that, how it broke? errors in console?
I have no clue. We updated to latest version and all placeholders just stopped working. Are there any dependencies that I need to change?
if you mean expansions, ofc
Nvm apparently it works now yeah it was all expansions
you are updating to a totally brand new version
There was one expansion that was bugging so we deleted it and reloaded all expansions

never had that issue before, thanks for the help 🙂

Oi! so uhm i have this thing a join/leave message customizer thingy so i have a config file and i made it so it'll print out what's in the config file and i have the placeholder dependency enabled so i asked my friend why is the %player% isn't loading from the config file and he told that you so something with setPlaceholders.fillinplaceholders so i have the doubt that where should i input that setPlaceholders.fillinplaceholders to let it print our the placeholder "%player%
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
it works fine for me, even fixed my above issue with inaccurate outputs
Please respect the rules, be patient and don't ping staff members!
Hi. I am currently having trouble with the vaults placeholders. I have added the vaults placeholder to my current scoreboard plugin, but all it is doing is the showing the placeholder in the scoreboard as %vault_eco_formatted%. I have installed the placeholder and reloaded placeholderapi. Any reason why it is not showing its vaule or anyway to fix it?
- Error on start
- You dont have vault
- You dont have the vault expansion
- You dont have an economy plugin with vault support
- Your scoreboard doesnt work
- No errors on startup
- I have the latest version of vaults (compiled)
- Expansion installed, reloaded both the plugin and server
- Using essentials latest version
- Using featherboard
Any idea about the Statistic placeholder not working?
%statistic_hours_played%
Although I normally have 32 hours, this placeholder shows I've played 15 hours and it doesn't change at all.
my server paper 1.16.5
(https://github.com/ronaldburns/PlaceholderAPI/issues/84)
featherboards support placeholdderapi?
Yes
I would recommend asking for support in his discord server
I mean, thats not PlaceholderAPI
and /papi parse me %vault_eco_balance% works normally?
Let me check on that. Give me roughly an hour

Hello, i have problem with %bungee_server% for some reason placeholder
registers the number of players on the server, but does not reset when the player exits, and now i have over 99 players on survival and 400 in lobby 😄 did someone meet with something like this? how to fix it?
'0': §fW grze §6%bungee_survival% §fgraczy
What type of proxy and backend servers are you running?
Paper and on proxy waterfall 🙂
have you ever encountered such a problem? 🙂
Like which ones?
you downgraded? if so, all should be as before
but?
Edit: I guess there wasnt a "but" at all, good!
Does anyone know how to put the nbt for pixelmon?
'slot1':
material: PIXELMON_PIXELMON_SPRITE
nbt_strings:
- 'form:%pixelmon_party_1_form%'
- 'palette:%pixelmon_party_1_palette%'
nbt_ints:
- 'ndex:%pixelmon_party_1_dex_number%'
- 'gender:%pixelmon_party_1_gender%'
I tried this way but it doesn't work
PlaceholderAPI doesnt support forge/sponge afaik
For some reason /papi ecloud download TownyChat -> /papi reload seems to break papi, since papi upon reload does not register the hook and later returns "No expansions available to list" when doing /papi ecloud list installed despite hooks having been downloaded and registered. Any help?
and I know it is for sure specifically TownyChat hook doing it
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.
/papi parse GizliBaskan %statistic_minutes_played% results 0
There is a problem with papi's Statistic.
there is no wrong other placeholders but statistic.. @final shadow are u there?
Please respect the rules, be patient and don't ping staff members!
¿?
and it's working perfectly for me, it's just that option that I can't get to work
you mean you are using PlaceholderAPI from spigotmc
Any help regarding my question? Would like it solved asap
Towny support told me to go here, and I have no other reason to not do so since townychat addon by itself works fine, but since that causes incompatibility we have to use papi, but apparently downloading townychat there breaks everything
all towny files are also fully up to date
issue is the expansion
well where does papi get the expansion from?
from ecloud, which is uploaded by the dev who made the expansion
I'll ask him then
in this case, seems to be Clip
because it confused me since latest townychat version is 0.96 but papi said 1.2
nope
then why you downloaded it?
because I need its placeholders
you might have a point, I'll try reinstalling papi and try without and see if stuff works
It would be good if I could submit images here
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
Yes that worked Alonso, thanks. Guess it was just me being dumb :p

mmh, can anybody help me
Is there a way to add more than one input with its output
requirements:
test0:
type: string equals
input: ''
output: ''
test:
type: string equals
input: ''
output: ''
something like this ?
Hye cj, sorry for the long wait. I was really busy. Anyway, this is what it says:
Please respect the rules, be patient and don't ping staff members!
Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.
that appears to fix it
for whatever reason it keeps saying that Bungee has an update but never actually updates it
it downloads version 1.0.1 even though 2.0 is the latest
I manually installed 2.0 and it still says the version is 1.0.1 after a reload
it also says there is a player online on an empty server
Did anything change with the script at all? the name maybe?
it was working fine before
oh I remember what I was testing
now type /papi parse <your name> %javascript_unixtime%
I have a issue at the moment with featherboard that papi not working with it, All expansions are in the folder and worked for 1.18 but now have a issue that the placeholders not working
When having issues with placeholders not being parsed, always try the papi parse command like:
/papi parse me %vault_eco_balance_fixed%
if it works, then is FeatherBoard issue, otherwise, it's something else which can be since vault, vault expansion, economy plugin, not installed
when ever i restart my place holders dont work and i need to do ./papi reload to fix im on 1.19 with the most recent version so why is this
Maybe share console log so a PlaceholderAPI dev can see if its something related
anyone know how to make a scoreboard show combatlogx whenever in combat?
using expansions
wth is wrong with my placeholder api
everytime i restart my server it just goes poof
i need to do /papi reload everytime server restart
@rustic carbon try this :
- Update your placeholder api plugin.
- Delete and reinstall all expansions.
i tried
im already using the latest placeholderapi
there will be an error on server restart, can you send it
[15:44:01 INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.11.2
[15:44:01 WARN]: [PlaceholderAPI] Loaded class com.viaversion.viaversion.api.type.Type from ViaVersion v4.3.1 which is not a depend or softdepend of this plugin.
[15:44:01 INFO]: [PlaceholderAPI] Fetching available expansion information...
[15:44:08 INFO]: [PlaceholderAPI] Successfully registered expansion: server [2.6.1]
[15:44:08 INFO]: [PlaceholderAPI] Successfully registered expansion: player [2.0.3]
[15:44:08 INFO]: [PlaceholderAPI] Successfully registered expansion: luckperms [5.1-R2]
doesnt seem like an error to me tho
yeah
https://paste.helpch.at/uzilefedap.js it shows 0.0 pls help
You can 1. use the math expansion, or 2. add the sum inside a (sum here).toFixed(0)
@crystal mauve please explain your problem better. IS the problem that it shows 0.0 instead of 0 or is the problem that there's players online and they're not counted or is the problem something else?
- I tried but didnt work
Please respect the rules, be patient and don't ping staff members!
well I think the problem is that is showing .0
If I try like this it shows 0.0 (https://paste.helpch.at/mawerikofu.js) but if I try like this https://paste.helpch.at/ewatevavep.js it shows 00
the problem is that it shows 0.0 instead of 0 and the players are not counted either xDDD
Please respect the rules, be patient and don't ping staff members!
yeah. the second option shows 00 bcz it concatenats the string. doesn't add them up.
use the first option with the fix that gaby recommended
but I dont understand the sum thingy
return sum.toFixed(0);
it shows 0
but doesnt get the players :(
something's wrong
it shows with %bungee_total% 0 too
Hey
Why does this not work?
- {text: "${viewer progress_bar_aoneblock_visited_island_percent_done_m:100_p:&5■_l:10} &7(${viewer aoneblock_visited_island_percent_done})", icon: "colors/dark_gray.png", ping: -1}```
Would've sent a screenshot of what it does but I can't for some reason
Hello, i'm trying to understand what does this variable do, but I still don't get it well, can someone explain me?
var parsed = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");
what variable?
you mean that entire line of code?
it will take a string from the variable placeholder and add % at the start and the end. For example if placeholder is player_name it will become %player_name% then the placeholder will be parsed for the player.
ohh, now I understand, well, thanks
and the var I was meaning is "parsed", since it has the var keyword in front of it
hello so i am creating a join/leave msges plugin and i made it so itll print the msg from the config as the join msg and the placeholder %player% or %player_name% isnt working..
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
tried both..
why do my placeholders sometimes not work after a reset i have to reload the plugin to make it work
i have a similar problem. the bungee placeholder says there are players online on an empty server
when i reload it works for a little while but then returns to having 1-2 players online
i wonder if this could be related to minecraft versions cause my lobby server (the one with the bungee placeholders) is version 1.18.2 while the servers that show inaccurate player counts are 1.12.2 and 1.19
Hello! have a problem with PlaceholdersAPI. Can anyone help? 😕
Error: https://paste.helpch.at/cegabipifo.sql
Dump: https://paste.helpch.at/ehimuqoqid
Maybe full console log could help
okey
Am I just missing something simple? Is there an easy way to set up a placeholder alias? For example, I'd love to just be able to do %character% and have it output (%player_xyz% + %player_zxy%) so I only have to type the one word for all my configs
ok
Please respect the rules, be patient and don't ping staff members!
Bruh
thats what it responds with
How did I just check this and you happen to send it an hour and a half later
LOL
IDK
I just remembered lmfao
Js expansion might need an update
and then you remembeed lol
oh
Well I was busy but ye
Not sure if I’ll be able to update the JS expansion or not, I’ve never touched it so
Sadly it’s not seeming to parse placeholders for a non player (—null)
is there any other thing we can do?
is papi going to premium some day?
no
good
No clue
hey I've seen a few issues with the same thing occurring, however every response says to update to the latest version of papi, I am at the latest version and I am still getting this issue in 1.19
https://paste.helpch.at/javoceneza.sql
My apologies, it seems I have found the solution
Hey! When i use /papi reload, it doesn't end command. It doesn't print anything in chat, only in console:
[09:55:13 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[09:55:13 INFO]: [PlaceholderAPI] Fetching available expansion information...
Also /papi dump doesn't do anything, it doesn't even say anything in console.
@craggy rune I know expansions that are not up to date can cause this
%formatter_num_round_{player_health}%
It should work right?
Cuz player_healt returns float
When I try and parse a placeholder for luckperms prefix, it doesnt work with hex codes, It just shows the actual hex code in chat
try to use the format that's accepted by your plugin (chat, tab, scoreboard, whatever)
papi parse does not color your text (papi in general)
so test it where you're going to use it
ok
Please respect the rules, be patient and don't ping staff members!
[PlaceholderAPI] expansion class EssentialsExpansion is outdated:
Failed to load due to a [NoSuchMethodError], attempted to use com.earth2me.essentials.Essentials.getBalanceTop()Lnet/essentialsx/api/v2/services/BalanceTop;
anybody know?
update essentials
ah ok
ty
Could not load plugins\EssentialsXSpawn.jar in plugins folder because plugin is invalid
i got this error now
Hello, why do I reset all placeholders when I install the Math placeholder?, and only when I delete this placeholder do all placeholders work.
The math expansion probably breaks and it breaks the loader as well
Most likely you're on java 10 or lower
What kind of Java do you need?
11 or higher
did you know?
Yes... I have Java 8, what should I do now?
well update to java 11
or don't use the math expansion
So many plugins break...
Can you restart your server and send the full startup log please?
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.
I kinda doubt it (if plugins break on java update they're most likely badly written) but that's why you have the second choice which is to not use the math expansion
I just need to dine online 2 worlds into one placeholder
you could try using an older version of the math expansion. I don't know when it stopped supporting java 10 or lower tho so you'll have to try them all I guess
How can you try them?
Thanks
you're using Mohist. It probably has something to do with that.
Might want to read this: https://essentialsx.net/do-not-use-mohist.html
In short, I've installed it, but here it writes (1.000) what are these dots at the end for?
what version
apparently 1.2.6 should work
yeah he just has the precision digits
add [precision:0] in your placeholder @lyric pine
I do not understand where to add can you throw it completely?
I think that should still be %math_0:_%
%math_0:_1+1%
like that
not [precision:0] that was OLDER older versions
Thanks
if my identifier is "axosg" and my identifier in onPlaceholderRequest is "kills" what would my placeholder be
%axosg_kills%
presuming you're checking if identifier.equals("kills")
Doesn't seem to work, I'm testing it with HolographicDisplays
equalsIgnoreCase
ye
When I do /papi list it shows up
holographic displays beta 3 has a weird format {papi: placeholder}
Decent Holograms does not
(and you can import from HolographicDisplays)
Best to test placeholders with /papi parse <player|me> %placeholder%
This worked, thanks!
Hello, is it possible that if you don’t have a clan, for example, then it says that it’s missing, but if it does, it writes the name of the clan?
did u break everybody's configs kaliber
Can you post an example of how it should look like? I just didn't understand
%changeoutput_equals_input:{clan_name}_matcher:_ifmatch:_else:{clan_name}%
wdym
if they have the old syntax, no worko?
i had to, only way i could thinking of fixing this https://github.com/Kqliber/Expansion-ChangeOutput/issues/2
change syntax or revert to 1.1 and lose some placeholder support
ye syntax is annoying to do
always problems
yup sadge
big
Hey is there a way to store placeholders in a database across servers?
what's wrong?
%changeoutput_equals_input:{skinsrestorer_getSkinName}_matcher:_ifmatch:_else:{player_name}%
If there is no skin, the player's nickname should be written, and if there is, the name of this skin should be written, and it will always show me the player's nickname
Should, but how?
have you checked the wiki?
what does {skinsrestorer_getSkinName} return if there is no skin
no, new format
I need it so that if a player has a skin, the name of his skin is written, and if there is no skin, his nickname is written
yes, and so what does that placeholder on its own return if there is no skin
Well, he writes None, how can I change it?
%changeoutput_equals_input:{skinsrestorer_getSkinName}_matcher:None_ifmatch:{player_name}_else:{skinsrestorer_getSkinName}%
thanks
Works!
tbh I like the new format it kind of explains it a bit
honestly, old one wasnt that hard to understand, lets be honest
Guys im confused, im trying to get the papi placeholders for FactionsX and i can clearly see that it is a registered expansion https://gyazo.com/6eb7b936d918f0bdfae58b531a409fe0 buy doing /papi ecloud download doesnt work it says cant find registered extension and i cant download the expansion manually either 😐
Can someone tell me how to register a new placeholder?
Where is that picture from?
these are the only ones on the ecloud https://i.imgur.com/cIHjjn4.jpeg
most factions now-a-days has the papi expansion built-in
Currently have problems at the moment since updated to 1.19;
Most of my placeholders are not working which you can see below;
- I have tried downgrading the version
- I have tried parsing
- I have tried manually downloading all the extensions
- I'm on Purpur 1.19 - Build 1703
- Using Latest Version on Featherboard
anyone know the placeholders for balance top, im using holographic displays to show them on a leaderboard
how can I translate the initials of the days, example "w" -> "s"
https://imgur.com/a/odGCWN2.jpeg
Placeholderapi config
PlaceholderAPI is not working with 1.19?
When I dot /papi reload it says Placeholder expansion registration initializing...
and then Fetching available expansions information....
and then nothing, placeholders dont work etc
Im using latest paper 1.19
I have the same problem
Same
Hello, how to make it so that if the player is in the world "world" or "world_nether" then the placeholder "%player_world%" does not show the name of the world but "Hi!" and if in "world1" or "world_the_end" then the placeholder showed "Welcome)"
hi, you need to use JS expansion
Please tell me how to give the night vision effect in the javascript extension
Hi, i have Rankup plugin on 1.18.2 when i try to rankup i have this error message :
Caused by: java.lang.IllegalArgumentException: Placeholder requirements must be in the form %placeholder% <operation> string
I try to make a custom model data item as requirement for rank up this is my config file : https://paste.helpch.at/uxugobomix.coffeescript
looks like you might need a space between = and 1
also I recommend adding the material to the checkitem placeholder as well in case you have other items with a cmd of 11
what is the material for the cd ?
do you speak french ?
No
ok i try to explain in english
How?
I don't see
Please respect the rules, be patient and don't ping staff members!
A
what is your server version?
1.18.2
you can find a list of materials for 1.18 here: https://helpch.at/docs/1.18/org/bukkit/Material.html
I have an item with custom model data and i have Rankup plugin on 1.18.2. I want to make a requirement for the play to rankup: if it has a number of this item he can rank up
this is my config file : https://paste.helpch.at/ojizosurag.coffeescript
I don't really know how the rankup plugin works but you can use the CheckItem expansion to see how many items of a type someone has
%checkitem_amount_mat:music_disc_11,custommodeldata:1%
try this one
👍
have you downloaded Pinger expansion and reloaded PAPI?
what hologram plugin do you use?
already
and when you specify plugin version specify plugin version not version what the plugin supports (v3.0.0-SNAPSHOT (beta 3) in this case)
Is there a way I can edit the format of an expansion? The world expansion has a time placeholder, but formats 12:30 am as 0:30 am.
can anyone help when I try and do Papi parse me %essentials_baltop_balancefixed<rank>% it just says invalid id
you can use javascript placeholder
Hi, asking again if anyone knows how to please do the night vision effect in the javascript expansion
@upper anchornot sure what info your looking for?
gives potion minecraft:give %player_name% potion{Potion:"minecraft:long_night_vision"} 1'
Do you want to give a potion, or to apply the effect?
here's how you would apply the effect
var effect = Java.type("org.bukkit.potion.PotionEffectType").NIGHT_VISION;
var PotionEffect = Java.type("org.bukkit.potion.PotionEffect");
var potion = new PotionEffect(effect, /*duration*/, /*amplifier*/);
BukkitPlayer.addPotionEffect(potion);```
This might work, you need the nashorn engine
thanks!
@balmy marten !!!!
Please respect the rules, be patient and don't ping staff members!
I have been waiting for 2 weeks!
Open an issue here https://github.com/PlaceholderAPI/Essentials-Expansion/issues . If you say something here it can easily get lost.
alright, I'll do it thanks!
Can I somehow find out if the "placeholder requester" is CONSOLE in onPlaceholderRequest?
check if the player is null
Tried, somehow it's not null if it's console
if you execute /papi parse PLAYER-NAME PLACEHOLDER the requester will actually be the PLAYER-NAME. It will first try to find an online player and if it can't then an offline player
the requester can be an online player Player, an offline player OfflinePlayer or anything else
aka null
Using javascript, is there a way to get the smelted version of an item?
like getSmelted
Why doesn't /papi ecloud download Skript work for me? It says it doesn't exist.
There is no official skript expansion, there are multiple unofficial ones though
this is the most recently updated https://api.extendedclip.com/expansions/skippi/
?
oh wait
it doesnt let me
wait can i use imgur?
yes
i see
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Advanced-Scripts#storing-data
When this page mentions storing data to "a data file", where is that actual file? Is it the playerdata stored in the world folder, or elsewhere?
plugins\PlaceholderAPI\javascripts\javascript_data
:(
In javascript, how would I check if text a contains text b?
found it
nvm
is this correct
nvm it works now
that was a rollercoaster of emotions :)))
yeah we'll have to remove the command from there. No one bothered to remove it as there's no one maintaining the expansion. There is a more updated version of the skript expansion here but you still have to manually download it https://github.com/Altruiis/skript-expansion/releases/
I'm having some trouble parsing json data into custom placeholders.
My JavaScript file looks like this and does run fine on my local machine with Node.js but when I try to test the placeholder using /papi parse Bertel401 %javascript_custom_placeholder_param1_param2% I always get this error: <eval>:2:0 Invalid return statement
return json_data[args[0]][args[1]];
Can anyone give me some pointers what my issue might be here?
var json_data = require('./subfolder/data.json');
return json_data[args[0]][args[1]];
parameters are separated by comma @slim fern
So I should call %javascript_custom_placeholder,param1,param2% instead? That just returns my input syntax and is not being recognized as a placeholder
yes
any console error this time?
also, try to return something like "string" + json_data
Console just shows that I've executed the command but nothing else.
I only get console output when I connect the function name and the first parameter using underscores. The latter ones can be either _ or , but both give me the eval error
Just made the return statement a plain string without any variables and it still has issues evaluating
Just did that but it doesn't help. After a bit more testing I think the issue is bound the require() in some way. When I remove that line and have it return args[0] it does fine
yeah looks like it is not possible to use that
I'm not really sure what viable alternatives there are for reading files as most of the examples I could find so far are bound to some kind of <input> tag which doesn't really help me at all
Seems to be the same issue as was discussed here. Unfortunately there was no resolution either.
Hi! Anyone had a Problem where placeholder isn't able to register anything and you had to /papi register everything?
[20:58:21 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[20:58:21 INFO]: [PlaceholderAPI] Fetching available expansion information...
[20:58:39 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
after doing a papi reload
is that the only thing it says? the error should have a few more lines under
it says that my message could not be delivered when I try to paste the whole error
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
Seems like you might have the globalprefix expansion installed but not the plugin itself
possible solutions: delete that expansion or install the plugin
👍
Does anyone know how to make an item update placeholders, im trying to make the item display the placeholder for how many players online but how do you make the placeholder in the lore update?
DeluxeMenus?
ok
hmm? I'm asking if you mean in deluxemenus or in what plugin are you trying to update it?
oh
Just a gui plugin like command panels or deluxemenus work
i have both installed
well deluxemenus has an update option
you put update_interval: 1 at the top of the menu and update: true in your item
its up to the plugin itself to update placeholders not PlaceholderAPI
hey i am having problems with pinger
https://i.imgur.com/StkZtF6.jpg
so it works for some servers but it doesnt work for other servers
Hi guys! I'm not expirienced with minecraft servers and my placeholderAPI is not able to register anything when starting a server
https://paste.helpch.at/omevegipar.sql < This is error I've got. Anyone know how to fix that?
Hey, im running version 5.1.26 of luckperms and i cant get luckperms to register under the papi list with expansions
Assistance is appreciated!
That's really old version, current is 5.4.30, update to latest
We did that but it still gave the same issue
which was why i attempted with the older version.
Have you reloaded papi after downloading the expansion?
yes
Are there any papi errors when you start up your server?
Not that i'm aware.
Attempting to swap papi versions
I got it to register but my javascript is giving an error
var arg = args[0];
var amount = args[1];
var amountinteger = parseInt(amount);
var num = isNaN(service.value('%luckperms_meta_' + arg + '.meta%'))?0:parseInt(service.value('%luckperms_meta_' + arg + '.meta%'));
var num = isNaN(num)?0:parseInt(service.value('%luckperms_meta_' + arg + '.meta%'));
num += amountinteger;
return num.toFixed(0);
}
metachanger();```
what error? put it in a paste bin and send it here.
also you're declaring num twice.
we're getting the meta from luckperms and adding onto the value
so if your luckperm meta is 1
i can run this script and it adds onto that value
works on 1.12.2 sponge server
sponge? how did you even get PlaceholderAPI to work on sponge.
hmm. looking at this error I don't see anything mentioning the javascript expansion. Just HolographicExtension.
that's a completely different PlaceholderAPI.
yes
but its a js
same concept
Here is more of the Log
Instead of running the Js it sets it to script
1ntent1on is right. we don't really support those types of servers as they usually just break stuff but in this case the error is something else. Caused by: com.koushikdutta.quack.QuackException: ReferenceError: 'service' is not defined
you're using service in your javascript but you never defined it
service.value('%luckperms_
hmm
wdym by this, can you elaborate on what is the issue with the script im confused
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
you're using a variable called service but you never declared service
what is service supposed to be?
I have a problem with the Essentials placeholders.
Is there a way for me to replace the way the afk reason is displayed? I want to add "()" between the text without having it at all times.
I tried changing it in the TAB config but it didn't work...
I want to attach a picture for reference but I have no permission..
Anyone know what this error is about? https://pastebin.com/v3vmHbSC
Is it a conflict with another plugin or something that can be fixed?
Delete the quest expansion
how to activate PVP Stats? 1.8 is the server
https://dev.bukkit.org/projects/pvp-stats
@livid sun fairly sure its not supported with placeholderapi
its on the website
but its outdated
i need death kills kill streak and k/d
^^
hmm
%pvpstats_kills%
%pvpstats_deaths%
%pvpstats_killstreak%
%pvpstats_kdr%
thc
Hi, I had this error occur to me today.
https://pastebin.com/71s7SBrM
Issue is that my placeholders stopped working after restarting the server. I did not modify papi and not sure if any other plugin caused it to die
Is there maybe any add-on in placeholderapi that would return what version the player is playing on?
None of the placeholders work if you wanted me to parse a placeholder. I'm on 1.19
Viaversion has placeholders, if you use it
And if I don't have viaversion, will I be able to check the player's version?
Please respect the rules, be patient and don't ping staff members!
no you can't
unless you have other plugin that returns that
So um
i dowloaded a placeholder for my score board and then did the command then reloaded it and its not on my scorebaord
what placeholder
essentials
all of them? any one in particular?
for the money
what placeholder are you using
wym
What essentials placeholder are you trying to use in the scoreboard
Is it for baltop?
oh the one so it showes their balance
regular economy is via vault
%vault_eco_balance%
%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_balance_commas%
You have to add the placeholder to your scoreboard
how tho
what scoreboard plugin do you use
Scoreboard revision
check the configs for it
configs of my scoreboard or place holder
