#placeholder-api

1 messages · Page 199 of 1

stoic garnet
#

do you know how to set a team for this %team_prefix%

mint fable
#

it's vanilla teams

#

I think you'd need a custom plugin

tame willow
#

Are there any difference between %statistic_hours_played% and %statistic_time_played:hours%?

stoic garnet
mint fable
stoic garnet
#

so do i do %team_prefix_<team_name>%

tame willow
#

I couldn't understand

mint fable
tame willow
#

thanks

mint fable
stoic garnet
#

or is there no way

mint fable
#

I don't think there's a way

stoic garnet
#

sadge

mint fable
#

do you use the prefixes elsewhere?

stoic garnet
#

wdym

mint fable
#

idk, above names or something

#

i don't really know how teams work in vanilla

stoic garnet
#

i use the suffix as a timer

mint fable
#

could you store it to a custom objective instead?

stoic garnet
#

i could try

tame willow
# mint fable no difference

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

mint fable
#

i should think about using vanilla objectives to store data more often

tame willow
#

thanks

stoic garnet
#

@mint fable how do i make a timer with placeholder api

tender vaporBOT
stoic garnet
#

mb

edgy sapphire
tender vaporBOT
edgy sapphire
#

Oops, sorry

stoic garnet
#

can someone help me with this?

toxic nest
#

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

mint fable
#

stop_at_success: true

#

@toxic nest

stoic garnet
#

uhm

#

@mint fable are you makin' the script or nah

tender vaporBOT
stoic garnet
#

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

mint fable
#

You're asking for a very customized project to be done

#

It's not just basic plugin or placeholder help

mint fable
cosmic needle
#

cj is a busy lad

mint fable
#

I'm not going to lie, most of my javascript just comes from me googling "xyz javascript"

stoic garnet
#

sorry im just not really patient

mint fable
#

?help

tender vaporBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

stoic garnet
#

well does anyone know how to use the teams placeholder api

mint fable
#

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

stoic garnet
#

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

steep talon
#

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?

red prairie
#

how do i import placeholder api into my plugin via POM

mint fable
#

@stoic garnet looking at the scoreboardobjectives extension, it doesn't look like it's possible to do what you want

mint fable
#

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

stoic garnet
#

8

mint fable
#

always 8 or no

stoic garnet
#

always 8

mint fable
#

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

stoic garnet
stoic garnet
tender vaporBOT
thorn snow
#

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

stone edge
#

It definitely does, 2.9.2 works til 1.18 only. Maybe make a PR

fair haven
#
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?

paper oxide
#

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

thorn snow
#

No probs buddy

mint fable
#

@stoic garnet yo

stoic garnet
#

yo

mint fable
#

lot more complicated than originally thought

#

but what if you're 1st/2nd place

#

what do the other lines show

stoic garnet
#

lemme check 1 sec

mint fable
#
1. 1st place
2. One above you
3. You
4. One below you
stoic garnet
#

when your in first it shows the 3 teams behind u

mint fable
#

If first

1. 1st place
2. 2nd place
3. 3rd place
4. 4th place
stoic garnet
#

yea

mint fable
#

same thing for 2nd?

stoic garnet
#

yep

#

and its basically the same logic for 7th and 8th

mint fable
#

so uh

stoic garnet
#

if your 8th/7th
5. 5th place
6. 6th place
7. 7th place
8. 8th place

mint fable
#

wait

mint fable
#

you want it to show ALL teams?

#

I thought you wanted first place, one above you, you, one below you

stoic garnet
stoic garnet
#

thats if your 8th or 7th

mint fable
#

because you just did 5 6 7 8

stoic garnet
#

wait

mint fable
stoic garnet
#

oh wait

#

im so stupid LMFAO

mint fable
#

if you're 8th though, do you want to show 2 people above you instead of 1 above/below?

stoic garnet
#

yea

mint fable
#

okay well try the script I sent for now

#

name it scoreboard

stoic garnet
#

aight

mint fable
#

%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

stoic garnet
#

so do i change the original name of the script from example to scoreboard_name

