#placeholder-api

1 messages Β· Page 177 of 1

solar gazelle
#

%skript_variable::%uuid of player%%

solar gazelle
#

this is such a waste of time

#

i've parsed the variable using /papi parse %skript_variable::{uuid}%

#

and it still doesn't show in tab

turbid tide
#

have you tested the placeholder using /papi parse?

turbid tide
#

ugh. you need to parse it for someone

solar gazelle
#

oh i forgot i did papi parse me ...

#

yeah my bad

turbid tide
#

do /papi dump and send the generated link over please

solar gazelle
turbid tide
#

ok. seems like the skript expansion isn't registered at all. can you please restart your server and send the startup log over?

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.

solar gazelle
#
[19:45:47 INFO]: [Skript] Loaded 7 scripts with a total of 11 triggers and 7 commands in 16.86 seconds
[19:45:47 INFO]: [Skript] Finished loading.
[19:45:47 WARN]: [PlaceholderAPI] Loaded class ch.njol.skript.Skript from Skript v2.6 which is not a depend, softdepend or loadbefore of this plugin.
[19:45:47 WARN]: [PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
[19:45:47 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[19:45:47 INFO]: 1 placeholder hooks successfully registered!
#

ill upload the whole log in a sec

solar gazelle
#

oh..

#

well i've restarted my server but ok

turbid tide
#

so you got an outdated expansion. what you need to do is go to plugins/PlaceholderAPI/expansion and delete the skript expansion you got rn. then you need to go here https://github.com/Altruiis/skript-expansion/releases/ and download the expansion from there. after that put what you just downloaded in the expansions folder and then do a /papi reload

solar gazelle
#

alrighttt

#

oh my god thank you :D

turbid tide
#

πŸ‘

honest spruce
stark palm
#

Could anyone help me, ive been trying to update a few plugins on the server and been staring at the error log for too long and im spacing out. It seems like discordSRV is causing an issue when i try to do my papi reload command, I cant seem to find the error spot though

lone dove
#

Hello, I'm looking for help with the MATERIAL NAMES of potions. I can't put them in the following placeholder:% statistic_craft_item: <Item Material>%

turbid tide
turbid tide
turbid tide
#

idk if minecraft even keeps track of different potions at all

honest spruce
lone dove
#

Hm thank’s

peak oar
#

hey, i'm having a problem creating a baltop hologram.
the placeholder will count only online players
%vault_eco_top_player_1% i'm using this placeholder.

tried to parse it and it count only online players

sullen bluff
#
[07:53:20 ERROR]: [PlaceholderAPI] 
java.lang.NullPointerException: The expansion version is null!
        at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:166) ~[PlaceholderAPI-2.10.10.jar:?]```
#

is this normal?

balmy vale
#

Is there a way that when I click on an item it sends commands with the name of a player that I post in the chat?

#

(deluxe menu)

sullen bluff
#

%essentials_nickname%

turbid tide
turbid tide
silver radish
#

/papi parse DonKolia% world_nearbyEntities_200%
it does not work

#

%world_nearbyEntities_<radius>%

sullen bluff
tender vaporBOT
# sullen bluff where?
Hey!

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

turbid tide
turbid tide
sullen bluff
#

nah doesnt work

silver radish
fluid flint
#

I need to create a Math but everything i do fails it's placeholders from statistics...
%math_22[prc]{server_online}% This works
%math_22[prc]%statistic_pig_one_cm%/100)% - This doesn't work

junior musk
#

you forgot to replace the inner %% by {}

fluid flint
#

./papi parse me %math_22[prc]{statistic_pig_one_cm}/100)%
Fails

turbid tide
#

fails in what way?

fluid flint
#

Well there is just a thing that i can't use, but now it works

#

[20:19:09 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[20:19:09 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_(precision:0/60)%
[20:19:09 WARN]: [PlaceholderAPI] [Math] '(precision:0/60)' is not a valid Math Expression.

turbid tide
#

precision was changed

fluid flint
#

I know

fluid flint
#

How can i Round this number? - %math_({quests_category:killinghostile_completed}/9*100)%

turbid tide
#

%math_0_(...%

#

you add the 0_ there

fluid flint
#

Thank you πŸ™‚

vivid sparrow
#

@turbid tide wasn't it :0_?

fluid flint
#

It was πŸ™‚

turbid tide
thick kindle
#

how do you get the expansion for factions mcore now?

#

it doesn't find factions as an expansion even though it was one before

austere hawk
#

For some reason in deluxmenus, the placeholder for player (%player%) is not working

sharp jay
#

@thick kindle Think it was built into the plugin or discontinued

thick kindle
#

and no it is not built into factions mcore

#

but I got it solved anyways by just manually downloading it

sharp jay
#

Kk

prime spire
#

how to create ecloud account? the registration is lock

fervent spire
tender vaporBOT
#
FAQ Answer:

Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload

turbid tide
#

@austere hawk read this ^

edgy thunder
#

hi there, im trying to use this placeholder provided by the plugin playerkits but its no working, it said that it works through papi, so im here to ask if someone know why ( im not able to post pics here)

tender vaporBOT
edgy thunder
turbid tide
#

jsexp works

rapid shore
#

Papi giving lots of warns when start server (too long message) i have two images but i cant send those

turbid tide
turbid tide
slow crystal
#

hi, can i make a JS placeholder that doesnt depend on a player

#

i guess not because of this

#

which is a pain

turbid tide
#

it works for offline players

slow crystal
#

but discordsrv doesn't pass a player at all ;-;

turbid tide
#

ah Ic

slow crystal
#

cringe plugin

turbid tide
#

just an extra check in evaluate when adding the offline player bindings

#

and removing the null checks

#

but yeah the other papi placeholders that you parse in javascript will not be parsed unless they support null

slow crystal
#

i would rather just make a plugin tbh

#

bit of a pain but ty

turbid tide
#

πŸ‘

turbid tide
slow crystal
#

good idea

turbid tide
#

man I love my job. just giving myself a pat on the back

thorn thunder
#

Anyway, good point. You can probably temporarily use a OfflinePlayer with an impossible name

#

Assuming there are characters in the username that mojang doesnt allow

slow crystal
#

absolutely not

#

i fixed it now anyway

#

with a plugin

thorn thunder
#

ah alrighty

#

lol

wary epoch
#

Is it possible to get papi expansions removed from ecloud?

We regularly have users who installed an unofficial expansion for our plugin called IridiumExpansion which wasn't updated for about 9 months and completely breaks when being installed. It's just annoying because apparently, many people believe that it's an official expansion and complain in our support about it. I believe that the expansion in its current, outdated state is absolutely useless.

sharp jay
#

@wary epoch whats the name of the expansion?

#

nvm

#

@wary epoch Do you have one to replace it with?

limber ice
#

PlaceholderAPI-2.10.10-DEV-132 running on Magma/Paper 1.12.2

#

the expansion I'm using is Expansion-Javascript-QJS

limber ice
#

I figured out this error, but still can't get the JavaScript placeholders to work, only change now running PlaceholderAPI-2.10.10-DEV-133 now

#

which helped me figure out the error better

limber ice
#

[22:14:38] [Server thread/ERROR] [me.clip.placeholderapi.PlaceholderAPIPlugin]: [PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!

calm fiber
#

anyone there ?

#

i need help

tender vaporBOT
#

There is no time to wait! Ask your question @calm fiber!

calm fiber
#

does your plugin stp us from placing armour stands

#

@vivid sparrow please tell im in a bit of hurry

tender vaporBOT
vivid sparrow
#

what

calm fiber
#

cuz i cant place armour stands in my server

vivid sparrow
#

"your plugin" this is a server where people ask for help with many plugins, be more precise

#

none of clip's plugins does that

calm fiber
#

does your plugin placeholder-api stop us from placing armour stands

vivid sparrow
#

Why would it do that? No

calm fiber
#

ok thanks

sharp jay
#

lol

wary epoch
tender vaporBOT
sharp jay
#

removed it

wary epoch
#

I don't know what "ping if you're not actively involved in a conversation" is supposed to mean, sorry if it was bad

#

Thank you

sharp jay
wary epoch
#

What do you mean with that? :D

I know that it states that it's an unofficial expansion, but as I mentioned, many people just don't read that text, they probably just search "iridium" and install the first expansion. The issue is that IridiumSkyblock 2.6.7 was published on January 7 2021 and is completely incompatible with IridiumSkyblock 3.0.0 - 3.1.6 (every version after 2.6.7). The functionality is integrated in the plugin now.

sharp jay
#

@wary epoch as an admin set it it will be stayed that way but pretty much it was set as unverified @balmy marten (does this mean the command will not work?)

#

As this isn't a verified expansion you can only install this expansion manually.

#

@wary epoch ^

#

via the ecloud website

wary epoch
#

Oh, I see, that helps a lot

sharp jay
#

Ye

limber ice
#

the vault and JavaScript expansion throw null errors

turbid tide
limber ice
turbid tide
#

I've seen this quite a lot lately, from what I've understood the problem could come from plugins that mess with the class loader. Such a plugin is ChatControl. Not sure which others can do this.

limber ice
#

I don;t use chatcontrol, I use dchat

turbid tide
#

yeah but there might be other plugins

limber ice
#

and if I don't run the latest papi dchat will not work

turbid tide
#

that mess with the class loader

#

doesn't need to be a chat plugin

#

what I can recommend is remove your plugins 50/50 until it stops to figure out which one it is.

limber ice
#

ok, all plugins on this server run on another server with no issues, difference is bukkit and paper

#

vault worked on PlaceholderAPI-2.10.10-DEV-132, I get null error on PlaceholderAPI-2.10.10-DEV-133

turbid tide
#

@carmine veldt any comment on this? they get the null version error on PAPI 2.10.10-133 (so latest) but not on build 132.

limber ice
#

javascripts gets null on both

turbid tide
#

oh...

carmine veldt
#

can you send the javascript jar

turbid tide
#

which one stops on 132 then?

limber ice
#

I even have tried running one at a time

#

vault has no error on 132 but don't work

carmine veldt
#

pls send your javascript expansion jar

limber ice
#

I have tried the one from cloud and the javascript one I got from here

carmine veldt
#

what server ver?

limber ice
#

these expansions https://paste.helpch.at/asigopobog.css run fine on Spigot 1.12.2 with PlaceholderAPI-2.10.10-DEV-111, I have tried this same combo on Magma/Paper 1.12.2 and no combo seems to work

#

vault might of been me delete vault from plugins by mistake reboot server now to test

carmine veldt
#

using that jar u sent

#

paper 1.12.2

#

and the latest papi

#

javascript works

limber ice
carmine veldt
#

can u send ur vault jar & vault expansion

limber ice
#

I'm not running normal paper, it's magma/paper

carmine veldt
#

can you link that or send me the jar for it please

limber ice
#

magma allows me to run forge mods

carmine veldt
#

yep magma is the problem

#

when I used magma it broke

limber ice
#

I can make a temp server and pull one mob out at a time to see one of those are my problem, mods can't be removed as easy as plugins without causing issues to the map since they add new blocks

#

you had no mods

carmine veldt
#

yeah no mods

#

just papi plugin and javascript expansion

#

and I got the same null error

#

issue is magma

limber ice
#

I know when I reboot server with someone still connected it may not start back up

#

guess I will have to not use JavaScript placeholders and vault, I can see is ess works

#

javascript just allowed chat colors I'm sure I can figure out another way

#

essentails expansion will not load either, guess I will remove balance from dchat

turbid tide
limber ice
#

I know, I have 4 working and no need to add more yet

#

I see it as use dchat on all servers is more important then a few placeholders

austere hawk
#

Someone can help me ?

turbid tide
austere hawk
#

1.8.8

turbid tide
#

welp. deluxemenus doesnt support that anymore

tender vaporBOT
#
Deluxemenus - Version List
Spigot:

1.8.8
1.12.2
1.16.5
1.17.1

Version:

v1.10.5
v1.13.3 - Latest
v1.13.3 - Latest
v1.13.4 - Dev Builds

austere hawk
#

What was the error if not?

turbid tide
#

yes you have to use version 1.10.5

austere hawk
#
    material: INK_SACK
    data: 10
    slot: 11
    display_name: '%javascript_rankColor_getStatus,10%Gold Rank Color'
    lore:
    - '&7Changes the color of the plus in %javascript_rankColor_getRank%'
    - '&7to gold, turning it into %javascript_rankColor_getRankPreview,&6%&7.'
    - '&7'
    - '&7Shown in tablist and also when chatting.'
    - '&7'
    - '&e%javascript_rankColor_getMessage,10%'
    hide_attributes: true
    hide_enchantments: true
    hide_effects: true
    hide_unbreakable: true
    priority: 1
    view_requirement:
      requirements:
        permission:
          type: string equals ignorecase
          input: "%luckperms_inherits_group_mvp+%"
          output: "yes"
    left_click_requirement:
      requirements:
        hours:
          type: '>='
          input: '%statistic_hours_played%'
          output: '10'
          deny_commands:
          - '[sound] ITEM_CHORUS_FRUIT_TELEPORT 1 0.1'
    right_click_requirement:
      requirements:
        hours:
          type: '>='
          input: '%statistic_hours_played%'
          output: '10'
          deny_commands:
          - '[sound] ITEM_CHORUS_FRUIT_TELEPORT 1 0.1'
    left_click_commands:
    - '[console] lp user %player_name% meta setprefix %javascript_rankColor_getMeta,&6%'
    - '[message] &a&lPREFIX &8Β» &7Changed your prefix to %javascript_rankColor_getRankPreview,&6%&7!'
    - '[sound] BLOCK_NOTE_BLOCK_GUITAR'
    - '[close]'
    right_click_commands:
    - '[console] lp user %player_name% meta setprefix %javascript_rankColor_getMeta,&6%'
    - '[message] &a&lPREFIX &8Β» &7Changed your prefix to %javascript_rankColor_getRankPreview,&6%&7!'
    - '[sound] BLOCK_NOTE_BLOCK_GUITAR'
    - '[close]'```
#

The menu does not want to open and that puts errors in the console! Do you think it must come from the JavaScript expansion?

turbid tide
#

oh yes @austere hawk the error can show up from the javascript expansion as well. if your server is 1.8 then your java version must be 8 right? you'll probably have to downgrade the javascript expansion as well

limber ice
#

ok pinger expansion has no errors when I parse this it says offline when it is online %pinger_online_127.0.0.1:25450%

#

should I try and downgrade pinger on 1.12.2

austere hawk
tender vaporBOT
turbid tide
austere hawk
#

On the web site there are no javascript versions

turbid tide
simple nova
#

wtf

turbid tide
#

yes?

simple nova
#

after papi reload

#

everything broke

#

πŸ˜„

#

even restart server

#

some of the placeholders are working

#

but those are not

#

wtf

turbid tide
#

@simple nova do /papi dump and send over the generated link please. also a very useful thing could be your full startup log

simple nova
#

this might help

#

ok

#

it was /papi ecload download quest

#

now i deleted expansion

#

everything is fixed

#

weird

turbid tide
simple nova
#

its mb

#

sry

pulsar cipher
#

%statistic_player_kills% is that wrong?

turbid tide
#

I believe

#

wait let me double check

pulsar cipher
#

le me try

#

nope

#

new message

turbid tide
#

oh nvm. it should be %statistic_player_kills%

pulsar cipher
turbid tide
#

hmm. that's strange

pulsar cipher
#

This server is running Tuinity version git-Tuinity-"4c31ea1" (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 4c31ea1 on HEAD)
You are running the latest version

turbid tide
#

btw. just so you know. tuinity now comes inside paper. so maybe try latest paper build

pulsar cipher
#

I thought it hadn't passed yet? Are they integrated?

turbid tide
#

oh. did they not? I might misremember.

#

tuinity is archived so it must have passed

pulsar cipher
#

ow, thanks for information. Whatever how about player_kills xd

turbid tide
#

well I'm saying try paper just in case

#

something is messed up with the server jar

#

tho I doubt it

pulsar cipher
#

le me sec

turbid tide
#

if it still doesn't work for some reason, test %statistic_PLAYER_KILLS% maybe it doesnt like the lowercase

#

and make sure you have the latest version of the statistic expansion

pulsar cipher
#

i have just installed the expension

#

now, im waiting the server

#

okey
This server is running Paper version git-Paper-378 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: cc2ecbc)
You are running the latest version
Previous version: git-Tuinity-"4c31ea1" (MC: 1.17.1)

