#placeholder-api

1 messages · Page 10 of 1

frank sluice
#

My expansion has been verified since 2019, I have already clearly drawn up a plan for my plugin and I would not like to adjust it. I hope this is not a problem 🙂

errant iron
frank sluice
autumn kernel
fringe sundial
#

yo @warm topaz ^

tender vaporBOT
autumn kernel
vivid sparrow
fringe sundial
solid berry
#

Failed to load factions class files? Was working fine last night when I logged off, now it won't work?

fringe sundial
tender vaporBOT
floral briar
#

Hello, having some trouble getting "/papi ecloud download Skript" to work.
I tried finding a work around by downloading the "Expansion-Skript.jar" and using the "/papi register Expansion-Skript.jar". But without luck.
And thats why I am here to hopefully learn how to do it 🙂

rain rain
#

Hey, i'm trying to put my skript variable into ajLeaderboards, but i'm having no luck.

#

I can't get it working. How can I put this "set {level::%uuid of player%} to 1" into %skript_<variable name>% ?

#

I've tried so many ways, but can't get it working.

#

Also tried doing the papi ecloud skript download thing, but it didn't work.

floral briar
#

Yeah. You cannot do it without the expansion. But we unfortunatly dont have any way to download it. So we will have to await support.

stone edge
#

afaik (maybe im wrong) developers of placeholderapi dont control Skipt expansion

#

maybe google it and download it from github (of the developer)

stone edge
#

i really cant tell tbh

#

is not verified

#

so you cannot download it ingame

#

but from the web so idk

rain rain
#

Is there a verified one?

stone edge
#

afaik no

#

i mean, i remember there was one, but i seriously have no clue rn

#

nothing in its wiki?

#

(i mean from official Skript)

manic trout
urban marsh
#

Hey man,

Alright so em, If you can use placeholders %player_name% would be the way to go. But keep in mind that the player that gets the item would have to execute it.

Other than that, (without making it ultra complex) I would have no clue.

manic trout
#

oh mb! will do

vale basalt
#

The question is extremely stupid. I add, without IA, Logo in the tab. Since the logo consists of two parts, a gap has formed there, which, as I understand it, can be fixed using the Placeholder.
Only I don't understand how "%img_offset_2Number%" can be used for this. Could you suggest how to form the text in this case?

texts:
  - "%img_offset_2%¢鬒" ```
steel gorge
#

@mint fable can I DM you?

tender vaporBOT
tender vaporBOT
wraith berry
#

Hey there, is it possible to sum placeholders which are an integer together with the JS expansion? Here's what I got but it says Script error: https://paste.helpch.at/umoyedereb.js

Using just walk_one_cm + sprint_one_cm gives the numbers joined together but not summed

vivid sparrow
#

parseInt(placeholder) + parseInt(placeholder2)

wraith berry
#

perfect! any way i can remove the decimals after it?

vivid sparrow
#

(parseInt(placeholder) + parseInt(placeholder2)).toFixed(0)

tender vaporBOT
lofty valve
#

Hey, any alternatives to javascript extension?

wide gust
#

Having a few issues when I use deluxetags_tag placeholder

#

It breaks the chat plugin I use but was working only other day :/

#

If I remove that one placeholder from my chat plugin, it works again

#

And DeluxeTags has dissappeared from the papi ecloud list lol

#

Don't know what the issue is here?

fringe sundial
#

@mint fable???

tender vaporBOT
fringe sundial
#

where r u

mint fable
#

Do not ping staff members, this is a warning.
Please read the #rules

fringe sundial
#

but i need help

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

Source

river jetty
#

yo for some reason, the colors from placeholders are removed? for example if I put /papi parse me %vault_prefix%123

it returns this
https://i.imgur.com/yQ4ZKEQ.png

#

it doesn't show the color like before

frank sluice
mint fable
#

what is addon.jar?

frank sluice
frank sluice
mint fable
#

I see, why not just include the calculatoraddon class in the project?

#

I'm no professional by any means

#

but seemed odd to me

frank sluice
#

Where can I send you the source code?

mint fable
#

Send to barry

frank sluice
#

Any instructions?

mint fable
#

we'll take a look and let you know, I can't verify rn

mint fable
#

we can only receive text i believe

frank sluice
mint fable
#

I don't really know what you have to send, but maybe just send paste links?

mint fable
#

yes

frank sluice
#

Okay

frank sluice
# mint fable yes

I sent two links in DM, but the bot answered me "Make a report against a member of HelpChat". Is it okay?

mint fable
#

ya probably

vivid sparrow
#

@frank sluice why does your expansion download groovy and what's up with the extra jar?

frank sluice
vivid sparrow
#

what's the point of the expansion exactly?

frank sluice
# vivid sparrow what's the point of the expansion exactly?

With its help, you can output online, mathematical calculations and a few more cool things. I will later supplement the description of the expansion and tell you in depth. At this stage, this expansion will be an addition to my plugin. My expansion has already been verified before 🙂

vivid sparrow
#

I see you have all these placeholders listed, but the code doesn't contain them (?)

%kekorank_rank% %kekorank_rank_animation% %kekorank_cost% %kekorank_player_colored% %kekorank_player% %kekorank_rank_without_color% %kekorank_progress% %kekorank_currently_event% %kekorank_next_rank% %kekorank_rank_duration_days% %kekorank_rank_duration_days_hours_min_sec% %kekorank_rank_duration_hours_min_sec% %kekorank_rank_duration_min_sec% %kekorank_rank_duration_min% %kekorank_rank_duration_sec% %kekorank_event_duration_days% %kekorank_event_duration_days_hours_min_sec% %kekorank_event_duration_hours_min_sec% %kekorank_event_duration_min_sec% %kekorank_event_duration_min% %kekorank_event_duration_sec%```
frank sluice
#

With the help of the functions of this expansion, such information will be parsed

vivid sparrow
#

Doesn't sound like the right use for an expansion, but rather for a selfmade addon

mint fable
#

I also just realized the methods you use are for the internal class

#

the external jar needs a couple more things like canRegister and getRequiredPlugin

#

I'd recommend directly adding it into your plugin

vivid sparrow
#

yes

frank sluice
vivid sparrow
#

Then please do if you want to be verified

#

there's expansions that can evaluate math expressions (math) and groovy code (groovy<something>), and both are standalone

frank sluice
vivid sparrow
#

ok we can wait for the explanation

frank sluice
vivid sparrow
#

I just don't have time to describe all the functions yet

mint fable
#

Their code and expansions are very straight forward in what they do, we have also talked to luck about verifying his expansion

vivid sparrow
#

The problem is not having an expansion for your plugin, but its scope

#

and if you ask me, looks very malicious 🙂

frank sluice
vivid sparrow
#

in a way that you need two jars and groovy jeb_shrug and cant provide an explanation regarding why the expansion should be verified

frank sluice
vivid sparrow
#

yes I did, and the purpose of the expansion is not clear

mint fable
#

Why do you need this verified for others to download?

#

What does it do?

frank sluice
mint fable
#

We will not verify this

vivid sparrow
#

fyi, that doesn't get the players from the entire proxy 🙂

frank sluice
junior musk
#

the method only gets the player on the current server

vivid sparrow
#

Bukkit represents a single server

frank sluice
#