mint fable
#

and it runs the engine every time it's called

stoic garnet
#

oh

mint fable
#

name and line are "methods"

mint fable
stoic garnet
#

alright

#

and the other script will be named?

mint fable
#

only 1 script

mint fable
stoic garnet
#

ill do that

#

idm aslong as it works

mint fable
#

okay try that, should be good

stoic garnet
#

i had to reset my server yesterday, what expansions do i download again?

mint fable
#

I think just javascript and teams for this

#

ooh

#

scoreboardobjectives

stoic garnet
#

this isnt working for some reason
/papi parse me %javascript_scoreboard%

mint fable
#

%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%
stoic garnet
#

that isnt working either

#

it just comes back with blank

wheat grail
#

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?

mint fable
mint fable
#

send your javascripts config

stoic garnet
#

it doesnt let me send a file

mint fable
#

?paste

tender vaporBOT
#
FAQ Answer:

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

mint fable
stoic garnet
#
# 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```
mint fable
#

that's the papi config

stoic garnet
#

oh

mint fable
#

I need the javascript.yml or whatever

stoic garnet
#
# 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
mint fable
#

it's still named example

stoic garnet
#

oh

#

im not stupid

#

trust

stoic garnet
mint fable
#

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%

#

🤷‍♂️

stoic garnet
#
# 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

mint fable
#

is your script saved as scoreboard.js?

stoic garnet
#

its named scoreboard so yea

mint fable
#

I'd also replace the example with scoreboard

#

then it'd be good

stoic garnet
#

now it says

#

script error

#

but it only does that when the 2nd to last line example is changed to scoreboard

mint fable
#

huh?

stoic garnet
#

but it still replies with blank

#

/papi parse me %javascript_scoreboard_lines,1% right??

mint fable
#

yes

#

theoretically

stoic garnet
#

well its just sending blank so idk what to do

mint fable
#

what if you do %javascript_scoreboard_name,1%

stoic garnet
#

same thing

mint fable
#

%objective_entryposhigh_{coins}_{1}%

stoic garnet
#

it replies with aqua

#

which is the highest

mint fable
#

what about that

#

idk what's up exactly so

stoic garnet
mint fable
#

?

stoic garnet
mint fable
#

test with %javascript_scoreboard_name,1% still fyi

stoic garnet
#

same thing

mint fable
#

give it a quick /papi reload

#

then try again

#

oh you prob do every time

stoic garnet
#

i do

#

lmao

mint fable
#

what about a restart

stoic garnet
#

alright 1 sec

mint fable
#

and also, send your javascripts.yml again

#

and a picture of your Placeholderapi/javascripts folder

#

?imgur

tender vaporBOT
#
FAQ Answer:

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.

stoic garnet
# mint fable and also, send your `javascripts.yml` again
# 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
stoic garnet
#

it says scoreboard.js tho

#

wait which line

mint fable
#

scoreboard.js is the file

mint fable
stoic garnet
#

when i do that it says Script error (check console)

mint fable
#

good

#

lol

#

I'd rather have an error than nothing

#

send the error

#

?paste

tender vaporBOT
#
FAQ Answer:

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

mint fable
#

?startuplog

tender vaporBOT
#
FAQ Answer:

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.

stoic garnet
mint fable
stoic garnet
#

same thing

mint fable
#

can you send the error again

#

shouldn't be the exact same

mint fable
#

ooh

stoic garnet
#

mb

#

it worked

mint fable
#

fully?

#

all 4 lines?

#

if so then it's just time to test when you're at every position 1-8 in the scoreboard

stoic garnet
#

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

#
  1. Orange Ocelots 8
mint fable
#

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

green osprey
#

(PAPI version: 2.11.2)

#

JS expansion:
2. Javascript clip Y 2.1.0

austere hawk
#

Hi, is this support for ServerTime PAPI expansion?

mint fable
austere hawk
#

um

#

I need to send images?

mint fable
#

?imgur

tender vaporBOT
#
FAQ Answer:

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.

austere hawk
#

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

austere hawk
mint fable
#

