#placeholder-api

1 messages · Page 194 of 1

turbid tide
#

what does this say?

austere hawk
#

also when i die it still keeps my killstreak at 1......

turbid tide
#

not your current killstreak

austere hawk
turbid tide
#

%combatstats_killstreak%

#

use this

austere hawk
#

and it says 0 now

turbid tide
#

@placid scarab check your config.yml.

#

make sure placeholderapi option is enabled

#

and restart the server

austere hawk
placid scarab
turbid tide
austere hawk
turbid tide
#

that's the one

#

for current

turbid tide
austere hawk
placid scarab
#

okey bro

turbid tide
#

this returns your current killstreak %combatstats_killstreak%

#

the first one doesn't return your top killstreak. it returns your placement in the leaderboard

austere hawk
#

i want current

turbid tide
#

that's what the second placeholder is for

turbid tide
austere hawk
#

OOHHHH

turbid tide
#

in the top

austere hawk
#

OKKK

turbid tide
austere hawk
#

okay this is bad and needs fixing quick because now people are joining my server with no rank..#

austere hawk
turbid tide
#

well actually it was both

#

I just took one of them

#

what does /papi parse me %combatstats_kills% return?

austere hawk
#

1 which is how many i ave

turbid tide
#

and in your scoreboard it doesn't work?

#

or what exactly is the problem?

austere hawk
#

i hate the imgur thing

#

i have to send sooooooooooo many

turbid tide
#

I think you're not understanding what the placeholders do

austere hawk
austere hawk
turbid tide
#

ok. I'll try.

austere hawk
#

thank you

turbid tide
#

can you try puting a name there instead of {player_name}?

#

like your name

austere hawk
#

ok i also removed playername just to try and nothing happens

#

so just {Zxnus}

#

or

turbid tide
#

without the {}

#

so just Zxnus

austere hawk
#

but how do i do it for all players

#

is the question

turbid tide
#

IC. I found the problem. I'll send you an updated plugin jar in a second

austere hawk
turbid tide
#

I'm trying. having some problems actually compiling it

austere hawk
#

when i do /tab reload it gives no errors in console

austere hawk
turbid tide
#

@austere hawk I recommend you remove combat stats for now.

#

I can't get it to work and it might take a while

austere hawk
turbid tide
#

if you want to give it a try

austere hawk
turbid tide
#

its an updated version

#

%combatstats_placement_killstreak_{player_name}% should work now

austere hawk
#

i mean fine ill try it i guess

restive forge
#

Hey i got an error but cant post an Link from hastebin 😄
java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.ConfigurationSection.getKeys(boolean)" because the return value of "me.gabytm.placeholderapi.config.ConfigExpansion.getConfigSection(String)" is null

sharp jay
#

?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

restive forge
#

ok.. nevermind after pasting it on the side i see the "config expansion".
After this i remember i forget to remove it in the Expansion folder .. 🤦‍♂️

prisma torrent
#

I have a question regarding interaction with the menus using middle-click. I have a shop menu with a middle-click function which works in creative mode but not in survival. What might be the cause of this?

turbid tide
prisma torrent
#

Alright, thanks.

austere hawk
tender vaporBOT
turbid tide
austere hawk
mental night
#

i think its in the placeholderapi config.yml

#

date_format: MM/dd/yy HH:mm:ss

#

@austere hawk in config.yml

#

you mean translation wise?

#

ahh oka

#

not too sure i know its possible as ive seen it before

mighty mesa
#

I was trying to add papi to my pom

#

for a plugin, and I got this