pulsar cipher
#

thanks ^^, it must be cause of lowercase

turbid tide
#

yeah. strange tho. I'm 100% sure that it should make it uppercase

#

before trying to get the statistics from paper

#

yeah. the code is there

tired arch
#

Hi I need help with placeholderAPI not noticing that the essentials Expansion is not downloaded. I am also using Magma 1.12.2 so idk if that has anything to do with it but i just would like to have my nicknames working in chat

turbid tide
tired arch
turbid tide
#

you can try the player expansion with the %player_displayname% placeholder

tired arch
turbid tide
#

yeah. /papi ecloud download player then /papi reload

tired arch
#

ah perfect!

#

it works

austere hawk
#

does anyone know where i can download an older version of placeholderapi that supports 1.7?

tender vaporBOT
#
Placeholderapi - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1

Version:

v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest

turbid tide
sick mauve
sharp jay
#

You cant

sick mauve
#

Maybe there is a similar placeholder that I do not know about?

sharp jay
#

havent seen any that supports bold its open src so you can always add it yourself

sick mauve
#

Okay, thanks

austere turtle
#

What's wrong with PlaceholderAPI.setPlaceholders (player, text); In text there are several placeholders in% ...%

#

But nothing happens. Only the placeholder% ...% is output

mint fable
#

