#placeholder-api

150650 messages · Page 99 of 151

ripe pivot
#

essential

mint fable
#

okay, it has nothing to do with placeholderapi then

#

?tagess

tender vaporBOT
mint fable
#

follow these steps in order this

ripe pivot
#

i have 1.7 server tho

mint fable
#

I don't know which version of deluxetags supports 1.7...

#

if any

#

what version are you using?

ripe pivot
#

i have viaversion

#

1.8 to 1.7.10

mint fable
#

that doesn't change anything

#

so you have 1.7.10 and 1.8

ripe pivot
#

yeah

mint fable
#

which one is your server running on

#

1.8?

#

or 1.7.10

ripe pivot
#

1.8

mint fable
#

then it should work fine 🤞

mint fable
#

see what happens

#

I suggest 1.8.8 over just 1.8 btw if you're not on it

#

fixes a few bugs and issues with some plugins

velvet tinsel
#

anyone knows why this might happen?

#

Failed to load class files of expansion.

toxic nest
#

Hey guys is it possible to convert values with placeholder api to
Small Caps font generator font?

vivid sparrow
#

Yes, with the string expansion

stuck nest
#

Hi, after /papi reload -> https://paste.helpch.at/gecusowacu.rb

[13:53:38 INFO]: A total of 24 placeholder hook(s) are active: 
[13:53:38 INFO]: advancements, citizensplaceholder, crazycrates, cryptocurrency, deluxemenus, deluxetags, eco, ecopets, ecoskills, essentials
[13:53:38 INFO]: hdb, kixschatgames, lottery, luckperms, player, playerpoints, roulette, server, statistic, superboosters
[13:53:38 INFO]: superior, supermobcoins, talismans, vault
mossy birch
#

Quick question - when I'm writing an Expansion, I see two options to include other plugins:

  1. With a Plugin (External Jar)
  2. With a Plugin (Internal Class)

Can I not use the plugin's source if it's open source?

vivid sparrow
#

Wdym? @mossy birch

mossy birch
#

I mean, can I import it as a pom dependency rather than just plopping the jar in there

fossil wasp
#

How can I use color now on the latest version of PlaceholderAPI since it doesn't work anymore &

atomic belfry
#

Is there a placeholderapi extension or a plugin that is able to return a different thing based on what permission you have?

i want to have a prefix for players, and if they have permission.one their placeholder returns "one" or anything else i define that permission to say

Also a way to priorities what permission should be shown would be good

If anyone knows a way please @ tag me

mossy birch
atomic belfry
mossy birch
#

I'm not sure, I've only been using this for like 4 hours so far cuz I wanted to write my own expansion

#

what perms plugin you using?

#

because i think you can fetch this directly from Luck perms

atomic belfry
mossy birch
#

you need luckperms meta

#

meta gives you a simple key:value store that you can use to do that

#

and then you use %luckperms_meta% argument returns the value for that key

#

so if you set this meta:
max-homes = 5

and you want to retrieve the max homes value to parse in a placeholder, it would be
%luckperms_meta_max-homes%

atomic belfry
#

i want to have one placeholder in front of users names like

%rank_prefix%

and the prefix can change based on what permission they have, can this method do that?

mossy birch
#

I really don't know what to tell you man

#

you can assign the meta to the group

#

and if you set it correctly, then papi will resolve to the correct key that you set

#

so if
"newbie" rank has the following meta
rank_prefix: newbie
and newbie+ rank has the following meta
rank_prefix: newbie+

When papi goes to resolve %luckperms_meta_rank_prefix it will return newbie if the user belongs to newbie and newbie+ if the user belongs to newbie+

#

this has nothing to do with permissions

atomic belfry
mossy birch
atomic belfry
#

should work for my use case then

#

thanks :)

mossy birch
#

yw

eager linden
#

Can anyone help

#

Why is it not showing the right info

tender vaporBOT
fossil wasp
#

How can I use color now on the latest version of PlaceholderAPI since it doesn't work anymore &

tender vaporBOT
fossil wasp
#

!help

#

.help

tender vaporBOT
fossil wasp
#

Nah

#

I need help

tender vaporBOT
#

There is no time to wait! Ask your question @fossil wasp!

fossil wasp
#

How can I use color now on the latest version of PlaceholderAPI since it doesn't work anymore anyone

tender vaporBOT
mint fable
fossil wasp
mint fable
#

are you using it in deluxemenus?

#

coloring was removed in 2.11.2 so you could downgrade if you wanted to, but placeholderapi shouldn't be coloring the text in the first place

fossil wasp
mint fable
#

in v1.10.5 of deluxemenus (for 1.8.8) it did depend on papi for coloring

fossil wasp
#

Nah

mint fable
#

but if you are having issues you could always downgrade, otherwise the place where you are trying to use it should be doing the coloring

fossil wasp
#

In version v1.10.5 deluxemenus pitch and volume for sound do not work

mossy birch
#

Quick question - is it possible to register a placeholder with a "static" value without making an entire expansion for it?
I just had an idea to just make my server name, with all its color information, a placeholder so I can use it across all plugins instead of changing every one

solid dagger
#

hi, i am looking for the clock unicode symbol, but cant seem to find it.

#

can someone help me?

sharp jay
#

you try U+1F552 @solid dagger

solid dagger
#

do i just type that?? @sharp jay

sharp jay
#

no

#

depends where you are using it

solid dagger
#

scoreboard

#

@sharp jay

tender vaporBOT
solid dagger
#

im using on my scoreboard

sharp jay
#

why are you pinging me?

solid dagger
#

because

#

to make you respond faster..

#

dat is the point of ping

sharp jay
#

then I wont respond

#

learn to not be impatient

solid dagger
#

well your typing right now

#

so can you help?

#

@sharp jay

#

use dnd if you dont want mentions

#

adam

#

can you help now

#

please

fervent spire
# solid dagger adam

You seriously need to learn to be patient. Begging and pinging a staff member is not how you get help.

solid dagger
#

i pinged him twice.

#

twice.

#

i said his name once

#

and when did i beg??

#

i asked him for help

#

everyone in this server tryna pick fights 💀

#

this is all i want in my scoreboard

#

why cant i put images

fervent spire
#

?imgur

tender vaporBOT
solid dagger
#

ok

#

here

#

this

#

is all i fucking wanted

#

on my scoreboard

#

its been 1 hour

#

asking for this dumb symbol

mint fable
#

What scoreboard plugin are you trying to use it in?

#

%unicode_1F552%

zealous ledge
#

is there a placeholder for a nicely formatted date, ex: December 9th

mint fable
#

you can make your own format with SDF

#

also available from the server expansion %server_time_<SimpleDateFormat>%

zealous ledge
#

alright, thanks

mint fable
#

idk about the th or st

#

might be more complicated if you want that

zealous ledge
#

I figured it out

solid dagger
tender vaporBOT
solid dagger
#

oops

mint fable
#

try just copy pasting the symbol

solid dagger
#

hmm

#

i did

#

dont work

#

placeholder doesnt work either

mint fable
#

does the symbol get pasted correctly?

solid dagger
#

just looks like this: []

#

idk why

#

can you please help uwu

#

🕒

mint fable
#

hmm

solid dagger
#

in chat too

#

its just []

#

does it work for you?

mint fable
#

no

#

maybe different symbol

solid dagger
#

k

#

like wat

mint fable
#

idk

#

or it's a custom font

solid dagger
#

hmm

#

but doesnt that need resource packs?

mint fable
#

i don't think that character is in the font by default

solid dagger
#

it needs resource packs tho rit

#

for a custom font

mint fable
#

yes

solid dagger
#

it has no resource packs

#

hmm

#

so

#

how do they do it??

mint fable
#

ask them

solid dagger
#

i dont think they will listen lol

#

big server

#

all i want is the clock lol

#

i downloaded papi extension called unicode

#

still dont work

mint fable
#

yes it's over the 16 bit limit java uses