that's fine

mint fable
austere hawk
#

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

mint fable
#

so, you'll probably want a custom js placeholder on top of servertime

mint fable
#

but you need a SimpleDateFormat first

#

we'll get there

austere hawk
#

ok

mint fable
#

try putting %servertime_MM/dd/yyyy HH:mm%

austere hawk
#

ok

#

I'm starting my server

mint fable
#

No idea how discord works with the whole 7 minutes ago thingy FYI @austere hawk

mint fable
#

but as long as you know how you integrate that part into discord then we're good

#

7/6/2022 5:39 PM CST

austere hawk
mint fable
#

ah

austere hawk
#

<t:1657147146:R>

#

<t:1657147146:R>

#

like that

mint fable
austere hawk
mint fable
#

the number

austere hawk
#

yes

#

I want the server stop and start messages to look like this:

mint fable
#

no no, I'm asking

#

what is 1657147146 do you know

austere hawk
#

The server is online. Started <t:1657147146:R>
The server is offline. Stopped <t:1657147146:R>

austere hawk
#

I think like it tells Discord when the time was or smth

mint fable
#

you didn't make the converter?

austere hawk
#

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

austere hawk
mint fable
austere hawk
#

ok

mint fable
#

type /papi ecloud download server /papi reload

#

then send the config

#

ooh actually

#

sorry

#

I found localtime

#

download that and try this

austere hawk
#

Placeholders:
%localtime_time%
%localtime_time_<SimpleDateFormat>%
%localtime_timezone_<TimeZoneID>%
%localtime_timezone_<TimeZoneID>,<SimpleDateFormat>%

#

which placeholder do I put?

mint fable
#

fuck it

#

javascript it is

#

javascript makes things easy

tender vaporBOT
#
Javascript
Useful Links & Information:

An expansion that allows you to use javascript for processing
Wiki
Community Scripts
GitHub
eCloud

austere hawk
#

lol

mint fable
austere hawk
#

do I delete the other expains?

mint fable
#

I'll send you it soon

mint fable
#

<t:1657147711175:f>

austere hawk
#

lol

#

<t:1657147711175:R>

green osprey
mint fable
#

lmao

austere hawk
#

ok I reloaded and added JS

austere hawk
#

in the expansion config?

mint fable
#

read the page

#

it'll tell you where it all goes

trim stratus
#

Why I everytime must reload papi, if I restart server?

green osprey
#

contains everything what u need

austere hawk
austere hawk
austere hawk
mint fable
#

y

austere hawk
mint fable
austere hawk
#

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

mint fable
#

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

austere hawk
#

yeah I did

mint fable
#
unixtime:
  file: unixtime.js```
austere hawk
#

ok

#

still returns blank

mint fable
#

and save this as unixtime.js

(Date.now()/1000).toFixed(0)+""
austere hawk
#

/
home
/
container
/
plugins
/
PlaceholderAPI
/
javascripts
/
unixtime.js

#

in that file?

mint fable
#

yes

austere hawk
#

ok

#

/papi parse me %unixtime%

mint fable
#

/papi parse me %javascript_unixtime%

austere hawk
#

It responded with 1657149515

mint fable
#

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

#

🤷‍♂️

austere hawk
#

ok

#

let me see if it works

mint fable
#

<t:1657149515:f>

austere hawk
#

<t:"+(Date.now()/1000).toFixed(0)+":f>

mint fable
#

?codeblocks

tender vaporBOT
#
FAQ Answer:

Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```

For example:
```yaml
test:

  • “hi”
  • “there”
    ```

Produces:

test:
- “hi”
- “there”```
mint fable
#

or if you surround with `` it escape formatting too _like_this

austere hawk
#
DiscordChatChannelServerShutdownMessage: "The server is now **offline**. Stopped <t:"+(Date.now()/1000).toFixed(0)+":f>"
``` like this?
mint fable
#

that's your script

austere hawk
#

ohhhh lmfao

mint fable
#

I was saying you can either add the <t::f> to the script

#

or to the discordsrv config

austere hawk
#

