#placeholder-api

150650 messages · Page 118 of 151

mint fable
#

ez

dense trail
#

%utils_parseother:[playerlist_ismembers_0]_statistic_mine_block:dirt%

#

so this placeholder

#

needs to be changed to return 0 if it's empty

mint fable
#

yep

#

%changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_0]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_0]_statistic_mine_block:dirt}%

#

so then

#

jeez

dense trail
#

man how are you so fast

junior musk
#

I think I'm gonna make add config settings to Utils to make shortcuts

#

something like the Shortcut expansion did with arguments

dense trail
#

I need that s hortcut expansion

#

that's going to make my config look so much fucking better

junior musk
#

I'll try to add that directly into Utils

mint fable
#

%utils_parse_math_0:_{changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_0]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_0]_statistic_mine_block:dirt}}+{changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_1]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_1]_statistic_mine_block:dirt}}+{changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_2]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_2]_statistic_mine_block:dirt}}+{changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_3]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_3]_statistic_mine_block:dirt}}+{changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_4]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_4]_statistic_mine_block:dirt}}%

#

😂

junior musk
mint fable
#

i did variables actually

#

with this exact thing

junior musk
#

that way you won't have to make 100 files for each placeholder

dense trail
mint fable
#

didn't know about shortcut

junior musk
#

instead of having a file for the parseother placeholder with playerlist_is_members_1, 2 etc, you have shortcut_file:1 and use {0} in the file to get the 1st arg

mint fable
#

ooh shortcut is cool

#

with arguments

junior musk
#

indeed

dense trail
#

ok so the placehodler works now but the addition still doesn't

mint fable
#

hmm

dense trail
#

1s

#

uploading image

austere hawk
#

Hey!

dense trail
junior musk
#

try the ChangeOutput placeholder separately in parse

austere hawk
#

They can use the EssentialsX GeoIP

#

To get the timezone of the player according to his ip

toxic stag
#

Hi, is there a way to round numbers only to the nearest multiple of 5 (or any number) in the math expansion? Tried to check the wiki for all types of rounding behavior but the link doesn't seem to lead anywhere.

mint fable
austere hawk
#

Hi cj

mint fable
junior musk
dense trail
mint fable
#

ah ya

#

let's see

#

divide by 5, multiply by 5

austere hawk
#

Hi?

mint fable
#

that would roudn down

junior musk
#

1 through 5

#

or only 1?

austere hawk
#

I have asked and you can use the EssentialsX GeoIP API to get the timezone of the player

dense trail
#

https://imgur.com/a/H596utW

Corresponds with

      - ""
      - "&8Slot Information"
      - ""
      - "&fMember 0: %changeoutput_ignorecase_input:{playerlist_ismembers_0}_matcher:offline_ifmatch:&cN/A_else:{playerlist_ismembers_0}% &7= &fMined Dirt: &e%changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_0]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_0]_statistic_mine_block:dirt}%"
      - "&fMember 1: %changeoutput_ignorecase_input:{playerlist_ismembers_1}_matcher:offline_ifmatch:&cN/A_else:{playerlist_ismembers_1}% &7= &fMined Dirt: &e%changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_1]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_1]_statistic_mine_block:dirt}%"
      - "&fMember 2: %changeoutput_ignorecase_input:{playerlist_ismembers_2}_matcher:offline_ifmatch:&cN/A_else:{playerlist_ismembers_2}% &7= &fMined Dirt: &e%changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_2]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_2]_statistic_mine_block:dirt}%"
      - "&fMember 3: %changeoutput_ignorecase_input:{playerlist_ismembers_3}_matcher:offline_ifmatch:&cN/A_else:{playerlist_ismembers_3}% &7= &fMined Dirt: &e%changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_3]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_3]_statistic_mine_block:dirt}%"
      - "&fMember 4: %changeoutput_ignorecase_input:{playerlist_ismembers_4}_matcher:offline_ifmatch:&cN/A_else:{playerlist_ismembers_4}% &7= &fMined Dirt: &e%changeoutput_equals_input:{utils_parseother:[playerlist_ismembers_4]_statistic_mine_block:dirt}_matcher:_ifmatch:0_else:{utils_parseother:[playerlist_ismembers_4]_statistic_mine_block:dirt}%"
      - ""
      - "Total Mined Dirt = %utils_parse_math_0:_{utils_parseother:[playerlist_ismembers_0]_statistic_mine_block:dirt}+{utils_parseother:[playerlist_ismembers_1]_statistic_mine_block:dirt}+{utils_parseother:[playerlist_ismembers_2]_statistic_mine_block:dirt}+{utils_parseother:[playerlist_ismembers_3]_statistic_mine_block:dirt}+{utils_parseother:[playerlist_ismembers_4]_statistic_mine_block:dirt}%"
      - ""
austere hawk
#

So the localtime placeholder might work maybe

mint fable
#

%math_0:_(54/5)*5%
@toxic stag would this work?

#

or am i trippin

austere hawk
#

Great, I like to be ignored

junior musk
#

doubt ++

#

wait you may have something actually cj

#

math in math

mint fable
sharp bloom
#

💀

mint fable
#

there's so much going on right now

#

and you act as if the world is revolving around you

#

be patient

junior musk
#

%math_0_{math_0_54/5}*5%

mint fable
#

I'll read your messages about localtime

austere hawk
#

It literally helps me by ignoring stqm

mint fable
junior musk
#

because the first math rounds 54/5, and then you multiply the rounded easily by 5

mint fable
#

ah, you can use ROUND()

#

ROUND(value, scale)

junior musk
#

otherwise, /5*5 will be the same thing

mint fable
#

ya, I was gonna see what happened and test

junior musk
dense trail
#

Tanguy did you see the screenshot + corresponding placeholder

mint fable
#

harder to understand lol

#

you forgot to use changeoutput down below

junior musk
#

2sec

dense trail
#

oooooh

mint fable
#

you didn't switch out the bottom placeholder yet

dense trail
#

I see... couldn't see it before

junior musk
#

yeah changeoutput isn't used in the total placeholder

dense trail
#

it works!!!!

junior musk
#

gg

#

utils handling this stuff so well for some reason

#

I thought it'd break

dense trail
#

its so clunky though

#

so long

#

I really need this to be shorter

junior musk
#

French qualityfingerguns

#

shortcut expansion

mint fable
#

@austere hawk It would probably be best to have a separate expansion from localtime that accesses essentialsgeo

junior musk
#

use the utils_parseother a shortcut file with an argument

junior musk
dense trail
mint fable
#

localtime would work best without a dependency, but there is definitely room for essentialsgeo support

mint fable
#

Again, everything is volunteer work here

junior musk
#

we know

#

no need to remind us again

mint fable
#

It requires somebody with an interest in making such a thing, tanguygab will take a look it seems

austere hawk
toxic stag
mint fable
#

let me look at the ROUND

junior musk
mint fable
#

oh wait

#

actually

#

try this