Blocked mirror for repositories: [clip-repo (http://repo.extendedclip.com/content/repositories/placeholderapi/, default, releases+snapshots)]

Since Maven 3.8.1 http repositories are blocked.

Possible solutions:
- Check that Maven pom files do not contain http repository http://repo.extendedclip.com/content/repositories/placeholderapi/
- Add a mirror(s) for http://repo.extendedclip.com/content/repositories/placeholderapi/ that allows http url in the Maven settings.xml
- Downgrade Maven to version 3.8.1 or earlier in settings```
runic vale
#

hello

#

i am creating a server with my friends and i want to add a top deaths scoreboard. I am using RealScorboard

#

But i dont know how i should do

livid falcon
#

The wiki will help you do the rest

worldly fjord
zenith zealot
#

is there a player effect placeholder

zenith zealot
#

ty

stark shard
#

How would i make a placeholder for a plugin with Skript?

vivid sparrow
#

You don't

turbid tide
#

thank you gaby

rotund pendant
vivid sparrow
#

anytime blitz

stark shard
tender vaporBOT
# stark shard wym?
Hey!

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

tender vaporBOT
# stark shard wym?
Hey!

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

vivid sparrow
#

Literally that

stark shard
#

Is it impossible, or is there a reason why I shouldn't

#

what if there is a placeholder I want but isn't available

#

I heard some ppl do it

turbid tide
#

impossible

stark shard
#

Idk how someone else made then but okay

#

If I were to make placeholders for another plugin, would I need to make another plugin or edit that plugin?

turbid tide
#

you'd need to use java/kotlin/other jvm language to make an expansion

stark shard
#

okay

#

ty

edgy sapphire
#

Hey, I'm getting this error after a server restart, I always need to reload the plugin to fix it, how to fix this issue so I would not reload the plugin?
https://paste.helpch.at/corusasahi.sql

turbid tide
#

if not then it might just be one of your expansions that's broken and breaks the loader so maybe delete the expansions and read them 1 by 1 until it starts doing it agai

dense saddle
#

does papi work with java 8

rare tangle
#

is there a way to make the string a placeholder returns all uppercase

#

like

#

%player%

#

but all uppercase

sharp jay
#

%player_name%

rare tangle
#

not player specifically

#

i meant like any placeholder in general

stark shard
#

Probably not

turbid tide
#

/papi ecloud download string then /papi reload and use %string_uppercase_<string>%

#

for example %string_uppercase_{player_name}%

austere hawk
#

Hello, is it possible to create a stats for multiple players with deluxemenus like (/stats <offlineplayer>)

rotund coyote
#

Hello,
is there a placeholder for the blocks placed and for the number of sheep sheared?
I do not find anything :/
Thanks

wide wolf
#

hello, how can i change the lanuguage of essentials placeholders (for example %essentials_kit_is_available_<kitname>% or %essentials_afk%)

I changed in config of essentials language to polish but this placeholders are still in english - how can i change it???

(for example this placeholder: %essentials_kit_time_until_available_<kitname>% is in polish so i dont know whats wrong...)

simple musk
#

is there a placeholder that returns your slot #?

rotund coyote
# buoyant tide Statistic expansion

I looked in the statistics but I couldn't find anything for the blocks placed/ crops placed and for the shearing of the sheep :/.
I manage to bring out the data for broken blocks , crafts, etc....
But these 3 actions I can't find a placeholder... :/

turbid tide
turbid tide
turbid tide
#

then you can use the checkitem expansion

turbid tide
#

so you can look there see if you find one but I couldn't find any other ones myself

simple musk
#

1-9

turbid tide
#

ahhh. hmm wonder if you can even do that in spigot. don't know any placeholders. sorry

#

hmm seems to be possible. at least on latest. just no placeholder I can find on the wiki

rotund coyote
tender vaporBOT
rotund coyote
#

Oops sorry

#

Thank you very much, I will look into it in more detail

turbid tide
#

👍

dusty jasper
#

Hi all

#

Someone can help me with this warnings?
[10:56:45 WARN]: [PlaceholderAPI] Loaded class me.clip.ezblocks.EZBlocks from EZBlocks v1.5.0 which is not a depend or softdepend of this plugin.

#

I got several

turbid tide
#

its bcz some expansions (in this case the ezblocks) one is accessing data from another plugin

#

which is EzBlcoks.

dusty jasper
#

Okay

#

Another question

#

For dev stuff i use ServerUtils to reload my core

#

And after i do that, all the placeholder stop to work

turbid tide
#

yeah. its really not recommended. you should restart the servers instead.

dusty jasper
#

I've created a class in my core that extend PlaceholderExpansion

#

In 1.8 works and in 1.18 it doesn't?

#

We're going ahead or behind?

turbid tide
#

serverutils is not "going ahead". like the plugin does some weird stuff to do the reload. not even normal /reload is recommended.

#

does it break on /papi reload tho?

#

if it does just override the persist method and make it return true

#

Please note that reloading may not be compatible with each and every plugin! Plugins which depend on a reloaded plugin, are likely to be error-prone for reloading. Improper cleanup, or improper startup practises may break plugin (re/un)loading as well. Please be careful!
this is on server util's page btw.

#

well now that I read it, its not really the best thing I could come with

#

xD

dusty jasper
tender vaporBOT
turbid tide
#

right. but you're saying that specifically supporting serverutils is "going ahead" which is completely wrong?

dusty jasper
#

i'm talking in general

#

In 1.8 there's 0 error

#

No problem with serverutils

#

And no warning

#

now in 1.18 warning and no serverutils

#

That's what i'm saying

#

And the last version of placeholderAPI is of 6 months ago

turbid tide
#

you can "blame" spigot for those. they're literally just telling you that a plugin is loading stuff from another plugin. In this case your EzBlocks expansion (which is considered part of PlaceholderAPI) is loading stuff from the EzBlocks plugin (which it needs so it can get the data to display placeholders?).

#

this warning was probably added at a later version by spigot

#

its not a warning added by PlaceholderAPI

dusty jasper
#

From what i know

#

Spigot can't add the prefix of a plugin randomly

turbid tide
dusty jasper
#

Don't come with those excuses now bro xd

turbid tide
#

check the github repo. its getting updated.

#

excuses for what? I gain nothing from this

dusty jasper
#

exact

#

So what's the point to find excuses

#

If there's no stable version means that they are doing something

turbid tide
#

excuses for what exaclty?

dusty jasper
#

But it's still not working properly

#

Or not secure enough

#

ANd it's fine

#

I'm not saying that's a problem

#

The problem is that idk why but from 1.8 to 1.18 it's no longer working

#

But writing here will not solve anything

turbid tide
#

not exactly... it just means that they're waiting for more stuff to pile up so they drop a bigger update. dropping a few lines of text changed update every day is not something we really want to do?

dusty jasper
#

So i will stop waste your time, i was just curious

turbid tide
#

I mean if you really think its a problem don't heistate to open a issue on github

dusty jasper
#

Hope it will get support for serverutils in the future

turbid tide
#

hesitate*

dusty jasper
#

It's sure a problem, reloading the full server for every test means losing 500% of time

#

Just bc who knows what placeholderAPI does

turbid tide
#

but do you know what ServerUtils does?

#

Spigot was literally not made to be reloaded.

#

and paper even warns you when you do /reload and makes you do it twice

#

its something very well documented and known. a few googles would probably find a few spigot posts explaining it

dusty jasper
#

test != real server

#

test server = you can do what you want

#

and stopping me from fast reloading changes is a bullshit

turbid tide
#

once again I don't work on the plugin. so open an issue and a developer will give you an answer

dusty jasper
#

It's fine

turbid tide
dusty jasper
#

Thanks for your reply

turbid tide
turbid tide
# dusty jasper test != real server

yeah. but that doesn't stop stuff from breaking. it doesn't just see its a test server and says "now the reload command can just work". I mean PAPI has a reload command itself. if you want to reload expansions do that. and for your core you should have a reload command if you want that reloads stuff safely

cold temple
carmine notch
#

Hello

#

how to do hologram player money list ? 😄

pliant pulsar
#

I think there is a bug with this placeholder -> "%statistic_mine_block%" when I mine any block it adds 1 to the counter, but if I mine stone it turns into rock and counts as 2 mined blocks when it should really be 1, no?

rare tangle
#

is there a placeholder to check how long a player has been on a certain world?

rugged widget
#

after restarting the server it forgets what extentions i installed

rugged widget
#

[20:36:05 WARN]: [PlaceholderAPI] Task #12342 for PlaceholderAPI v2.11.1 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.

tender vaporBOT
bold charm
#

anybody knows why when i tried to use %server_tps% or %tps% placeholders into TAB PREMIUM plugin of Neznamy, placeholder prints me 3 times the tps?

orchid thistle
#

hello

#

?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

orchid thistle
#

What command should i use to remove a specific amount of item from the inventory to the user ? and what placeholder should i check for the amount of the item ?
https://paste.helpch.at/zisujomibe.bash

#

im using deluxemenu and checkitem PAPI

orchid thistle
#

omg im so st*pid, al my requirements had the same name xd

zenith zealot
#

is there like an item placeholder

turbid tide
# bold charm anybody knows why when i tried to use %server_tps% or %tps% placeholders into TA...

the placeholder prints the values at 3 different times. iirc its 1 minute, 5 minutes and 15 minutes. or it might just be seconds. there's placeholders to get the values for all of those separately:

%server_tps_1%
%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%``` first 3 just get it normally and the other 3 get it and also color it.
turbid tide
bold charm
#

@turbid tide sorry, i meant when i use those placeholders in a bungeecord or waterfall environment, it prints 3 different tps on the same line

tender vaporBOT
bold charm
#

sorry, i meant when i use those placeholders in a bungeecord or waterfall environment, it prints 3 different tps on the same line

turbid tide
#

Ugh. PlaceholderAPI doesn't support bungeecord? not sure how you're using it there

rugged widget
#
java.util.concurrent.CompletionException: java.lang.NullPointerException
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI-2.11.1(1).jar:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.NullPointerException```
turbid tide
rugged widget
#

These are the ones i use [17:41:55 INFO]: A total of 23 placeholder hook(s) are active: auctionhouse, bountyhunters, broadcastplus, bungee, chatmanager, cmil, combatplus, crazycrates, ezcolors, jobsr oreannouncer, plan, player, robottags, rosestacker, server, spark, supervanish, tab, townyadvanced trademe, vault, vulcan

bold charm
#

I´m put the Placeholder API on all of my paper backend servers, i'm not put them on the proxy

#

The TAB plugin is on the proxy and i put the TAB bukkit-bridge on my backend servers as the author says on the wiki

#

But i can´t resolve that bug on %tps% placeholder

elder palm
#

I guess there's your answer. %tps% is an internal placeholder from tab, not placeholder api and therefore will most likely glitch out or even parse it for all servers connected within the bungee, using the bridge. so my guess is you got 3 that fit the criteria

covert tinsel
#

Hi, I'm looking to add a permission that only activated at certain times of the year through contexts. I'm planning on using the ExtraContexts addon for LuckPerms and PlaceholderAPI placeholders, but I was looking at the "server_time_X" placeholder, and I was curious how I would make it so the placeholder would define a period of a month instead of one date, or do I have to add a placeholder for each day of that month? Any help is greatly appreciated!

austere hawk
#

So you'd do %server_time_M% to get 3

#

or well, 5 since its may

covert tinsel
austere hawk
#

can you give a better example?

covert tinsel
austere hawk
#

Yep so what you could do is
%server_time_M%, then check if that equals to 5

#

and if it does, then you're in may

#

Not sure if you can run checks like this with ExtraContexts

#

oo yep you can

covert tinsel
austere hawk
#

You'd put this in your ExtraContexts config

placeholderapi-placeholders:
  month: "%server_time_M%"
#

Then in your luckperm context you'd probably do like month=5

covert tinsel
#

Ok, thanks, I’ll start adding this to my server, thanks for your help 🙂

austere hawk
#

yeah np

covert tinsel
# austere hawk yeah np

Hi, sorry to bother you again, but would “%server_time_MMMM%” work if I wanted to set December as the month in the context? Thanks again for your help!

austere hawk
#

yep that should work

#

I think numbers are easier to work with though imo

#

but, whatever fits your use case haha

covert tinsel
#

Yeah they are, just want to make sure there’s no prob going from single digit number (like 5) to a number with two digits (like 12)

austere hawk
#

There shouldn't be any

#

You could also use MM

#

which would make 5 into 05

covert tinsel
#

So 12 would still work under M, or would it need MM

austere hawk
#

No it should work with just M

covert tinsel
#

Ok, and MM would make 12 012 or smth

austere hawk
#

Nah would be just 12

covert tinsel
#

Ok, thanks, I’ll give that a try

covert tinsel
# austere hawk Nah would be just 12

Hmm, I’ve set the extra context to the permission, but it doesn’t seem to be doing anything, does ExtraContext need to be installed on Bungee and Spigot? And if so is there a specific Bungee version? Thanks again for your help 🙂

austere hawk
#

But I know you can't have placeholderAPI on bungeecord, so

#

What you could do is link all your luckperm plugins with a database, then put extra context on each of the spigot servers

#

and it should carry through throughout the whole thing

covert tinsel
austere hawk
#

np

nova ether
#

Hello, I downloaded Heroes-expansion, but noone placeholder works, example : %heroes_main_class_name%

#

I already used Statistic, Vault etc.. But this one doesn't show

pliant pulsar
#

But I need only the date "03/12/22" and in my country format, is it possible?

mint fable
#

what about %player_first_played% %player_first_join% %player_first_played_formatted%

pliant pulsar
#

tested

mint fable
#

prob easiest to use js

#
var date = new Date("%player_first_join_date%")
date.toLocaleDateString()

maybe

pliant pulsar
#

How do I use it as a placeholder?

mint fable
#

you gotta download and use the javascript expansion

#

and make that a script

tender vaporBOT
#
Javascript
Useful Links & Information:

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

pliant pulsar
#

2022-03-12

mint fable
#

day/month/year is what you want?

pliant pulsar
#

yes!

mint fable
#

might be easiest to just disect it then

#
date.getDate() + "/" + date.getMonth()```
#

to start

nova ether
#

API for Heroes doesn't work for me, can someone help?

mint fable
pliant pulsar
#

A friend of mine told me that by editing the date in the PlaceholderAPI config I can do it easily, I didn't remember that xD

mint fable
#

I looked for that

pliant pulsar
mint fable
#

ah smh

#

it's not under the player expansion

#

it's just date:

#

smh

pliant pulsar
#

check this

mint fable
#

sick

#

a lot easier

pliant pulsar
#

xD

#

papi god

mint fable
#

@nova ether type /papi parse me %heroes_main_class_name% in chat

#

does it work?

nova ether
#

it types %heroes_main_class_name%

mint fable
#

?startuplog

tender vaporBOT
#
FAQ Answer:

Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.

mint fable
#

can you send that over

#

Also, you said you downloaded the expansion jar

#

from where?

#

the spigot page?

nova ether
#

Nah I used command, /papi ecloud download Heroes

#

Do I send you log here?

mint fable
#

try the one from the spigot page instead

#

you can send it in a paste

#

but it looks like the one on the ecloud is different from the one on the spigot page

#

probably better

nova ether
#

Can you send me the link?

mint fable
#

all the placeholders are also listed on the spigot page for that one

#

bit different from the other one

nova ether
#

Sir

#

Thank you so much ❤️

austere hawk
#

%math_{Hub-1}+{Hub-2}%
Does anyone know why this doesn't work? I wanna get combined number of players from multiple servers

plush dove
#

how could i use a % sign in a placeholder?

sharp jay
#

wym

vivid sparrow
#

if you are talking about math placeholders, it is [prc] I believe

tired wharf
#

MiniMessage support is coming in v3?

nova ether
#

Does anyone know how to restart statistics?

vivid sparrow
nova ether
#

If I delete playerdata folder, nothing bad will happen?

#

or stats

#

I mean If I delete the folder, it will automatically make new one or?

uncut matrix
#

Hey, I want to make a javascript placeholder which returns the current time in unix. But all I get is like 1.652523635E9 which won't work with timestamp in discord. https://paste.helpch.at/oqibuvagub.js

Edit: Fixed it

plush dove
# sharp jay wym

Like inside the changeouput placeholder, I want it to output the text %

#

Basically I want the changeoutput placeholder to be able to output text with the percent sign in it

mint fable
#

you can try using the ascii expansion inside the changeoutput one

plush dove
#

oh ok thanks

drowsy jackal
#

How can I divide the %player_health%

#

amount to make it display only hearts not half hearts

mint fable
#

%player_health_rounded% maybe @drowsy jackal

drowsy jackal
mint fable
#

what does it show

#

and what do you want to show

drowsy jackal
#

a 0

drowsy jackal
#

if im at max health

#

not 20

mint fable
#

so %player_health% and %player_health_rounded% both return 20?

drowsy jackal
#

%player_health_rounded%

#

shows 0

#

and so does player_health

mint fable
#

what shows 20

drowsy jackal
#

for TAB

mint fable
#

okay, so you're saying shows 0

#

can you test it with /papi parse me %player_health% %player_health_rounded%

#

and tell me if it still returns 0

drowsy jackal
#

it just says

#

%player_health% %player_health_rounded%

mint fable
#

you need to install the expansion

#

run those commands and then parse it again

drowsy jackal
#

20.0 and 20

mint fable
#

install that one

drowsy jackal
#

done

mint fable
#

if they have 9.5 hearts do you want it to say 9.5?

drowsy jackal
#

9

#

or just rounded

mint fable
#

%math_0:{player_health}/2%

#

see if that works

drowsy jackal
#

it works!

static zenith
#

Hello!
How i can take permission for player but he are offline

#

i test papi: OtherPlayer , ParseOther, but nothing if player off

vivid sparrow
#

try luckperms if you are using it

turbid tide
#

fairly certain their placeholders do not work for offline players

vivid sparrow
#

welp

tender vaporBOT
# static zenith 😢
Hey!

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

plush dove
#

How could I make a changeoutput placeholder where it compares the first thing to multiple texts?

#

like this: %changeoutput_contains_{checkitem_getinfo:40_mat:}_BEETROOT\_SEEDS OR POTATO OR CARROT OR WHEAT\_SEEDS_ADD_SET%

#

Trying to check if the offhand item is BEETROOT_SEEDS, POTATOES, CARROTS, or SEEDS

mint fable
#

probably just want to use javascript at that point

tender vaporBOT
#
Javascript
Useful Links & Information:

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

plush dove
#

Sorry, had to go, could I use javascript like a placeholder in another plugin that supports PAPI?

turbid tide
#

yeah. with the Javascript expansion

plush dove
#

ah alright

turbid tide
#

you can create your own custom placeholders that execute a javascript script

plush dove
#

😭 I have no clue how to do this

#

I've been looking at it and i know not one thing of java script coding

tender vaporBOT
#
Javascript
Useful Links & Information:

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

turbid tide
#

might want to take a look at the links above this

#

specifically the first 2 ones

plush dove
#

I have 😭

#

This would require you to know basic javascript, which I dont unfortunetly

turbid tide
#

well that's what the "javascript" expansion is for xD

plush dove
#

well I think I have a way to do what I need without it

#

But I do have another odd issue

#

so I have this placeholder: %changeoutput_equals_{checkitem_getinfo:40_mat:}_WHEAT\_SEEDS_SET_ADD%

#

Which should check the offhand item, and see if it's WHEAT_SEEDS, and if it is, then give me "SET", and if it isn't, give me "ADD", correct?

turbid tide
#

yeah.

plush dove
#

I have COOKED_PORKCHOP in my offhand yet it's still giving me SET

turbid tide
#

/papi parse me {checkitem_getinfo:40_mat:}

#

what does this return?

#

oh 1 sec

plush dove
#

Change it to %?

turbid tide
#

/papi parse me %checkitem_getinfo:40_mat:%

#

yeah

#

when you have the cooked porkchop

plush dove
#

sad

#

cant even send a picture

tender vaporBOT
turbid tide
#

hmm.

plush dove
#

but cooked_porkchop but all caps

turbid tide
#

I saw your message

#

yeah

plush dove
#

so it works fine there

turbid tide
#

can you try something like this: /papi parse me %changeoutput_equals_TEST_WRONG\_ANSWER_SET_ADD% and then /papi parse me %changeoutput_equals_TEST_WRONG_SET_ADD%

plush dove
#

First one gave me "ADD"

#

Second one also gave me "ADD"

turbid tide
#

so these do work fine. hmmm

plush dove
#

maybe I have to escape the underscores in the {} placeholder?

turbid tide
#

that shouldn't be the case. let me double check the source code tho

plush dove
#

bruhh

#

that fixed it

turbid tide
#

oh was it that? I thought it parses the placeholders first

#

then splits the arguments

#

yeah I was wrong. it doesn't

#

it splits first

#

so basically it was taking {checkitem as one argument then getinfo:40 as another and then mat:} as another

plush dove
#

👍 got it, thanks

#

im back

#

%changeoutput_equals_{checkitem\_getinfo:40\_mat:}_CARROT_SET_ADD% should check my offhand for carrots, and if it is, then output as "SET", right?

#

It gives me "ADD" even though my offhand is carrots

#

I ran /papi parse me %checkitem_getinfo:40_mat:% and it gave me CARROT

#

I ran /papi parse me %changeoutput_equals_{checkitem\_getinfo:40\_mat:}_CARROT_SET_ADD% and it gave me ADD though

#

... I removed the \ from the {} placeholder and it works fine then

#

I'm so confused

turbid tide
#

if no one is answering I'm going to be taking another look in like 15-20 minutes. not doing very well rn

plush dove
#

ah, your fine. I think I can figure it out on my own with some testing. I'll let you know how it goes

#

ok so, doing %changeoutput_equals_{checkitem\_getinfo:40\_mat:}_WHEAT\_SEEDS_SET_ADD% with the forward slashes doesnt correctly check even if I have wheat seeds. It always gives me ADD. Doing the placeholder without the forward slashes always gives me SET, even if having wheat seeds or another item. The only time it works properly without the forward slashes are when I don't have anything in my offhand

turbid tide
#

ok so I'm not feeling very well today and I just double checked and I was completely wrong. the \ in the bracket placeholders should not be needed at all

plush dove
#

😬 I'm sorry to keep bothering you then, but if I remove the \ then anything I hold in my offhand is considered wheat_Seeds

#

no wait... Only cooked_porkchop does it

#

nvm, a lot of stuff do it

#

But oddly enough, carrots, potatoes, and wheat work normally

turbid tide
#

you might want to try something like this:

#

%changeoutput_equals,ignorecase,ignorecolors_{checkitem_getinfo:40_mat:}_WHEAT\_SEEDS_SET_ADD%

plush dove
#

nope, still gives me SET with cooked_porkchop

#

and the text is in full caps, white color

turbid tide
#

this confuses me a lot. anyways I think I could just give you the javascript code. should be just some simple if checks

plush dove
#

pretty sure theres already a community java script that checks for items

turbid tide
#

yeah. that's basically the precedent for checkitem expansion

#

But I'm saying use the javascript expansion as an alternative of changeoutput.

#
function checkItem() {
  if ("%checkitem_getinfo:40_mat:%" == "COOCKED_PORKCHOP") {
    return "SET";
  }

  return "ADD";
}```
plush dove
#

ah ok. is that all thats needed?

turbid tide
#

yeah. you need to set it up first in javascript_placeholders.yml and then in plugins/PlaceholderAPI/javascripts/

#

the wiki should tell you how to create a javascript placeholder step by step

tender vaporBOT
#
Javascript
Useful Links & Information:

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

plush dove
#

alright, thank you very much! sorry for all the trouble I've caused

turbid tide
#

you've caused no trouble at all. I'm here to help

plush dove
#

whenever I do /papi parse me %javascript_change%, it just gives me a blank text in chat

turbid tide
plush dove
turbid tide
plush dove
#

Yep I have

turbid tide
#

oh yeah that's my bad

#

I forgot to call the function

#
function checkItem() {
  if ("%checkitem_getinfo:40_mat:%" == "COOCKED_PORKCHOP") {
    return "SET";
  }

  return "ADD";
}

checkItem();```
plush dove
#

pog it works! ❤️

turbid tide
#

alright. and how do you want these all to work? do you want to check if its X or Y or Z? or just check if its X?

plush dove
#

confusion

#

was that directed towards me?

plush dove
#

ah, well basically I was trying to make a custom enchant that replants crops when harvesting them, but if the offhand item is a specific crop then it would plant that crop. So if you had nothing in your offhand and you broke carrots, it would plant carrots. But if you had potatoes in your offhand, it would plant potatoes

#

well, overall, I spent far too long on something extremely dumb and nobody would use 😂

turbid tide
#

well awesome for this. not in general tho xD

plush dove
#

I actually use the changeoutput placeholder in so many places, javascript will definetly help :D

cobalt cave
#

So im using a formatter inside a formatter what would I use when doing %{3rd placeholder}%

plush dove
#

Can you access api from other plugins in JavaScript

wind panther
#

Can placeholder api have bungee support/can be installed on a Proxy?

sand dagger
#

Can't find it anywhere

#

Where is the average tps and tps rounded tho

turbid tide
#

%server_tps%
%server_tps_1%
%server_tps_5%
%server_tps_15%
%server_tps_1_colored%
%server_tps_5_colored%
%server_tps_15_colored%

sand dagger
#

Alrighty thank you

turbid tide
#

it will only return it rounded I believe

sand dagger
#

%server_name% isn't returning the correct name

turbid tide
#

its returning the name you set in plugins/PlaceholderAPI/config.yml

sand dagger
#

Ah okay

#

Does the Bungeecord server name return still exist under a different expansion than Bungeecord or no?

turbid tide
#

no

crude yew
#

Hello, once in a few server restarts I get this error on my server. What could be the issue? Other times everything loads up fine.
Here's what happens when PAPI breaks:
https://pastebin.com/raw/McpgBfBB
AND here's what happens when it loads up normally with nothing changing on the server:
https://pastebin.com/raw/PUw2VNjR
Any help please?

turbid tide
astral python
#

hello I have a little problem with my api i try to be the api kill stats on my tab but its does not work it downloads but it does not appear in the list of papis is normal?

turbid tide
#

this is the case for the KillStats expansion

astral python
#

it takes an extension for its work it is possible to have the name or the link?

turbid tide
#

usually if the name is blue on the wiki it means that there's a plugin required. you can click on the name for it to open the link to the download page

#

anyways. the killstats plugin was not updated in years

#

you might want to get a newer plugin

#

like CombatStats

astral python
#

1.17

#

I'm in 1.18.2

turbid tide
#

should work afaik

#

you can try it tho

astral python
#

and what it is compatible with skript?

#

its doesn't seem to work too much

turbid tide
astral python
#

instead of what?? combat stats

turbid tide
#

oh. I Might've misunderstood your question

turbid tide
astral python
#

in fact it is a scoreboard that and made in skript on my other servers its works the api but not the one the

#

in fact I want to use the api killstats I implant it in my code but its does not work I have the plugins combat stats sa still does not work I do not know why I use skript for my scoreboard I do not know if it is the cause or not

turbid tide
#

you don't need to use the killstats expansion anymore

#

if you use combatstats, you use their expansion

astral python
#

I just told you that there is the extension but its does not work

crude yew
tame light
#

are you dumb or are you doing it on purpose? have told you that we have the extension but it does not work. not complicated to understand if?

astral python
#

I can't be a photo otherwise I would have directly shown what I had

turbid tide
astral python
#

you speak french ??

crude yew
turbid tide
tame light
#

okay let it go, have you managed

astral python
#

me ?

turbid tide
tame light
#

extention doesn’t work

turbid tide
#

its built inside the plugin

#

you don't need to download anything else

#

just the plugin itself

astral python
#

nothing actually works

turbid tide
#

do you have CombatStats installed on your server?

astral python
#

yes

turbid tide
#

if yes try this command: /papi parse me %combatstats_kills%

#

what does this command say? it should return a message in chat

astral python
#

0

tame light
#

1

turbid tide
#

ok so the placeholder works. now you use these placeholders in Skript. at least I believe Skript supports PlaceholderAPI

turbid tide
# turbid tide

there's multiple placeholders. you can see them listed here

#

or on the spigot page

tame light
#

yes its function but when we want to use the extention it does not work

astral python
turbid tide
turbid tide
tame light
#

%combatstats_kills%

turbid tide
# tame light 1

I'm not sure how Skript works. The placeholder works as you've mentioned above so my assumption is that Skript either doesn't support PlaceholderAPI or it uses a different format for them.

tame light
#

on my screen that I sent you is HolographicDisplay which is use

turbid tide
#

I believe it is {papi: combatstats_kills} but let me double check

#

yeah

crude yew
#

Is there a means to get information on the placeholders of an expansion if an expansion has no documentation?

turbid tide
turbid tide
#

so if its not on this link and not on their wiki/spigot page then not really

crude yew
#

Okay, thank you!

turbid tide
turbid tide
plush dove
#

I did /jsexp parse me <code>, and it returned carrot, which is what it should do

#

but if I do /papi parse me %javascript_block%, it returns air

turbid tide
#

send your javascript_placeholders.yml file in a paste bin

plush dove
#

yuppp, thats the issue

#

I thought I added it to the file already

#

haha.. thanks!

plush dove
#

I'm trying to make a javascript where theres an argument, and it checks if that argument equals something, and return text if it does

#

I was trying to base it off of the community javascripts

turbid tide
#

as long as you use it correctly

plush dove
#

REALLY?!

#

well

#

theres an error

#

hold on

turbid tide
#

might be bcz of this var crop = POTATOES;

#

might want to make it var crop = "POTATOES";

plush dove
#

kk

turbid tide
#

since it probably doesn't find a variable named POTATOES

plush dove
#

it works 0_o

#

did not expect it to

#

thank you so much

turbid tide
#

yeah. strings need to be declared in quotes

#

otherwise they're variables

#

and you have no variable called POTATOES

plush dove
#

👍

novel socket
#

Heyaaa! So I am using Mc 1.18.2 and papi 2.11.1 . But Everytime the server restarts or startup papi seems to stop working and only works after /papi reload. Can someone help me out with this issue?

manic sedge
#

Could you please tell me you solved this problem? I have the same problem as you. I am using papi 2.11.1 too. And i tried to use akarin 1.12.2 and purpur 1.18.2(1623) as server software. i tried to use dragonwell and zulu as jvm. This problem always happened.

manic sedge
#

incomprehensible error.. pls let me know if you solve it, thanks :)

cyan canopy
#

The placeholder https://api.extendedclip.com/expansions/scoreboardtags/ seems not to be working because it returns just the placeholder. I see it is made by Glare, an admin here, so I hope he or someone else here can help me out 😄

Steps:

  1. /minecraft:tag Itz_Robinnn list
    feedback: Itz_Robinnn has 1 tags: KeyIngeleverd

  2. /papi parse Itz_Robinnn %sbtags_has_tag_KeyIngeleverd%
    feedback: %sbtags_has_tag_KeyIngeleverd%

turbid tide
# novel socket Heyaaa! So I am using Mc 1.18.2 and papi 2.11.1 . But Everytime the server resta...

just seems like one of your expansions is broken. go to plugins/PlaceholderAPI/expansions/ and remove all expansions, restart and see if it happens. If it doesn't, then add half of the expansions back, restart and see if it happens, if it doesn't repeat. if it does then the expansion is in the half that you've just added so remove half of the half you just added and restart. if it still happens repeat if not you've found the expansion

turbid tide
turbid tide
#

now we can make sure its not b by you just doing /papi dump and sending the generated link here

cyan canopy
turbid tide
#

and then send it here

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.

#
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

turbid tide
#

read the above ^

cyan canopy
#

Failed to load expansion class ScoreboardTagsExpansion - One of its properties is null which is not allowed!

#

hmm

turbid tide
#

yeah. I assume its the version. this might be a plugin messing with the ClassLoader. or idk what else tbh

#

yeah it is the version. it says it

cyan canopy
#

So, no 1.18.2 support yet?

turbid tide
#

can you try updating paper to latest development build? Its most likely not going to fix it but its worth a try

turbid tide
#

but rather with the actual expansion's version

cyan canopy
#

Ah, okay, then I'll have to check with my colleague. He manages the version we run our server on

turbid tide
#

it uses reflection to get set the version itself. and so I believe that if there's a plugin or something like that that messes with the class loader the expansions that use this will just break

turbid tide
#

I could just give you custom jar where I make the version a fixed string, or you could try removing some plugins to see if it works like that. or just PlaceholderAPI and the expansion itself on the server

languid vessel
#

16.05 09:42:35 [Server] ERROR [PlaceholderAPI] Failed to load expansion class ScoreboardTagsExpansion - One of its properties is null which is not allowed!

#

how do i fix this error

turbid tide
#

we are just talking about this. above. it might be a plugin that messes with the class loader

languid vessel
#

what is that

turbid tide
languid vessel
#

sure

cyan canopy
#

Okay so presumably the ScoreboardTags expansion conflicts with another plugin and therefore doesn't work. What I can try is 1) update server to new paper version, 2) investigate with which plugin it conflicts and see if I can spare that plugin 3) buy a custom expansion

turbid tide
#

you don't need to buy it. I can just make 1 in a few seconds. the problem is that there's many expansions using the same system that you might want to use in the future and that won't work

#

for the same reason

#

just go to plugins/PlaceholderAPI/expansions and replace the current Expansion-ScoreboardTags.jar with this jar

#

and then restart

cyan canopy
#

Oh how wonderful! Even though that may conflict again in the future? So the most sustainable solution is to try option 1 first?

turbid tide
#

well this exact expansion no. unless you use another version of it. but others yeah

#

well first, will most likely not fix but you can try. seconds is probably best

cyan canopy
#

hahaha, you have already made it! Thank you, I'll try it right away!

languid vessel
turbid tide
languid vessel
#

aight

#

btw

#

[Server] WARN [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend or softdepend of this plugin.

turbid tide
#

you can ignore those

languid vessel
#

is this causing

#

like players arent able to use milk

turbid tide
#

nahh

languid vessel
#

k k

cyan canopy
#

Update: it works!!! 😃 🥳
Thank you so much!

radiant plaza
languid vessel
#

WARN [PlaceholderAPI] Loaded class com.bencodez.votingplugin.VotingPluginMain from VotingPlugin v6.9 which is not a depend or softdepend of this plugin.

#

do i need to care about this?

junior musk
#

those Loaded class some.class.path from SomePlugin.... can be ignored, it's just a warning that Spigot shows because PlaceholderAPI doesn't specify that it's hooking into other plugins in its plugin.yml, but it doesn't affect anything

radiant plaza
#

You can fix it dw

junior musk
radiant plaza
#

Slide into DMs if you need assistance

junior musk
#

he thought milkbowl meant there was an issue with milk

radiant plaza
#

Are you sure about that

junior musk
#

pretty sure yeah

#

if you look at the discussion, it's pretty clear...

radiant plaza
junior musk
#

he's asking if it can cause issue with players not being able to drink milk

#

well, you know what

#

@languid vessel

languid vessel
#

back

junior musk
#

do yo have an issue wth milk?

languid vessel
#

or illegalstack?

radiant plaza
languid vessel
#

i do

radiant plaza
junior musk
#

oh okay

languid vessel
manic sedge
tender vaporBOT
turbid tide
#

👍

austere hawk
#

How do I clear PAPI stats? I am using ajLeaderboards and now im in a new season but the stats carried over after clearing playerdata..

turbid tide
#

ugh. ajleaderboard caches leaderboards

#

so you have to reset that database

austere hawk
#

or contact "papi support"

turbid tide
#

well what stats are you trying to reset? bcz like placeholderapi does not store any data?

#

every plugin stores their own data, placeholderapi just requests it and displays it

austere hawk
#

just statistic time played and player kills

turbid tide
#

that's stored in the world folder

#

wolrd/stats

austere hawk
#

ohhh

#

ok ty

turbid tide
#

or something like that

austere hawk
#

well i opened it and now the file explorer thing on minehut has crashed,

#

oh yeah so basically theres like thousands of .json

turbid tide
#

yeah. each file represents a player

#

that joined the server before

austere hawk
#

yeah i know but how am I gonna do it

#

there isnt a select all button on minehut

turbid tide
#

ugh. that idk

#

just delete the whole folder?

austere hawk
#

oh it'll remake it?

#

ok ill try

plush dove
#

I have an item that's name is "Farming Helmet (Farming Set)", but with color codes. How do I use checkitem to see if the name is that? Do I include the color codes?

#

The real name is "#9B5D29Farming Helmet &7(&bFarming Set&7)"

#

I tried that and it didn't work

plush dove
#

did some testing and seems like hex isnt checked

#

I just changed it to namecontains then

#

how would I make a javascript that checks if the helmet is something, if so, have 1. Then check the chestplate, if it is something, then add 1 to the first number. Same with leggings, boots, and mainhand

#

ok I semi got a thing for it to work

#
    return "4";```
So I have this, but it gives 1111. how do I add the four numbers together?
#

of course, I could work with 1111, but I do want to learn how to add the four numbers. Which is probably common knowledge to everyone 😅

#

ok, I removed the " and it works :)

vivid sparrow
#

If you are going to use Javascript, it is better to use bukkit methods

whole dove
#

hey, i was wondering how i can use placeholders inside of placeholders?

an example:

%luckperms_group_expiry_time_%luckperms_highest_group_by_weight%%

radiant plaza
#

like this %luckperms_group_expiry_time_{luckperms_highest_group_by_weight}%

whole dove
turbid tide
#

Expansions have to specifically support that

#

It won't work if they don't

whole dove
#

Alright, thanks

potent oxide
#

Hey, is anyone familiar with the CheckItem expansion? https://github.com/PlaceholderAPI/CheckItem-Expansion

im trying to use the remove function to remove just one item. Is this possible?

%checkitem_remove_namecontains:&d&lTest Item% (This removes the whole stack of the items all named the same thing)

#

Using checkitem_amount just returns the amount in the inventory

mint fable
#

use the amt modifier @potent oxide

#

%checkitem_remove_namecontains:&d&lTest Item,amt:1%

potent oxide
#

Thanks so much 🙂

novel socket
spare flax
#

Hey I'm Using NUVOTIFIER plugin and was wondering how to make it adter you vote a certain amount of times, you rank up

#

If you also don't know what I'm talking about go to my dms and I can tell you which server to join, as an example

#

@sharp jay can you help me with dis issue

tender vaporBOT
spare flax
#

ok

#

i've just been waiting for so lonng, not on this server but 2 days to try to get this thing to work

sharp jay
#

Not by mentioning me

spare flax
#

please

#

im sorry

#

😭

austere hawk
#

I have this on my scoreboard "Towny: %townyadvanced_town%" it works just fine, but if I'm not in a town it doesn't show anything, how do I make it so if I'm not in a town it shows [None] instead of just showing literally nothing.

turbid tide
#

%changeoutput_equals_{townyadvanced_town}__[None]_{townyadvanced_town}% something like this might work

tender vaporBOT
# austere hawk TYSM
Hey!

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

austere hawk
#

Oh oops, my bad

austere hawk
#

when I put %playtime_time% it shows the hour minute and seconds
how do I make it so it only shows hours like this:
playtime: 2h

turbid tide
austere hawk
#

Okay, thanks anyways (:

plush dove
#

For the checkitem placeholder can you make it ignore capitlization

mint fable
#

no, but you could use it to retrieve the info and use javascript to ignore caps

plush dove
#

👍

turbid tide
#

download the vault expansion

#

/papi ecloud download vault /papi reload

remote tulip
#

I made all of these already but nothing :((

turbid tide
remote tulip
turbid tide
#

can you execute /papi parse me %vault_eco_balance% and see what the output is?

remote tulip
#

It says 0.0

#

Which is good because my balance is 0

turbid tide
#

hmm. the placeholder seems to work then. What scoreboard plugin do you use?

remote tulip
#

I make my own

turbid tide
#

are you parsing placeholders?

#

bcz it just seems like they're not parsed

remote tulip
#

How can I do it?

#

Or do I need to import it within Maven?

turbid tide
#

you need to import it and use PlaceholderAPI.setPlaceholders(Player, String);. let me get the wiki link

turbid tide
turbid tide
#

you have to move PAPI's under those

turbid tide
turbid tide
#

use that

remote tulip
#

Nice

turbid tide
#

👍

turbid tide
#

yeah. since you're going to use it in your plugin

remote tulip
#

Oh okay

turbid tide
#

in your actual codwe

#

code*

#

it will turn white when you'll use that class

remote tulip
tender vaporBOT
turbid tide
#

strings are not mutable. you have to work with the output of the setPlaceholders method

#

for example

#
val balanceParsed = PlaceholderAPI.setPlaceholders(player, egyenlegtext)```
#

and then you set it in the scoreboard

remote tulip
#

oh okay

remote tulip
#

Ahh thanks for your help 😄

turbid tide
#

no problem

fossil sun
#

Statistics placeholders don't show offline players in leaderboards, is there a way around this?

#

like %statistics_player_kills% or %statistics_hours_played%

turbid tide
#

the statistic expansion only works for online players. so unless whatever leaderboard plugin has a way to show offline player's stats then no

fossil sun
#

cool, thanks for answering i'll look around for a leaderboard plugin that does that

turbid tide
#

ajleaderboards

#

should

median steppe
#

hello

#

when i use this placeholding in this format it works i get the value back but when a player joins i get this error but as the owner i can join and i dont get any errors i dont understand what i did wrong

#

19.05 07:24:44 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 07:24:44 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_{aureliumskills_power}/15%
19.05 07:24:44 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills' is not a valid number for precision!

i have talked to Levelled mobs support and they said i would have to talk to placeholder about my issue

/papi parse me %math_{aureliumskills_power}/15%

turbid tide
median steppe
#

Okay Ill try this thank you so much for your quick reply

median steppe
#

Sadly this did not work

#

19.05 11:34:39 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 11:34:39 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_0_{aureliumskills_power}/15%
19.05 11:34:39 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills_power}/15' is not a valid Math Expression.

turbid tide
#

if you execute /papi parse me %aureliumskills_power% what does that return?

median steppe
#

with my skills 1.88

#

sorry without the /15 it returns 28

turbid tide
median steppe
#

yea if i divide it

#

/papi parse me %aureliumskills_power/15% like that

turbid tide
#

/papi parse me %aureliumskills_power/15% wait this exact command returns 1.88?

median steppe
#

/papi parse me %{aureliumskills_power}/15%

turbid tide
#

ugh. you mean the math one?

#

/papi parse me %math_0_{aureliumskills_power}/15% right?

median steppe
#

yes im sorry about that

turbid tide
#

hmm. and you still get an error?

#

while you execute the command I mean, if you check the console

#

you get an error?

median steppe
#

yea

#

19.05 11:15:14 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 11:15:14 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_0_{aureliumskills_power}/15%
19.05 11:15:14 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills_power}/15' is not a valid Math Expression.
19.05 11:16:36 [Server] INFO [ExcellentCrates] Auto-save: Saved 1 online users | 0 offline users