oh ok lol

#

<t:%javascript_unixtime%:f>

mint fable
#

ye

austere hawk
#

thats wierd

mint fable
#

Did you put the right placeholder

#

Do you know which player it parses placeholders for?

austere hawk
#

wdym?

mint fable
#

in papi, placeholders get parsed for a specific player

mint fable
#

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 this

austere hawk
#

ok ty

#

same thing :(

mint fable
#

can you elaborate

steep talon
#

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?

errant iron
#

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

rapid trail
#

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

Image Untitled hosted in ImgBB

Image 2022-07-06-22-15-25 hosted in ImgBB

errant iron
#

that is how it is calculated in the expansion

#

there is probably some room for improvement lmao

austere hawk
tender vaporBOT
mint fable
#

when you type /papi parse --null %javascript_unixtime%

steep talon
#

Thankyou Star!

mint fable
simple nova
#

cj

#

do u have a javascript code that make placeholder to change smoothly rgb colors

thorny yoke
#

um, I'm still stuck with this, could anyone help or make a change?

willow pewter
#

it's the same as this error ^^
and i've re-installed my expansions already

balmy marten
willow pewter
balmy marten
#

So yeah, slowly add back expansions till it fails

willow pewter
#

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

rapid trail
#

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.

cedar narwhal
#

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

balmy marten
earnest sky
#

something weird going on w/ papi on 1.18

#

tried updating and all placeholders just broke

warm topaz
cedar narwhal
#

Ok

stone edge
earnest sky
stone edge
#

if you mean expansions, ofc

earnest sky
#

Nvm apparently it works now yeah it was all expansions

stone edge
#

you are updating to a totally brand new version

earnest sky
#

There was one expansion that was bugging so we deleted it and reloaded all expansions

stone edge
earnest sky
#

never had that issue before, thanks for the help 🙂

stone edge
pseudo pagoda
#

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%

junior musk
#

?player

tender vaporBOT
#
FAQ Answer:

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

rapid trail
tender vaporBOT
wheat grail
#

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?

stone edge
#
  1. Error on start
  2. You dont have vault
  3. You dont have the vault expansion
  4. You dont have an economy plugin with vault support
  5. Your scoreboard doesnt work
wheat grail
#
  1. No errors on startup
  2. I have the latest version of vaults (compiled)
  3. Expansion installed, reloaded both the plugin and server
  4. Using essentials latest version
  5. Using featherboard
pulsar cipher
stone edge
#

featherboards support placeholdderapi?

wheat grail
stone edge
#

I mean, thats not PlaceholderAPI

stone edge
wheat grail
stone edge
hybrid horizon
#

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

short shoal
hybrid horizon
rugged widget
#

some of the colors of my placeholders dont work

#

on scoreboard

hybrid horizon
stone edge
#

you downgraded? if so, all should be as before

rugged widget
#

yea i downgraded

#

works fine

stone edge
#

but?
Edit: I guess there wasnt a "but" at all, good!

heavy zealot
#

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

stone edge
#

PlaceholderAPI doesnt support forge/sponge afaik

zenith moth
#

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

tender vaporBOT
#
FAQ Answer:

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.

zenith moth
pulsar cipher
#

/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?

tender vaporBOT
heavy zealot
#

and it's working perfectly for me, it's just that option that I can't get to work

stone edge
#

you mean you are using PlaceholderAPI from spigotmc

zenith moth
#

Any help regarding my question? Would like it solved asap

stone edge
#

update Towney

#

or maybe ask in Towney support

zenith moth
#

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

stone edge
#

issue is the expansion

zenith moth
#

well where does papi get the expansion from?

stone edge
#

from ecloud, which is uploaded by the dev who made the expansion

zenith moth
#

I'll ask him then

stone edge
#

in this case, seems to be Clip

zenith moth
#

because it confused me since latest townychat version is 0.96 but papi said 1.2

stone edge
#

mmmm i dont get the actual issue here

#

are you using TownyChat plugin?

zenith moth
#

nope

stone edge
#

then why you downloaded it?

zenith moth
#

because I need its placeholders

stone edge
#

thats for the plugin

#

TownyChat

#

you use that plugin

#

?

zenith moth
#

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

tender vaporBOT
#
FAQ Answer:

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.

zenith moth
#

Yes that worked Alonso, thanks. Guess it was just me being dumb :p

stone edge
pulsar cipher
heavy zealot
#

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 ?

austere hawk
tender vaporBOT
austere hawk
#

which is blank

#

it send a blank responce

outer viper
tender vaporBOT
# outer viper https://paste.helpch.at/obahayefix.md
Possible Solution Found:

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.

outer viper
#

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

mint fable
#

it was working fine before

#

oh I remember what I was testing

#

now type /papi parse <your name> %javascript_unixtime%

gleaming trench
#

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

stone edge
#

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

opal eagle
#

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

stone edge
#

Maybe share console log so a PlaceholderAPI dev can see if its something related

austere hawk
#

anyone know how to make a scoreboard show combatlogx whenever in combat?

rustic carbon
#

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

radiant plaza
#

@rustic carbon try this :

  1. Update your placeholder api plugin.
  2. Delete and reinstall all expansions.
rustic carbon
#

im already using the latest placeholderapi

radiant plaza
rustic carbon
#

[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

radiant plaza
#

yeah

crystal mauve
vivid sparrow
#

You can 1. use the math expansion, or 2. add the sum inside a (sum here).toFixed(0)

turbid tide
#

@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?

tender vaporBOT
crystal mauve
crystal mauve
crystal mauve
tender vaporBOT
turbid tide
#

use the first option with the fix that gaby recommended

crystal mauve
turbid tide
#

return sum.toFixed(0);

crystal mauve
#

it shows 0

#

but doesnt get the players :(

#

something's wrong

#

it shows with %bungee_total% 0 too

flat pulsar
#

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

upbeat bridge
#

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 + "%");

turbid tide
#

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.

upbeat bridge
#

ohh, now I understand, well, thanks

#

and the var I was meaning is "parsed", since it has the var keyword in front of it

pseudo pagoda
#

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..

tender vaporBOT
#
FAQ Answer:

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

pseudo pagoda
topaz dust
#

why do my placeholders sometimes not work after a reset i have to reload the plugin to make it work

outer viper
#

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

sudden pumice
stone edge
#

Maybe full console log could help

sudden pumice
sharp forge
#

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

tender vaporBOT
# austere hawk ok
Hey!

Please respect the rules, be patient and don't ping staff members!

austere hawk
mint fable
#

Bruh

austere hawk
#

thats what it responds with

mint fable
#

How did I just check this and you happen to send it an hour and a half later

austere hawk
#

IDK

#

I just remembered lmfao

mint fable
#

Js expansion might need an update

austere hawk
#

and then you remembeed lol

austere hawk
mint fable
#

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

austere hawk
#

lol

#

oh ok

mint fable
#

Sadly it’s not seeming to parse placeholders for a non player (—null)

austere hawk
#

oh

#

thats not good

austere hawk
limber ice
#

is papi going to premium some day?

balmy marten
#

no

austere hawk
#

good

trim mist
#

Pay by expansion

mint fable
clear comet
#

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

clear comet
#

My apologies, it seems I have found the solution

craggy rune
#

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.

limber ice
#

@craggy rune I know expansions that are not up to date can cause this

sharp pagoda
#

%formatter_num_round_{player_health}%
It should work right?

#

Cuz player_healt returns float

neat furnace
#

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

vivid sparrow
#

try to use the format that's accepted by your plugin (chat, tab, scoreboard, whatever)

neat furnace
#

Its the same format

mint fable
#

papi parse does not color your text (papi in general)

#

so test it where you're going to use it

austere hawk
tender vaporBOT
# austere hawk ok
Hey!

Please respect the rules, be patient and don't ping staff members!

austere hawk
#

[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?

austere hawk
#

ah ok

#

ty

#

Could not load plugins\EssentialsXSpawn.jar in plugins folder because plugin is invalid

#

i got this error now

lyric pine
#

Hello, why do I reset all placeholders when I install the Math placeholder?, and only when I delete this placeholder do all placeholders work.

turbid tide
#

Most likely you're on java 10 or lower

lyric pine
turbid tide
#

11 or higher

lyric pine
#

Yes... I have Java 8, what should I do now?

turbid tide
#

or don't use the math expansion

lyric pine
turbid tide
tender vaporBOT
#
FAQ Answer:

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.

turbid tide
# lyric pine So many plugins break...

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

lyric pine
turbid tide
#

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

mint fable
#

/papi ecloud download math <version>

lyric pine
#

Thanks

turbid tide
#

you're using Mohist. It probably has something to do with that.

lyric pine
#

In short, I've installed it, but here it writes (1.000) what are these dots at the end for?

mint fable
#

what version

lyric pine
#

1.2.4

#

Or the PlaceHolderApi plugin version?

mint fable
#

apparently 1.2.6 should work

turbid tide
#

yeah he just has the precision digits

mint fable
#

I didn't even look at the second page of versions and their release notes

#

smh

turbid tide
#

add [precision:0] in your placeholder @lyric pine

lyric pine
mint fable
#

I think that should still be %math_0:_%

turbid tide
#

no cj

#

bcz old version

mint fable
#

1.2.0 he changed it

#

he has 1.2.4

turbid tide
#

oh. alr. can you show him then please

#

bye

mint fable
#

(or 1.2.6)

#

lmao

mint fable
#

like that

#

not [precision:0] that was OLDER older versions

lyric pine
austere hawk
#

[Essentials] Permissions lag notice with (LuckPermsHandler).

#

what is this?

zealous ledge
#

if my identifier is "axosg" and my identifier in onPlaceholderRequest is "kills" what would my placeholder be

mint fable
#

%axosg_kills%

mint fable
zealous ledge
#

Doesn't seem to work, I'm testing it with HolographicDisplays

zealous ledge
mint fable
#

ye

zealous ledge
#

When I do /papi list it shows up

mint fable
#

holographic displays beta 3 has a weird format {papi: placeholder}

#

Decent Holograms does not

tender vaporBOT
mint fable
#

(and you can import from HolographicDisplays)

mint fable
zealous ledge
lyric pine
#

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?

mint fable
#

with changeoutput you should be able to manage that @lyric pine

warm topaz
#

o that needs updating on github

mint fable
#

did u break everybody's configs kaliber

lyric pine
#

Can you post an example of how it should look like? I just didn't understand

mint fable
#

%changeoutput_equals_input:{clan_name}_matcher:_ifmatch:_else:{clan_name}%

warm topaz
mint fable
#

if they have the old syntax, no worko?

warm topaz
#

oh right

#

yeah

mint fable
#

hmmk

#

good to know

warm topaz
mint fable
#

change syntax or revert to 1.1 and lose some placeholder support

mint fable
#

always problems

warm topaz
#

yup sadge

mint fable
#

big

gaunt swallow
#

Hey is there a way to store placeholders in a database across servers?

lyric pine
#

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

stone edge
#

why input?

#

shouldnt it simply be the placeholder?

lyric pine
#

Should, but how?

stone edge
#

have you checked the wiki?

lyric pine
#

no..

#

There is a lot of text, it is not clear which section

warm topaz
#

what does {skinsrestorer_getSkinName} return if there is no skin

warm topaz
lyric pine
warm topaz
#

yes, and so what does that placeholder on its own return if there is no skin

lyric pine
#

Well, he writes None, how can I change it?

warm topaz
#

%changeoutput_equals_input:{skinsrestorer_getSkinName}_matcher:None_ifmatch:{player_name}_else:{skinsrestorer_getSkinName}%

mint fable
#

tbh I like the new format it kind of explains it a bit

stone edge
#

honestly, old one wasnt that hard to understand, lets be honest

zenith stratus
#

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 😐

peak jay
#

Can someone tell me how to register a new placeholder?

stone edge
#

register placeholder as developer?

#

You can read PAPI wiki

mint fable
#

most factions now-a-days has the papi expansion built-in

gleaming trench
small bough
#

anyone know the placeholders for balance top, im using holographic displays to show them on a leaderboard

digital nova
vivid sparrow
#

Placeholderapi config

slow umbra
#

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

sudden pumice
lyric pine
#

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)"

upper anchor
#

Please tell me how to give the night vision effect in the javascript extension

austere hawk
#

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

mint fable
#

also I recommend adding the material to the checkitem placeholder as well in case you have other items with a cmd of 11

austere hawk
mint fable
#

wait i'm confused

#

I don't know what you're trying to check for, a music disc?

austere hawk
#

do you speak french ?

mint fable
#

No

austere hawk
#

ok i try to explain in english

mint fable
#

👍

#

I don't have time to help at the moment, but hopefully somebody can help you soon

digital nova
tender vaporBOT
digital nova
#

A

turbid tide
austere hawk
turbid tide
austere hawk
#

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

turbid tide
turbid tide
#

try this one

austere hawk
#

...

#

thank you

#

it work

turbid tide
#

👍

night cloud
#

why my placeholders arent shows up?

#

it doesnt show any errors in the console

magic rock
#

what hologram plugin do you use?

night cloud
#

already

night cloud
#

Version: 1.18.2

magic rock
#

read changelog

magic rock
# night cloud Version: 1.18.2

and when you specify plugin version specify plugin version not version what the plugin supports (v3.0.0-SNAPSHOT (beta 3) in this case)

night cloud
#

HolographicDisplays-3.0.0-SNAPSHOT

#

I took from the jenkins not the bukkit

sharp forge
#

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.

wary viper
#

can anyone help when I try and do Papi parse me %essentials_baltop_balancefixed<rank>% it just says invalid id

frosty burrow
idle gust
#

how do I enable baltop

#

here it says baltop is disabled by default

upper anchor
#

Hi, asking again if anyone knows how to please do the night vision effect in the javascript expansion

limber ice
#

@upper anchornot sure what info your looking for?

#

gives potion minecraft:give %player_name% potion{Potion:"minecraft:long_night_vision"} 1'

vivid sparrow
#

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

upper anchor
#

thanks!

thorny yoke
tender vaporBOT
thorny yoke
#

I have been waiting for 2 weeks!

trim mist
thorny yoke
#

alright, I'll do it thanks!

dusk kayak
#

Can I somehow find out if the "placeholder requester" is CONSOLE in onPlaceholderRequest?

junior musk
#

check if the player is null

dusk kayak
#

Tried, somehow it's not null if it's console

junior musk
#

wut

#

what does it return then?

#

and what's the command you executed in the console?

turbid tide
#

the requester can be an online player Player, an offline player OfflinePlayer or anything else

#

aka null

plush dove
#

Using javascript, is there a way to get the smelted version of an item?

#

like getSmelted

austere hawk
#

Why doesn't /papi ecloud download Skript work for me? It says it doesn't exist.

mint fable
#

There is no official skript expansion, there are multiple unofficial ones though

austere hawk
#

oh wait

#

it doesnt let me

#

wait can i use imgur?

mint fable
#

yes

austere hawk
mint fable
#

i see

frank glacier
mint fable
#

plugins\PlaceholderAPI\javascripts\javascript_data

plush dove
plush dove
#

In javascript, how would I check if text a contains text b?

#

found it

#

nvm

#

is this correct

#

nvm it works now

turbid tide
#

that was a rollercoaster of emotions :)))