austere hawk
mint fable
#

%math_0:_ROUND(54,5)%

mint fable
#

we have the essentials expansion already, as tanguygab will propose a fork to

#

everything has it's place

mint fable
#

it might be that easy

#

i'd test with like 51 and 54 for example fyi

#

just to make sure

austere hawk
junior musk
#

well, yeah, what else would it be for?

austere hawk
#

How?

junior musk
#

what?

austere hawk
#

I think you should create a placeholder to get the local time and another to get the timezone

junior musk
#

you asked if the placeholder was to get the localtime,
I said yes and asked you what you expected instead

austere hawk
#

Thus, to be able to verify things, the placeholder to obtain the timezone and the one to obtain the local time, well, to obtain the local time

junior musk
#

yes

#

that's the point

#

there's no reason that I would not add that

austere hawk
#

%essentials_geoip_timezone% = timezone
%essentials_geoip_localtime% = hour

junior musk
#

for the 3rd time, yes

austere hawk
#

Could you ping me when you've done it or if you couldn't please? Although I think you can do it

toxic stag
austere hawk
#

help

#

What is the placeholder to get the date the player first joined

#

If possible custom format

restive nova
#

String expansion is outdated in latest version of papi

junior musk
junior musk
restive nova
#

Failed to find expansion in xxxxx

junior musk
#

works fine for me

restive nova
#

didn't work

#

Failed to find expansion in file xxxx

junior musk
#

send the error

#

?paste

tender vaporBOT
restive nova
tender vaporBOT
junior musk
#

Have fun

#

I have no idea if it works, and I have no way of testing it

#

so if it doesn't work, I can't help

restive nova
# tender vapor

UnsupportedClassVersionError: META-INF/versions/9/module-info has been compiled by a more recent version of the Java Runtime

#

Why it runs well in my local server

#

also java 8

waxen shell
#

Ouh, i just tried this and it would have worked perfectly but i have a problem u_u

Now when i PM (/msg) with essentials it shows as:

No Medals Yacubical, What should i do?

junior musk
#

?imgur

tender vaporBOT
junior musk
#

can you send a screenshot?

waxen shell
junior musk
#

is that your LuckPerms prefix?

waxen shell
#

Yes

junior musk
#

it's Essentials's /msg right?

waxen shell
#

yes

junior musk
#

try to go in Ess' config and disable change-displayname

waxen shell
#

I'm going to try now :3

#

thanks

waxen shell
junior musk
#

what?

waxen shell
junior musk
#

give it to the default group

waxen shell
#

It can't be in the default group because that would make the (No Medals) imposible to remove, which makes so you would have the (No medals) while having (medals)

junior musk
#

what does that mean

waxen shell
#

they stack right?

junior musk
#

what stacks

waxen shell
#

like having the lp prefix for various groups

#

or only the most important one

junior musk
#

unless you use tracks and configure the plugin to stack prefixes, no they don't

#

only the most important one will show

waxen shell
#

Ohh, it would make it a lot easier

#

since i'm trying to give "medals"

#

except that the "no medals" would remain with that approach

#

@junior musk this is what i'm trying to do o,o

junior musk
#

you could use metas instead

#

/lp user <player> meta set <name> <value>

#

and then retrieve the value with %luckperms_meta_<name>%

waxen shell
#

Oh!, tysm

#

@junior musk Two last things, how do i give this permisson to everyone on start?, (without the default group) to be able to remove it)

and, how to i give them order?

#

like, the metas, can they have different left to right priority?

junior musk
#

they'll be overriden when you set it to the player

austere hawk
junior musk
waxen shell
austere hawk
#

I will try 🙂

junior musk
#

I see what you're trying to do

#

I don't think LuckPerms would be the best choice then

waxen shell
#

:0 first time reading that lol

#

how would you suggest i'd do it?

#

--- but now that i think about it, you said that "they'll be overriden when you set it to the player"

then, when i give any medal it could also set the "meta.nomedal." would that work as empty?

#

Ohh, i just tried that, it works

junior musk
#

I was thinking of having 1 meta called "medal" which is set to No Medal by default, and then you get Some Medal, then Some Medal++

#

so only one medal at a time

#

but having multiple medals would be more complex, and I don't think that's a job for LuckPerms

#

you should look into other plugins

waxen shell
#

oh, you don't have a suggestion?

#

tysm either way

#

if you don't know

junior musk
#

no idea

waxen shell
#

--- I thought metas would be able to display all at once

#

i got it now!, thanks!

austere hawk
#

The placeholders are %essentials_geoip_timezone%
%essentials_geoip_localtime%

austere hawk
#

And they all return the placeholder, except with %essentials_timezone% which returns an empty message

junior musk
#

then it doesn't work

austere hawk
#

And are you sure you did everything right? Was there an error writing the code?

junior musk
#

I have no idea

#

wasn't even able to test it because GeoIP didn't even retrieve my location

#

check /whois, if your country isn't listed there then GeoIP isn't working

austere hawk
#

And the PlaceholderAPI devs can't do the update?

junior musk
#

it doesn't look like a PlaceholderAPI issue

#

just EssGeoIp not working

#

and though I did set up maxmind and its key correctly

#

maybe it's just because I'm using it on localhost

#

but I don't have a server so I can't test it

austere hawk
austere hawk
vivid sparrow
#

@austere hawk Reason to add?

austere hawk
vivid sparrow
#

Ok and? Open an issue on github. You might need something installed for essentials for that to work

austere hawk
#

For a number of people using %localtime_time% returns the default time to all players

austere hawk
vivid sparrow
#

Essentials geo stuff depend on a third party service that you need to download

#

And localtime doesnt work fine on shared host if it is the expansion i think you are talking about

austere hawk
#

Well, I have EssentialsX and EssentialsX GeoIP

vivid sparrow
#

You need to download some geo database

austere hawk
#

They first said that because of the web page they use has a limit

vivid sparrow
#

You said you are using some company to host your server, if you have a game panel that means you are using a shared host

#

A shared host has multiple servers (physical servers, like computers) and they sell small parts of them to people

austere hawk
#

Well, slynode and the free server

vivid sparrow
#

You get 10GB of ram and some of the cpu, another gets X and so on

austere hawk
#

But I'm not the only one with this problem.

junior musk
vivid sparrow
#

the requests to made to ipapi.co come from the same IP address and the service has a limit of requests

junior musk
#

but because they didn't use a key, they reached the ratelimit

#

yeah

vivid sparrow
junior musk
#

all in all, we tried to switch to EssGeoIP, it downloaded the database for me but it didn't retrieve my location (maybe because of localhost) so idk if it works or not

vivid sparrow
#

I dont think that using an api key will do anything, since the same amount of requests will come from the same IP but worth trying ig

junior musk
#

and idk about their set up so idk

vivid sparrow
junior musk
#

user.getGeolocation returns empty stirng

austere hawk
#

I'm not understanding anything hehe

vivid sparrow
#