several placeholders? do you have an example of the text

limber ice
warm topaz
#

update the server expansion

limber ice
#

thanks, I updated the rest of the expansions, a few show they need update but they are built into the plugin, how do I fix those?

untold tinsel
#

how can i get stsats from offline players like with this for ex %statistic_mob_kills% how can i make that with offline players?

simple nova
#

if %essentialsnick% not working what cause it

#

it worked tho but now it shows the placeholder not the name

austere turtle
tender vaporBOT
austere turtle
#

?

turbid tide
mint fable
turbid tide
#

also what plugin does this clan placeholder come from? can you link

#

?

austere turtle
#

This Plugin use PAPI

turbid tide
#

do /papi parse me %clan_name% while youre on the server and tell me what it says

warm plover
#

Is there a placeholder for a player's name in all lowercase letters?

turbid tide
#

it should be just one line

#
BukkitPlayer.getName().toLowerCase();```
#

literally just this in a js placeholder

warm plover
#

hmm don't really know too much about them but ty

tender vaporBOT
#
Javascript
Useful Links & Information:

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

turbid tide
#

here's the wiki for it ^^

warm plover
#

works! ty!

turbid tide
#

πŸ‘

turbid tide
# austere turtle %clan_name%

yeah. that means that either that placeholder is not a PlaceholderAPI placeholder, or your expansion is missing or just broken.

#

you'll have to ask the developer of that plugin to see what's going on

austere turtle
#

Ok

#

Thanks

austere hawk
#

Hi!

#

How do i activate placeholder?

sharp jay
#

wym

tender cliff
#

Hi

#

I try to install placeholderapi skript extension but its not working

plain sequoia
snow whale
#

hey.. so when i change the group/rank prefix to hex codes in luckperms it looks fine in tab (using bungeetabplus) but in chat it keeps the '&' for some reason, using deluxechat.. tried all different placeholders.. vault, luckperms etc.. all keep the '&'
any ideas? xd

tender cliff
#

But i thinking i am using a old version of skript. Can that be the problem?

vivid sparrow
tender cliff
#

i tried

hasty iris
#

When you kill 1 person, it should write 1 kill, but it writes 20 kills, what is the reason? https://prnt.sc/1zkd76e I use "d%statistic_player_kills%"

turbid tide
turbid tide
obtuse tulip
#

hey folks, im trying to get a command working in skript and its doing my head in. I had everything right up until the point where i realised that luckperms doesnt play nicely with skript. so ive setup placeholderapi and downloaded the luckperms and skript extensions and im still struggling.

can someone please have a quick look at this code and let me know what im doing wrong? Thanks so much

every 10 minutes:
    loop all players:
        if {play::%loop-player%::time} is greater than or equal to 10 minutes:
            if loop-player %player_has_permission_<discord.nolink>% contains "yes":
                send "You need to link your account" to loop-player
                send "Go to blah blah" to loop-player
        else:
            stop
sharp jay
#

why skript 😭

obtuse tulip
#

lol i asked the guys over in the skript discord the same question and they said why luckperms and then pointed me to the placeholderapi link

sharp jay
#

skript aint good

obtuse tulip
#

what would you suggest instead that can achieve what im trying to do?

sharp jay
#

making an actual plugin

obtuse tulip
#

i wouldnt even know where to start

fervent spire
vague crane
#

[06:19:39 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
why does this happen on startup sometimes?

#

it fixes with a reboot but comes back randomly

stoic grove
obtuse tulip
#

tried that with no luck. i think its an issue with skript not reading %player_has_permission_discord.nolink%

i thought skquery allowed skript to use placeholderapi variables but i dont think thats the case

stoic grove
#

ah

obtuse tulip
#

Yeah. So I’ve just installed Ersatz which I think is going to solve the issue but I’m giving up for the night. Thanks for the suggestion though

turbid tide
shut mountain
#

Hey guys, i need someone to help me, i use %player_first_join_date% as first join date BUT some players even me have bug, where the first join date resets randomly. For me my first played was 9.3.2021 and now its 14.11.2021 - the exact time matches with time that was "disconnect by myself"

#

Need to mention i use ForceResourcepacks, if player declines it, it kicks them (dont know if it can be doing something with papi or not)

elder palm
shut mountain
#

UUID is same

#

thats the weird part

#

new UUID would case item delete

turbid tide
# shut mountain UUID is same

well not sure this is fixable from PlaceholderAPI either way. The Player expansion just takes the time from spigot itself which takes it from the world/playerdata/<player-uuid>.json file.

#

as Zeromaniac said, either you have plugins messing with uuids, either you have plugins messing directly with the data file or your uuid changed

scarlet compass
#

Who to find a scoreboard plugins that does not need PlaceHodlerAPI or if you can find version 1.7.10

craggy ravine
#

Hello, it say failed to load class file expansion how do i fix this

turbid tide
craggy ravine
#

oh sorry, i already fix it, turn out there is one expansion that is not working(?)

smoky spoke
turbid tide
smoky spoke
#

actually im just asking questions on behalf of another person
that person downloaded the math placeholder with the /papi ecloud download Math command
and that error appeared

royal latch
#

and that person is me.

#

so you can aske me here.

royal latch
turbid tide
#

also is that the entire error?

royal latch
#

1.12.2 with java 8

turbid tide
#

ah. that might explain it. the Math expansion will require java 11 to work properly

royal latch
#

i see, so there is no way to fix it right?

turbid tide
#

you could possibly go down a few versions and use that. but it will be using a different format and could have some bugs

modern lynx
#

how can I use RelCon expansion? none of the placeholders work

swift ravine
#

can i have some help?

turbid tide
swift ravine
#

I got a new extended storage devise for my computer and I have set it up and it appears on my files and it works as I have tried installing a game on it but there is an application I'm trying to download on there but it download on my normal storage which is full and cant download it is there any way to make it to download it on the extended storage device?

turbid tide
swift ravine
#

ok

#

thanks

modern lynx
#

how can I use RelCon expansion? none of the placeholders work

austere hawk
#

Can someone help me? I'm having these errors when I try to display some information.

#

[23:54:54] [Craft Scheduler Thread - 43/WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[23:54:54] [Craft Scheduler Thread - 43/WARN]: [PlaceholderAPI] [Math] Placeholder: %math_([precision:0]{statistic_minecart_one_cm}/100)%
[23:54:54] [Craft Scheduler Thread - 43/WARN]: [PlaceholderAPI] [Math] '([precision:0]0/100)' is not a valid Math Expression.

vivid sparrow
#

%math_0:_{statistic_minecart_one_cm}/100%

#

@austere hawk

modern lynx
#

Is there a way to learn a player's name from their UUID with a placeholder?

turbid tide
#

if you know javascript you could use the javsacript expansion to make it

#

to make a placeholder that does that*

#

actually. not sure its possible with the js expansion

modern lynx
#

nah I don't

#

thanks

turbid tide
#

you might need a custom expansion for that

modern lynx
#

ok

junior musk
turbid tide
#

welll

#

you see

junior musk
#

well, that would only work with online player though

turbid tide
#

no

#

bcz

#

getPlayer requires UUID

#

not a string

junior musk
#

oh I see, and I guess there isn't a way to get an UUID from a string within JS ?

#

or at least, the Java UUID class

turbid tide
#

Yeah

vivid sparrow
#

You can call java stuff from js

#

for nashorn you use Java.type("") or smth

turbid tide
vivid sparrow
#

πŸ™‚

turbid tide
#

gaby any chance you know what it is for quick js? been looking around and I found something about JavaClass.forName but doesn't work. it doesnt exist basically

vivid sparrow
#

no clue

elder flax
#

I've tried this placeholder: %rel_relcon_player_group.default_&a%%rel_relcon_viewer_group.default_&c%
and it gives red on both player and viewer
why?

sterile vigil
#

I get package me.clip.placeholderapi does not exist when I try to compile my plugin, I'm just trying to hook into PlaceHolderAPI
I added this to my pom.xml

            <repository>
                <id>placeholderapi</id>
                <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
            </repository>

and

        <dependency>
        <groupId>me.clip</groupId>
        <artifactId>placeholderapi</artifactId>
        <version>2.10.0</version>
        <scope>provied</scope>
        </dependency>

When I import import me.clip.placeholderapi.PlaceholderAPI; it's blue (the normal color) and its not grayed out.

Don't exactly know how to fix this... pointers?

austere hawk
tender vaporBOT
sterile vigil
#

anyone?

warm topaz
#

also, did u mean 2.10.10 version? because 2.10.0 is like 2 years out of date

sterile vigil
sterile vigil
warm topaz
#

that is what is weird, but my guess is that the IDE doesnt read the scope value, so it works, but when compiling it will error on mavens end (just a random guess)
could also be a cache issue thats causing the inconsistency between maven and IDE

#

also, what wiki are u looking at? because on github its fine, which is the latest wiki

sterile vigil
#

Okay I think I see the issue

#

Let me try something

sterile vigil
#

thank you very much!

elder flax
#

I've tried this placeholder: %rel_relcon_player_group.default_&a%%rel_relcon_viewer_group.default_&c%
and it gives red on both player and viewer
why?

austere hawk
#

I have a problem with the variable vault in papi

sharp jay
#

?help

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

Source

sharp jay
#

@elder flax what plugin

hoary elm
#

Hi, i'm having this problem when i use /papi ecloud download Vault, and then /papi reload. I'm using a magma server.
https://pastebin.com/FpRD6WyS

warm topaz
#

i think the issue here is magma

#

other people have reported this issue, all with magma

hoary elm
#

Thanks

hard wolf
#

Is it possible to run place holder API with mohist?

turbid tide
#

so you can run only a few expansions

elder flax
tender vaporBOT
turbid tide
#

because plugins need to specifically support relational placeholders otherwise they won't be parsed right

elder flax
#

I used /papi parserel to test it, and I was using it on TAB

#

Also I think TAB supports it because owner told me to ask it there

turbid tide
#

ok. just to make sure. have you read the wiki for the relcon expansion to see how it works?

elder flax
#

Yes.

turbid tide
#

sad

thorn thunder
#

We could add our own api if needed

#

If there any specific use-case where thats needed?

turbid tide
#

if you want. but I personally wouldn't use it anyways

thorn thunder
#

ah, nvm then

turbid tide
#

and to do that I would've needed the UUID class

thorn thunder
#

hmm

turbid tide
thorn thunder
#

I think its possible with some reflection

#
BukkitServer

provides Server, which has the getOfflinePlayer method

#

if you reflectively try to get the first argument, you should get the UUID class

elder flax
#

/papi parserel PlayerOne PlayerTwo %rel_relcon_player_group.default_&a%%rel_relcon_viewer_group.default_&c%

thorn thunder
#
const a = BukkitServer.getClass().getMethods()
var uuidClass

for (i : a) {
  if (i.getName() != "getOfflinePlayer") continue;
  uuidClass = i.getParameterTypes()[0] 
}
turbid tide
#

alr

turbid tide
elder flax
#

/papi parserel PlayerOne PlayerTwo %rel_relcon_player_group.default_&aasdasd%%rel_relcon_viewer_group.default_&casdasd%

turbid tide
#

so finally got minecraft to run.

turbid tide
#

is that what youre trying to do?

elder flax
#

Actually I just want every player to see their name green and red for others. I don't know why this thing require permission

#

So I entered a random permission which is everyone has

turbid tide
#

oh

#

I don't think you can use the relcon expansion for that

#

you might need a custom expansion for that as I don't think there is one that does what you need or can do what you need

elder flax
#

😦

turbid tide
#

yeah. the problem is that this expansion checks for permissions. not something else. if it would let to check for name for example, we could do that but it doesn't

elder flax
#

okay

turbid tide
#

printing a I get [Ljava.lang.reflect.Method;@21e06d3a

#

its not an array

olive frigate
#

Heyo! Im trying to parse 2 placeholders into one, i only dont know how. I am trying to get the world time of the world that the player is in with %world_time24_<world>*, only the <world> differs between players and i dont know how i can make it take the %player_world% value

turbid tide
olive frigate
#

that indeed works! i dont know why i didnt see them. Thanks!

hard wolf
#

Its the core one too :(

turbid tide
#

so basically { instead of % for the inner placeholders

turbid tide
hard wolf
#

Alright I will go over there Thanks :)

finite bluff
#

Hey guys so im trying out PAPI for the first time and i've run into this issue i cant figure out how to solve

I have a scoreboard dummy objective called sidebarcountdown that holds a number

when i parse this for myself with sidebarcountdown = 120
%changeoutput_equals_{objective_score_sidebarcountdown}_-1_Waiting..._{formatter_number_time_{objective_score_sidebarcountdown}}%
It outputs {formatter
I expected it to output 2m

when i parse this for myself with sidebarcountdown = 120
%formatter_number_time_{objective_score_sidebarcountdown}%
Its outputs 2m as expected

and if i replace {objective_score_sidebarcountdown} in the main placeholder with 120 literally, it works just fine

Is there a limit on how much you can nest placeholders? How can i make this work?

junior musk
#

unfortunately you can't parse nested placeholders within nested placeholders

#

so your method won't work

finite bluff
#

:(

#

is there any other quick way to do what im doing?

junior musk
#

though you could use the JavaScript expansion to do that

finite bluff
#

hm okay i will try that

#

thank you:)

junior musk
#

/papi ecloud download Javascript
/papi reload
go in /plugins/PlaceholderAPI/ and open javascript_placeholders.yml, add

objective:
  file: objective.js

in it
then go in /plugins/PlaceholderAPI/javascripts/ and create a file called objective.js

open that file and put this in it:

function objective() {
    var obj = PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%objective_score_sidebarcountdown%")
    return obj == -1 ? "Waiting..." : PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%formatter_number_time_"+obj+"%")
}
objective()

/papi reload
and then you can use %javascript_objective%

#

@finite bluff

turbid tide
junior musk
#

oops

#

forgot to change from the old msg πŸ˜…

#

thx

turbid tide
#

πŸ‘

finite bluff
thorn thunder
tender vaporBOT
thorn thunder
#

You can use .forEach

#

Man barry ffs

tender vaporBOT
#
Placeholderapi - Version List
Spigot:

1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17.1

Version:

v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest
v2.10.10 - Latest

timid fox
#

guys

#

how to unregister my expansion when plugin is disabled

#

i see no unregister method

#

(api)

#

or does it do it auto?

turbid tide
# timid fox or does it do it auto?

I mean your plugin should only be disabled when the server stops anyways. And yeah I believe it auto unregisters. there's no unregister method that's for sure

#

actually. there might be some but you're not meant to use it

timid fox
#

(simply when using a plugin manager)

turbid tide
#

yeah. people should not use those.

#

you should not bother fixing your plugin for people that use those

grand cosmos
#

Hello,

I get an error message with PAPI: https://pastebin.com/G84ke8Pm

I am in 1.12.2, I have the latest version of PAPI (I tried 2.10.9) & the latest version of SaberFaction.

Do you have an idea?

ancient marsh
junior musk
#

try to redownload the Player and Mvdw expansions

#

/papi ecloud download Server
/papi ecloud download Mvdw
/papi reload

#

if it keeps happening, check in your Expansions folder in your PlaceholderAPI folder if you don't have the expansion files 2 times

ancient marsh
#

Okay

#

As on featherboard all my placeholders are coming up empty l

junior musk
scarlet yew
#

Anyone know if it's possible to use the item_enchanted statistic but only for specific tools? Exactly like the block mined statistic with specific blocks

grand zenith
junior musk
vivid sparrow
#

not what they need @junior musk

junior musk
#

oh

#

right I see

#

I guess it works require a plugin that counts that and which stores the amount in a file

warm flax
turbid tide
#

it doesn't parse placeholders every time you declare a string

#

like the concatenated one

#

it wont be parsed

#

instead you have to use the PlaceholderAPI.setPlaceholders method

turbid tide
warm flax
#

sure

#
var player = "%player_name%";
var id = args[0];

function sponsor() {
   var placeholder = "%pw_warp_sponsor_" + id + "_owner%";
   console.log(placeholder);
   console.log(player);
   console.log(id);
   var placeholder2 = "%pw_warp_sponsor_1_owner%";
   console.log(placeholder2);
   return placeholder2 == player;
}

sponsor();
#

okay i think i get it now, ty

#

PlaceholderAPI.static.setPlaceholders(BukkitPlayer, placeholder)

turbid tide
#

yeah. that

warm flax
#

correct, (looking at the docs atm)

#

okay thank u

#

i thought it would of parsed it lmao

turbid tide
#

also

#

it should be like this

#
var placeholder = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "pw_warp_sponsor_" + id + "_owner%")```
#

