#placeholder-api

1 messages ยท Page 200 of 1

split tiger
#

KK

split tiger
#

What would Gamepoints be for a prefix

livid sun
#

whit Cyberlevels Placeholders arnt working has it never been on the papinor is it oudated

lofty sage
#

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

vagrant birch
#

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

slim fern
#

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?

vivid sparrow
#

can't do that

slim fern
#

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()?

vivid sparrow
#

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%```
grand turtle
#

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.

lament verge
mint fable
#

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

grand turtle
#

Alright

fresh flax
#

a

unborn minnow
#

Where is pom.xml ?

radiant plaza
unborn minnow
unborn minnow
unborn minnow
radiant plaza
#

you wanna make your own placeholder? ๐Ÿ‘๏ธ

unborn minnow
#

no

unborn minnow
radiant plaza
unborn minnow
#

e.g %players% etc

#

Do you have a list?

radiant plaza
#

you're confusing

unborn minnow
#

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?

radiant plaza
#

๐Ÿ˜•

unborn minnow
#

I downloaded it to get more placeholders

radiant plaza
#

alright

#

paste it in your plugins folder

unborn minnow
#

done

radiant plaza
#

here you can find expansions to this plugin

unborn minnow
#

for what?

radiant plaza
#

which will unlock new placeholders

#

as per your need

unborn minnow
#

And which ones are already in?

unborn minnow
unborn minnow
#

Do you know deluxehub?

radiant plaza
#

yeah

unborn minnow
#

Now I can use the placeholders there, right ?

radiant plaza
#

you can

unborn minnow
#

Or do I need to import something there

#

in configs

radiant plaza
unborn minnow
radiant plaza
#

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

unborn minnow
#

After papi reload it says
0 placeholders hook(s) registered

#

How to fix ?

radiant plaza
#

do you have AutoRank plugin installed?

unborn minnow
#

Yes

radiant plaza
#

/papi ecloud download AutoRank

#

do this again

unborn minnow
#

I mean I just did that:
/papi ecloud download AutoRank

radiant plaza
#

what you want to show in delxue hub config

#

just lemme know that

#

playertime or balance or something

unborn minnow
#

How much the player played on the server

radiant plaza
#

alright give me a minute

#

first of all delete that autorank expansion fromyour expansions folder

unborn minnow
#

done

radiant plaza
#

/papi ecloud download Player

#

/papi reload

#

/papi ecloud download Statistic

#

/papi reload

unborn minnow
#

yea it says:
1 placeholders hook(s) registered

radiant plaza
#

use this placeholder

#

%statistic_time_played%

#

type below commmand in game and check the result
/papi parse me %statistic_time_played%

unborn minnow
#

And I need nothing to do like import player or something in the deluxehub configs, before use this systax?

radiant plaza
livid sun
#

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****

unborn minnow
#

Hey, How can I use placeholders in commandblocks? like give %player_name% apple 1

austere hawk
#
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

subtle dust
#

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

wispy hull
#

Is theare any placeholder that allows to count how mutch certain item you have. Like head with custome name

subtle dust
#

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.
quick fox
#

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

vivid sparrow
#

What placeholder? @quick fox

trim mist
#

Calling it now. Javascript.

quick fox
trim mist
#

Nvm

quick fox
#

Without the vault expansion, it goes to 6gb ram, I put the vault and it goes up to 16

trim mist
#

disable the baltop task in your placeholder config.yml if it isn't already.

quick fox
#

That helps?

trim mist
#

If it wasn't already disabled, that would probably be why.

#

Just reboot after doing that change.

quick fox
#

It was activated and what I am seeing is that if it consumed enough gb of ram, why?

trim mist
#

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.

livid sun
#

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**

pliant pulsar
#
[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?

pliant pulsar
livid sun
#

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**

west heron
#

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.

prisma pebble
#

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)

turbid tide
#

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}%

turbid tide
#

or %vault_eco_formatted%. I forget how it is named

prisma pebble
turbid tide
#

available on the ecloud

prisma pebble
#

perfect! ty

turbid tide
#

yeah @livid sun its %vault_eco_balance_formatted% not %vault_eco_formatted%. Someone updated the wiki with the wrong placeholders for some reason.

turbid tide
#

๐Ÿ‘

vivid sparrow
turbid tide
#

true that. but 1.18 is not the worst it could be.

vivid sparrow
#

Ahh, I thought it says 1_8_R1

turbid tide
#

oh no

#

that would've been bad

amber furnace
#

Hi i have this problem, can anyone help?

#

i need to reload papi to fix expansions

ancient marsh
tender vaporBOT
turbid tide
# lofty sage help??

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.

obsidian sand
#

Does anyone know how to escape % sign from PlaceholderAPI

#

For example, I want it to actually display the percentage sign...

late cloak
#

How can I install the Plugin on my Bungee, it always gives an error.

turbid tide
late cloak
#

๐Ÿคฆโ€โ™‚๏ธ

tender vaporBOT
tight bronze
#

im sry for ping

tender vaporBOT
# livid sun Thx
Hey!

Please respect the rules, be patient and don't ping staff members!

half steeple
plush dove
#

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

austere hawk
#

How do I make %player_health_rounded% output divided by 2

short shoal
short shoal
manic imp
#

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?

manic imp
#

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

turbid tide
#

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?

turbid tide
#

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

tender vaporBOT
#
FAQ Answer:

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.

plush dove
manic imp
tender vaporBOT
turbid tide
manic imp
turbid tide
manic imp
#

uhh

#

i can try

#

i just automatically typed 20L

manic imp
tender vaporBOT
tender vaporBOT
nova hearth
#

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

nova hearth
#

What are those?

turbid tide
#

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

nova hearth
#

Ohh, will RelCon work then?

cold temple
#

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

nova hearth
#

Do relational placeholders do not work as a parameter for other placeholders?

pearl flicker
plush dove
nova hearth
#

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

austere hawk
#

Hello! I need a plugin with a placeholder that returns a text based on the player's permissions, for example:
%placeholder_text% = &#222222 = permission.text.&#222222
%placeholder_text% = &#999999 = permission.text.&#999999
%placeholder_text% = &#ffffff= permission.text.&#ffffff
permission values would be set in a .yml not in the permission itself
any ideas?

mint fable
warped cove
#

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

warped cove
#

I've had a look at that but wasnt sure how to use it

turbid tide
#

%math_0_{player_health_rounded}/2%

#

this will return the number with 0 decimals

#

set the 0 to how many decimals you want

warped cove
#

Awesome that worked, thanks!

plush dove
#

placeholders seems to just break and I need to reload papi for them to work

#

this is a 1.19 server

plush dove
lyric pine
#

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?

turbid tide
turbid tide
# lyric pine Yes

you could use the PlayerList expansion. I'll give an example in a few minutes

junior musk
#

%playerlist_online,world,no,amount,<worldName>%

#

I hope I remember how I made that expansion correctly

turbid tide
#

thanks tanguy โค๏ธ

lyric pine
#

I saw in your plugin there is a placeholder where random numbers are shown, so is there a placeholder to display random words?

warm topaz
#

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

pearl flicker
#

It only happens every once in a while.

pure wraith
#

I foud an issue the bungee expansion always say it need to be updated

tawny sun
#
        <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

tawny sun
#

trying to do this

tender vaporBOT
#
FAQ Answer:

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

trim mist
#

Send your pom

plush dove
#

Is there any way to get this level of nesting to work: %checkitem_remove_mat:{name},amt:{math_{deluxemenus_meta_amount_INTEGER_1}*64}%

plush dove
#

Nevermind found a workaround

meager ocean
#

Hey, is there a placeholder that returns the current weather (clear/rainy/thunder) of the world?

frail ruin
#

/papi ecloud download world

#

%world_thunder_<world>%

meager ocean
#

That doesn't seem to work

#

My world's name has an underscore _

frail ruin
#

%world_thunder_<world>%

#

%world UNDERSCORE thunder UNDERSCORE <world>%

#

That's the best I could find :/

mint fable
#

use `` to escape formatting fyi like_this

meager ocean
#

DrMilk I understand what you meant

#

But thanks tho

meager ocean
#

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

frail ruin
#

Change the world name?

mint fable
left matrix
#

!deluxemenus

sharp jay
#

? @left matrix

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

short shoal
#

Also consider updating, your version is almost decade old

sharp jay
short shoal
#

๐Ÿค” few days ago there was also a guy on 1.8.8 and & didnt work for him

sharp jay
#

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

lyric pine
#

Is it possible to make the %player_name% placeholder a different font?

golden condor
#

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

mint fable
#

it looks to me that you never pass through an instance of Tplugin @golden condor

golden condor
#

where would I do so?

mint fable
#
    @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

golden condor
#

I just copied and pasted from the wiki

golden condor
golden condor
#

that is what I had before

mint fable
#

Make sure to register it in the onEnable

golden condor
#

I do

golden condor
mint fable
mint fable
#

manually registering it in the onEnable

golden condor
#

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();
}

mint fable
golden condor
#

ah

mint fable
golden condor
#

it fails to load without it

mint fable
#

ok

golden condor
#

I know it is there

mint fable
#

and how is your class looking

golden condor
turbid tide
golden condor
#

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.

mint fable
#

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

golden condor
#

it needs a online player

mint fable
#

ah, well I would still set it to onRequest and check if the player is online for that specific placeholder

turbid tide
#

cj, the problem isn't that. the expansion clearly registers if some placeholders work

mint fable
#

ya I see

turbid tide
#

the problem is somewhere within the onRequest method. most likely with the code that gets the top stuff.

mint fable
#

Imma just head out ๐Ÿ˜‚

golden condor
#

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

golden condor
turbid tide
#

in console

golden condor
#

ah

turbid tide
#

if it returns null

golden condor
#

I didnt know if it would suppress it

turbid tide
#

then yeah you'll see the placeholder itself

golden condor
#

alright, I am seeing the placeholder its self, and no errors

turbid tide
#
            case "top10nights" -> {
                return "test";
            }````
#

and test the placeholder

#

see if this way it returns what it needs to

golden condor
#

alright, restarting

#

gonna be a sec, my friend has like 120 plugins on the server

golden condor
turbid tide
#

yeah. then the problem is the code. it most likely returns null somewhere

golden condor
#

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

turbid tide
#

try executing the exact same code somewhere else in your plugin and see if it throws there

golden condor
#

ok

golden condor
#

idk what happened

#

but it now works

turbid tide
#

weird

smoky ridge
#

%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

tall wolf
#

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) ~[?:?]

tender vaporBOT
tall wolf
#

nice, tnx

lyric pine
#

Is it possible to make the %player_name% placeholder a different font?

stray drift
dense stream
#

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?

turbid tide
#

waiting for a PR to be merged and a released will be pushed to the ecloud xD

dense stream
#

:Sadge

#

oh I can't even sadge

turbid tide
#

you could compile the expansion, if you want the fix so badly I guess

dense stream
#

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

turbid tide
#

ah. right. forgot that's a thing

trim mist
#

What's the PR we're waiting to merged? Is it waiting on testing or what?

turbid tide
#

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

trim mist
#

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

trim mist
#

And then I'm flying again for 2 more weeks and then back to school

dense stream
#

Even without the PR, would be great

turbid tide
dense stream
#

master branch has quite a few changes that are not in eCloud

trim mist
#

Merged. Release incoming.

turbid tide
#

โค๏ธ

dense stream
#

Thank-you!

trim mist
#

Should show up in the next couple hours ๐Ÿ™‚

turbid tide
#

but you can always manually download fingerguns

trim mist
#

I just realized for DM I never merged my 1.19 support PR lol

turbid tide
#

yup

meager ocean
#

Are there placeholders for rain and thunder?

#

Or is it possible to write a script for it?

turbid tide
meager ocean
#

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

primal flame
#

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;
}
meager ocean
tender vaporBOT
turbid tide
primal flame
#

ohhh... my bad. Yes you are right ! Thank you ! ^ ๐Ÿ˜„

turbid tide
#

should be fairly easy to update the world expansion to add this tho. I might be able to do it a bit later

tropic thunder
#
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?

faint egret
#

placeholder is error while ./papi reload

meager ocean
#

Blitz are you the author of said expansion? :o

turbid tide
#

@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

meager ocean
#

Thanks! Imma try it now!

urban rain
#

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.

tropic thunder
#

um

tropic thunder
#

help me sir/

turbid tide
tropic thunder
#

thanks

#

her sir

#

@faint egret

shut sundial
#

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

turbid tide
turbid tide
tropic thunder
#

now ik bug

#

thanks for information

#

its bug the expansions server

austere hawk
#

hello, how can I get Player extension for PAPI with 1.19 support?

turbid tide
austere hawk
#

thank you

shut sundial
#

also doesn't explain server.

turbid tide
#

might want to delete the networkmanager expansion

shut sundial
#

I did though

#

oh nvm

shut sundial
turbid tide
#

you need to reload after deleting it

shut sundial
#

weird it didn't fix with a restart but reloading again fixed it ๐Ÿค”

cinder crag
#

bruh

#

i'm sending my image

#

why is my %luckperms_prefix% not returning colors

#

i can't send image

tender vaporBOT
cinder crag
#

^ image

turbid tide
austere hawk
turbid tide
cinder crag
turbid tide
#

you need to make sure your scoreboard plugin parses placeholders first

#

then parse colors

austere hawk
turbid tide
#

update to the #1-20 version

austere hawk
tender vaporBOT
#
โœจ Channel Cleaned!

โ€ข Removed 5 messages.

meager ocean
#

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.

harsh bridge
#

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)

mint fable
#

/papi dump

harsh bridge
mint fable
#

/papi parse me %deluxetags_tag%

harsh bridge
mint fable
#

send the error

#

?startuplog

tender vaporBOT
#
FAQ Answer:

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.

mint fable
#

that will have it this

harsh bridge
#

?paste

tender vaporBOT
#
FAQ Answer:

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

harsh bridge
tender vaporBOT
# harsh bridge https://paste.helpch.at/lorijateju.bash
Possible Solution Found:

DeluxeTags no longer requires an expansion! Go to plugins/PlaceholderAPI/expansions and delete the DeluxeTags expansion. Restart the server afterwards.

mint fable
#

#1-20 try that build of deluxetags

harsh bridge
#

Removing the expansion fixed it

#

Ty

mint fable
#

and delete the expansion

#

๐Ÿ‘

bold pebble
#

I have to manually register expansions after every restart. Is there a fix for this

trim mist
#

Reinstall? If an expansion isn't marked as persist in the code then it won't stay.

austere hawk
#

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 ๐Ÿ˜ฆ

turbid tide