#placeholder-api
150650 messages · Page 99 of 151
follow these steps in order 
i have 1.7 server tho
I don't know which version of deluxetags supports 1.7...
if any
what version are you using?
yeah
1.8
then it should work fine 🤞
follow all those steps
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
Hey guys is it possible to convert values with placeholder api to
Small Caps font generator font?
Yes, with the string expansion
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
Quick question - when I'm writing an Expansion, I see two options to include other plugins:
- With a Plugin (External Jar)
- With a Plugin (Internal Class)
Can I not use the plugin's source if it's open source?
Wdym? @mossy birch
I mean, can I import it as a pom dependency rather than just plopping the jar in there
How can I use color now on the latest version of PlaceholderAPI since it doesn't work anymore &
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
,
if you are writing the expansion itself you can do that in the code
I meant without code, is there any expansion or plugin that can do what im describing?
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
Some1 help
Luckperms, im trying to show different outputs for different permissions
like permission.test would return "my custom message"
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%
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?
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
Can i assign and unassign a meta to a person using a command?
yw
Wtff anyone??
How can I use color now on the latest version of PlaceholderAPI since it doesn't work anymore &
There is no time to wait! Ask your question @fossil wasp!
How can I use color now on the latest version of PlaceholderAPI since it doesn't work anymore anyone
what plugin are you trying to use color in
I use the latest placeholderapi for the 1.8 server, and I want to fix some things like pinger in the placeholder, since &cOffline doesn't work, I want to fix it, but I don't understand how it works now
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
Naj
in v1.10.5 of deluxemenus (for 1.8.8) it did depend on papi for coloring
Nah
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
In version v1.10.5 deluxemenus pitch and volume for sound do not work
Alright
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
hi, i am looking for the clock unicode symbol, but cant seem to find it.
can someone help me?
yes its possible with JS expansion
you try U+1F552 @solid dagger
do i just type that?? @sharp jay
im using on my scoreboard
why are you pinging me?
well your typing right now
so can you help?
@sharp jay
use dnd if you dont want mentions
adam
can you help now
please
You seriously need to learn to be patient. Begging and pinging a staff member is not how you get help.
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
?imgur
ok
here
this
is all i fucking wanted
on my scoreboard
its been 1 hour
asking for this dumb symbol
Everybody here is volunteer support. No need to ping, if somebody can help and is active they will see your issue and help you.
What scoreboard plugin are you trying to use it in?
If you can't copy the symbol directly from a website like this https://www.compart.com/en/unicode/U+1F552 and paste it in your config then try the unicode expansion
%unicode_1F552%
is there a placeholder for a nicely formatted date, ex: December 9th
you can make your own format with SDF
also available from the server expansion %server_time_<SimpleDateFormat>%
alright, thanks
I figured it out
featherboard
oops
try just copy pasting the symbol
does the symbol get pasted correctly?
hmm
i don't think that character is in the font by default
yes
ask them
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
hmm
🤷♂️
lmao no
okay ):
maybe make a thread in #1007620980627230730
as it's not really placeholderapi related
i've been staring at unicode characters for ages
lmao
here
cju
cj
that is the whole scoreboard
and all i want
is the clock
the darn clock
I don't know of any pickaxe unicode character
oh nvm it['s backwards in-game
the clock
look through the list
what is it?
fine ):
also, be patient and kinder in life my friend
i am very kind
You ended up solving your own problem in the end
yes
i guess
its over
its finally over
3 hours
of my life
for
a emoji
:)))
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]%
I moved that question to the forums section as to get better support.
=ver
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.
I've downloaded the expansion on the ecloud in here https://api.extendedclip.com/expansions/tokenenchant/, but the placeholders still doesn't work
ofc i did /papi reload
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.
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]
Expansion class: https://paste.helpch.at/witolutuje.java
make sure the plugin supports placeholderapi
if it is your own plugin, you need to use PlaceholderAPI#setPlaceholders
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?
what do you recommend I do?
The plugins that I'm using are well known and work with every other placeholder
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)
yo whats the placeholder for day/month/year
%server_time_dd/MM/yyyy%
ty i tried before didnt work now it works
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?
I got a problem with a placeholder. Where can I post a screenshot?
hi
i want %player_current_exp% but formatted
how can i do that
Let's stick to one channel for asking questions.
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.
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.
its stored in the world folder you gotta delete it from the stats folder
I delete it and restart and on my holograms stats still there
stop the server first
kk
and you deleted it from your main world?
stop the server refresh the folder then delete
Ah right delete the cache folder
For that plugin
Inside the ajleadboard
Cache.mv.db?
Is there any way to use delayed execution like setTimeout() in javascript expansion?
It seems nashorn engine doesn't support setTimeout()
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.
?startuplog
Could you provide this to us?
Okay here is some of the things i can see:
- You are missing Citizens, and CommandNPC needs it.
- The world
Lobbyseems to be corrupt, id try to fix it using https://github.com/Fenixin/Minecraft-Region-Fixer - Try going to the placeholderAPI folder and deleting all the expansions, you can then try to redownload them and see if that works.
- 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
Placeholder still not working :/
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?
A Minecraft Server
Just curious- where are you trying to use the placeholder?
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?
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?
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
Hello, how can i use the math expansion without decimals %math_<math expression>%
%math_0_expression%
thx
whenever i update my expansions it wont work and keeps saying theres still two updates. how do i fix ?
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:~}%
what are you even trying to do @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
forgot to "reply" my bad.
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?
Yes I can.. Above is the workaround I found for it
i'm confused though
couldn't you do
- '[console] papi cmdparse %player_name% irename [placeholder] %formatter_textreplace:joystick:{checkitem_getinfo:mainhand_nameequals:~}%'
I saw the [placeholder] in documentation and wasnt sure how to use it.. That may be a better fix.
Will try. ty
essentials:itemrename
and that just takes whatever you put right after it and sets the name of the item?
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
I copied what you had before, no guarantees that works
all I changed was player to console and me to %player_name%
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.
bump. would appreciate some assistance. idk why it keeps telling me to update luck perms and mcmmo when i already have dozens of times
im on 19.2
while this could work, it requires extra steps (re-adding the leaderboards) and it wipes all leaderboards, not just one. An easier way is to simply use /ajleaderboards reset
Hey thanks for letting me know
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 😉
Hey there! i would like to re-verify my e-cloud account Srteam (ping on reply, i won't look often here)
Hi I'm trying to implement wondertrade on my pixelmon server but everytime I try the wondertrade it crashes the whole server. Any ideas? https://paste.helpch.at/qapehexiye.php
Nevermind, was using old PAPI from sponge ^^, fixed!
somebody made a placeholderapi for sponge years ago and didn't really do much with it iirc
caused unnecessary confusion
yeah ik
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%
i cant use cmi placeholders in decent holograms plugin papi show error and cmi_playertop_name not showing
@true vaporwhat version of MC and Hologram
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
I need help
There is no time to wait! Ask your question @opaque linden!
hello i need help (i speak spaish for dude)
still looking for help with essentials placeholders please
Hi, does anyone know how to check how many potions a player has brewed (defined, for example, weakness for 4 minutes)
Just wanne inform that the placeholderAPI expansion Servertime 3.1 is listed as version 3.0 in the installed list. so papi thinks all time there is an update even if there is none. https://i.ibb.co/QYvX2Jm/15-12-2022-18-31-25.jpg
still looking for help with this issue...
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
this is version 1.19.2
i do have mcmmo and math expansions installed
Is there anything you need to try and help me?
fixed it
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!
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...
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?
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?
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
Oh that's sick
testing with it now to figure it out
I think just replacing the name from worldguard to color+name would work
I'll give it a try
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
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"
That is awesome
Thank you so much!
Hey, is there a placeholder for counting how many players are in a scoreboard team?
Need more context as like vanilla scoreboard or like what ect
if vanilla scoreboard it could be tricky, since the # of players is never counted iirc
they're just var names. thats why you can assign a score to anything
so it could be hard to implement
could you lmk if it's a vanilla scoreboard or something else? Might have a solution if it's vanilla
Ideally vanilla
Why error?
https://paste.helpch.at/eyezoxozab.swift
Script: https://paste.helpch.at/hihakemage.js
It must work
It works in online JavaScript. But why dnw in JavaScript expansion?
the return is surrounded in `` not ''
So, nashorn engine not support ``?
So for vanilla, bit of a roundabout solution but works nonetheless
performing /scoreboard players list gives you the number of entities being tracked in a scoreboard
I'll try it one sec
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
If it was not a Vanilla scoreboard would there be any way?
You can then use ScoreboardObjectives within papi to grab that number
yes but depends on the plugin you're using for the scoreboard
Ok so we would need a repeating command block running this?
ideally it shouldn't be vanilla since this is a pretty weird solution lmao
plugins can make the process easier
yess or a datapack if command blocks are disabled
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
👍
best route to go tbh, command blocks and plugins mix badly
gl!
thanks!
@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
idk what supports `` for surrounding a string, but no it's not supported
send script?
a.indexOf("b") != -1
Bruh.
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?
Why "includes" not supported by nashorn engine?
I don't understand
because it is not
show the code
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()```
look at what I sent and what you have
var expr = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "luckperms_group_expiry_time_"+ placeholder + "%");
use this to stop papi from parsing %luckperms_group_expiry_time_"+ placeholder + "% first
false
expr.indexOf("mo") != -1
!expr.indexOf("mo") same.
👍
but lets try.

expr.indexOf is not a function
Same error
@vivid sparrow any idea?
https://media.discordapp.net/attachments/927631595911933952/1053420629631701084/IMG_20221119_195950.jpg
He's waiting for fully support of Google Chrome v8 JavaScript in Nashorn engine.
hey guys, me again, haven't been able to find the syntax on this, if anyone has an idea 😦 #placeholder-api message
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%
hello im having this issue with PlaceholderAPI, latest version, https://paste.helpch.at/wodesecuve.rb anyone know how fix it or what is the reason of this error?
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>
the name for efficiency is DIG_SPEED, look at this page for more
.
hey, what is the placeholder for online player count of a server? i have bungee server so i need to specify which server
nvm found it
dexulemenu not connect
view_requirement:
requirements:
type: '='
input: '%player_item_in_hand_level_DIG_SPEED%'
output: '2'
the type is == iirc
[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
hello, is there any placeholder that show blocks mined in certain world or world region? same for mobs?
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?
java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null
it is
<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
}``
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!
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
%essentials_unique% doesn't work
I'm trynna put it on my shit for factions plugin
o mb
i was stupid
Does anyone know of a placeholder that shows last item broken
I tried %player_item_in_hand% but shows air in hand lol
i feel you'd need a custom plugin/expansion to track that
What are you trying to do with that info?
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%"
you can't use the brokenItem part in the Embed section?
the reload gives an error with extra " in it
extra "? from where?
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
ya... idk how the discordsrv works with that sadly
trying to read it but not really sure
the only thing that i think would work is a placeholder in that area
not quite sure how they brokenItem.material.name() it doesn't follow methods from spigot
ill give that a shot.
getBrokenItem().getType().name() would be the methods so 🤷♂️
maybe the support discord can be of help
what if you surround it with ${}
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 🤷♂️
[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
hmm
did it say air?
what about {getBrokenItem().getType().name()}
i mean, if it's air it's air
but
very lame
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
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 :/
it’s a bungee server
….
hi! someone help fix it this erroe?
https://pastebin.pl/view/25201a5f
update essentials @nocturne sphinx
ty bro!
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: > <
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
How do you reset a statistic ?
within PAPI?
stats aren't papi, they are stored in your /World/stats folder
I figured that out lol. Thank you 🙂
bump
the support is shit been a day and none helped
can you please help
.
.
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.
/papi parse me %placeholder% sends - %placeholder%
Didn’t work
Didn’t work
Replace placeholder with %vault_rank%
done - didn’t work.
Plugins ive downloaded on hub : ajQueue, AntiSpam, BlockParticles, Citizens, Command4bungee, DecentHolograms, DeluxeHub, Essentials, EssentialsChat, PlaceHolderAPI, RotatingHeads, SuperVanish, TAB, Vault, ViaVersion, VoidGenerator and WorldEdit.
If none of these steps work. Then do /papi dump and send the generated link here.
what do i do now?
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
wdym permission plugins?
hold on a second let me read your info in details
I just want it to show the group player has like owner, admin , member etc. on the tab
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?
hmm
no, im developing from 2 years but first time faced this issue.
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.. ?
you mean on the hub itself?
yeah like in the hub plugins folder, where your spigot jar is located
the same folder as placeholderapi
let me download in the hub too
im using purpur
let me try
worked! your a lifesaver.
no problem, great to hear that :)
another problem occurred haha
prefix doesn’t show in chat..
oh wait
nvm it works
thanks a lot
npnp
also
I want to import lifesteal’s luckperms data from lifesteal to hub how do I do that?
https://luckperms.net/wiki/Storage-types
https://luckperms.net/wiki/Syncing-data-between-servers
this should probably work for you
its by changing the storage method or messaging-service
I don’t have database tho
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)
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
java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null
.
it is
it was already set to PROVIDED
wdym?
Just copy over the file of luckperms
The folder?
Yeah
So it will copy all the files?
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 😅
how do i download the folder? I cannot find a download option.
@wise stump
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&
@fervent spire
Can i set a timezone in the %server_countdown_dd.MM.yyyy.hh_26.12.2022.14% placeholder
Depending on your host you might need a ftp client
Hello, is it possible to use the "CheckItem-Expansion" extension to check ItemsAdder items?
Yes, if you hold the item and type /data get entity @s SelectedItem and send the picture here I can help
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
are you trying to use == to compare strings?
view_requirement: requirements: diamond_requirment: type: '==' input: '%checkitem_mat:apple,nbtstrings:itemsadder..id=tomato%' output: yes
you have to use string equals
Also, surround your output with ''
output: 'yes' comes out as yes
output: yes comes out as true
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?
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
Archive then download it
U can’t download folders only files 🦍🦍
[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?
I love you Barry
. <>
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
@toxic nest 
Yooo thanks, you are a lifesaver
was Javascript expansion removed from Papi?
Requires manual installation currently as an additional security measure
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
Does it happen with no expansions installed?
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
Odd
right? it's weird
@lime compass show the full error
Hey, is it possible to use placeholders through console?
Yes there is a Javascript expansion in the folder, just not in installed list
I already did that
Run mvn clean package
can I mute barry like so he doesn't "help"
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
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.
Really nobody can help o.O
@wide agatethat can not be done with Papi, but there are plugins that will let you send info from your server to the proxy
Can you recommend me some?
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
oops, my old link was broken https://www.spigotmc.org/resources/redisbungee.87700/
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?
that's used to link Bungee proxies together, not to forward PAPI placeholders?
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
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.
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
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.
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
My PrefixPlugin is this https://www.spigotmc.org/resources/coloredprefix-1-8-x-1-19-x.96823/
The prefix that is set in Luckperms also works, but that of the prefix plugin doesn't. The prefix plugin has a placeholder that you have to use. And I need this in Bungee Chat. But it doesn't work there because it's on subservers :/
I doubt there would be any way to do this easily
I would have tried, but I'm sick and not home 🥲 so.... sorry =/
you can still try to ask in #1047749266921230407 or #1047749270331215913
Ok thanks for your help 🙂
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
If you want to look into it
https://luckperms.net/wiki/Prefix-&-Suffix-Stacking
the only thing you'd need then is a menu to select your prefixes like with ColoredPrefixes, but that should be doable with DeluxeMenus
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
hello
is the expansion not working or not downloading?
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)
@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
what's the placeholder you used and what's the script?
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();
how do you know the value is not correct?
well the perm I have is for red and it returns white
is chatcolor.red the only permission you have?
yes
check %player_has_permission_chatcolor.white%
yes
but lp says I don't have it
yes, so now I have all perms in past it wasn't that way
never use *
and /lp user <player> permission check <perm>
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
so what?
doesn't matter
permissions are inherited
so this don't check for weights
permissions arent checked only for the highest parent
you can put the if statements in the order you want tho
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
oh, and how would I check for meta in my code
%luckperms_meta_<metaName>%
ok, looks like I no longer have a meta setup, thought I did
good part is you can set the color directly
Does PAPI have a Bungee API?
Shit
Gonna have to do some disgusting plugin message shit
no
Thats unfortunate
how can I call and get the value of a PLACEHOLDER
/papi parse playername %placeholder%
I meant like in java but I just ended up using me.clip.placeholderapi.PlaceholderAPI.setPlaceholders
you should be asking in #development
Probably a couple years ago
Yeah which one lol
I have an old plugin that will only run with the EzPlaceHolderhook
You'll have to dig through that and find it yourself.
How would I do that?
Test different jars until it works? Look through the GitHub history?
2.8.5 still has the class but it is deprecated
Hi
Hello what is the placeholder for players IGN?
You mean %player_name%
Yes sirrr and another concern how to remove the check after the message?
i mean slash (/)
What slash?
What slash??
Jemmand deutsch hier
Good evening, could anyone lend me a hand finding the right %checkitem% syntax please?
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
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
ABS() should be available
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!
Does it show up in /papi list all?
yeah that message is referring to local expansions from papi's folder iirc
Yes,
> papi list all
[17:24:07 INFO]: A total of 2 placeholder hook(s) are active:
[17:24:07 INFO]: lifesteal, spark
😦
Ah, ok
%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?
Yup it worked, fyi I don't think it was on thw iki
either that or I'm blind
EvalEx wiki
you mean the scoreboard 987654321 ?
you need to tell me more becease i dont get it what the problem is
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?
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
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
Hello, deluxemenus still support nbt_int: CustomModelData:.... ?
is model_data... sorry
Any place holders to just get the date? I'm only looking for the day of the month tho?
yes
%server_time_dd/LL/yy% after time_ use%https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html#month for values
this displays 23/12/22
anyone know how i could display the chunk coords?
Could use math with normal coordinates
divide by 16, round it off
@junior musk verified BW1058 fyi
please i need to fix this https://paste.helpch.at/cibahupigu.rb i can't restart my server every time that i see this error only for try to fix it
anyone know why having 2 placeholders makes it put my name twice?https://imgur.com/a/3DzVFtg
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
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;
what plugin and what placeholder
you type /papi reload
custom
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")
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)
I remember there being a issue with some hosts blocking placeholderapi, what was the bot command for it?
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
Try %checkitem_getinfo:offhand_data:%
Or %checkitem_inslot:offhand,data:0% maybe
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?
Hello guys! Who facing with memory leaks while using js expansion?
In heap dump: https://imgbox.com/RqVBxKP5
Same thing with nashorn
I guess it’s because for each placeholder request creating new engine object which is actually unnecessary (If take a look at source, https://github.com/PlaceholderAPI/Javascript-Expansion/blob/master/evaluator/src/main/java/com/extendedclip/papi/expansion/javascript/evaluator/NashornScriptEvaluator.java)
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
Is there any way to store colour in a javascript placeholder?
Store as in?
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,�AAAAJustice Secretary%
But it quite literally prints out
�AAAAJustice Secretary
I've tried it with MiniMessage format too sadly
Did you ever figure it out by chance?
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
%deluxemenus_meta_<key><dataType><default_value>% comment on le met au serveur ?
how do you add it to the server?
Same thing produce nashorn
How can I put that when a person has that specific rank he sees an enchanted item on deluxemenus?
Hey
im using deluxechat and deluxetags, but when i add the placeholder of deluxetags to deluxechat, whole deluxechat isnt working anymore
the second one should return yes or no depending if the item in your offhand has data value of 0 or not
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?
wiki has a link to slots tho 
cj youre awesome my server wouldnt exist without you /checkitem lol
thanks so much^^
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[])
So Im trying to reload papi to enable new extensions but it just doesnt work and sends this error in console
https://pastebin.com/hKeyaw72
and it deleted all extensions I had
txh
pls check mine and help me
try disabling the ecloud from the papi config
I believe it's timing out trying to connect to it
might be blocked or smthn
Ohk
I only got expansion folder in Placeholderapi folder
?startuplog
send that over, but I gotta go atm
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
How to do that sir i literally cannot see config file in the folder of place holder api
Bro it's kinda weird but i delete place holder and reinstalled it and it fixed my problem
Thanks for your support
Hey! I've made a font changer for usernames and everything works but whenever someone has 2 of the same letters (lowecase or uppercase) ex. Ixccyy it returns this: https://gyazo.com/753c466b30018d8326bd6025a32ac6e9
How would I fix this?
Seems like PAPI broke in 1.19.3
Things like %player% dont work with excelentcrates as well as gadgetsmenu placeholders
Ive done that
Still looks like this
Also, Gadgetsmenu hooks into papi on its own, theres no ecloud
But has it like this
Re-read this.
^
You have sent proof that you have not done that
which one?
Read this entire response
Make sure to read whole prompts 
cj you have experience using Javascript expansions?
a bit, ya
So let me rephrase to make sure I understand. I need to go into other peoples code and change it to player_name?
Do you possibly know how I could fix this? haha
Isn't it a regular message? Should be changable in the configuration.
If excellent crates doesn't have a config where you can change %player% to %player_name% then maybe it never used papi in the first place, or you should use another plugin imho
It worked until i updated is all
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?
This is gadget menus
?
Yes