bcz if you put it like "%pw_warp..." it will try to parse that first

#

the thing is it parses the string when its first declared and thats all

#

so in your case it was parsing the first string "%pw_warp_sponsor_" on its own

#

then the second one as well

warm flax
#

ohhhh

#

Okay

turbid tide
#

yeah. try removing the static

#

completely

warm flax
#

ty

#

it works now

turbid tide
#

nice πŸ‘

warm flax
turbid tide
#

yeah. if its an internal expansion, it needs that

warm flax
#

ye completely forgot abt it lmao

turbid tide
warm flax
turbid tide
#

its way better now

#

not perfect but better

warm flax
#

meh maybe when i actually have the motivation to document my shit on their service then i might found out for myself

#

lmao

#

Just currently hammering through commissions atm

ancient marsh
junior musk
#

nope

#

only oncz

ancient marsh
#

Okay I’ll try that

junior musk
#

if there are 2 jars, remove them and redownload the expansion

ancient marsh
#

Okay sure, thank you

flat spruce
#

is it possible to find out what plugins are calling placeholders?

quaint flare
turbid tide
#

also is the palyer you parse for online? if they're not then there's your problem

#

the luckperms expansion only supports online players

quaint flare
turbid tide
#

I meant in the code. you showed 2 lines of code. 1 parsing the string for a variable that's called player and one for a variable thats called luckperms

