#placeholder-api

1 messages · Page 186 of 1

zealous shadow
#

ok imma get one

#

which one should i get?

mint fable
#

👍

#

I think most people would say IntelliJ

zealous shadow
#

is that the same as that visual studio thingy

mint fable
#

#development can also help you with any more issues to due with plugin dev as well

#

probably will get better/more answers there

restive dawn
#

Just a quick question, can someone explain what the [placeholder] action type does? Slightly confused as to what situation it'd be useful

mint fable
#

it can be used to run a placeholder (like a command)

#

example is checkitem if you want to remove an item

#

[placeholder] %checkitem_remove_mat:stone,amt:10%

#

it used to be [console] and the placeholder would parse, but that would give you an invalid command message in your actual console/logs

restive dawn
#

Gotcha, so just to be clear; the command can be stored in a js file which can then be executed using the [placeholder]

#

Let's say for example I wanted to run a placeholder in the command itself

zealous shadow
mint fable
restive dawn
# mint fable not entirely sure what you mean by this, but sadly I gotta go

It's a bit of a weird system tbh. I'll try to explain.

I've made a custom script which returns a dynamic number value. I then want to use %javascript_price% in a PEconomy command, which would look like this: peco take %player_name% %javascript_price% tokens. Of course though, PEconomy returns a syntax error because it's trying to deduct %javascript_price%, not a number

frank gazelle
#

hey i have an error when placeholder api loads up and it seems to be with essentials but i dont have that plugin and neither do i have its set of placeholders registered, here is the error. https://pastebin.com/cG7a4GWu

#

please ping for response

hybrid tulip
#

Hi there, odd question: is there a placeholder that always outputs true no matter what?

hybrid tulip
#

Yeaah long story 😂

#

I just need it lol

restive lance
static flare
#

how to use placeholderapi in command block?

fervent spire
static flare
#

know a plugin that uses actionbar(json) and papi

mint fable
tender vaporBOT
#
Possible Solution Found:

Go to plugins/PlaceholderAPI/expansions/ and delete the quest expansion (all of them if there's multiple) then do /papi reload.

silk blaze
#

Hello cj how are you today ? 🙂

hybrid tulip
tender vaporBOT
hybrid tulip
#

Oops sorry

lethal basin
dusky walrus
#

hello, i want to integrate luck perms placeholder into my scoreboard but it won't
here is my code :

    public void setLines(String ip){
        objectiveSign.setDisplayName("§bUndercraft");

        objectiveSign.setLine(0, "      ");
        objectiveSign.setLine(1, "§7Connectés§f: " + Bukkit.getOnlinePlayers().size());
        objectiveSign.setLine(2, "§7Lobby§f: n°1");
        objectiveSign.setLine(3, "§1");
        objectiveSign.setLine(4, "§a§l✔§f " + player.getName());
        objectiveSign.setLine(5, "§7Grade§f: %luckperms_prefix%");
        objectiveSign.setLine(6, "       ");
        objectiveSign.setLine(7, ip);
        objectiveSign.updateLines();
    }
junior musk
#

you have to parse the placeholder using PAPI's setPlaceholders method

dusky walrus
dusky walrus
#

alredy did that in my main.java

junior musk
#

the setPlaceholders method is not in your code

#

you don't use that in the main class just once, you use that on every string that contains placeholders

#

there's an example at the bottom of the page

hybrid tulip
lethal basin
austere hawk
#

how to use papi on bungee?

errant iron
#

Can't

austere hawk
#

bruh

hollow wharf
#

is there a placeholder to show player attributes such as generic.movement_speed
and generic.attack_damage

#

or do I have to make my own using the javascript expansion

hollow wharf
#

How do I call Attribute.valueOf("GENERIC_ATTACK_DAMAGE") using the javascript expansion. It returns an error when using Attribute or BukkitAttribute

austere hawk
hollow wharf
#

Yes I can easily make my own expansion, but I just hoped I wouldn't have to do it :/

hollow wharf
#

Well yeah I ended up just adding the placeholders to my own plugin 🙂

#

thanks for the suggestion

silk blaze
#

Hey everyone is it possible to avoid people opening the DeluxeMenu from certain world please ?

warm topaz
#

yes u can use open requirements

silk blaze
#

Any links for the wiki that leads to this ?

warm topaz
silk blaze
#

So i should go with an

Is near
location: "world"

#

Right ?

warm topaz
#

basically u would have the type be !string equals or smth,
input be the player's world (i think %player_world%, make sure u have the player expansion downloaded)
then the output be whatever world u want to deny

#

idk how the is near requirement works, but maybe it could be possible with that?

silk blaze
#

I'll try both of those options thanks 🙂

#

open_requirement:

requirements:
type: is near
location: "spawn,119,37,232"
distance: 4

deny_commands:
  - '[message] &cRetourne voir le chef pour cela !'
#

This one is not working am I not using the right syntax ?

#

[22:50:39 WARN]: [DeluxeMenus] Detected invalid configuration in file: chef.yml
[22:50:39 WARN]: org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
[22:50:39 WARN]: in 'reader', line 11, column 5:
[22:50:39 WARN]: type: is near
[22:50:39 WARN]: ^
[22:50:39 WARN]: expected <block end>, but found '<block mapping start>'
[22:50:39 WARN]: in 'reader', line 12, column 7:
[22:50:39 WARN]: location: "spawn"
[22:50:39 WARN]: ^

tender vaporBOT
silk blaze
#

they say my location is not the good syntax

silk blaze
tender vaporBOT
silk blaze
#

This one still not working

open_requirement:

requirements:
type: string equals
input: "%player_world%"
output: "spawn"

deny_commands:
  - '[message] &cRetourne voir le chef pour cela !'
warm topaz
#

ur missing a requirement name

#

requirements are in the format of

open_requirement:
  requirements:
    some_random_requirement_name:
    type: string equals
    input: "%player_world%"
    output: "spawn"```
vivid sparrow
#

@warm topaz you too if you want

warm topaz
#

no u

vivid sparrow
#

how do you give these items?

#

if you are using essentials, {USERNAME} should be what you are looking for

#

looks like it has an option in config serveritem.replace-holders and two placeholders, %player_uuid% and %player_name%, which I think you can guess what each represents

#
serveritem:
  #if server saved items has placeholders inside displayname or lore should replace it?
  #default placeholders: %player_name% %player_uuid%
  #support all placeholders of PlaceHolderAPI
  #
  #This affects give/take/sell/sellmax/buy/buymax actions
  #holders may generate inconsistency if holders values change or if who owns change
  #this inconsistency may affect only items with placeholders
  #
  #inconsistency examples: 
  #player A buy an item with %player_name% holder, player B take A item, B try to sell the item but he can't because %player_name% for B it's not the same of A
  #player A buy an item with %player_name% holder, player A change name to B, try to sell the item but he can't because %player_name% now it's B and do not match old name A
  replace-holders: true```
#

NP

velvet tinsel
#

how can i make

#

a javascript

#

that would replace a placeholder that returns nothing

#

to something

#

so if a placeholder returns nothing, we return a little X

long geyser
#

Hey! So I've just created a plugin, it's a custom currency. I'd like to create a, for example, %balance% placeholder that takes the balance of the person to use in holograms etc, but I have no idea where to start and would appreciate some help

long geyser
atomic terrace
#

I'm using PAPI, but the %vault_eco_balance% placeholder isn't working, does anyone know why? I'm trying to display it using a TAB sidebar. The %vault-prefix% works perfectly fine and is displaying the correct thing, but the other one (and all of the other economy placeholders) don't work. Can anyone help?

lethal basin
#

this should work for you

atomic terrace
#

I actually did, but it turns out I needed to reboot.

simple musk
atomic terrace
#

My essentials nickname has color codes and formatting, but when I use %essentials_nickname% it doesn't give me the color codes. Also, when I run /papi parse me %essentials_nickname% it just returns %essentials_nickname%. However, it does work in my TAB plugin, because it does show up, it just doesn't have the formatting. Any help?

velvet tinsel
simple musk
#

tried 10x, and restarted the server multiple times as well

#

just awaiting staff now

vivid sparrow
#

@simple musk /papi dump

simple musk
#

my vault isn't 1.7.0 RIGHT NOW since it didn't work at first, been trying different versions

vivid sparrow
#

Don't use Mohist

#

It breaks a system that Papi uses, ClassLoader

simple musk
#

ah magma too?

vivid sparrow
#

Idk about that

simple musk
#

kk, ty ❤️

proper acorn
#

Hi, I got this error in console [18:11:52 WARN]: [PlaceholderAPI] Task #622 for PlaceholderAPI v2.11.1 generated an exception org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'. at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1752) ~[paper-1.18.1.jar:git-Paper-187] 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_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.1.jar:git-Paper-187] at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1547) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.1.jar:git-Paper-187] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-187] at java.lang.Thread.run(Thread.java:833) ~[?:?]

tender vaporBOT
proper acorn
#

%server_hub% only shows 0, while %server_total% shows 1

#

Why is this not correct?

tranquil crow
#

what can cause this?

java.lang.NumberFormatException: For input string: "Failed to connect to MySQL: (2002) Connection refused"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?]
    at java.lang.Integer.parseInt(Integer.java:668) ~[?:?]
    at java.lang.Integer.parseInt(Integer.java:786) ~[?:?]
    at java.util.stream.ReferencePipeline$4$1.accept(ReferencePipeline.java:214) ~[?:?]
    at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992) ~[?:?]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?]
    at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?]
    at java.util.stream.IntPipeline.toArray(IntPipeline.java:562) ~[?:?]
    at me.clip.placeholderapi.updatechecker.UpdateChecker.toReadable(UpdateChecker.java:111) ~[PlaceholderAPI-2.11.2-DEV-148.jar:?]
    at me.clip.placeholderapi.updatechecker.UpdateChecker.spigotIsNewer(UpdateChecker.java:95) ~[PlaceholderAPI-2.11.2-DEV-148.jar:?]
    at me.clip.placeholderapi.updatechecker.UpdateChecker.lambda$fetch$1(UpdateChecker.java:73) ~[PlaceholderAPI-2.11.2-DEV-148.jar:?]
    at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[pufferfish-1.18.1.jar:git-Pufferfish-43]
    at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[pufferfish-1.18.1.jar:git-Pufferfish-43]
    at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[pufferfish-1.18.1.jar:git-Pufferfish-43]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]```
proper acorn
#

Check your log in credentials

tranquil crow
#

but i dont remember that placeholderapi wants any sql credentials?

vivid sparrow
#

%server_total% attempts to get the players located in the world total

#

Is is different from %bungee_total%

stone edge
#

The issue is because spigot was down, not bc credentials were wrong

past lily
#

Hello. I'm trying to make head and tails of the Math placeholder expansion; basically I want to take the result of various placeholders and get the mean of all of those values. Is this possible?

lethal basin
#

I would prefer creating your placeholder with javascript to calculate multiple things, that arent possible with only math expansion

median hound
#

I know this isn't really PAPI and all, but anyone have experience with the formatting placeholder? %math_[precision]:[rounding]_<expression> I am trying to get the output as XX and not XX.000 | This is what I have right now: %math_precision_24-{statistic_hours_played}% but it wont parse with the precision part

turbid tide
#

%math_0_24-{statistic_hours_played}%

median hound
#

oh

#

thanks 😄

turbid tide
#

no problem

past lily
turbid tide
turbid tide
#

so you could do %math_({placeholder-1}+{placeholder-2})/2%

lethal basin
#

blitz is right , sorry I thought he was making somethin more complex

past lily
#

so yeah, I'll figure it out ig

lethal basin
#

If you want to use js I can help you, if you want

past lily
#

feel free to DM me 🙂

sturdy cosmos
#

Hello, I have a problem with the plugin because when I download it and put it in the plugins folder and enter the server, the placeholderapi does not work for me, the version of my minecraft server is 1.8

tender vaporBOT
#
Hey!

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

wispy ravine
#

Is it possible to intercept a placeholder with placeholderapi, manipulate it, and return it?
I have a plugin that returns an integer and I was wondering if its possible to intercept it with my own expansion and apply a color to it based on the number range

sharp jay
#

Yes @wispy ravine

silver minnow
#

how?

sharp jay
#

@silver minnow an expansion?

silver minnow
#

without decompiling & rebuilding

#

and reflection

sharp jay
#

You wouldnt override you just re parse it?

silver minnow
#

he's talking about a different plugin

#

intercepting a different expansion from his own

#

at least afaik

sharp jay
#

Is he putting this placeholder inside that plugin or like deluxemenus?

#

lots of questions

silver minnow
#

im guessing like tab/deluxemenus/etc 🤷

#

hm

#

wait why can't he just make a new placeholder... thonking

sharp jay
#

thats what I was saying

#

smh

#

;/

mint fable
#

or just make a js script

#

ez pz

austere hawk
#

What's the placeholder that shows the amount of diamonds you mined? statistic_mine_block:diamond just returns 0 constantly.

mint fable
#

diamond_ore?

vivid sparrow
#

diamond is the item

mint fable
#

won't really be able to tell how many you actually get unless it's custom tracked I bet though

#

if that's a requirement of yours ^

austere hawk
#

hmm wdym?

mint fable
#

are you trying to track how many diamond ore the player has mined?

austere hawk
#

yes

spark hamlet
#

How can I use the age of a crop in a placeholder?

#

I'm trying to make a farming leaderboard but there is a loophole where people can place and break blocks instantly without them growing

vivid sparrow
#

you can't

spark hamlet
#

do u have any reccomendations to make a top10 leaderboard ?

royal crater
#

can enyone tell me whats wrong with this Placeholder "Rank:&#%team_color%%team_suffix%"?

elder palm
#

What would be wrong with it? Only the &# looks a bit weird to me tbh

vivid sparrow
#

it probably returns a HEX color

royal crater
#

it dosent rerturn enything but "Rank:"

#

and the "&#" is for hex color codes without the "&#" i dosent work either so idk what to do

turbid tide
turbid tide
spark hamlet
tender vaporBOT
turbid tide
#

ah you want something more complex. idk then I'm afraid.

royal crater
tender vaporBOT
turbid tide
#

well there's your problem. your team has no suffix

royal crater
#

but i does 😅 the suffix is "[Owner]"

turbid tide
#

well I'm not sure but as you can see the placeholder doesn't return it. I'd suggest you contact the developer of the expansion or of the plugin to see what's going on.

royal crater
#

the expansion is just the basic expantion Team made by minecraft so...

#

Blitz?

turbid tide
#

the PlaceholderAPI expansion I mean. where did you get it from? the ecloud?

vivid sparrow
#

I mean, if you use the default team commands or scoreboard objectives, do you see [Owner]?

#

you should use a permissions plugin not the teams function

harsh locust
turbid tide
#

That's bcz luckperms has its own hex parser that it does not use when parsing the placeholder. I'm not sure if this is intentional or not but you might want to contact the luckperms team I guess.

turbid tide
harsh locust
turbid tide
#

yes. bcz as I said, it gets parsed there

#

with luckperm's internal parser

#

but they don't parse it before returning it in a placeholder

#

because minecraft/spigot doesn't understand the &#aaFF00 format. so it needs to be changed and that's what luckperm's parser does for their own messages but doesn't for the placeholder

vivid sparrow
#

Lp lets the plugin where the placeholder is used to parse the colors

royal crater
tender vaporBOT
royal crater
#

how do i then make a scoreboard that displays "Rank: (the rank of the player)?

turbid tide
#

well did you switch to using an actual rank plugin like LuckPerms?

#

if yes then use their placeholder %luckperms_prefix% or %luckperms_suffix% (whichever you've set)

atomic terrace
#

I used %vault_prefix% for the prefix.

#

%essentials_nickname% is returning a nonformatted name. Is there any way to fix this?

turbid tide
#

try using %player_displayname% instead maybe

lapis drumBOT
#
Genres

Latin
Rock
Decades
R&B
Talk
Health & Wellness
Jazz & Classical
Country
Faith & Gospel
Pop
Hip-Hop
Electronic & Dance
World

Command

To view the stations of each genre, write @DashRadio list <genre>or !<genre>, e.g. !pop

atomic terrace
tender vaporBOT
atomic terrace
#

oh sorry

#

i just reply to people

lethal basin
turbid tide
#

yeah but that again won't show nicknames

atomic terrace
#

any idea?

#

i really want my tablist to have the nickname

#

with formatting

mint fable
#

wym by formatting?

stone edge
#

formatting = &a &l &b &d &n (color codes)

mint fable
#

I feel like %essentials_nickname% should definitely be formatted

#

there are 2 placeholders

#
%essentials_nickname_stripped%```
#