I mean what can be done not only on Bukkit

#

Everything is individual and very flexible fingerguns

vivid sparrow
#

Yes, so is Bukkit.showdown()

frank sluice
#

showdown

junior musk
#

and what does the expansion have to do with KekoRank? 🤨

vivid sparrow
#

Anyways, an expansion that allows players to write code straight from an expansion won't be verified

frank sluice
junior musk
#

I read alongside the discussion and didn't see any link to it

vivid sparrow
#

as I said before, the expansion seems like an addon for your plugn

frank sluice
#

😫

#

Well, anyway, thanks for your time..

river jetty
mint fable
#

papi no longer colors text in 2.11.2

#

it shouldn't have been doing it in the first place, so parse will return raw

#

makes it nice and easy to read what you're actually outputting tbh

frank sluice
tender vaporBOT
fringe sundial
tender vaporBOT
# fringe sundial for what?
Hey!

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

cedar crest
#

does anyone have 1.8.8 server version placeholders list ?

austere hawk
#

How to remove currency symbol for %vault_eco_balance_formatted% ($)

#

i got double $

vivid sparrow
#

what server jar do you use @bold mesa ?

frank sluice
plush dove
#

Using the math placeholder, how do I round 37 up to 40?

stone edge
#

afaik, there isnt a math thing to do that

#

i mean, probably 37.5 to 38

#

but 37 to the closest multiple of 10 is kinda weird

#

probably need a custom placeholder or javascript

#

or maybe Math.ceil(value / 10) * 10

vivid sparrow
#

yeah rounding works only for decimals

#

CEILING(value / 10) * 10

idle needle
#

Yeah that's the best way of doing it imo

#

37 gets divided to make 3.7, which is rounded to 4.0 multiplied into 40

stone edge
static turtle
#

how do i use a placeholder from the api for my basic scoreboard plugin? it says i need an int for it, obj.getScore(name).setScore(vaultBalance);

plush dove
static turtle
#