#

I was asking what is that variable

quaint flare
#

I'm not sure how to answer you

quaint flare
turbid tide
#

Im asking what the variable is

#

what type is it

quaint flare
#

expansion?

turbid tide
quaint flare
#

https://ibb.co/71Zjj7D the expansion has to be downloaded in order for the "player" to be recognized. Not the same for luckperms tho.

ancient marsh
#

Hey, for some reason all my placeholders work when I use the /papi parse command but just aren’t working in chat or on scoreboards at all

#

This isn’t just for papi but on mvdw placeholders like featherboard also

turbid tide
ancient marsh
#

Yeah it’s featherboard

turbid tide
#

what version of featherboard tho?

ancient marsh
#

Latest

turbid tide
#

only versions 5.0.0+ support PAPI

ancient marsh
#

I’m using 5.0.4

turbid tide
#

how are you using it? the placeholder

#

%placeholder% or {placeholderapi_placeholder}?

ancient marsh
#

2nd version

#

But it’s not just papi ones it’s all of them

quaint flare
ancient marsh
#

I just upgraded

#

From 1.12.2 to 1.17.1

#

Is there anything specific that I need to change?

turbid tide
# ancient marsh 2nd version

yeah. so in 5.0.0+ you're supposed to use them as %placeholder%. featherboard switched to using directly PlaceholderAPI

ancient marsh
#

Oh really

#

Lemme try hang on

#

Can I still use old mvdw placeholders