stripped would be without color codes

twin prawn
atomic terrace
twin prawn
#

Oh, so they show up as &* instead of the colour?

atomic terrace
#

no

#

there's no formatting

#

unless my nick is wron

#

g

#

and im using another nick provider

#

and there's just no formatting

#

but it hink it's essentials

twin prawn
#

Okay, I can’t send the link but the moss discord will be of more use

mint fable
atomic terrace
#

i'm not

mint fable
#

oh

atomic terrace
#

but it was a thought

#

yeah i tried /essentials:nick

#

and it didn't work

twin prawn
#

Give the moss discord a try 🙂

frosty vault
#

Im having a problem because the expansions in PlaceholderAPI are registered async which makes
depending on papi virtually useless.

https://i.imgur.com/bBhq8lA.png

#

Any workarounds for this? Some Future<Void> i can hook into.
I would suggest making the expanson registration blocking when starting the server so dependent plugins
can actually use placeholders.

mint fable
#

How/why are you trying to use %player_level% so early?

frosty vault
#

Hm. I could make it lazy. But that would require some work...

#

Is there any reason why the expansion registration is done non-blocking when the server starts?

mint fable
#

can't answer that question, but most placeholders are player-dependent

#

%player_level% for example returns nothing if the player hasn't logged in

#

or maybe even if they aren't online

frosty vault
#

Yeah i dont want to use a placeholder right away. I want to get a PlaceholderExpansion which corresponds to a String for later usage.

mint fable
#

hmm

#

sadly i dont fully understand the need/use so i cant really help

frosty vault
#

Ill just make it lazy then -.-

mint fable
frosty vault
mint fable
#

i feel it's new instances but i'll take a look

frosty vault
#

Because then i would have to make it truly lazy without caching...

frosty vault
#

Well... then ill just solve it with a Supplier<PlaceholderExpansion> instead of a Memoizer.

#

thx

mint fable
#

sure

#

no idea what that means, but 👍

sudden kayak
#

hey

#

i want to signup in the expansions cloud

sharp jay
#

@balmy marten

balmy marten
#

Dm me a username and email address you want

#

and i'll create it

sharp jay
#

@sudden kayak ^^

sudden kayak
tender vaporBOT
# sudden kayak added
Hey!

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

smoky canopy
#

Hi! Is this error that we found on our server console okay? Like it says Loaded class 'plugin name' which is not a depend or softdepend of this plugin?
You can check it here on the link: https://pastebin.com/PS5Pyva8

mint fable
#

no error, all ok

proper acorn
#

Why do I get this error?

tender vaporBOT
#
📋 Your paste: Arjan
https://paste.helpch.at/notadilaje

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

turbid tide
proper acorn
#

Do I have to delete all and download again?

turbid tide
#

well you could just move them to a separate folder and add them back 1 by 1

#

or 2 by 2

proper acorn
#

and do /papi reload?

turbid tide
#

yeah papi reload will probably be enough

proper acorn
#

Alright thanks

