#placeholder-api

1 messages · Page 102 of 1

austere hawk
#

you want it?

gleaming python
#

How can I use PlaceholderAPI timer placeholder to countdown to a specific date + time?

turbid tide
#

%server_countdown_<SimpleDateFormat>_<time>%

whole temple
#

Does anyone know of a placeholder that can format other larger placeholders
For example something that changes 1,690,000 to 1.6M

mint fable
#

yes

#

@vivid sparrow ^

sinful meteor
#

a few things:

  1. as far as I know it only works for money
  2. I think it rounds up rather than truncating
whole temple
#

Oh, so I cant change PlayerPoints for example?

#

Rounding up is actually fine.

vivid sparrow
#

Just take it from here smh @mint fable xd

mint fable
#

what

vivid sparrow
#

And it does work only with number, I will make it remove dots and commas

mint fable
#

you're the one with the expansion

vivid sparrow
#

Search it in this channel, im not at pc

mint fable
#

bruh

#

idk what it's even called

sinful meteor
#

also wdym by player points @whole temple

vivid sparrow
#

in:placeholder-api has:file from:GabyTM | RO#6463 smh

mint fable
#

thank you

whole temple
#

Thanks!

mint fable
#

make sure not to use , though

mint fable
#

because it doesn't remove those yet™️

whole temple
#

Yes thats fine. Its just integers

#

Why hasnt Formatter been added to the cloud? Just curious.

balmy marten
#

Most likely in the testing phase

whole temple
#

Ah I see thanks!

balmy marten
#

or gaby is lazy

#

¯_(ツ)_/¯

mint fable
#

^^^

vivid sparrow
#

Yes

brisk coral
#

What nerd made the pinger expansion?

mint fable
#

let's find out

vivid sparrow
#

Clip

mint fable
#

😮

brisk coral
#

smh, why is it named isonline when it returns a string ;C

#

(offline/online)

mint fable
#

you sure?

#

what does online return then?

sinful meteor
#

isonline returns a string? what?

mint fable
#

he meant instead of the PAPI boolean

#

which is default yes/no

brisk coral
#

Which would make more sense, considering what it's named

mint fable
#

^

sinful meteor
#

yeah

mint fable
#

but what does online return frosty?

brisk coral
#

asking the dude, I'm too lazy to test, just wait a bit I'll pong u

vivid sparrow
#

Or check the code

mint fable
#

no

brisk coral
#

Effort

mint fable
#

for usage

balmy marten
#

or just upload it to the cloud

mint fable
#

^

balmy marten
#

just a wild idea

mint fable
#

insane

#

let's just store the cloud in discord

#

like other servers

vivid sparrow
#

Shut up

ocean jacinth
#

I have a problem: No placeholders work.

sinful meteor
#

you have placeholderapi installed?

austere hawk
#

I use MVdWPlaceholderAPI for ONE last plugin, almost done switching off - anyone know a decent AnimatedNames alternative? It's the last one v_v

ocean jacinth
#

yes

#

and I have a plugin that is compatible

sinful meteor
#

okay

ocean jacinth
#

it's like this on multiple servers with multiple plugins

sinful meteor
#

and you're looking at the placeholders from the latest version of the placeholder documentation?

ocean jacinth
#

maybe not? where are they

#

where is the documentation? can you send me a link?

ocean jacinth
#

I was using them, in this case %player_name%

#

I was using messagesgui

#

do I need any dependencies or something that I missed?

#

oh I need to download them

sinful meteor
#

if you're using player I believe that's a separate module

ocean jacinth
#

I also have a problem using %vault_prefix% (Vault extension is downloaded)

sinful meteor
#

which permissions plugin are you using?

#

because if it's LuckPerms I'm not sure whether it supports Vault by default

ocean jacinth
#

I use Ultra Permissions.

#

and yes, luckperms supports vault

sinful meteor
#

I know luckperms supports vault I just don't know whether it supports vault by default (a.k.a it doesn't need a config option set to true or something)

ocean jacinth
#

when I used it I needed to install it as dependency.

#

but that's not important, I need to fix it for Ultra Permissions

sinful meteor
#

you've checked the config to make sure it doesn't need configuring?

ocean jacinth
#

I will check the config and the settings

#

there is a setting that seems a bit like it is for vault (but I am not sure) but it doesn't seem to change anything

#

it's called Default Permissions

#

@sinful meteor

sinful meteor
#

you know by the way that you can just use UltraPermissions' built-in PAPI placeholders right?

ocean jacinth
#

Oh

sinful meteor
ocean jacinth
#

Didn't know that

#

What happens when I disable Cloud?

trim mist
#

It disables.

sinful meteor
#

^^^^^^^^^ does what it says on the tin

ocean jacinth
#

What does it mean though?

#

Does it mean that I don't need to download the placeholders?

sinful meteor
#

no

#

it means that you can't use the cloud to download modules

ocean jacinth
#

Oh ok

sinful meteor
#

or so I would imagine

trim mist
#

Correct.

rapid tinsel
#

Hey there :P
Is there a way to reset placeholderapi data (only for one placeholder)?
Thank you in advance

trim mist
#

What placeholder?

vivid sparrow
#

^

rapid tinsel
#

%statistic_cake_slices_eaten%

vivid sparrow
#

the statistics are stored in player data files located in the world folder

rapid tinsel
#

so I would have to delete whole players data to reset it?

brisk coral
#

Al pa sam tist specific line, sam mislm da bo corruptal file ce to nardis

vivid sparrow
#

you can also edit the files if you know what you are doing

rapid tinsel
#

well i'll leave it than

#

thank you 🙂

wooden shuttle
#

is there a placeholder for player_empty_inventory_slots_qty?

sharp jay
sinful meteor
#

you could just use EZBlocks

#

%ezblocks_mined% I think

sharp jay
#

^^

sinful meteor
#

that's the one

#

not sure what the command was

sharp jay
#

all good

sinful meteor
#

what is the command?

mint fable
#

-papi <expansion>