#

or something

#

idk

solid dagger
#

what is??

#

the clock?

mint fable
#

it's 1F552

#

java is uXXXX

solid dagger
#

hmm

mint fable
#

🤷‍♂️

solid dagger
#

do u want server ip

#

we can figure it out together

#

as a side quest

mint fable
#

lmao no

solid dagger
#

okay ):

mint fable
#

as it's not really placeholderapi related

solid dagger
#

hm

#

wait

#

ill take screenshot of it

#

maybe you get better idea

mint fable
#

i've been staring at unicode characters for ages

solid dagger
#

lmao

#

here

#

cju

#

cj

#

that is the whole scoreboard

#

and all i want

#

is the clock

#

the darn clock

mint fable
#

umm

#

I'm pretty sure there's a resource pack or something

solid dagger
#

nio

#

no pack

mint fable
#

I don't know of any pickaxe unicode character

solid dagger
#

hmm

#

i joined with packs disabled

#

lemme see

mint fable
#

oh nvm it['s backwards in-game

solid dagger
#

?

#

oh k

mint fable
#

#

well

solid dagger
#

the clock

mint fable
#

slimified

#

ez

solid dagger
#

yes

#

what

mint fable
#

test each symbol

#

starting at 0000

solid dagger
#

BRUH

#

WHAT

mint fable
solid dagger
#

nonoon

#

oh god

#

i aint doing that

#

no wayy

mint fable
#

look through the list

solid dagger
#

i found it

#

cj

#

cj

#

i am

#

so unbelievably smart

#

and cool

#

and epic

mint fable
#

what is it?

solid dagger
#

i fucking found it

#

mint fable
#

what's the code itself

#

oh it's the watch

solid dagger
#

yes

#

how do i put it in mc

mint fable
#

stupid

#

copy and paste it

solid dagger
#

fine ):

mint fable
#

also, be patient and kinder in life my friend

solid dagger
#

i am very kind

mint fable
#

You ended up solving your own problem in the end

solid dagger
#

yes

#

i guess

#

its over

#

its finally over

#

3 hours

#

of my life

#

for

#

a emoji

#

:)))

tender vaporBOT
scenic wharf
#

Hey, quick question, is there a way to make the %luckperms_group_expiry_time% only show the biggest Timeframe (like only the weeks and not the days, hours, minutes and seconds behind it)?

#

Did you install LP to papi?

#

type /papi ecloud download LuckPerms if you didn't have so already

#

Oh i see

#

maybe try %luckyperms_ prefix(underscore again)[Rank]%

toxic kernel
#

I moved that question to the forums section as to get better support.

austere hawk
#

=ver

tender vaporBOT
rotund halo
mellow sandal
#

Hello, why can't i do /papi ecloud download TokenEnchant or tokenenchant because previously the expansion was working fine and now the placeholders are broken, and i've reported this on their discord server already and the developer told me to go here.

#

ofc i did /papi reload

vivid sparrow
#

Try to parse the placeholder in chat. If it doesn't work, then we can't do anything since the expansion is made by vk2.

neon sentinel
#

I have a problem when using PlaceholderAPI developer API in my plugin. I've setup the expansion and had it working some time ago, made some changes and now it no longer works. I have everything fully up to date. When I use the placeholder %kaiyu_crystals% in any plugin it doesn't work, but when I use /papi parse me %kaiyu_crystals% it does work.

#

and in the console it prints [PlaceholderAPI] Successfully registered expansion: kaiyu [1.0]

vivid sparrow
#

make sure the plugin supports placeholderapi

#

if it is your own plugin, you need to use PlaceholderAPI#setPlaceholders

neon sentinel
#

Yeah both the plugins support PlaceholderAPI, as you can see in this image I have the %luckperms_prefix% working in the scoreboard

#

it must be something I'm doing in my code

#

I'm registering the expansion with new KaiyuExpansion().register(); at the end of my onEnable, is that the correct way to do it?

vivid sparrow
#

yes

#

if the placeholder works in chat, it should also work in that title

neon sentinel
#

what do you recommend I do?

#

The plugins that I'm using are well known and work with every other placeholder

toxic nest
#

How can i show one value if player has permission and different if he does not have a permission
and other question is how can i set so if player has let's say faction, clan, guild it shows [name] but if he does not have i don't show empty []
(for the second question i assume it has something to do with custom placeholders but i am not sure if that is correct and how to do it)

red pine
#

yo whats the placeholder for day/month/year

junior musk
#

%server_time_dd/MM/yyyy%

red pine
#

ty i tried before didnt work now it works

modest edge
#

hello everyone, I had some kind of problem, I don't know what it's related to, in general, for some reason I don't have information updated in the scoreboard, it was done through placeholders for statistics, it was updated until some time, but now it has stopped, I have already reinstalled and installed the old versions, but the result is still the same, what can I do?

sage dove
#

I got a problem with a placeholder. Where can I post a screenshot?

tender vaporBOT
bold agate
#

hi
i want %player_current_exp% but formatted
how can i do that

trim mist
#

Let's stick to one channel for asking questions.

austere nymph
#

May be wrong support channel, please let me know where to move this question if need be. Trying to set up a tool in DeluxeMenus to fix some broken glyphs/emojis in Item Names. I found a way using formatter_text & checkitem placeholders and I can run the command manually and it works but when I try to use [player] command in Deluxe Menus I get kicked from the server for illegal characters. I've seen a few other mentions of this but did not understand the fix if their was one. Here the 2 commands, any help would be awesome!
__Running this manually as a player on the server works: __
/papi cmdparse me irename [placeholder] %formatter_text_replace_🕹_஻_{checkitem_getinfo:mainhand_nameequals:~}%
WHen I try this as a click command in a gui I get kicked:

  • '[player] papi cmdparse me irename [placeholder] %formatter_text_replace_🕹_஻_{checkitem_getinfo:mainhand_nameequals:~}%'