#
[19:34:55 WARN]: [PlaceholderAPI] Task #657 for PlaceholderAPI v2.11.1 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[paper-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1752) ~[paper-1.18.1.jar:git-Paper-187]
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_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.1.jar:git-Paper-187]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1547) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:480) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1470) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1264) ~[paper-1.18.1.jar:git-Paper-187]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317) ~[paper-1.18.1.jar:git-Paper-187]
at java.lang.Thread.run(Thread.java:833) ~[?:?]```
tender vaporBOT
proper acorn
#

When updating bungee it gets this error

turbid tide
proper acorn
turbid tide
#

but when you removed the expansion, did you remove all of them?

#

if not, remove them all then do the download command

#

if you can't get it to work do /papi dump and send the link here

tender vaporBOT
# proper acorn Yes
Hey!

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

turbid tide
proper acorn
turbid tide
#

ok. you seem to have 1 bungee expansion isntalled rn

#

Expansion-bungee.jar

#

can you delete that, do /papi reload

#

then do the download commands?

proper acorn
#

I have done that

#

And that works fine

#

But it says that i have to download

#

But when I do, it gives the error

#

Nothing wrong with not updating

turbid tide
#

but you have version 1.0.1. the latest is 2.0

#

you need to delete the Expansion-bungee.jar one first then download

#

and a /papi reload inbetween

proper acorn
#

alright

#

Deleted

#

Reloaded

#

Downloaded

#

Reloaded

#

Still 1.0.1

turbid tide
#

and put it in the folder

#

then do a /papi reload

proper acorn
#

followed every step

#

I even downloaded it from here

turbid tide
#

ok it seems like there's a bug in the code of the expansion. it is still registered as 1.0.1. don't update anymore. just leave it as it is (you have the latest). Will report it

proper acorn
#

Thanks!

silk blaze
#

Guyssss

#

I need help, how to gather a group prefix please ?

#

What Placeholder can I use ?

turbid tide
#

%vault_prefix%? this will return the prefix of the group the player is in

silk blaze
#

Not working, unless there a papi to download ?

turbid tide
#

yeah /papi ecloud download vault /papi reload

silk blaze
#

Omg thanks man

turbid tide
#

no problem

silk blaze
#

Hello again !

How could I put two requirement in my menu please ? Can anyone give me an exemple on what syntax I should use please ?

tender vaporBOT
#
📋 Your paste: Nivelac
https://paste.helpch.at/semacuboxo

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

silk blaze
#

Oh no sorry I mean

#

I need one view requirement and one click requirement

#

My syntax was already not good

turbid tide
#

try this

silk blaze
#

Alright I don't know how you correct it but now it's working perfectly

#

Is it because of the way I wrote it ?

#

With too much space between each other ?

turbid tide
#

well the one I sent should work

sacred berry
#

Hello, can I make the Math Expansion compatible with Java 1.8? I saw that the previous versions of the expansion work with Java 1.8 but I don't know how to add the previous version to the placeholderapi.

vocal folio
#

Is there a placeholder that only shows unique kills to prevent farm kills on alts?

solar sun
#

how do i track all blocks mined?

turbid tide
solar sun
#

thats what i tried

#

it didnt work

turbid tide
solar sun
#

it says 2

turbid tide
#

And it doesn't go up?

solar sun
#

nope

#

is it a world thing

#

is there a pl for it

#

ok wtf

#

i figured sum out

#

so

#

it only works if i mine in the regular world

#

but when i mine it goes up by 2 lmfao

turbid tide
#

Well there are some statistic plugins out there like statz. The statistic expansion just gets the data from spigot

#

Like those are just the default minecraft stats

#

Afaik

solar sun
#

huh

#

nvm

sacred berry
#

Hello, I have a 1.8.8 server and I use Java 8. I would like to use an extension which can be used only with Java 11+. Can I make it compatible somehow?

sand junco
#

NachoSpigot works fine with java 11 and java 17

#

So I'd suggest updating to NachoSpigot and then using java 11. Only badly written plugins break with newer versions

turbid tide
sand junco
#

FOSS 1.8 spigot fork

sacred berry
turbid tide
#

you need to do /papi ecloud download math 1.1.0 and /papi reload. that's the latest version that will work with java 1.8

#

but it will also have some things different. like precision and also has no rounding.

sacred berry
tender vaporBOT
turbid tide
sacred berry
#

oh, thx a lot

#

ur a goat

turbid tide
#

hmm. I'm more of a cow myself tbh

sacred berry
#

nice

tiny garden
#

Hi, I'm having an issue with the Pinger expansion, it doesn't show the correct player count. It shows that there are 0 players on the server I am currently on. It's a server behind a Waterfall proxy running on Pterodactyl, could that be the issue? Thanks.

#

This is the placeholder I'm using %pinger_players_172.18.0.1:25556%

turbid tide
#

I recommend you use the bungee expansion to show the player count. the Pinger expansion is pretty buggy sometimes. I don't know why or how to fix it and my only recommendation is this really

twin prawn
#

Ez

#

(Yea I know it’s hard but 1.8 is 6 years old at this point and shouldn’t really be used for anything)

stone edge
twin prawn
#

There exist plugins that change it

silver minnow
#

they aren't perfect tho, and also java 11 works fine with paper 1.8.8

stone edge
#

Scam ☝️

mint fable
#

@blissful mango prob best to ask here

#

%javascript_placeholder_args,args,args%

blissful mango
#

Hi
Want somthing like
%javascript_placeholder_<arg one>_<args two>%
That args one is placeholder that parse a number and args two is an integer to add or decreess the parsed placeholder

mint fable
#

btw use `` to escape your text, removes formatting

blissful mango
#

Discord mobile 🤕

mint fable
#

quitter talk 😂

twin prawn
#

I can’t send videos here

#

😦

heady urchin
#

Can someone tell me why this is not working

sharp jay
#

?help

tender vaporBOT
#
FAQ Answer:
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait

Source

heady urchin
#

t

#

Odd

#

The GUI is just not opening

#

no errors or anything

#

Pretty sure its the parseother placeholder

#

on java8 so that might be the problem

#

cant update to 17 until next season

stone edge
#

You probably have errors in console?

heady urchin
#

Nope

#

Nothing

mint fable
#

what placeholder is balanceformatter?

heady urchin
#

what it says

mint fable
#

custom expansion?

heady urchin
#

its a replacement for %vault_eco_balance_formatted%

#

yeah but if i parse balanceformatter on its own

#

it works fine

#

heres the github for it

mint fable
#

and what happens when you do /papi parse me %parseother_{vault_eco_top_player_6}_{balanceformatter}%

heady urchin
#

Internal error

mint fable
#

might be because the player is offline

#

what if you put the name of somebody offline

#

instead of vault_eco_top_player_6

heady urchin
#

lemme try

mint fable
#

can you do /papi parse <offline player> balanceformatter?

#

idk if it will let you

heady urchin
#

/papi parse me %parseother_{123}_{balanceformatter}%

#

that?

mint fable
#

it might say player is offline

#

ig 123

heady urchin
#

oh okay hold on

mint fable
#

do you have any actual players to test

#

😂

heady urchin
#

Yeah

mint fable
#

aight

heady urchin
#

theres people online

#

So what cmd do you want me to do

#

/papi parse 123 %balanceformatter%

#

?

mint fable
#

yes try that

heady urchin
#

yeah when i type that it says failed to find player

mint fable
#

and now try the parseother one

heady urchin
#

That one says internal server error

mint fable
#

and whats that error

#

?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

mint fable
#

I feel it might be erroring trying to find the balance of an offline player

#

oh, one more real quick

#

try /papi parse me %parseother_{123}_{vault_eco_balance_formatted}%

heady urchin
mint fable
#

looks like it ye

#

saj

heady urchin
#

Any idea on a fix?

mint fable
#

is that correct

heady urchin
#

Yeah its correct

mint fable
#

oh that's good news then

heady urchin
#

The issue we have is that the money is like QT, S and higher

mint fable
#

it means the balanceformatter expansion can be fixed to do this

#

also

#

why use a custom expansion like that

#

instead of a js script

heady urchin
#

Thats just what I found

heady urchin
#

Oh

#

Will use that then ty

mint fable
#

you can add all the suffixes you want

#

change em, whatever you want

heady urchin
#

@mint fable

#

god send

#

its working

#

Do you know if theres an addon that can tell me if a player is online/offline

#

theres %player_online% but it just returns yes/no and i wanna be able to change the output ideally

mint fable
#

well you can use changeoutput expansion

heady urchin
#

tea

mint fable
#

or, if you want to change yes/no for all placeholders you can edit the placeholderapi config

heady urchin
#

okay

#

How would I go about parsing this

#

%changeoutput_equals_{player_online}_yes_Online_Offline%

#

but {player_online} needs to be %vault_eco_top_player_1%

turbid tide
#

well first of all, the top placeholders are being phased out of the vault expansion and moved into the essentials one. You should maybe consider switching. (see pinned messages for download and placeholders list). Second of all if you want to check if vault top player is online then give a custom output based on that, it won't work with this bcz you'll have 2 nests while PAPI only supports 1 realistically.

heady urchin
#

Damn

#

Is there any possible way to do it

#

& yeah our seasons are 4 weeks

#

So i'll end up switching over

turbid tide
#

javascript expansion

heady urchin
#

Is there a public one I can use?

turbid tide
#

but that is known to have bad performance lately.

turbid tide
tender vaporBOT
#
Javascript
Useful Links & Information:

An expansion that allows you to use javascript for processing
Wiki
Community Scripts
GitHub
eCloud

stone edge
#

or you can simply code a small plugin which adds a placeholder like %isonline_playername% and %isonline_{anotherplaceholder}%

heady urchin
#

My coding knowledge = nothing

#

lol

stone edge
#

well, there goes my brilliant idea

#

😢

tender vaporBOT
#

v1.13.4 by clip
The all in one GUI menu plugin!

Downloads:

199,685

Rating:

4.4★

Reviews:

514

blissful mango
#

hi
the js example for args is wrong ?

var kitName = args[0];
var placeholder = "essentials_has_kit_" + kitname;
var hasKit = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");

function hasKit(){
  if(hasKit == "yes"){
    return "&aTrue";
  }
  return "&cFalse";
}

hasKit();``` don't work for me
#