What does, uh, /whois say? I dont remember if and where they show geo stuff in essentials

junior musk
#

it's the right command but it doesn't even appear there

austere hawk
junior musk
#

for me, I think it's because I'm using localhost, but it didn't seem to work for Rekic either, though they didn't send a screenshot

austere hawk
junior musk
#

of course

#

I'm op and have *

vivid sparrow
#

Try to use the command rekic

#

See if ess tells you the location and whatever else

junior musk
#

or check /papi parse me %essentials_geolocation%

#

if it returns blank, then it didn't work

austere hawk
#

The key must end in _mmk

austere hawk
#

I don't know if it's the key

sweet sleet
#

yo

#

does anyone know a place holder that instead of showing 99000 (money) it can show 90k instead?

junior musk
#

_formatted

#

vault_eco_balance_formatted

sweet sleet
#

okay ty

sweet sleet
#

like the command

austere hawk
#

Your key ends in _mmk?

#

Tanguyab

sweet sleet
austere hawk
#

/papi ecloud download vault

#

/papi reload

#

%vault_eco_balance_formatted%

junior musk
junior musk
#

the database was downloaded correctly

#

it's just not getting my location

sweet sleet
#

@junior musk still doesnt work

#

can you tell me what exactly i need to do

#

i added it to the scoreboard.yml

#

then i did /papi ecloud download vault

junior musk
#

what placeholder were you using before?

sweet sleet
#

%vault_eco_balance

#

%

#

or the unformatted one

junior musk
#

and it worked ?

sweet sleet
#

wtever

sweet sleet
junior musk
#

can you send a screenshot of the scoreboard?

#

and one of /papi list

#

?imgur

tender vaporBOT
sweet sleet
#

@junior musk

junior musk
#

with the formatted placeholder I mean

#

and a screenshot of /papi list too

sweet sleet
junior musk
#

you're using %vault_eco_balance% right?

sweet sleet
#

yes

junior musk
#

send a screenshot with vault_eco_balance_formatted

sweet sleet
#

i need vault_eco_balance_formatted

junior musk
#

now send a screenshot of the scoreboard with vault_eco_balance_formatted

sweet sleet
#

WHERE

sweet sleet
#

this

junior musk
#

you just use it

#

in your scoreboard

#

instead of vault_eco_balance

sweet sleet
#

do i find it in the yml

#

btw

#

that pic that i sent earlier is with the formatted one

junior musk
#

dafuk

#

send your scoreboard file

sweet sleet
#

ok

junior musk
#

?paste

tender vaporBOT
sweet sleet
junior musk
#

what plugin is that?

sweet sleet
junior musk
#

and send a screenshot of the chat output of /papi parse me %vault_eco_balance_formatted%

junior musk
#

you didn't save the file

sweet sleet
#

i did save the file @junior musk

#

it just shows that

junior musk
#

did you reload simplescore after that?

sweet sleet
sweet sleet
#

oh fuk

junior musk
#

the placeholder shows the correct output

sweet sleet
#

i didnt

junior musk
#

gg

sweet sleet
#

uhhhhhhhhh

#

wow

#

you win

#

lmao

#

ty

#

and gg

austere hawk
#

Well basically I'm screwed

#

localtime returns the default time to all players and EssGeoIP doesn't work

tender vaporBOT
austere hawk
#

The city, town does not appear

#

I tried to ask for help in ess but it was a complete failure

tender vaporBOT
vivid sparrow
#

well that means you didn't setup the geo stuff right

austere hawk
#

It does not throw me any error, the key is the one generated by maxmind

#

The show-cities option: set to true

#

I would send you an img but I don't want to download imgur

vivid sparrow
#

imgur is an online service

austere hawk
#

I have to register

#

and I do not want

sharp bloom
#

wat since when

vivid sparrow
#

use anything else

junior musk
#

what files do you have in your EssentialsGeoIP folder? @austere hawk

junior musk
#

if the db was downloaded, then it means that the key works, but the plugin isn't for some reasons

austere hawk
#

and config

junior musk
#

so geoip is broken or something 🤷

austere hawk
#

Couldn't they use the GeoIP API directly?

vivid sparrow
austere hawk
junior musk
#

yeee

junior musk
#

the db was downloaded

austere hawk
#

Since localtime doesn't work for me too

junior musk
#

jus essgeoip doesn't fetch location for reasons

vivid sparrow
#

localtime has nothing to do with essentials

austere hawk
vivid sparrow
austere hawk
#

Only %localtime_time% returns the server's default time to everyone

vivid sparrow
#

idk how geoip works but your server might block external connections

austere hawk
junior musk
vivid sparrow
#

dont you download the database manually?

junior musk
#

no

#

Ess does it for you

vivid sparrow
#

nvm I see

junior musk
#

that's why it requires the key

#

which means that it's EssGeoIP that's not fetching locations from the db correctly

austere hawk
#

And ask for help in ess in useless

sharp bloom
#

the support is very nice in essx wym ;-;

austere hawk
sharp bloom
#

have u tried looking at their servers msgs related to the geoip thingie?

austere hawk
#

No

#

I left the server frustrated

sharp bloom
#

looking at old msgs always help ;-;

#

thats how i mostly find solutions for itemsadder

waxen shell
#

Could somebody help me give a maximum to this placeholder?:

%realtps_tps_0%

I want to give it a maximum of 20, as it looks very ugly when it shows for example 25/20 for a second for compensation

junior musk
#

isn't it the whole point to that placeholder? showing the realtps ?

#

use %server_tps_1% instead if you want up to 20

waxen shell
#

I use it because it doesn't shows the decimal points + it shows drops faster

waxen shell
junior musk
#

then use %math_0_MIN(20,{realtps_tps})%

waxen shell
#

MIN?

junior musk
#

yeah

#

if the placeholder returns 25, 20 will show instead right?

#

so between 20 and 25, 20 is the minimum

#

so that's the one that should be shown

waxen shell
#

Ohh, okk, tysm!

#

Yeah, it looks waay better this way

#

so we know when it is dropping, but it doesn't ruin the format xd

coarse oar
#

Is there any extension that does this?
%list_STONE,DIRT,GRASS_0%

Output: STONE

%list_{string)_{index}%

junior musk
#

I added that in my playerlist expansion a few days ago

#

