#placeholder-api

150650 messages · Page 48 of 151

hollow hull
#

I'll trey

#

It worked!

hollow hull
#

Thanks<33

fervent spire
#

You're welcome 😄

scarlet valve
#

Hi is there a way to check if there is a block on a specific xyz position and display
❌✔️

covert island
#

how do i get coordinates of a specific player

warm topaz
#

the coordinates placeholders can be found within the player expansion

#

if u need a specific player, u can use the parseother expansion in conjunction

covert island
#

ok

turbid tide
smoky spoke
#

in the changeoutput placeholder, what do i do when i want to type in the matching portion of the placeholder but the matching value has _ too?

turbid tide
#

just use %statistic_time_played:seconds% instead

smoky spoke
#

cant because i am using a placeholder that has _ in between when it prints

scarlet valve
tender vaporBOT
warm topaz
sturdy pewter
#

thats the pastbin to a papi error im getting

cerulean geyser
#

For some reason every time my server restarts it removes all my papi addons?? Anyone have a clue why this might be? I honestly have no clue. The addons are specifically Vault and Essentials, I download them using /papi ecloud download vault and same with essentials but replacing vault with essentials

junior musk
#

do you get any errors when using /papi reload in the console or when loading PlaceholderAPI on server start?

quasi spoke
#

whats the /papi ecloud download for the voteparty. when it does the broadcast dont say the players name.

turbid tide
quasi spoke
#

right i ask the owner of the server to join and link the acc

turbid tide
#

alr 👍

delicate ginkgo
#

i need to put a placeholder in a placeholder in a placeholder

turbid tide
#

that sounds like a bad idea and most likely not possible. at least not with PAPI. It only accepts to type of placeholders and that is %placeholder% and {bracket-placeholder}

delicate ginkgo
#

this is the placeholder%progress_bar_{server_ram_used}_l:80_m:{server_ram_max}_p:#FF8000|_c:#FF8000|_r:#31C91F|% and i want to replace server_ram_max with %math_0:[rounding]_{server_ram_max}-{server_ram_free}% that would look like : %progress_bar_{server_ram_used}_l:80_m:{math_0:[rounding]_{server_ram_max}-{server_ram_free}}_p:#FF8000|_c:#FF8000|_r:#31C91F|% and wont work, i think that the {{}} are the problem

turbid tide
#

yeah you have 2 choices here. Make your own placeholder or use the JavaScript expansion if you know any JavaScript

delicate ginkgo
turbid tide
#

its an expansion that allows you to make your own placeholders using JavaScript

delicate ginkgo
#

ok, i will read a bit, thx

delicate ginkgo
turbid tide
#

nope

delicate ginkgo
#

k

turbid tide
#

alr @quasi spoke he linked. its all good now

#

so first of all can you try /papi parse me %player_name% ?

quasi spoke
#

ok ty

turbid tide
#

tell me what it says

quasi spoke
#

all i get is %player_name%

turbid tide
#

can you do these 2 commands in order:
/papi ecloud download Player
then:
/papi reload

#

then do the parse command again

#

and tell me if it works now or not

quasi spoke
#

says my name now

#

ty for the help

turbid tide
#

👍 no problem

modern lynx
#

How can I save statistic placeholders for weeks, months and lifetime? Do you have any idea?

turbid tide
#

not possible. the statistics are taken directly from minecraft and they're just alltime.

modern lynx
#

I mean numeric placeholders by statistic.

smoky spoke
#

with the new update for changeoutput, how do i use the new feature

turbid tide
#

just use \_ where you don't want the _ to be counted

#

so basically 1 \

#

and the _

#

%changeoutput_INPUT_OUT\_PUT_true_false%

#

like this I think

#

so basically the _ in the OUTPUT

#

will be counted as a character

#

in output

#

so OUT_PUT

smoky spoke
#

ok ty

turbid tide
#

hope that makes sense xD

smoky spoke
#

nice ty

modern lynx
#

How can I save numeric placeholders for weeks, months and lifetime? Do you have any idea?

fervent spire
#

You'd need a plugin to save it to a database or file.

modern lynx
#

Thanks. Do you know any?

fervent spire
#

Not really.

crystal mauve
#

Hello, What wrong with this code?

var prison1 = Number("%bungee_prison-1%");
var prison2 = Number("%bungee_prison-2%");
var prison3 = Number("%bungee_prison-3%");
var PrisonTotal = prison1 + prison2 + prison3;

function returnTotal() {
return (PrisonTotal);
}

returnTotal();

#

now it shows me 000

turbid tide
#

you don't need an entire javascript for that tho. just use the math expansion

#

%math_0:_{bungee_prison-1}+{bungee_prison-2}+{bungee_prison-3}%

crystal mauve
#

duh

#

ty

turbid tide
#

and probably the number

crystal mauve
#

whats that 0?

turbid tide
#

was not actually making them an integer

turbid tide
#

if you remove it it will always have 3 decimals

#

which you probably don't want

crystal mauve
#

oh

#

thank you

turbid tide
#

no problem

#

also you can set the default to 0 in plugins/PLaceholderAPI/config.yml so you can just use %math_{}+{}%

crystal mauve
#

ok

#

wait

#

now

#

it returns null

#

like

#

nothing there

turbid tide
#

huh

#

can you try /papi parse me %bungee_prison-3%

#

and see what it returns

crystal mauve
#

0

turbid tide
#

make sure you have latest version of the Math expansion /papi ecloud download Math then /papi reload

crystal mauve
#

yes I have

cursive ermine
#

Hello guys, I just noticed in my console today this error. Is there anyone who can provide some insight. I am not sure what SuperRonanCraft is.

https://pastebin.com/GcHmsbvT

mint fable
#

it's the mysql expansion it seems

turbid tide
#

yeah its been broken for a while. idk if there's a fix for it yet

turbid tide
# crystal mauve yes I have

can you parse these please: /papi parse me %math_0:_{bungee_prison-1}+{bungee_prison-2}+{bungee_prison-3}%

crystal mauve
#

it returns 0

cursive ermine
#

Ok thanks, I was wondering if that was the case since I saw the expansionMySQL but wanted to make sure. I will just delete the expansion then. I ended up not using that one anyway.

turbid tide
crystal mauve
#

yes but in scoreboard...

#

theres nothing

#

now I have 1 in one sv

#

but still 0

#

now 1

#

dude..

turbid tide
#

it might be just the number of characters then I guess. if you want a javascript here:

fun total() {
  return parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")
}

total()
crystal mauve
#

thats all the code?

mint fable
#

well

turbid tide
#

made it in a function so its more understandable

mint fable
#

could be less

#

😉

crystal mauve
#

oh

turbid tide
#