Note: I am opped(not sure that matters yet in testing this I know I'll have to work out perms later), also tried {player_name} in the cmdparse with no success., I also thought it could be our chat plugin which I removed from the test server, possibly Oraxen but I havent tested removing Oraxen yet.

austere hawk
#

got a question. So im using this placeholder called "Statistics" to show stats on leaderboard but im trying to make new season and im not sure how to reset all stats.

sharp jay
austere hawk
sharp jay
austere hawk
#

Its empty

#

Ill start now.

sharp jay
#

kk

austere hawk
#

Uh

#

It still shows data of some people

sharp jay
#

and you deleted it from your main world?

austere hawk
#

Yup

#

I use DecentHolograms and Ajleaderboards

sharp jay
#

stop the server refresh the folder then delete

austere hawk
#

hold on ill ask ajleaderboards discord

#

I think something wrong on their end

sharp jay
#

For that plugin

austere hawk
#

Wheres that?

#

oh

sharp jay
#

Inside the ajleadboard

austere hawk
#

Theres no Cache folder

#

Only yml

sharp jay
#

It’s a .db

#

File

austere hawk
#

Cache.mv.db?

sharp jay
#

I think so

#

Ye

frosty burrow
#

Is there any way to use delayed execution like setTimeout() in javascript expansion?

#

It seems nashorn engine doesn't support setTimeout()

harsh kayak
#

Hi, I need some help. I have server 1.8.8 and mysteriously my placeholders are not working. Download reload etc.. everything works but it doesn't want me to convert placeholders like %server_name% or anything else.

tender vaporBOT
urban marsh
#

Could you provide this to us?

tender vaporBOT
urban marsh
#

Okay here is some of the things i can see:

  1. You are missing Citizens, and CommandNPC needs it.
  2. The world Lobby seems to be corrupt, id try to fix it using https://github.com/Fenixin/Minecraft-Region-Fixer
  3. Try going to the placeholderAPI folder and deleting all the expansions, you can then try to redownload them and see if that works.
  4. Your IP is in that log file, just gonna warn you that i now know where your bed sleeps. (Joking of course but do watch out with what you paste)
#

@harsh kayak

harsh kayak
urban marsh
#

Could you try the following for me?

Ingame run /papi dump and send me the generated link.

And also try /papi parse me %server_name% What does that return?

urban marsh
#

Just curious- where are you trying to use the placeholder?

harsh kayak
#

On the Tab about the unknown. I'm using his addon for placeholder integration but I guess I found out that there is a bug on his side?

urban marsh
#

I dont see anything wrong with what i saw other than what i pointed out.

The parse command is also working just fine which means that the bug is not within placeholderapi but rather within the plugin you are using. try asking the developer if he forgot about it maybe?

austere hawk
#

Hi im using plugin ShopGuiPlus and i Need To Remove this second $ From placeholder, can u help me how to do it?

#

I have Now $$4343

viral pulsar
#

Hello, how can i use the math expansion without decimals %math_<math expression>%

junior musk
#

%math_0_expression%

viral pulsar
coral drum
#

/npc rename %playerlist_online_world<map2>% Players

#

doesnt work

jolly herald
#

whenever i update my expansions it wont work and keeps saying theres still two updates. how do i fix ?

austere nymph
#

#placeholder-api message

I found a workaround for "illegal characters in chat". By adding the commnad you need to commands.yml for bukkit you can get aorund the root issue to do with emojis/unicode characters/glyphs. After adding this below and rebooting the server I could run /fixtool out of DeluxMenus and it worked.

fixtool:

  • papi cmdparse me irename %formatter_text_replace_🕹_஻_{checkitem_getinfo:mainhand_nameequals:~}%
  • papi cmdparse me irename %formatter_text_replace_🐰_஼_{checkitem_getinfo:mainhand_nameequals:~}%
vivid sparrow
#

what are you even trying to do @austere nymph ?

austere nymph
#

Fix items with broken glyphs in the name. We went to Oraxen recently and it had a limitation on the ID# for emojis so I needed to get somethign that would fix it for a player who had tools with broken glyphs in the name.

I was trying to just use essentials itemrename to fix them and found a couple placeholders that helped but was having an issue with trying to run papi cmdparse out of DeluxeMenus but had no issue running the command manually.

When you run a command from DeluxeMenus OR NPCs and the command has unicode characters like 🎂 or whatever you get kicked for "illegal characters in chat". I searched here in Discord first and saw a few mentions of the error but never saw a resolution(or did not understand the resolution)

I was just updating in case anyone else was having an issue that I was able to get past the error by adding a command/function in the commands.yml

austere nymph
mint fable
#

Well you're being kicked for literally using illegal characters from the player's perspective

#

you can't type them in chat yourself, can you?

austere nymph
#

Yes I can.. Above is the workaround I found for it

mint fable
#

i'm confused though

#

couldn't you do

#

- '[console] papi cmdparse %player_name% irename [placeholder] %formatter_textreplace:joystick:஻{checkitem_getinfo:mainhand_nameequals:~}%'

austere nymph
#

I saw the [placeholder] in documentation and wasnt sure how to use it.. That may be a better fix.

#

Will try. ty

mint fable
#

well wait

#

I still don't really understand what you're trying to do

#

what is irename

austere nymph
#

essentials:itemrename

mint fable
#

and that just takes whatever you put right after it and sets the name of the item?

austere nymph
#

its looking for the old unicode valuye and doing a replce on it with the new one.. renaming it propperly and the glyphs in the Event Tools name are fixed.
Again.. I saw the [placeholder] and wasnt sure how to use it in command... that might nbe a better fix and Ill def gie it a try

mint fable
#

I copied what you had before, no guarantees that works

#

all I changed was player to console and me to %player_name%

mint fable
austere nymph
# mint fable I would just stick to this

Ya still good to know for later how to [placeholder].. ty. Also it still kicked for illegal characters once I got your example working. Had to change from console to player too since itemrename has to be ran as player. I'm good though just adding my illegal character command to commands.yml seems to be working well enough to fix let the players fix their tools.

jolly herald
#

im on 19.2

rigid imp
sharp jay
rigid imp
#

Yw 🙂

#

And if there’s stuff you’re not sure about it, make sure to tell people that I usually response quickly in ajLeaderboards support 😉

iron gull
#

Hey there! i would like to re-verify my e-cloud account Srteam (ping on reply, i won't look often here)

gritty dove
gritty dove
#

Nevermind, was using old PAPI from sponge ^^, fixed!

vivid sparrow
#

Papi doesnt support sponge btw @Cuppas#0968

#

Ah nice

mint fable
#

caused unnecessary confusion

vivid sparrow
#

yeah ik

low moth
#

hey i want to around the tps number on my tab like 20 19 18 and not 19.89 12.4 etc
i dl maths on ecloud
TPS : %tps%

true vapor
#

i cant use cmi placeholders in decent holograms plugin papi show error and cmi_playertop_name not showing

limber ice
#

@true vaporwhat version of MC and Hologram

vague arch
#

i was sent here from essentials discord for help with essentials baltop placeholers

#

using any of the essentials baltop placeholders such as %essentials_baltop_player_1% it returns only a 0

#

even %essentials_baltop_balance_formatted_1% is returning a 0

true vapor
#

and max version

opaque linden
#

I need help

tender vaporBOT
#

There is no time to wait! Ask your question @opaque linden!

pure finch
#

hello i need help (i speak spaish for dude)

vague arch
#

still looking for help with essentials placeholders please

bleak salmon
#

Hi, does anyone know how to check how many potions a player has brewed (defined, for example, weakness for 4 minutes)

gilded lantern
vague arch
late inlet
#

need help, not sure what i have done wrong but its not displaying correctly

"&6%mcmmo_power_level% &8Power Level"```
#

i have tried parsing mcmmo power level and it returns %mcmmo_power_level%

#

i have a fealing that math is wrong but idk what i have done wrong. it was working in a earlier version of mc

late inlet
#

this is version 1.19.2

#

i do have mcmmo and math expansions installed

#

Is there anything you need to try and help me?

late inlet
#

fixed it

molten thorn
#

Hi everyone, I'm trying to use checkitem to look for specific nbt strings on an item and remove it, so far so good, I can look for the right owner of the item, but i've met a weird nbt string, which seems to be inside another string and I have no clue what the syntax would be.. I've tried several things but none of them seems to work.. here is the pastebin of the item I'm trying to work with : https://pastebin.com/7sZtV3G8

The ownername works just fine, it's the Badges:[{id:....}] I can't find a solution for.

thanks for the help and thanks for the amazing plugin!

zinc ermine
#

Hello, is there any way to use . in placeholders? Maybe I'm looking in wrong place, but RegexReplacer looks like it's not contains . character...

weak wyvern
#

o/

#

trying to use worldguard placeholders in TAB to display the current reigon the player is in. This works, but I'm trying to make each region have a specific color assigned to it

#

How it looks rn:

#

How it should look, with the changing in colors:

#

Any thoughts on how to achieve this?

weak wyvern
#

Update: Turns out color values can be passed through flags, problem is there's now a massive [greeting = to get rid of

#

Weirdly enough, worldguard has a %worldguard_region_flags% placeholder to display all flags, but no placeholder to display single flags

#

Which would make this far easier

#

Any thoughts?

mint fable
#

There is an expansion that might help

#

trying to find the one

#

@weak wyvern the String expansion has a replacecharacters function

#

You can define in the config what you want to be replaced with what, so you could either define the names to be replaced with color+name, or use the flags you defined and replace [greeting= to and ] to

mint fable
#

testing with it now to figure it out

weak wyvern
#

I think just replacing the name from worldguard to color+name would work

#

I'll give it a try

mint fable
#

yep, the latest expansion version generates an example of how to use it in the papi config.yml

#
  string:
    replacements:
      worldguard-regions:
        'Titan': '&6Titan'

that's what I ended up with

marsh spire
#

Hello, does anyone know if there is a dependency or a way to count the people who have a rank, within a scoreboard like "There are 4 VIPs on the server"

weak wyvern
#

Thank you so much!

strange moat
#

Hey, is there a placeholder for counting how many players are in a scoreboard team?

sharp jay
#

Need more context as like vanilla scoreboard or like what ect

weak wyvern
#

they're just var names. thats why you can assign a score to anything

#

so it could be hard to implement

weak wyvern
autumn stream
#

It must work

#

It works in online JavaScript. But why dnw in JavaScript expansion?

mint fable
#

the return is surrounded in `` not ''

autumn stream
#

So, nashorn engine not support ``?

weak wyvern
#

performing /scoreboard players list gives you the number of entities being tracked in a scoreboard

strange moat
#

I'll try it one sec

weak wyvern
#

so /execute store score result score <SOMETHING> <DUMMYOBJECTIVE> run scoreboard players list will put the number of tracked entities in a scoreboard value

#

under the name of SOMETHING

strange moat
#

If it was not a Vanilla scoreboard would there be any way?

weak wyvern
#

You can then use ScoreboardObjectives within papi to grab that number

weak wyvern
strange moat
weak wyvern
#

plugins can make the process easier

weak wyvern
strange moat
#

Ok I think I'm just going to make my own scoreboard plugin then, because I need to avoid command blocks and selectors because the server is sharded. Thank you for your help anyways

weak wyvern
#

best route to go tbh, command blocks and plugins mix badly

#

gl!

strange moat
#

thanks!

weak wyvern
#

@strange moat btw the TAB plugin supports scoreboard customization, and has way better integration with papi

#

if you want to save yourself the trouble of writing one

autumn stream
#

TypeError: expr.includes is not a function

#

Bruh.

#

Expr - string

mint fable
mint fable
vivid sparrow
autumn stream
solid rain
#

hey i have a little problem with placeholderapi in the minecraft chat it shows all the time also support you can create custom placeholder like this or support center text can someone help me?

autumn stream
#

Why "includes" not supported by nashorn engine?

solid rain
#

I don't understand

vivid sparrow
#

because it is not

autumn stream
#

TypeError: expr.indexOf is not a function

#

...

vivid sparrow
#

show the code

autumn stream
#
var placeholder = '%vault_group%'

function placeholderCheck() {
    switch(placeholder) {
       case "default": return '[∞]';
       case "gercog": return '[∞]';
       case "knight": return '[∞]';
       case "gladiator": return '[∞]';
       case "imperator": return '[∞]';
       case "magistr": return '[∞]';
       case "knyaz": return '[∞]';
       case "stazher": return '[∞]';
       default:
          var expr = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%luckperms_group_expiry_time_"+ placeholder  + "%");
          expr.replace(/[ ]/g, "")
          var mo = !expr.indexOf("mo") ? parseInt(expr.split("mo")[0]) : 0
          expr = !expr.indexOf("mo") ? expr.split("mo")[1] : 0
          var d = !expr.indexOf("d") ? parseInt(expr.split("d")[0]) : 0
          expr = !expr.indexOf("d") ? expr.split("d ")[1] : 0
          var h = !expr.indexOf("h") ? parseInt(expr.split("h")[0]) : 0
          expr = !expr.indexOf("h") ? expr.split("h")[1] : 0
          var m = !expr.indexOf("m") ? parseInt(expr.split("m")[0]) : 0
          expr = !expr.indexOf("m") ? expr.split("m")[1] : 0
          var s = !expr.indexOf("s") ? parseInt(expr.split("s")[0]) : 0
          
          expr = ((((mo*30+d)*24+h)*60+m)*60+s)
          var days = Math.floor(expr/(24*60*60))
          expr -= days*24*60*60
          var hours = Math.floor(expr/(60*60))
          expr-= hours*60*60
          var mins = Math.floor(expr/60)
          expr -= mins*60
          return (days != 0 ? days+" д. " : "")+(hours != 0 ? hours+" ч. " : "") +(mins != 0 ? mins+" м. " : "" )+(expr != 0 ? expr+" с. " : "")
    }
}
 
placeholderCheck()```
vivid sparrow
#

look at what I sent and what you have

autumn stream
#

Same.

#

!(-1)==true

#

Oh. I need false

#

But it dont change anything (error)

vivid sparrow
#

var expr = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "luckperms_group_expiry_time_"+ placeholder + "%");
use this to stop papi from parsing %luckperms_group_expiry_time_"+ placeholder + "% first

autumn stream
vivid sparrow
#

expr.indexOf("mo") != -1

autumn stream
vivid sparrow
#

👍

autumn stream
#

but lets try.

autumn stream
#

expr.indexOf is not a function

#

Same error

#

@vivid sparrow any idea?

molten thorn
buoyant plover
#

Hello, Can someone help?
I have placeholder: %pinger_motd_testplugins.com:25565%
And it contains this info: ArenaName Status Online/Max

How can i slit it to 4 different placeholders?

%ArenaName%
%Status%
%Online%
%Max%

red pine
#

!placeholder server

#

!server

#

whats placeholder for playtime

tender vaporBOT
austere hawk
cloud mortar
#
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2.jar:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        ... 6 more
Caused by: java.lang.ClassNotFoundException: me.blackvein.quests.quests.IQuest
        at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Class.java:3402) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Class.java:2504) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2.jar:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        ... 6 more```
#

anyone know how to resolve this>

wheat kayak
#

Hello

#

/papi parse me %player_item_in_hand_level_EFFICIENCY%

#

it spam

ionic fractalBOT
vivid sparrow
#

the name for efficiency is DIG_SPEED, look at this page for more

tender vaporBOT
autumn stream
normal dagger
#

hey, what is the placeholder for online player count of a server? i have bungee server so i need to specify which server

tender vaporBOT
normal dagger
#

nvm found it

wheat kayak
#

dexulemenu not connect

#

view_requirement:
requirements:
type: '='
input: '%player_item_in_hand_level_DIG_SPEED%'
output: '2'

vivid sparrow
#

the type is == iirc

wheat kayak
#

[01:58:34 WARN]: [DeluxeMenus] No type set for requirement: type for path: items.hieusuat2.view_requirement.requirements.type
[01:58:34 WARN]: [DeluxeMenus] No type set for requirement: input for path: items.hieusuat2.view_requirement.requirements.input
[01:58:34 WARN]: [DeluxeMenus] No type set for requirement: output for path: items.hieusuat2.view_requirement.requirements.output
[01:58:34 WARN]: [DeluxeMenus] No type set for requirement: deny_commands for path: items.hieusuat2.view_requirement.requirements.deny_commands
[01:58:34 WARN]: [DeluxeMenus] No type set for requirement: type for path: items.hieusuat3.view_requirement.requirements.type
[01:58:34 WARN]: [DeluxeMenus] No type set for requirement: input for path: items.hieusuat3.view_requirement.requirements.input
[01:58:34 WARN]: [DeluxeMenus] No type set for requirement: output for path: items.hieusuat3.view_requirement.requirements.output
[01:58:34 WARN]: [DeluxeMenus] No type set for requirement: deny_commands for path: items.hieusuat3.view_requirement.requirements.deny_commands

vivid sparrow
#

ah, you are missing the name of the requirement

wheat kayak
#

oh okey

#

😄

#

thanks

wicked chasm
#

hello, is there any placeholder that show blocks mined in certain world or world region? same for mobs?

solid rain
#

hey i have a little problem with placeholderapi in the minecraft chat it shows all the time also support you can create custom placeholder like this or support center text can someone help me?

runic frost
lime compass
#

java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null

lime compass
#

<dependency> <groupId>me.clip</groupId> <artifactId>placeholderapi</artifactId> <version>2.11.2</version> <scope>provided</scope> </dependency>

#

MAIN.JAVA
(onEnable)
if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) { new PlaceholderAPI(this).register(); }

PLACEHOLDERAPI.JAVA
``private nicc.devs.skyronhubcore.main Plugin;

private final nicc.devs.skyronhubcore.main plugin;

public PlaceholderAPI(nicc.devs.skyronhubcore.main plugin) {
    this.plugin = plugin;
}

@Override
public String getAuthor() {
    return "someauthor";
}

@Override
public String getIdentifier() {
    return "example";
}

@Override
public String getVersion() {
    return "1.0.0";
}

@Override
public boolean persist() {
    return true; // This is required or else PlaceholderAPI will unregister the Expansion on reload
}
@Override
public String onRequest(OfflinePlayer player, String params) {
    etcetc

    return null; // Placeholder is unknown by the Expansion
}``
hearty crest
#

Heya, Im using PAPI on 1.7.10 and I'm getting the following error on all cloud expansions, wondering if 1.7.10 support is 100% over with? or should I downgrade to a lower version of PAPI? Tried the older version of the expansion, error still occurs.

Failed to load expansion class TownyChatExpansion - One of its properties is null which is not allowed!
java.lang.NullPointerException: The expansion version is null!
mint fable
#

I'd say get somebody to fix the townychatexpansion if you can

#

or like you said, try downgrading papi enough to where it doesn't care anymore but... probably not a great idea

radiant bay
#

%essentials_unique% doesn't work

#

I'm trynna put it on my shit for factions plugin

#

o mb

#

i was stupid

prime veldt
#

Does anyone know of a placeholder that shows last item broken
I tried %player_item_in_hand% but shows air in hand lol

mint fable
#

What are you trying to do with that info?

prime veldt
#

discordsrv alert system

  - Trigger: PlayerItemBreakEvent
    Channel: server-chat
    Conditions:
      - brokenItem.material.name() == "name().replace("_PICKAXE", "")"
    Embed:
      Color: "#00ff00"
      Author:
        ImageUrl: "{embedavatarurl}"
        Name: "{name} Broke a Pickaxe"

Need to replace
Name: "{name} Broke a Pickaxe"
with "{name} Broke a %placeholder%"

mint fable
#

you can't use the brokenItem part in the Embed section?

prime veldt
#

the reload gives an error with extra " in it

mint fable
#

extra "? from where?

prime veldt
#

the way its setup the condition looks for any type of pickaxe.
not sure how to make brokenitem show as the pickaxe used

#

i tried using the code from condition to tell the name: what type of pickaxe but shows errors on discordsrv reload

mint fable
#

ya... idk how the discordsrv works with that sadly

#

trying to read it but not really sure

prime veldt
#

the only thing that i think would work is a placeholder in that area

mint fable
#

not quite sure how they brokenItem.material.name() it doesn't follow methods from spigot

prime veldt
#

ill give that a shot.

mint fable
#

getBrokenItem().getType().name() would be the methods so 🤷‍♂️

prime veldt
#

yup dint work lol

mint fable
#

maybe the support discord can be of help

mint fable
#

Name: "{name} Broke a ${brokenItem.material.name()}"

#

I think using brokenItem instead of getBrokenItem() might be a bit weird/hacky if that's how it's doing it fyi...

#

but 🤷‍♂️

prime veldt
#
[DiscordSRV] Error while parsing expression "brokenItem.material.name() == "name().replace("_PICKAXE", "")"" for trigger "playeritembreakevent" -> EL1041E: After parsing a valid expression, there is still more data in the expression: '_PICKAXE'

Property or field 'material' cannot be found on object of type 'org.bukkit.craftbukkit.v1_19_R2.inventory.CraftItemStack' - maybe not public or not valid?
#

dont know thats the responce i got from that. however that did not cause issues with discord reload which is nice to know

#

"{getBrokenItem() }" worked but it said air not what broke during event

mint fable
#

hmm

mint fable
#

what about {getBrokenItem().getType().name()}

#

i mean, if it's air it's air

#

but

#

very lame

prime veldt
#

does a recall method exist?
Still kinda noobish at this
${#event.getHandlerLists().getBrokenItem()} doesnt work but wondering if there is away to find the item last used.
yha its air

austere hawk
# mint fable very lame

hello there,

so i m using tab and downloaded placeholder of vault but it’s still showing %vault_rank% in tab instead of the rank i have.
Placeholders i have in hub :-
ajqueue, bungee, player, server, statistics, supervanish, vault, world.
I downloaded luckperms placeholder expansion through /papi ecloud download LuckPerms and it showed successful and I reloaded it as well but if I do /papi list luckperms doesn’t show up :/

nocturne sphinx
vivid sparrow
#

update essentials @nocturne sphinx

nocturne sphinx
#

ty bro!

shell bison
#

Hi! Do you maybe know of any placeholder that would always return blank? I kinda need Null value or some kind of empty character to put into the Item's lore. I checked this discord and other solutions but nothing seems to work so far.
edit: nvm got it, if anyone's wondering it's U+0020 SPACE, you can get it here: https://invisible-characters.com/
or copy this: > <

vague arch
#

hello can someone point me on how to fix this console error that keeps popping up -[PlaceholderAPI] Failed to load expansion class VipSystemExpansion

#

under it said version info null

#

also keep getting this one - [PlaceholderAPI] Cannot load expansion playertime due to a missing plugin: PlayerTime even though PlayerTime is a plugin on the server

rough lake
#

How do you reset a statistic ?
within PAPI?

mint fable
rough lake
austere hawk
#

the support is shit been a day and none helped

austere hawk
urban marsh
# austere hawk the support is shit been a day and none helped

My dude- we are all volunteers, this isnt a premium plugin and we all have jobs and our lives, sometimes your question gets buried and you'll have to ask again, keep in mind that we get a LOT of questions a day.

As for your issue, its a bungeecord server. That means that PlaceholderAPI installed on the bungee server wont work and as such wont be supported.

If you think placeholderapi doesnt work on your hub server, please do the following:

Try doing /papi parse me %placeholder% and see what it outputs

Try removing the expansions from the expansion file and reinstall them.

Try Downloading the expansion manually.

If none of these steps work. Then do /papi dump and send the generated link here.

austere hawk
urban marsh
#

Replace placeholder with %vault_rank%

austere hawk
#

Plugins ive downloaded on hub : ajQueue, AntiSpam, BlockParticles, Citizens, Command4bungee, DecentHolograms, DeluxeHub, Essentials, EssentialsChat, PlaceHolderAPI, RotatingHeads, SuperVanish, TAB, Vault, ViaVersion, VoidGenerator and WorldEdit.

fervent spire
#

If none of these steps work. Then do /papi dump and send the generated link here.

random hornet
# austere hawk Plugins ive downloaded on hub : ```ajQueue, AntiSpam, BlockParticles, Citizens, ...