download it
https://api.extendedclip.com/expansions/playerlist/
do /papi reload
go in your PAPI config, find the playerlist section and under lists add ```yml
playerlist:
lists:
blocks:
type: CUSTOM
input: "STONE,DIRT,GRASS"
separator: ","

/papi reload
and use %playerlist_blocks_0%
sharp bloom
#

damn that custom type has been saving lives lately

junior musk
#

xD

sharp bloom
#

great job tanpepe_happy

coarse oar
junior musk
#

not within the placeholder

#

only in the config

#

though you can use placeholders as input

austere hawk
#

Can I make a leaderboard menu?

#

slot 0 player with the most kills and item that is the player's head

foggy gorge
#

What excellentcrates keyall?

fast bridge
balmy marten
#

Considering it's only be found on 1 server, it may only be a dev build or a random test jar someone was working on

#

and not actually a real expansion

fast bridge
#

thanks for your answering

tender vaporBOT
untold remnant
#

Hello, would it be possible to have the placeholders of the chatreaction plugin?.

brisk lava
#

Is there any way to not allow player chat contain %placeholder% ?

austere hawk
#

@junior musk When you tried EssentialsX GeoIP on localhost it was in Java right?

lofty arch
#

PlaceholderAPI.setPlaceholders(player, "%vault_prefix%")
why isnt this getting the placeholder?

mint fable
lofty arch
#

java, and yeah, %vault_eco_balance_formatted% works fine but not that

mint fable
#

using luckperms?

lofty arch
#

yea

mint fable
#

luckperms is a little interesting since it can work without vault, try the luckperms placeholders

#

full list of placeholders on their wiki, but %luckperms_prefix% should work

lofty arch
#

alr ty

hollow nova
#

how to get placehoderapi of tiktok stream

wind ridge
#

how could i do to create a placeholder ?
like somthing like this

'%custom_world_or_claim%':
    - set:
        world: "Aetheria"
      if:
        in-world: "world"
    - set:
        world: "Abyssal"
      if:
        in-world: "world_nether"
    - set:
        world: "Voidreach"
      if:
        in-world: "world_the_end"
    - set:
        world: "Spawn"
      if:
        in-world: "spawn"
    - set:
        claim_owner: "%griefprevention_currentclaim_ownername%"
      if:
        in-claim: true
#

skript?tab?essentials?papi?

elder stump
#

Hey, how can I get the server's motd with javascript?

vivid sparrow
#

BukkitServer.getMotd()

elder stump
#

ty

#

also, I try to return the expiry time of the highest group by weight, when I try this it returns a blank nothing, if I test it myself with an actual input it works

#
    var playerGroup = "%luckperms_highest_group_by_weight%";
    return "%luckperms_group_expiry_time_" + playerGroup + "%";
}

group();```
junior musk
#

