#placeholder-api

150650 messages · Page 59 of 151

vivid sparrow
#

since you have % { %% } %

primal tartan
#

I can't find the papi of the Guilds plugin. Who can tell me

vivid sparrow
#

%math_({formatter_text_replace_,__% this is the placeholder it tries to parse, and maybe this %}/100)*3% as well

primal tartan
#

Thank you i'm connected

#

I can't find the papi of the Guilds plugin. Who can tell me

vivid sparrow
#

=check @primal tartan

tender vaporBOT
primal tartan
#

I asked my friend

#

He is not good at English. He is next to me now

#

I asked her to open his account

heady urchin
#

any chance you could help me?

tranquil bramble
#

@turbid tide hi, Star is here ?

tender vaporBOT
modern lynx
#

Is there a way to get a random player name with any expansion?

arctic loom
#

Deeply nested placeholders wouldn't work.
A workaround could be the shortcut placeholder

heady urchin
#

basically allows me to put 2 placeholders into 1

primal tartan
#

Hi, I let my friends in with me, let my friends ask for the rest

heady urchin
#

and then put that 1 into the math equation

grim mason
#

What is the papi of guilds?

turbid tide
turbid tide
modern lynx
#

thanks

turbid tide
#

You can try and use the nested placeholders expansion. I am not sure how it works tho.

turbid tide
#

what even is a shortcut placeholder?

tranquil bramble
#

And how do I do it, I don't really understand?

heady urchin
#

Can someone tell me how to use precision in math expansion

#

it used to be like this but its not working

turbid tide
heady urchin
#

/papi parse me %math_({conditionaltext_money}/100)*3[precision:0]%

turbid tide
heady urchin
#

ah okay its been changed then?

turbid tide
#

yeah

heady urchin
#

/papi parse me %math_0_({conditionaltext_money}/100)*3%

turbid tide
#

well there's more than just precision now. there's also rounding I think. but yeah

turbid tide
heady urchin
#

ty for all help peoples

clear bloom
#

Hello! I have a server with PlaceholderAPI but some placeholders don't work, even though I have all needed expansions downloaded. Could anyone help me, please?

turbid tide
turbid tide
turbid tide
clear bloom
turbid tide
#

well. it doesn't look like you have any economy plugins tho.

#

vault is not an economy plugin. its just a bridge

clear bloom
turbid tide
turbid tide
#

👍

flat peak
#

is there a placeholder for the worldguard region title of the region you're currently standing in?

turbid tide
flat peak
#

i mean the title that comes on your screen when entering a region

#

if set up

turbid tide
#

ah. nope. no placeholder for that

flat peak
#

oh rip

#

also is this craftconomy or craftconomy3?

#

%craftconomy_<currency>[option]%

turbid tide
#

it may still work with forks

#

or stuff like that

flat peak
#

i dont find what's the difference between craftconomy and "" 3

turbid tide
#

can you link me craftconomy 3?

flat peak
#

well i downloaded it from the same above

#

so i assume it's the same

turbid tide
#

oh. probably

#

I mean the one from above

#

is at major version 3

#

so probably that's the difference. just a more updated one

flat peak
#

yea probably

#

hmm the placeholder doesnt seems to working

#

maybe i entered it wrongly

#

doesnt work

turbid tide
#

can you try with /papi parse me %placeholder% ?

turbid tide
flat peak
#

and the placeholders are
%craftconomy_coin_@int% and
%craftconomy_dollar_@int%

turbid tide
#

oh nvm. it does not

#

can you send a full startup log @flat peak please?

tender vaporBOT
vivid swift
#

hi will it be an update for vault ?

turbid tide
vivid swift
#

vault papi extension its not u guys ?

turbid tide
#

oh. what update does it need?

#

thought you were talking about the plugin since you didn't mention extension

vivid swift
#

%vault_eco_top_balance_#% does not workd on 1.17.1 with last vault update and last papi update

turbid tide
vivid swift
#

but if i choose 2 version beind of vault expension it work but it bring my server up to 100 % cpu usage and ram

turbid tide
#

there's a test build pinned if you want to try it. for essentials expansion I mean

vivid swift
#

do you have the placeolder for essential that give baltop ?

turbid tide
#

they're listed

vivid swift
#

yes i would love thise expension 😄

#

i am lost where is the build message in discord or on essential site ?

turbid tide
# flat peak https://paste.helpch.at/dujusamuli.md

oh yeah... [18:21:52] [Server thread/WARN]: [PlaceholderAPI] craftconomy is attempting to register placeholders via a PlaceholderHook class which is no longer supported! the CraftConomy expansion needs updating.

turbid tide
flat peak
#

oh is there any way i can do something?

turbid tide
# flat peak oh is there any way i can do something?

the only way would be to contact the developer of the expansion but he seems to not have been around for a while. You could also contact the developers of the CraftConomy plugin itself and add them to add official placeholders instead

flat peak
#

or i can use another economy plugin XD

turbid tide
flat peak
#

but yea thanks for your help

#

uhh maybe

turbid tide
#

its economy is pretty solid

vivid swift
#

i have find the essential expenssion but not able to find new placeholder 😦

flat peak
#

i'm looking for one which supports atleast 2 currencies

turbid tide
turbid tide
#

press it

#

it will take you here:

#

I'll just update the pinned in a second tho to have them listed there

vivid swift
#

mayby my adblock 😦

#

maybe *

#

thanks alot for ur time

turbid tide
#

but you're welcome 👍

#

btw @vivid swift you will need to use development builds of essentials as well

#

it doesn't work on 2.18.x

vivid swift
#

yep already have dev build 😄 thanks alot

turbid tide
#

yw 👍

vivid swift
#

work like a charm 😄

#

Blitz u are THE man 😄 have a great day

turbid tide
#

New test build for the Essentials Expansion. This one adds the baltop placeholders that were removed from the Vault Expansion with a lot of performance improvement.

Added placeholders:

%essentials_baltop_balance_fixed_<position>%
%essentials_baltop_balance_formatted_<position>%
%essentials_baltop_balance_commas_<position>%
%essentials_baltop_balance_<position>%
%essentials_baltop_player_<position>%```

As you can see the formatting from vault will still work here.
Exampels:
```diff
- fixed: 1000000
- formatted: 1M
- commas: 1,000,000.00
- no special format: 1000000.00

The player placeholder returns the display name of the player from the respective possition.

All positions start from 0. So:```diff

  • Top 1 will be position 0
  • Top 2 will be position 1
  • etc```