im a retired plugin developer...
but vault is not a standalone plugin, its only an interface for plugins.
You need to download the actual permission plugins.

And fyi papi is also only an interface or api for translating all the %abcde% related strings
so by papi download luckperms you dont actually download luckperms itself, but you are probably downloading the symbols (idk much about papi)

and most importantly, luckperms dont work with vault afaik

in short: you need to download the actual permission plugins to make things work, if thats what you are asking for

random hornet
#

hold on a second let me read your info in details

austere hawk
#

I just want it to show the group player has like owner, admin , member etc. on the tab

random hornet
#

you dont have a pemrission plugin... tho
permission plugin is something like luckperms, permissionsex, etc
it manages your permissions what you and your players can do, and also it hooks with placeholderapi

#

but i dont think you have any of them installed, if you are relatively new to spigot?

austere hawk
#

I’ve luckperms

#

in the bungee

random hornet
#

hmm

austere hawk
random hornet
#

oh im sorry then my bad
thought you were new
i quit spigot like a year ago so forgot about everything lol
let me check

#
A common misconception with the proxy version is that it's a replacement for installing LuckPerms on your backend Spigot/Sponge servers. This is untrue.

When LuckPerms is installed on a proxy, it does two things:

It handles permissions checks made by plugins on the proxy. It does not intercept or handle permission checks made by plugins on the backend server.
It forwards update notifications and log messages around the network when messaging-service is set to 'pluginmsg'.
#