sinful meteor
#

cheers

radiant nexus
#

What is the ecloud for saberfactions and ftop

short osprey
#

what does papi do exactly

#

im really new to using plugins

austere hawk
#

@short osprey They parse/dispatch plugins informations with placeholders

#

In scoreboard, you can put %ezrankspro_rankprefix%

#

EzRanksPro (a plugin) will return rank prefix to this placeholder (PlaceholderAPI) and PlaceholderAPI will send this to a scoreboard plugin (FeatherBoard for example)

#

It's a bit of a way to communicate information between plugins

short osprey
#

what are placeholders?

#

nvm i know, thank you

austere hawk
#

The thing with %%

#

Your welcome !

radiant nexus
#

I am having aa issue where when i use the placeholder it pushes it over or doesnt show all the text. THis is on my scoreboard

turbid tide
#

the problem is that until 1.13 or something like that the scoreboard only accepts 16 characthers. I think the only way to fix it is to update

bronze zodiac
#

missing essentails econemy

heady dune
#

-SuperBVote

bronze zodiac
#

-essentials

#

-Essentials

heady dune
#

Do -papi

wet basinBOT
#

@bronze zodiac Unknown expansion.

turbid tide
#

@bronze zodiac to use essentials economy you need to use vault placeholders

bronze zodiac
#

oh

#

yes, i should install a vault on my server

turbid tide
#

oh if you don't have it then install it. you will need it for more than just essentials economy

bronze zodiac
#

yes

whole temple
#

Im trying to use %formatting_format_{playerpoints_points}% in BungeeTabListPlus. But it only allows PAPI placeholders inside ${} and the {playerpoints_points} confuses it. Is there any other way to writing %formatting_format_{playerpoints_points}%?

#

The way i've tried already is ${player formatting_format_{playerpoints_points}} and it doesn't work

turbid tide
#

${player formatting_format_${playerpoints_points}} try this way. I am not sure it will work but it is worth a try

mint fable
#

uh

#

you could always put it in a javascript placeholder

#

🤷‍♂️

#

slightly annoying that btlp does that

#

the fact that it removes the need for %% is slightly weird

#

they should just add %% back and then parse the entire thing as placeholders

#

and then run it through their own system

faint glacier
#

Hey could anyone help with the javascript addition to Papi

clear hinge
#

Hey y'all I've searched for quite a bit and was wondering if dynamic text is possible?

For example:
I have a custom item that I want to change the lore of every so often. So if my players have say, a diamond pickaxe with lore placeholder "%custom_text%" I want it to pull information from a custom_text.txt document or a similar way. That way if I change that info in the text document it updates every pickaxe with the new lore. If that makes sense.

turbid tide
#

I am not sure but maybe javascript?

brisk coral
#

You asking for a custom plugin or? Because unless you have something which would re set the items lore, that won't work

clear hinge
#

I looked into javascript expansion it might be what I want.. but no outside of a custom plugin. It'd just be %custom_text% in the lore of and item and it references say a document/skript/javascript. Changing it wherever would update that items' lore.

brisk coral
#

Not possible, yes you can update the text, however you'd need something to update the item's lore

clear hinge
#

So probably we would listen for say.. they move it to a chest from inventory vice/versa. login/logout

brisk coral
#

You'd need a custom plugin for that

#

You can't listen to events inside JS, meaning that's your only option

clear hinge
#

gotcha, thanks!

azure hedge
#

Anyone here use MassiveCore Factions and use PAPI for placeholders? I can't seem to get mine to work. I tried it with the MVDW placeholders and that seems to work so not too sure why PAPI isnt able to work. I've downloaded the expansion and everything like that.

vast nova
#

Anyone know something about Javascript placeholders having issues with concurrent usage? Used a javascript placeholder in chat and tablist and they would sometimes not output their return text/ output their return text twice.

bright moth
#

need help with placeholder checkItem
who can help?

turbid tide
#

no need to spam all chanels

#

what exactly do you need help with?

bright moth
#

how to connect that with requirement at deluxe menus

#

does that returns true and false...

turbid tide
#

no

#

depends on what placeholder you use

#

%checkitem_amount_<modifier1>,<modifier2>,<...>% returns a number

#

that you have

bright moth
#

%checkitem_namecontains:<string>%

#

i found this

turbid tide
#

%checkitem_<modifier1>,<modifier2>,<...>% returns yes/no or anything you have set in palceholderapi config to return

#

so if you haven't changed anything it returns yes or no

bright moth
#

can i send you code

turbid tide
#

send it here

#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat - Usage
Hastebin

bright moth
turbid tide
#

so you want to check if the player has 3 items

bright moth
#

no no

turbid tide
#

that have the name which contains that?

bright moth
#

check that player has 10 heads

#

with name

#

&6Pig Head

#

thats player heads

turbid tide
#

and what type of item

#

do you want ?

#

you need to specify a material

vivid sparrow
#

SKULL_ITEM

turbid tide
#

well I know gaby but what if he wants something else ...

#

xD idk

bright moth
#

skull_item:3

vivid sparrow
#

check that player has 10 heads

turbid tide
bright moth
#

tnx ill try now

#

does not work

turbid tide
#

what is your server version?

bright moth
#

1.8

turbid tide
#

actually

#

I made a mistake

#

try this one

bright moth
#

again

#

does not work

turbid tide
#

what does /papi parse me %checkitem_mat:SKULLITEM,namecontains:&6Pig Head%

#

return?

#

oh wait

#

again

#

I made a mistake

#

try this

bright moth
#

same problem

#

maybie output

turbid tide
#

/papi parse me %checkitem_mat:SKULL_ITEM,namecontains:&6Pig Head%

#

try this command and see what it returns

bright moth
#

no

turbid tide
#

then try this one: /papi parse me %checkitem_mat:SKULL_ITEM:3,namecontains:&6Pig Head%

bright moth
#

i already tried

#

no

turbid tide
#

no you haven't

#

because this one has a 3

bright moth
#

i know

#

i tried that