turbid tide
#

wtf. if it works why is it erroring. hmm 1 sec

median steppe
#

it happens every time a player joins

turbid tide
#

oh. are you using the placeholder in a message or something like that?

median steppe
#

featherboard Plus Levelled Mobs*******

#

can that be it?

#

its still works though featherboard

#

i can see the 1.88

#

i'm tech using it for my server combat level

#

its working real well aside from the error

#

you may be on to something i removed it from featherboard and theres no more error

turbid tide
#

can you show the exact placeholder you have in featherboard

#

like copy paste it here

#

and put it into ` here `

#

so it looks like this

median steppe
#

&b&l> $setting_label-color$&lCombat Level: &b%math_{aureliumskills_power}/15%

#

i cant do the 0 on the scoreboard if i do it shows way do many Extra Numbers like this 1.88.888888888888888888888888888888888

#

but even more then that

turbid tide
#

that character is above the TAB and under the Esc buttons

median steppe
tender vaporBOT
turbid tide
#

hmm.

median steppe
#

o i didnt mean to ping

turbid tide
#

try %math_2:_{aureliumskills_power}/15%

median steppe
#

okay

turbid tide
#

I wonder if the scoreboard is just updated too fast and the aurelium placeholder just doesn't work bcz the player is not fully connected yet. that could also be a problem