so you still have to install luckperms in your spigot servers

#

to make things work

#

luckperms bungeecord is only a channel for synchronizing stuffs across servers

#

you still need to install the spigot versions.. ?

austere hawk
#

you mean on the hub itself?

random hornet
#

yeah like in the hub plugins folder, where your spigot jar is located

#

the same folder as placeholderapi

austere hawk
#

let me download in the hub too

random hornet
#

oh ok

#

its still a fork of spigot so lmao

#

hope that helps tho

austere hawk
#

let me try

austere hawk
random hornet
#

no problem, great to hear that :)

austere hawk
#

another problem occurred haha

#

prefix doesn’t show in chat..

#

oh wait

#

nvm it works

random hornet
#

hmm

#

alr cool

austere hawk
#

thanks a lot

random hornet
#

npnp

austere hawk
#

also

#

I want to import lifesteal’s luckperms data from lifesteal to hub how do I do that?

random hornet
austere hawk
#

I don’t have database tho

random hornet
#

hmm gonna be frank i havent used luckperms before
was mostly involved with permissionsex

#

im gonna check for you gimme secs

#

yeah so for luckperms you probably need a database

For data to sync, you must be using a remote storage type. All of your servers need to be connected to the same database.

theres probably no other ways to bypass this limitation

#

you can ask someone to write a custom storage implementation tho, that will just use their own hard way of solving it with flat files (local file database)