At the moment, the baltop placeholders might not load when you start the server. You will probably have to run a command like /baltop to load them into cache and then they will work.

turbid tide
#

@errant iron what u think of my message? xD

latent cargo
violet shell
#

whats the best way to make a leaderboard with placeholders? Is there any easy way to do that?

warm topaz
#

some expansions may already handle a leaderboard, but there is a plugin called LeaderHeads that can manage leaderboards for all placeholders

violet shell
#

any comment on which is better (prefermance or usability wise)

#

welp leaderheads doens't have 1.17 supported and hasn't been updated as recently, so i'll use aj

errant iron
arctic loom
#

Would never support such a lazy thing

turbid tide
#

lmao

latent cargo
arctic loom
#

Imagine there being like a tab that shows what servers you share with someone...

latent cargo
#

Already looked

#
  • doesn't really make sense though because i never talk in them.
#

Luckperms?

grim urchin
#

Regarding the PAPI plugin. There are no placeholders for checking achievements? Or can I make a check in some other way?

turbid tide
#

pretty sure there are placeholders for that

grim urchin
#

I forgot to look there for something 😄

arctic loom
slate berry
#

hello is there any way that i can display a given value for a given placeholder? e.g.% statistic_mine_block_usernr1%? I'd like to rank anything like block mining.

#

Sorry but my bad eng :<

#

E.g.
%statistic_mine_block_user1%
%statistic_mine_block_user2%
Etc

turbid tide
random hornet
#

so how to register custom placeholder?

#

i am using a placeholderexpansion class and PlaceholderAPI.registerPlaceholderHook(bla bla bla
this method seems to be deprecated

turbid tide
#

new PlaceholderClass().register() in your enable method

random hornet
#

thx a lot

gloomy flume
#

is there a placeholder to check the server time?

#

like if the time is to 0 ticks there is a boolean

vivid sparrow
#

%player_world_time%

gloomy flume
#

and i can do something with javascript papi?

turbid tide
#

probably. yeah

slow crystal
#

can papi expansions be used for offline players?

#

eg can i parse %player_name% without the player being online

#

if not why the heck does it take an OfflinePlayer

balmy marten
#

yeah u can

#

up to the expansion if it allows offline player

#

but papi should let you

slow crystal
#

hmm

balmy marten
#

eg most of the essentials placeholders work offline

slow crystal
#

does the player expansion?

balmy marten
#

certain things might

slow crystal
#

hmm okay

#

doesn't seem like it 😦

balmy marten
#

which placeholder?

slow crystal
#

player_name

#

oh wait

#

it should

#

so

balmy marten
#

yeah it would return nothing if it failed

slow crystal
#

oh yeah okay

#

thanks

slow crystal
#

yeah i was looking at that, just misread it

balmy marten
#

cool beans

slow crystal
#

uh

#

oh it's because player.getName() is null

#

nvm me

turbid tide
#

smh.

turbid tide
#

yo @slow crystal you need a lot of players to join your server btw?

#

or what u need this for?

vivid sparrow
#

lambda attack

hard basalt
#

btw

#

what is lambda command ?

granite reef
#

anyone know the placeholder for unique player count # ?

#

I want it in the welcome msg

turbid tide
trim mist
#

TIL

granite reef
grim urchin
#

I have a problem installing JavaScript. Below is the error.

[PlaceholderAPI] expansion class JavascriptExpansion is outdated:
Failed to load due to a [NoClassDefFoundError], attempted to use org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory

granite reef
#

why isn't this working

#

custom-join-message: "[%server_unique_joins%] +{USERNAME}"

turbid tide
#

/papi ecloud download javascript then you do /papi reload

turbid tide
vivid sparrow
#

essentials has {UNIQUE} btw

grim urchin
turbid tide
grim urchin
turbid tide
grim urchin
#

Nothing has changed

turbid tide
#

can you restart server again and send a full startup log please?

tender vaporBOT
grim urchin
tender vaporBOT
turbid tide
#

@thorn thunder please help. idk what's going wrong

#

it can't find nashorn

#

but the download command should've downloaded latest version

grim urchin
#

Could it be because I have PAPI 2.10.9 and not 2.10.10?

turbid tide
#

maybe? not really sure

#

but you should update

grim urchin
#

Ok

thorn thunder
#

Could you provide the output of java -version ?

grim urchin
#

Java 8

thorn thunder
#

Is there any other exception in your log?

grim urchin
thorn thunder
#

Ah heres the issue 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

grim urchin
#

As I understand it, you need a higher Java?

regal flint
#

i was been looking around and tried to find an placeholder that says what world an specific player is in

thorn thunder
grim urchin
#

Well thank you I will wait

regal flint
#

me too

grim urchin
#

%player_world%?

#

)

regal flint
#

did u google or guess

grim urchin
#

I've used it already

turbid tide
regal flint
#

i looked so long

#

oh u used alr

#

well thx ill try it

regal flint
#

I WAS USING it alr

#

the page

regal flint
#

im new to all dis

turbid tide
#

you use the parseother expansion

regal flint
#

hm

#

ok

turbid tide
#

%parseother_{playername}_{player_world}%

grim urchin
#

Installing the JS 1.6.0 add-on solved the problem, I will work like this for now

regal flint
errant iron
#

Which placeholders are those

regal flint
#

OtherPlayer

turbid tide
regal flint
#