try PlaceholderAPI.setPlaceholder(BukkitPlayer, "%"+luckperms_group_expiry_time_" + playerGroup + "%")

elder stump
#

Caused by: org.openjdk.nashorn.internal.runtime.ECMAException: TypeError: PlaceholderAPI.setPlaceholder is not a function

junior musk
#

setPlaceholders* sorry

elder stump
#

Caused by: org.openjdk.nashorn.internal.runtime.ECMAException: TypeError: PlaceholderAPI.setPlaceholders is not a function

#

same error 😦

junior musk
#

try PlaceholderAPI.static.setPlaceholders

elder stump
#

niceee

#

works, thanks

junior musk
#

👍

mental girder
#

my placeholders don't work, when I put the coordinates it gives me 0 74 0 and I installed the placeholders "player"

sharp jay
#

Going to warn you don't do this

#

You did it twice

wind ridge
#

my bad

finite shoal
#

Failed to load expansion PowerBoard. Identifier is already in use. how do i fix this

vivid sparrow
#

Downgrade to papi 2.11.2

finite shoal
#

Thank you i appreciate it

#

i still get the same message

#

and the placeholder doesnt work

frank yarrow
#

hey is there any placeholder for blocks broken because in my server the skript clear drops then gives the player the block so %static_blocks_mined% not working

#

help

frank yarrow
#

problem solved

covert raft
#

is there any placeholder to check whether player is elytra flying?
%player_is_flying% only checks player is using creative fly but cannot check player is elytra flying / gliding

rugged walrus
#

what is the placeholder for tool's max/left durability?

junior musk
junior musk
rugged walrus
mint fable
#

@rugged walrus this

rugged walrus
#

hmmm weird, i have it installed but the current durability does not work

mint fable
#

/papi parse me %player_item_in_hand_durability% what does it say

#

and what about /papi parse me %player_item_in_hand_data%

rugged walrus
#

oh wait it does work i just need to use the tool for it to show up

junior musk
#

yeah because it takes the item in hand

#

if you don't have anything in hand, it won't work

sharp bloom
#

how exactly do i use the % in math? like 100-10%

#

for example i ve tried the %math_100-10[prc]% but it returns Cause: '100-10%' is not a valid Math expression.

mint fable
#

because it's not

sharp bloom
#

then how do i do it :/ ?

mint fable
#

what do you expect 100-10% to return?

sharp bloom
#

90?

mint fable
#

do 100*0.9

#

or 100-100*0.1

#

% is modulo

#

5%3 = 2

sharp bloom
#

wat ok ye makes sense i didnt think about that

#

thank uu cj

olive flax
#

anyone know how to do rainbow gradient for 1.16.5 ?

plush dove
#

Anyone know of a placeholder/plugin that allows you to have per player text replacements for a placeholder? So like %placeholder% would show "Text1" for player a if condition = x, but otherwise show "Text2"

#

ok prolly changeoutput

junior musk
#

yeah ChangeOutput is the best way

plush dove
#

But if anyone knows of a plugin that does that or something similar let me know

junior musk
#

there isn't as far as I know

#

well there's TAB but unless you're already using it I doubt you'd want to install it just for that xD

plush dove
#

huh wait TAB can do that?

junior musk
#

yeah, it's got a feature called placeholder-output-replacements

plush dove
#

kk let me take a look, thank you

junior musk
#

it'll only change the value of placeholders within TAB, but you can make it in other plugins by enabling TAB's PAPI expansion in its config (register-tab-expansion: true) & using %tab_replace_<placeholder>%

plush dove
#

oh never knew of that, thankees!

#

ok so,

    true: ' &o[AFK]&r'
    false: ''```
I can only use %floodgate_device% once, what I need is a custom placeholder like %mining1% that then checks the floodgate device placeholder and returns an output based on that
#

basically need more than 1 of the floodgate device variations

junior musk
#

uh

#

no

#

use %tab_replace_floodgate_device%

plush dove
#

yea

junior musk
#

the output of %floodgate_device% is automatically replaced ONLY in TAB

#

in other plugins, you can still use %floodgate_device% alongside %tab_replace_floodgate_device% to have the true/false & [AFK] values

tardy sundial
#

what is the placeholder for player?

junior musk
#

for player name ? %player_name%

tardy sundial
#

thanks a lot

plush dove
junior musk
#

oh

plush dove
#

I could use changeoutput but I'm worried that it might take up too much performance since I need to use it a lot

junior musk
#

then you can use TAB's conditions feature

#

lol

#

xD

#

and then use %tab_placeholder_condition:<name>%

plush dove
#

awesome thanks

sour parrot
#

Are there a way to disable the "Sucessfully registered the expansion: " message for specific expansions via some java code?

balmy marten
#

You'd be better off forking papi to remove the message

vivid sparrow
#

Yeah the server owner is meant to see when an expansion was loaded

wet basinBOT
#

@junior musk Unknown expansion.

sharp bloom
#

why isnt there an option for not equals in the changeoutput expansion :/

#

ye nvm i forgot the _else can be used in these situations

delicate sluice
#

is there a way to add place holders manually, or a specific extention I need? I have to have something like %luckperms_high_to_low% which is in my config for TAB and looks something like ```sorting-types:

  • GROUPS:owner,co-owner,logistics,coordinator,head-admin,admin,head-mod,mod,helper,builder,default
  • PLACEHOLDER_HIGH_TO_LOW:%luckperms_highest_group_weight%```
    But it didn't work and co owner is in fact still below helper? Does that place holder need to be in config of papi instead?
mint fable
#

@delicate sluice this

delicate sluice
#

ahahaha. Thank you :P

hoary plank
#

How can I get the placeholder for checking how much totems the killer of a player had?

#

player1 has died to player2 Totems left: (placeholder)

sour lotus
#

Hi everyone, I have a problem with custom placeholders. When I check with /papi parse, everything works fine. But when I insert the placeholder in a custom scoreboard (made by me), the placeholder is not modified

junior musk
#

you have to make your scoreboard plugin parse placeholders

sour lotus
#

oh, it work

#

thank you ^^

dense trail
#

Not sure if possible with a whole lot of messing with papi, but is it possible to create a command that saves the argument to playerdata?
e.g.
/status <Message here> -> /status Hello!

/viewstatus -> In chat: Hello!

hidden notch
#

One question, how to use math placeholders, is there any wiki or documentation, I can't find it.

hidden notch
#

Thanks

kindred flint
#

I have this sidemod : Poke Tracker (requires Placeholder API and SQL)
that says requires placeholder API and SQL.
I've done the SQL part it works well and downloaded placeholder API plugin.
but I don't know what should I do with this placeholder API can someone help please?

#

WonderTrade (requires Placeholder API and SQL)

#

and this too

vivid sparrow
#

If it is a mod that requires papi, it most likely means the rip-off made for forge or whatever other platform, not this one.

tender vaporBOT
kindred flint
#

I guess my english wasn't enough to understand this 😄

#

what is rip-off means

vivid sparrow
#

a copy

kindred flint
#

I've tried it too but still didn't work

#

can you pls help with screen share I've tried to fix this for 1-2 days non stop

vivid sparrow
#

Contact the developer of Poke Tracker. I don't have experience with mods.

kindred flint
#

okay thanks

#

how can I use this placeholder API for any plugin

#

I have cratesplus plugin and it says that I can configure it with placeholder but I don't know how to use those placeholders

#

There are many placeholders that can now be used withing the config and messages file, placeholders are as followed:
%name% - Replaces with the players name, Example: "Notch".
%displayname% - Replaces with the players display name, Example: "[Owner] Notch".
%uuid% - Replaces with the players UUID.
%crate% - The crate types name.
%prize% - The name of the winning.
%percentage% - Percentage of the winning, useful for "Chance Message".
%rand;100;500% - Generates a random number between two numbers, example is between 100 and 500.

#

it says this thing for example

#

I wanna change the percentages of the items but I don't know anything about how doing it

vivid sparrow
#

Remove the formatting please

#

those are internal placeholders

#

papi placeholders are like %player_name%

#

%identifier_arguments%`

kindred flint
#

so should I wrote them ingame like /papi ecloud %percentage%

kindred flint
kindred flint
#

[13:25:06 ERROR]: Cannot load plugins/CratesPlus/config.yml
org.bukkit.configuration.InvalidConfigurationException: while parsing a block mapping
in 'string', line 42, column 9:
Type: ITEM
^
expected <block end>, but found '-'
in 'string', line 49, column 9:
- %percentage% : 3
^

kindred flint
#

I've done it

austere hawk
#

Placeholder that returns yes or no if a placeholder is greater than or equal to a number

junior musk
#

changeoutput

austere hawk
junior musk
#

idk

austere hawk
junior musk
#

I know what that is, but idk if that's possible

austere hawk
#

Or something other than changeoutput

junior musk
#

why ?

austere hawk
#

?

junior musk
#

why can't you use ChangeOutput?

junior musk
#

ChangeOutput works with that

#

=

austere hawk
#

!equals or !=

#

?

junior musk
#

uh?

#

earlier you asked for greater than or equal right?

#

and if you're looking for not equals, just switch the values of ifmatch and else

austere hawk
junior musk
#

then switch the ifmatch and else

austere hawk
#

If that's what I thought

austere hawk
junior musk
#

options: >= and matcher:10 ?

austere hawk
junior musk
#

ah

#

idk then

austere hawk
#

If it is greater than 10-20

#

If it is less than 10 or greater than 20, the matcher else is returned

austere hawk
junior musk
#

I understand that

#

but I don't know how to do it

#

you don't have to ping me everytime

austere hawk
#

You must have only one answer that may be several.

junior musk
#

I get what you want

#

I don't know how to do it

#

I already told you that

#

please stop pinging me everytime for everything

tranquil dove
#
[PlaceholderAPI] Failed to load expansion votingplugin. Identifier is already in use.
[PlaceholderAPI] Cannot load expansion votingplugin due to an unknown issue.```
#

on server restart

balmy marten
#

Two expansions have the same Identifier

vivid sparrow
#

Downgrade to papi 2.11.2 for now

mint horizon
#

is it bug that String expansion's all placeholders doesnt support all placeholders? such as Player expansion:

/papi parse me %string_contains_{player_name}_Sha% %player_name%
``` this cmd returns "no Sharrk_kunjang"
#

and it returns "yes" when i manually replace {player_name} with {Sharrk_kunjang}

junior musk
#

maybe it's the other way around?

#

Sha then {player_name} ?

austere hawk
#

yea

sharp bloom
#

wait bruh this looks v helpful ;-;

#

how come i find out about this expansion now :/

#

its reminds of checkitem a little

junior musk
#

lol

ocean beacon
junior musk
#

🤷

ocean beacon
#

maybe it help

#
/papi parse me %utils_parse_string_contains_{player_name}_Sha%
junior musk
#

it shouldn't be necessary

ocean beacon
#

🫡

junior musk
#

because DeluxeMenus' placeholders don't support nested placeholders natively

#

though the String expansion should

elder stump
#

Hey, I have the same issue, how did you fix this?

austere hawk
#

Hey, anyone got any clue why this is broken?

[23:57:42 WARN]:        at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1073)
[23:57:42 WARN]:        at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:248)
[23:57:42 WARN]:        at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:237)
[23:57:42 WARN]:        at DecentHolograms-2.8.3.jar//eu.decentsoftware.holograms.api.nms.PacketListener.hook(PacketListener.java:49)
[23:57:42 WARN]:        at DecentHolograms-2.8.3.jar//eu.decentsoftware.holograms.api.player.PlayerListener.lambda$onJoin$1(PlayerListener.java:24)
[23:57:42 WARN]:        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
[23:57:42 WARN]:        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480)
[23:57:42 WARN]:        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1479)
[23:57:42 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)
[23:57:42 WARN]:        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1393)
[23:57:42 WARN]:        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1170)
[23:57:42 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)
[23:57:42 WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)```
#

It's not allowing me to join a server due to this ^ error code.

mint horizon
golden cloud
#

Hey, does parseother ecloud extension still works on 1.20.1?

mint fable
#

should work fine @golden cloud

golden cloud
# mint fable should work fine <@274032691865976833>
        at ParseOtherExpansion.onRequest(ParseOtherExpansion.java:32) ~[?:?]
        at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.3.jar:?]
        at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.3.jar:?]
        at me.clip.placeholderapi.commands.impl.local.CommandParse.evaluateParseSingular(CommandParse.java:117) ~[PlaceholderAPI-2.11.3.jar:?]
        at me.clip.placeholderapi.commands.impl.local.CommandParse.evaluate(CommandParse.java:57) ~[PlaceholderAPI-2.11.3.jar:?]
        at me.clip.placeholderapi.commands.PlaceholderCommandRouter.onCommand(PlaceholderCommandRouter.java:114) ~[PlaceholderAPI-2.11.3.jar:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
        ... 23 more```