wise stump
#

You can just copy over the luckperms file

#

Luckperms used a web browser that is session based editing but you can just zip the entire folder and transfer it over and then edit it after

lime compass
lime compass
lime compass
wise stump
#

Just copy over the file of luckperms

austere hawk
wise stump
#

Yeah

austere hawk
#

So it will copy all the files?

wise stump
#

everything made in /lp editor is saved in the folder

#

there should be an option in the config as well to let you edit inside a file instead of the website but the websites a tad easier 😅

austere hawk
austere hawk
#

@wise stump

fiery basin
#

can anyone help me with deluxe menus trying to get the pl to give a spawner using silkspawners by console left_click_commands: ############## BUY ##############
- '[console] eco take %player_name% 500000'
- '[console] <silkspawners give %player_name% pig 1>'
- '[message] &6&lShop &8» &fYou bought a &ePig Spawner &ffor &a$500.000&

rugged widget
#

Can i set a timezone in the %server_countdown_dd.MM.yyyy.hh_26.12.2022.14% placeholder

wise stump
trim frost
#

Hello, is it possible to use the "CheckItem-Expansion" extension to check ItemsAdder items?

mint fable
#

Yes, if you hold the item and type /data get entity @s SelectedItem and send the picture here I can help

tender vaporBOT
trim frost
#

It's done !

mint fable
#

uh

#

I don't think you typed the whole command @trim frost

#

Did you type SelectedItem at the end?

#

Oh well i see it anyway

#

/papi parse me %checkitem_mat:apple,nbtstrings:itemsadder..id=tomato% try this

trim frost
#

Perfect, thanks ❤️

mint fable
#

are you trying to use == to compare strings?

trim frost
#

view_requirement: requirements: diamond_requirment: type: '==' input: '%checkitem_mat:apple,nbtstrings:itemsadder..id=tomato%' output: yes

mint fable
#

you have to use string equals

#

Also, surround your output with ''

#

output: 'yes' comes out as yes
output: yes comes out as true

trim frost
#

thanks

#

And it's possible to used checkitems to remove item? because i saw that %checkitem_remove_<modifier1>,<modifier2>,<...>% - Removes the items from the players inventory - Can be used with amount, it just has to be after. (Ex. %checkitem_amount_remove_<...>% but it's not possible to use like a command?

mint fable
#

amount will be different from amt, which is what you want

#

%checkitem_remove_amt:10,mat:...%

#

if you use %checkitem_amount_remove_... it returns the number of items removed

warm flax
#

U can’t download folders only files 🦍🦍

stuck eagle
#