yeah I think it can be just parseInt("%bungee_prison-1%") + parseInt("%bungee_prison-2%") + parseInt("%bungee_prison-3%")

mint fable
#

js ez

crystal mauve
#

it shows 100 again

turbid tide
#

hmm

#

which one are you using? the function one?

crystal mauve
#

yes

turbid tide
#

hmm this is strange

crystal mauve
#

yea

#

cj, a little bit of help here?

turbid tide
#

it concatenates the but I don't get it. It shouldn't since they're all parsed to integers

#
fun total() {
  var prison1 = parseInt("%bungee_prison-1%")
  var prison2 = parseInt("%bungee_prison-2%")
  var prison3 = parseInt("%bungee_prison-3%")
  var total = prison1 + prison2 + prison3
  return total
}

total()``` idk maybe it works the long way?
crystal mauve
#

now it doesnt show anything

turbid tide
#

do /papi dump please and send the link here

mint fable
#

hmm

turbid tide
#

it will generate a link

crystal mauve
turbid tide
#

oh my fucking god

warm topaz
#

😂

crystal mauve
#

i wrote function instead

turbid tide
crystal mauve
#

dont worry

turbid tide
#

oh

#

fuck

crystal mauve
#

is that link ok?

turbid tide
#

yeah and I've looked at it and only thing I can really recommend (even tho I Don't expect anything from it) is to update PAPI to the latest development build

tender vaporBOT
crystal mauve
#

nope

turbid tide
#

can you test ```js
function total() {
return parseInt("1") + parseInt("2") + parseInt("3")
}