turbid tide
#

yeah

#

not sure. probably not. but you can try

ancient marsh
#

Like I want to use the {prefixcolor} placeholder

#

Would %mvdw_prefixcolor% not work

#

Well it isn’t currently

#

Fixed it, great thanks

turbid tide
#

nice

twin prawn
#

PAPI is so easy as a dev to implement. thanks guys!

flat spruce
#

is it possible to find out what plugins are calling placeholders?

silver minnow
stuck nimbus
#

anyone know why im getting this ??

flat spruce
#

very tps intense as it use vauts getOfflinePlaywr

flat spruce
#

Vault

silver minnow
#

i think u might be able to track it with spark

flat spruce
#

i tried

silver minnow
#

if that's the cause of the lag

#

can u send the spark report?

flat spruce
#

well its flare but sure

#

its on the ram & cpu section

silver minnow
#

aw no search feature ☹️

flat spruce
#

yeah lemme get a spark for u

silver minnow
#

alr
and also how do u know that getBalance is being called a lot?

flat spruce
#

no idea

#

getBalance and hasPerm it seems

flat spruce
silver minnow
# flat spruce https://spark.lucko.me/G7gWAhafro

can you try temp disabling Slimefun? i think that might be part of the issue

and only the main thread affects TPS (unless the other threads are running enough stuff to slow down the entire cpu)

flat spruce
#

its ram that seems to be the issue atm

silver minnow
#

oh

flat spruce
#

we keep OOM’ing

#

even though we have 12GB for this server with 4GB on top for docker

silver minnow
#

whys it say 24 gb if you only have 12

#

πŸ€”

#

or is this total memory used

flat spruce
#

total used i think

silver minnow
#

ah

#

and for the getBalance thing

#

i think iConomy might be the one doing that

flat spruce
#

iConomy is just like EssX economy its a manager

#

so it cant be i dont think?

#

unless idk

silver minnow
#

ye i dont think vault is the issue

flat spruce
#

no ik i think something is just getting players balances repeatedly and idk what

#

ill give it a shot

austere hawk
#

Anyone know which placeholderapi i need to install for this %bungee_online_<server name here>%

flat spruce
austere hawk
craggy ravine
#

Hey guys, did anyone know a placeholderapi for timer?

#

i need to find a timer for clearlag estimation time

vivid sparrow
#

@vast anchor

val players = BukkitPlayer.getWorld().getPlayers()
val p1 = players.get(0)
val p2 = players.get(1)

if (p1.getUniqueId().equals(BukkitPlayer.getUniqueId())) {
  return ...
}

return ...```
#

To get their name for the parse other placeholders use pN.getName()

waxen cobalt
#

How can i replace multiple Placeholders in a message? this isn't workingjava PlaceholderAPI.setPlaceholders(p, "%player_name%" || Config.getPrefixNormal(), "%cs_cfg%")

mint fable
#

huh?

#

you put an or statement in the middle of your string

#

very confused

#

to parse multiple placeholders, just put them all in a string

#
PlaceholderAPI.setPlaceholders(p, "%player_name%" + Config.getPrefixNormal() + "%cs_cfg%")```
#

not sure if you wanted all 3 of those, but that would be the way

#

maybe add some spaces

silver minnow
#

this?

mint fable
#

shouldn't even need to separate it

#

obviously if he wants separate variables for each one

#

go ahead

silver minnow
#

ah

mint fable
#

he just has an or statement inside the string

#

πŸ€·β€β™‚οΈ

ancient marsh
#

Does ListPlayers not work anymore?

mint fable
#

playerlist is better i believe

#

yes

turbid tide
#

yeah. ListPlayers was marked as non verified as its old and not updated anymore. instead playerlist gives way more options and is better

ancient marsh
tender vaporBOT
quiet bear
#
    click_requirement:
    requirements:
    type: has permission
    permission: 'test.vip'

so i want to make that when the player click on the item if he have permission the action works but if he don't it doesn't work but now i don't have the permission above and i can click on it and the action work

turbid tide
#
    click_requirement:
      requirements:
        requirement_name:
          type: has permission
          permission: 'test.vip'```
quiet bear
turbid tide
#

can I see the entire menu in a paste bin? The problem might come from somewhere else

quiet bear
#

ok can you please open your dm so i can send it in dm

#

i don't want to send it here

turbid tide
#

they are open but please put it in a paste bin

#

wait they might not be

#

I Might've closed them yesterday. 1 sec

#

OK. 1 thing I can't stress enough. never use /dm open those are meant to be admin commands

#

but thats unrelated

#

OHH

#

I See the confusion

#

@quiet bear so the thing is, click_requirements only work for click_commands

#

they don't transfer to left_click, right_click etc

quiet bear
#

ok

#

can you change the code to click_commands

turbid tide
#

I mean you can do that. just remove left_click_commands: - '[player] bw join solo2' right_click_commands: - '[player] bw join solo2'
and add

    click_commands:
    - '[player] bw join solo2'```
quiet bear
#

ok

turbid tide
#

and as I said

#

don't use /dm open menuname

turbid tide
# quiet bear ok

in deluxemenus use [openguimenu] play-solo and when not in deluxemenus use the custom commands youve set.

azure mulch
#

hey

#

so i have a prison enchant menu made with deluxemenu, and it requires math to work, and i was told that the math is within the placeholderapi plugin

#

does anyone know how to make the math work?

austere hawk
#

hmmmmmmmm please help me ?

turbid tide
turbid tide
austere hawk
#

Why %vault_eco_top_player_#% and %vault_eco_top_rank% doesnt work? It creates a black square with no info. (others like %vault_eco_balance% works)

turbid tide
#

you can get the dev build of that expansion from the pinned messages. you can also see there what changed

austere hawk
turbid tide
#

probably every day

austere hawk
#

And can You tell me why when i choose commas i get word nbsp in box instead of comma?

fluid flint
#