[23:08:25] [Server thread/WARN]: [PlaceholderAPI] Task #1661870 for PlaceholderAPI v2.11.2 generated an exception org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel BungeeCord'.
at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[paper-api-1.19.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:2033) ~[paper-1.19.2.jar:git-Paper-185]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201) ~[?:?]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.2.jar:git-Paper-185]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.2.jar:git-Paper-185]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1473) ~[paper-1.19.2.jar:git-Paper-185]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.19.2.jar:git-Paper-185]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.2.jar:git-Paper-185]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[paper-1.19.2.jar:git-Paper-185]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:305) ~[paper-1.19.2.jar:git-Paper-185]
at java.lang.Thread.run(Thread.java:833) ~[?:?]`

How can I check what task #1661870 for PlaceholderAPI is?

stuck eagle
#

I love you Barry

toxic nest
#

I forgot i think there was, but wasn't there a placeholder or placeholder type where you could see a stats for specific user?
like i would like to get a vault_eco_formatted for a specific user, but not the one who ran the command

mint fable
#

@toxic nest this

toxic nest
limber ice
#

was Javascript expansion removed from Papi?

balmy marten
#

Requires manual installation currently as an additional security measure

limber ice
#

I download latest and still not seen in installed list

#

it parses info but not even close to what it should be

#

I am testing on Paper 1.19.3

balmy marten
#

Does it happen with no expansions installed?

austere hawk
#

when i restart the server, i see that error
i stop and start the server, and see again
i stop and start the server (again) and all load without errors

#

you know?

#

it is a very rare error

#

only happen sometimes

balmy marten
#

Odd

austere hawk
#

right? it's weird

vivid sparrow
#

@lime compass show the full error

austere hawk
#

Hey, is it possible to use placeholders through console?

limber ice
#

Yes there is a Javascript expansion in the folder, just not in installed list

tender vaporBOT
tender vaporBOT
lime compass
vivid sparrow
#

Run mvn clean package

tender vaporBOT
lime compass
#

/mutebarry

#

I just get an even bigger error

tender vaporBOT
lime compass
#

also saw this 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: me.clip:placeholderapi:jar -> version 2.11.2 vs 2.11.1 @ line 90, column 21

#

so now its registered just not working

#

like no errors

#

but placeholders also aren't working

wide agate
#

Hi, is there a way to send a placeholder to the proxy with PlaceholderAPI so that you can use it there? The background is that I need a placeholder on the proxy, but it comes from a plugin on the sub-server.

wide agate
#

Really nobody can help o.O

limber ice
#

@wide agatethat can not be done with Papi, but there are plugins that will let you send info from your server to the proxy

limber ice
#

last time I used a plugin to do that is was 1.16.5 was latest, I will see if I can find name an if they work on latest MC now

#

I use RedisBungee but it is no longer available

wide agate
#

And with that I can route placeholders from the sub-servers to the proxy so that I can use them in the plugin on the proxy?

junior musk
junior musk
# wide agate And with that I can route placeholders from the sub-servers to the proxy so that...

To do that, you'd need a plugin on both BungeeCord and Spigot that interact with each other, one to send the placeholder from Spigot and one to receive it and use it on BungeeCord.
If you're making you're own plugin, you could take a look at how TAB does it with its Bridge https://github.com/NEZNAMY/TAB-Bridge
https://github.com/NEZNAMY/TAB
(even though it's quite complex)
otherwise, if you're looking for one already made, I doubt that there's any out there. You're better off asking in #1047749270331215913 or on the Spigot forums

wide agate
#

Yes, something like that, I kind of need something that reads out placeholders from the plugin on the sub-server and sends it to the proxy so that you can use it there.

junior musk
#

What's the plugin where you need the placeholders?

#

(also, do you use TAB?)

#

because one lazy solution that I used a few times was to hook into TAB on Bungee and parse the placeholders through there, and since TAB gets the values from the Bridge which gets them from PAPI, the job was already entirely done and I just needed to display it wherever I wanted in my plugin

#

but depending on where you want the placeholder, like, is it your own plugin? or is it a public one? if it's your own, I guess you could do this easily, but if it's one on the Internet, you'd need to get the source and change some parts to make it go through TAB somehow

wide agate
# junior musk but depending on where you want the placeholder, like, is it your own plugin? or...

I want to use this plugin here https://www.spigotmc.org/resources/bungee-chat.12592/
This must be done on the proxy. Because the placeholder I want to use is from our prefix system (also a public plugin, so not from me). The prefix plugin is on the subservers. Yes, I use TAB but not with the bridge because there were problems with different TABs on different servers. Therefore the tab is on each subserver. And runs without the bridge.

junior musk
#

ah, then that's not gonna work

#

what's your prefix plugin?

#

did you maybe set them in your permission plugin like LuckPerms?

#

if yes, then I'm pretty sure Bungee Chat works with it

#

yeah it even has a %prefix% placeholder

wide agate
junior musk
#

I doubt there would be any way to do this easily

#

I would have tried, but I'm sick and not home 🥲 so.... sorry =/

wide agate
#

Ok thanks for your help 🙂

junior musk
#

but honestly, I'd just recommend fully switching to LuckPerms and using stacked prefix meta instead of another plugin

#

stacked metas allow you to have multiple prefixes shown at the same time

#

the only thing you'd need then is a menu to select your prefixes like with ColoredPrefixes, but that should be doable with DeluxeMenus

limber ice
#

I switched to LP back a few years ago thats why I no longer use the redis plugin anymore

#

my Papi issue is Javascript expansion don't seem to be working right

obsidian egret
#

hello

junior musk
#

if you can't download it, then that normal, it was unverified because of security reasons, but you can download it manually from the ecloud if you need it

#

if it's not working, check the console on /papi reload, if it does register correctly or not, and if /jspexp works or not (I think that's the command)

limber ice
#

@junior muskI know I have to manually download it on latest Papi, server is Paper 1.19.3, it seems to work, just not return correct results of my file that worked before I upgrade to 1.19

junior musk
#

what's the placeholder you used and what's the script?

limber ice
#

    if (BukkitPlayer.hasPermission("chatcolor.white")) {
        return "&f";
    }else if (BukkitPlayer.hasPermission("chatcolor.darkblue")) {
        return "&1";
    }else if (BukkitPlayer.hasPermission("chatcolor.darkgreen")) {
        return "&3";
    }else if (BukkitPlayer.hasPermission("chatcolor.darkred")) {
        return "&4";
    }else if (BukkitPlayer.hasPermission("chatcolor.darkpurple")) {
        return "&5";
    }else if (BukkitPlayer.hasPermission("chatcolor.gold")) {
        return "&6";
    }else if (BukkitPlayer.hasPermission("chatcolor.grey")) {
        return "&7";
    }else if (BukkitPlayer.hasPermission("chatcolor.darkgrey")) {
        return "&8";
    }else if (BukkitPlayer.hasPermission("chatcolor.indigo")) {
        return "&9";
    }else if (BukkitPlayer.hasPermission("chatcolor.green")) {
        return "&a";
    }else if (BukkitPlayer.hasPermission("chatcolor.aqua")) {
        return "&b";
    }else if (BukkitPlayer.hasPermission("chatcolor.red")) {
        return "&c";
    }else if (BukkitPlayer.hasPermission("chatcolor.pink")) {
        return "&d";
    }else if (BukkitPlayer.hasPermission("chatcolor.yellow")) {
        return "&e";
    }else if (BukkitPlayer.hasPermission("chatcolor.black")) {
        return "&0";
    }else if (BukkitPlayer.hasPermission("chatcolor.strikethrough")) {
        return "&m";
    }else if (BukkitPlayer.hasPermission("chatcolor.underlined")) {
        return "&n";
    }else if (BukkitPlayer.hasPermission("chatcolor.bold")) {
        return "&l";
    }else if (BukkitPlayer.hasPermission("chatcolor.random")) {
        return "&k";
    }else if (BukkitPlayer.hasPermission("chatcolor.italic")) {
        return "&o";
    }
}
chat_color();
vivid sparrow
#

how do you know the value is not correct?

limber ice
#

well the perm I have is for red and it returns white

vivid sparrow
#

is chatcolor.red the only permission you have?

limber ice
#

yes

vivid sparrow
#

check %player_has_permission_chatcolor.white%

limber ice
#

I removed the others, would matter since I use weight

#

parse that ?

vivid sparrow
#

yes

limber ice
#

but lp says I don't have it

junior musk
#

do you have * or OP?

#

and check the placeholder either way to make sure

limber ice
#

yes, so now I have all perms in past it wasn't that way

vivid sparrow
#

never use *

junior musk
#

and /lp user <player> permission check <perm>

limber ice
#

I checked with non op player and the color was not working either

#

I have that perm in default group, but the weight is lowest on server compared to the perm I have in owner group

vivid sparrow
#

so what?

junior musk
#

doesn't matter

vivid sparrow
#

permissions are inherited

limber ice
#

so this don't check for weights

junior musk
#

you have both permissions, and white is checked first in the script

#

nope

vivid sparrow
#

permissions arent checked only for the highest parent

junior musk
#

you can put the if statements in the order you want tho

vivid sparrow
#

or use meta

#

meta = better

limber ice
#

guess I need to re-think how to give these perms out or how to give out the colors for chat

#

I have used meta in past for this, just not in this

#

so meta is not inherited

vivid sparrow
#

it is

#

but it has a weight system

limber ice
#

oh, and how would I check for meta in my code

junior musk
#

%luckperms_meta_<metaName>%

limber ice
#

ok, looks like I no longer have a meta setup, thought I did

vivid sparrow
#

good part is you can set the color directly

cursive ibex
#

Does PAPI have a Bungee API?

#

Shit

#

Gonna have to do some disgusting plugin message shit

vivid sparrow
cursive ibex
#

Thats unfortunate

lime compass
#

how can I call and get the value of a PLACEHOLDER

limber ice
#

/papi parse playername %placeholder%

lime compass
limber ice
radiant flare
#

Which version is the latest that still supports EzPlaceholderHook?

#

@sharp jay

tender vaporBOT
trim mist
#

Probably a couple years ago

radiant flare
#

I have an old plugin that will only run with the EzPlaceHolderhook

trim mist
#

You'll have to dig through that and find it yourself.

radiant flare
#

How would I do that?

trim mist
#

Test different jars until it works? Look through the GitHub history?

vivid sparrow
#

2.8.5 still has the class but it is deprecated

gilded flint
#

Hi

cyan dirge
#

Hello what is the placeholder for players IGN?

fervent spire
cyan dirge
#

i mean slash (/)

vivid sparrow
#

What slash?

urban marsh
#

What slash??

steel cargo
#

Jemmand deutsch hier

molten thorn
#

Good evening, could anyone lend me a hand finding the right %checkitem% syntax please?

steel cargo
#

I would like to have placeholderapi in tab [live] when I enter /live but when I enter it again it says "" but I don't know how to do that

plush dove
#

How do I change a negative number to a positive in math placeholder?

#

theres no absolute value option

#

and the number can sometimes be positive

mint fable
gray flint
#

Kinda confused here, even after registering the expansion, why does it say zero expansions are registered?

#

I can't attach media here?

#

;-;

#
[16:20:22 INFO]: [LifeSteal] Enabling LifeSteal v2.0
[16:20:23 INFO]: [PlaceholderAPI] Successfully registered expansion: lifesteal [2.0]
[16:20:23 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[16:20:23 INFO]: Running delayed init tasks
[16:20:23 INFO]: 0 placeholder hook(s) registered!
balmy marten
#

Does it show up in /papi list all?

vivid sparrow
#

yeah that message is referring to local expansions from papi's folder iirc

gray flint
gray flint
#

😦

restive slate
#

%changeoutput_ignorecolor_input:{public_home}_matcher:true_ifmatch:Si_else:No%

I am trying to do a changeoutput, basically the placeholder %public_home% returns a string which can be true or false

#

I have tried this way, but not working

#

any idea?

plush dove
#

either that or I'm blind

mint fable
#

EvalEx wiki

obsidian egret
#

hello

#

is this a papi thing or a plugin thing for the tab

rare minnow
#

you mean the scoreboard 987654321 ?

#

you need to tell me more becease i dont get it what the problem is

obsidian egret
#

alr

#

you see whenever you press tab in mc

#

it shows you a list of names

#

but whenever i do it on my spigot server

#

it just shows a small line

#

im not sure how to fix it tho

#

is it a plugin?

rare minnow
#

lol you know that is so small i did not even saw it until you mension it
and no papi does not doe this
atlease not with all the mods i am running
and i to use a scoreboard

obsidian egret
#

oh

#

alr thanks

opal mesa
#

i am using papi but for some reason it doesnt want to display it
im trying to use %localtimetime<SimpleDateFormat>%
anyone know how to make it work
or know a api for the date

rapid vessel
#

Hello, deluxemenus still support nbt_int: CustomModelData:.... ?

#

is model_data... sorry

silk cipher
#

Any place holders to just get the date? I'm only looking for the day of the month tho?

opal mesa
#

anyone know how i could display the chunk coords?

mint fable
#

Could use math with normal coordinates

#

divide by 16, round it off

#

@junior musk verified BW1058 fyi

austere hawk
austere hawk
dense surge
#

I need some help, when I do /papi list it dosen't show all of the extensions I have downloaded (vault) and is not working on my scoreboard

white ruin
#

Hi is there any option to get a player who sees a placeholder embedded on another player for example: overhead.

#

e.g: Player viewier = placeholderViewier;

sharp jay
austere hawk
#

itemsadder prefixes and this is my chat format code```kt
val rankPrefix: String = PlaceholderAPI.setPlaceholders(event.player, "%luckperms_prefix%")

    event.format = CC.translate("$rankPrefix${event.player.name}&f: &f%2\$s")