#

I dont know why it caused me this error tho

mint fable
#

which placeholder are you using exactly

golden cloud
#

still provides this error

#

/papi parse me %parseother_azrian_player_name%

#

this is the command

mint fable
#

you're using it incorrectly

#

you need the {}

#

@golden cloud

golden cloud
#

Oh got that i did not see that. Thank god. Thank you so much

wintry smelt
#

excuse me, i have the following setup:

  • velocity proxy with placeholder and placeholderbridge, velocitytab
  • server 1: placeholder and placeholderbridge - Teams Plugin
  • server 2: placeholder and placeholderbridge

How can i make that the placeholders from server 1 work in server 2?

#

on server 1 i see [Teamname] Name in Tablist, on server 2 i see my placeholder %changeoutput_>_input:{betterteams_members}_matcher:0_ifmatch:&7[&r{betterteams_tag}&r&7]_else:%&r%username%

mint fable
#

what is placeholderbridge? @wintry smelt

wintry smelt
wintry smelt
tender vaporBOT
vivid sparrow
#

M<>

deep hollow
#

Hey, anyone knows how to print a percentage symbol inside a changeoutput? Thanks! 🙂

junior musk
#

%ascii_37%

deep hollow
# junior musk %ascii_37%

Thanks! But that one %utils_parse_changeoutput_equals_input:{edprison_percentlevel_prestige}_matcher:100_ifmatch:&e&l/maxprestige_else:{edprison_percentlevel_prestige}{ascii_37}%

#

shows &e&l/maxprestige%

#

and I didn't add ascii on ifmatch

junior musk
#

what are you trying to do?

deep hollow
#

if doesn't match 100, add a % after the {edprison_percentlevel_prestige}placeholder

#

if it match 100, I'll be putting a text instead of the number

junior musk
#

why don't you just add the % after the placeholder?

deep hollow
#

because it shows like that

junior musk
#

uh

#

also I don't think you need Utils

#

changeoutput supports nested placeholders directly

#

%changeoutput_equals_input:{edprison_percentlevel_prestige}_matcher:100_ifmatch:&e&l/maxprestige_else:{edprison_percentlevel_prestige}{ascii_37}%

#

try that

#

and also show me the output of /papi parse me %edprison_percentlevel_prestige%

deep hollow
#

oh it works now

#

it was due utils lol haha

#

sorry to bother you!

junior musk
#

Idk why Utils would cause an issue with that

#

oh actually maybe

#

yeah maybe it was because of the ascii placeholder

#

well

#

nah idk

#

anyways

#

not needed

deep hollow
#

yeah I think it's because utils is reading that % and not as a placeholder

#

it works without utils, thanks for the help! 😄

calm jetty
#

what ecloud should i download to make %afk% work?

junior musk
#

%afk% is not a PlaceholderAPI placeholder

#

it adds the -papi <expansion> command to see an expansion's placeholders easily

calm jetty
#

i use a tab

#

how am i gonna remove this bro

junior musk
#

what's your AFK plugin?

calm jetty
#

i don't have one

#

essentials

#

it's essentials

#

yo

#

this plugin is too good

#

why this is not working

#

'%essentials_afk%':
true: ' &o[AFK]&r'

eternal obsidian
#

what are you trying to do

calm jetty
#

i have this tab

#

close to my user there is this %afk%

junior musk
#

/papi parse me %essentials_afk%

#

what does it return?

#

iirc it returns yes/no

#

if that's the case, you have to use yes/no in your replacements instead of true/false

calm jetty
#

%essentials_afk%

junior musk
#

you didn't download the expansion then

#

see the commands at the end of the bot's msg

calm jetty
#

it says no

junior musk
#

then use yes/no in your replacements instead of true/false

calm jetty
#

still doesn't work

#

i only see <username>%afk%

junior musk
#

you didn't replace %afk% by %essentials_afk% in your tabsuffix

#

head over to your groups.yml, Ctrl+F %afk% and replace it

calm jetty
#

'%essentials_afk%':
yes: ' &o[AFK]&r'
no: ''

junior musk
#

your groups.yml

#

not your config.yml

calm jetty
#

it's vault-suffix%%afk%

junior musk
calm jetty
#

it works

#

thanks

calm jetty
#

why my layout.yml file is keep deleting itself?

junior musk
#

because it was moved into config.yml

plush dove
#

If I wanted to use the checkitem remove/give placeholders, is there a way to block players from using it?

junior musk
#

make sure they don't have the permission to use /papi parse or any other way to parse placeholders

soft grotto
#

Hi, essentials sent me here

#

i need a placeholder that shows the time of the server, like 12:00 in /time of Essentials

mint fable
#

FYI, any deluxemenus menu that uses arguments can allow the player to parse it @plush dove

calm jetty
junior musk
#

yeah

#

configure layouts in your config.yml instead of your layouts.yml now

calm jetty
#

how do you know so many things

soft grotto
#

cj89898 can you help me please?

calm jetty
#

no fra

soft grotto
#

fra?

#

sei italiano?

#

are you're italian?

calm jetty
#

no

#

scusa

soft grotto
#

hahaha

#

lol io sono qui per una roleplay

#

te?

plush dove
mint fable
#

the former

#

vanilla commands work fine for removing items @plush dove

#

also, removing items is not too abusable

plush dove
#

Yea but still, better safe than sorry

#

If a server owner who knows of this stuff comes on and has malicious intent, it could be annoying to handle

junior musk
plush dove
#

A lot of plugins do

junior musk
#

you're sure?

plush dove
mint fable
plush dove
junior musk
#

parsing a player's arguments is a pretty dangerous thing imo

mint fable
#

i don't know of any, like I said: vanilla commands works fine

junior musk
mint fable
junior musk
#

you could use ParseOther with a player_ip

#

that's super dangerous

mint fable
#