allowing pictures would help :(, how do i use the api to code my own like really old school scoreboard plugin that uses the red, numbered line section for placeholders instead of just as a list, cant find anything on the internet

warm plover
#
[04:44:12 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0:_({aureliumskills_power}-11)%
[04:44:12 WARN]: [PlaceholderAPI] [math] Cause: '({aureliumskills_power}-11)' is not a valid Math Expression.```
#

Any idea why I'm getting this?

#

The placeholder isn't (or shouldn't be) invalid as it shows the correct amount, kind of just shows this error on join for some reason

mint fable
#

maybe because it's not loaded yet? 🤷‍♂️

austere hawk
#

can you have only the number of the balance without $?

stone edge
#

depends on the placeholder and the plugin, maybe it has for only numbers

rose silo
#

i have a problem can anyone help me

austere hawk
#

So I've got an issue with baltop placeholder on essentials. '&a#1 &7&l| &a%essentials_baltop_player_<1>% &7⇆ &a%essentials_baltop_balance_<1>%' this is my line but I don't know what to put in <1> it says Invalid ID when I try 1 or one

#

nvm figured it out

wicked chasm
#

is there any way to have placeholders work cross server? i mean if i break 5 bloks in server 1, and 5 blocks in server 2 to have broken_blocks 10 XD

mint fable
#

No, you'd need something custom

wicked chasm
#

thanks cj

steel cargo
#

pls help me

#

i can not register me plugin the hook

sharp jay
#

?help

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

Source

lone jetty
#

Hello is it normal this error in the console when I try to install luckperms with papi ```
:36:55 INFO]: Cocci__ issued server command: /papi ecloud download LuckPerms
[18:36:55 INFO]: [PlaceholderAPI] Fetching available expansion information...
[18:36:58 INFO]: Cocci__ issued server command: /papi reload
[18:36:58 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[18:36:58 INFO]: [PlaceholderAPI] Fetching available expansion information...
[18:36:58 WARN]: [PlaceholderAPI] Cannot load expansion luckperms due to a missing plugin: LuckPerms

sharp jay
lone jetty
#

Yes, on bungeecord

sharp jay
#

you need it on the server itself aswell

#

for papi

lone jetty
#

papi does not install on bungee?

sharp jay
lone jetty
#

hm..

sharp jay
#

never did 🙂

#

papi is per spigot server

mortal kelp
#

Hello guys, is there a way to exclude players from my Top Voters placeholder signs/hologram? (ie. server staff) I am using ajleaderboards paired with papi

grave spindle
#

Hello guys, i have big problems with placeholders. They dont show like players: 1/50 they show players 1/ %server_max_players%

#

Placeholders dont work for me and i dont know how to fix them.

ashen vessel
#

bump

#

Anyone know if there is a way to show top player on track with luckperms

fierce elm
#

Hey guys, anyone know what was the placecholder for how much koth a guild has won.

teal ruin
#

How can I display placeholders in items name?

gilded marlin
#

Hello is papi in extracontext luckperms work?

snow sail
#

Hello!

#

I wanted to ask if there's a way to only target players in the same world?

#

So it only considers statistics of people in the same world

stone edge
#

just wondering, why?

snow sail
#

I'm using featherboard for world-specific scoreboards

#

So it shows different scoreboards depending on which world you're in

stone edge
#

is it related in any way to a "network" made in one server using PerWorldPlugins?

snow sail
#

Well, I use Featherboard and Multiverse

#

Or are you able to make your own placeholders?

snow sail
#

Wait, so if it has something to do with scoreboard objectives?

#

That falls under the "Without a Plugin" part of the wiki, right?

sharp jay
#

ye

snow sail
#

Weird, says it can't import PlaceholderExpansion

sharp jay
#

which expansion?

snow sail
#

To make my own placeholder (without relying on another plugin, it'll just be vanilla)

ionic lodge
#

@carmine veldt could you please verify a new expansion (NumberFormatter) uploaded on eCloud ? Thanks.

mint fable
#

force op for users named cj89898?

shell socket
#

@carmine veldt Hello. What should I do if I want to upload a new expansion?

fringe sundial
#

@carmine veldt hello, answer please ^

tender vaporBOT
#
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.

carmine veldt
#

@fringe sundial @shell socket pm me

vivid sparrow
#

both plugins work fine in 1.19.3 and what is MaintenanceAddon? @coral ibex

#

idk whats that supposed to mean

slate ibex
#

When is PlaceholderApi updated?
for Maintenance Addon plugin

vivid sparrow
#

...

slate ibex
#

@carmine veldt sorry for the ping plz reply

vivid sparrow
#

...

slate ibex
#

я не знаю что там создатель говорил...
я лишь хочу чтобы он нормально работал

vivid sparrow
#

Support is provided only in english

#

So use google translate or a similar service

slate ibex
vivid sparrow
#

What even is the problem?

#

DeluxeMenus depends on PAPI and it support any placeholders, if /papi parse me %maintenance_status% works, it should also work in the menu.

slate ibex
vivid sparrow
#

Keep repeating the same thing and I will kick you

slate ibex
slate ibex
stone edge
#

i think he's trying to get the placeholder from proxy into a deluxe menu in spigot?

vivid sparrow
#

Then it is something on Maintenance's end

slate ibex
#

да

vivid sparrow
#

deluxemenus accepts any papi placeholders, and papi will return any value supplied by the expansion that you are trying to use

#

if the placeholders aren't working on velocity, you need to solve this with kenny

#

and speak english or stick to DMs for russian or any other language

slate ibex
#

let me send you the menu and you check it for velocity, ok?

vivid sparrow
#

no

#

this is not an issue with placeholderapi or deluxemenus

slate ibex
vivid sparrow
#

You clearly don't understand

#

This problem needs to be fixed by kenny, it has nothing to do with papi

slate ibex
#

if it's not in the PlaceholderAPI, so what's the matter?

vivid sparrow
#

¯_(ツ)_/¯

slate ibex
#

ok i will text him

tender vaporBOT
#
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.

fresh bone
#

Hi who can help me with the countdown placeholder, I'm trying to use %server_countdown_HH.mm_21.00% but it returns 0

fresh bone
#

I want to get a counter that tells me everyday how much hours and minutes are left for 9 pm

steel cargo
#

help me

#

how to register me own plugin

#

[19:37:43] [Server thread/ERROR]: [SteineGamesGeld] Could not hook into PlaceholderAPI!

mint fable
#

@bold mesa this

stone edge
#

so share some code or people cannot help you

tender vaporBOT
#
Hey!

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

sharp jay
#

ChatChat 🙂

heady urchin
#

Can anyone tell me the issue with this

#
    material: PIXELMON_LENS_SILVER
    data: 0
    slot: 11
    hide_enchantments: true
    hide_attributes: true
    display_name: "&4&lx1&r &c&lRasgnarok's Silver Lens"
    lore:
      - ""
      - "&4 | &cInformation"
      - "&4 | &7Cost: &f4 Vote Points"
      - ""
      - "&7&o(( &f&oLeft Click&7&o to purchase! ))"
    right_click_requirement:
      requirements:
        gems:
          type: ">="
          input: "%votingPlugin_Points%"
          output: "4"
      deny_commands:
        - "[sound] BLOCK_ANVIL_PLACE"
        - "[message] &c&l[!] &cYou don't have enough vote points for this."
    right_click_commands:
      - '[console] av user %player_name% removepoints 4'
      - '[console] give %player_name% PIXELMON_LENS_SILVER 1'
      - '[sound] ENTITY_EXPERIENCE_ORB_PICKUP'
#

For some reason the purchasing works 50/50

#

Super odd, not sure if its something to do with the placeholder or what

#

Tried using the built in voteshop in votingplugin but for some reason it wont open from the deluxemenus GUI

stone edge
#

afaik PIXELMON_LENS_SILVER

#

is not a valid material for spigot

heady urchin
#

I know

#

lol

#

it's just a test environment

#

that happens to have pixelmon installed

stone edge
#

but pixelmon is not a plugin

#

so i guess you are using an hybrid server

#

which i doubt is supported here tbh

heady urchin
#

I found the issue anyway

heady urchin
#

Diff issue

#
    material: head;%VotingPlugin_Top_Month_1%
    data: 0
    display_name: '%VotingPlugin_Top_Month_1%'
    slot: 33
  topvoter2:
    material: head;%VotingPlugin_Top_Month_2%
    data: 0
    display_name: '%VotingPlugin_Top_Month_2%'
    slot: 31
  topvoter3:
    material: head;%VotingPlugin_Top_Month_3%
    data: 0
    display_name: '%VotingPlugin_Top_Month_3%'
    slot: 29
#

Can someone tell me what im doing wrong?

#

the items aren't showing in the gui

#

the placeholders all return a valid name

#

also if i replace the material with like stone, it shows a piece of stone with the correct name

tender vaporBOT
#
Hey!

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

sharp jay
#

looking into it

#

oh well its 2 years old

#

You can try

#

Nice

orchid copper
#

So it says %server_uptime
and %server_online% how do i fix that?

sharp jay
#

huh?

orchid copper
#

Lmao mb
so I'm using Tab and something from placeholderapi but i cant get it to turn %server_uptime on the scoreboard to the uptime and %server_online% to players online

sharp jay
#

Im so confused

#

Can you show me

#

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

orchid copper
sharp jay
#

np

green crow
#

Hello, I seem to be getting an error whenever I do /papi parse me %checkitem_getinfo:36_enchantments:protection%

#

The error happens whenever I put a blank item with no enchants on slot 36 (boots)

#

But if put an enchanted item (with protection) in the slot. It would parse it completely fine

sharp jay
#

dont think you used the placeholder correctly

#

try

papi parse me %checkitem_getinfo:36,enchantments:protection%

green crow
#

It would give me invalid number for slot

vivid sparrow
#

@green crow what do you have in slot 36?

green crow
#

Blank diamond boots

sharp jay
#

why do you check for enchantments:protection

vivid sparrow
#

slot 36 doesn't exist, huh

sharp jay
#

o

#

LMAO

green crow
vivid sparrow
#

if you mean the boot slot, the parameter also accepts an, uh, equipment slot

green crow
vivid sparrow
#

nah it is not 36 100%

sharp jay
#

oh interesting

vivid sparrow
#

d;fields equipmentslot

ionic fractalBOT
#
Fields:
org.bukkit.inventory.EquipmentSlot%FEET
org.bukkit.inventory.EquipmentSlot%OFF_HAND
org.bukkit.inventory.EquipmentSlot%LEGS
org.bukkit.inventory.EquipmentSlot%CHEST
org.bukkit.inventory.EquipmentSlot%HAND
org.bukkit.inventory.EquipmentSlot%HEAD```
sharp jay
#

think cj documented it wrong

#

try 100

vivid sparrow
#

getinfo:100

sharp jay
#

^

vivid sparrow
#

I thought it accepts equipmentslot, but it was actually hand and offhand

sharp jay
#

does he even support armor slots

green crow
vivid sparrow
#

wait, hold on

#

is there something to get the material?

sharp jay
#

ye

#

mat

green crow
#

Though when I use getinfo:36

#

It would return the correct level of enchantment

sharp jay
#

I see

green crow
#

it would just give me an error if there is no enchantment

#

Like when it's 0

vivid sparrow
#

aaaaaa, too many inventories

sharp jay
#

fairly sure he doesnt support armor slots

vivid sparrow
#

wiki.vg says armor slot would be 8 lol, but I guess that would be in a different context

sharp jay
#

that one looks better

#

lol

vivid sparrow
#

so you have the item in boots slot?

green crow
#

I also tried that one earlier but it would return as 0

#

Always

vivid sparrow
#

ok hm

green crow
#

Even if I have a prot 3 boot

vivid sparrow
#

what does getinfo return without enchantment?

green crow
#

but if there's not boot on the slot

#

it would just return blank

vivid sparrow
#

hm

#

what error?

green crow
#

but if I have a boot with no protection enchantment, it would not return as 0, just an error

vivid sparrow
#

so, %checkitem_getinfo:36% returns what?

sharp jay
#

error is what they said

vivid sparrow
#

yes but what error

#

or is the one you sent above?

green crow
vivid sparrow
#

show me what data smh

green crow
green crow
#

But it would error if there are none

gusty hemlock
#

Greetings, for some reason this construct always returns blank, even though when I manually input my exact coordinates it works - %worldguard_region_owner:world,{player_x},{player_y},{player_z}%

vivid sparrow
#

not all expansions have support for nested placeholders

sharp jay
#

try maybe adding the lvl of enchant

gusty hemlock
#

Hm

vivid sparrow
#

if the item is not enchanted, the check will fail with an error @green crow

#

this needs to be fixed by @mint fable

green crow
vivid sparrow
#

only in armor slots?

green crow
#

Yeap, it works fine when I do %checkitem_getinfo:0_enchantments:protection%

#

It would return 0

vivid sparrow
#

yeah but is the item in slot 0 enchanted?

#

hm, that's weird

green crow
#

Nope

vivid sparrow
#

do you have an item in that slot?

green crow
#

Yes

#

If I don't have an item in that slot

#

It would return blank

gusty hemlock
green crow
#

This is so weird lmao

#

So I'm assuming there's no fix?

sharp jay
#

we wait for CJ to see it

green crow
#

Oh alright, thank you

wide gust
#

Anyone aware why mcmmo extension says 24/7 update lol

#

No matter if I update the extension etc

rose silo
#

ı need help

#

[14:56:44] [Server thread/ERROR]: [PlaceholderAPI] Failed to load expansion class JavascriptExpansion (Is a dependency missing?)
java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_231]

tender vaporBOT
errant iron
#

you have to have Java 15 or higher

mint fable
#

Not now, but later. I’ll let you know @green crow

blissful condor
#
> papi ecloud download javascript
[19:14:20 INFO]: No expansion found with the name: javascript
stone edge
#

download it from ecloud (manually)

blissful condor
stone edge
#

go to ecloud site, and download it

blissful condor
#

ok thanks

#

sorry if i'm not in the right channel, i'm new 😐

stone edge
#

Update placeholderapi, you are using old version

blissful condor
#

ok

#

javascript command worked before, but not now

#

papi reload show this, but not working

[19:53:42 INFO]: [PlaceholderAPI] Successfully registered expansion: javascript [2.0.0]
stone edge
#

isnt that list the installed expansions only from ecloud?

#

i dont think javascript should appear there

#

however, wait someone who knows more about this

#

btw

[PlaceholderAPI] Successfully registered expansion: javascript [2.0.0]
[PlaceholderAPI] Successfully registered expansion: javascript [2.1.2]
you have 2, lol

blissful condor
#

OH

willow ingot
#

Hello! How can I delete all the papi data?

#

I want all the stats to go zero, like I've never played

stone edge
#

papi doesnt store any data

willow ingot
stone edge
#

minecraft server

tame light
#

Hello, I have a small problem. my menu does not want to show me the "pinger" placeholders (I use deluxemenu)

stone edge
#

people need more information than that, share output of

/papi parse me %pinger_online_<server/ip>:<port>% (of course the one you are using)

#

make sure expansion is installed and you dont get errors on startup

warm plover
#

Heya, I'm trying to use checkitem to give an item in a specific slot.

#

%checkitem_give_mat:dirt,inslot:4%

#

This just gives it in my first open hand

mint fable
#

inslot isn't supported by give

#

won't be possible via checkitem

#

I think replaceitem is a vanilla command that could do that, or something similar to that

warm plover
#

Yeah.. I really didn't wanna use /item sadly

#

I wanted to use an easier lore format and name format (since I'll be changing the design often) and using colors in Minecraft's format is just a huge pain

#

Thanks anyways though

proud osprey
#

Hey guys, I wanted to ask you something!
Is there a Placeholders that shows the name of the player you look at in it

#

If you can't tell by looking, can you tell when you hit it?

austere hawk
#

Does pinger work or is still broken?

sharp jay
#

never was broken?

austere hawk
#

Well.. it was like 6-7 months ago..
because its showing my server as offline but server is online

sharp jay
#

ya dont think it was the expansion

austere hawk
#

What was/is then?

sharp jay
#

its still working

austere hawk
#

Yeah well my server is showing as offline when I'm connected to

#

&e%pinger_isonline_172.18.0.1:25568%'

sharp jay
#

localhost?

#

or naw

austere hawk
#

Ptero

sharp jay
#

because this works foreveryone else

austere hawk
#

But yeah I guess is localhost

#

Ptero is on the same machine

#

Maybe because I have ping-passthrough on false?

sharp jay
#

possible

#

try

austere trout
#

mr adam

mint fable
green crow
jade hearth
#

Hello! I have a question! How can I set for %server_time_hh:mm% a certain region, like my host is on Canada and I live in Europe, the difference is 5 hours from my clock

austere hawk
#

Any special settings for ptero users using pinger? So pinger can pass through?

vivid sparrow
#

You need to use the ip of the container iirc

austere hawk
austere hawk
#

I was just wondering since we are using deluxemenus how can we check if server is online or offline and change icons for each status?

proud osprey
sharp jay
#

@proud osprey like the person you are facing

proud osprey
tender vaporBOT
proud osprey
#

Sorry

sharp jay
#

dont think so but you can make one

#

check this

#

Oh wait

#

Lets you parse any placeholder for the closest player. Will return blank if no player is found.

#

that ones def what you rlooking for

proud osprey
#

Humm

#

%parseother_{username}_{placeholder_without_percent_signs}%

sharp jay
#

hm?

sharp jay
proud osprey
#

from what I understand if I want to know player information just put the placeholder without % in the last space

sharp jay
#

ye you do like {player_name}

#

for example

proud osprey
#

Ah got it, I'll try it as soon as possible! Thanks!

sharp jay
#

np

topaz dust
#

why does my placeholder plugin often not start correctly every after restart. I have to manually do /papi reload to fix it

dapper orbit
#

hey, could someone good at javascript help me?

var something = "something";
var test = "%playerlist_online,placeholder,yes,amount,uclans_tag_nocolor||{variable}%";

how can I use the var "something" inside the variable "test", on {variable} location?

brittle ruin
#

Is there anyway to increase the update interval of the placeholder %player_ping%

craggy drum
#

Does anyone know of a placeholderapi addon/expansion that will return the blockface that the player is looking at? (ie, top, bottom, NESW). Thanks

mint fable
mint fable
rain rain
#

/papi ecloud download skript doesn't work.

#

Just says:
Failed to find an expansion named:
skript

mint fable
rain rain
#

Thanks

mint fable
#

you probably have a corrupt/invalid expansion in your folder

#

If you know what you need, I'd suggest deleting all your expansions and re-downloading only what you need

#

if the issue persists, send an entire startuplog

#

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

craggy drum
mint fable
#

ye i see the issue

craggy drum
#

I'd imagine it isn't too difficult for someone who knows how to make this a placeholder, so it surprises me it isn't done. I think executableitems adds it, but I'm not paying £18 just to use a placeholder 😂

rain rain
mint fable
rain rain
#

Why can't I use that variable? I even use it to loop my baltop etc.

mint fable
rain rain
#

As in skript?

mint fable
#

ah

#

Can you give a little more context and elaborate on what you're trying to do?

rain rain
#

I'm using the ajLeaderboards plugin, and I want to use holograms to create an baltop system.

#

I can loop all of the players balances using {bal::*}

#

Which then gives me a value.

craggy drum
#

Seems I clicked it, I not sure it even has it now anyways

mint fable
craggy drum
#

Probably got eb

#

Fml I can't type. Probably for EB

rain rain
#

cj, any ideas?

mint fable
#

I don't know any script

#

I don't know what you're trying to use in the holograms (exactly)

#

even if I did know skript, I feel enough detail hasn't been given

rain rain
#

I mean, what else can I give?

mint fable
#

but maybe iut has

#

idk that's the issue lol

rain rain
#

Would anyone know? I can even pay if any thorough help is needed.

mint fable
#

😂 so hopefully somebody who knows can help

#

thousands of people here

#

?help

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

Source

mint fable
#

just gotta be patient

mint fable
#

start from the end

#

you're using a hologram

#

what do you WANT to display on it?

rain rain
#

This style of leaderboard, that shows the baltop.

mint fable
#

what is the placeholder you're using exactly that gave an issue

rain rain
#

I'm using skript, and i'm able to loop {bal::*} (so everyones balances and list it from 1 to 10)

mint fable
#

What is the exact placeholder you are using?

#

eg. %player_name%

rain rain
#

{bal::%uuid of player%}

mint fable
#

in what hologram plugin

rain rain
#

I currently don't have a hologram system, but HolographicDisplays is currently installed.

#

I need to use ajLeaderboards, which needs the variable. (to create the hologram leaderboard)

mint fable
#

I know the papi formatting got really fucked up in one of the betas

#

and he stuck with it

rain rain
#

PAPI 2.11.2

mint fable
#

holographicdisplays version...

mint fable
#

trying to pass %% into a placeholder, might not work the way you're expecting it to

rain rain
#

I don't need to use it.

#

I woulduse {bal::*}

mint fable
#

2.4.9 right?

rain rain
#

Is DecentHolograms the same thing?

#

I can't get HolographicDisplays working for some reason.

mint fable
#

no, it's a completely different plugin

#

that's why I asked what you had

rain rain
#

That's what I thought

mint fable
#

if you're using decentholograms that's fine

#

sadly, the error didnt' happen here

#

if/when you get the error, send the whole startuplog

mint fable
#

okay so @rain rain you have a skript variable available?

topaz dust
#

it doesn't matter when I do it right? cuz i don't have the problem atm

rain rain
#

Yes, {bal::*}

mint fable
topaz dust
mint fable
#

I might be a little confused though, are you trying to use 1 placeholder for all 10 lines of a hologram @rain rain ?

rain rain
mint fable
#

provide a numerical value to where?

#

Where are you trying to use that placeholder? it should be in the hologram

#

presumably ajleaderboards?

rain rain
#

Yeah

mint fable
#

parse it

#

/papi parse me %skript_{bal::*}%

#

What does {bal::*} even return from skript?

#

the player's balance?

rain rain
#

Every players balance

mint fable
#

umm

mint fable
#

ajleaderboards is a plugin that tracks placeholders and puts them into leaderboards

#

so you can track %vault_eco_balance% with ajleaderboards

#

that returns a single user's balance (whoever it is parsed for)

#

ajleaderboards parses that for EVERY player regularly and caches the value

#

then provides placeholders like %ajlb_value_<board>_<type>%

mint fable
rain rain
topaz dust
#

oop

#

does that cause a problem

rain rain
#

Or am I still confused?

mint fable
#

but looks like maybe pw

#

it never loads and seems like it might be causing the error @topaz dust

topaz dust
#

playerwarp?

mint fable
mint fable
rain rain
#

But my economy is skripted tho.

topaz dust
#

oh lol

mint fable
#

I would test them 1 by 1

topaz dust
#

are you replying to me or

mint fable
mint fable
topaz dust
#

how

#

by disabling them

#

like delete the plugin and restart 1 by 1

#

or do I just need to remove them from papi

mint fable
#

just the expansions

#

so delete them all and load them 1 by 1

topaz dust
#

Mmm.. I see. But some of them aren't manually installed via ecloud they just hooked into placeholder

#

how do I disable em

mint fable
#

just the physical expansion jars in the folder

#

don't worry about the plugins

topaz dust
#

Not all of them are in the expansions folders btw

#

But I should just focus on the expansions right

mint fable
#
Expansions Directory:
  Expansion-player.jar
  Expansion-bungee.jar
  Expansion-DiscordSRV-1.4.1.jar
  Expansion-localtime.jar
  Expansion-advancements.jar
  Expansion-votingplugin.jar
  Expansion-essentials.jar
  Expansion-world.jar
  Expansion-griefprevention.jar
  Expansion-vault.jar
  Expansion-statistic.jar
  Expansion-pinger.jar
  Expansion-luckperms.jar
  Expansion-server.jar
  Expansion-skinsrestorer.jar
  Expansion-playerlist.jar
#

just those

topaz dust
#

ohh i thought you meant all the registered expansions

sage depot
#
javax.script.ScriptException: ReferenceError: "BukkitPlayer" is not defined in <eval> at line number 1
        at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:447) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:399) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:395) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:151) ~[PlaceholderAPI-2.11.2.jar:?]
        at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:262) ~[java.scripting:?]
        at com.extendedclip.papi.expansion.javascript.evaluator.NashornScriptEvaluator.execute(NashornScriptEvaluator.java:27) ~[?:?]
        at com.extendedclip.papi.expansion.javascript.JavascriptPlaceholder.evaluate(JavascriptPlaceholder.java:120) ~[?:?]
        at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.onRequest(JavascriptExpansion.java:157) ~[?:?]
        at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.2.jar:?]
        at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.2.jar:?]
        at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:99) ~[PlaceholderAPI-2.11.2.jar:?]
        at me.neznamy.tab.platforms.bukkit.BukkitPlatform.lambda$registerUnknownPlaceholder$2(BukkitPlatform.java:179) ~[TAB v3.2.4.jar:?]
        at me.neznamy.tab.shared.placeholders.PlayerPlaceholderImpl.request(PlayerPlaceholderImpl.java:130) ~[TAB v3.2.4.jar:?]
        at me.neznamy.tab.shared.placeholders.PlayerPlaceholderImpl.update(PlayerPlaceholderImpl.java:53) ~[TAB v3.2.4.jar:?]
        at me.neznamy.tab.shared.features.PlaceholderManagerImpl.updatePlayerPlaceholder(PlaceholderManagerImpl.java:117) ~[TAB v3.2.4.jar:?]
        at me.neznamy.tab.shared.features.PlaceholderManagerImpl.refresh(PlaceholderManagerImpl.java:68) ~[TAB v3.2.4.jar:?]
        at me.neznamy.tab.shared.CpuManager.lambda$runMeasuredTask$8(CpuManager.java:354) ~[TAB v3.2.4.jar:?]
        at me.neznamy.tab.shared.CpuManager.lambda$submit$1(CpuManager.java:111) ~[TAB v3.2.4.jar:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        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) ~[?:?]```
#
        at org.openjdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:318) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:290) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1614) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.internal.scripts.Script$57638$\^eval\_.:program(<eval>:1) ~[?:?]
        at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520) ~[PlaceholderAPI-2.11.2.jar:?]
        at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442) ~[PlaceholderAPI-2.11.2.jar:?]```
sage depot
# sage depot ```[18:59:47 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while execu...

I get this error whenever someone logs out of my server, I use the PlasmoVoice mod/plugin and a javascript they say about in their wiki which does the following:

var placeholder = "%plasmovoice_installed%";
var voice = PlaceholderAPI.static.setPlaceholders(player, placeholder);

//✆   ∅  ✔  ✘

var checkVoice = function (voice) {
  return voice === "true" ? " &a✔&f" : " &c✘&f";
};

checkVoice(voice);```
#

Anyone got a clue on why this happens?

heady urchin
#
    material: TIPPED_ARROW
    potion_effects:
      - JUMP;10;0
    rgb: 85, 255, 85
    display_name: '&a&lNEXT PAGE -->'
    lore:
      - "&aClick to view next page."
    slot: 41
    left_click_commands:
      - '[openguimenu] biomewarps2'
#

Anyone know why this is not making the arrow green?

green crow
tender vaporBOT
wide gust
#

Anyway to make a placeholder have a null value?

#

Its do with luck perms temp perms and how long is left but if there is non left, it doesnt show anything :/

drowsy junco
#

Hello, is there a way to use placeholder twice?

#

for example

#

I have a placeholder that wants a specify name

#

%welcomeworl_<player>%

#

i need change <player> part with name but not in plugin development

#

in config files

#

like %welcomeworl_%player_name%%

stone edge
#

You can't use a placeholder with % inside other placeholder

#

if it's your plugin you can use {placeholders} and parse them yourself using PlaceholderAPI.setBracketPlaceholders (iirc)

pseudo nymph
#

Hey! Was looking through msgs here to see if anyone had the same issue as me. I tried downloading it manually and the file was called PAPI-Expansion-Bungee_HEbAVYe.jar and yet when I reload the papi plugin it still says the bungee is 1.0.1

tender vaporBOT
fervent ravine
#

Hello how are you, I am using an expansion of the EliteMobs plugin, but it seems I am having problems with UTF-8 compatibility, how can I solve this?

pseudo nymph
#

but in game it still says I have the 1.0.1 one

lament agate
#

hey there, I'm having some trouble getting the localtime placeholders to work correctly. I dont beleive its discord is active anymore

#

The displayed time is sometimes right, and sometimes wrong. I'm using this placeholder %localtime_time_EEE - h:mma%

#

it was working at 4am this morning, but now it displays 11:46pm even though its 5:46pm

river mango
#

Getting this when typing in chat:

#

%vault_prefix% Username

#

I have done this: /papi ecloud download Vault

mint fable
#

what chat plugin do you use

river mango
#

SupremeChat

mint fable
#

type /papi parse me %vault_prefix%

#

what does it say

river mango
#

It says %vault_prefix%

trim mist
#

Did you /papi reload after downloading the expansion?

river mango
#

Yup

trim mist
#

Can you provide a /papi dump

river mango
trim mist
#

Doesn't look like the Vault expansion actually installed

#

Try downloading it and reloading again?

river mango
trim mist
#

Anything in console?

#

And place it in the expansions folder inside the PlaceholderAPI folder, and then a reboot should activate it.

#

If that doesn't load it, should be something in the console as to why it might not be loading.

river mango
#

Thanks, ill try!

pearl flicker
#

Any idea whats up here? If I run /papi reload it works fine, it keeps happening over and over again, I tried on this version and newest, https://pastebin.com/HdYUgqs7

old dust
#

help me

trim mist
lament agate
#

When a player joins it says "Could not get players timezone. will use default timezone" in the console.

#

Have confirmed it is not an issue with VPNs, as I dont use one

#

It also happens for everyone as far as I know

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.

mint fable
#

maybe send that over @lament agate

lament agate
#

one sec

#

Thats my latest.log, but theres not much there

mint fable
#

entire log

#

?

lament agate
#

was just following the instructions

#

give me a sec.

mint fable
#

latest.log should be a lot more than that

#

thousands of lines probably

lament agate
#

thats all that was in it. I have to go into the zip for todays date and copy/paste the 3 files that are in there.

mint fable
mint fable
lament agate
#

okay

mint fable
#

this is the method being used to check the player's timezone

#

either the address is null from spigot (Player#getAddress) or it's failing to get it from the website

lament agate
mint fable
lament agate
lament agate
mint fable
#

and right now if you parse it, you get that error showing up then?

lament agate
#

parse what, my server's IP?

mint fable
#

the placeholder

lament agate
#

oh gotcha, parsing it displays default time, which is western europe

mint fable
#

(I just didn't see it parsed in the log sent because I didn't mention to parse it)

lament agate
#

okay wait wait

mint fable
#

i'm thinking it might be related to accessing that website

lament agate
#

its working now for some odd reason

#

I have no clue why or how

#

its been rejecting players ips and defaulting to the wrong timezone for three days. the server has restarted 6 times since then

#

not sure why this one was any different. I didnt change anything.

mint fable
#

strange

#

could always be a weird firewall thing

lament agate
#

I hope it will stick. When I first used it it was working

mint fable
#

that you might not have control over

#

🤞

lament agate
#

It worked for about 6 hours the first time then broke lol

#

anyway, thanks for the help

#

Even if it sorted itself in the end

mint fable
#

yep lol

keen moth
#

Hello! Is there way to install PAPI to velocity ?

mint fable
#

nope it's a spigot plugin

keen moth
#

🤯

#

and what i should do, if i need placeholders on velocity ?

mint fable
#

You can't?

#

placeholders are server-specific

#

not proxy

keen moth
#

i need sync my placeholder from spigot server

keen moth
mint fable
#

I'm not aware of anything that exists, but maybe 🤷‍♂️

mint fable
keen moth
#

thanks

mint fable
#

gl

lament agate
tender vaporBOT
lament agate
#

oops sorry for the ping

mint fable
#

after you do relog a few times can you send over your latest.log

lament agate
#

you can see the point where I log in and it doesnt register the placeholder for the first time around line 1548

#

There is also another player this time, so you can see that its not working for them either.

mint fable
#

I wonder if it's trying to parse it before your address is available, or if your address just isn't available after you relog

#

if you /papi reload after you relog

#

does it fix?

lament agate
#

yep, thats it!

mint fable
#

hmm

lament agate
#

any way I can avoid having to do that every time?

mint fable
#

so something might be trying to parse it before it can get your address

#

where are you using it

#

scoreboard?

lament agate
#

I'm using it in a plugin called Happyhud, which uses the scoreboard I think?

#

either that or action bar

mint fable
#

are you using it in both?

#

seems to just be actionbar that plugin

#

do you also have a scoreboard?

lament agate
#

I think the plugin uses the scoreboard, but I also know it has some action bar functionality

mint fable
#

doesn't look like the scoreboard is in use

#

looks all like custom action bar stuff

lament agate
#

gotcha

mint fable
#

hmm

lament agate
#

After I installed the expansion and reloaded it broke again.

#

After relogging and reloading it was still broken. subsequent reloads have been ineffective.

mint fable
#

hmm i don't see any of the error messages i added

#

try this

#

I was testing it but it doesn't work for me because I login from localhost smh

#

it seemed to be working fiine though

#

in regard to erroring, the only reason it said it couldn't get my timezone is because the website responds with undefined

#

so I'm curious to see if your error lies with accessing the website, website response, or getting the address

final herald
#

hi

#

im trying to reload placeholderapi but its just stucked at this

#

[04:27:31 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[04:27:31 INFO]: [PlaceholderAPI] Fetching available expansion information...

#

i tried two times to wait like 2-3 minutes but ye no results

#

someone help xd

lament agate
tender vaporBOT
lament agate
#

oops, did it again, sorry

mint fable
lament agate
#

Thanks!

lavish sail
#

anyone experienced with javascript can tell me why this doesn't work and just returns the entire function?:

    var factionName = request.getPlaceholder("factionsuuid_faction_name");
    var relationColor = request.getPlaceholder("rel_factionsuuid_relation_color");
    var playerRole = request.getPlaceholder("factionsuuid_player_role");

    if (!factionName || factionName === "") {
        return "";
    }
    
    return "&8[" + relationColor + playerRole + factionName + "&8] ";
}```
frosty burrow
#

Is it possible to omit [PlaceholderAPI] [checkitem] Invalid Key for enchantment(s). -- Ignore if enchantment is blank on purpose message?
I'm using /papi parse <target> %checkitem_getinfo:<slot>_enchantments: to get all enchantments of target item.

austere hawk
#

how can I give a permission to a player when entering a world for the first time

hazy talon
#

Hello, Javascript expansion no longer works?

tender vaporBOT
#
Plugin Search:

Please select a plugin,
1️⃣ - DeluxeMenus [296029 Downloads]
2️⃣ - DeluxeMenusItems [382 Downloads]
3️⃣ - ⚓ [FREE] DeluxeMenus ▸ Quests Menus • 5 Categories ⚓ [213 Downloads]
4️⃣ - ⚔️ [FREE] DeluxeMenus ▸ StrikePractice Menus • Custom Menus ⚔️ [141 Downloads]
5️⃣ - DeluxeMenus RankUp Config [136 Downloads]

#
Plugin Search:

Please select a plugin,
1️⃣ - EpicFriends (1.7 - 1.19) - for BungeeCord | MySQL GUI PlaceholderAPI [294 Downloads]
2️⃣ - ReferralSystem [1.8.8 - 1.19.x] [PlaceholderAPI and LeaderHeads] [236 Downloads]
3️⃣ - PlaceholderAPISign [67 Downloads]
4️⃣ - Player Profiles [1.8-1.16] - Unlimited GUIs | PlaceholderAPI/WorldGuard Support | Much More! [44 Downloads]
5️⃣ - ★ Advanced Player Info ★ | GUI | PlaceholderAPI | 1.8 » 1.12 [OPEN SOURCE] [38 Downloads]

#
Hey, I'm Barry!

I'm a unique Discord bot created especially for HelpChat.

Authors:

I was created and I'm maintained by @balmy marten with support from the Staff team.

Code base:

I'm created in Javascript using Discord.JS

Source code:

At this stage I'm closed source due being a mess and some secret internals. However you can contribute to my links/version knowledge here.

#
ChatReaction Help Menu:

Try to unscramble the word shown in #chatreaction to win!

/chatreaction wins

See your ChatReaction wins.

/chatreaction hint

Get a hint on the current word.

/chatreactionr rank

See your position in the leaderboard.

/chatreaction streak

Your personal best streak.

Vote Skip

You can vote to skip the word with the Reload reaction.

hazy talon
#
[19:01:17 ERROR]: [PlaceholderAPI]
java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_282]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_282]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_282]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[?:1.8.0_282]
at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_282]
at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_282]
at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_282]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_282]
at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_282]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_282]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
at com.extendedclip.papi.expansion.javascript.evaluator.NashornScriptEvaluatorFactory.create(NashornScriptEvaluatorFactory.java:34) ~[?:?]
at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.createNashornEvaluatorFactory(JavascriptExpansion.java:177) ~[?:?]
at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.register(JavascriptExpansion.java:97) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:172) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_282]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_282]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) ~[?:1.8.0_282]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_282]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_282]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_282]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_282]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_282]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:333) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$onMainThread$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) [server.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:723) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [server.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [server.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
[19:01:17 INFO]: 1 placeholder hook(s) registered!```
tender vaporBOT
topaz dust
#

is it possible to make placeholders load faster on startup

vivid sparrow
#

load faster in what way @topaz dust ?

hazy talon
#

Hello @vivid sparrow Javascript expansion no longer works?

topaz dust
vivid sparrow
# tender vapor

@hazy talon you have java 8 (52) installed and the expansion needs at least java 11 (55)

vivid sparrow
topaz dust
#

All placeholders

#

When someone joins after a restart, the tab, scoreboard, and welcome message shows placeholders

#

because it's still loading

vivid sparrow
#

I never had issues with this, try to add a delay before allowing players to join

hazy talon
topaz dust
hazy talon
#

before

vivid sparrow
#

Google 😬

topaz dust
#

But it's possible okay I'l check

vivid sparrow
#

java 8 and minecraft 1.8 aren't the same thing, Leto

#

the latest version of the js expansion require java 11, that's it

hazy talon
vivid sparrow
#

minecraft server, client's version doesn't matter

hazy talon
#

Don't have the old Javascript 1.8 / Java 8 versions?

vivid sparrow
#

no

hazy talon
#

Ok np

hazy talon
tender vaporBOT
# hazy talon I found 🙂
Hey!

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

pearl wadi
#

When I use the command /papi ecloud download player it says that everything is fine and when I put /papi reload in the console it gives me an error and says this

#

15:02:56 ERROR]: [PlaceholderAPI] failed to load class files of expansions

#

And many error lines with loading the files

pearl wadi
tender vaporBOT
# pearl wadi .
Hey!

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

pearl wadi
#

ouh

#

sorry d

#

xd

#

@idle coral pls help

tender vaporBOT
autumn stream
#

where i can download javascript expansion? /papi ecloud download Javascript dnw

pearl flicker
#

Any idea whats up here? If I run /papi reload it works fine, it keeps happening over and over again, I tried on this version and newest, https://pastebin.com/HdYUgqs7, I cleared all placeholders and tried to restart, I only have like 4, Player, Server, Playtime, and maybe another

autumn stream
#

tysm

pearl flicker
pearl flicker
#

Please tag me on responses, would appreciate it.

mint fable
#

@pearl flicker playtime should not have an external expansion anymore

#

delete that, it's built into the plugin

hallow tiger
#

Is there any way to see list of registered placeholders for specific plugin?

stone edge
#

Yes

#

read its wiki

#

or placeholderapi wiki (if dev updated the placeholder list)

vivid sparrow
#

some expansions will suggest your the placeholders on /papi parse

fervent zephyr
vivid sparrow
#

well, do you have a player within 10 blocks?

fervent zephyr
fervent zephyr
vivid sparrow
#

ah looks like the expansion uses distanceSquared, and 10 would be about 2 blocks or something

coral dome
#

hey is it posible to make a leader board whit **Player ** exp

#

so the player with the most xp get to be on top

trim mist
#

Not directly through the expansion. You'd need some kind of plugin to go with it.

stone edge
#

a leaderboard plugin

coral dome
#

yeah but are those also for xp

#

i only know ones that work whit money

stone edge
#

a leaderboard plugin

#

with placeholderapi support

tribal mist
#

hi, i was tryin to download Attributes placeholder but i got this "failed to find placeholder"

#

i was using this command to download /papi ecloud download Attribute

#

where i can get it?

vivid sparrow
tribal mist
#

ty sir!

coral dome
stone edge
wooden zealot
#

can someone know why placeholders look like this

#

oh i can't send images

tender vaporBOT
wooden zealot
stone edge
#

thats because the plugin you are using for menu doesnt parse the color codes

#

so you 1) updatet the menu plugin or 2) use a plugin to parse colors or 3) downgrade placeholderapi

opaque zealot
#

how can we make a stats of top players via using duelex menu

stone edge
#

i remember someone made it, but idk how

#

you should (maybe) use a leaderboard plugin instead

opaque zealot
#

no like i want players do /stat command and it shows their as well as top players stats

#

can't do smthing sort of that ?

stone edge
#

as i said above

#

i remember someone made it (idk who, when, where, or if i was sleeping and dreamed about it)

#

but you should use a leaderboard plugin instead

opaque zealot
#

oh okay

stone edge
#

one that supports gui with top players

opaque zealot
#

any suggestions ?

stone edge
#

sorry no

opaque zealot
#

nvm ty for help

austere hawk
#

can placeholder expansion get infected from others jar

sharp jay
#

infected?

austere hawk
#

yes

sharp jay
#

your missing a dependency

vivid sparrow
#

Thats a warning due to spigot's stupid plugin system, it is harmless

#

@sharp jay smh

sharp jay
#

bro I havent touched spigot in forever

vivid sparrow
#

It also happens on paper, noob

sharp jay
#

damn paper is caca

vivid sparrow
#

What LOL

sharp jay
#

smh

austere hawk
#

ciudatule

hybrid flare
#

who can help me?

stone edge
#

dont ask to to ask, just ask

hybrid flare
#

how can i add timer to mine reset lite?

stone edge
#

if it doesnt have a timer built-in i dont think you can "add" a timer

hybrid flare
#

time? to the mines?

#

the reset time

stone edge
#

what?

young spear
#

I'm trying to make it so on the scoreboard, there is a team section which displays which team you are apart of. The placeholder is this: %betterTeams_name%. How could I make it so when someone isn't part of a team, it says none, but when they are, it displays the placeholder, because its currently blank instead of saying none.

stone edge
#

maybe your team plugin allows you to customize the output if not part of a team

#

and if not, it should contact the developer

#

other alternative, using changeoutput expansion (google it)

frosty reef
#

(unless ur dockerized then u just yeet the docker and files iirc)

peak crystal
#

Why does %statistic_time_played:hours% reset to 0 every time I left click on the item and reopen the menu?

  '5Hours':
    material: 'Diamond'
    slot: 0
    priority: 1
    display_name: '&9&l6 Hours of Playtime'
    lore:
    - ''
    - '&710 Diamonds'
    - '&f%statistic_time_played:hours% &b/ &f5 Hours Required'
    - ''
    left_click_commands:
    - '[message] &6&lHelix » &fYou have claimed &9&lDiamonds'
    - '[console] give %player_name% Diamond 10'
    - '[console] lp user %player_name% permission set reed.playtime.1 true'
    - '[close]'
    - '[refresh]'

    left_click_requirement:
      requirements:
        hasPlayTime:
          type: javascript
          expression: '%statistic_time_played:hours% >= 5'
      deny_commands:
          - '[message] &cYou do not meet the criteria to redeem.'

  '5HoursPurchased':
    material: 'Diamond'
    slot: 0
    priority: 0
    display_name: '&9&l5 Hours of Playtime'
    lore:
      - ''
      - '&cYou already claimed this'
      - ''
    left_click_commands:
      - '[refresh]'
    view_requirement:
      requirements:
        hasPerm:
          type: string equals ignorecase
          input: '%luckperms_has_permission_reed.playtime.1%'
          output: 'yes'
mint fable
#

is the placeholder value actually resetting

#

or is %luckperms_has_permission_reed.playtime.1% not parsing as yes

#

Can you explain exactly what happens when you first open the menu, what item you see, click, what happens, open menu (if needed), what do you see

cosmic hazel
#

does PAPI will be added to Modrinth?

vivid sparrow
#

not in the near future, if you can't download it from spigot for whatever reason, it is also available on builtbybit, github and our jenkins

cosmic hazel
vivid sparrow
#

why are you asking?

cosmic hazel
#

just interest

deep hollow
#

Hey, anyone knows why javascript is doing memory leaks

#

in all my gamemodes?

#

I'm using Javascript-Expansion-2.1.2.jar

#

I'm only using cooldown javascript and other two javascripts too smalls

vivid sparrow
#

try nashorn and this @deep hollow

deep hollow
#
  file: cooldown.js
  engine: nashorn```
vivid sparrow
#

yes that should be fine iirc

trim mist
#

QuickJS has a native memory leak in it that's pretty bad and last time I checked they hadn't patched it yet.

#

Nashorn should hopefully fix that

vivid sparrow
#

it uses one scriptengine instance per thread, ive read some stackoverflow posts and people say you should use one instance and then just set bindings for each evaluation

trim mist
#

Interesting

#

Does it confirm to fix the memory leak with QuickJS?

vivid sparrow
#

no, it is only for nashorn 😬 hence why I said to use nashorn

trim mist
#

Ahh

deep hollow
#

Will try that

#

much appreciated!

#
    engine: javascript
    debug: false
    github_script_downloads: false
    argument_split: ','
    enable_parse_command: false
    use_quick_js: false```
#

disabling use_quick_js here should be enough for avoiding the memory leak?

trim mist
#

It could be yeah

quartz nova
#

hi

#

why i cant send pictures

tender vaporBOT
quartz nova
#

when i use /papi register it solves the problem

#

but

#

when i restart the server

#

its breaking down again

cloud mortar
#

is there a placeholder that anyone knows of that can show the amount of players in a gamemode? players_survival players_spectator

trim mist
#

Not that I'm aware of

#

That might be something that could go in the Server expansion though

rotund scarab
#

Install bunge expansion by /papi ecloud download bungee

#

The /papi reload

#

U should use bungee for this to work tho

rotund scarab
quartz nova
rotund scarab
#

And if ur lazy to do it, make a command block in the world, like in a spawn, and put a pressure plate above it, when someone joins it runs the code

quartz nova
#

i know skript

#

thank you for your idea

#

i will try it tomorrow

cloud mortar
rotund scarab
rotund scarab
zealous vault
vivid sparrow
#

@zealous vault delete the quest expansion

final herald
#

[15:21:31 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[15:21:31 INFO]: [PlaceholderAPI] Fetching available expansion information...

#

someone help pls

#

i tried to reload the plugin, but it just showing this

#

and stays at this

final herald
#

can someone help?

exotic bloom
#

Why can i only put 2 servers on %server_online_servername%

stone edge
#

afaik its server_online_worldname

exotic bloom
#

would the %worldname% work with bungee?

stone edge
#

no

#

placeholderapi is for spigot

exotic bloom
#

oh im trying to get how much people are online on like my for example Duels servers

stone edge
#

why using server_online then?

exotic bloom
#

i actually dont know

#

what can i use then?

stone edge
#

you probable need bungee_duels-1

#

or something like that

exotic bloom
#

oh ok

#

ill test it out

#

is there a

#

character limit on it?

vivid sparrow
#

?

exotic bloom
#

so if i wanted to add multiple servers to %bungee_servername% do i do %bungee_servername_servername2_servername3_etc%