total()```

#

and see if it will parse 123 or 6

crystal mauve
#

nope

turbid tide
#

what does it say?

crystal mauve
#

nothing

turbid tide
#

you tried it with /papi parse me %% ?

crystal mauve
#

nope

turbid tide
#

always test it like that

crystal mauve
#

/papi parse me parseInt(1) + parseInt(2) + parseInt(3)

#

not like this?

turbid tide
#

nope

crystal mauve
#

duh

turbid tide
#

you need to parse the javasript

#

placeholder

#

/papi parse me %javascript_<identifier>%

crystal mauve
#

it returns 1

turbid tide
#

well then the javascript works

#

just put that in the scoreboard and it should work

crystal mauve
#

this is the line in scoreboard config

#

but in the game

#

nothing...

turbid tide
#

huh this seems more like a problem with your scoreboard if /papi parse me %javascript_returnPrison% works

#

does your scoreboard allow more than 16 chars?

crystal mauve
#

yes

#

QuickBoard

turbid tide
#

hmm

crystal mauve
#

Should I contact the members from the quickboard team?

#

%server_time_MM/dd/yyyy% this placeholder works

turbid tide
#

well I can't really help you any more from here so probably the best thing to do. If you say /papi parse works then the placeholder works

crystal mauve
#

so the problem is?...

#

idk what should I do

#

any suggestions?

turbid tide
#

probably contacting their team and seeing if there's any debug they can make on their end

#

as in in their plugin

crystal mauve
#

ok

#

do I need MVdWPlaceholderAPI ??? or no?

turbid tide
#

I Don't see why it would be needed

crystal mauve
#

bc of the { brackets?

scarlet valve
#

Do anyone know a placehodler for server ping

lime vapor
#

Hi, i'm trying to install skript expansion.
With the /papi ecloud download skript, the download works, but on the /papi list, others expansions are here, but not skript.
And with the https://github.com/Altruiis/skript-expansion/releases/ expansion, when i /papi reload nothing happened, and with the /papi list, no expansion are here, not even the others

errant iron
#

/papi dump and paste it here

lime vapor
errant iron
#

From a cursory search, it seems the original Skript expansion doesn't work very well. Try Skript-Fork

errant iron
#

huh

#

any errors in your console?

lime vapor
#

Do i need to rename it Expansion-skript.jar ?

errant iron
#

Not sure, worth a try

lime vapor
errant iron
#

Any errors in console?

lime vapor
#
[22:21:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions
 java.util.concurrent.CompletionException: java.lang.ClassNotFoundException: Failed to remap class de.soulcraft.SkriptExpansion
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:326) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_282]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_282]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_282]
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_282]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_282]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_282]
Caused by: java.lang.ClassNotFoundException: Failed to remap class de.soulcraft.SkriptExpansion
        at red.mohist.bukkit.nms.proxy.DelegateURLClassLoder.remappedFindClass(DelegateURLClassLoder.java:99) ~[DelegateURLClassLoder.class:?]
        at red.mohist.bukkit.nms.proxy.DelegateURLClassLoder.findClass(DelegateURLClassLoder.java:59) ~[DelegateURLClassLoder.class:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_282]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_282]
        at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?]
        ... 6 more
#

(sorry)

#

for the spam

#
[22:21:32 INFO]: Nealisissued server command:/papi reload
[22:21:32 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[22:21:32 INFO]: [PlaceholderAPI] Fetching available expansion information...
[22:21:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions
errant iron
#

Which version of Java are you running?

lime vapor
#

How can i know that ^^'

errant iron
#

uh

#

if this is like a VPS, you can do java --version

lime vapor
#
root@Pixor:~# java --version
openjdk 11.0.11 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode, sharing)
errant iron
#

hmmm

#

send your startup log

tender vaporBOT
lime vapor
errant iron
#

ooh okay it's probably Forge messing with something, I'm honestly not sure with Forge in the mix

lime vapor
#

Oh, ok, thanks anyway

hidden pumice
#

19.05 22:32:00 [Server] Craft Scheduler Thread - 7/INFO Checking for Updates ...
19.05 22:32:00 [Server] Server thread/WARN Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend, softdepend or loadbefore of this plugin.
19.05 22:32:00 [Server] Server thread/INFO Successfully registered expansion: vault
19.05 22:32:00 [Server] Server thread/WARN Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.3.3 which is not a depend, softdepend or loadbefore of this plugin.

#

someone happens to know what that means

errant iron
#

that's fine, it just means it's loading

hidden pumice
#

ah ok thanks

scarlet valve
#

Do anyone know a placehodler for server ping

fervent spire
#

%server_tps%

#

@scarlet valve ^

scarlet valve
#

Ooh

#

I thlught that will give you the server tps

#

1mn 5mn 15mn

devout lichen
#

@fervent spire
One question
Using the %name% variable does not show me the level name
In the pvppremium add-on
Do you know any way to fix it?

fervent spire
#

Why ping me? And why post in 3 different channels?

devout lichen
#

I haven't asked anything for a long time so I didn't know where I should ask this

#

I mentioned why you are support xd

#

srry

fervent spire
devout lichen
#

ok thx

austere hawk
#

hello i have an error in to my consol about placeholderAPI but the plugin that the error give is not placeholder API but it is NameTagEdit

clear dust
#

I have a few numbers from placeholders ( island level , Number of challenges completed etc ) Id like to get an average of them. and display it, from what iv read so far a javascript placeholder should be able to achive this correct? If so i have little to no idea how to do that Some one mind pointing me the right way

rotund pendant
clear dust
#

the example file apears to be blank

rotund pendant
austere hawk
#

the error is fixed but the priority form Nametagedit is not working?

vast ether
#

Any idea what is causing this? Is it the daily rewards plugin or placeholder-api. It's strange had been working fine for awhile then a couple days ago on daily restart, started to get this console error and it won't enable. Only changes to server was updating papermc, not either plugin. https://pastebin.com/DS24ArVa

onyx charm
#

Hello, when using HolographicDisplays with ajParkour, my PAPI placeholders simply dont load.

I type %ajpk_stats_top_name_1% in the holograph and it simply shows %ajpk_stats_top_name_1% instead of acttualy showing the placeholder.

Please help ASAP, thanks.

#

Hello? Anyone?

junior musk
onyx charm
#

Thanks, i have ProtocolLib but not Holographic Extension

junior musk
#

also, if you want to make the placeholders refresh on the holograms, you have to put one of the following placeholderse on each line containing placeholders

clear dust
#

how do i trim the decimal point off my numbers in JS.

#

Finally got my math works helps if the type is number.. derp.

turbid tide
#

toFixed(0)

#

should work

clear dust
#

if any one can tell me how to remove the trailing .0 that would be

turbid tide
#

return added.toFixed(0)

clear dust
#

OMG ty

#

iv been stuck for like 30 min trying all sorts

turbid tide
#

no problpem 👍

#

problem

#

I can typ

#

e

#

well fuck I'll just stop now xD

clear dust
#

😂

flint nacelle
#

Keep in main tofixed can bug out in some cases.

junior laurel
#

Heyy

#

How do I rename items as placeholders to use in gui?

#

@idle coral

tender vaporBOT
junior laurel
#

ok sowwy

turbid tide
#

for the gui I mean

junior laurel
#

Command Panels | Custom GUIs 3.15.5.4

#

I want to install one

#

u can also suggest

#

for minecraft 1.16.4

#

I want to display some information using gui

#

I have the placeholder codes

turbid tide
#

well are you sure that COmmand Panels even supports PlaceholderAPI?

junior laurel
#

Idk that

junior laurel
#

For making gui menu

turbid tide
#

Well you can use DeluxeMenus for example. I Know for sure that plugin supports PlaceholderAPI

junior laurel
#

Ohh ok

#

Thanks

modern lynx
#

An economy plugin have numeric placeholders, but it shows numbers as 43958349. I want commas but it doesn't support. Do you know any add-on that does it?

austere hawk
#

how do I put a player count for a server on a npc

turbid tide
#

you can try the %server_online% placeholder

austere hawk
turbid tide
#

that won't work no.

#

CItizens doesn't accept placeholders as names

#

afaik

#

you have to set your own hologram using HolographicDisplay I think

#

but you can try I guess

#

maybe they added PAPI support

austere hawk
turbid tide
#

yes I think so. also if its a server from bungeeocrd then you need to use %bungee_<server-name>% not server_online

#

well actually you need: HolographicDisplay, HolographicExtension and ProtocolLib

cunning elk
#

any idea why %localtime_timezone_GMT-3,k:m% is returning the wrong time?

empty pilot
#

Since Minecraft is changing to Java 16 I want to switch of nashorn engine for obvious reasons. What would I put in the engine mode for JavaScript to use graal?

#

Please @ me if you know

vivid sparrow
lethal sphinx
#

hello i use Jobs rebon and i can show me the job dat i have how i can show it?

junior laurel
tender vaporBOT
storm lantern
#

I have a question I need to clear peoples inventories and a plugin we have got rid of the like @p option but does anyone know how to clear someones inventory with a command block when they step on it?

turbid tide
#

and please don't spam all channels

#

thanks

storm lantern
#

I didnt?

turbid tide
#

and I am not pissed at you. just letting you know how and where you should ask

#

that's all

primal cloak
#

is there a way to utilise javascript engine on Java16?

turbid tide
#

not yet no. There is a new version in development but there are still some issues to take care of before it can be released

primal cloak
#

owch! i'm back in MC after many years and saw notifications in my console that nashorn is getting removed in future JDK releases and was wondering if I should still stick to PAPI's javascript

turbid tide
#

yeah it got removed in java 15 I think

primal cloak
#

you will be required to run Java16 for spigot 1.17, and by doing that you are forced to lose javascript engine

turbid tide
#

well the new js expansion will probably be released by then

primal cloak
#

sounds good

turbid tide
#

its just the dev was kinda busy I think. And is mostly done just needs more testing and there's a few bugs we discovered

primal cloak
#

is it extendedclip?

turbid tide
#

nope. thienbao is working on it

primal cloak
#

oh

#

did extendedclip leave Minecraft?

turbid tide
#

he did not. but he is taking a break and has been taking a break for a while now.

primal cloak
#

makes sense. had a few of his plugins that I bought back in 2016, there's hex in 1.16 now and deluxechat doesn't seem to support it so I had to ditch that one as well

turbid tide
#

yeah. he was working with someone else on a complete rewrite but idk when that's coming

primal cloak
#

i'm with ezchat now, seems perfect and its opensource as well 👍

scarlet valve
#

Do anyone knows a good speed tracker
Block/sec or something like that
Speedpersec expansion isnt really good

austere hawk
#
[19:42:24 WARN]: [PlaceholderAPI] failed to download expansion information
java.util.concurrent.CompletionException: java.net.UnknownHostException: api.extendedclip.com
        at me.clip.placeholderapi.expansion.manager.CloudExpansionManager.lambda$fetch$4(CloudExpansionManager.java:174) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.CloudExpansionManager$$Lambda$6339/0x00000000564de020.get(Unknown Source) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_292]
        at java.lang.Thread.run(Thread.java:823) [?:1.8.0_292]
Caused by: java.net.UnknownHostException: api.extendedclip.com
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) ~[?:1.8.0_292]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_292]
        at java.net.Socket.connect(Socket.java:607) ~[?:1.8.0_292]
        at java.net.Socket.connect(Socket.java:556) ~[?:1.8.0_292]
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.New(HttpClient.java:339) ~[?:1.8.0_292]
        at sun.net.www.http.HttpClient.New(HttpClient.java:357) ~[?:1.8.0_292]
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) ~[?:1.8.0_292]
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) ~[?:1.8.0_292]```
#

can anyone help pls