it will parse from {argument} to %placeholder% to whatever the value is

plush dove
mint fable
#

it's a vanilla command

junior musk
mint fable
#

it can give or remove anything

#

/minecraft:clear or /minecraft:give

#

you can use /data get entity @s SelectedItem to get the data of your currently held item

#

copy and paste it exactly, should work

plush dove
#

And /clear can detect nbt data of items?

#

Never knew that

mint fable
#

if not exact, slight modification (for amount)

plush dove
#

Let me check

mint fable
#

again, it's a vanilla command

#

nbt is vanilla

plush dove
#

Ooh your right

mint fable
#

people do this stuff without plugins at all

plush dove
#

Thank you!

mint fable
#

it will need to be exact data though

plush dove
#

Yea that's true, I never really looked into it before, but I've started to learn of the vanilla commands, super nice. And I learned a lot of plugins use vanilla commands for their stuff

mint fable
#

right

plush dove
#

Well thank you very much!

austere hawk
#
%changeoutput_equals_input:{vault_eco_balance}_matcher:10000_ifmatch:§2§m{str_uppercase_{triton_key}}_else:§4§m{triton_key}%```
#

Will this work?

soft grotto
#

i need a placeholder that shows the time of the server, like 12:00 in /time of Essentials

austere hawk
#

I tried putting a placeholder inside a placeholder inside a placeholder and it doesn't work lol

#

Wearing {}

cold turtle
#

Hi there! Does placeholderAPI already have folia support or not yet?

analog warren
#

try reinstalling

celest oxide
#
[11:46:39] [Server thread/ERROR]: Error occurred while enabling PlaceholderAPI v2.11.1 (Is it up to date?)
java.util.ConcurrentModificationException
    at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) ~[?:1.8.0_382]
    at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:742) ~[?:1.8.0_382]
    at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:185) ~[server.jar:1_8_R3]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[server.jar:1_8_R3]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:90) ~[server.jar:1_8_R3]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_382]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_382]```
#

not the full error, dm me if u can help

#

papi just errors on initializing once every few restarts

#

vague as hell

formal geyser
#

Hello, anyone know what is the placeholder to check whether player has any items in inventory??
I want to make condition when player needs to have no items in his/her inventory at all, including armor and offhand slot.

next gazelle
#

Why cant we send images in a literal support chat

next gazelle
#

I wasn't sure whether to come here or to TAB, but TAB has no support server, so I was just wondering how I can fix this issue

#

also getting this error

austere hawk
#

Hi guys. How can i put this placeholder %mmocore_cooldown_bound_1% into this one %mythiclib_cooldown_<placeholder_place>%?
there is a way to do it?

junior musk
# next gazelle https://imgur.com/a/IM33O3o

%luckperms-prefix% (with a -) is a TAB placeholder, and it takes the value directly from LuckPerms, idk why the usage is so high but I can only assume that there may be a latency issue with your permissions database?

junior musk
#

don't forget to download the expansion before using the placeholder

austere hawk
#

ok, thx 💜

plush dove
#

How can I use hex color codes in papi checkitem nameequals?

static mauve
#

Hi there, I'm trying to add server placeholders using the API, I have downloaded the server and player placeholders using papi ecloud but counldn't get these to work

 lores.add("Players Online: %placeholder_server_playercount%");
        lores.add("TPS: %placeholder_server_tps%");
        lores.add("Server Uptime: %placeholder_server_uptime%");
        lores.add("Loaded Chunks: %placeholder_server_loadedchunks%");
        lores.add("Version: %placeholder_server_version%");

They just show same as those, I mean the placeholders aren't being replaced

plush dove
#

those are being loaded as strings, you gotta parse them somehow then cancatinate it

#

I think that's right anyways

static mauve
#

Got a mini example? 😅

junior musk
#

it's just server_tps, not placeholder_server_tps

#

and did you use the PlaceholderAPI.setPlaceholders(Player, List<String>) method on your list?

static mauve
bold crescent
#

I'm having trouble with the isgamerule placeholder of the "World" expansion. I created a fresh server with Paper build 1.20.1-176 and PlaceholderAPI as the only plugin installed.

[20:27:19 INFO]: Gamerule doDaylightCycle is currently set to: true
[20:30:13 INFO]: false
> papi parse kccricket %world_isgamerule_doDaylightCycle_world%

All other World placeholders seem to work. Am I doing the isgamerule placeholder right?

#

After checking the expansion's code, I thought maybe it should be gamerule names from org.Bukkit.GameRule, but that still returns false. papi parse kccricket %world_isgamerule_DO_DAYLIGHT_CYCLE_world%

mint fable
#

i think all that does is check if it's a valid gamerule @bold crescent

#

not retrieving the actual value

#

but i'm surprised that doDaylightCycle and DO_DAYLIGHT_CYCLE both return false, neither true

#

i feel dodaylightcycle should be true, but

bold crescent
#

The expansion converts it to ALL CAPS before passing it to GameRule.isGameRule(). Your interpretation of isgamerule is probably right, though that seems like a weird thing for anyone to need. Anyone know of a placeholder that will return the value of a gamerule setting?

mint fable
#

looks like it might need to be added

bold crescent
#

I can probably put in a pull request.

junior musk
bold crescent
plush dove
#

all good I updated checkitem and reloaded papi

mint fable
#

§x§0§0§0§0§0§0

next gazelle
#

Anyone know how to fix this? its causing so much lag, im not sure whether its TABS issue or the placeholders issue

#

We use Skript-Placeholders and PlaceholderAPI

vivid sparrow
#

It is probably refreshing too often

pearl pilot
#

So I am trying to get this to show correctly. I am using velocity but can't get this placeholder to work correctly in my lobby server.

text: '&fᴏɴʟɪɴᴇ ᴘʟᴀʏᴇʀs: &8[&c%bungee_rpg%&8/&c%bungee_total%&8]'```
eternal obsidian
pearl pilot
#

papi bungee?

#

i have that downloaded

haughty kite
#
 format: ' &b{superior_island_level_format}&r {DISPLAYNAME}: {MESSAGE}'
``` for essentialsx chat this isnt working?
tall ledge
#

The placeholder for essentials baltop are not working, when I parse them it does not show the correct person even when i try to update the baltop with /baltop force, is there a fix to it?

mint fable
tall ledge
#

oh it starts at 0?

#

it used to start at one i thought

#

thats why its weird

#

thanks

lament osprey
#

Hey, how can i do something like: if %server_online% = 20 show "Text1", else if %server_online% = 40 show "Text2"?

orchid timber
#

Hi! I am making my own javascript placeholder

Is there any way to get a modified placeholder directly?
For example var defaultTimeString = "%localtime_timezone_America/New_York,E d H m s%"; works great, but
var userTimeStringPattern = "localtime_timezone_" + userTimeZone + ",E d H m s";
var userTimeString = "%" + userTimeStringPattern + "%"
Does not work

junior musk
#