turbid tide
#

oh well

bright moth
#

and 397:3

turbid tide
#

/papi parse me %checkitem_mat:SKULL_ITEM:3%

#

without the name

bright moth
#

no

#

do not recognize

#

head with skin...

mint fable
#

use data for data

turbid tide
#

oh right

#

/papi parse me %checkitem_mat:SKULL_ITEM,data:3,namecontains:&6Pig Head%

#

I hate 1.8-1.12 😦

#

good thing that cj is here to save the day

bright moth
#

/papi parse me %checkitem_mat:SKULL_ITEM%

#

i tried this

#

and said yes

turbid tide
#

try the one I gave above

bright moth
#

nothing

turbid tide
#

wdym nothing?

#

does it say no or does it return nothing?

bright moth
#

same problem

#

no

turbid tide
#

/papi parse me %checkitem_mat:SKULL_ITEM,namecontains:&6Pig Head%

#

then try this

bright moth
#

/papi parse me %checkitem_mat:SKULL_ITEM,namecontains:&6%

#

said no

#

on yours

#

on mine

#

said yes

#

but if i write &6P or &6Pig...

#

said no

mint fable
#

maybe it's &6&LP or something

bright moth
#

nothing

mint fable
#

🤷‍♂️

#

try the color code

bright moth
#
  • '[console] im remove %player_name% skull_item data:3 name:&6Pig_Head skullOwner:Pig 1'
#

this removes head

mint fable
#

hmm

#

No idea

#

why not do startswith?

#

or equals?

bright moth
#

/papi parse me %checkitem_mat:SKULL_ITEM,namestartswith:&6Pig%

#

?

mint fable
#

try it

#

i don't know the result

bright moth
#

if i put anything after &6

#

say no

mint fable
#

🤷‍♂️

#

what if you do &6p

bright moth
#

no

#

then..

mint fable
#

okay, idk

#

I would think that &6 wouldn't work

bright moth
#

ill make heads.. all start with another color

bright moth
#

%checkitem_mat:SKULL_ITEM,amt:10,data:3,namestartswith:&6%

#

thats it...

#

yeaah!

azure hedge
#

smh

elder monolith
#

If I update PAPI, will I have to redownload the ecloud expansions?

azure hedge
#

/papi parse me %rel_factions_relation_color%%factions_faction%
When I run this command it doesnt show the color just the faction name... I use MCore factions and all that. Anyone know how to fix this?

split rock
#

anyone know what's up?

#

latest papi, deluxechat, and server version 1.14.4

trim mist
#
  1. Update PlaceholderAPI
  2. You have the Skript expansion but you don't have Skript installed.
split rock
#

i dont like skript

#

i dont even know why i have it

trim mist
#

This error wouldn't be occurring if you were on the latest version.

#

Then remove the Skript expansion.

split rock
#

update, restarted server

#

09.05 23:57:27 [Server] ERROR Could not pass event ServerLoadEvent to PlaceholderAPI v2.10.6

trim mist
#

Sounds like you got bigger problems then.

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
HelpChat - Usage
Hastebin

trim mist
#

Startup log

tulip schooner
#

Is there a placeholder for SuperMobCoins?

wet basinBOT
#

@mint fable Unknown expansion.

trim mist
#

Guess not

mint fable
#

bruh imma slap a man silly

#

@tulip schooner

#

have you checked the plugin page?

#

Like... at all?

#

it's in the features right near the top of the page too

tulip schooner
#

Was asking nicely. Because I did not see anything on the github Wiki page of Placeholders. You don't have to rugged things out.

mint fable
#

I just don't understand not checking the plugin page 🤷‍♂️

#

it means the author of supermobcoins didn't reach out to us

austere hawk
#

How do I use this for the time

#

%server_countdown_11.05.2020_00.00.00%

#

Because that says invalid date

mint fable
#

you didn't give a format, check that link out

austere hawk
#

Im so confused

mint fable
#

%server_countdown_<SimpleDateFormat>_<time>%

austere hawk
#

Just for reference what would it be if for example I wanted to set the countdown to countdown until tonight at midnight

mint fable
#

you put the format on the left

#

and the time on the right

#

did you see the example?

#

%server_countdown_dd.MM.yyyy_01.01.2020%

austere hawk
#

o

mint fable
#

dd.MM.yyyy is the format

austere hawk
#

O shit im stoop

mint fable
#

01.01.2020 is the countdown date

austere hawk
#

ty

mint fable
#

👍

austere hawk
#

Sorry about that

rapid tinsel
#

Hey there 😛 I use PAPI and i tried /papi ecloud download LuckPerms and when i do /papi reload after that this error pops out ^

tender vaporBOT
#
FAQ Answer:

This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.

If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.

rapid tinsel
#

nvm this worked thanks bot xD

quiet dune
#

The question is to WorldGuard expansion. Is it possible to find out if the player is the owner of the region in which he stands?
I found only %worldguard_region_owner%, but it gives me owners list ("nick1, nick2, nickN")

trim mist
#

Afaik no

mint fable
#

javascript

quiet dune
#

@mint fable so I need to separate %worldguard_region_owner% by ', ' and then check if it equals to player's name, correct?

mint fable
#

sounds good to me

vocal star
#

is there a way to decrease the decimals?

trim mist
orchid marten
#

Hi!

#

I have some problems with the log, anyone can help me please?

#