flint nacelle
austere hawk
#

yes

flint nacelle
austere hawk
#

now i fixed thanks

muted tartan
#

Does anyone know a plugin so that I can sync a few placeholder api placeholders over multiple servers? Without the plugins installed on other servers that provide those placeholders..

vivid bison
#

Hello i have i queston

#

How ro delete it?

#

Loaded class javassist.d from PlaceholderAPI v2.10.9 which is not a depend, softdepend or loadbefore of this plugin.

turbid tide
#

that's just a debug message from spigot. no way to disable it afaik

short flicker
#

PlaceholderAPI doesn't shade javassist tho 🤔
infected jar perhaps?

glass carbon
#

Hey I am very new to this :)
I am currently using Deluxehub and I am trying to display Luckperm roles. I have installed the extension through papi ecloud. Now I try to write "%luckperms_prefix%" but it just displays %luckperms_prefix%

turbid tide
#

that means the expansion is not actually registered

glass carbon
#

That was my thought too

turbid tide
#

execute these 2 commands:

/papi ecloud download LuckPerms
/papi reload```
glass carbon
#

But it did say it installed it correctly

#

Let me try again

turbid tide
#

if that doesn't work do /papi dump and send the generated link here

glass carbon
#

Yeah

#

It says no expansions were registered

#

Though I can see it there

#

under expansions

turbid tide
#

restart the server and send the startup log. it usually says in there why it didn't load it

#

?startuplog

tender vaporBOT
glass carbon
#

Alright

#

?paste

tender vaporBOT
glass carbon
#

There

#
Failed to load due to a [NoClassDefFoundError], attempted to use net/luckperms/api/LuckPerms```
#

How would I update an expansion

turbid tide
#

well you'd have to go to plugins/PlaceholderAPI/expansions and delete the jar from there and reexecute those 2 commands

glass carbon
#

Oh

#

Alright

#

Let me go

#

do that

turbid tide
#

wait

#

nvm

glass carbon
#

Ah

turbid tide
#

according to the logs

#

you don't even have LuckPerms

#

the plugin installed

glass carbon
#

Wat

#

I have setup all our ranks already haha

turbid tide
#

well it doesn't show up in the logs

#

make sure you have the jar

#

in the plugins folder

glass carbon
#

Ooh

#

Let me check

#

Aight I am reintalling it again

#

Aight

#

So now it doesn't show anything lol

turbid tide
#

that means you have no rank with the prefix set

#

try %luckperms_rank%

#

to see if at least you have the rank

glass carbon
#

I do tho

#

I can't send pictures

#

Wait

#

Group is the same thing as rank no?

turbid tide
#

?imgur

tender vaporBOT
turbid tide
#

but probably

glass carbon
#

They are ok good

#

Trying to use imgur but internet is not the best

#

Can u see this

#

Oh

#

I think I found the issue

#

I use bungee, that has luckperm included already

#

Can I use bungee_luckperm_rank

turbid tide
#

you have to link the bungee luckperms to the server luckperms using mysql

glass carbon
#

Oh lord

turbid tide
#

not that hard.

#

all you have to do is get a mysql database, export the current database

#

and import it back when you switched to mysql

#

still a bit of work tho

#

you'll have to follow their wiki

glass carbon
#

I'll look at it tomorrow, I need some sleep before work

#

Ty for your help mr. Blitz

turbid tide
#

👍 gn

scarlet valve
#

Do anyone knows a good soeed tracker
Block/sec
Bc speedpersec isnt that good

quartz hull
#

Hey can someone help me setup placeholder api so it says if the a server is online or offline over a npc?

errant iron
#

Well, I'm not sure what NPC plugin you use, but if it supports PAPI, then all you need to do is use either the Pinger expansion, or the BungeeCord expansion to see if they're online

empty pilot
#

How can I change the engine to graal for JavaScript expansion?

arctic zealot
#

hi i cant convert javascript argument to placeholder in placeholderapi.

for ex:

i write var x = `%rank_${args[0]}%` and its gives an error. how can i convert javascript argument to placeholderapi's placeholder?

turbid tide
#

var x = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "rank_" + args[0] + "%")

meager vault
turbid tide
#

is your server running java 15 or 16 by any chance? If yes you'll probably have to downgrade for a bit until the new javascript expansion and deluxemenus are launched

junior musk
#

||this error sounds more like a file that has been edited/removed while server was running tho||

arctic zealot
turbid tide
#

yeah

arctic zealot
#

okay thank you so much

junior musk
#

🤷

#

does it still happen when you restart the server?

meager vault
#

seems fixed, strange, it's nice 🙂

junior musk
#

¯_(ツ)_/¯

modern lynx
#

An economy plugin have numeric placeholders, but it shows numbers as 43958349. I want commas but it doesn't support. Do you know any add-on that does it?

arctic tiger
#

Hi, i've implemented the papi repo in my maven project.
How can i "auto download" expansions?

turbid tide
#

I don't think the API offers that afaik

#

you could probably use the ecloud to download it from there yourself. using a plugin of course

arctic tiger
#

So plugins that requires PAPI and a specific expansion don't download it by themself?

turbid tide
#

nope. Server owners have to download using /papi ecloud download EXPANSION-NAME

#

but nowadays most people just put the expansion inside the plugin

#

bcz that is possible as well

arctic tiger
#

Because if i try to run the command "papi ecloud download Statistic" inside my plugin (as console), i get "failed to find an expansion named Statistic" (PAPI is a dependency)

turbid tide
#

?ecloudblock

tender vaporBOT
austere hawk
#

any help?

mint fable
#

?help

tender vaporBOT
austere hawk
#

Is there a way to make a countdown on the same day? I'm using the Server expansion but I can't seem to do this. I'd like to make a countdown for daily restarts, and honesty it's preferable if I had a way to just get seconds in the day instead of per minute

mint fable
#

hmm

#

might need to do some math @austere hawk

#

it might help to make a javascript for it, to keep it clean

static crescent
#

Does the PlaceholderAPI.static.setPlaceholders() still work with javascript expansions? I always get the Caused by: <eval>:1 ReferenceError: "PlaceholderAPI" is not defined error. Please @mention me if you know how to fix this.

#
var pos = "ndsmysql_position";
var something = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + pos + "%");
mint fable
#

%math_{server_time_HH*3600}+{server_time_mm*60}+{server_time_ss}% @austere hawk

#

that should give you seconds in the day I think

austere hawk
#

actually that works decently... but is there a way to get like... the seconds since a certain time (ex. 14:55)

#

if that makes any sense

mint fable
#

ye

#

just do a countdown

#

you can combine dates I bet

#

so take the hour and minute you want, get today's date

#

and combine it

austere hawk
#