/papi parse me %math_0_[prc]bank_money[prc]%
[13:31:19 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[13:31:19 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_0_[prc]bank_money[prc]%
[13:31:19 WARN]: [PlaceholderAPI] [Math] '%bank_money%' is not a valid Math Expression.

turbid tide
#

@arctic loom can you please explain them how prc works? I have tried in #general-plugins but they don't understand. I'm also a bit busy to go over this again

arctic loom
#

@fluid flint the [prc] placeholder is used to use the % expression in math to get the remainder of values. For example would 21%4 return 1, because removing 4 as many times as possible leaves 1 remaining.
It is NOT used for PAPI placeholders. Use the bracket syntax ({bank_money}) instead.

fluid flint
#

@arctic loom I will try that, but anything i have tried it didn't display the value it needed to be
Do you have a something that can work
The plugin is Bank Lite
And the placeholder is %bank_money%
%math_{bank_money}*0.50%
and i need to withdraw 25% and 50% of the bank balance

arctic loom
#

Iirc is the right formula to get 25 percent of a number <value> / 100 * 25

#

So for you %math_{bank_money}/100*25%

turbid tide
#

I mean *0.25 should also work

arctic loom
#

Idk

short frost
#

how do I reset a placeholder

turbid tide
#

That's not up to placeohlderapi I'm afraid. PAPI is just a bridge. It can get data from other places and display it. thats all

short frost
tender vaporBOT
silver minnow
#

what placeholder are you trying to reset?

short frost
#

like player stats and stuff

#

for like a season wipe

#

do I just reset world stats?

silver minnow
#

yes - PAPI itself doesn't store any placeholder data

short frost
#

mk

#

thanks

silver minnow
#

np

short frost
#

also does anyone know how to use the skript placeholders addon?

arctic loom
#

Wanted to write 21

undone birch
#

i used /papi parse Killers0992 %player% and %player% placeholder is not working

#

i tried that because featherboard also have not working placeholders

turbid tide
#

that is not a valid placeholderapi placeholder

#

%player_name% on the other hand is

undone birch
#

ohh

#

how i can check existing placeholders for x extension?

turbid tide
young maple
#

I have src of a plugin , it has a class called papihook , but now I aint able to figure out what are its placeholders...... can someone help me out ?

austere hawk
#

Also it doesn’t necessarily need to have placeholders. Maybe it just supports placeholders

young maple
#

?

austere hawk
#

No it’s better if you send the GitHub repo here

young maple
#

its not a github repo , my firend sent me the src

#

so like I compiled it and tried

#

but I cant figure out its placeholders

lime slate
#

anyone know a placeholder that returns current world time in ticks?

#

^^ nvm, %player_world_time%

keen garden
#

Is there a placeholder that shows which player is on the score?

for example, for the welcome message
"Welcome UserName you are #0001 player on our server"

Where #0001 is placeholder #%placeholder% ...

dawn ember
#

Anyone know if the expansion pack "Server" is supported on 1.8.9/java 8? I'm having some issues getting it to download

mint fable
dawn ember
#

Thank u :)

austere hawk
#

is there a placeholder for how many player online?

magic rock
#

ofc

#

server expansion

austere hawk
#

can you give me?

austere hawk
visual prism
#

Hi, is it possible to use Pinger on Pterodactyl? If so how? I tried to use the public IP, the 172... IP and localhost but neither of them worked

placid stirrup
#

Failed to register expansion from Expansion-server.jar

#

what is that

modest epoch
#

does the vault formatting go beyond quadrillions in papi config??

placid stirrup
#

i don't know

weak isle
#

Anyone with experience creating JavaScript placeholders mind helping me solve an issue? I’m a bit confused by the wiki for it and not sure where to start if someone doesn’t mind guiding me through it a bit, I was trying to use a placeholder in a hologram but it has a nested placeholder so it makes the result return 0, it was suggested by the plugin dev using JS Placeholders might be what I need

simple granite
#

Failed to find an expansion named: PlayTime

#

@warm topaz

tender vaporBOT
pulsar cipher
#

/papi ecloud download Quests
everything was working before i wrote this, as soon as i typed /papi reload papi got corrupted?

#

yes it fixed after deleting the quest extension. How could an extension break PAPI πŸ€”

hybrid knot
#

hey folks, was wondering if theres any recommendations for how to combine two* block types in the statistics tree. what i mean by that, for example, if theres a methodology to track both deepslate_iron_ore and iron_ore in a single placeholder? im able to combine these two values with %math but it doesnt update on its own like %statistic_mine_block:XXXXXX% would. basically was hoping to be able to track both normal, and deepslate variants of blocks in a single placeholder that auto-updates

edit: nevermind it seems i messed up my command when adding it previously and appears to be working disregard πŸ™‚

final swan
turbid tide
final swan
#

%javascript_pwsponsor_1%

turbid tide
final swan
#

does it need to be a comma?

turbid tide
#

yeah.

#

that's what you use to split arguments as well

lost token
#

%player_colored_ping% isn't working for "Player" like it should, on 24ms it's red

turbid tide
#

or at least the default value. you can change it to something else in config.yml for PlaceholderAPI but no reason to

final swan
#

/papi parse me %javascript_pwsponsor,1% still returns blank

turbid tide
turbid tide
final swan
#

yep!

lost token
#

thanks @turbid tide

turbid tide
#

no problem

turbid tide
final swan
#

there you go!

turbid tide
#

oh. I Just noticed

#

in your javascript code

#

you never call the function

final swan
#

Thanks! I'll get back to you :)

rotund crystal
#

HI, a question can i use placeholderapi on bungeecoord?

turbid tide
rotund crystal
#

ah ok

dim nexus
#

Hello

#

for some reason API of the plugin can not recognize if Player expansion is installed

#

if I do PlaceholderAPI.containsPlaceholders(Text) and contains %player_name% it stills returning true when Player expansion is not installed

junior musk
#

(I think) it only detects the format of placeholders, not if placeholders actually exist

dim nexus
#

not really, i tried with other words and returns false, looks like the problem is only for Player one

junior musk
#

if you try %test_test% does it also detect it?

dim nexus
#

it returns false :p

junior musk
#

not sure then

#

you're sure it's not loaded in /papi list?

dim nexus
#

it isnt

#

also checked in my expansions folder

junior musk
#

weird

turbid tide
#

have you installed the javascript expansion and set up the lore placeholder?

tawdry pecan
#

how to set up it? i do only installed the expansion

tawdry pecan
#

perfect it works! Does this also work with armor? Need that also for the armorslots

turbid tide
#

this only works for the item in hand I believe

#

btw. you should note. in newer versions of deluxemenus you do not need all of this

#

you can literally just set the material to material: off_hand

#

and it will copy all the information

#

off_hand or main_hand

#

whichever you want

#

but this only works in the newer development builds

forest swallow
#

hello! having a bit of trouble here with the %statistic_player_kills% placeholder always showing 0 despite players actually getting kills.. any clue what might be wrong?

#

running spigot 1.15.2, latest version of papi

turbid tide
#

because the statisticc expansion just asks spigot for the data and displays it. nothing more. it doesn't record the statistics itself

forest swallow
#

oh, let me check

#

yeah, there's nothing there either.. it all shows 0

#

had no idea it's actually a spigot thing! I just found this in the spigot config

#

could that be the problem right there?

turbid tide
#

stop the server, enable that and start the server

#

it should start recording statistics now

forest swallow
#

works like a charm! thanks :>

tender vaporBOT
#
Hey!

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

turbid tide
#

use the latest dev build (119)

tawdry pecan
#

sry for ping

turbid tide
#

placeholders in nbt options were just added

tawdry pecan
#

Awsome! thanks, i will test it

turbid tide
#

πŸ‘

calm dawn
#

making an expansion, wondering how to properly return true/false so it's translated into the values set in the config yml boolean: 'true': 'yes' 'false': 'no'

turbid tide
calm dawn
#

perfect, thank you

sonic hound
#

placeholders not loading even though it says it is

#

wai

tawdry pecan
#

Someone an idea?

turbid tide
#

problem is that %armor_material_helmet% returns AIR. which is not supported in deluxemenus

#

what Id recommennd is you use the changeoutput expansion to check if its air and set it to barrier or something like that. or you can set view requirements. which would be even better since it would show as air if its air

tawdry pecan
#

But it does not work with the dev build. It worked before. :/

turbid tide
#

when yo uhad no armor it worked? it would just show air? because if it did then that was probably a bug or something.

#

and its not that hard to set up a view requirement

tawdry pecan
#

view requirement doesnt work. i get this error.

turbid tide
#
  '1':
    material: placeholder-%armor_material_helmet%
   # nbt_int: 'CustomModelData:%javascript_helmet_data%'
    slot: 1
    priority: 2
    hide_attributes: true
    update: false
    hide_enchantments: true
    view_requirement:
      requirements:
        not_air:
          type: "!string equals ignorecase"
          input: "%armor_material_helmet%"
          output: "AIR"```
#

like this ^

tawdry pecan
#

[12:32:19 WARN]: [DeluxeMenus] Plugin DeluxeMenus v1.13.4-DEV-119 generated an exception while executing task 351416 java.lang.NumberFormatException: For input string: "AIR" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?] at java.lang.Integer.parseInt(Integer.java:660) ~[?:?] at java.lang.Integer.parseInt(Integer.java:778) ~[?:?] at com.extendedclip.deluxemenus.menu.MenuItem.getItemStack(MenuItem.java:710) ~[DeluxeMenus-1.13.4-DEV-119.jar:?] at com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$5(Menu.java:386) ~[DeluxeMenus-1.13.4-DEV-119.jar:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Paper-384] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[patched_1.17.1.jar:git-Paper-384] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.17.1.jar:git-Paper-384] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?] at java.lang.Thread.run(Thread.java:831) ~[?:?]

turbid tide
#

no no.

#

what are you trying to do exactly

#

because rn you've put the view requirement on the wrong item

#

it should go on 1_1

#

and switch priorities arounnd

tawdry pecan
#

ahhh ok

#

Unfortunately, this does not work either.

#

same error

turbid tide
#

can you send the menu again inn a paste bin please?

tawdry pecan
turbid tide
#

did you remove item 1_2?

tawdry pecan
#

yes

#

So the release build has worked without problems

turbid tide
#

and you get the exact same error as here?

tawdry pecan
#

yes

tawdry pecan
#

Is there another possibility

turbid tide
#

which means DeluxeMenus is trying to parse the placeholder as a number somewhere

#

but not sure where

#

since you didn't set it as a slot or anything else

#

wait. @tawdry pecan can you try restarting the server?

#

this is line 710 .setTag(itemStack, parts[0], Integer.parseInt(parts[1]));

#

which means, the nbt option is still registered

tawdry pecan
#

Yes, but was there a change in the plugin? Because as I said, it works with the release build without error. Then Stone is displayed to me.

turbid tide
#

somewhere

turbid tide
#

but in the menu you sent you commented it out

#

so either its still registered for some reason or something weird is going on

#

its basically trying to set a custom model data with the number "AIR"

#

which obviously is not a number

tawdry pecan
#

okey understand. I will test it with a server restart

final swan
#

using command; /papi parse me %javascript_pwsponsor_1%

turbid tide
final swan
#

so it'd be /papi parse me %javascript_pwsponsor,1%

#

correct?

final swan
#

still returning blank :(

#

nothing in console either

turbid tide
#

ok. what engine are you using for javascript again? also what version of the javascript expansionm?

final swan
#

Expansion ver 1.6.0

#

And i don't have an engine specified

#

So i think it's the default then?

turbid tide
#

oh. why 1.6.0?

#

why not use the latest version of the expansion

final swan
#

I was trying to get it to work; and the developer i was talking with was using 1.6.0 at some point

turbid tide
#

what is your server version and java version?

final swan
#

1.17.1, Java 16

turbid tide
#

ok. you will need to update to latest version of the javascript expansion

#

which is like 2.1.0 I think

final swan
#

done so, although i can't reload papi due to some expansions breaking with it

#

again, i'll get back to you once it's applied!

#

thanks for the help

tawdry pecan
#

Oh shit. I still had a variable with the modeldata for the helmet open and not set with a "#". Now everything works... πŸ˜„

austere hawk
tawdry pecan
#

embarrassing 😬

austere hawk
#

Is it OS?

#

Might be able to contribute a few fixes to them if they are

final swan
#

yep yep!

#

sounds awesome

turbid tide
final swan
#

Really?

turbid tide
#

pinned messages

final swan
#

awesome

#

That fixes the fact that it breaks upon papi reload?

turbid tide
#

it should. yeah

austere hawk
#

It’s probably just missing the persists method

final swan
#

does it use the same placeholders?

turbid tide
#

yeah. it should. I'm pretty sure I Just fixed it breaking. thats all

#

btw @final swan. After you've made sure you're running the latest version of the expansion, I need you to go in PAPI's config.yml and find an option called use_quickjs or something like that. please make sure thats true and restart the server after

final swan
#

πŸ‘

#

Autorank expansion worked, ty!

final swan
#

Also, was the Statz expansion updated at some point?

turbid tide
#

No. Not that I know of at least

turbid tide
#

have you tried that one/

#

it should be just /papi ecloud downloat statz /papi reload to get the latest

final swan
#

yep

turbid tide
# final swan yep

and it does not work? do you get any errors/warnings on server startup?

final swan
#

Oh no, it just borks on reloading placeholderapi

#

Sorry, was a bit busy getting to work πŸ˜„

turbid tide
#

that's strange

timid fox
#

guys

#

i cant unregister my expansion

#

idk what is wrong

#

either with api or with command non works

#

(registered from the plugin)

#

Failed to unregister expansion: DiscordSRVUtils

lucid lance
#

hey. everytime my server restarts I have to /papi reload to make placeholders work.
I get this message on startup. ```yml
[15:03:37 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$6(LocalExpansionManager.java:383) ~[PlaceholderAPI-2.10.10.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:113) ~[patched_1.17.1.jar:git-Purpur-1427]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[patched_1.17.1.jar:git-Purpur-1427]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:128) ~[patched_1.17.1.jar:git-Purpur-1427]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:105) ~[patched_1.17.1.jar:git-Purpur-1427]
at java.lang.ClassLoader.loadClass(ClassLoader.java:573) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.10.10.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:359) ~[PlaceholderAPI-2.10.10.jar:?]