median steppe
#

let me lower the intervals

#

raise i mean but no that didnt work

#

19.05 12:44:10 [Server] WARN [PlaceholderAPI] [math] Invalid Placeholder detected!
19.05 12:44:10 [Server] WARN [PlaceholderAPI] [math] Placeholder: %math_2:_{aureliumskills_power}/15%
19.05 12:44:10 [Server] WARN [PlaceholderAPI] [math] Cause: '{aureliumskills_power}/15' is not a valid Math Expression.

median steppe
#

weird i think your right when i turned up the intervals then logged on again i still get the error and the placeholder breaks this time not showing the value but the placeholder itself, Then on the next update its fixes the placeholder

turbid tide
median steppe
#

yea it shows normally

turbid tide
#

since the error you show, says its trying to divide the actual text {aureliumskills_power} by 15. so clearly the placeholder isn't parsed. And I've looked at the code and the only reason I see would be that

median steppe
#

okay well it works perfect mixing it with Levelled Mobs so worse come to worse ill just take it off the scoreboard

turbid tide
median steppe
#

yea but only on Loggon so may i can just spam hide it

turbid tide
#

you could in theory use something like ConsoleSpamFix or whatever its called

median steppe
#

cause it does make the rpg feel so much more like a real one

#

yea i have it ill give it a go, But i do owe you a big Thank you for your help! and time