oh i think i am online (-?

turbid tide
#

well are you parsing them for yourself? are you not using parseother? also why use otherplayer when you are online? just use the Player expansion instead

regal flint
#

oh

#

ok

karmic marsh
#

Could somebody give me an example of how to use precision with the Math expansion for papi please. I've tried several ways to enable precision in my placeholder and it fails. Here is the example on the github that I'm following for reference. %math_[precision]:[rounding]_<expression>%

errant iron
#

%math_0_1+1%

karmic marsh
#

Oh ok I was overthinking lol, thank you.

regal flint
#

since the placeholders are the vanishing thing imma ask here
why do my DeluxeMenus Item Lore Placeholder ParseHolder(aaa) go away after a second

#

it doesnt give any errors,
but i think you could make the errors better like if a line in a text was bad should say theres da bad and not throwing some random bly*d
i also tried removing da dot
only using 1 lore
idk

#

errors come and go
lol
looks like im burger king for errors

fickle tide
#

Is it possible if someone can help me a bit as i am struggling
I would like to create a custom "currency" either directly inside placeholder API with javascript or to use some items with custom name and lore (Like let's say cookies)
I would like to create a small "shop" or menu that would use those coins or cookies like 1 5 25 or 100 and it will take that from the user if it has and i would like to add those coins to virtual budget/balance

So in conclusion i would like to replicate a system on popular server where they receive a timed hype points where they can use it and vote for some options, i can do something similar where it will use those coins but i can't manage to create a system where those will be stored under x player (can i use like balance for either armor stand or unknown player with some id)

Thanks for anyone who can help me out with this 🙂

mint fable
#

I feel it would be easier and less resource intensive to make a plugin

#

and more reliable with the data storage

#

because, while you can store data with javascript, it's not really supposed to be done how you want it

#

because you usually want to retrieve all data when server starts, cache it, save it when server stops

fickle tide
#

I know but that would require more brain from my end xD
And that is at least for now on short term as i just started learning java until i learn the whole database, storage and everything i would probably either won't need the plugin or someone will beat me to it

#

xD

mint fable
#

otherwise you'd be reading/writing everytime you called the placeholder basically

#

You could however, try using player meta via deluxemenus

#

which comes with a placeholder too

#

and remember you can execute the deluexemenus actions from anywhere you can put a command

#

/dm execute <action>

outer plinth
#

anyone know how to help

muted quail
#

Hello, how would I go about making a request regarding the multiverse expansion?

#

I realise I need to bug the MV guys about that one

last basalt
#

hey I can't register why

last basalt
#

hey i want to join the web placeholder-api but i can't why

ebon willow
#

Anyone know the placeholder for the total numbers of players who has joined the server?

winged heron
ebon willow
dusky lark
#

How do i list players out in tablist?

#

%playerlist_online,normal,yes,1%

#

%playerlist_online,normal,yes,2%

#

It returns with "Offline"

dusky lark
#

help!

junior musk
junior musk
dusky lark
#

41: refresh: 4 text: '%playerlist_online,normal,yes,list,0%' 42: refresh: 4 text: '%playerlist_online,normal,yes,list,1%' 43: refresh: 4 text: '%playerlist_online,normal,yes,list,2%' 44: refresh: 4 text: '%playerlist_online,normal,yes,list,3%'

#

list will list all the players in just 1 tab

#

it works. But if the other players not found it will return as "Offline"

#

How do I fix this

turbid tide
#

you can't really fix that

#

that's how its meant to work.

#

what do you want it to return if there is no player?

dusky lark
#

""

#

empty

#

can i chg from "Offline" to ""

dusky lark
turbid tide
#

it is open source. so yes if you know how to you can. but you could also use another expansion for this:

#

%changeoutput_contains,ignorecase_{playerlist_online,normal,yes,list,3}_offline__{playerlist_online,normal,yes,list,3}%

#

try this one

#

and please don't modify anything in it.

dusky lark
#

I will give it a try

#

Thanks

dusky lark
#

44: refresh: 4 text: '%changeoutput_contains,ignorecase_{playerlist_online,normal,yes,list,3}_offline__{playerlist_online,normal,yes,list,3}%'

#

Doesn't recognize the pllaceholdeer

#

Oh it works! But I have a problem. It now shows my name 6 times in the tablist

turbid tide
#

and it didn't do this before? also you did switch the 3 for every single item in the list right?

dusky lark
#

Ok works now. I just replaced list with numbers

#

Thanks @turbid tide

turbid tide
#

👍 no problem

dusk crane
#

Why does this error happen?

hard basalt
#

though i suggest java 16 if possible\

dusk crane
#

My server is 1.8, when Java 11 or 16 is used, the server does not turn on

hard basalt
#

sadly u have to role back ur javascript expansion version

#

find it on ecloud

#

as new version intended to make working with new java version

dusk crane
#

I already managed to install javascript

hard basalt
#

is it work now ?

smoky spoke
#

hi does anyone know alot about changeoutput?

last basalt
#

ok, I get it

silver minnow
turbid tide
smoky spoke
turbid tide
#

Can you show me what you're trying to do please?

turbid tide
#

@smoky spoke u might've missed my message ^

smoky spoke
#

sorry i took a shower

turbid tide
#

👍

silver minnow
#

¯_(ツ)_/¯

turbid tide
#

well.. internet went down. I was saying that I thought it the same until glare told me it doesn't actually work.

silver minnow
#

wat

#

but-

#

i just did it-

#

20 minutes ago

#

unless they have some other server software

#

im using paper 1.8.8

#

and AdoptOpenJDK 16.0.1.9 hotspot

#

https://i.imgur.com/Bim32Xb.png and the huge error in the middle always happens, idk what it means but it doesn't affect the server, i can join the server and stuff

meager nymph
#

ooh I had the same issue along time ago, it's in the start.bat thingy

#

you have to add some weird code

silver minnow
#

oh 🤔

#

hm

meager nymph
austere hawk
#

Hi one question: How can I make the pinger expansion take the motd from a minigame plugin, and not the motd from server.properties?

vivid sparrow
#

you can't.

austere hawk
#

Ok, but isn't there a plugin that can do it?

wintry ridge
#

If there is a Placeholder that reads whether there are other players next to the player and outputs Yes or No

turbid tide
wintry ridge
#

Thanks, but i found ParseNear

turbid tide
#

ugh alr then.

storm lantern
#

How can you kill a player like /kill %player% but that doesnt work so how do I do it

storm lantern
#

so I'm trying to do a command where it kills you when you touch water it all works fine for when I do like @p but I want to make it kill the player that touches it so basically how can I do a kill command for the player that executed it

#

so like how can I do a command block for when you step on it it kills the %player% without doing @p

trim mist
#

Pretty sure the only minecraft way to obtain the target player like that is @p.

inner cedar
#

How do I fully disable the baltop placeholder from running? I tried disabling it in the config, but it still works.

errant iron
#

In the Vault expansion?

inner cedar
#

Yeah

#

I only use Vault for the prefixes, don't use baltop on my server, but its causing a lot of memory usage and lag for me.

errant iron
#

I didn't even think it worked on the latest version of the Vault expansion

#

i'll whip up a quick version of the vault expansion that doesn't even have baltop code at all

inner cedar
#

Ok, thank you!

errant iron
#

Try that

#

Let me know if it works

inner cedar
#

Could you temporarily accept my friend request, so I can send you a link that I don't want shared publicly?

errant iron
#

What link?

inner cedar
#

Flare

errant iron
#

What's that?

inner cedar
#

Am I allowed to advertise a link to flare?

errant iron
#

uh, I don't know what it is

inner cedar
#

It's a way to profile lag issues, a better alternative to spark and timings.

#

I want to show you that the baltop task is still running

errant iron
#

On my new version?

inner cedar
#

Yes

errant iron
#

The code for the baltop task literally doesn't exist in that one

inner cedar
#

I did /papi reload, was that enough to disable it?

errant iron
#

Do a full server restart

inner cedar
#

Alright

winged heron
#

./papi reload makes all devs cry

errant iron
#

Well it's usually pretty good

inner cedar
#

lol

errant iron
#

but the weird tasks that the baltop thing does kinda sidestep papi reload

inner cedar
#

I noticed there were two Vault plugins, 'vault' and 'Vault', so they are both disabled, and reloaded the plugin. Everything works like before and the lag issue from baltop tasks is gone now.

#

Thank you very much

errant iron
#

nice

turbid tide
smoky spoke
# turbid tide 👍

sorry i forgot to respond.
%changeoutput_=_{Special70}_{player_health}_6_yes_no%

turbid tide
#

ugh. what's the Special70 for?

smoky spoke
#

i believe this placeholder should say yes if i have 6 hp right? when i parsed this with full hp, it gave me a value of yes

turbid tide
#

1 sec. that placeholder is not right

#

%changeoutput_<options>_<input>_<matcher>_<output-if-matched>_<output-if-not-matched>% This is the model.


    equals - match the input exactly
    ignorecase - match the input while ignoring cases
    ignorecolor - match the input while ignoring colour codes
    contains - check if the match contains input
    >= - check if the input is larger than or equal to the matcher
    > - check if the input is larger than the matcher
    <= - check if the input is less than or equal to the matcher
    < - check if the input is less than the matcher
``` These are the options. no `=`. and no name required. That placeholder is supposed to look like this: `%changeoutput_equals_{player_health}_6_yes_no%` @smoky spoke
smoky spoke
#

oh

#

ty

#

i thought i had to fill out the player name field

winged heron
smoky spoke
#

my memory was prob mixed up with the otherplayer placeholder

winged heron
turbid tide
errant iron
#

lol plugman

turbid tide
errant iron
#

what a hot meme

weak osprey
#

hey question with xconomy

#

papi trow errors

#

any idea why?

#

i remember it also caused problems with other economy plugin

turbid tide
weak osprey
#

but i got a similiar issue also with a custom economy plugin too

#

randomy economy of players fucked up and when i stop server papi spammed a lot of error

#

(1.15-1.17)

turbid tide
#

well its not PAPI's fault that I Can guarantee. at least not this time. In this case, Vault is trying to get the economy to display it in a placeholder but it can't find any economy bcz it is null.

weak osprey
#

well dunno i just removed vault module and now work fine

turbid tide
#

that's why it says PAPI. bcz it tries to display it in a placeholder.

#

well yeah. error was like this economy plugin -> vault -> vault expansion

#

but the root problem is from the economy plugin

weak osprey
#

yeah i think too is that why i tried to switch economy plugin

turbid tide
#

but yeah if you don't have and don't need essentials I understand. also try plugins like GemsEconomy.

weak osprey
#

i use already cmi but is a pain to import economy inside it

#

since they use this prefix

#

CMIGlobal%%0.0

#

on field

#

i noticed removin papi vault

#

cpu usage went from 500%-600% to 17%

#

was something bad with it/economy

#

lol

turbid tide
weak osprey
#

i was using vault placeholder on featherboard (papi)

#

but is fun to see server usage going 400-600 with 0 players

#

and timings never show that

#

i am so happy that i fixed it

#

so it was economy or placeholderapi fault?

turbid tide
#

its the vault expansion's fault. not really economy or papi

weak osprey
#

oh

#

it was years that i got that issue only in skyblock lol

#

never figured until today

wheat gulch
#

how do i only show first letter of my placeholder

turbid tide
wheat gulch
turbid tide
#

ugh. then you'll have to use the Javascript expansion.

#

you do need a bit of javascript knowledge but shouldn't be much

tender vaporBOT
turbid tide
#

here's the wiki and all that for the expansion ^^

wheat gulch
turbid tide
wheat gulch
#

where is the file generated

wheat gulch
tender vaporBOT
wheat gulch
#

oh sorry, i didnt know that counted as ping

turbid tide
#

yeah. you can disable then to the right when you try to reply. it has an ON/OFF button.

#

gimme 1 minute pls. will look into it

#

btw @wheat gulch if you really can't get it to work and I don't find a solution just use /papi reload

#

but will look into it

#

see if I can find anything first

wheat gulch
wooden timber
turbid tide
wooden timber
#

Already tried that 😦

turbid tide
#

then go to plugins/PlaceholderAPI/expansions adn delete the Server expansion from there, do a full server restart. No reload or anything like that, and then download the expansion again

turbid tide
#

that's for Merawrr btw.

#

I can't seem to find anything about this permission

#

@wheat gulch can you do /papi reload and show me the errors that happen when you do it?

wooden timber
#

Thank you 🙂

turbid tide
#

no problem. 👍

wheat gulch
#

i cannot send an image here

tender vaporBOT
turbid tide
#

^^^

wheat gulch
turbid tide
#

in the console I mean. do you get any errors/messages?

wheat gulch
#

no

#

it is even loading the script

turbid tide
#

so how did it crash last time?

#

if it works I think you'll have to stick with /papi reload over /jsreload unless you want to OP yourself. I don't really know what's wrong with the permission rn.

wheat gulch
turbid tide
#

oh please don't.

#

that's really bad

#

just restart the server if you want to reload or if the plugin offers a reload command use that

#

but don't do /reload or plugman or anytihng like that

#

@thorn thunder can you help us here btw? It seems like the admin permission for /jsexp relaoad doesn't work. can't really take more time to look at it right now

wheat gulch
#

I got it to work and the helloWorld example is working. the command shows red but it works

turbid tide
vivid swift
#

is there a way to limit papi for certain plugin only because even if i do unregister as soon i do restart my server everything is back 😦

turbid tide
vivid swift
#

exemple i have a plugin orereplacer i dont whant it to handshake with papi and in orereplcer they dont have a config that stop theyre placeholder to load i want to load only plugin that i use if i do unregister orereplacer its not in /papi list anymore and when i do restart the server its back in the list . so i wanted to know if its possible to stop some plugin to link with papi

#

sry for my bad english

turbid tide
#

I Don't see why you would unregister it either. just let it exist

#

does it affect something or why would you want to unregister it?

vivid swift
#

because since i have install papi my server lose alots of tps when people login and i dont whant to remove papi because its insane 😄

turbid tide
#

hmm. yaeh. you would either have to edit the code of the plugin if its Open Source, or at least ask the developer to add an option in config for it to hook into papi or not. or something like that.

vivid swift
#

ill find an alternatif 😄

turbid tide
#

@summer nexus [20:15:28 INFO]: BlitzGamer_88 issued server command: /papi parse BlitzGamer_88 %checkitem_remove_mat:stone,amt:3% [20:15:28 INFO]: 0 what's with the output? can you remove that by any chance?

#

that's the console output while I do the command from ingame

sharp jay
#

Blitz gamer

turbid tide
#

only happens when I remove items @mint fable. so I assume its a debug message you forgot. please do remove when you get some time

mint fable
#

?

turbid tide
#

ugh. just use %vault_group% instead of prefix. bcz that takes in the group actual name which usually doesn't contain colors and all that other crazy shit

turbid tide
turbid tide
# mint fable ?

there's some random number outputed when I Parse checkitem remove. dk what it means or what it is

sharp jay
#

sir hypixel

turbid tide
summer nexus
turbid tide
#

oh lmao

#

didn't even notice

#

sorry

#

wait. why make prefixes with js??? this seems like a waste.

#

just use luckperm's prefixes and stuff

#

well then at least use LuckPerms's placeholders instead of vault

mint fable
turbid tide
vivid swift
#

blitz the problem was orereplace thanks agaiin for ur good work 😄

turbid tide
#

ok so let me get this straight. you want this javascript to return a prefix if the primary group is X for that player?

#

have you tried /papi parse me %vault_group% to see what it actually returns? @vast anchor

turbid tide
#

wait but why does your group name contain a color? it really shouldn't

#

and you need to replace the ampersand symbol with a section symbol to check for colors because in javascript they are already parsed

waxen tinsel
#
        <dependency>
            <groupId>me.clip</groupId>
            <artifactId>placeholderapi</artifactId>
            <version>2.10.9</version>
            <scope>provided</scope>
        </dependency>```
#

Dependency 'me.clip:placeholderapi:2.10.9' not found I copied directly from the github api page

silver minnow
#

dont crosspost plz

turbid tide
#

please stick to 1 channel. thank you

waxen tinsel
#

sorry i just saw that this was a dedicated papi api channel

turbid tide
#

well I mean you can still ask that question here but you already did in #development so please stick with that

waxen tinsel
#

ah ok

turbid tide
austere inlet
#

Can anyone tell me what all placeholders are available from chatreactions?

#

Is there any place holder for amout of scrambles resolved by a perticular player?

turbid tide
austere inlet
#

thank you just what i needed

turbid tide
#

👍 no problem

sour wadi
#

Chance there is a .upper() thing for placeholders?

tender vaporBOT
unique leaf
tender vaporBOT
sharp jay
#

Lmao

austere hawk
#

Hi, placeholder spam my console and idk fix it

#

.... [07:54:49 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70)
.... [07:54:49 WARN]: at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98)

turbid tide
#

Just don't use switch and instead use if and indexOf. like this:

#
var rank = "%vault_group%"

function getprefix() {
  if (rank.indexOf("Administrator") != -1) return "&9[&lAdmin&9] ";
  else if (rank.indexOf("SomeOtherRank") != -1) return "&eSomeOtherRank";
  else return "&cНяма";
}
getprefix()```
turbid tide
turbid tide
turbid tide
velvet tinsel
#

papi parse %player_name% %javascript_rewards-delay_Mvp+_start%

#

and I get

#

You must supply a target, and a message: /papi parse {target} {message}

#

why is that?

turbid tide
#

just use me

#

instead

#

or where are you using it? are you using it in another plugin like deluxemenus?

velvet tinsel
#

yes in deluxemenus

turbid tide
#

ah

#

well don't use all that

#

just use [console] %javascript_rewards-delay_Mvp+_start%

velvet tinsel
#

but how will it know to parse it for the player

#

im trying to make a rewards system with a cooldown

turbid tide
#

ugh

#

the player is the viewer it already parses other placeholders. anyway if you really want to use that command just download the player expansion

#

/papi ecloud download player then /papi reload

#

but I'm telling you, my option will work too

velvet tinsel
#

so

#

if I just add

#

[console] %javascript_rewards-delay_Mvp+_start%

#

without any player name

#

it will add the delay just for me?

turbid tide
#

yeah

#

because deluxemenus parses the placeholder

#

before it even does the action

#

in a new update I've added a [placeholder] action just for this but its not yet out. need for Glare to check and merge my pull request first

velvet tinsel
#

hard to believe

#

but it worked

#

you are a genius

#

ok

#

now how do i make it to update items

#

so it says 23h59m42s

#

if i reopen it will update

#

how do i make it to autoupdate without closing and reopening

turbid tide
#

well I Don't know why it would be hard to believe? but just use update_interval: 1 in the menu options (so basically where your menu title, size and all other stuff is) and then add option update: true in the item options so where the material, display_name etc. is

unique leaf
#

Is there a way to parse a placeholder as another player then send the output to a different player?

vivid sparrow
#

parseother

turbid tide
#

parseother expansion

hidden pumice
#

hello short question how do i enter 3 permissions in the query at the same time

hidden pumice
#

type: permission
expression: ''

turbid tide
#

ah so deluxemenus

#

gimme couple minutes please.

hidden pumice
#

deutsch ?

turbid tide
#

do you want it to check for all 3 of them? or 1 of the 3

hidden pumice
#

all 3

turbid tide
#
  first:
    type: has permission:
    permission: PERM.1
  second:
    type: has permission
    permission: PERM.2
  third:
    type: has permission
    permission: PERM.3``` something like this
#

will work

hidden pumice
#

how can i prevent that he can buy a position several times in the menu.
the player should only be able to buy each position once

turbid tide
#

and then only allow them to buy if they don't have it

hidden pumice
#

how do i write that?

turbid tide
#

something like this

#
  left_click_commands:
  - '[console]lp user %player_name% permission set SOME.PERMISSION'
  left_click_requirement:
    requirements:
      noperm:
        type: '!has permission'
        permission: 'SOME.PERMISSION'```
hidden pumice
#

I can have 2 requirements on the right left hand because at the same time I check the money whether he has that much

turbid tide
#

like I Showed you with the 3 permissions

#

they can be any type and how many you want

hidden pumice
#

right_click_requirement:
requirements:
example_3:
type: has money
amount: 5000
deny_commands:
- "[message] &cDu hast nicht genügend Geld."
- "[close]"
left_click_requirement:
requirements:
example_3:
type: has money
amount: 5000
deny_commands:
- "[message] &cDu hast nicht genügend Geld."
- "[close]"

#

these are my current requirements how do I write them down now?
can you please write them down for me as an example

unique leaf
# turbid tide parseother expansion

lets say I have the placeholder %ajpk_current% and I want it to parse that placeholder for "Robot" and I want to send the output to "Robot2" What would the parseother parse command be? When I tried I got a console error.

turbid tide
turbid tide
#

something like this should work ^^6

#

I only did it for left click tho.

#

but its the exact same for right click

#

I also modified the deny_commands spacing a bit so its better now

plush finch
#

Is there a placeholder to show how many people are online that are in a specific Minecraft/scoreboard team?

#

I use because I hve to use 2 different LPerms Groups for 1 placeholder

tired cloud
#

What is the placeholder to add a date

placid imp
#

anyone know a PAPI Permission placeholder that i can use in the holograms that says if a player has a certin permission it says true or false i tried the player extension but it doesnt work with Holograms and i do have Hext

#

if u do please tag me

wide bridge
#

Failed To Find An Expension Named: Player
How can I solve problem?

turbid tide
tender vaporBOT
turbid tide
#

@wide bridge read this please ^^

turbid tide
tired cloud
#

i realized how to do it

turbid tide
placid imp
#

it works but it doesnt update on the hologram

turbid tide
wide bridge
turbid tide
#

or what exactly is happening?

turbid tide
turbid tide
# placid imp yes

and you're 100% sure you have Holographic EXtension and PRotocolLIb installed?

wide bridge
placid imp
#

Yes

turbid tide
turbid tide
tender vaporBOT
sly needle
#

Someone know which placeholders should i use for ezblocks top player and top broken blocks ?

turbid tide
true nest
#

any idea how i could add placeholders by itself to the plugin?? without using ecloud as one of the plugins im using got removed :/

frigid sun
#

I need some help with a custom expansion.

I tried to follow the wiki (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion) but it don't work as expected.
At first i create a expansion class: https://paste.md-5.net/qevuwuqoku.java
In the onEnable method of my plugin i register the expansion: https://paste.md-5.net/ifehejihos.coffeescript
Console: https://paste.md-5.net/junetapapi.md
I also added papi as dependency in the plugin.yml

What could wrong with my code ?
It's quite strange it say's Successfully registered expansion: BungeeBridgeS and two lines later No expansions were registered!
Also the method onRequest will not be called.

turbid tide
#

Also you should make your identifier lowercase

#

Also u sure you called it correctly? /papi parse me %BungeeBridgeS_factionsuuid_player_power%?

frigid sun
#

Wait, let me test it

turbid tide
#

The message that says 0 expansions registered

frigid sun
#

oh okay 😄

turbid tide
#

Only lists the externals one

#

You can ignore it saying 0

frigid sun
#

/papi parse me %BungeeBridgeS_factionsuuid_player_power% works..
Strange ;o

turbid tide
#

Well not strange

#

Its case insensitive

#

If you made your identifier BungeeBridgeS then that's what you use

frigid sun
#

oh okay, let me try something

turbid tide
#

Also I meant to say case sensitive. Not the other way around

frigid sun
#

It's working, thank you ! 🙂

turbid tide
#

Yw 👍

last basalt
#

why can't I use the command "/papi eclod" and what's worse, I can't download anything like Player, vault, server and everything can't be downloaded I tried to download the vault on the eclod web but it doesn't work, why?

#

please give my heart

errant iron
#

it's /papi ecloud

#

And the downloads work for me

smoky spoke
#

im asking for a rework of the %player_pitch% placeholder or is it not possible?
the reason why is that when im facing down, it's giving a positive value instead of a negative value

lilac oxide
smoky spoke
#

ok

tidal thunder
#

i forgot how placeholderapi worked, i needed to put something like <fastest> <fast> <medium> <slow> <slowest> and then the placeholder in right?

austere hawk
#

I don't think so? I think you're thinking of HolographicDisplays and the rate in which they refresh placeholders.

turbid tide
#

you have to just update the expansion. it will work after that

#

you're welcome 👍

shut bluff
#

Hello, for some reason Mcmmo placeholder dont work for me.
With prase the output is just the placeholder
i did donwload the expansion
and restarted the server.
what else i can do ?

turbid tide
#

can you send a startup log please?

tender vaporBOT
shut bluff
#

but it sucessfully registred mcmmo

#

more than once ^^ thats me testing 😄

warm plover
#

Hey there! Where is %server_name% edited?

turbid tide
warm plover
#

Perfect! Tysm!

turbid tide
#

can you also do a /papi dump and send the generated link @shut bluff ?

tender vaporBOT
shut bluff
#

sry

turbid tide
#

no worries. what placeholder were you testing on?

shut bluff
#

for example: %mcmmo_level_swords%

but a few of them, no placeholder is working from mcmmo

#

others from other plugins do work fine

turbid tide
#

do you see anything in console when you try /papi parse me %mcmmo_level_swords% ?

shut bluff
#

[21:12:38 INFO]: Parthurax issued server command: /papi parse me %mcmmo_level_swords%

no :/ strange issue

turbid tide
#

also what mcmmo plugin are you using? can you link me the spigot page please?

turbid tide
#

so. I think the problem is that

#

This expansion gives users placeholders for both mcMMO Classic (1.x) and mcMMO Overhaul (2.x).

gloomy verge
#

anyone using mysql extension for papi help ? query: SELECT x FROM y WHERE name = '{%mysql_xx%}' can i use mysql parsed parameter inside a another query to achive a different information from mysql table ?

shut bluff
turbid tide
#

alr. no problem 👍

turbid tide
#

if they do not work like that you can always request the developer to add support on the expansion's github

#

open a new issue asking for BracketPlaceholder support.

gloomy verge
turbid tide
#

sure xD

gloomy verge
#

is it possible to parse placeholders from one of the bungeecord connected servers from another one with any plugin or extension other than just parsing with mysql

slate pollen
#

If the plugin "Deluxetags"doesn't work, and only shows placeholder and nothing else is that bc i don't have placeholderapi installed?

#

@ me if you answer

#

okay fixed

#

it was indeed the problem

austere hawk
#

ayo so when i use this plugin in my own plugin

#

i have some placeholders such as %player_name%

#

the join message only produces my name and no one elses

#

so if someone joins my server it says my name instead of theirs?

mental bison
hard basalt
fast egret
#

can anyone tell me what i am doing wrong here? this math placeholder
%math_0:_MIN({math_0:_{checkitem_amount_mat:{cp-data-crucible.mata}}/({cp-data-crucible.amt.A}*{cp-data-crucible.qnt})},{math_0:_{checkitem_amount_mat:{cp-data-crucible.matb}}/({cp-data-crucible.amt.B}*{cp-data-crucible.qnt})})% i am using keep refusing to work and is always giving out the same error that is
[09:56:38 WARN]: [PlaceholderAPI] [Math] Cause: '{checkitem_amount_mat:lapis_lazuli ' is not a valid Math-Expression. and i am pretty sure that i am not missing any parenthesises like the error stated

in this situation:

  • cp-data-crucible.mata is replaced with lapis_lazuli
  • cp-data-crucible.matb is replaced with gold_ingot
  • cp-data-crucible.amt.A is replaced with 80
  • cp-data-crucible.amt.B is replace with 20
  • cp-data-crucible.qnt is replaced with 1
#

id appreciate it very much if anyone can help me with this problem as im struggling to understand what i did wrong

austere hawk
#

@fast egret I don’t think you can use command panels data inside placeholders like that

#

At least I tried it before and it didn’t work so

fast egret
#

nah its possible, i have plenty of other placeholders with cp placeholders inside them and they worked well, im not sure whats wrong with this one

hard basalt
dark ibex
#

Papi parses math placeholder and it works, but it does not work in holograms. What to do?

hard basalt
#

just download from spigot

hard basalt
#

yes

dark ibex
austere hawk
#

my bungee placeholders broke i have the plugin update and when i donwload bungee and try to reload it i have error in console
https://pastebin.com/jwy9LA4M

fast egret
fast egret
#

id appreciate it a lot lot if u can

hard basalt
#

so what u want to achieve ?

fast egret
#

i just need the placeholder to work

turbid tide
hard basalt
fast egret
#

i did explain the other placeholders i used in it

fast egret
turbid tide
hard basalt
#

i think i can help u write 1

turbid tide
dark ibex
fast egret
turbid tide
tender vaporBOT
hard basalt
#

and the cp-data-crucible.qnt where is it come from so i can call it

fast egret
#

im using math and the cp ones r from a gui plugin called commandpanel

hard basalt
#

k

hard basalt
turbid tide
#

oh.

#

you do have some extension

#

but I've never heard of it

#
    
[13:52:06] [Server thread/ERROR]: Could not load 'plugins/HoloExtension-0.0.1 Alpha-all.jar' in folder 'plugins'
    
org.bukkit.plugin.UnknownDependencyException: Unknown/missing dependency plugins: [Vault]. Please download and install these plugins to run 'HoloExtension'.```
dark ibex
#

On my way

hard basalt
#

he dont have vault

#

.-.

turbid tide
dark ibex
#

Thanks Bltz

hard basalt
fast egret
#

i just need a quick recreation of the placeholder

turbid tide
vivid sparrow
#

try

dark ibex
#

I've installed Vault but the placeholders still donot work

turbid tide
dark ibex
#

Not in hologramdisplays nor in citizens

turbid tide
vivid sparrow
#

it took you a while to do the inspect

dark ibex
turbid tide
#

and for 1.17 you should use HolographicPlaceholders

#

instead

dark ibex
#

Okay I try it then

hard basalt
dark ibex
#

That's what I have used

#

Its jar is called differently - HoloExte

hard basalt
#

oh

#

odds

dark ibex
#

Now it goddamn works

#

Thanks

turbid tide
#

👍 no problem

hard basalt
#

now i still need to figure out what the other guy to to do. So far i understand that he want to calculate the item in a menu from chest command plugin, which is call via command pannel, which is also another GUI plugin .....

fast egret
#

nah its pretty simple, all i need is the math placeholder working, the cp placeholders r dealt with other things that ive made

#

its ok if u dont want to do it, ill return to it in the future and try to resolve it on my own

hard basalt
fast egret
#

oh ok 👍

hard basalt
#

almost done

#

@fast egret i just realize on the wiki page they don't mention the crucible.qnt and other things, is that the name u give them ?

hard basalt
#

k

modern lynx
#

is there any extension to save numeric statistics monthly?

hard basalt
#

so it should me %cp-data-crucible.qnt% and other things like that ?

#

@fast egret ok so here the thing, so what would u want the math to return cause currently here is what i break it down

known math
math_0:_MIN(
    {math_0:_
        {checkitem_amount_mat:{cp-data-crucible.mata}}/
            ({cp-data-crucible.amt.A}*{cp-data-crucible.qnt})
    }
    ,{math_0:_
        {checkitem_amount_mat:{cp-data-crucible.matb}}/
            ({cp-data-crucible.amt.B}*{cp-data-crucible.qnt})
    }
)

so u want to compare and return the name of the material or the amount of the smallest material ?

fast egret
#

the amount of the smallest material

hard basalt
#

k

#

so what if them equal ?

fast egret
#

if they were to be equal, i guess ill have it pick either one

hard basalt
#

well they both have same number but it would return 1

fast egret
#

i mean for example if both were to be 2, then it can go with either a or b, or just a or b for simplicity

hard basalt
#

done

fast egret
#

tysm for the immense help 👍

hard basalt
fast egret
#

👍

hard basalt
#

imagine it straight up not working ;-;

hard basalt
fast egret
# hard basalt is it working ?

i was a bit distracted by a few other things, ill check it tmr as i dont have access to the server rn, it looks pretty fine imo so im pretty sure it will work

#

if there is any problem, ill ping u 👍

modern lynx
#

is there any extension to save numeric statistics monthly?

hard basalt
modern lynx
#

I dunno JavaScript but OK

#

thanks

shut lion
#

I updated from 1.16.4 to 1.16.5 and my placeholders broke

#

but only some of them broke

#

what would cause only some of them not to work

#

im using v2.10.10

#

disregard

shut lion
#

ok WTF

#

I do /placeholderapi ecloud update all

#

and the issue gets fixed but it refuses to save past a restart

smoky hatch
#

How do I use or in a placeholder

#

Like if the placeholder is blank it says something else

shut lion
#

conditions

#

talking like json?

smoky hatch
#

What?

shut lion
#

json is the popdown menu when you hover over chat

smoky hatch
#

No

#

I mean if the placeholder is blank it says something else

shut lion
#

I don't know

#

butttt....

turbid tide
smoky hatch
#

How do I do the change output

#

@turbid tide

turbid tide
turbid grove
#

How do i use placeholder api without maven or Gradle ?

warm topaz
#

u would import the plugin jar

#

altho why would u not want to use maven or gradle

turbid grove
#

Because i am a noob developer

turbid tide
#

fair enoug

#

h

warm topaz
#

setting up a build tool is very easy

turbid grove
#

I will install maven in the future

warm topaz
#

everything is basically laid out for u, and ur just missing out on great features that will hinder ur experience

silver minnow
turbid grove
#

i amma use maven (but not rn)

turbid tide
#

lmao

silver minnow
turbid grove
#

thanks 🙂

silver minnow
warm topaz
#

either one is much better than importing jars

turbid grove
turbid tide
turbid grove
#

But i added the jar

turbid tide
#

also you should probably know that %tps% is not a PlaceholderAPI placeholder

turbid grove
turbid tide
#

you can

#

but %tps% is not one of them

turbid grove
#

%tps% is from server

turbid tide
#

every PAPI placeholder contains at least a _

#

no

#

its %server_tps%

turbid grove
#

oh

#

Will that work?

turbid tide
#

its %identifier_ETC%

#

yeah

#

but anyways. As I was saying, you don't have placeholderAPI Installed on your server

turbid grove
#

Ohw wait

#

i switched servers and forgot to install placeholderapi 🥲

turbid grove
#

Now i get an error that he doesnt understand %

turbid tide
#

show error please

#

ty

turbid grove
#

This is the code if it helps:

    public void onPlayerChat(AsyncPlayerChatEvent e) {
        Player p = e.getPlayer();
        String rank = PlaceholderAPI.setPlaceholders(p, "%server_tps%");
        e.setFormat(rank);
    }```
#

Found the issue

#

and solved it 🙂

austere hawk
#

After updating from placeholderapi dev build to the latest spigot build

#

all placeholders broke on my server

#

going back to the dev build fixes it

#

this is my dump

turbid tide
#

you will probably need to send a startup log from when you have the spigot release installed as well

austere hawk
#

I get this error

turbid tide
#

please. full startup log and use paste bins

#

thank you

tender vaporBOT
austere hawk
turbid tide
#

can you send a /papi dump from when using PAPI 2.10.10

#

PLEASE?

#

please*

#

yeah. @austere hawk seems like you have the townychat expansion but no townychat plugin installed

#

that is probably 99% sure the problem

#

I Just realised your dump does actually use 2.10.10 xD

stoic thorn
#

hi

#

someone can help me?

#

i need use papi in minecraft version 1.7.10

#

what version that my use?

tender vaporBOT
errant iron
#

I don't know if PAPI works with 1.7 my man

sand birch
#

Any idea why some expansions are removing themselves upon restart?

stoic thorn
#

what can i use to replace?

sand birch
errant iron
sand birch
errant iron
#

?startuplog

tender vaporBOT
sand birch
#

?paste

tender vaporBOT
sand birch
stoic thorn
#

0 possibilities for me to use the bookstore on 1.7.10? @errant iron

errant iron
#

But 99.9% of servers don't run that version anymore

#

and it's hard to support, so we stopped supporting it

stoic thorn
#

oh no

errant iron
sand birch
#

FactionsUUID

errant iron
#

delete the Expansion-Factions.jar from your expansions folder

#

that's looking for Mcore Factions, and it throws an exception which stops the loading of placeholders for some reason

#

it seems to be an issue with just that expansion as far as I've seen

sand birch
#

thank you , that's a big headache over

austere hawk
tender vaporBOT
austere hawk
#

oops sorry

#

I dont think thats the issue

#

I returned to the older dev build and it works fine, it just ignores the townychat expansion since I dont have the plugin.

pure wraith
#

how can I detect if a player is in a nether portal

hard basalt
#

idk u can make a script to get player standing in nether portal event

austere hawk
#

[AnimatedScoreboard] PlaceholderAPI caused an error while parsing line "&bÔùÅ &7Yetki S├╝resi&7: &f%luckperms_expiry_time_essentials.fly%" for Proomp
https://hastebin.com/ibafagahus.md
Help me please

turbid tide
#

any chance your scoreboard plugin parses placeholders as null instead of Player? bcz that might be it. not sure tho

lofty valve
#

Hi, is rlir possible to get a placeholder value of specific player by given nickname?

#

Something like
%value_{placeholder_name}_<nickname>%

junior musk
#

you can use the ParseOther expansion

turbid tide
#

well. oyu can. but not by nickname. just by minecraft name

lofty valve
#

yeah i meant that

turbid tide
#

then yeah you can use the parseother expansin like tanguy said

lofty valve
#

Thanks

austere hawk
turbid tide
#

what does it return?

#

also check the console for errors when doing that command

turbid tide
austere hawk
turbid tide
#

with the same placeholder I assume?

austere hawk
#

yes

molten bison
#

how would i make one that is one placeholder but checks for multiple permissions but some are sorted higher than others? (javascript placeholder)

if player has npc.reza return blah blah blah.
if player has npc.nisan return somethin else. (this would be prioritised if the player has this one)

// create a variable and name it wantever you want like this
// and use the placeholder you want, i'm using this one
var haspermission = "%luckperms_check_permission_npc.nisan%";

// create a function with the name you want
function permission() {

// if the haspermission variable that we created before return yes (true boolean)
// the js placeholder will return what we set in the return down
if (haspermission === "yes") {
return "&aUnlocked!";
}

// if the haspermission varibale wasnt true it will return what we set down
else {
return "&cLocked!";
}
}

this is the only one i can find but it only checks for one permission. But i would need the same placeholder for multiple permission checks if u get what i mean

turbid tide
# austere hawk yes

yeah. it seems to be like something's null when calling the placeholder. not sure what but probably the people in luckperms discord can help

austere hawk
#

Okay thanks

turbid tide
#
function hasPermissions() {
  if ("%luckperms_check_permission_npc.reza%" === "yes") {
    return "SOME MESSAGE!";
  }
  if ("%luckperms_check_permission_npc.nisan%" === "yes") {
    return "SOME OTHER MESSAGE!";
  }

  // this will be returned if the player has neither
  // npc.reza or npc.nisan permissions.
  return "SOMETHING ELSE!";
}

hasPermissions();``` @molten bison something like this is probably what you want
molten bison
#

thank you!

molten bison
#

which one will it prioritise?

#

because when i just tried it. It just returns the first one. And not the second one. Which is how it would be needed to be

turbid tide
#

just switch the checks

#

if you want the first one to be second

hard basalt
#

there is perm priority