turbid tide
slim fern
#

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]];
vivid sparrow
#

parameters are separated by comma @slim fern

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

vivid sparrow
#

yes

#

any console error this time?

#

also, try to return something like "string" + json_data

slim fern
#

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

vivid sparrow
#

try to put it inside a function

#
function something() {
// code
}

something();```
slim fern
#

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

vivid sparrow
#

yeah looks like it is not possible to use that

slim fern
#

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.

digital raft
#

Hi! Anyone had a Problem where placeholder isn't able to register anything and you had to /papi register everything?

austere hawk
#

[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

turbid tide
austere hawk
tender vaporBOT
#
FAQ Answer:

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

turbid tide
#

possible solutions: delete that expansion or install the plugin

austere hawk
#

I will try deleting it

#

alr it fixed it

#

thx

turbid tide
#

👍

austere hawk
#

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?

austere hawk
#

ok

turbid tide
# austere hawk ok

hmm? I'm asking if you mean in deluxemenus or in what plugin are you trying to update it?

austere hawk
#

oh

#

Just a gui plugin like command panels or deluxemenus work

#

i have both installed

turbid tide
#

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

austere hawk
#

ok

#

oh

#

ok

mortal coral
#

so it works for some servers but it doesnt work for other servers

pine garden
#

I'm having an issue running /papi reload

digital raft
#

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?

runic tapir
#

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!

short shoal
runic tapir
#

We did that but it still gave the same issue

#

which was why i attempted with the older version.

short shoal
#

Have you reloaded papi after downloading the expansion?

runic tapir
#

yes

short shoal
#

Are there any papi errors when you start up your server?

runic tapir
#

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();```
turbid tide
#