i want to put an arg in placeholder but don't know how 🤦‍♂️

manic imp
#

%essentials_has_kit_

#

placeholder name

#

%

blissful mango
#

what ?

blissful mango
#

any help 😦

turbid tide
blissful mango
#

luckperms_group_expiry_time_[arg here]

turbid tide
#

ugh. that's not javascript tho?

#

I'm talking about the javascript placeholder you're using

blissful mango
#

%javascript_calc_luckperms_group_time_vip%
vip is arg here

turbid tide
#

and in your javascirpt_placeholders.yml how did you declare the placeholder?

#

can you copy paste it please?

blissful mango
#
  file: calc.js```
#

🤔

turbid tide
#

well the arg here would be the entire luckperms_group_time_vip then

#

not just vip

blissful mango
#

yeah my bad
but isn't a good idea to put the whole placeholder in the arg ?

#

or should i set the luckperms_group_time_ in the js and not as arg

turbid tide
#

I mean you can do it, but idk if this will do what you want really

#

you have to understand the kitname will become literally luckperms_group_time_vip

blissful mango
#

just want to %javascript_calc_vip%
how to put the vip arg in the placeholder ?

turbid tide
#

in what placeholder exactly? in the essentials kit one?

turbid tide
#

even when you use %javascript_calc_vip%?

blissful mango
blissful mango
#

just want to
var balance = parseInt("%luckperms_group_expiry_[arg]%");

#

how can i put that argument there

turbid tide
blissful mango
#

works 🎉

#

and can you tell which one is better ?

var placeholder = args[0];
var num = Number(args[1]);
var balance = parseInt(PlaceholderAPI.static.setPlaceholders(OfflinePlayer, "%" + "lukcperms_group_expiry" + args[0] + "%"));
var out = balance + num;
out.toFixed(0);``` or
```js
function calced() {
  var num = Number(args[1]);
  var balance = parseInt(PlaceholderAPI.static.setPlaceholders(OfflinePlayer, "%" + "lukcperms_group_expiry" + args[0] + "%"));
       return balance + num;
}
calced();```
turbid tide
#

I mean they do the same thing, just the second one might be a bit more clear for others.

blissful mango
#

just one thing
there resualt are different

vivid sparrow
#

out.toFixed(0)

turbid tide
#

^^

blissful mango
#

yeah

turbid tide
#

make the second one return return (balance + num).toFixed(0);

#

or I guess you could even call toFixed directly on the function call. whichever you want

blissful mango
#

i don't know how
but this is works for me
thank you

#

thank you very very much

blissful mango
turbid tide
#

ah yes. luck* my bad. sometimes I type to fast and some of my fingers just decide to type before the ones that should lol

blissful mango
#

i mean the _ in the last
it's don't work without it

turbid tide
#

ah that too

#

right

silk blaze
#

Hello Blitz

#

I have an issue with my code,
Only one cooldown show up when I activate the menu and redeem the object

#

Where can I send my code please,it's too big to fit in here

blissful mango
#

hi again
idk why but parsing this %parseother_{player_name}_{javascript_calc_vip}% works
but using this placeholder in DM drop this error https://pastebin.com/RkeudvLF
(tag to notice)

silk blaze
#

Hello guys, with what placeholder can I create a Leaderboard for player balance ?

turbid tide
#

vault_eco_balance_fixed

silk blaze
#

This show my balance

#

Not the highest one

#

%vault_eco_top_player_#%

#

This doesnt work either

echo ridge
#

Why global JNI cannot be recycled
papi js

chrome sentinel
#

Can I use placeholders in the output parts of the changeoutput placeholder?
%changeoutput_<options>_<input>_<matcher>_<output-if-matched>_<output-if-not-matched>%

warm topaz
#

yeah u can use them anywhere pretty much

chrome sentinel
#

