#placeholder-api
1 messages ยท Page 200 of 1
What would Gamepoints be for a prefix
whit Cyberlevels Placeholders arnt working has it never been on the papinor is it oudated
is there a way to have a that when a server is online it will say it in the scoreboard
and when online it is green and when it's offline it's red
Hello! I have an issue with Vault placeholders.. %vault_eco_formatted% isnt working, anyone know if thats a known issue
or idk what to do..
even on parse
%vault_eco_balance% works well, but %vault_eco_formatted% isnt working at all
! Found the issue, im using now an old PAPI version and it works perfectly
Is there a way to call another another script from inside your custom JavaScript? With my limited webpage design knowledge and research I came up with this but it only gives me <eval> errors when trying to /papi parse it.
$.ajax({
type: "POST",
url: "/plugins/PlaceholderAPI/javascripts/script.py",
data: {
param: "%playername%",
}
}).done((o) => {
console.log(o)
return 'success';
});
I've tried from lots of different approaches and angles so far but I always run into the issue of JavaScript not being able to handle things on its own but requiring additional resources like Node.js or jQuery. If I were to install those how could I even make sure that they are invoked when the JavaScript is running and provide their functionalities?
can't do that
So JavaScript placeholders are more or less an isolated box and the only way to 'interact' with it would be the Data.set() and Data.get()?
That is not a valid placeholder @bold mesa
%vault_eco_balance%
%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_balance_commas%
%vault_eco_top_balance_#%
%vault_eco_top_balance_fixed_#%
%vault_eco_top_balance_formatted_#%
%vault_eco_top_balance_commas_#%
%vault_eco_top_player_#%
%vault_eco_top_rank%```
Like all my placeholders aren't working and all I could find was this, https://mclo.gs/BrJ9Al1
It started happened after an auto restart out of nowhere bruh.
Hi, I got this error after a reboot, while I didn't before Purpur 1.16.5
https://paste.helpch.at/alifusejuv.sql
what is going on
only thing I can think of is to delete all your expansions and re-download the ones you need @grand turtle @lament verge
Alright
a
Where is pom.xml ?
inside a plugin ig
I just follow this steps
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI#first-steps
?
what you want to do man
What syntax does placeholder have?
you wanna make your own placeholder? ๐๏ธ
no
??
%blah_blah%
you're confusing
Here
BUILT IN PLUGIN PLACEHOLDERS:
%player% - Returns player name
%location% - Returns player location
%online% - Returns number of players online
%online_max% - Returns number of max player slots
*** USE PLACEHOLDERAPI TO GET MORE ***
(https://www.spigotmc.org/resources/placeholderapi.6245/)
which one has it all?
๐
I downloaded it to get more placeholders
done
for what?
And which ones are already in?
Can I just use the placeholders now in other plugins?
yes
Do you know deluxehub?
yeah
Now I can use the placeholders there, right ?
you can
depends on the placeholders you using
type the below commands in game
make sure you have PlaceholderAPI installed and enabled
/papi ecloud download AutoRank
/papi reload
and you're good to go
do you have AutoRank plugin installed?
Yes
I mean I just did that:
/papi ecloud download AutoRank
see
what you want to show in delxue hub config
just lemme know that
playertime or balance or something
How much the player played on the server
alright give me a minute
first of all delete that autorank expansion fromyour expansions folder
done
/papi ecloud download Player
/papi reload
/papi ecloud download Statistic
/papi reload
yea it says:
1 placeholders hook(s) registered
use this placeholder
%statistic_time_played%
type below commmand in game and check the result
/papi parse me %statistic_time_played%
And I need nothing to do like import player or something in the deluxehub configs, before use this systax?
no, you don't need to do anything
What Placeholder do you need if you want this
Cash: 1K and not Cash: 1000
And %vault_eco_formatted% %vault_eco_fixed% arnt working i did /papi ecloud download Vault****
Hey, How can I use placeholders in commandblocks? like give %player_name% apple 1
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:428) ~[PlaceholderAPI-2.11.2.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
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.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:113) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:128) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:105) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:574) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:405) ~[PlaceholderAPI-2.11.2.jar:?]
... 7 more```
How do I fix this issue?
Whenever the server restarts, I have to do /papi reload for my placeholders to work.
And this is the only error in console
Hi y'all. Having an issue with DeluxeTags + PAPI. When I run the command /papi parse me %deluxetags_tag%Test the following error is output in the console:
Oh can't upload files. One sec
Caused by: java.lang.ClassNotFoundException: me.clip.deluxetags.DeluxeTag
at com.extendedclip.papi.expansion.deluxetags.DeluxeTagsExpansion.onRequest(DeluxeTagsExpansion.java:88) ~[?:?]
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.commands.impl.local.CommandParse.evaluateParseSingular(CommandParse.java:118) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.commands.impl.local.CommandParse.evaluate(CommandParse.java:58) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.commands.PlaceholderCommandRouter.onCommand(PlaceholderCommandRouter.java:114) ~[PlaceholderAPI-2.11.2.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
... 17 more
There was a bunch more but that's the important part
Is theare any placeholder that allows to count how mutch certain item you have. Like head with custome name
Seems like the DeluxeTags update broke it
Found it...
- Since the external PlaceholderAPI expansion is not needed anymore, if you have PlaceholderAPI installed go to plugins/PlaceholderAPI/expansions and make sure you don't have any Expansion-Deluxetag.jars in there. If you do, delete them and execute /papi reload.
Hello, currently my server has been consuming a lot of ram and I have looked at which plugins could be the ones that consume so much, and I removed the placeholder and it is one of the most consumed, is it normal?
Without placeholderapi it consumes me 6 - 8gb ram and with the placeholderapi it consumes me more than 16 ram
What placeholder? @quick fox
Calling it now. Javascript.
vault
Nvm
Without the vault expansion, it goes to 6gb ram, I put the vault and it goes up to 16
disable the baltop task in your placeholder config.yml if it isn't already.
That helps?
If it wasn't already disabled, that would probably be why.
Just reboot after doing that change.
It was activated and what I am seeing is that if it consumed enough gb of ram, why?
That task was deprecated over a year ago. It was poorly implemented. If you need baltop placeholders, use the new ones in EssX. The old vault one did the same thing, but we use EssX specifically now.
What Placeholder do you need if you want this
Cash: 1K and not Cash: 1000
And %vault_eco_formatted% %vault_eco_fixed% arnt working i did /papi ecloud download Vault**
[06:30:51] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI-2.11.1.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
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.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:113) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:128) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:105) ~[pufferfish-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.1.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[PlaceholderAPI-2.11.1.jar:?]```
It's been on console for days and I haven't touched anything on the server for weeks, what's wrong with PAPI?
I have the same problem, I don't know why this is happening, I haven't touched anything on my server and now it is happening
What Placeholder do you need if you want this
Cash: 1K and not Cash: 1000
And %vault_eco_formatted% %vault_eco_fixed% arnt working i did /papi ecloud download Vault**
Hello currently when I use vault placeholders they just go blank...
For example, when I use them on Holograms- (%vault_eco_top_balance_1% becomes 0.0) and (%vault_eco_top_player_1% becomes two spaces)
I have vault, Placeholder api, Proc Lib & Holographic Dispalys & Holographic Expansion.
In addition to this i have the vault, player and server extensions on papi downloaded
I have no errors, and my papi dump shows no problems either.
Expansions Registered:
csl [Author: DrOreo002, Version: 1.0-SNAPSHOT]
playtime [Author: [F64_Rx], Version: 3.1]
tab [Author: [NEZNAMY], Version: 2.8.9]
krakendonations [Author: aglerr, Version: 2.6]
player [Author: clip, Version: 2.0.3]
server [Author: clip, Version: null]
vault [Author: clip, Version: null]
auctionhouse [Author: klugemonkey, Version: 2.2.3]
Fixed - Bal Top is off by default. My fault, missed it int he config.
Hello, i have the following issue, does anyone know about this?
[01:59:46 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[01:59:46 WARN]: java.lang.ClassNotFoundException: net.minecraft.server.v1_18_R1.MinecraftServer
[01:59:46 WARN]: at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
[01:59:46 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
[01:59:46 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
[01:59:46 WARN]: at java.base/java.lang.Class.forName0(Native Method)
[01:59:46 WARN]: at java.base/java.lang.Class.forName(Class.java:375)
[01:59:46 WARN]: at com.extendedclip.papi.expansion.server.ServerExpansion.<init>(ServerExpansion.java:59)
[01:59:46 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[01:59:46 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
[01:59:46 WARN]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[01:59:46 WARN]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[01:59:46 WARN]: at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
[01:59:46 WARN]: at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
[01:59:46 WARN]: at java.base/java.lang.Class.newInstance(Class.java:645)
[01:59:46 WARN]: at PlaceholderAPI-2.10.6.jar//me.clip.placeholderapi.expansion.ExpansionManager.createInstance(ExpansionManager.java:200)
[01:59:46 WARN]: at PlaceholderAPI-2.10.6.jar//me.clip.placeholderapi.expansion.ExpansionManager.registerAllExpansions(ExpansionManager.java:171)
[01:59:46 WARN]: at PlaceholderAPI-2.10.6.jar//me.clip.placeholderapi.ServerLoadEventListener.onServerLoad(ServerLoadEventListener.java:52)
[01:59:46 WARN]: at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor66.execute(Unknown Source)
[01:59:46 WARN]: at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:75)
[01:59:46 WARN]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[01:59:46 WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[01:59:46 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:629)
[01:59:46 WARN]: at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:737)
[01:59:46 WARN]: at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:503)
[01:59:46 WARN]: at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:313)
[01:59:46 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1211)
[01:59:46 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)
[01:59:46 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
Update the server expansion. Also update PlaceholderAPI. You're 7 versions behind.
The changeoutput expansion was updated recently and has a new syntax. I recommend you check either their github page or the placeholders page to see how it looks like now.
%math_0:1_{server_online_world}+{server_online_world_nether}%
%vault_eco_balance_formatted%
or %vault_eco_formatted%. I forget how it is named
Do i have to delete and re download again the expansion or is it a command to magically update the expansion?
/papi ecloud download server then /papi reload should automatically remove the one you have installed and download the newest one
available on the ecloud
perfect! ty
yeah @livid sun its %vault_eco_balance_formatted% not %vault_eco_formatted%. Someone updated the wiki with the wrong placeholders for some reason.
it worked, ty!
๐
Update the server* ๐ฅฒ
true that. but 1.18 is not the worst it could be.
Ahh, I thought it says 1_8_R1
Hi i have this problem, can anyone help?
i need to reload papi to fix expansions
help??
Hi - Iโm having a problem where DeluxeTags are showing in chat but not in the tab and the console is generating this error: https://www.toptal.com/developers/hastebin/nefayikebo.apache
DeluxeTags no longer requires an expansion! Go to plugins/PlaceholderAPI/expansions and delete the DeluxeTags expansion. Restart the server afterwards.
Yeah. With the pinger expansion. But that expansion is very often reported to be broken. It works sometimes and it doesn't other times. You'll have to try it.
Does anyone know how to escape % sign from PlaceholderAPI
For example, I want it to actually display the percentage sign...
How can I install the Plugin on my Bungee, it always gives an error.
that's because PlaceholderAPI Doesn't support bungeecord
๐คฆโโ๏ธ
it has cold start
Please respect the rules, be patient and don't ping staff members!
im sry for ping
Thx
Please respect the rules, be patient and don't ping staff members!
Hi there, i get this in the console without changing anything, any idea why? https://pastebin.com/vMZUW4Kk
how does the pinger placeholder work?
I tried multiple different things, none of them seem to give a correct output
%pinger_gameversion_play.sivils.net:25567% gives me blank
isonline give mes '&cOffline' in chat
How do I make %player_health_rounded% output divided by 2
iirc pinger expansion was a bit broken
Use math expansion
Hey. I have this problem with placeholderapi. on the first server run it works like it should, but when i restart it shows this https://pastebin.com/n46Wxdsn
What could cause this?
When I do /papi reload it fixes it, but yeah, I need to get a fix, because on another restart it breaks
I just tried clearing my expansion list and redownloading all expansions, without luck
Also, here's my /papi dump
its very weird. I've seen this error a few times and it has always been on purpur. I wonder if its related. Any chance you can try using just normal paper for a bit @manic imp?
Now it shows this https://paste.helpch.at/idosojesab.sql
there's nothing above it?
can you please restart the server and send a full startup log after?
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.
๐
@turbid tide I fixed it by making https://github.com/PlaceholderAPI/PlaceholderAPI/blob/master/src/main/java/me/clip/placeholderapi/expansion/manager/LocalExpansionManager.java#L339-L375 inside of an new BukkitRunnable() { /* Futures thing */ }.runTaskLater(plugin, 20L);
Please respect the rules, be patient and don't ping staff members!
interesting. will let the devs know
Yeah, it is a strange bug. I will make a pr
did it have to be 20 ticks btw? couldn't you get it to work just 1 tick later?
I made it on 1 tick, it does work. Opened a pr, thanks for pointing out.
Please respect the rules, be patient and don't ping staff members!
Please respect the rules, be patient and don't ping staff members!
Hello, is there a way to evaluate a placeholder in the context of the player's client? I'm using TAB, and I would like to display different information depending on the rank of the player seeing another player
So I can, for example, display certain information above a players name if the player seeing it has the Admin role, but it won't be shown otherwise
relational placeholders
What are those?
exactly what you need. when the setRelationPlaceholders is called you get 2 players instead of just one
so you can return different strings based on the relation between the 2 players
Ohh, will RelCon work then?
Hey I updated to 1.19
new PAPI and all
My placeholders seem to be borked, can't parse them
Is that just me
am noob nvm
Do relational placeholders do not work as a parameter for other placeholders?
Any idea whats up here? https://www.toptal.com/developers/hastebin/ovuhufubel.sql
Seems to happen only once in a while right after I restart my server
https://paste.helpch.at/ugucayezey.sql always getting this error on startup
Is there a way to manually evaluate a placeholder inside of a javascript placeholder?
Something like a function that receives a placeholder string as an input and returns the result as an output
Hello! I need a plugin with a placeholder that returns a text based on the player's permissions, for example:
%placeholder_text% = 𶐎 = permission.text.𶐎
%placeholder_text% = 󴈿 = permission.text.󴈿
%placeholder_text% = &#ffffff= permission.text.&#ffffff
permission values would be set in a .yml not in the permission itself
any ideas?
PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "placeholder" + "%")
Hey, is it possible to use an equation in a placeholder to change the output, Im trying divide the output in half, instead of %player_health_rounded% showing 20 on max hearts, im trying to make it show 10
use the math expansion
I've had a look at that but wasnt sure how to use it
%math_0_{player_health_rounded}/2%
this will return the number with 0 decimals
set the 0 to how many decimals you want
Awesome that worked, thanks!
placeholders seems to just break and I need to reload papi for them to work
this is a 1.19 server
https://paste.helpch.at/aliletibor.sql also getting this error on startup
Is it possible to make a placeholder: display the online world but this player who is watching this placeholder is deleted in this player counter?
I don't think I understood completely. Do you want a placeholder that shows how many players are online in a world without counting the player that's watching?
Yes
you could use the PlayerList expansion. I'll give an example in a few minutes
Okay. I'm waiting!
%playerlist_online,world,no,amount,<worldName>%
I hope I remember how I made that expansion correctly
thanks tanguy โค๏ธ
Thanks
I saw in your plugin there is a placeholder where random numbers are shown, so is there a placeholder to display random words?
u can use the rng expansion
%rng_list:word,someotherword,etc%
that will choose a random word from the list if that's what ur after
Yes, Thanks
Any idea whats up here? https://www.toptal.com/developers/hastebin/ovuhufubel.sql
Seems to happen only once in a while right after I restart my server
It only happens every once in a while.
I foud an issue the bungee expansion always say it need to be updated
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.2</version>
<scope>provided</scope>
</dependency>
having trouble with the version, it's giving an error
dependency not found
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
Send your pom
Is there any way to get this level of nesting to work: %checkitem_remove_mat:{name},amt:{math_{deluxemenus_meta_amount_INTEGER_1}*64}%
Nevermind found a workaround
Hey, is there a placeholder that returns the current weather (clear/rainy/thunder) of the world?
%world_thunder_<world>%
%world UNDERSCORE thunder UNDERSCORE <world>%
That's the best I could find :/
use `` to escape formatting fyi like_this
I'll try it later, was thinking if there's an escape character
Does it work for all placeholders?
Thanks man
Wait you meant discord escape formatting ๐คก
Basically my world name is world_new, however, %world_thunder_world_new% returns nothing
Change the world name?
i figured that would've worked, shame it does not
!deluxemenus
? @left matrix
why is lore isnt working
on 1.10.5
deluxemenus
my server version is paper 1.8.8
i mean, the color code on lore isnt working
only on title
Use ยง instead of &
Also consider updating, your version is almost decade old
Both should work
๐ค few days ago there was also a guy on 1.8.8 and & didnt work for him
Weird when I used it back then never had issues
But yes agree update your server there are ways to keep 1.18 pvp
Okay 1.8
Bruh my phone acting up
Is it possible to make the %player_name% placeholder a different font?
My placeholders stopped working after I added a 3rd party dependency to my plugin. I followed the steps to use an external plugin, but it still wont work. Here is the code: https://paste.helpch.at/ebagupedaw.cs
it looks to me that you never pass through an instance of Tplugin @golden condor
where would I do so?
@Override
public boolean canRegister() {
// This sets plugin to the SomePlugin instance you get through the PluginManager
return (Tplugin = (Titanium) Bukkit.getPluginManager().getPlugin(getRequiredPlugin())) != null;
}
I also see it's never used, so there is no reason to set it here
Is this expansion inside your plugin?
If not, I recommend it
I just copied and pasted from the wiki
the expansion is inside my plugin, and Titanium is a library that I use for a lot of stuff
that is what I had before
Make sure to register it in the onEnable
I do
I was using this code, but then when I added the library it stopped working
well this code makes no sense
so go back to this
manually registering it in the onEnable
that is literally what was on the wiki lol
for the external class
I got no clue what I am doing
alright
I reverted it
here is how i register it ```java
if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
new PAPIExpansion().register();
}
Sorry, it doesn't make sense for the internal class*
ah
do you also need to check if Titanium exists or does your plugin fail to load without it
it fails to load without it
ok
I know it is there
and how is your class looking
none of your placeholders are working?
none of the top1nights
all the way down to top10nights
are not working, but the rest are
but they were working before I added the library, since the methods they call use it.
I removed canRegister and changed onPlaceholderRequest(Player, string) to onRequest(OfflinePlayer, String) fyi https://paste.helpch.at/ixitatoxiz.cs
But if you need online players dont do that
I looked real quick and didn't seem that you did
but depends on how getPlotManager().getActivePlot(p) this works
it needs a online player
ah, well I would still set it to onRequest and check if the player is online for that specific placeholder
cj, the problem isn't that. the expansion clearly registers if some placeholders work
ya I see
the problem is somewhere within the onRequest method. most likely with the code that gets the top stuff.
Imma just head out ๐
it is my fault I thought it didnt register, but then realized that if some work, it registers. My two brain cells are working at max capacity lol
if it returned null or created an error would it just give the actual placeholder? (like %zombatic_top1nights%?)
if it threw an error, the error should be seen
in console
ah
if it returns null
I didnt know if it would suppress it
then yeah you'll see the placeholder itself
alright, I am seeing the placeholder its self, and no errors
try returning a random string in one of the cases
case "top10nights" -> {
return "test";
}````
and test the placeholder
see if this way it returns what it needs to
it returned the test string
yeah. then the problem is the code. it most likely returns null somewhere
that is interesting
because if the output list was null, it would create an error
and it only uses the list for the string
I got no clue, I will keep looking
maybe PAPI actually suppresses errors and I wasn't aware of it
try executing the exact same code somewhere else in your plugin and see if it throws there
ok
ummmm
idk what happened
but it now works
weird
%server_name% from where do this place holder fetch server name ? how to i customise this name by default its showing a minecraft server
can anyone hlp
Hi, I've had this error in the console for two months and I don't know how to solve it
20:53:19 WARN]: [PlaceholderAPI] Task #2023 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) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_18_R2.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1897) ~[purpur-1.18.2.jar:git-Purpur-1632]
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_18_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.18.2.jar:git-Purpur-1632]
at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[purpur-1.18.2.jar:git-Purpur-1632]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1559) ~[purpur-1.18.2.jar:git-Purpur-1632]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:522) ~[purpur-1.18.2.jar:git-Purpur-1632]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1483) ~[purpur-1.18.2.jar:git-Purpur-1632]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1247) ~[purpur-1.18.2.jar:git-Purpur-1632]
at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:321) ~[purpur-1.18.2.jar:git-Purpur-1632]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.
nice, tnx
Is it possible to make the %player_name% placeholder a different font?
When I try to do the placeholder api for essentials none of them work. it just says invalid id
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#essentials
The baltop ones dont work
Is there a reason the Vault expansion on github is at version 1.7.1 (and has a bugfix I would like) but the version on eCloud is at 1.7.0 and has not been updated since 2020?
busy, lazy, etc.
waiting for a PR to be merged and a released will be pushed to the ecloud xD
you could compile the expansion, if you want the fix so badly I guess
It's on ci so I could just use that#
was just wondering since it has a fairly nice fix where it properly rounds balances
ah. right. forgot that's a thing
What's the PR we're waiting to merged? Is it waiting on testing or what?
nah. its the one removing baltop completely.
mentioned it to you twice but you keep flying with that damn private jet and forget about it ๐ฆ
that's sarcasm. just making sure you don't get mad at me xD
Nah it's all good man yeah work has been crazy. I have Tuesday - Friday of next week open (major presentation that determines if I have a job at my current place next year this upcoming Monday so I've been busy).
I'll look at the vault PR tonight and if it's good I'll throw an eCloud update out
good luck.
And then I'm flying again for 2 more weeks and then back to school
Even without the PR, would be great
its just a bunch of deleted stuff. it works, tested it with myself and a few people. but yeah just waiting for the confirmation from the boss (that's you)
master branch has quite a few changes that are not in eCloud
lmao
Merged. Release incoming.
โค๏ธ
Thank-you!
Should show up in the next couple hours ๐
but you can always manually download 
I just realized for DM I never merged my 1.19 support PR lol
yup
Are there placeholders for rain and thunder?
Or is it possible to write a script for it?
what would they do? tell you if its raining?
As far as I know, there's only the %world_thunder_<world> placeholder which tells you if there's thunder
But that doesn't refer to the weather
Thunder only happens if it's raining + %world_thunder_<world>% returns true
I'm wondering whether there's a placeholder that returns only Sunny, Rainy, and Thunder
hello, i want a command to be executed from the console when a player enters a command ingame, the placeholder should be recognized so that the player who enters the command also receives the reward... but unfortunately this code does not work, can someone help me?
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] args) {
if(commandSender instanceof Player) {
Player player = (Player) commandSender;
String replaced = PlaceholderAPI.setPlaceholders(player, "%player_name%");
player.sendMessage("Debug: Aufgefรผhrt");
Bukkit.dispatchCommand(Bukkit.getConsoleSender(),"give" + replaced + "apple 1");
} else {
commandSender.sendMessage("Du bist eine Konsole!");
}
return false;
}
I forgot to use the reply function, please see the above messages, thanks!
Please respect the rules, be patient and don't ping staff members!
you don't have spaces. the command that will get executed will be givePLAYERapple 1
ohhh... my bad. Yes you are right ! Thank you ! ^ ๐
I see. I don't think there's a placeholder for that as of now.
should be fairly easy to update the world expansion to add this tho. I might be able to do it a bit later
java.util.concurrent.CompletionException: java.lang.NullPointerException
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:428) ~[PlaceholderAPI-2.11.2.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
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.NullPointerException```
what is the error?
placeholder is error while ./papi reload
Blitz are you the author of said expansion? :o
no. but its open source
@meager ocean
%world_weather_<world-name>%. You can change the text it returns in plugins/PlaceholderAPI/config.yml under weather.thunder, weather.storm, and weather.sunny
Thanks! Imma try it now!
Hi, does anybody know what is the placeholder to show how many players are conected in my server? i tried %online% but it does not seem to work.
um
%server_online%
help me sir/
๐ฆ
execute /papi dump and send the generated link here
Any idea why Placeholders in 1.19 for Server and Player don't work?
I've updated them and still get the bad text. ping on reply
do you get any errors when you try to use the placeholder?
hmm. Try removing your expansions and restarting the server. does this still happen then?
hello, how can I get Player extension for PAPI with 1.19 support?
you should be able to just update it using the download command. /papi ecloud download player then /papi reload
thank you
I get this: https://paste.helpch.at/kunoqesuje.sql but IDK what networkmanager would have to do with it?
also doesn't explain server.
might be that one of your expansion breaks, and it breaks the entire loaded, so other expansions don't load after
might want to delete the networkmanager expansion
I deleted it and it still didn't fix my issue.
you need to reload after deleting it
weird it didn't fix with a restart but reloading again fixed it ๐ค
bruh
i'm sending my image
why is my %luckperms_prefix% not returning colors
i can't send image
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.
because its not meant to. the luckperms development team thinks its better if the plugins that parse the placeholders, handles the colors.
is there a way i can
https://imgur.com/a/rYypwkT
anybody knows how nbt works?
server and deluxemenus verisons?
^
you need to make sure your scoreboard plugin parses placeholders first
then parse colors
1.18.2 and latest deluxe menus version
oh thank you i ll try it
โข Removed 5 messages.
Hey Blitz, there's a problem with this world expansion modification you made for me yesterday. I found out that even if the sky is clear, the placeholder returns "Thunder", however Storm seems to work fine.
I for some reason cant papi ecloud download DeluxeTags, I installed the addon/extension but the placeholders do not work
(Running latest version, Purpur 1.19)
/papi dump
/papi parse me %deluxetags_tag%
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.
that will have it 
?paste
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
DeluxeTags no longer requires an expansion! Go to plugins/PlaceholderAPI/expansions and delete the DeluxeTags expansion. Restart the server afterwards.
I have to manually register expansions after every restart. Is there a fix for this
Reinstall? If an expansion isn't marked as persist in the code then it won't stay.
Hi all, small question! Is there a papi that shows online time from a specific bungee server? I did found %server_uptime% but that is only for the server where it runs on, but I want to use it in a lobby for let say %server_uptime_survival%
As I don't really can't find it ๐ฆ
no. there's no placeholder for that.