also you're declaring num twice.

runic tapir
#

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

turbid tide
#

sponge? how did you even get PlaceholderAPI to work on sponge.

runic tapir
#

spongeforge mb

#

placeholderapi in mods folder

turbid tide
#

hmm. looking at this error I don't see anything mentioning the javascript expansion. Just HolographicExtension.

runic tapir
turbid tide
#

that's a completely different PlaceholderAPI.

runic tapir
#

yes

#

but its a js

#

same concept

#

Here is more of the Log

#

Instead of running the Js it sets it to script

short shoal
#

Hybrid servers aren't really supported

#

It's most likely the reason of your issues

turbid tide
#

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_

runic tapir
#

hmm

runic tapir
tender vaporBOT
tender vaporBOT
turbid tide
#

you're using a variable called service but you never declared service

#

what is service supposed to be?

crude crater
#

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..

pine garden
#

Is it a conflict with another plugin or something that can be fixed?

turbid tide
livid sun
sharp jay
#

@livid sun fairly sure its not supported with placeholderapi

livid sun
#

its on the website

sharp jay
#

but its outdated

livid sun
#

ow

#

how to fix

sharp jay
#

devs need to update the plugin

#

?papi stats

wet basinBOT
#

@sharp jay Unknown expansion.

#

@sharp jay Unknown expansion.