turbid tide
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.

lucid lance
#
[15:02:57] [Server thread/INFO]: [PlaceholderAPI] Loading PlaceholderAPI v2.10.10
[15:03:04] [Server thread/INFO]: [PlaceholderAPI] Enabling PlaceholderAPI v2.10.10
[15:03:04] [Server thread/INFO]: [PlaceholderAPI] Fetching available expansion information...
[15:03:04] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: ultimateautorestart
[15:03:05] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: insights
[15:03:05] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: spark
[15:03:09] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: guiredeemmcmmo
[15:03:20] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: cc
[15:03:21] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: ultracosmetics
[15:03:22] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: mycommand
[15:03:23] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: hdb
[15:03:23] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: deluxemenus
[15:03:23] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: tab
[15:03:23] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: pvpmanager
[15:03:25] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: goldencrates
[15:03:26] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: storestats
[15:03:28] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: CloudEtc
[15:03:29] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: mypet
[15:03:29] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: premiumvanish
[15:03:30] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: interactivechat
[15:03:32] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: cmil
[15:03:33] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: cmi
[15:03:34] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: CloudRankSystem
[15:03:35] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: hyperverse
[15:03:35] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: eglow
[15:03:35] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: pw
[15:03:35] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: plan
#
[15:03:37] [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$6(LocalExpansionManager.java:383) ~[PlaceholderAPI-2.10.10.jar:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
    at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
    at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
    at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:113) ~[patched_1.17.1.jar:git-Purpur-1427]
    at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[patched_1.17.1.jar:git-Purpur-1427]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:128) ~[patched_1.17.1.jar:git-Purpur-1427]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:105) ~[patched_1.17.1.jar:git-Purpur-1427]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:573) ~[?:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
    at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.10.10.jar:?]
    at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:359) ~[PlaceholderAPI-2.10.10.jar:?]
    ... 7 more
[15:03:37] [Server thread/INFO]: Done (45.544s)! For help, type "help"
turbid tide
lavish sail
#

Can anyone help me formatting the "%vault_eco_balance%" to #.###,## - Like showing money balance like in Europe.

turbid tide
#

formatter*

lavish sail
turbid tide
#

something like this

#

probably