soo i managed to mess around with it but i can't seem to get something that compares the amount of seconds passed in a five minute window, returning 100 if it just started and 0 when 5 minutes have passed, i'm trying to do this for a plugin that only works in that format

mint fable
#

5 minute window?

#

why 100

#

there's 300 seconds in 5 minutes

drifting cairn
#

Hello!
Recently i was wondering how i could create a placeholder that return only the player on a specific index of a list of peoples who did a command or have a certain group/permission in luckperms.
I thought that PlayerLIst could be helpful doing this since it gives you a way to create a list of player with a certain perm and then take one of them by selecting the player at the index you want (ex. of a placeholder of playerList which take the first player of the list of player online with permission "staff.admin": %playerlist_online,perm,yes,0,staff.admin%).
However it doesn't seems like this placeholder works with luckperms permissions/groups, and to be honest i'm to lazy to learn how the permission.yml works.
At this point i got two questions: Is there a placeholder that works the same and got luckperms integration? If not, is there another way i could do this thing of take a player form a list without using permissions?
Thanks in advice

austere hawk
#

Hi ! Anyone know how to reset the statistic in the "statistic" extension to 0?

#

ah I can be found in the world stats folder?

vivid sparrow
#

Yes

formal vessel
#

Hey there, is it possible to use one placeholder inside another? I have a chat plugin that won't accept a placeholder as its colouring code as it needs to be RGB not hex, but I can use another placeholder to convert hex to RGB, but I can't seem to see how, if at all, I can use that colour placeholder inside the colour converting placeholder

lilac oxide
#

It may ot may not work

turbid tide
formal vessel
lilac oxide
#

(With {}s not %%s)

formal vessel
#

👍

pulsar lake
#

hey, none of the placeholders from ANY plugin work after updating Spigot to the lastest 1.16.5 version

turbid tide
#

?startuplog

tender vaporBOT
turbid tide
#

seems to be a problem with the prison plugin from what I can tell

pulsar lake
#

that's just the error prison gives, but no placeholders from any other plugins work either

turbid tide
#

send the startup log then ^^

pulsar lake
#

said it should be reported

#

I mean, even %player_name% doesn't work

turbid tide
#

strange. the error soeems to appear when it loads Prison. NOthing else.

#

is it a custom prison plugin?

pulsar lake
#

custom? meaning?

turbid tide
#

like made special for this server? Or is it public on spigot?

#

or github?

pulsar lake
#

it's the alpha release from the discord

#

but I've been using this same version for 4 weeks, and today is the only time it's not working

turbid tide
#

yeah but what Prison plugin? Can you link it?

pulsar lake
#

I haven't made any changes other than updating the Spigot jar with buildtools

turbid tide
#

because Idk how it can be a problem with PLaceholderAPI Since it registers all the other expansions and breaks when it reaches Prison.

pulsar lake
#

hmm

#

what surprises me is that it's always worked before, and we have someone else, using an earlier prison version that has the exact same error

turbid tide
#

can you restart the server and don't execute any prison command

#

just /papi parse me %player_name%

#

see if it works

#

then execute /prison placeholders reload

#

and see if that same command will work after

pulsar lake
#

/papi parse me %player_name% returns my name, properly now

#

/prison placeholders reload gives the same error

#

do you want logs?

turbid tide
#

well then its clearly not a PlaceholderAPI error. Its something to do with the prison plugin. I've got no idea what but if the placeholders work with /papi parse me then the plugin works

#

nothing I Can do about that

paper grail
#

Doesn't look like PAPI is registering my placeholders

#

er

#

its not retaining them

#
[18:12:10 ERROR]: Could not pass event PluginDisableEvent to PlaceholderAPI v2.10.9
[18:12:10 ERROR]: Suspected Plugins: 
[18:12:10 ERROR]:       grakkit{enabled,ver=4.1.3,path=plugins/grakkit-4.1.3.server.jar}
[18:12:10 ERROR]:       PlaceholderAPI{enabled,ver=2.10.9,path=plugins/PlaceholderAPI-2.10.9.jar}```
#

Wait do I need to unregister my placeholders in the onDisable method?

formal vessel
#

Is there a placeholder addon I can use to assign like a colour to a user, like a placeholder for a user's favourite colour or something? I want to use it to format a chat plugin

paper grail
#

Hmmm I'm not sure

#

My server dies now

#

Every time I /stop or anythiong

#

it just complains

#
> [18:12:10 ERROR]: Could not pass event PluginDisableEvent to PlaceholderAPI v2.10.9
> [18:12:10 ERROR]: Suspected Plugins: 
> [18:12:10 ERROR]:       grakkit{enabled,ver=4.1.3,path=plugins/grakkit-4.1.3.server.jar}
#

😢

#

wha

#
[18:32:52 ERROR]: Suspected Plugins: 
[18:32:52 ERROR]:       PlaceholderAPI{enabled,ver=2.10.9,path=plugins/PlaceholderAPI-2.10.9.jar}
[18:32:52 ERROR]: Exception details below: 
com.oracle.truffle.polyglot.PolyglotIllegalStateException: The Context is already closed.
        at com.oracle.truffle.polyglot.PolyglotContextImpl.checkClosed(PolyglotContextImpl.java:714) ~[org.graalvm.truffle:?]
        at ```
#

theres more but its being a baby head

austere hawk
#

Hi

#

When I put the vault placeholder% vault_eco_balance_formatted%, this causes for example $ 1,000,000 to be seen as 1M, but this only goes up to Q, then M, B, T, Q and then normal digits start to appear and no more letters

#

Please, I've been asking for help for 3 days but I can't find a solution!

austere hawk
#

How do I easily change the color of a placeholder? Some placeholders I have are just including color codes and it's very hard to get them out, I get I can use JS but is there an easier way to do this?

native crystal
#

The javascript-extension for placeholderapi is no longer working with JVM 16. I see it doesn't work on anything higher then JVM 11. I have also tried GraalVM CE 21.1.0 JVM 16 and it has the same problem. Any fixes possibly? Maybe an alternative?

cobalt flame
#

I currently have my Placeholders setup all in 1 class, but I want to organize them into multiple.
How can I use the same identifier in both classes?
When I use the same identifier in both, one breaks

warm topaz
#

have one class extend PlaceholderExpansion but then u can seperate the logic of the placeholders in multiple classes, then call these in the onRequest method

cobalt flame
#

Thanks!

lethal sphinx
#

hello it is possible to list the players but don t show the play how are in vanish?

nova fjord
#

All of my placeholders are broken. I restarted the server multiple times

scarlet valve
#

Is there a way to know player list

#

Like

  • player1
  • Player2
    .....