sharp jay
#

hmm

#

statistic has %statistic_player_kills%

#

which shows that players kills

livid sun
#

i need death kills kill streak and k/d

livid sun
sharp jay
#

hmm

#

%pvpstats_kills%
%pvpstats_deaths%
%pvpstats_killstreak%
%pvpstats_kdr%

livid sun
#

thc

sleek timber
#

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

gilded prawn
#

Is there maybe any add-on in placeholderapi that would return what version the player is playing on?

sleek timber
#

None of the placeholders work if you wanted me to parse a placeholder. I'm on 1.19

vivid sparrow
gilded prawn
tender vaporBOT
stone edge
#

unless you have other plugin that returns that

split tiger
#

So um

#

i dowloaded a placeholder for my score board and then did the command then reloaded it and its not on my scorebaord

mint fable
#

what placeholder

split tiger
#

essentials

mint fable
#

all of them? any one in particular?

split tiger
#

for the money

mint fable
#

what placeholder are you using

split tiger
#

wym

mint fable
#

What essentials placeholder are you trying to use in the scoreboard

#

Is it for baltop?

split tiger
#

oh the one so it showes their balance

mint fable
#

regular economy is via vault

#
%vault_eco_balance%
%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_balance_commas%
mint fable
split tiger
mint fable
#

what scoreboard plugin do you use

split tiger
#

Scoreboard revision

mint fable
#

check the configs for it

split tiger
#

configs of my scoreboard or place holder

mint fable
#

of your scoreboard...

#

you need to edit your scoreboard

#

and add the placeholder where you want it