#placeholder-api
1 messages Β· Page 196 of 1
no problem
wait
it doesn't work
[20:09:46 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[20:09:46 INFO]: [PlaceholderAPI] Successfully registered expansion: player [2.0.2]
[20:09:46 INFO]: 1 placeholder hook(s) registered!```
The only placeholder hooked isn't mine.
I can try by putting the jar into the expansion folder idk
Actual Papi class: https://pastebin.com/4MpFXYtg
the expansion is registering. how are you testing the placeholder?
yeah those only list the ecloud expansions
the external* ones
that's fine
all you need to look for is this [PlaceholderAPI] Successfully registered expansion: creditcards [1.0]
Hi, Quick question hopefully. Is there a way I can phase placeholders in chat when typing it in example. I type %player_name% and it would say my name
nvm me dumb, I just noticed it has bcparse or cmdparse
how can i do that with the money placeholder, i can make it so when in my "deluxemenu" baltop, i choose to see the daily or semester or menstrual or always baltop? is it possible to do that?
Is there a placeholder to see if the user has a certain effect? and another to see how much time is left of this effect? or a placeholder that just checks how much time is left on a certain effect? I already tried to use %player_has_potioneffect_<effect>% but it doesn't return anything
Make sure you installed Player expansion
/papi ecloud download Player
wdym
yea, i have it installed
hi guys
how to add money/balance in scoreboard
It depends on the plugin you have for the economy, for example, for vault it is "%vault_eco_balance%"
check dms
??
/papi ecloud download Vault
What are you trying to achieve
a baltop that allows you to see the money, daily, semester, menstrual and total that a player has earned
So when I click on a menu item or choose daily, semester, menstrual and total
it shows me the ranking with either by day the richest and what they have earned today or another type like menstrual
Hello! when I try to load expansions, an error is thrown in my console
[PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials
remove the essentials expansion. It errors out bcz you don't have the essentials plugin
or I guess you could install essentials if you want it
Ofc there is a way! A bear lernt me!
[21:20:45] [Server thread/ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'stock_store
javax.script.ScriptException: ReferenceError: "BukkitPlayer" is not defined in <eval> at line number 173
I don't know why 'BukkitPlayer ' could be undefined in javascript expansion.
I can't even handle this error by type guard in js side because this error occurred at java eval...
final Map<String, Object> additionalBindings = new HashMap<>();
additionalBindings.put("args", arguments);
if (player != null && player.isOnline()) {
additionalBindings.put("BukkitPlayer", player.getPlayer());
additionalBindings.put("Player", player.getPlayer());
}
additionalBindings.put("OfflinePlayer", player);
try {
Object result = evaluator.execute(additionalBindings, parsedScript);
return result != null ? PlaceholderAPI.setBracketPlaceholders(player, result.toString()) : "";
} catch (RuntimeException | ScriptException exception) { // todo:: prepare specific exception and catch that instead of all runtime exceptions
ExpansionUtils.errorLog("An error occurred while executing the script '" + identifier , exception);
}
According to this part of the expansion's code that error means player is null or player is offline.
But I double checked that the placeholder parsed by player who is online.
https://paste.helpch.at/rimuposidi.xml
none of my placeholders are showing correctly
%player_health%
oones that are not working and
%math_0_{player_max_health}/2% %math_0_{player_health}/2%
the health ones none are working for me
make sure the expansion is installed
i have it
check for errors in console if any
no erros
have you tried parsing it?
/papi parse me %player_health%
were can i send screenshot
it shows
20
when i have 30
and it shows that on everything else
for everyone else*
you have to change tab plugin config for that
cahnge what
goto tab plugin folder
ok
i'll guide you, dm me
ok
Hi, I need help with Parseother on Javascript Expansion. When I try to use parseother on a variable, It parses the placeholder (The one without percent sign) first before being parsed as parseother placeholder. For example,
var ParseOther = "%parseother_{Alink}_{player_item_in_hand}%";
It parses first the "player_item_in_hand" ending up messing the parseother. If i have a bow It will return as %parseother_{Alink}_{BOW}% instead of %parseother_{Alink}_{player_item_in_hand}%
Anyone know how to resolve this?
a baltop that allows you to see the money, daily, semester, menstrual and total that a player has earned
So when I click on a menu item or choose daily, semester, menstrual and total
it shows me the ranking with either by day the richest and what they have earned today or another type like menstrual
i have ignored this stacktrace till now but came here to ask about it
i cant attach images here
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload or similar service to upload images/screenshots.
try building the string and parsing it manually
PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%"+"parseother_{"+"Alink"+"}_{"+"player_item_in_hand"+"}%")```
probably don't need to go as much as I did, but π€·ββοΈ
%server_countdowndd.MM.yyyy-HH:mm%server_time_dd.MM.yyyy%-20:00%
not working
invaild format and time
i need daily countdown
you can't have that I'm afraid. not with this placeholder at least. It will work for some of the day but for some it won't. Unless the countdown ends at exactly 23:59:59 or something like that.
if you do something like %server_countdown_HH:mm:ss_20:30:00% it will count down until 20:30:00 but after that it will show 0
until 00:00
i need every sunday
at 00:00 it will start counting down again since the day changed
at 20:00
yeah idk if its possible. And even if you manage to do it somehow, sunday at 20:00 it will display 0.
so how can i do
yeah idk if its possible
Hi guys. [14:23:09 WARN]: [PlaceholderAPI] Loaded class net.ess3.api.IEssentials from Essentials v2.19.4 which is not a depend or softdepend of this plugin. I wanted to display the top balance in HolographicDisplays, but it does not work. Vault does not work, writes the same error π¦
Those are not errors. Those are warnings and those do quite the opposite. They show its actually working. Well kinda
Those are just warnings from spigot telling you that the essentials expansion hooked into the essentials plugin
The problem is that you're most likely using the wrong placeholder format in HolographicDisplay
HD uses a different format. Not the usual %placeholder_here%
but rather {papi:placeholder_here}
Does anyone know if it is possible to make the placeholder of EXP (%player_current_exp%) formatted like %vault_eco_balance_formatted%? So instead of saying 10000 it would say 10k for an example π Maybe with javascript? idk, I am not experienced with it, so any help would be appreciated!
Found reason of the error.
yeah. its possible with javascript
Thank you so much! When I have 356.500 experience it says 356.50K do you know if it is possible to remove the 0, making it say 356.5K? π If not that is okay, and thanks again π
Please respect the rules, be patient and don't ping staff members!
sorry!
you can change the amount of decimals to be shown in the script. var decimals = 2;
change that to 0, 1, 2, etc.
I want the decimals to be there, just not if it is 0
the script will have to be changed quite a bit for that. I don't really have the time or patience to do that.
var num = Number(args[0]);
function formatNum(num) {
var suffixes = ['', 'k', 'm', 'b', 't', 'qd', 'qn', 's']; //More Suffixes: 'sp', 'o', 'n', 'd', 'ud', 'dd', 'td'
var decimals = 2;
for (i = 0; i < suffixes.length; i++) {
if (num >= 1000) {
num = (num / 1000);
} else {
return parseFloat(num.toFixed(decimals)) + suffixes[i];
}
}
return parseFloat((num * 1000).toFixed(decimals)) + suffixes[suffixes.length - 1];
}
I think I got it
50000 > 50k
50005 > 50.01k
50050 > 50.05k
50500 > 50.5k
I got a better solution
o no
just parseFloat the toFixed number
yeah
I went for a very complex attempt at first as well
like 100000 will actually just be displayed as 100k. its pretty nice
it does all the job for you
sick
Hello, Im kinda new to advanced papi stuff so please stick with me. But what ecloud addon would I have to add to have a condition or something for like if this than display this?
Ex: a player joins server and isnβt part of a faction. So the scoreboard on the right just shows...
'world: whateverworld
money: $
Rank: whateverrank'
They then create a faction and now the scoreboard showsβ¦
'faction: factionname
world: whateverworld
money: $
rank: whateverrank'
Basically j if the player isnt part of a faction or whatever input set, it doesnt show so I dont just have a "faction: " randomly.
Thank you!
Javascript Expansion recommended.
Wdym
like display a custom score like "PJM_coins"
you know what a scoreboard in minecraft is right?
If the plugin supports placeholders you can display it
how?
Which plugin are you using for coins
Then what is PJM_coins???
my scoreboard name???
/scoreboard objective add PJM_coins dummy
What you wanna display in scoreboard
π
what??
π
Use imgur
Hi! I'm getting this error:
[PlaceholderAPI] Failed to download expansion information
Awesome Iβll give it a try once Iβm off work! Anything a noobie to that addon should know? Thank u again!
The javascript expansion executes javascript code. Just simply code what you want to get.
Sample code snippets and community scripts on github.
Check out javascript expansion page. https://github.com/PlaceholderAPI/Javascript-Expansion
If you don't know js syntax I don't recommend this expansion
Can anyone help me understand why when I use this placeholder in an enchanted book with protection 4 it returns? 'no' %checkitem_getinfo,inhand:main,nbtstrings:StoredEnchantments={id:protection,lvl:4}%
Is there a way to use scoreboards in placeholder API?
Assistance needed with Javascript Placeholder:
`function formatEnchantCost() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + Java.type("java.lang.String").join("_", args) + "%").replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
}
formatEnchantCost();`
Does anyone know how I could replicate the result of this placeholder on the latest version of the javascript expansion?
Ever since updating to 1.18, it no longer works and I can't use the old expansion where it used to work
Please @ me if you can help!
Anyone?
@mint fable Could you please tell me what am I doing wrong please.
I cant install javascript expansion I used /papi ecloud download JavaScript and /papi reload but there is no expansion-js.jar created in my expansions folder
/papi dump
I'd recommend checking it using the enchantments modifier
not nbtstrings
[INFO] MexBot issued server command: /papi dump
[04.06 17:55:34] [Server] [WARN] [PlaceholderAPI] failed to post dump details
[04.06 17:55:34] [Server] java.util.concurrent.CompletionExceptionjava.io.IOException: Server returned HTTP response code: 500 for URL: https://paste.helpch.at/documents
[04.06 17:55:34] [Server] at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:114) ~[PlaceholderAPI-2.11.1.jar:?]
[04.06 17:55:34] [Server] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
[04.06 17:55:34] [Server] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
[04.06 17:55:34] [Server] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
[04.06 17:55:34] [Server] at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
[04.06 17:55:34] [Server] at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
[04.06 17:55:34] [Server] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
[04.06 17:55:34] [Server] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
[04.06 17:55:34] [Server] Caused byjava.io.IOException: Server returned HTTP response code: 500 for URL: https://paste.helpch.at/documents
[04.06 17:55:34] [Server] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1997) ~[?:?]
[04.06 17:55:34] [Server] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?]
[04.06 17:55:34] [Server] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224) ~[?:?]
[04.06 17:55:34] [Server] at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:108) ~[PlaceholderAPI-2.11.1.jar:?]
[04.06 17:55:34] [Server] ... more
but it doesn't work with enchantment books
thx I was looking for it, cause my /papi list does show js
hold the book and type /papi parse me %checkitem_getinfo:mainhand% and send the picture here @coarse oar
mat:ENCHANTED_BOOK amt:1 data:0 enchanted:false nbt:
do I have to manually create the js folder?
Yes
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
no
well I placed the file and /papi reload but nothing seems to happen
MexBot issued server command: /papi reload
[04.06 17:58:25] [Server] [INFO] [PlaceholderAPI] Placeholder expansion registration initializing...
[04.06 17:58:25] [Server] [INFO] [PlaceholderAPI] Fetching available expansion information...
[04.06 17:58:27] [Server] [INFO] [PAPI] [Javascript-Expansion] 1 script loaded!
[04.06 17:58:27] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: javascript [2.1.0]
[04.06 17:58:27] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: math [1.3.2]
[04.06 17:58:27] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: armor [1.0.0]
[04.06 17:58:27] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: checkitem [2.6.0]
[04.06 17:58:27] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: player [2.0.2]
[04.06 17:58:27] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: healthbar [0.6]
[04.06 17:58:28] [Server] [INFO] MexBot issued server command: /papi list
[04.06 17:59:17] [Server] [INFO] MexBot issued server command: /papi reload
[04.06 17:59:17] [Server] [INFO] [PlaceholderAPI] Placeholder expansion registration initializing...
[04.06 17:59:17] [Server] [INFO] [PlaceholderAPI] Fetching available expansion information...
[04.06 17:59:19] [Server] [INFO] [PAPI] [Javascript-Expansion] 1 script loaded!
[04.06 17:59:19] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: javascript [2.1.0]
[04.06 17:59:19] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: math [1.3.2]
[04.06 17:59:19] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: armor [1.0.0]
[04.06 17:59:19] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: checkitem [2.6.0]
[04.06 17:59:19] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: player [2.0.2]
[04.06 17:59:19] [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: healthbar [0.6]
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
it loaded
possibly so, not entirely sure
oh there we go, updating java worked
in %objective_displayname_{<obj-name>}% where do i put PJM_JUNGLE_PVP_COINS ?
if you try %checkitem_mat:enchanted_book,enchanted%
does that say yes?
use `` to escape formatting
%objective_displayname_{PJM_JUNGLE_PVP_COINS}%
say "yes"
"does not give a numberical value"
im running /ajlb add %objective_displayname_{PJM_JUNGLE_PVP_COINS}%
what does it give
/papi parse me %placeholder% test it
wait, you're getting the displayname
%objective_score_{PJM_JUNGLE_PVP_COINS}%
that's probably what you want
sorry im really bad at this stuff
%objective_score_{PJM_JUNGLE_PVP_COINS}%?
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
send picture
to go deeper you need to use .. and I'm not sure if it'll work
but I can try and we can see
/ajlb add %objective_score_{PJM_JUNGLE_PVP_COINS}% will not work due to : " this placeholder does not give a numerical value"
/papi parse me %objective_score_{PJM_JUNGLE_PVP_COINS}%
i ran it
ooh yikes I think 4s is short, I only do strings and ints
%checkitem_mat:enchanted_book,nbtstrings:StoredEnchantments..id=minecraft:protection,nbtints:StoredEnchantments..lvl=4% probably won't work
no
did you download the expansion @wary rivet ?
yeah
and reload?
/dh l set PJM_JUNGLE_PVP_COINS 1 1 &6%objective_score_PJM_JUNGLE_PVP_COINS_1_name% &e- %objective_score_PJM_JUNGLE_PVP_COINS_1_value% Does anyone know why this is not working?
(sorry for my english)
Hello, I have a problem with the javascript expansion and playerlist expansion
I made sure (by an outside plugin) that a player in a guild gets the guild.name.NOM_OF_HIS_GUILD permission
I wanted to list players in a guild with placeholder %playerlist_online,perm,yes,list,guild.name.{guilds_name}%, but that doesn't work, the PlayerList expansion doesn't seem to support a placeholder inside another placeholder using brackets {}
So I went through the javascript expansion, and I created this javascript (knowing that I tested before and javascript supports placeholders inside another placeholder) :
Placeholder : %javascript_guildmembers_{guilds_name}%
guildmembers.js :
function members() {
return "%playerlist_online,perm,yes,list,guild.name." + arg[0] + "%";
}
members();
But it does not work π
Could you help me ?
im being driven insane lol
PlayerList expansion does support [placeholder] and {placeholder}
in the last 2 parts of the placeholder*
which you were trying
maybe try the [] instead see if that works
what plugin is that
hello, what is causing that problem?
https://www.toptal.com/developers/hastebin/kalajovira.md
I'm using some placeholders in a command:
- %checkitem_inhand,enchantments:sharpness=6%
- %defaultvalue_{checkitem_getinfo:13_enchantments:}-STRING-empty%
Heyo! Im looking for some help with DeluxeChat and Placeholderapi.
I'm trying to setup chat and the only issue I'm having is getting my factions name to be colored in reference to relations.
Here is my current deluxechat config
https://gyazo.com/b76ed78744e3682d984a12330e3bea1c
I've tried using the placeholder for factionsuuid relations but it does absolutely nothing (defaults to white)
https://gyazo.com/7502ef52d9a6918986c3861d65ed5655
any help would be amazing and much appreciated
Here is a shot of why chat currently looks like for reference:
https://gyazo.com/bf78d1ed5885843b7f8d1097f71a75d5
Thanks for helping me CJ, I could not of learned this API without you :)
Please respect the rules, be patient and don't ping staff members!
:( I was just thanking them
ππ»
with placeholder API is it possible to give a players score ?
say if im looking at it, it will display my stats but if someone else it looking it will display there stats?
the scoreboardobjective one has support for this
@mint fable Unknown expansion.
[otherEntry]
%objective_score_{<obj-name>}_{[otherEntry]}%
if that's what you're talking about
so i can put this at the bottom of my hologram to show anyone their current score?
well no
ah
that would just be %objective_score_{<obj-name>}%
this happens all the time
you see the placeholders for yourself
everybody else sees the placeholders for them
%ajlb_lb_objective_score_{PJM_JUNGLE_PVP_COINS}% right?
'&6&lYou &r&e- %ajlb_lb_objective_score_{PJM_JUNGLE_PVP_COINS}%' im trying this but its just "blank"
i have found out how to do it but it keeps flickering from "You - 2756" to "You - 0"
Hello. If you need help with DChat you'll need to link your spigot account. read the message from @tender vapor under this message
Spigot Account Linking
To get support for a premium plugin owned by Clip or Glare you will need to verify your spigot account using /spigot in the #bot-commands channel. After you have successfully linked your spigot account you should ask your question in the coresponding channel for that plugin. If you have already linked your account and want to update your roles, run this command /spigot check.
I think the problem is the enchantments:. why did you place there if its empty?
[09:30:56 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[09:30:56 INFO]: [PlaceholderAPI] Fetching available expansion information...
[09:30:58 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials
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.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials
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:396) ~[PlaceholderAPI-2.11.1.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
... 1 more
Caused by: java.lang.ClassNotFoundException: net.ess3.api.IEssentials
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:396) ~[PlaceholderAPI-2.11.1.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
... 1 more```
what is this error ?
..
Please respect the rules, be patient and don't ping staff members!
delete the essentials expansion or install the essentials plugin
i have CMI
then delete the essentials expansion
its not there..
/papi dump and send the generated link here
wait
[09:55:59 INFO]: Atharvanh issued server command: /papi dump
[09:56:00 WARN]: [PlaceholderAPI] failed to post dump details
java.util.concurrent.CompletionException: java.io.IOException: Server returned HTTP response code: 500 for URL: https://paste.helpch.at/documents
at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:114) ~[PlaceholderAPI-2.11.1.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://paste.helpch.at/documents
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1997) ~[?:?]
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?]
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224) ~[?:?]
at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:108) ~[PlaceholderAPI-2.11.1.jar:?]
... 2 more```
hmm
I tried %playerlist_online,perm,yes,list,guild.name.{guilds_name}% and %playerlist_online,perm,yes,list,guild.name.[guilds_name]% but neither of the 2 work, going through luckperms I was able to discover that permissions guild.name.{guilds_name} and guild.name.[guilds_name] (literally, with the brackets) had appeared, which means that playerlist does not detect placeholders with {} or [] π
Please respect the rules, be patient and don't ping staff members!
oops sorry for the ping, i didn't think replying to the message was going to be considered as such π
what to do ?
We're looking into that 500 error the dump is returning, looks to be an issue on our side.
What next sir?
Please respect the rules, be patient and don't ping staff members!
read cube's answer above.
but anyways I really recommend you guys check the plugins/PlaceholderAPI/expansions folder for the Essentials expansion
and delete it
We just have luckperms expansion downloaded
How long will it take to fix then?
not sure. but can you send a screenshot of the inside of this folder?
the expansions one
also try restarting the server
I found the solution for my problem ! π
I'll explain it here, at least the next ones facing the problem will know how to solve it
Actually, playerlist expansion does support placeholders inside it, but directly after a comma, so %playerlist_online,perm,yes,list,guild.name.{guilds_name}% doesn't work, but %playerlist_online,perm,yes,list,{guilds_name}% works ! π
So I created this javascript :
guildperm.js :
function guildperm() {
var guild = '%guilds_name%';
return "guild.name."+guild;
}
guildperm();
And this placeholder : %playerlist_online,perm,yes,list,{javascript_guildperm}%
Which solved my problem π
the command should work now
am i doing this right? /ajlb add %statistic_minutes_played%
yeah.
how can i check my boards i have made?
Hey folks, I'm using %server_tps_15_colored% from https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#server
Every now and again, there's an asterisk before the TPS value, what does that mean?
height: 0.3
- content: '&6&l1st &r&6%ajlb_lb_statistic_minutes_played_1_alltime_name%
- &e%ajbl_bl_statistic_minutes_played_1_alltime_value%'```
this is saying board does not exis
t
I believe TPS can sometimes go over 20 (not sure how it exactly works). When it goes over 20, its rounded to 20 and the * is added
try using the /ajlb listcommand. or whatever its called. this will show you all the boards you have
That's fine then. ^_^
see if statistic_minutes_played is listed in there
Yeah its not a problem. Its just letting you know. extra bit of information some might want
nope
when you execute /ajlb add %statistic_minutes_played% does it say anything?
does not give a numberical value
also how do i get my name on the boards? everyones names are on the board apart from mine
Yeah, you right. I changed to enchantments:1, but what does that number do?
nothing
this is how the enchantments option should look
remove it if you don't actually want to look for items that have an enchantment
I believe there's a bypass permission in AJLB. Set that permission to false for yourself.
/papi parse me %statistic_minutes_played% what does this return?
%statistic_minutes_played%
execute /papi ecloud download statistic then /papi reload
oh i did not have it, tis a lmao moment
how do i find all the statisitc placeholders?
im looking for the one that displays H-, M-, S,-
Why cant i display my superiorskyblock stats on a hologram?I have PlacerholderAPI
what hologram plugin?
HolographicDisplays.jar
* Changed format for PlaceholderAPI to {papi: placeholder} (previously was %placeholder%). this is from HolographicDisplay 3.0.0 beta 2
{papi: superior_island_top_level_1} Like this?
yeah
Ty!
Sorry it is working back again ! /
Please respect the rules, be patient and don't ping staff members!
thanks for your time :)
Please respect the rules, be patient and don't ping staff members!
how do i allow my name on the scoreboard?
%player_name%
install player expansion first
everyones name is on it apart from mine
so would i run /ajleaderboards.dontupdate.<board> JMMC101
no.
you would set that permission to false for tyourself
yourself*
that's a permission not a command
for luckperms: /lp user <yourname> permission set ajleaderboards.dontupdate.* false
just ran it still not it any board
yeah. A server restart might even be needed. I forgot exactly what I did but I had to deal with this a while ago as well.
yea quite annoying
this right? /lp user JMMC101 permission set ajleaderboards.dontupdate false
the picture blitz sent clearly states that after 'ajleaderboards.dontupdate' comes another period and then the board
you cant just cut that off
use .* or .<board> at the end
the * makes it red tho
/lp user JMMC101 permission set ajleaderboards.dontupdate.* false is not supposed to be red right?
again, may or may not work
.if that doesn't work, specify the board name instead of *
like this? /lp user JMMC101 permission set ajleaderboards.dontupdate.objective_score_{pjm_jungle_pvp_coins} false
/lp user JMMC101 permission set ajleaderboards.dontupdate.statitic_minutes_played false
pr whatever
if objective_score_{pjm_jungle_pvp_coins} is a valid board name yes
the board name, not the placeholder the board uses
you can see the board names using /ajlb list
its valid but still red, i checked with /ajlb list
doesnt mean it wont work
yeah.
actually try it
OH
haha it worked π
ill need to change all the other holograms now but thank you both for helping me fix this!
Hey what is the placeholder for "The date" and "The time" for example
Date: 18/07/2022
Time: 17:55
Hi guys, do you support Velocity?
no. PlaceholderAPI currently only works on spigot and its fork. no bungeecord or any other proxy support.
Iβm thinking maybe the entire part has to be a placeholder or else it wonβt parse. I canβt write a JS for you now, but I can if you still need it when I get home.
Also technically replies have a setting to turn ping on/off. But for sure ping me if weβre in conversation or else Iβll probably miss it.
No problem, I solved the problem π
Here
Thanks for the help though, if you hadn't confirmed that PlayerList supports placeholders with brackets, I probably would have missed the solution ! π
^ ???
hi, i have a problem, when mi server is restarted the plugin place holder api it doesn't work unless i use /papi reload
example:
oh, i can't send images
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload or similar service to upload images/screenshots.
i have an problem about %player_ping% placeholder
i get an error
where i can send logs?
8 placeholder hook(s) registered! 2 placeholder hook(s) have an update available.
how to knoow which is which?
the white ones ig on doing /papi list nvm
deluxemenus nolonger has expansion?
idk still there s 2 white maybe my launcher going dumb
how to know?
use installed option
and if you want more detail info like versions or update available use /papi ecloud list installed instead
That shows u something like this
Installed Expansions
Name Author Verified Version
----------------------------------------------
1. CheckItem cj89898 Y 2.6.0
2. Formatter andre_601 Y 1.9.0
3. Javascript clip Y 2.1.0
4. Math andre_601 Y 1.4.0
5. Player clip Y 2.0.2
6. Sound clip Y 1.0.0
7. WorldGuard clip Y 1.4.2
Hey, I was trying to use the pinger expansion to get the status of other servers on my network and it seems to only show me Offline
Only works with testplugins.com (as shown in the example on the website)
doesn't work on hypixel or any other server in general
How can I use Placeholder API on BungeeCord?
You cant, its not a plugin for proxy
OK
But there are expansions for bungeecord, that can tell you player count of specific server, if the server is online/offline etc
Update from github to ecloud expansions: vault, player, server!!! I use vault expansion 1.7.1, and have message in console: new expansion vault have 1.7.0!!!!!!
I compile self vault expansion from github
sss
How long does it usually take for PAPI to update to a newer version of Minecraft?
Thanks
np
%bungee_total% placeholder is not working. I have installed the "Bungee" ecloud addon.
try parsing
/papi parse me %bungee_total%
Hi guys, is it possible to make a check in the js to see if the person has the right?
Whats the exact goal you want
For example, the player has the right to fly, in which case papi outputs the text that he can fly. And if the player has no right, then he writes that he is not allowed to fly. I need to implement this for the hologram.
you can execute luck perm command through js placeholder or just store state and return it
for data store, check the community script at js expansion github
if the right u said is permission yes
Thank you so much! You have helped me a lot today! β₯β₯β₯
Update from github to ecloud expansions: vault, player, server!!! I use vault expansion 1.7.1, and have message in console: new expansion vault have 1.7.0!!!!!!
I compile self vault expansion from github
hi guys, does this have anything to do with papi? on holographic displays my hologram shows {slowest} update speed in the holographic display when it should be hidden like so https://prnt.sc/TdE2A6qkhSA1
or is this something else? thank you.
@wary rivet ^
does %statistic_days_played% mean irl days or mc days?
whatever value is given in the statistics menu ingame
Can you help me?
With that
what doesn't work about it, the placeholders?
restart the server, run /papi dump, then send the latest.log here
how do i check the statistics commands
-papi <expansion>
hmmm...
what expansion is used for time displayed as " 1w 4d 13h 34m 1s" on the spigot mc
@wary rivet Unknown expansion.
@wary rivet Unknown expansion.
@wary rivet Unknown expansion.
what does %statistic_time_played% return? I'm unsure if that returns the time in ticks or if its formatted
no just just alot of numbers
Please respect the rules, be patient and don't ping staff members!
@foggy oak let's chat here
run those commands
then type /papi parse me %killstats_kills%
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
send that over
you're getting tons of errors
[22:48:13] [Server thread/WARN]: [OthelloSkyPvP] Task #9 for OthelloSkyPvP v1.0 generated an exception java.lang.IllegalArgumentException: Entry cannot be longer than 40 characters!
but more importantly, you don't have the killstats plugin
yes
now it works
but when mob kills me i dont get that im dead
is that fine
does it only count player kills ?
π€·ββοΈ
%vault_eco_top_rank% isn't working & I already did /papi ecloud download Vault
did they update it
π
Hello, I was wondering if anyone could help me with papi for mcmmo, I have the expansion installed but it says that whenever I install it there is "1 placeholder hook that has an update" Im not sure what this means or how to update that but the placeholder that is not working for me that I need to work is %mcmmo_power_level%
download expansion manually from here
and place it inside /plugins/PlaceholderAPI/expansions/
after that /papi reload
or server restart
thanks!
not I am having problems with mcmmo saying there is an error in the experience.yml that wold value should be over 0 even though I have it set to 500, wouldnt happen to know anything about that?
Help!
My placeholders in my hologram does not work. im typing {papi: superior_island_top_level_leader_10}
hey
Is there a placeholder that lets you display the attacker/ killer?
So the player or mob/ fall damage etc.
Hello,
Plugin: PlaceHolderAPI ( Statistics )
Do you know how to display the number of crops the player harvests?
function PlaceholderCheck() {
if (prem == "%player_has_permission_license.furnace%") {
return "&a&lΠΠΠΠΠΠΠ";
}
if (prem != "%player_has_permission_license.furnace%") {
return "&c&lΠΠΠΠΠΠΠΠΠ";
}
}
PlaceholderCheck();```
Sorry about the ping( that's not how it works if anything.
what is this even supposed to do?
it will always return "&a&lΠΠΠΠΠΠΠ" because %player_has_permission_license.furnace% == %player_has_permission_license.furnace%
I want to check if the player has the right. If he has it, to display one text, and if not - another.
I fixed itβ₯ checked what the placeholder was outputting and it was outputting yes or no
β₯
Is there a placeholder to see if the user has a certain effect? and another to see how much time is left of this effect? or a placeholder that just checks how much time is left on a certain effect? I already tried to use %player_haspotioneffect<effect>% but it doesn't return anything
Is it possible to solve %statistic_ placeholders when the player quits the game? Using PAPIs API
currently the expansion only works with online players.
Ah fuck, for my plugin owners want to be able to enter placeholders like the statistic ones, which I resolve on quit event
is the event fired after the player left? I forget but I remember there being something weird about the quit event.
Yeah its done in a async thread on quit
My place holder api plugin gets an error with failed to load class
Evertime i restart the server
I have to manually reload
Hello,
Plugin: PlaceHolderAPI ( Statistics )
Do you know how to display the number of crops the player harvests?
Y
Plugin placeholders do not work, nor /papi reload, but plugin is enabled.. :/
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: me/blackvein/quests/quests/IQuest
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:396) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more
Caused by: java.lang.ClassNotFoundException: me.blackvein.quests.quests.IQuest
at java.net.URLClassLoader.findClass(URLClassLoader.java:433) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:396) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more```
Go to plugins/PlaceholderAPI/expansions/ and delete the quest expansion (all of them if there's multiple) then do /papi reload.
Have to do /papi reload when server restart
08.06 15:01:34 [Server] ERROR failed to load class files of expansions
08.06 15:01:34 [Server] INFO java.util.concurrent.CompletionException: java.lang.ClassNotFoundException: com.extendedclip.papi.expansion.server.caffeine.cache.LocalCacheFactory$WILoEMWW
08.06 15:01:34 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI-2.11.1.jar:?]
08.06 15:01:34 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
08.06 15:01:34 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
08.06 15:01:34 [Server] INFO Caused by: java.lang.ClassNotFoundException: com.extendedclip.papi.expansion.server.caffeine.cache.LocalCacheFactory$WILoEMWW
08.06 15:01:34 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:429) ~[?:?]
08.06 15:01:34 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
08.06 15:01:34 [Server] INFO at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
08.06 15:01:34 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
08.06 15:01:34 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
08.06 15:01:34 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
08.06 15:01:34 [Server] INFO at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.1.jar:?]
08.06 15:01:34 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[PlaceholderAPI-2.11.1.jar:?]
08.06 15:01:34 [Server] INFO ... 2 more
08.06 15:01:34 [Server] INFO Caused by: java.io.EOFException
08.06 15:01:34 [Server] INFO at java.io.RandomAccessFile.readFully(RandomAccessFile.java:471) ~[?:?]
08.06 15:01:34 [Server] INFO at java.util.zip.ZipFile$Source.readFullyAt(ZipFile.java:1348) ~[?:?]
08.06 15:01:34 [Server] INFO at java.util.zip.ZipFile$ZipFileInputStream.initDataOffset(ZipFile.java:915) ~[?:?]
08.06 15:01:34 [Server] INFO at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:931) ~[?:?]
08.06 15:01:34 [Server] INFO at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:448) ~[?:?]
08.06 15:01:34 [Server] INFO at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) ~[?:?]
08.06 15:01:34 [Server] INFO at jdk.internal.loader.Resource.getBytes(Resource.java:126) ~[?:?]
08.06 15:01:34 [Server] INFO at jdk.internal.loader.URLClassPath$JarLoader$2.getBytes(URLClassPath.java:893) ~[?:?]
08.06 15:01:34 [Server] INFO at java.net.URLClassLoader.defineClass(URLClassLoader.java:519) ~[?:?]
08.06 15:01:34 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
08.06 15:01:34 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
08.06 15:01:34 [Server] INFO at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
08.06 15:01:34 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
08.06 15:01:34 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
08.06 15:01:34 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
08.06 15:01:34 [Server] INFO at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.1.jar:?]
08.06 15:01:34 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[PlaceholderAPI-2.11.1.jar:?]
08.06 15:01:34 [Server] INFO ... 2 more
Hmm
How to deal with this
@arctic loom
Glare already made fix
Whats the place holder for the date and time separately?
the server time placeholder supports java's simple date format https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
so if you want to get the date you could use something like %server_time_dd/MM/yyyy% and for time %server_time_HH:mm:ss%
you can read the link above for all available formats
I believe you have to add them all up. so a placeholder for every crop and then math expansion to add them up.
can you share the error please?
you do have to download the server expansion. /papi ecloud download server then /papi reload
kk
My question is for placeholders tab complete that list comes from the ecloud website?
yeah. I believe so
so people using older versions of Statz expansion will see new placeholders that may not work on the expansion they are using
does anyone know the placeholder that displays all time? as in days minutes hours ecyt
I believe u have to override this method @turbid tide https://github.com/PlaceholderAPI/PlaceholderAPI/blob/master/src/main/java/me/clip/placeholderapi/expansion/PlaceholderExpansion.java#L94
do you? because I'm pretty sure I did with my expansion and it didn't list the placeholders there.
until I've put it on the ecloud
maybe it does with external expansions
but I'm pretty sure internal expansions would have to use that method
would be cool if there was a tab complete method so we could have full control
yeah. I don't know tho. I also remember having the same problem with random teleport. It was showing the placehodlers from the ecloud random teleport expansion not the internal one
Why does Placeholder not detect extension https://api.extendedclip.com/expansions/mines/ For plugin https://www.spigotmc.org/resources/mines-Β»-1-7-1-17-1-β’-unique-features-β’-api.63552/
Hello,
Plugin: PlaceHolderAPI ( Statistics )
Do you know how to display the number of crops the player harvests?
Yes
%statistic_break_item:<material>,<material2>%
Or
%statistic_mine_block:<material>,<material2>%
Hey
Would it be possible to display my servers total balance using PAPI? If not, could that be added?
hi
https://gyazo.com/29da7f72e178706aad74bee939db17f9 like in this image server total balance
Hi o/ I have problem with placeholders for home set and max in Realscoreboard plugin. When i set in config placeholders like this:
&fHome: &6%essentials_homes_set%&7/&6%essentials_homes_max%'
i have same text on scoreboard, not an count of homes
/papi ecloud download essentials
/papi reload
- placeholders not parsing points to the responsible expansion not being present
now it works, Thanks
Hey, upon starting my server I get an error and no placeholders work. I can however reload the plugin and then it will start working as usual, just not when the server starts up. I am running paper 1.18.2 and PAPI 2.11.1
This is the beginning of the error
[11:22:29] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
Any ideas why this could be or how to fix it?
I think it might be due to some expansion I've got, is there any way to figure out which one without just having to test them all?
Hey !
i'm looking for a way to make work these papi placeholders :
%vault_eco_balance%
I have these papi expension downloaded for now :
-Killstats
-Sever
-servertime
-statistic
-vault
-player
But fir these placeholders i still have the %xxxx% showed in game i'm a bit lost, if anyone can help me π¦
Try %statistic_mob_kills%
Yeap, it's good for this one ^^ just have the vault one
But maybe it's because i don't have a proper essential
don't really understand how to put essential on my server ahah
I'm not sure why the vault one isn't working. But you do have vault installed on your server, right?
Vault yeap, but no essential, and i think i need them both
Yea you do need a plugin to handle the economy
Im making a gui for a kits, but there is a problem with placeholders from essentials, they literally didnt work
I ran commands:
papi ecloud download Essentials
papi reload
(still not works)
restart gui plugin
(still not works)
restart server
(still nothing)
whats the problem?
%essentials_kit_is_available_gracz%, yes im sure its correct kit name
I have EssX, and yes essentials expansion is green in /papi list
If you do /papi parse me placeholder, does it work normally?
doesnt work for crops nether stalk...
You need to write exact block material name
%statistic_break_item:CROPS%
BRUH
%statistic_mine_block:crops% " Could not get the statistic " mine_block ... " "
well what is the stat for harvests?
Use math and count all crops together
help pls, i got this error
i don't understand how this placeholder work:
%world name <world>% (without undercourse because discord have text formatting)
i should write something in <world> or just paste it in my scoreboard config?
Write the name of the world
If your world is named lobby, then you do
%world_name_lobby% etc
May I ask what is the problem that the parameters will be broken after I restart the server?
paper 1.18.2
Plugin version PlaceholderAPI-2.11.1
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
@hasty harness send the startup log please. read above for more information.
Too much text, how can I upload it?
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
β’ HelpChat Paste - How To Use
Papi Extension Player does not load on spigot 1.19: https://pastebin.com/3bgSLJU9
try the one from #1-20
I did
oh nvm
you've placed your expansion in the plugins folder
it needs to go in the expansions folder
oh ops
plugins/PlaceholderAPI/expansions
it should yeah
the plugin itself at least. the expansions, they might or might not depending on how they work
Thanks for the info
Is this correct?
I'm looking at the logs and seems like all expansions are loading just fine. Which placeholders break.
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
can you test the placeholder using /papi parse me %vault_eco_balance_fixed% please?
can you execute /papi dump and send the generated link here please?
can you also execute /vault-info and send a screenshot of the output?
can you try another vault placeholder please? /papi parse me %vault_eco_balance% and also /papi parse me %vault_rank%
Although it will be good to hit /papi reload, but every time you restart the server, you have to hit
so if you do /papi reload the placeholder starts working?
YES
can you restart the server, don't execute papi reload and send the newly generated startup log here please?
I am perplexed. The expansion loads just fine, vault - cmi hook seems to be working just fine, there are no warnings/errors, the loader works just fine.
https://i.imgur.com/WB1wLPr.png
I don't know
09.06 20:31:49 [Server] ERROR failed to load class files of expansions
09.06 20:31:49 [Server] INFO java.util.concurrent.CompletionException: java.lang.ClassNotFoundException: com.extendedclip.papi.expansion.server.caffeine.cache.LocalCacheFactory$WSLoSMWA
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
09.06 20:31:49 [Server] INFO Caused by: java.lang.ClassNotFoundException: com.extendedclip.papi.expansion.server.caffeine.cache.LocalCacheFactory$WSLoSMWA
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:429) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
09.06 20:31:49 [Server] INFO at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO ... 2 more
09.06 20:31:49 [Server] INFO Caused by: java.io.EOFException
09.06 20:31:49 [Server] INFO at java.io.RandomAccessFile.readFully(RandomAccessFile.java:471) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.ZipFile$Source.readFullyAt(ZipFile.java:1348) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.ZipFile$ZipFileInputStream.initDataOffset(ZipFile.java:915) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:931) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:448) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) ~[?:?]
09.06 20:31:49 [Server] INFO at jdk.internal.loader.Resource.getBytes(Resource.java:126) ~[?:?]
09.06 20:31:49 [Server] INFO at jdk.internal.loader.URLClassPath$JarLoader$2.getBytes(URLClassPath.java:893) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader.defineClass(URLClassLoader.java:519) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
09.06 20:31:49 [Server] INFO at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO ... 2 more
Please respect the rules, be patient and don't ping staff members!
can you sexecute /papi dump and send the generated link here please?
oh also @austere hawk try the development build of PlaceholderAPI from here https://ci.extendedclip.com/job/PlaceholderAPI/152/
is there a papi 1.19 branch that i can build to test my plugin?
Please respect the rules, be patient and don't ping staff members!
10.06 03:28:49 [Server] WARN failed to post dump details
10.06 03:28:49 [Server] INFO java.util.concurrent.CompletionException: java.io.IOException: Server returned HTTP response code: 500 for URL: https://paste.helpch.at/documents
10.06 03:28:49 [Server] INFO at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:114) ~[PlaceholderAPI-2.11.1.jar:?]
10.06 03:28:49 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
10.06 03:28:49 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
10.06 03:28:49 [Server] INFO Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://paste.helpch.at/documents
10.06 03:28:49 [Server] INFO at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1997) ~[?:?]
10.06 03:28:49 [Server] INFO at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?]
10.06 03:28:49 [Server] INFO at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224) ~[?:?]
10.06 03:28:49 [Server] INFO at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:108) ~[PlaceholderAPI-2.11.1.jar:?]
10.06 03:28:49 [Server] INFO ... 2 more
10.06 03:28:49 [Server] INFO Failed to post dump details, check console.
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
Not yet, soonβ’οΈ
It seems to be a problem in expansions, I can use the old one
Please respect the rules, be patient and don't ping staff members!
Hey uh how do I setup deluxemenus to work in a way that
I have a portals plugin
And when someone enters that portal, deluxemenus should open a menu for that player
How do I setup this
the portal has to send the open command for the player
How
depends what/if at all the portal is handled by a plugin
hey can i install papi on bungee?
no
Hello, why my cooldownbar "rdy tag" doesnt work for me? %cooldownbar_{luckperms_expiry_time_work.warmup}_p:&aβ _i:&eβ _r:&7β _l:5_c:5s_rdy:&aRdy!%
I use simple portals plugin
does it have 'enter commands' or similar? you'd there add the dm open command
Yeah it has addcommand function but entering dm open command doesn't work, it asks for player name
yea so the portal plugin must have a player selector. go by it's wiki and see what it suggests to use
Ok
I'm using latest version of PAPI, and every time I restart my server I have to do /papi reload or else placeholders are not automatically loaded. Anyway to fix? (please ping if reply)
anyone ?
Can some1 help me with my placerholders for superiorskyblock not working with HolographicDisplays.jar
holographic display uses a different format: {papi: placeholder_here} instead of %placeholder_here%.
can you restart the server and send the startup log here please?
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
Thats what im doing
- '&f&l#10 &8&l- &3{papi: superior_island_top_level_leader_10} &8&lβΌ &3{papi: superior_island_top_level_value_1O}'
what version of HD do you have? make sure you have the latest beta.
if you do then execute /papi parse me %superior_island_top_level_leader_10% and tell me what it returns please.
That's the only worthy output in logs
any ideas? @turbid tide sorry for ping
Please respect the rules, be patient and don't ping staff members!
using latest version on spigot
https://paste.helpch.at/olesepejin.js if Im going to be using this in a context for luckperms, would it cause lag?
or would it be better to create a different javascript for each one to reduce the amount of placeholders parsed
Hello!
Im using BungeeCord expansion and after the server is turn on for some hours the placeholder %bungee_<server>% stops updating. It will say there are "10" players but there are more.
I tried doing /papi reload but after that placeholder will return "0" in every server.
Thanks a lottt i was trying to figure this out and now I found the way.
actually I have to add the command with dm open menu:PLAYER
This opens it for the player ;)
Again thanks
π
oke ty
so placeholderapi doesnt work with 1.18.2?
It works just fine?
^
ah some expansions where not up to date
Hi, when I open my server Magma 1.12.2 with Player and LuckyPerms expansions my server doesn't open, it stops when the console says it's loading the expansions. When I delete and open them if it works... I'm using version 2.11.1
how can i get something like @p using placeholder?
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
find out the nearest player near me
Does anyone know how to get the name of the player closest to the player?
Ah, you cant do that with papi
May be use ParseNear and parse %player_name%
and how can i do that?
# install expansion
papi ecloud download ParseNear
# reload papi
papi reload
# parse placeholder
papi parse me %parsenear_player_name%
try this
ok, Thanks
np. I tested it on my server, it works.
math expansion?
What's the current status for PAPI? I know there's no 1.19 build, but is it functional? I notice that it runs, but that's as far as I've got thus far lol
there's no reason for it to not work really
Is there a placeholder that returns the value of a players health + any extra hearts from absorption?
so If I had 10 hearts + 2 hearts it would return 24?
afaik, there is no placeholder for that. At least not in the Player expansion. It might be in another expansion tho but couldn't find one.
Alright, is there any way I can create my own placeholder either with an api or something?
Can someone help me, please?! PlaceholderAPI plugin generated this Exception in server console:
https://pastebin.com/KuxNrmBy
hey
i need a help
if a factions tag is a empty, i want to replace to: None. (actually is a empty)
if a factions tag is not a empty, show a factions tag
how to do that?
@wicked ocean you can make a javascript placeholder
worked thx
function example() {
return BukkitPlayer.getHealth() + BukkitPlayer.getAbsorptionAmount()
}
example()
use this js placeholder
rename it whatever you want
why do i have to register the placeholders everytime i start up my server
it just happened today
before i didnt have to do it until now
Is it possible to round down the result from a placeholder? ie my essentials home coords are 12 decimals long, instead of 1
you could use the math expansion.
%math_1_{essentials_homes}% or whatever.
Hello, I created an expansion and it does register but does nothing and onRequest method never gets invoked when I try /papi parse. After couple days of looking found nothing that helped, does anyone have any idea?
Here is the class: https://pastebin.com/kh8hz2Q7
identifiers have to be lowercase iirc
if thats the issue I will eat my shoes
let me check π
I changed the identifier and equalsignorecase checks to lowercase but nothing changed
for additional info I'm compiling the plugin with java 11 on spigot 1.15.2
this is how I register the class
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
new Expansion(data).register();
}
yeah
follow those steps for an internal class
few things missing
remove onPlaceholderRequest if you don't require the user to be online
I did follow it but let me do it again
might have followed a different one
realized I don't actually, gonna remove thanks
I'd recommend passing your plugin instance vs the FileIO instance
in case you need to reload it or something at one point
changed ASIC to asic, added missing pieces of and added code from tutorial still no success on /papi parse me %placeholder%
Please respect the rules, be patient and don't ping staff members!
it feels weird like I'm missing something so small but can't find it
you're typing /papi parse me %asic_totalPrizePoolPaid% ye?
nice
lmfao it worked the whole time
I was using macro to test the commands and it removed asic_ from them
and I'm gonna go eat my shoes now as I promised
Thanks a lot π
F************CK
π
sorry for spamming have a wonderful rest of your day
you too, good luck with the shoes π
Thanks!
Please respect the rules, be patient and don't ping staff members!
It seems like %server_ram_used% is reporting a wrong number, using the Server expansion. Am I missing something
My server is using 5.25 gb currently but /papi parse me %server_ram_used% returns 1325.
never mind
should be using %server_ram_total% π
what does /papi parse me %server_ram_total% return, also what does /papi parse me %server_ram_max% return?
yeah. the actual 5.25 might not actually be used
just reserved
Yeah, sorry about that :ΓΎ
no worries π
Is there something I can do to combine %server_ram_total% across multiple servers? Say I have 4 servers and want to return all of them combined?
there's no bungee support in PlaceholderAPI as of now no. You'd have to write your own thing to get that.
https://paste.helpch.at/wifataceyo.php so I have this javascript, and I'm trying to make it so it takes away a raw potato and gives a baked one, but it gives a baked one even if the if statement is false
check cyberstatistics plugin
you shouldn't need to use PlaceholderAPI.static.setPlaceholders
the placeholders are automatically parsed inside strings
well im not sure how to just parse it
ah ok
still gives me a baked potato though
if i return num, it gives me no
oh right. bcz it parses them when the script is initalized
oh
gimme 5 mins
use the static thing but instead of only 1 string for the placeholder concat multiple ones
oh, I was gonna make a new variable, and if it equaled yes, then set the var to 1, if no, then set to 0. and have the give baked potato amt: be the new variable
but this is so much better π thanks!
what papi command uses %maxplayers%?
that's not a PlaceholderAPI placeholder
hmm
praying for papi 1.19 rn
Hey, Holographic Displays doesn't pick up placeholders from external plugins that works with /papi parse any idea why it might be happening?
@sacred violet do you have https://www.spigotmc.org/resources/holographicextension.18461/
or this one if your running newer MC https://www.spigotmc.org/resources/holographic-placeholders-holoextension.64535/
I found this on the wiki of HD
The file /plugins/HolographicDisplays/placeholders.yml contains the list of custom placeholders.
Despite having the .yml extension, it's not a normal YAML file.
To add a new placeholder:
Open placeholders.yml.
Add a new line with the format <placeholder> = <replacement>.
Reload the plugin with /hd reload.
You can now use your custom placeholder in holograms and it will be automatically substituted with the replacement.
but these makes more sense, thanks!
that is not papi placeholders, the data will not change
use one of the above plugin addons to get papi placeholders to work
they worked thanks a lot
also looks like v3.0.0 supports these built in
gonna try that one also
I recommend decent holograms
Holographic Displays v3.0.0 does the job without need of additional plugins
just tested it
with my custom plugin
just some weird format for it
also shoes were not that bad after resting in oven for couple hours then frying with salted butter
nice
yeah but my client wants it to work without anything else if possible so I'm going with this I guess π
thanks again!
holographicdisplays fell off
how can i display kills and deaths
%statistic_deaths% %statistic_player_kills% after running those commands @raven sparrow 
Can someone help me with math expansion?
I want to merge 2 placehoders values how to do that
merge as in add them?
%math_0_{placeholder_1}+{placeholder_2}%
Thanks!
left_click_requirement:
requirements:
has_permission:
type: has permission
permission: deluxemenus.warrior
has_cooldown:
type: javascript
expression: '%mcd_left_test% = 0'```
what am i doin wrong ?
when i remove the second requirement it works
== @lone moth
hello
- "papi ecloud download Javascript"
- "papi ecloud download javascript"
- "papi ecloud download Javascript"
- "papi ecloud download javascript"
/papi ecloud download Javascript
deleted through placedholder?
no builds for 1.19 yet
should work anyways
yeah still works
β€οΈ just went here to say I love the devs
gey guys, I have a problem with placeholders. like, I cant paste command with the skript plugin.
https://cdn.discordapp.com/attachments/633647463231914005/986373096338501673/unknown.png
what should I do to fix it
I want to execute some of the commands from the skript
what is that
okeeey
both were updated around august 2021, later than the other 2 expansions
ye I see
not quite, exact info is on the website
π
thank u a lot
On some players, placeholder %player_total_exp% give no value, while some other give correct value. How to solve this? Thanks
are all players online?
Will 2.11.1 work for 1.19?
yes
Please respect the rules, be patient and don't ping staff members!
Does it seem to have anything identifying who it works for and who it doesn't work for?
Can you type /papi dump as well
Here's the papi dump result: https://paste.helpch.at/uxixelonij
afaik, the problem is happened randomly, some of staff and normal player both experience this issue. I suspect, this is because the placeholder value is not updated, even though the player has been online for a long time. Is there any way to force update placeholder values?
where are you having issues with it?
In Skyblock server. On some players, placeholder %player_total_exp% give no value, but some other give correct value.
Does the issue persist if you test it with /papi parse <player/me> %player_total_exp%?
yes
I'd recommend updating placeholderapi and try again
the placeholder updates every time it is called fyi
okay, thanks for the info. I will update the plugin and give more info later
How can I reset placeholder
which placeholder?
nevermind me
So I'm like new with these, I contacted the dev of ajlb and he told me to contact papi to reset the place holder
Yes, that's why I'm asking which placeholder you want to reset.
Every leaderboard you have is based off of a placeholder
so that's stored with the player's nbt file itself
either you reset the nbt file(s) or you manually edit each one
How do I reset nbt files
Please respect the rules, be patient and don't ping staff members!
Hm? I didnβt ping nobody
The player data folder in your world save. This deletes ALL data for that player, inventory and all.
And if you delete the folder it deletes everybodyβs data
And technically, reply has an option to disable pinging, but itβs fine we were in conversation.
Hi, trying to use placeholders and parsing it to make sure they're valid but they don't work if they're against one another
This doesn't work: &%trainerlevels_rankcolor%%trainerlevels_level% &3(&b%trainerlevels_xp% experience&3)
This works: & %trainerlevels_rankcolor% %trainerlevels_level% &3(&b %trainerlevels_xp% experience&3)
[17:32:10 WARN]: java.lang.NoSuchFieldException: ping
[17:32:10 WARN]: at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
[17:32:10 WARN]: at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:49)
[17:32:10 WARN]: at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:270)
[17:32:10 WARN]: at PlaceholderAPI-2.11.1.jar//me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:161)
[17:32:10 WARN]: at PlaceholderAPI-2.11.1.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70)
[17:32:10 WARN]: at PlaceholderAPI-2.11.1.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98)
why am i getting this warning
using 1.17.1
how do i do this
/papi ecloud download player iirc
Can you check your direct messages? @vivid sparrow
Where do i change %server_name% in Server addon?
I mean i have no config like this in server properties
plugins/PlaceholderAPI/config.yml
https://cdn.discordapp.com/attachments/694963864390860803/986686752146194432/unknown.png
I know the expansion KillStats hasn't been updated in a while, but is there any possible ways of fixing this? It includes all the placeholders I need.
Or if there are any expansions which include player kdr, player kills, player deaths, and player streak, then that's cool, too.
KillStats require a plugin, is not a stand alone expansion afaik
oh?
judging by the name of the plugin, probably this one https://www.spigotmc.org/resources/killstats.2098/
Thank you
When trying with the plugin, although this time it successfully registers, the placeholders don't show when using it in scoreboard. The plugin is also marked as red in the /plugins list. Do you know what the issue could be now?
When trying to run any command with the plugin, it raises this error:```yaml
[19:51:26 INFO]: MoritzSnek issued server command: /killstats MoritzSnek
[19:51:26 ERROR]: null
org.bukkit.command.CommandException: Cannot execute command 'killstats:killstatsadmin' in plugin killStats v3.0 - plugin is disabled.
java.lang.NoSuchMethodError: 'org.bukkit.entity.Player[] org.bukkit.Server.getOnlinePlayers()'
F, NoSuchMethodError, I guess it's because just outdated and i dont think it's fixable
Is it possible to make remove all text in a string except a players name
For example, if someone types "0bviouslee hello", could I use something like formatter to just keep 0bviouslee and remove hello?
KillStats hasn't been updated since 2014 so its possible it doesnt support your version
@warm ploverIn chat to filter what is sent to screen use a chat filter of some kind
Not a filter, it's was for a mention system
But I was trying to make it myself without the use of another plugin
you could use javascript but it seems like a very inefficient thing to do. imo, you should make a plugin for this instead
the script would be, looping thru all player names, seeing if it contains it then you have it.
ok so
I have featherboard working, and I have papi with all my expansions downloaded
despite having the scoreboard objectives addon
it wont display / parse my scoreboard scores
it just always shows as 0
it didn't delete the leaderstat :(
dose placeholderapi work with 1.19?
Yes
how come /papi ecloud download DeluxeTags doesn't exist anymore?
DeluxeTags includes a PAPI expansion by default, you don't need to download a separate one
Well it's not recognizing my deluxetags placeholder
since when?
1.8.2?
i'm like 99% sure Blitz added it
ye he did
just not sure when, I've been telling people to /papi ecloud download deluxetags lmao
π€·ββοΈ
ye 1.8.2
fool, I am
i feel vindicated lol
In my essentials config yml, I used two placeholders in the chat format section, but it's not showing them in chat, any ideas how to fix? This worked for the longest type, but then I updated my server to 1.18.2 (and updated all other plugins)
format: '{DISPLAYNAME} &8[&r%elitemobs_player_active_guild_rank_name%&8] &r%deluxetags_tag% &8&l>&r {MESSAGE}'
essentials doesn't support placeholderapi by default
you might've been using chatinjector?
ya... that hasn't been updated in a while
so it could be broken
does it load?
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
let me check
[19:13:30] [Server thread/INFO]: [Chat-Injector] Enabling ChatInjector v1.1
ye, I'm gonna say it is prob just broken
just to make sure, /papi parse me %elitemobs_player_active_guild_rank_name% %deluxetags_tag% still works right?
it returns the correct values?
It's weird because I used that version of chatinjector since 1.16-1.18.1, then I update to 1.18.2 and it breaks
yep shows correct values
Let me check
and just make sure to restart if you do make any changes
okay, thank you though