turbid tide
#

no problem 👍

plush dove
#

Is there a placeholder to list all the players on the bungeecord instance

turbid tide
#

just the amount. not their names

ancient spire
#

hey

#

is there a way to not use a placeholder by putting a certain character in front of it?

#

Or something of the likes

turbid tide
ancient spire
#

I've tried disabling my latest installed extensions but that didn't fix the issue either

turbid tide
#

as I was saying, that was never a thing in PlaceholderAPI itself. Unless the plugin you were using it in had this specific functionality.

ancient spire
#

ok

#

Can I disable papi via command?

#

to check if that fixes the issue

turbid tide
#

the entire plugin? no.

#

if you want to disable it, remove it from the plugins folder and restart the server

ancient spire
#

btw there was a placeholder I unregistered and now I can't get it back

#

is that normal?

turbid tide
#

what placeholderand how did you unregister it

ancient spire
turbid tide
ancient spire
turbid tide
turbid tide
ancient spire
#

ah ok good to know

ancient spire
turbid tide
#

have you restarted since you've unregistered it?

#

alr. do that and let me know

ancient spire
#

I removed it from the plugins folder and just added it again

#

It still sees player as a placeholder even though papi wasn't even installed anymore

#

Any idea why that is?

turbid tide
#

%player% is not a PlaceholderAPI placeholder