turbid tide
turbid tide
tender vaporBOT
scarlet valve
turbid tide
scarlet valve
#

Any e ample

turbid tide
#

it has a wiki

#

use it

scarlet valve
#

Ok thanks

scarlet valve
#

There is no explanation on it

#

@turbid tide

tender vaporBOT
scarlet valve
#

Nvm

#

Thanks

nova fjord
tender vaporBOT
turbid tide
#

ah Ic. well glad you found a fix 👍

wintry spade
#

Hi, perhaps a bit of a beginner question, but I couldn't find a whole lot material about it online. Is it possible to nest placeholders? As I tried the following, which did not work: "%world_seed_%player_world%%"

#

Oh I noticed Discord removed some of the _, not sure how to disable that

turbid tide
#

some expansion support nesting using bracket placeholders

#

%placeholder_{other-placeholder}%

#

but not all of them. The developer of those expansions need to add support for them

turbid tide
#

so like this \_ or `_`

wintry spade
turbid tide
#

for this expansion

#

but you could always use the javascript expansion to make your own placeholder

wintry spade
#

Yea it's not working indeed, the placeholders does get 'resolved', but just ends up blank

wintry spade
turbid tide
#

this javascript code should get you the world seed

#

I'll tell you in a second how to make it work step by step

wintry spade
#

Seems correct to me, didn't even know all of this was possible, just started messing around with placeholders like hours ago lol. Just to verify, by default it's not possible to make the World expansion from papi just take the current world automatically?

turbid tide
#

  1. FIrst of all download the javascript expansion:
    /papi ecloud download JavaScript then /papi reload
  2. Go to plugins/PlaceholderAPI/javascript_placeholders.yml and add this: yml seed: file: seed.js engine: javascript
  3. Save the file and do /papi reload
  4. Go to plugins/PlaceholderAPI/javascript and you'll find a seed.js file in there. Put the code I Just gave you above in that file
  5. Save the file and do /papi reload
  6. TRy the placeholder: /papi parse me %javascript_seed_WORLD-NAME% or just /papi parse me %javascript_seed%. First one returns the seed for a world you want by using its name, second one returns the seed of the world the player is in.
turbid tide
#

but you can just follow the steps I just gave you and it will be a lot easier

wintry spade
#

It's working, thank you!

#

Ah according to the github page of the world expansion: "For placeholders which has the argument <world>, you can name the argument to the specific world, or symbol "$" (without ") as local world"

austere hawk
#

[19:01:31] [Server thread/WARN]: [PlaceholderAPI] Task #38 for PlaceholderAPI v2.10.9 generated an exception
java.lang.NullPointerException: null

#

wtf

#

How can I fix?

#

Help pls

turbid tide
#

?startuplog

tender vaporBOT
turbid tide
#

@austere hawk send over the startup log ^

austere hawk
#

[19:18:07] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:326) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_292]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Caused by: java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:686) ~[?:1.8.0_292]
at java.util.zip.ZipFile.getEntry(ZipFile.java:315) ~[?:1.8.0_292]
at java.util.jar.JarFile.getEntry(JarFile.java:240) ~[?:1.8.0_292]
at java.util.jar.JarFile.getJarEntry(JarFile.java:223) ~[?:1.8.0_292]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:120) ~[server.jar:git-Paper-33d42c8e]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:104) ~[server.jar:git-Paper-33d42c8e]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:405) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_292]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?]
... 2 more

#

When i /papi reload

turbid tide
#

please sue paste bins and send a startup log

austere hawk
#

It only gives me an error when I reload, the expansions don't update

turbid tide
austere hawk
#

This when I start papi

#

Help please

#

bad support

wintry spade
turbid tide
# austere hawk bad support

alr then. will let good support help you and I'll just mind my own business. I'm asking for a startup log, you give me an error ...

austere hawk
#

What do you need the startup log for?

turbid tide
#

well if that's how you want this to go.. I Don't have time for this. Just reinstall PlaceholderAPI. From the error it looks like it might be a corrupted jar. Not sure tho since apparently I Can't have a startup log.

#

gtg now. someone else will help you if reinstalling is not enough

austere hawk
#

%math_{value}/100000)_% M

#

Why not work?

#

[Math] Invalid Placeholder detected!
[20:04:54 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_{value}/100000)%
[20:04:54 WARN]: [PlaceholderAPI] [Math] Cause: Not allowed placeholder-syntax '%math
<text>_%'

turbid tide
#

ugh what is value?

austere hawk
#

%math_{vault_eco__balance}/100000_%M

#

not work same

turbid tide
#

vault_eco_balance doesn't return an integer

#

use {vault_eco_balance_fixed} instead

austere hawk
#

`money:

placeholder: '%vault_eco_balance%'

rules:
- ">=1000000;%math_{vault_eco_balance_fixed}/100000_%M"`

#

The placeholder does not return the value with M

turbid tide
#

why are you using that tho?

#

I'm super confused

#

what are you trying to do?

mint fable
#

what is rules

#

I tried reading up, not sure if I missed something

turbid tide
#

nah you did not

#

that's what I'm trying to figure out

mint fable
#

ah

turbid tide
#

%vault_eco_balance_formatted%

mint fable
#

and there's also a formatter expansion

turbid tide
# mint fable ah

it seems like he's trying to make his own formatted placeholders

austere hawk
#

Yes, but it only comes to Q

mint fable
#

or numberformat

#

whatever it is called

turbid tide
#

idk about number format. never used it

mint fable
#

use my javascript one @austere hawk

#

1 second

austere hawk
#

I do not know how to use it

mint fable
#

i send

tender vaporBOT
mint fable
#

download that expansion

austere hawk
#

a

#

How to use?

mint fable
#

i send one more thing

#

/papi download javascript
/papi reload

#

i'm trying to find my file

turbid tide
austere hawk
#

I don't know how to program in JS

turbid tide
#

you don't need to

#

wait a bit until he sends you the code

austere hawk
#

ahh

turbid tide
#

he's already made it you just have to add it to your server

austere hawk
#

ok

mint fable
#

aha

#
var exp = parseInt("50912");

function formatNum(num){
    var suffixes = ['', 'k', 'm', 'b', 't', 'qd', 'qn'];
    var decimals = 2;
    for(i=0;i<suffixes.length;i++){
        if(num>=1000){
            num = (num/1000);
        } else {
            return num.toFixed(decimals)+suffixes[i];
        }
    }
    return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}

formatNum(exp);
#

so

austere hawk
#

k,m,b,t,Q,Qt,S

mint fable
#

is change your suffixes and the placeholder

turbid tide
#

you can change that yourself

mint fable
#

instead of parseInt("50912") make it parseInt("%placeholder%")

#

and remember it has to be the raw number, no commas or anything else