PlaceholderAPI.static.setPlaceholders(BukkitPlayer,"%" + "localtime_timezone_" + userTimeZone + ",E d H m s%")

orchid timber
#

Thank you! Sounds great, but I need it to work in Javascript expansion, I am not making a jar, only a .js module for that expansion

junior musk
#

yeah that works in JS

#

the JS expansion gives you access to PAPI methods and some Bukkit methods too through the PlaceholderAPI, BukkitServer and BukkitPlayer variables

orchid timber
#

100% working! Thank you, now I can do so many new cool things with that information! You`re my hero!

mint lava
#

hello

#

Is it possible to change the time format in statistics placeholders?

royal sapphire
junior musk
#

I don't think there is

mint lava
royal sapphire
mint lava
#

[p

#

хз

hoary plank
#

Is it possible to get per world deaths and kills placeholder?

#

like %statistic_player_kills_desertworld% %statistic_deaths_desertworld%

austere hawk
#

Placeholder to check if a player has played 30 minutes or more

#

Whether it returns yes or no

sharp glacier
#

do you guys know how to get playercount for a server as what im doing right now is only detecting one world (the hub) and not the other worlds that the player is on?

austere hawk
#

Yo, is there a vault placeholder that has both commas and decimals like 4,518.59

pale adder
#

how can i do towny placeholders?

#

like {USA}{New York}EpicAmerican385

sharp bloom
#

is there a placeholder that returns which slot is the main hand of the player?

lucid idol
#

do y'all offer support on the javascript extension? Not so much javascript coding support itself, but the capabilities of the javascript extension and using placeholders in variables

junior musk
#

placeholders within the Javascript placeholder as argument and within its code are supported

lucid idol
#

I am having a little bit of an issue, there's no errors in console, and when I run my command to see the results it comes out blank, it this an issue with the playtime plugin I am using for the place holder, or is this something I am doing wrong?

var PRank = '%playtime_position%'

function APlaces() {
  return PRank;
    
}

APlaces();
#

the command works with my other javascript placeholders

junior musk
#

did you set your placeholder in javascript_placeholders.yml correctly?

lucid idol
#

yup

junior musk
#

can you show the output of
/papi parse me %playtime_position%
and the same but with your js placeholder?

#

?imgur

tender vaporBOT
lucid idol
#

oh I see the problem

#

I didnt realize you could parse the placeholders first

#

and when I did that the placeholder doesnt even work so the var was empty by default

junior musk
#

where did you find that placeholder?

lucid idol
#

well I should have guessed it didnt work; the placeholder isnt displayed on the placeholdersapi official list. but the spiggot page for playtime listed that placeholder, and like 6 others not on the official list, under a section called "PlaceholderAPI placeholders:" so I thought maybe the official list was out dated :/

junior musk
#

can you send that playtime page?

lucid idol
#

yeah sure

junior musk
#

some expansions are tied to plugins

#

maybe that's the case?

lucid idol
#

at the bottom it shows the placeholders

junior musk
#

yup, this is a plugin

#

yeah but it requires the plugin to be installed as well

lucid idol
#

wdym?

junior musk
#

Expansions can be standalone, or require a plugin.
If you check PAPI's wiki page with the giant list of placeholders, you'll see that some have download commands and some don't.
That is because some can be downloaded from the ecloud and are not linked to any plugin (though some are in special cases, such as the expansion being maintained by someone else than the plugin's dev) and those who don't have a command are directly included within their respective plugin

lucid idol
#

I have

#

checked

#

there is none

junior musk
#

which means it is directly inside the plugin

#

so you just need to download the plugin

lucid idol
#

Im using the playtime plugin wdym

#

is there a third plugin I need?

junior musk
#

o_O you have it installed already ?

#

send /papi dump

lucid idol
#

I think the playtime plugin developer doesnt properly support papi or something

junior musk
#

bruh the dev registered the expansion as Playtimes instead of playtime

#

try with the s in the placeholders

#

uh, just checked and it seems like you have a different Playtime plugin actually

junior musk
lucid idol
#

wait yeah I just checked the ecloud

junior musk
#

because the authors and versions don't match

junior musk
#

because the expansion on the ecloud is tied to the plugin it links

lucid idol
#

never mind im even more confused

junior musk
#

while the one that's written on the PAPI wiki page links to a Playtime plugin that has an expansion built directly within the plugin (and doesn't require to download any expansion)

#

You can have plugins with expansions included, expansions on the ecloud that are standalone, and expansions on the ecloud that are tied to a plugin

#

it's quite a mess if you're not used to it 😅

lucid idol
#

thats such a mess

junior musk
#

so you have 2 choices rn

#

and you don't need to download anything else

lucid idol
#

problem

#

Im already using that plugin

#

it doesnt work

junior musk
lucid idol
#

thats where the entire problem started

junior musk
#

it said version 1.5.2 on the papi dump

#

try to yeet your current jar and redownload it just in case

lucid idol
#

Ill redownload it directly from the link to be safe, but I went through this like 2 days ago. a lot of the plugins I get are based off if they are compatible with PAPI so I only look through the PAPI supported list

#

wait yeah after looking at the dump and at the plugin itself

#

how the heck did I get such an old version

junior musk
#

no idea xD

lucid idol
#

I redownloaded it and its v3.6

junior musk
#

do placeholders work now?

lucid idol
#

currently waiting on it to restart

#

so apparently I had a completely different plugin that essentialy does the exact same thing

junior musk
#

¯_(ツ)_/¯

#

as long as it works now

lucid idol
#

still trying to figure it out

#

the result worked

#

but it came back as 0

#

which it shouldnt

junior musk
#

which placeholder?

lucid idol
#

position

junior musk
#

what should it return instead?

lucid idol
#

its a test server only I connect to so it should be 1 if anything so Im opening an alt

junior musk
#

it starts from 0

#

most things start from index 0 and go up from there

#

if you join with an alt, it'll be 1

#

if you want to display +1 somewhere (like on a hologram or smth) you can combine the placeholder with the Math expansion

lucid idol
#

I see

junior musk
#

%math_0_{placeholder_without_%%}+1%

lucid idol
#

but then if I use parse, and add a username instead of me shouldnt that get me the data from that user?

junior musk
#

it should

lucid idol
#

but I do that, and now me and my alt result in 1

junior musk
#

both of you?

lucid idol
#

ah!

#

Weeird

#

yeah

junior musk
#

/papi parse me %playtime_position% returns 1
and /papi parse <alt> %playtime_position% returns 1 as well?

lucid idol
#

so %playtime_position% result in your position on top playtime 1,2,3,4...
but it seems if the player doesnt run /playtime top it wont register their position, so it will default to the top position?
because after both me and the alt ran the command it would parse the correct position

junior musk
#

o_O

lucid idol
#

time to boot up a third alt to confirm

junior musk
#

I'm checking the code and it seems like it should be working even without having to use the top command

#

tbf I don't understand 3/4 of the code, it looks so weird

lucid idol
#

hmm