potent oxide
#

anyone know of a placeholder that can function the same as %player_item_in_offhand_data% except for a specific slot. Cant seem to get it to work the same way with checkitem. (or check if an item in slot is full durability)

frosty reef
#

I remember there being a issue with some hosts blocking placeholderapi, what was the bot command for it?

stiff crystal
#

could someone help me out here, im new to installing plugins on servers, and im trying to understand how to install placeholderAPI and join title plugin to work, but i cant get anything to work. Im not even getting the config file that PAPI is mentioning

mint fable
#

Or %checkitem_inslot:offhand,data:0% maybe

potent oxide
#

thank you^^ seems to return "yes" with that second one no matter how i change the item in the first hot bar slot

#

should it return a number?

green osprey
vivid sparrow
#

That's the Nashorn implementation and in your image it is Quack. I dont think the same engine/context can be used because there's specific variables set for each evaluation

#

Also, hmm, QuackContexts should be closed after execution

keen mica
#

Is there any way to store colour in a javascript placeholder?

vivid sparrow
#

Store as in?

keen mica
#

Ah, I cant send imagse

#

Just a tick

#

So this is a regular placeholder

#

I am using Data.js from here and would love to be able to store the colour featured

#

i.e. I did /papi parse me %javascript_data_set,job-prefix,&#00AAAAJustice Secretary%

#

But it quite literally prints out

&#00AAAAJustice Secretary

#

I've tried it with MiniMessage format too sadly

#

Did you ever figure it out by chance?

vivid sparrow
#

it depends on the plugin you are using

#

for example luckperms doesn't parse the format

#

so if the plugin where you use the placeholder uses &#RRGGBB for hex, it will work, otherwise you have to use the long spigot format &x&R&R&G&G&B&B

lament meadow
#

%deluxemenus_meta_<key><dataType><default_value>% comment on le met au serveur ?

#

how do you add it to the server?

tender vaporBOT
ornate stone
#

How can I put that when a person has that specific rank he sees an enchanted item on deluxemenus?

wet knot
#

Hey

#

im using deluxechat and deluxetags, but when i add the placeholder of deluxetags to deluxechat, whole deluxechat isnt working anymore

mint fable
potent oxide
#

ahh ok gotcha! I need that exact setup with inventory slot 0 (first hot bar slot). Is there any way I can set that up?

mint fable
#

use inslot:0 iirc

#

?checkitem

tender vaporBOT
mint fable
#

wiki has a link to slots tho this

potent oxide
#

cj youre awesome my server wouldnt exist without you /checkitem lol

#

thanks so much^^

green osprey
# green osprey Same thing produce nashorn

Currently, js expansion doing this:

import javax.script.ScriptException;

import org.openjdk.nashorn.api.scripting.NashornScriptEngineFactory;

public class Leak {
    public static void main(String[] args) throws ScriptException {
        var factory = new NashornScriptEngineFactory();
        while (true) {
            var engine = factory.getScriptEngine("--no-java");
            System.out.printf("Result: %s\n", engine.eval("1 + 1"));
        }
    }
}

if we take a look at getScriptEngine (https://github.com/openjdk/nashorn/blob/ab2542ea0f3decad033991916167dbce4a46f314/src/org.openjdk.nashorn/share/classes/org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory.java#L233), we will see that it's create all the time new object, when we can just use one ScriptEngine for everything, simply rebinding all needed variables

(You can try running this code by yourself and make dump via jmap, then analyse dump and see that jdk.internal.ref.CleanerImpl$PhantomCleanableRef top consumer, when in NORMAL applications, should be byte[])

modern spire
#

and it deleted all extensions I had

tender vessel
#

hello

#

/papi ecloud download JavaScript it does not work

tender vessel
#

txh

clever plinth
clever plinth
mint fable
#

I believe it's timing out trying to connect to it

#

might be blocked or smthn

clever plinth
#

Ohk

clever plinth
mint fable
#

?startuplog

tender vaporBOT
mint fable
#

send that over, but I gotta go atm

clever plinth
mint fable
#

it looks like it timed out because of updater

#

can you disable it for papi?

pastel vortex
#

Guys, hi, i have bug with papi or vault, can someone help me?
I have papi for vault, prefixes in animatedsb working, but balance - no ( using %vault_eco_balance_fixed%)
UPD: I can show in voice channel, if you need

clever plinth
clever plinth
#

Bro it's kinda weird but i delete place holder and reinstalled it and it fixed my problem

#

Thanks for your support

uncut matrix
dusty roost
#

Seems like PAPI broke in 1.19.3

#

Things like %player% dont work with excelentcrates as well as gadgetsmenu placeholders

tender vaporBOT
dusty roost
#

Ive done that

#

Still looks like this

#

Also, Gadgetsmenu hooks into papi on its own, theres no ecloud

#

But has it like this

mint fable
dusty roost
mint fable
#

You have sent proof that you have not done that

dusty roost
#

which one?

mint fable
dusty roost
#

I did that though

mint fable
#

You downloaded the expansion

#

Nice

#

That's part of it

uncut matrix
#

%player% -> %player_name%

#

...

mint fable
#

Make sure to read whole prompts this

uncut matrix
#

cj you have experience using Javascript expansions?

mint fable
#

a bit, ya

dusty roost
#

So let me rephrase to make sure I understand. I need to go into other peoples code and change it to player_name?

uncut matrix
uncut matrix
mint fable
dusty roost
#

But that doesnt solve the issue that hooks show working but dont

#

Like with Gadgetsmenu

#

By update I mean from 1.19.2->1.19.3

#

Player_name fixed excellentcrates

#

Any idea whats breaking gadgetsmenu?

mint fable
#

?

dusty roost
#

Yes