#

that's probably an internal placeholder of that specific plugin

ancient spire
#

It's just player actually

#

that's why I was confused

turbid tide
#

every PlaceholderAPI placeholder has a specific pattern

#

%identifier_<arguments>%

#

if it doesn't look like that its not a PlaceholderAPI placeholder

ancient spire
#

could it be essentials that messes with the chat format?

turbid tide
#

hmm? what would?

#

ohh

#

misunderstood the question

#

I mean essentials only changes the format if you have the EssentialsChat plugin installed

ancient spire
#

prefixes:

  • default;&a**[Player]** &f;&a[Player] &f
#

the [player] is used as a placeholder for some reason

turbid tide
#

I mean as I've said before, its most likely something that the chat you use for formatting has built in

#

plugins can make their own internal placeholders not related to PlaceholderAPI

#

so most likely whatever chat formatting plugin you use, has one

fluid yacht
#

Hey, how would I set the material of a delxue menu itemto the item that successfully trigers %checkitem_mat:SHIELD,namecontains:&fSteel Guard%

#

Or alternatively does anyone know how to get the output of what slot # the checkitem placeholder finds an item in?

austere hawk
#

Does anyone know why this doesn't work? %math_%bungee_Hub-1%+%bungee_Hub-2%%
And presents this error
[00:55:21 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [00:55:21 WARN]: [PlaceholderAPI] [math] Placeholder: %math_% [00:55:21 WARN]: [PlaceholderAPI] [math] Cause: '' is not a valid Math Expression.

stark shard
#

No one here is paid to help, so do not beg. People volunteer to help here

#

U need to download protocollib plugin

#

Also replace Essentials with ForgeEssentials since u arent using bukkit

#

Also I dont think papi works on non bukkit servers

#

Unless u have a reason, i suggest using paper as ur jar file and use plugins not mods

#

Mods are mainly for singeplayer worlds

carmine veldt
#

many, many mods are made with multiplayer in mind

#

think your vault expansion may be corrupted, try redownloading

#

the vault expansion

austere hawk
#

Just /papi reload

#

No need to restart

ancient spire
#

How can I register an extension that I have previously deleted?

#

it shows when I type /papi list but it doesn't work

#
Generated: May 20, 2022 at 2:23:59 PM UTC

PlaceholderAPI: 2.11.1

Expansions Registered:
  regionclaimplus       [Author: 3ricL (Ericdebouwer), Version: 1.1.4]
  ...

Expansions Directory:
  Expansion-playertime.jar
  Expansion-player.jar
  Expansion-viaversion.jar
  Expansion-autorank.jar
  Expansion-statistic.jar`
#

and I know it's been in the expansion directory before (I deleted it 😅)

#

I’ve tries to add it back but it’s not working for me :c

ancient spire
#

ah and btw I don't get any errors in the console

stark shard
#

So restart the server

plush dove
#

https://paste.helpch.at/sebafexiqo.js I have this javascript, would this be correct in storing the placeholder %checkitem_give_mat:{deluxeshop_{args[0]},name},amt:{deluxeshop_currentAmount}% as a variable and using it in a function?

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.

turbid tide
ancient spire
plush dove
#

Sorry, I have basically 0 experience. So I need to move the argument and math operations out of the string, would this be it:

  if (args[1] > "1") {
    return eco give %player_name% args[1]*%deluxeshop_{args[0]},buy%;
  }
  return "msg dunescifye no";
}```
turbid tide
ancient spire
#

it's already a txt file

turbid tide
#

and you copy the content and put it on that website and send the link

ancient spire
#

ah I see

turbid tide
#

yeah. you place text there, and it generates a custom link so I don't need to download anything

#

and you don't need to send files

plush dove
turbid tide
#

they're what you call in a placeholder

plush dove
#

ahh ok