.... [17:11:04 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.10.6 generated an exception while executing task 104
java.lang.NoClassDefFoundError: com/iCo6/system/Accounts
at net.milkbowl.vault.economy.plugins.Economy_iConomy6.getBalance(Economy_iConomy6.java:129) ~[?:?]

#

I deleted the Iconomy6 but I have that error

trim mist
#

It means whatever com/iCo6/system/Accounts is cannot be found.

#

Then you're probably using some kind of expansion for it.

#

Ensure that you've removed it from your expansions folder.

orchid marten
#

okay thanks dude 😄

trim mist
#

Yup!

bright moth
#

where i can find text for &4You do not have permission...

#

i want to edit color of text

sleek hazel
#

Placeholder to count items collected? Like how on hypixel it counts total collected from mining/minions

trim mist
#

Look into statistics

sleek hazel
#

Statistics can only count blocks broken, I want collected, like unique items that go through your inventory

trim mist
#

Yeah I don't think something like that exists without a custom plugin.

sleek hazel
#

Hmm no plugin that can do it?

#

Or placeholder in a plugin

trim mist
#

I'm not aware of any public plugin like that.

sleek hazel
#

Crap...

trim solar
#

hey guys

#

how would i go about making like a ranking of who has the highest kills in order

#

is this possible

trim mist
#

So the issue with that is you can't get the statistics of a player who is offline.

#

There are plugins like Statz that allow you to track it though.

#

Unsure of how updated it is.

trim solar
#

looks like its up for 1.15

#

thanks for the suggestion

#

ill check it out

trim mist
#

Yup!

#

=PL statz

tender vaporBOT
#

vStatz v1.5.5 by Staartvin
The one-and-all plugin to record and store stats about any player.

Downloads:

17,227

Likes:

50

Reviews:

37

trim solar
#

i see here that it can parse players killed per player

#

probably no good way to do a list huh

trim mist
#

I know plugins like LeaderHeads allow you to do fancy stuff and create Leaderboards but I believe it's paid and I'm not aware of a free alternative.

shut pagoda
#

Hello! Is it possible to use papi placeholder from Factions on 1.15.2 JE in the Chatex Tablist?

#

It seems no

#

|Tablist:
Change: true
format: '[%factions_faction%] %prefix%player%suffix'|

#

Here is the code fragment

#

And the tablist shows me something like [%factions_faction%] [God] exterminated

#

But not the faction name

shut pagoda
#

??

turbid tide
#

have you downloaded the expansion?

#
/papi ecloud download Factions
/papi reload```
#

but still the plugin might not support PlaceholderAPI placeholders

shut pagoda
#

Yes

turbid tide
#

then the plugin might just not support placeholder

marsh surge
#

can i run the command "papi parse %player_name% %javascript_cooldown_1_start%" in server console?

brisk coral
#

Depends, do you have a player instance? (As in where are you trying to do this)

marsh surge
#

it said "This command can only be used in game. "

noble brook
#

Would there be a placeholder to determine if a certain player is online?

turbid tide
#

%player_online%

noble brook
#

ah thanks

austere hawk
#

Hello, im trying %bungee_<servername>% but neither %bungee_KitPvP% or %bungee_<KitPvP>% works

#

it always keeps giving 0

#

i made someone join kitpvp server and it updated the scoreboard but it doesnt change

turbid tide
#

are you sure the name is KitPvP and not kitpvp?

#

also try it using /papi parse me %bungee_kitpvp% and see if it works like that

#

So I remember there being a placeholder that returned a list of online players but can't find it. I remember it being %essentials_list% but that is not the one. Anyone got any ideas?

junior musk
#

isn't it ListPlayers ?

wet basinBOT
#

@junior musk Unknown expansion.

turbid tide
#

yeah

wet basinBOT
turbid tide
#

found it

#

thanks tho xD

junior musk
#

wait what

#

why does the bot sends me the link to the discord...

austere hawk
#

huh

#

what now

junior musk
#

if we're talking in the discord lol

austere hawk
#

XD

#

but how do i get the players from a diff bugneecord serve rnow

turbid tide
#

so the players that are online?

#

like a list??

#

I don't think that is possible

#

I think you can only see if that server is online and how many players are online

turbid tide
#

actually

#

%pinger_players_testplugins.com:25565%

#

I think this returns a list of players on a server as well

austere hawk
#

okay ill try

turbid tide
#
Allows you to show, how many players are online on the entire network, or just on a specific server.

%bungee_total%
%bungee_<servername>%```
#

not who is online but how many

shrewd sierra
#

hey i have a problem with VoteParty and PAPI

austere hawk
#

yes thats why i need

#

i need how many!

shrewd sierra
#

I can't add on cloud VoteParty

warm topaz
#

@shrewd sierra #spigot-linking

shrewd sierra
#

No expansion found with the name : VoteParty

austere hawk
#

@turbid tide i need it to say the amount not all players

#

its for a scoreboard

turbid tide
#

oh

#

then %bungee_kitpvp%

austere hawk
#

well that doesnt do it, it doesnt show how much

#

ive tried that alr

#

is it case sensetive?

turbid tide
#

yeah

#

I think so

austere hawk
#

the server name

turbid tide
#

yeah I know what you mean

austere hawk
#

so if server name on the bungee is KitPvP i have to put exactly that in

turbid tide
#

and I think it is

#

yeah

#

so %bungee_KitPvP%

austere hawk
#

oki ill try i guess i think i alr had that

turbid tide
#

also test /papi parse me %bungee_KitPvP% and see what that returns

austere hawk
#

oki

#

it doesnt work

#

my friend went on kitpvp server and it gives 0

#

./glist shows him on it

shrewd sierra
#

help me

#

please

#

the command /papi ecloud download VoteParty doesn't work

#

no expansion found

austere hawk
#

but %bungee_total%" does work @turbid tide

#

Voteparty doesnt need one @shrewd sierra

shrewd sierra
#

really?

austere hawk
#

``VoteParty
NO DOWNLOAD COMMAND

%voteparty_votes_recorded%
%voteparty_votes_required_party%
%voteparty_votes_required_total%
%voteparty_player_votes%``

shrewd sierra
#

okay i go try

#

thanks

austere hawk
#

no download command needed

#

it says

#

@turbid tide %bungee_total% works fine but /papi parse me %bungee_KitPvP% still gives 0 even tho my friend is on it

shrewd sierra
#

it works with featherboard?

austere hawk
#

no

turbid tide
#

yeah

austere hawk
#

Featherboard uses diffrent placeholder

turbid tide
#

{placeholderapi_PLACEHOLDERHERE}

#

without %% as well

shrewd sierra
#

for featherboard

#

@turbid tide ?

turbid tide
#

yeah

shrewd sierra
#

{placeholderapi_voteparty_votes_recorded}

austere hawk
#

but @turbid tide what now

turbid tide
#

well @austere hawk have you downloaded the expansion?

austere hawk
#

yes

#

i just said, bungee total does work

#

but specific server doesnt

#

its the same expansion

shrewd sierra
#

thanks dude

#

it's work 😄

#

@turbid tide

turbid tide
#

ok guys no need for this many ping

#

s

austere hawk
#

XD

turbid tide
#

I will lose track of messages

austere hawk
#

maybe theres a bugg in the placeholder?

#

becaus 1 of the 2 placeholders in the Bungee expansion just doesnt work

#

@final shadow sorry for the tag but might this be a bugg?

tender vaporBOT
#

@austere hawk,

Hey!

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

turbid tide
#

try using the pinger placeholder instead

austere hawk
#

which?

#

so %pinger_online_testplugins.com:25565% will show amount of player

#

in numbers

turbid tide
#

no

#

it will show if the server is online or offline

#

%pinger_players_testplugins.com:25565%

austere hawk
#

oh okay thx

#

@turbid tide still doesnt do it i dont get it, (i only got PlaceholderAPI in the Lobby server btw

tender vaporBOT
#

@austere hawk,

Hey!

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

austere hawk
#

%pinger_players_5.255.77.22:25568% doesnt give the players of of it

austere hawk
#

hello? can someone help still?

#

i just want a scoreboard in the lobby of my bungeecord to see other server's player amount

#

thats it

#

ive only got placeholderapi in my lobby

mint fable
#

are the other servers in your bungeecord?

austere hawk
#

yes

mint fable
#

^^

austere hawk
#

ive alr got that

#

it doesnt work

mint fable
#

and?

austere hawk
#

it just gives 0

#

always

#

even if someone is online

mint fable
#

is the name correct?

austere hawk
#

just 0

#

i used the parse command and gives 0

mint fable
#

does total show 0 as well?

austere hawk
#

yeah, case sensetive

#

no total works fine

mint fable
#

so are you sure the servername is correct?

#

it needs to be the exact same as the one in your bungee configs I believe

austere hawk
#

yeah

mint fable
#

case sensitive?

austere hawk
#

%bungee_KitPvP% just gives 0

mint fable
#

try all lowercase

austere hawk
#

its in bungeecord as KitPvP

#

oki

#

doesnt placeholderapi have to be in the proxy server aswell then to check the amount?

trim mist
#

No

austere hawk
#

ah

#

well pretty strange then

trim mist
#

It uses channels (which is what bungee uses) to retrieve player counts.

austere hawk
#

okay then weird that it gives 0 always

#

but the total just works

mint fable
#

so it didn't work?

#

all lowercase

austere hawk
#

im still trying

mint fable
#

wat

austere hawk
#

gotta startup a second mc to check it since nobody is online atm

mint fable
#

i see

trim mist
#

Isn't it something like plugin messaging doesn't work if the server is empty?

#

I forgot the circumstances around that.

austere hawk
#

huh? what do you mean?

trim mist
#

Channels require 1 or more players online for it to properly work

#

Which if no one is on, might explain why the playercount is always returning 0

#

Which also would make sense

austere hawk
#

no i mean when someone is online on that server is still gives 0

#

it always giveds 0 no matter if anyone is online

trim mist
#

Ahh

mint fable
#

glare is a fool

brisk coral
#

no u

mint fable
#

How's the lowercase testing going?

brisk coral
#

the what

mint fable
#

@austere hawk

mint fable
#

is what still valid

trim mist
#

That method of getting players

mint fable
#

i don't do bungee

#

but total works

trim mist
#

Someone might need to debug that then

austere hawk
#

XD

mint fable
#

i do not get it

#

can you send your bugnee config

trim mist
mint fable
#

i don't have a bungee setup

trim mist
#

kk

mint fable
#

also, you can do multiple servers?

#

with a ,

austere hawk
#

what do u want me to send?

mint fable
#

bungee config

austere hawk
#

bungeecord config?

mint fable
#

@trim mist can you point me to where it even gets the players

#

I don't understand how it even gets servers

trim mist
#

The plugin messaging

mint fable
#

but where does the value come from

#

I see in.readInt()

#

but where is that integer set

mint fable
#

I see that

#

I never see the server count get put to messages tho

trim mist
#

Rephrase

mint fable
#

the player count

#

when does it get added to message

#

the byte array

trim mist
#

It's an implementation of the PluginMessageListener class iirc

#

Which is built into bungee

mint fable
#

but don't we send AND receive the message?

trim mist
#

Yes, this is what listens to it being sent

mint fable
#

oh wait wait

#

Does it return 1 per person or something?

#

because I see the received takes a player

trim mist
#

Line 62 it hooks into the channel

mint fable
#

ye

trim mist
#

When that channel gets a message from something like bungee, it handles it.

mint fable
#

yes

#

I get that

#

i just don't know how the actual player count is even gotten

#

unless it sends a message per player

#

👍

austere hawk
#

oki

mint fable
#

just for sake of IP

#

if I learned how this expansion works I might be able to fix, but I got no idea sadly

austere hawk
#

so what now?

#

yea

mint fable
#

wait for a fix? I know it's worked for a ton of other people

austere hawk
#

ah

mint fable
#

obviously not updated

#

you on 1.15.2?

austere hawk
#

its 1.15.2-1.7 but server is 1.15.2 yes

mint fable
#

could be broken so

#

no idea

austere hawk
#

im using it for scoreboard

mint fable
#

do you have any mvdw plugins by chance?

#

glare i'm big stupid

#

@trim mist

trim mist
#

Uh idk why

mint fable
#

that question wasn't for you

#

the big stupid part was for you

#

i'm big stupid

trim mist
#

y

mint fable
#

it does send 1 per player

#

for some reason I feel that could be done easier

#

just get the count and return it, right?

trim mist
#

You're welcome to PR it

#

I don't like to touch message channels

mint fable
#

i don't get where the int comes from tho

trim mist
#

It's passed through the byte or whatever

mint fable
#

I get that part

trim mist
mint fable
#

oh wait wait

#

I think

#

ya lemme see that

#

oh i'm dumb

#

big dumb

#

i never clicked that earlier idk why

austere hawk
turbid tide
#

have you tried using /papi parse me %bungee_kitpvp% or /papi parse me %bungee_KitPvP%?

mint fable
#

ignores case

#

it don't work @turbid tide

#

that's what the whole wall of text is from me and glare and aethix

turbid tide
#

well I didn't read it xD I just saw that he is trying it on scoreboard so I assumed maybe the sb is broken or not accepting palceholders

mint fable
#

ye

golden cairn
#

is there a placeholder to check if a player is wearing a certain item? CheckItem seems to check in the entire inventory, can't see a modifier for a slot

austere hawk
#

@turbid tide it all works fine on scoreboard

tender vaporBOT
#

@austere hawk,

Hey!

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

austere hawk
#

OH

#

I FOUND IT

#

I THINK

#

@mint fable @trim mist

tender vaporBOT
#

@austere hawk,

Hey!

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

austere hawk
#

u need to put in which servers to track!

#

right?

#

or not anymore?

#

You need to specify the exact name of the server you want to check (case sensitive) also

mint fable
#

uh

#

no

austere hawk
#

ohw

#

frick

#

i though i had it XD

mint fable
#

i think that's for total

#

you can try it tho

austere hawk
#

ill try it

mint fable
#

🤷‍♂️

#

i didn't see anything about that, but it's possible

austere hawk
#

ill just try

mint fable
#

yep

trim mist
#

Pls no tag anymore today. Got an exam in 30 minutes.

turbid tide
#

just close discord

#

or delete your account xD

#

good luck btw

trim mist
#

I have to use discord for the exam

#

I just turned off all notifications for pings

brisk coral
#

gl

austere hawk
#

goodluck glare!

#

ive changed:
bungee: check_interval: 30
to
bungee: tracked_servers: - Lobby - Kingdom - Survival - KitPvP check_interval: 30

#

no error in console

mint fable
#

?codeblocks

tender vaporBOT
#
FAQ Answer:

Use codeblocks for formatting code or configuration files:
```<language name>
<your code here>
```

For example:
```yaml
test:

  • “hi”
  • “there”
    ```

Produces:

test:
- “hi”
- “there”```
austere hawk
#

i know how they work lol

#

but

#

@mint fable is it possible that placeholderAPI has a refresh time?

tender vaporBOT
#

@austere hawk,

Hey!

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

austere hawk
#

and can i lower it?

#

becaus parsing %bungee_Lobby% does give 4 (correct number)

#

but on scoreboard u saw scoreboard refresh a few times at 3 and refreshes later to 4

sharp jay
#

@austere hawk check the config

austere hawk
#
  bungee:
    tracked_servers:
    - Lobby
    - Kingdom
    - Survival
    - KitPvP
    check_interval: 30```

changed it to 1
#

the tracked servers doesnt make a diffrence XD

mint fable
#

why are you doing check_interval 1

#

that's insanely fast

#

I recommend not checking that often

#

I'd say 30 or 60 personally

austere hawk
#

idk why else it wouldnt do it becaus %bungee_lobby% does work but %bungee_KitPvP% always gives 0 even when someone online

#

doesnt Papi have to be in the Proxy?

#

ive only got it in the lobby right now

mint fable
#

oh wait you got lobby to work?

#

but kitpvp still doesn't

austere hawk
#

yea

#

i thought i should try it and it gave me the correct answer

mint fable
#

are you on the lobby server?

austere hawk
#

yea

mint fable
#

what if you try it from the kitpvp server

austere hawk
#

/papi parse me %bungee_kitpvp% gives me 1

#

im alone online rn

#

i mean

#

lobby*

mint fable
#

what

#

okay now you confused me

austere hawk
#

bungee_lobby*

mint fable
#

Ok step back

#

go to the lobby server

austere hawk
#

i meant %bungee_lobby% gives me 1 right now

mint fable
#

and run both parse commands

#

and tell me results

austere hawk
#

lobby gives 1 kitpvp 0

mint fable
#

now go to kitpvp and do the same

austere hawk
#

oh gotta install papi on there sec

mint fable
#

what

austere hawk
#

?

#

its a empty server

mint fable
#

i just figured you'd have papi

#

also

austere hawk
#

wait u gotta have papi installed on all servers u trying to find?

mint fable
#

i'm feel you need papi on your kitpvp server

#

I would assume so...

austere hawk
#

i asked that b4 if i had to have it on any other server XD

mint fable
#

didn't ask me

#

that would be my logic

austere hawk
#

just asked in chat

mint fable
#

why never test it tho

austere hawk
#

cuz that admin said it checked through bungeecord itself so i thought okay wont need then

#

or smthng

mint fable
#

I believe he was saying you don't need it on the proxy

#

because I remember you asking about that

#

at least that's how I read it

austere hawk
#

yea also asked that

mint fable
#

idk, give it a try

austere hawk
#

oki

mint fable
#

i don't know if it matters, but it doesn't hurt to try

austere hawk
#

yup

mint fable
#

nah, I don't think it does matter

trim mist
#

Are we still on this bungee placeholder thing?

mint fable
#

but what happens when you type those commands on kitpvp

#

yes we are

trim mist
#

Kk

mint fable
#

because it worked for lobby now

#

but not KitPvP

#

but they were in the lobby

trim mist
#

So does it work for kitpvp if they are on kitpvp

#

Why is it casing

mint fable
#

finding out

#

and casing shouldn't matter

austere hawk
#

i tried lobby and Lobby (its registered as Lobby on bungee) gave same answer

#

will try out but aint got FTP to Kitpvp but ive got ftp to a diff server on the network so gimme a sec

mint fable
#

btw you can remove tracked_servers

austere hawk
#

yea i know

#

it was worth a try

#

yes

#

ive installed it all on a diffretn server and connected it to bungeecord

#

in the diffrent server typing /papi parse me %bungee_ProjectWasteland% does give 1 now

#

im on that server

#

letting a friend join the lobby now checking if i can see it in here and diffrent way around

mint fable
#

ok

austere hawk
#

you sir @mint fable have found yourself a fix! XD it works now :D

tender vaporBOT
#

@austere hawk,

Hey!

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

mint fable
#

what's the fix?

#

@austere hawk

austere hawk
#

i installed placeholderapi on the other server aswell

mint fable
#

ah

austere hawk
#

and it showed up!
on scoreboard

mint fable
#

interesting

austere hawk
#

maybe the plugin in lobby finds one in the other server which the one in the other server can grab the online players sending it over to the lobby

#

make ssense i think

mint fable
#

doesn't make sense for how it's coded

#

unless i'm crazy

#

it's possible

austere hawk
#

true

slate iris
#

%localtime_timezone_614,MM dd yyyy HH:mm z%

#

It's not changing the timezone?

lucid loom
#

Can I track statistics from players for each world apart

#

Like the playtime for the world "survival" and world "skywars" I only can find total of all world. I want more than only time, need a solution for all statistics

turbid tide
#

not rly

#

because Statistic expansion gets the stats from minecraft which combines them.

lucid loom
#

🤔how do big server do it?

#

Or do I need bungeecord for that?

#

I tried perworldplugin but thats outdated

turbid tide
#

idk about stats per world

#

I think they have per server stats

tulip orbit
#
[13:26:36 ERROR]: [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.mcstatistics.StatisticsExpansion
[13:26:36 ERROR]: [PlaceholderAPI] org.bukkit.Material.isItem()Z
#

Any help?

brisk coral
#

wrong version

austere hawk
#

@lucid loom even if u want multiple gamemodes best is to do it on bungeecord

#

wayy more organised instead of having a huge server with 2 servers on it with not much ram,

wraith mulch
#

Is there any placeholder that shows the minimum amount of player and the maximum? If there is, what plugin does it come from?

austere hawk
#

@wraith mulch get the online players and type the max urself XD

#

why need a placeholder to tell whats the max when it doesnt change at all and u set it urself

#

just do like %online_players% / 200 lmao

wraith mulch
#

Yeah but I was hoping that finding that kind of placeholder would allow me to find the plugin that can set the max and minimum player for a world.

#

But true I'll just start of with %online_players% / limit

junior musk
#

%server_online%
%server_max_players%

#

in the Server expansion

#

no plugins needed

wraith mulch
#

No but I want to create an Arena and only show the max and min amount of players in that world.

#

I think I'll just continue using multiverse-Core

junior musk
#

ah in that world

#

I don't think it's possible to have a max amount of players in a world without a plugin

turbid tide
#

%server_online_<world>%

#

this will show how many are in a world

#

right now

wraith mulch
#

Ok thanks for the help👍

turbid kernel
#

Anyone know why vote party won't work on my featherboard?

turbid tide
turbid kernel
#

@turbid tide All done dawg

turbid tide
#

use {placeholderapi_<placeholder>}

#

so when you need help with that

#

you can ask there

turbid kernel
#

Ite sn

#

<3

turbid tide
#

it works?

turbid kernel
#

Lemme see

turbid tide
#

btw on featherboard that is how you use all the palceholders from PlaceholderAPI. Just use {placeholderapi_<placeholder>}

#

without the <> of course

turbid kernel
#

Erm

#

Its just blank

turbid tide
#

can you paste the placeholder you used?

turbid kernel
#
  • "&bVote Party » &6{placeholderapi_voteparty_votesneeded}/200"
turbid tide
#

well votesneeded is not a placeholder from what I can see

#
%voteparty_votes_required_party%
%voteparty_votes_required_total%
%voteparty_player_votes%```
#

these are the placeholder from voteparty

turbid kernel
#

Mhm

trim mist
#

Those are outdated

#

I don't control those

turbid kernel
#

Ahh

turbid tide
#

here you go

#

if you try to use PlaceholderAPI placeholders

#

take them from here

turbid kernel
#

Hmm

#

So it says 36/200 vots

#
  • "&bVote Party » &6{placeholderapi_voteparty_votes_recorded}/200"
#

Will it reset when it gets to 200?

trim mist
#

It'll reset when it gets to whatever the amount is.

turbid tide
#

set in the config.

trim mist
#

200 is hardcoded there, that means nothing to the plugin.

turbid kernel
#

I've added 200 in the config.

#

Dw

#

But will it just go 201 202 or reset after?

trim mist
#

It'll reset

turbid kernel
#

Ite sick, thanks guys. <3

trim mist
#

Yup

frozen mortar
#

is there a placeholder for distance in blocks or at least km? if so do i need an extra plugin? i do not like using statistics cm one 😦

brisk coral
#

use math alongside the statistics

turbid tide
#

you can convert that using js

#

or math

frozen mortar
#

ohh boy ok i will look into that.. i am very new to this. thank you

#

anyone have an example off hand?

#

thank you! had to drop math almost 3 times in my college career so far 0.0

turbid tide
#

%math_[precision:0]{placeholder}/1000% for example

bright moth
#

Who can help me

#

How to disable

#

mobAi

tall hinge
#

can someone write some javascript for me that generates a number between 2 specified numbers because ive been trying for an hour and i dont know anything about js (its for a placeholder)

turbid tide
#
var min = 0;
var max = 101;


function randomInteger() {
  var random1 = Math.random() * (max - min);
  random1 += min;
  return Math.floor(random1).toFixed();
#

this will return a number from 1 to 100

#

@tall hinge

#

you just change the numbers

#

at the top

#

min and max

tall hinge
#

@turbid tide how do i use the placeholder?

#

because its not %javascript_random1% which i thought it was going to be

#

well i got that to work but now it says "Script error" when i papi parse it

#

ok so it was missing a } but now it says this function randomInteger() { var random1 = Math.random() * (max - min); random1 += min; return Math.floor(random1).toFixed(); }

tall hinge
#

@turbid tide do you know why its doing that?

tender vaporBOT
#

@tall hinge,

Hey!

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

turbid tide
#
var min = 0;
var max = 101;


function randomInteger() {
  var random1 = Math.random() * (max - min);
  random1 += min;
  return Math.floor(random1).toFixed();
}

randomInteger();```
#

here

#

that one was not 100% complete

#

you needed to close and call the function

tall hinge
#

it says "Script error"

#

ar min = 0; var max = 101; function randomInteger() { var random1 = Math.random() * (max - min); random1 += min; return Math.floor(random1).toFixed(); } randomInteger();

^ in <eval> at line number 1 at column number 3```
mint fable
#

umm

#

did you not copy the first v

#

@tall hinge ?

tall hinge
#

yea i just realised

#

thanks it works 🙂

mint fable
#

ya... 👍

raven cipher
#

Is there a Bungee Version of the API?

brisk coral
#

atm no

fiery sapphire
#

What is the javascript Placeholders?

#

%javascript_...%

#

what can i type in there?

#

like p.getPlayer();

#

etc

junior musk
#

you have to create a script first

#

and then use the identifier of that script in the placeholder

fiery sapphire
#

Oh ok

#

thanks

#

😄

junior musk
lilac hare
#

Hello! I have an issue where only the ecloud placeholders show up?

#

plugins without ecloud download doesn't work

brisk coral
#

That's the plugins which supplies those placeholders issue then

lilac hare
#

but when i type /papi list, they show up?

untold crater
#

is there a java api to add a papi extension?

#

is it just the standard papi jar that i use?

#

oh nvm found the wiki

warm topaz
#

yeah setup should be all there 👍

untold crater
#

yep thanks

upbeat moth
#

When I do: /papi ecloud download statistic
And after /papi reload
The statistic expansion isn't loaded and I'm in the latest version of PAPI

junior musk
#

use the expansion pinned here

#

and replace the old jar by this one in your Expansions folder in your PlaceholderAPI folder

jolly ore
#

hi can someone help? i downloading factions expansion but it don't show & work

#

i tried to add manually but it still don't work

#

can i tag you @turbid tide @mint fable @carmine veldt @glad glen

tender vaporBOT
#

@jolly ore,

Hey!

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

brisk coral
#

oooooof

turbid tide
#

yeah... xD

jolly ore
#

hm

#

so? can someone gonna help me? :/

#

pf

trim mist
#

Since you felt the need to mass tag, you are going to have to wait for someone from the community to help. They were going to, but your selfish actions determined that you weren't worth their time. Maybe next time you will think before doing something so childish.

jolly ore
#

im wait 16 minutes

#

expansion is don't work

trim mist
#

You can wait another 16. These are volunteers. They work fine, user error.

balmy marten
austere hawk
#

Thank you!

#

I should have linked it now 🙂

trim mist
austere hawk
#

Sure

crisp storm
#

Hey, I'd like to register a new expansion. What do I have to do for it?

mint fable
#

make sure to follow the correct steps for the type of expansion you're making

#

if you have a plugin, put it in an internal class

crisp storm
#

I already made an internal class for it and got it all sorted out already but would like to have it become official

mint fable
#

If you made an internal class you don't need to have it official

#

so I hope you didn't make an internal class then

crisp storm
#

Haha I did- I'm a little confused as to why someone told me my plugin's placeholders didn't work with TitleManager but someone else reported that it worked for them. Both are on 2.10.6. Do you have any ideas?

mint fable
#

I have 0 detail, so no.

#

@crisp storm so you made an internal class in your plugin?

#

Or did you follow the wrong guide?

crisp storm
#

I followed the right one and I made an internal class within my plugin since ages ago. I'm wondering if this is a mistake on my side or theirs as it works for everyone else I've asked about it so far

mint fable
#

Probably on their end

#

Not gonna try to help somebody through another person tho

crisp storm
#

Of course, I'll go through their setup and see if I can figure it out

#

Thanks regardless

orchid marten
#

Hi! I have some problems with Placeholder API

brisk coral
#

Go ahead

orchid marten
#

I run PaperMC, 1.14.4

tender vaporBOT
#
📋 Paste Converted!
https://paste.helpch.at/ohuxobucuw

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

orchid marten
#

here you have the error

brisk coral
#

?ecloudblock

tender vaporBOT
#
FAQ Answer:

Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

orchid marten
#

yeah, but I mean, it is possible to remove that error from the console?

brisk coral
#

Use a plugin which removes certain console messages

orchid marten
#

okay thanks

half cape
#

Is there a placeholder to check the status of a certain player?

brisk coral
#

status?

half cape
#

Like if they are online or offline.

#

Pretty sure that is only for the user using the command

#

Ok nvm I got that to work, is it possible to change the message it displays?

brisk coral
#

javascript

half cape
#

rip I can't stand javascript

brisk coral
#

How come

half cape
#

idk I just never preferred working with it. It's one of those things I guess

brisk coral
#

Quick question, just out of curiosity, what's your standpoint when it comes to Skript

half cape
#

Like do you mean if I know the language or just in general like my opinion?

brisk coral
#

your opinion

half cape
#

I always found it to be confusing and just never took the time to learn it

brisk coral
#

Don't bother, it's shit

#

:))

half cape
#

Well perfect, I guess i'll deal with the message yes with that online placeholder xD

brisk coral
#

I mean I can make you the js if you want

half cape
#

It really isn't a big deal I don't wanna waste your time

brisk coral
#
function formatString()
{
  return "%your placeholder%" === "yes" ? "Yes" : "No";
}
formatString();
half cape
#

so only the yes is being replaced in this code?

brisk coral
#

the return boolean will change the No as well (anything that doesn't equal to "yes" will be changed to "No")

half cape
#

i see