do I use { or %

warm topaz
#

{} for inner placeholders

chrome sentinel
#

ok ty

chrome sentinel
#

How do I use spaces in the changeoutput placeholder?

#

how do I send a message to all players with a placeholder in it?

stone edge
#

i doubt there is a placeholder for that

#

you probably need a plugin that tracks that and creates a leaderboard

#

No problem.

blissful mango
#

hi
it's possible to count a special character in a placeholder like (T)
to know how many T are in the placeholder
(tag to notice)

stone edge
#

in the placeholder?

#

or in the parsed output?

dreamy wraith
#

Hey! Trying to use the pinger papi and i use bungee cord but i use interal IPS for my other servers and it doesnt work/show if the server is online and im using the port

blissful mango
#

like you can parse a line and want to know how man & are there to see how many colors are used in the string

stone edge
#

well, there arent expansions for that (iirc)

#

couting & is not the same as counting colors used

#

thats too specific, doubt there is an expansion for that

dreamy wraith
#

Ugh

blissful mango
#

any js for it ?

foggy wraith
#

Not lookin' to impede on this chat; though, how would I format this placeholder for regular PlaceholderAPI? We used this for ajLeaderboards initially, since it has its own internal tracking method for statistic rankings. How would this be applied without the use of ajLeaderboards?
%statistic_player_kills_1_alltime_value% [Reference]

dreamy wraith
#

Do Interal IPS not work with Pinger

austere hawk
austere hawk
blissful mango
austere hawk
#

yea I gathered that much, but why?

blissful mango
#

i want to add description for players to use it in deluxemenus argument to get the player how many colorcode used in thier message
so if they use 3 time they are allowed
used more they are not allowed

foggy wraith
dusk pelican
#

How come when I add the amount of players in my world im getting decimal spots

sand junco
#

You are using a double or float

sacred hazel
#

theres an expansion to calculate the world size?

dusk pelican
#

@sand junco what?

sand junco
#

Nevermind this is the placeholder api channel

coarse epoch
#

in my chat format, when a placeholder value is empty, when the player says something there is a blank space in the place where the placeholder value should be

examplehelpmeplease: "%betterTeams_name% &f{name}: &7{message}"

if the player is not in a team, when he writes something the chat is like " (name): Hi" but i would like that the player could say "(name): Hi" is any possibility of that i can make a "conditional blank space"? sorry for my bad english, and thank you

(before i sent this in the incorrect channel, sorry)

sour flower
coarse epoch
#

i use lpc

snow sail
#

Hello

#

Does anyone know if you can access vanilla tags through placeholders

#

For example, I do /tag @s add Gold

#

I can do this with scoreboards, but it would become very tedious to create so many scoreboards

dusk pelican
#

how come when I use the placeholder players online and the max amount of players its saying 3.000/100 players online. Why is their decimal spots?

sharp jay
#

which placeholder? @dusk pelican

dusk pelican
#

%math_{server_online_world}+{server_online_world_nether}+{server_online_world_end}%

sharp jay
#

@dusk pelican of course

#

lol

#

cuz your using math

#

put math_1

mint fable
#

%math_0_{ser...%

dusk pelican
#

great thank you.

sharp jay
#

oh 0 not 1

#

Lol

green fiber
#

Hello, how i can use from Plugins placeholder in other Plugins when both Plugins are compatible with papi?

chrome sentinel
#

I want to make a placeholder that has a countdown that resets every day, is that possible?

brittle mortar
#

[22:18:29] [Server thread/ERROR]: [DeluxeMenus] Could not hook into PlaceholderAPI!
[22:18:29] [Server thread/ERROR]: [DeluxeMenus] DeluxeMenus will now disable!
[22:18:29] [Server thread/INFO]: [DeluxeMenus] Disabling DeluxeMenus v1.13.4-Release

tender vaporBOT
snow sail
#

Hello

#

I wanted to ask if there is a placeholder for vanilla player tags

jaunty stag
#

Hello!
Plugin: DeluxeMenus

Is it possible to make an item that fills in the empty slots?

tender vaporBOT
#
FAQ Answer:
  filler-item:
    priority: 100
    display_name: ' '
    material: GRAY_STAINED_GLASS_PANE
    slots:
    - 0-53```
turbid tide
#

yes. this Noltox

turbid tide
turbid tide
placid light
#

ok so how i can use mainhand and offhand

#

in CheckItem PAPI expansion

#

can someone give me example please

#

%checkitem_getinfo:<slot>_<modifier1>,<modifier2>,<...>% - Returns information about an item in a slot. Returns information in the same order listed on this wiki. List is seperated via " &r" (Ex. %checkitem_getinfo:0_mat:)

#

now where can i put mainhand and what after it?

#

mainhand:MATERIAL?

#

is there a way

#

to check if player has specific item IN HAND on 1.8.8

#

with CheckItem?

proper acorn
#

This happens at startup

#

What is the meaning of it?

tender vaporBOT
#
📋 Your paste: Arjan
https://paste.helpch.at/eyabakefab

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

turbid tide
# proper acorn What is the meaning of it?

seems like either a corrupted expansion or maybe even a corrupted placeholderapi jar. try redownloading palceholderapi and if not, try remvoing your expansions 1 by 1 to see if it stops happening.

placid light
#

how can i check what user specifically has only in his main hand (1.8 server that has no offhand)

#

as you can see here my anvil is not enchanted

#

yet it still shows as it is

vivid sparrow
#

Thats slot 1

placid light
#

(i edited the link)

#

sorry

#

my bad, i changed to 1 (slot: 2)

#

still same

vivid sparrow
#

Do you have anything else in your inventory?

placid light
#

yes

#

only that enchanted diamond pickaxe

#

in slot 0 (hotbar slot 1)

placid light
#

so, any thoughts?

golden cloud
#

Hi ! How to make javascript run a command in console?

#

Or is there anyway to do that?

mint fable
mint fable
placid light
#

alright

#

but i did that

mint fable
#

not entirely sure about 1.8

placid light
#

and it still sometimes says yes

#

ok i will test again

mint fable
#

if you get any errors send them my way

placid light
#

ok so idk if this is problem with silkspawners but if you do /papi parse me %checkitem_getinfo:mainhand% while holding any spawner in hand it'll throw error

#

i can send what error says

#

but i have silkspawners installed

#

and i've tried with SilkSpawner mob spawner

mint fable
#

try adding another _ at the end

placid light
#
  • regular essentials /give for mobspawner
placid light
#

output: <blank>

mint fable
#

what if you add mat:

#

actually, idk if it'll work on 1.8 with mainhand

#

just thinkin bout it

placid light
#

%checkitem_getinfo:mainhand_mat:%

mint fable
#

yes

placid light
#

throws only name of material

#

yes

mint fable
#

oh so it works

placid light
#

ok sorry

mint fable
#

/papi info checkitem

#

what version are you on

placid light
#

i can't send images
2.5.4

tender vaporBOT
placid light
#

ok so i had some bigger issues

#

with checkitem

#

i mean maybe not bigger

#

but it took 1-2 hours of my time to still not work as expectd

mint fable
#

%checkitem_getinfo:mainhand_% should be returning all info

placid light
#

so i hope you'll be here so i try them again

#

and report

mint fable
#

unless it's erroring ofc

placid light
#

i tried

#

on diamond sword
then on stone

mint fable
#

no errors I presume?

#

otherwise it'd probably say so

placid light
#

ok so the thing i am probably most interested is yes/no outputs
so i'll move to there after we finish this (typing this so i don't forget myself)

placid light
mint fable
#

actually

#

without the _ should return all info

#

the one that was erroring earlier

#

%checkitem_getinfo:mainhand%

#

parse that and send the error

#

?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

placid light
#

ok wait

placid light
#

now you see this

#

i am holding mob spawner

#

and %checkitem_inhand:main_mat:STONE% output is yes

mint fable
#

inhand is not a placeholder

#

it's a modifier

#

so it goes next to mat:

#

separated via ,

#

Can you try this jar to see if it fixes the getinfo error?

placid light
#

ok so basically adding inhand there = check hand
without inhand = check whole inventory

#

right?

placid light
#

omg!

mint fable
#

wow that's the only issue

#

nice

#

i'll upload that as a new version

placid light
#

i can't test rn so that's why i ask

mint fable
placid light
#

oh

#

ok so i think that inhand was actually my only issue because of wrong usage of it nothing else worked lol

#

xd

#

and i've tried like 10 different placeholders

mint fable
#

and the getinfo one we fixed

#

but ya, putting it in the wrong place will for sure do ya in

placid light
#

yay!!

#

i want to use this situation to ask you something related to Deluxemenus but i don't want to abuse this channel purpose so i'll tag you in general plugins and i hope this time it's ok (tagging) because we have direct communication here!

drifting snow
#

%worldguard_region_name% Does this placeholder return the region name player is standing in?

mint fable
#

try it

drifting snow
#

ok

scenic path
#

Hi guys, just 1 question do PlaceHoldersAPI works in Name Items?

mint fable
#

is Name Items a plugin?

scenic path
#

Oh sorry

#

I mean

#

The item name

#

I can't send images ;-;

tender vaporBOT
mint fable
#

inside your own inventory?

#

or in a menu

scenic path
#

Yes in the inventory 🙂

mint fable
#

You'll have to get a plugin that can handle and manage the items and their names

tender vaporBOT
scenic path
#

I'm using DeluxeHUB for the itens in the inventory 🙂

mint fable
#

that's not what I wanted

scenic path
#

Ty so much ❤️

#

I'll try using that one

mint fable
#

what

#

no

scenic path
#

I can keep using DeluxeHUB?

#

Is he the problem like for not showing the % names?

mint fable
#

it might work

#

i don't see anything about items specifically, but try downloading an expansion

scenic path
mint fable
#

oh...

#

then probably doesn't work on the items

#

I'd say take a visit to their discord and ask real quick to verify

scenic path
#

Ok!

#

Ty so much for the help Cj!

#

Ty ty!

#

❤️

mint fable
#

👍 gl

abstract quiver
#

Hi, where can I find perms?

abstract quiver
#

there are no perms in there

#

oh sorry

#

there are

austere hawk
#

How to make money divided by 2 javascript

#

%vault_eco_balance% / 2

warm topaz
#

use the math expansion

#

%math_{vault_blah}/2%

austere hawk
#

I want to use %vault_eco_balance%.

warm topaz
#

then use that?

austere hawk
#

I want the money showed, players, half.

warm topaz
#

yeah so use the math expansion

#

%math_{vault_vault_eco_balance}/2%

#

make sure u download the expansion too

austere hawk
#

Thank you.

viscid laurel
steep knot
#

hello, can you tell me approximately how much version 3.0+ is ready for other platforms like velocity?

привет, не подскажете примерно на сколько готова версия 3.0+ для других платформ как velocity?

vivid sparrow
#

Version 3 of papi?

steep knot
#

yes

velvet fern
#

%vault_prefix% Nizoki6813 Joined the lobby!

#

what is the issue on it

#

can someone help

vivid sparrow
#

There's no ETA for v3 @steep knot

steep knot
#

vault bukkit plugin

#

not velocity!

untold crater
#

/papi ecloud download vault

velvet fern
#

thanks

#

fixed

velvet fern
viscid laurel
raw yacht
#

Anyone got the list of placeholders for Ezblocks?

warm topaz
#

there's only one

#

I think %ezblocks_broken%

wet basinBOT
#

@warm topaz Unknown expansion.

drifting snow
#

Is there any placeholder expansion available which can extract 123.456 for example from 123.456.789.001 ?
If I'm correct, the formatter expansion can't do this.

turbid tide
#

now if you had a string lets say 12.34.56.78 would you want the 12.34 part or 12.34.5?

drifting snow
#

yes

drifting snow
turbid tide
#

well for that you could use the str expansion

#

I believe it has a functionality for that

drifting snow
#

ah, can you please help me how can I use that expansion in my case as I can't seem to figure out

tender vaporBOT
#
📋 Your paste: on0pa
https://paste.helpch.at/emakaxomog

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

turbid tide
#

@high shuttle update the Player expansion

rose sedge
#

hi all

#

i installed placeholder-api and restart my server, but once it restarted all my plugins cant be used

#

how do i solve this?

untold crater
#

whats actually happening when its installed

rose sedge
untold crater
#

lmao

#

**** server is running in offline/insecure mode!
😬

rose sedge
untold crater
rose sedge
untold crater
#

can you see them from multicraft

rose sedge
untold crater
#

what permissions do the plugin files have

rose sedge
untold crater
#

do you see a 3- or 4-digit number next to any files in your ftp client

rose sedge
#

all the plugins and inital files are there, it just that when i start my server and join, it's like a fresh server

worldly forge
#

howdy. so my playerdata system works by storing all the player's data in an instance of a class while the player is on the server and this is my current code for making placeholders from those values. https://paste.md-5.net/reruqonuyo.js. The problem i'm facing right now is that when i change the values of variables inside the player's instance, it doesn't seem like the placeholder is updating. I was wondering if this was something to do with how papi works, or if the error is being caused on my side

cobalt cave
#

so in our server the luckperms placeholders aren't working correctly it will just show the placeholder itself

fervent spire
fervent spire
#

What placeholders from luckperms are you trying to use, and where?

cobalt cave
fervent spire
#

What does /papi parse me %luckperms_primary_group_name% show

cobalt cave
#

%luckperms_primary_group_name%

fervent spire
#

Hmm okay, do /papi dump and send the link over.

cobalt cave
fervent spire
#

Do /papi reload and see if it fixes it

cobalt cave
#

nope

fervent spire
#

Remove the luckperms expansion from the placeholderapi expansions folder then restart. After that do the papi ecloud download LuckPerms again then papi reload

cobalt cave
#

ok

spiral badge
#

Hi guys, can someone help me out with the placeholder expansion of the plugin deluxecombat. I tried everything like /papi ecloud download deluxecombat and /papi reload . This is what I see in the server (https://paste.helpch.at/semivinobu.sql). I have got the right plugins in the server with the right version. I get this error in the console. I did exactly what the server asked me to do to implant a leaderboard with holographic displays.

woven mural
#

does anyone know if there exists placeholders like {player_hp} {player_attack} {player_speed} {player_knockbackresistance} etc ?

vivid sparrow
#

aren't these attributes?

#

d;fields spigot Attribute

ionic fractalBOT
#
Fields:
org.bukkit.attribute.Attribute%GENERIC_ATTACK_KNOCKBACK
org.bukkit.attribute.Attribute%GENERIC_MOVEMENT_SPEED
org.bukkit.attribute.Attribute%GENERIC_ATTACK_DAMAGE
org.bukkit.attribute.Attribute%GENERIC_ARMOR
org.bukkit.attribute.Attribute%HORSE_JUMP_STRENGTH
org.bukkit.attribute.Attribute%GENERIC_FOLLOW_RANGE
org.bukkit.attribute.Attribute%GENERIC_LUCK
org.bukkit.attribute.Attribute%GENERIC_MAX_HEALTH
org.bukkit.attribute.Attribute%GENERIC_KNOCKBACK_RESISTANCE
org.bukkit.attribute.Attribute%GENERIC_ATTACK_SPEED
org.bukkit.attribute.Attribute%GENERIC_FLYING_SPEED
org.bukkit.attribute.Attribute%GENERIC_ARMOR_TOUGHNESS
org.bukkit.attribute.Attribute%ZOMBIE_SPAWN_REINFORCEMENTS```
vivid sparrow
#

yeah

wet basinBOT
#

@vivid sparrow Unknown expansion.

woven mural
#

do i need an extension for that?

#

nvm i found it

#

hell yeah is working

woven mural
#

i have a little problem with speed attribute

#

%attribute_player_defaultValue_generic.movement_speed% it shows the right value, but it shows a lot of decimals

#

is there an alterrnative to show 2 decimals or 1

vivid sparrow
#

Currently no, but I can add that

#

d;spigot AttributeInstance#getValue

ionic fractalBOT
vivid sparrow
#

you might want to sue value btw

#

d;spigot AttributeInstance#getDefaultValue

ionic fractalBOT
woven mural
#

ook

#

it seems it works with most attributes

#

but is not working for knockback and flying speed

vivid sparrow
#

try GENERIC_FLYING_SPEED and GENERIC_KNOCKBACK_RESISTANCE

woven mural
#

nah same thing

simple nova
#

how to get the item NBT tag

#

with jsscript

vivid sparrow
#

what version are you on @woven mural

vivid sparrow
woven mural
#

1.17.1

simple nova
#

really ?

#

well

#

gaby

vivid sparrow
#

yeah, bukkit doesn't expose much about NBT

simple nova
#

basically

#

im using aurelium skills, there is a command that add modifier to an armor or item, and looks like this

#

i wana make deluxemenu enchanter

vivid sparrow
woven mural
#

so you can add custom modifiers to items

simple nova
#

need to compare what tag it got then remove it and place new one

woven mural
#

can you add enchantments too?

vivid sparrow
#

Idk @simple nova sorry

woven mural
#

is working with generic.attribute

#

with lowercase

vivid sparrow
#

yeah, but use what's on that page

simple nova
#

oh..

woven mural
#

ok

vivid sparrow
#

might be worth to ask the developers if they can make you some placeholders, Treblinka

simple nova
#

yea my point was to make a placeholder from JS script expansion

woven mural
#

ok so i tested with these

simple nova
#

but i guess i cant get the modifier

woven mural
#

same thing

simple nova
#

if i use /paper dumpitem ?

vivid sparrow
#

that link is not showing anything smothy

woven mural
vivid sparrow
#

alright

#

will have a look at the code after work

simple nova
#

gaby

#

what about checking the lore

#

i mean there is a independent lore text

#

i have your js script

#

for showing name of a item

#

can i change it to item lore ?

#
  var item = BukkitPlayer.getInventory().getItemInHand()

  if (item == null) return ""
  var material = item.getType().name()

  if (material == "AIR") return "&fBare Hands"

  if (!item.hasItemMeta()) return functionToFormatMaterial(material)

  var meta = item.getItemMeta()

  if (meta.hasDisplayName()) return meta.getDisplayName()
  return functionToFormatMaterial(material)
}

function functionToFormatMaterial(mat) {
  var strings = mat.toLowerCase().split("_");
  var name = "";

  for(var i=0;i<strings.length;i++){
    name += strings[i].substring(0, 1).toUpperCase() + strings[i].substring(1)+" ";
  }

  return name.trim();
}

something();```
velvet fern
#

Do we need to add placeholder in different servers? Or if i add in only bungeecord its ok?

warm topaz
#

papi doesnt work on bungee, so bukkit only servers

velvet fern
#

how can i fix it?

simple nova
#

papi reload

warm topaz
#

what issue

#

is it just returning it back to u?

velvet fern
#

yes

simple nova
#

do u have vault installed

velvet fern
#

the issue is not solved

velvet fern
warm topaz
#

are u testing this with the /papi parse command?

simple nova
#

kaliber are u good with JS

velvet fern
#

papi ecloud

velvet fern
warm topaz
simple nova
#

look above

#

i posted a js

#

so basically this output the item name

warm topaz
#

does the placeholder work when u do /papi parse me %vault_prefix%

simple nova
#

but now i need to output only a specific lore of an item

velvet fern
simple nova
#

restart ur server ?

warm topaz
#

any errors when u try to download the vault expansion?

simple nova
#

kaliber can u check it

velvet fern
warm topaz
velvet fern
warm topaz
#

where

#

its not in the papi dump

velvet fern
#

bungeecord

warm topaz
#

oh

velvet fern
#

do i try adding it?

warm topaz
#

try %luckperms_prefix%

#

yeah

velvet fern
#

/papi ecloud download luckperms ?

#

that?

warm topaz
#

ye

warm topaz
velvet fern
velvet fern
warm topaz
#

?imgur

tender vaporBOT
#
FAQ Answer:

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.

velvet fern
simple nova
#

so basically i can add few stats to an item

#

i wana make custom enchanter

#

but i need somehow to make requirment for those enchants via NBT tag or lore contains

velvet fern
#

here

simple nova
#

then get the value of the already set enchant(modifier) and increase it with remove/add command (cus there is no add to already set modfier, needs to be removed before adding new one)

simple nova
#

where did u put vault_prefix

velvet fern
#

i have ultrastaffchat in bungeecord only