austere hawk
#

ok

mint fable
#

you can change the decimals as well

#

so it can come out as 5.28M or 5.2M or 5M

turbid tide
#
var exp = parseInt("%vault_eco_balance_fixed%");

function formatNum(num){
    var suffixes = ['', 'k', 'm', 'b', 't', 'Q', 'Qt', 'S'];
    var decimals = 2;
    for(i=0;i<suffixes.length;i++){
        if(num>=1000){
            num = (num/1000);
        } else {
            return num.toFixed(decimals)+suffixes[i];
        }
    }
    return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}

formatNum(exp);```
#

here

#

changed it for you

mint fable
#

noice

turbid tide
#

well cj when u got 2 minutes check my link pls. ty

austere hawk
#

ty

#

i try

#

not work

#

RIp

mint fable
#

what have you tried?

#

did you save the javascript as a .js file in your server/plugins/PlaceholderAPI/javascripts folder?

austere hawk
#

I see NaN

mint fable
#

and define it in the config?

austere hawk
#

yeah

mint fable
#

what did you type to see NaN?

austere hawk
#

I gave myself 1Q and it comes out written NaN

mint fable
#

what if you had 1m?

#

because it shouldn't be too big

#

most likely a different issue

austere hawk
#

NaN

mint fable
#

okay

#

what are you typing?

austere hawk
#

eco give myname 1000000

mint fable
#

which placeholder sorry

austere hawk
#

%javascript_name%

mint fable
#

can I see your javascript config?

austere hawk
#

ok

mint fable
#

the javascript_placeholders.yml

#

=paste

tender vaporBOT
austere hawk
#

soldifatti: file: money.js engine: nashorn

mint fable
#

ah

#

so you have to use %javascript_soldifatti%

austere hawk
#

yeah

#

var exp = parseInt("%soldifatti%");

function formatNum(num){
var suffixes = ['', 'K', 'M', 'B', 'T', 'Q', 'Qt', 'S'];
var decimals = 2;
for(i=0;i<suffixes.length;i++){
if(num>=1000){
num = (num/1000);
} else {
return num.toFixed(decimals)+suffixes[i];
}
}
return (num*1000).toFixed(decimals)+suffixes[suffixes.length-1];
}

formatNum(exp);

mint fable
#

oh no no

turbid tide
#

welp

#

there is our problem

mint fable
#

your placeholder is not %soldifatti%

austere hawk
#

ah

mint fable
#

nah he changed the suffixes @turbid tide

turbid tide
#

the one I sent is exactly what you need

mint fable
#

the placeholder is %vault_eco_balance_fixed%

turbid tide
mint fable
#

so change that and try again

austere hawk
#

so what do i wear?

turbid tide
#

what I sent you but you change the suffixes only

#

or switch %soldifatti%

mint fable
#

replace parseInt("soldifatti") to parseInt("vault_eco_balance_fixed% in yours

turbid tide
#

to %vault_eco_balance_fixed% in yours

austere hawk
#

k

#

and then in my scoreboard?

mint fable
#

%javascript_soldifatti%

austere hawk
#

ah

#

a

#

now work

mint fable
#

👍

#

and you can add more if need be

turbid tide
#

more prefixes he means

mint fable
#

suffix*

turbid tide
#

btw cj why not add it to the community scripts ?

mint fable
#

I was gonna

austere hawk
#

but

#

sextillions not work

mint fable
#

@turbid tide do I add it to the page or make a PR?

#

or issues?

#

it isn't?

turbid tide
mint fable
#

what does it say

austere hawk
#

only reaches 9.22Qt

mint fable
#

how much do you have

austere hawk
#

1Sextillions

mint fable
#

exactly?

#

or do you have 1.922 sextillion

austere hawk
#

eco give Aleehx_ 1000000000000000000000

#

but show me 9.22Qt

mint fable
#

did you start at 0?

#

wait

austere hawk
#

yeah

mint fable
#

umm

austere hawk
#

What can I do?

mint fable
#

type /papi parse me %vault_eco_balance_fixed%

#

what does that say

#

9.22qt? (but the whole number)

austere hawk
#

yes

mint fable
#

so vault is maxing out...

#

😂

austere hawk
#

bruh

mint fable
#

bruh i'm lazy

austere hawk
#

what I do?

#

?

mint fable
#

I don't know

austere hawk
#

BRUH

#

in /bal i have 1S

mint fable
#

do you have the latest vault expansion?

#

and the latest papi?

austere hawk
mint fable
#

just run those commands

#

it will download the latest

#

if you wanna see if that helps/fixes it

turbid tide
#

do you use essentials btw? as your economy? Bcz you might also have to increase the max amount in there

mint fable
#

he has 1s

austere hawk
#

So I download this?

turbid tide
mint fable
#

ye, it's weird

austere hawk
#

I have increased the limit to 500S

#

of essentials

mint fable
#

yes, download the dev build

austere hawk
#

ok

mint fable
#

and /papi ecloud download vault

#

/papi reload

austere hawk
#

1st 2nd or 3thrd

#

PlaceholderAPI-2.10.10-DEV-123-javadoc.jar 96.18 KB visualizza
PlaceholderAPI-2.10.10-DEV-123-sources.jar 85.18 KB visualizza
PlaceholderAPI-2.10.10-DEV-123.jar

turbid tide
#

Long

mint fable
#

3rd

turbid tide
#

has max of 9.2Qt

#

does it not?

mint fable
#

ye it does

#

but idk why they use long

turbid tide
#

they might be using Long and not BigINteger then

mint fable
#

nah, double

#

i swear they were using double

austere hawk
#

same

turbid tide
#

yeah they were pretty sure. at least the api requires doubles

#

when you want to add/take

austere hawk
#

9.22qt

mint fable
#

just update it all and see

#

I'm reading the vault expansion now

austere hawk
#

Should I delete the folder of papi?

turbid tide
#

no

mint fable
#

the fixed makes it a long

austere hawk
#

I did it then

mint fable
#

so we need to get rid of that

willow galleon
#

hi i had question, is any possibility to make gradient hex colored placeholder? i had for example %essentialsnick% and i want it to be gradiented

austere hawk
#

I always see 9.22qt

mint fable
#

did you really delete the PAPI folder

#

undo that if so

#

if you can

#

so

austere hawk
#

I haven't deleted it

mint fable
#

what does /papi parse me %vault_eco_balance% return

#

because we need to use that I believe and strip/change the formatting on it

austere hawk
#

1.01E23

mint fable
#

we could split it at the E

#

this is annoying

austere hawk
#

Bruh

turbid tide
austere hawk
#

That's why I wanted to use Math, but it doesn't work

mint fable
#

math won't fix this

#

javascript isn't the issue

turbid tide
#

%rgb_gradient_#<HEX>:#<HEX>_{essentials_nickname}%

austere hawk
#

What can I do then

mint fable
#

the issue lies in the fact that the _fixed placeholder returns a long

austere hawk
#

ah

willow galleon
mint fable
#

most likely because if it's bigger than 999Qt it displays like 1.01E23

#

I'm assuming?

turbid tide
mint fable
#

idk how you would

#

because of what I just said

turbid tide
#

hmm

#

idk how E numbers work xD

#

I assume E23 means 23 0s

austere hawk
#

Bruh

turbid tide
#

?

mint fable
#

it's 1.02 * 10^23

#

so yes

austere hawk
#

I've been looking for a solution for this for days and days but still nothing

mint fable
#

it's 1.02S

#

that's what it is

#

so we could split it at the E

turbid tide
#

yeah, maybe you can convert it to a string and split

#

yeah

austere hawk
#

a

mint fable
#

ah you'd have to format the string

austere hawk
#

So what do I do

austere hawk
mint fable
#

i wonder if you can do it in javascript or not

austere hawk
#

a

mint fable
#

aha

#

I think

austere hawk
#

Do such a thing if the money is more than or equal to 1S (in numbers) divide it by 1S and add "S" to it

#

idk

mint fable
#

hmm wait

#

it might be easy

#

?

#

ale

austere hawk
#

?

mint fable
#

I'm not 100% sure, but try Number instead of parseInt

austere hawk
#

ok

mint fable
#

so Number("%vault_eco_balance%")

#

maybe

austere hawk
#

var exp = Number("%vault_eco_balance_fixed%");

#

ok

turbid tide
#

not fixed

mint fable
#

no fixed

turbid tide
#

this time

mint fable
#

because that's max 9.22Qt

austere hawk
#

not work

#

9.22Qt

mint fable
#

oh it shows 9.22Qt?

austere hawk
#

y

mint fable
#

did you use fixed

austere hawk
#

?

#

ahh

turbid tide
#

did you use var exp = Number("%vault_eco_balance_fixed%"); or var exp = Number("%vault_eco_balance%");?

#

you should use the second one

#

without fixed

austere hawk
#

1.00S

#

YEAH

mint fable
#

😮

#

it worked

austere hawk
#

fvck vault

mint fable
#

well

#

not really

#

I get why it was done

austere hawk
#

Maybe because the fixed reaches 9.22Qt I don't know

mint fable
#

sort of

austere hawk
#

Badly written code

mint fable
#

err

#

idk the fixed is weird

#

it should just be formatted

austere hawk
#

Man, the important thing is that we have solved it;)

mint fable
#

exactly

#

and now my community script will be better

austere hawk
#

I really don't know how to thank you "

mint fable
#

but test it with under 1s

#

as well

#

to make sure

austere hawk
#

ok

#

The number you see is like 100.00B there is no way to just make 100B appear?

mint fable
#

ye

austere hawk
#

how

mint fable
#

change the decimals to 0

#

and it should be good

austere hawk
#

where

#

ah

#

var decimals = 2;

#

perfect

#

It works perfectly

#

With all letters

mint fable
#

very nice

austere hawk
#

Sorry for my bad english

#

i'm italian

mint fable
#

prego

austere hawk
#

sei italiano?

mint fable
#

no 😂

austere hawk
#

ahahaha

mint fable
#

I mean, yes, but not from italy

#

generations down

austere hawk
#

mmh

mint fable
#

and no speak italian either

#

maybe one day

austere hawk
#

Nice

mint fable
#

@turbid tide can I do Number(arg[0]) or no?

#

and it will parse placeholder

turbid tide
#

the bracket ones

mint fable
#

huh?

turbid tide
#

pretty sure it parses them before it initializes the code

#

also its args

#

not arg

mint fable
#

ye ye

#

icic

austere hawk
#

bro?

#

Why 1Q is 1QT

#

if buggy

mint fable
#

it goes from T to QT?

austere hawk
#

wait

#

I'm getting confused too haha

#

1S is 1,000,000,000,000,000,000 or not?

mint fable
#

no

#

that is 1 QT

austere hawk
#

a

mint fable
#

00S,00Q,00q,00t,00b,00m,00t,000

austere hawk
#

wtf

mint fable
#

it makes sense

#

😂

#

sextillion, quintillion, quadrillion, trillion, billion, million, thousand

austere hawk
#

ok

#

1S have 21 zero?

mint fable
#

yes

austere hawk
#

ok ok

#

999999999999999999999999 = 1St

mint fable
#

St?

austere hawk
#

Ok it works I just got confused

mint fable
#

why not Sp

austere hawk
#

mmh ok

mint fable
#

then O

#

N

#

D

#

err

austere hawk
#

In Italy not all these numbers exist; /

#

lmao

mint fable
#

i don't think it's english either

#

probably latin or some shit tbh

austere hawk
#

😉

#

ok, thanks for everything, you were really very kind, now I have to go, bye !!

#

Guys everyone who joins [LocalTime] Couldn't get X_gamer_x5's timezone. Will use default timezone.

#

i dont think its papi related but yea

turbid tide
#

pretty sure that is from the LocalTIme expansion. NOt 100% sure tho

austere hawk
#

what does it mean? how do i fix that

turbid tide
#

You can't really fix it. It just can't find the player's time zone

turbid tide
#

do you use TcpShield or something like that btw? Usually those break that

turbid tide
#

well usually it happens when it can't get the location of a player from their IP so it doesn't know what time zone they are in by default

austere hawk
#

what do i add and where? (path)

turbid tide
#

I don't think there is a way to disable that message

turbid tide
#

it will probably draw people's attention more

austere hawk
#

i dont know

turbid tide
#

yeah looked at the source code

#

that's why I'm sure you can't disable it

austere hawk
#

thats the addon i tihnk

turbid tide
#

nice

turbid tide
#

you can delete it if you don't use it, but you can't disable that message

#

you can just ignore it or delete the expansion

#

completely

mint fable
#

do you like all the extra suffixes I added

#

😂

austere hawk
#

%localtime_time_HH:mm aaa%

turbid tide
austere hawk
#

it gives somthing random

turbid tide
#

but yteah nice

turbid tide
mint fable
#

well they are commented out

turbid tide
#

it gives the time from where the server is located

#

yeah Ik

austere hawk
mint fable
#

I did up to s to show it could be done 😉

#

9.22qt max my ass

austere hawk
#

wait

turbid tide
austere hawk
#

imma change the time in my server

turbid tide
#

like France, Germany something like that

austere hawk
#

tbh

turbid tide
#

idk if changing the time in your server will affect. pretty sure it takes it from the ip