#placeholder-api

150650 messages · Page 3 of 151

near scroll
#

and what one the signature or data

keen crown
keen crown
#

Heyo?

turbid tide
#

I have no idea what causes that error but I'll tell you what I understand. It's something to do with vault and essentials economy.

#

do you have Vault and Essentials? if you do then try downloading the Vault expansion

warm topaz
#

ah i remember this error. i cant remember how i fixed it. i believe u have to go back a version of vault expansion

turbid tide
#

or do this if what I've said doesn't work ^

vapid rune
#

How do I put placeholders into bungeecord plugins? Like for example a tab plugin that I put into the bungeecord plugins folder

turbid tide
#

PAPI doesn't support Bungee so idk if you can. I might be wrong tho

untold crater
#

It depends on the tab plugin

#

I know some will forward them from spigot

brisk coral
#

TAB does that

unkempt charm
#

Does PAPI have javadocs?

#

Or could someone explain to me how PlaceholderAPI#setRelationalPlaceholders() works?

turbid tide
junior fox
#

ty

turbid tide
#

no problem

unkempt charm
#

Was that directed at me or the other person?

turbid tide
#

the other person. but you could ask in there as well

lyric lion
#

Hi! :D

%luckperms_group_expiry_time_vip% returns something like this: 1d 5h 36s, but for lp user %player_name% parent addtemp vip_plus %luckperms_group_expiry_time_vip% I need this: 1d,5h,36s.

What I can do with it?

turbid tide
#

you could use javascript

warm topaz
#

formatter expansion maybe? or javascript

turbid tide
#

and just replace the spaces with commans

lyric lion
#

I'm completely don't know JS and it usage in PAPI/DM :c

#

@warm topaz, sorry for ping, how I can use formatter in this case? Does it has "replace" option?

turbid tide
#

I am pretty sure you can't

warm topaz
#

im not sure tbh, i just said it as maybe it does

turbid tide
#

it only formats intigers

warm topaz
#

ah

turbid tide
#

I tried it before and just spits an error

warm topaz
#

ye use javascript then

#

seems easy enough as u said anyway blitz

lyric lion
#

Js, meh :c

turbid tide
#

let me finish the thing I'm working on and I'll make the js. should be like 5-6 rows

lyric lion
#

Okay

vapid rune
#

TAB does that
@brisk coral really? I'm using it and it just says %essentials-nick% or something

tender vaporBOT
#

@vapid rune,

vapid rune
#

oh sry

junior musk
#

%essentialsnick% is a placeholder built-in TAB

#

And it's only on the Spigot version of TAB

#

but it has support for PlaceholderAPI via a bridge

#

so you can use the placeholder %essentials_nickname% form the Essentials expansion for PlaceholderAPI

vapid rune
#

oh

turbid tide
#

and to use that you need the Essentials expansion on your servers

junior musk
#

note that this will only work for TAB as it was designed for it, other plugins won't be able to use PlaceholderAPI placeholders except if they make a bridge like TAB did

lyric lion
#

Where I can read about JS usage in PAPI?

lyric lion
#

❤️

turbid tide
#

btw

#

made this

#

you will need to use it like this: %javascript_FILENAME_{placeholder}%

#

@lyric lion

lyric lion
#

❤️ x2

#

Oh.. So simple 😄

turbid tide
#

didn't test it tho

#

but in theory it should work. I mean its literally 5 lines

#

xD

lyric lion
#

I edited "example" in scripts folder. It might be looks like this? %javascript_example_{luckperms_group_expiry_time_vip}%

turbid tide
#

yeah

#

oh well just tested it seems to not work. Only changes 1 space

#

I'll change it a bit

#

here you go

#

this one works

lyric lion
#

/jsexpansion list says that I has zero scripts loaded

turbid tide
#

yeah it breaks

#

just do /papi reload

#

or follow the tutorial I've senmt

#

sent*

junior musk
#

shouldn't you replace the {} by %% in the script?

turbid tide
#

what?

#

this is the script

#

doesn't have %%

#

you call the placeholder in arguments using {}

junior musk
#

he's using that placeholder

%javascript_example_{luckperms_group_expiry_time_vip}%

turbid tide
#

yeah

#

that's the correct way

junior musk
#

the placeholder isn't translated in {}

turbid tide
#

wdym?

junior musk
#

I hace to go

#

just add another r
replace thing

turbid tide
#

nah I fixed it

junior musk
#

ok idk

turbid tide
#

made it replace it golbally

#

the placeholder works

lyric lion
turbid tide
#

yeah

#

that's why I told you to use /papi reload

#

instead

#

....

lyric lion
#

I'm do all that you say in guide

turbid tide
#

just follow the guide and don't use /jsexpansion reload becuase I didn't say to use it in my guide

lyric lion
#

/papi parse me %javascript_example_{luckperms_group_expiry_time_vip}% result is %javascript_example_{luckperms_group_expiry_time_vip}%

#

Still same error.
Only thing, that I do not by guide - replacing this

    file: replacespacesjs```
with this:
```  replacespaces:
    file: replacespaces.js```
turbid tide
#

I literally told you how to use the placeholder in the guide

#

change example to replacespaces .....

lyric lion
#

I did everything that was said in the guide several times already

turbid tide
#

yeah

#

but when you parsed the placeholder

#

you still parsed it as the example omne

#

one*

#

you didn't change it

#

%javascript_**example**_{luckperms_group_expiry_time_vip}%

#

you see what I mean?

#

%javascript_replacespaces_{luckperms_group_expiry_time_vip}% use this instead

lyric lion
#

Yes, I see, and I already tried this

turbid tide
#

and?

lyric lion
#

Still some problem

turbid tide
#

what problem?

#

what did you change in it?

lyric lion
#

Seems like this extension incompatible with mohist or any other things

#

what did you change in it?
just added a dot before js

#

@junior musk, I know that you using mohist, does you has same errors?

turbid tide
#

oh yeah that was my mistake

junior musk
#

I don't really use it atm x) only sole testing

lyric lion
#

Hm

junior musk
#

and I didn't follow the conversation

lyric lion
#

tl;dr version: JS extension doesn't work 😄

turbid tide
lyric lion
#

[19:44:12 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: hello_world

turbid tide
#

oh wait

#

I think I know what the problem is

#

add: engine: 'nashorn'

#

under file: etc.

lyric lion
#

It automatically turns to engine: nashorn

#

...and still doesn't work

#

[19:52:40 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: hello_world

same error

turbid tide
#

can you send a screenshot of : javascript_placeholders.yml, javascripts folder and the replacespaces.js file?

warm topaz
#

paste ur js file

turbid tide
#

because I rly don't know what you've done wrong

warm topaz
#

^

turbid tide
#

I gave him everything something must have gone wrong

#

while setting it up

junior musk
#

actually, now that I think of it, I remember that the js expansion didn't work for me on Mohist

turbid tide
#

because it works just fine for me

junior musk
#

but it was a long time ago

#

the same script worked on a paper server

lyric lion
turbid tide
#

i have no idea what Mohist is xD

mint fable
#

what is mohist

lyric lion
#

Forge+Paper+Spigot

mint fable
#

link?

lyric lion
turbid tide
#

wtf is that?

mint fable
#

probably won't work tbh

turbid tide
#

where did that hello world come from?

#

xD

lyric lion
turbid tide
#

I am so confused

mint fable
#

wtf

turbid tide
#

why didn't you follow my guide tho? All this time I thought you were following my guide

#

...

mint fable
#

^^^

lyric lion
#

I followed your guide earlier, it gave the same effect, so I tried another guide

mint fable
#

spigot and forge for 1.12.2?

lyric lion
mint fable
#

bookmarking that

turbid tide
#

idk either that thing you are using doesn't accept js placeholders or you did something wrong but I have no idea

mint fable
#

it's possible mohist is messing with it

junior musk
#

on my Mohist server, expansions were working fine except the js one

mint fable
#

but I'd say follow the guide blitz sent

turbid tide
#

cj btw edit the wiki for javascript

#

because /jsexpansion reload breaks if you do /papi reload

#

change it back to /papi reload until that is fixed

mint fable
#

wot

junior musk
#

yeah it's broken

turbid tide
#

/jsexpansion reload works until I do /papi reload

#

after it just loads 0 scripts

#

until I restart the server

mint fable
#

you don't have access?

turbid tide
#

idk is it in help-chat? let me check xD

#

I thought its another one

mint fable
#

it's in placeholderapi

lyric lion
#

Oof.. I will restart server and try again.

turbid tide
#

I only have access to help-chat cj

mint fable
#

i see

turbid tide
#

they are afraid to give me access to anything else xD

#

well never asked actually

#

but yeah :)))

mint fable
#

done

turbid tide
#

yeah better

lyric lion
#
  1. /papi ecloud download JavaScript
  2. /papi reload
  3. add to javascript_placeholders.yml
  file: replacespaces.js```
https://prnt.sc/t7jxq1
4. /papi reload
5. put to replacespaces.js
```var placeholder = args[0];
function replaceSpaces(){
  return placeholder.replace(/ /g, ",");
}
replaceSpaces();```
6. /papi reload
7. /papi parse me %javascript_replacespaces_{luckperms_group_expiry_time_vip}%
Result: https://prnt.sc/t7jzad
turbid tide
#

yeah probably its because of Mohist then

mortal valley
#

any new build for 1.16 ?

#

or should the current one work fine ?

warm topaz
#

theres one in the pinned messages

mortal valley
#

cheers

turbid tide
#

read carefully the message

#

it says it is not recommended to be used on a live server

mortal valley
#

yeah, just updating all plugins on test server

#

to see whats updated and what not

turbid tide
#

you're gonna have to wait a bit until most plugins fully support 1.16 and have less bugs xD

heady dove
#

Hello ecloud for PlayTime don't work on 1.16.1 server can be this fixed please ?

mortal valley
#

tbh.

#

I have 95 plugins

#

and 90% work with older versions

turbid tide
#

@heady dove contact the PlayTime plugin developer

mortal valley
#

since the 1.16 update is not as bad as 1.12 to 1.13

#

with all the block saving ...

heady dove
#

Mhmm i use only PaPi i don't use plugin i think so this is on developer of PaPi

turbid tide
#

what playtime placeholder then?

#

can you give the placeholder that you are trying to use?

heady dove
#

Sure
"%playtime_player%
%playtime_time%
%playtime_timesjoined%
%playtime_serveruptime%"

turbid tide
#

well those are placeholders from the PlayTime plugin

#

so you need the PlayTime plugin as well for them to work and also that plugin only supports versions up to 1.13

#

use %statistic_time_played% for the playtime

heady dove
#

Okey thanks and do you know what i can use for economy ? Because Vault don't work too 😅

turbid tide
#

have you downloaded the expansions?

heady dove
#

Sure

turbid tide
#

and you are trying to use %vault_Eco_balance% ?

heady dove
#

I using %vault_eco_balance_fixed%

turbid tide
#

and what is it returning?

heady dove
#

It don't work 😦

#

Can it make ScoreBoard so it don'T work ?

#

If ScoreBoard son'T maked to 1.16 ?

turbid tide
#

do /papi parse me %vault_eco_balance_fixed% and see what it returns

heady dove
#

Nothing 😦

turbid tide
#

wdym by nothing? can you send a screenshot?

#

?imgur

tender vaporBOT
heady dove
#

It write to chat %vault_eco_balance_fixed%

turbid tide
#
/papi ecloud download Vault
/papi reload```
#

execute these commands ^

heady dove
#

I have Vault

turbid tide
#

just execute those commands

#

and then try agaion

#

the command I've sent earlier

heady dove
#

Okey i now tryied but nothing

heady dove
#

So any idea ?

mint fable
#

?startuplog

tender vaporBOT
mint fable
#

send that over

normal kettle
#

why arent these placeholders working

#

did /papi ecloud download Statistic

#

it downloaded

#

then /papi reload + server restarted

mint fable
#

what mc version you on

normal kettle
#

1.8

mint fable
#

try downloading 1.7.0 and use _ instead of : I believe

normal kettle
#

1.0.7*?

warm topaz
#

papi ecloud download statistic 1.7.0

mint fable
#

ye, it's 1.7.0

normal kettle
#

oh yeah nvm

#

my bad

mint fable
#

not 1.0.7 that doesn't exist

normal kettle
#

worked thanks

mint fable
#

👍

normal kettle
mint fable
#

bruh

#

try downloading 1.7.0 and use _ instead of : I believe
@normal kettle

normal kettle
#

all other ones without : are working

warm topaz
#

try COW too

mint fable
#

bruh

warm topaz
#

might be case sensitive

mint fable
#

use _

#

instead of :

normal kettle
#

just did

mint fable
#

and?

normal kettle
#

Yeah neither of those suggestions worked

mint fable
#

can you show what you tried again?

normal kettle
#

oh well, will work out some other way

turbid tide
#

wtf?

mint fable
#

wtf

#

you did it exactly opposite

#

use _

turbid tide
#

%statistic_kill_entity_MOB%

mint fable
#

INSTEAD OF

#

:

normal kettle
#

OHH

#

lol

warm topaz
#

LOL

mint fable
#

not use : instead of _

normal kettle
#

worked

warm topaz
#

😄

normal kettle
#

ty lmfao

mint fable
#

b r u h

normal kettle
#

reckon theres a way to get collective mobs killed?

heady dove
#

?paste

tender vaporBOT
mint fable
#

add em all up

normal kettle
#

boi

mint fable
#

in a javascript

#

here

turbid tide
#

math or javascript

#

also

normal kettle
#

Yea

heady dove
turbid tide
#

try %statistic_kill_entity_<mob>,<mob2>% first

#

I never tried this

mint fable
#

nah

turbid tide
#

but just saw it in the barry message

mint fable
#

have fun ```javascript
var zombieKills = parseInt("%statistic_kill_entity:zombie%");
var creeperKills = parseInt("%statistic_kill_entity:creeper%");
var endermanKills = parseInt("%statistic_kill_entity:enderman%");

function mobKills() {
return (zombieKills + creeperKills).toFixed();
}

mobKills();

#

gotta add them all yourself

#

not what i wanted

heady dove
mint fable
#

eh, it works

turbid tide
#

well I didn't ask for it xD ...

mint fable
#

you don't have vault...

#

search your log

heady dove
#

I have >:|

mint fable
#

it literally yells at you like 50 times for not having vault

heady dove
#

I install them

mint fable
#

and by 50 i mean like 6

turbid tide
#
[20:12:22] [Server thread/WARN]: [Essentials] Detected supported permissions plugin LuckPerms without Vault installed.
[20:12:22] [Server thread/WARN]: [Essentials] Features such as chat prefixes/suffixes and group-related functionality will not work until you install Vault.```
#

you don't have vault xD

heady dove
#

Mhmm i can send there image >:|

mint fable
#

tofonek

turbid tide
#

?imgur

tender vaporBOT
mint fable
#

I don't care if you have the vault jar in your folder

#

it is not loading on the server

heady dove
mint fable
#

and you literally can not say it is

#

that is the vault expansion

turbid tide
#

jesus

#

xD

mint fable
#

that is not the vault plugin

#

nope

#

it's bukkit

turbid tide
#

you need the plugin as well

#

....

mint fable
#

oh they put it on spigot too now?

warm topaz
#

been on spigot for a while

turbid tide
#

idk I always used thatr one from spigot

mint fable
#

only like 3 and a half years

#

pssh

heady dove
#

Oh i'm idiot 😄 I'm sorry, i forgot download Vault

peak summit
turbid tide
#

what's your server version?

peak summit
#

1.12.2

#

@turbid tide

turbid tide
#

k I'll test it later

mint fable
#

To stop things from braking all you gotta do is cut the brake lines 😉

turbid tide
#

what?

mint fable
#

then it brakes.

turbid tide
#

oh

#

on 1.15.2 its working

turbid tide
#

@peak summit found your problem

peak summit
#

Yep!

turbid tide
#

well at least I think

#

are you using it in the display_name?

peak summit
#

Yes?

turbid tide
#

the %javascript_lore%

#

are you using it in the display_name ?

#

because if you are than that's the problem

peak summit
#
            - '%javascript_lore%'
#

No, sorry. It is in the lore.

turbid tide
#

oh then I have no idea

#

it works fine for me

#

on 1.12.2

#

and on 1.15.2

peak summit
#

Hmm, Should i send my full config?

#

=paste

tender vaporBOT
turbid tide
#

sure I guess

peak summit
#

@turbid tide I do not know what the issue is....

#

maybe because i am using tokenenchant?

turbid tide
#

I have no idea either

#

now if I use your menu it does break

#

but before it did not

#

so it is the menu's fault

#

but don't know why tho

#

oh

peak summit
#

?

turbid tide
#

@peak summit it's update: true

#

you need to remove it otherwise

#

it will break

#

every time

#

but if you remove it it won't

#

or set it to false

#
  • you have no need for it
#
    Pico:
        material: placeholder-%player_item_in_hand%
        data: placeholder-%player_item_in_hand_data%
        hide_attributes: true
        update: false
        hide_enchantments: true
        enchantments:
            - DURABILITY;1
        slot: 4
        display_name: '%player_item_in_hand_name%'
        lore:
            - '%javascript_lore%'```
#

this works

peak summit
#

🆒

#

Working now!

daring holly
#

hello how can i create an account

turbid tide
#

what account?

uncut remnant
#

Placeholder 1.16? Support

turbid tide
#

there is a beta version in pinned messages but as it says there its not recommended for live server. use at your own risk

daring holly
#

Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us.

turbid tide
#

what?

#

registration to ecloud?

daring holly
#

yes

turbid tide
#

oh you'll have to wait for an admin to get online.

#

currently they are all offline

#

yo @vivid sparrow can trusted make accounts and verify them or something? (On ecloud) ^

daring holly
#

btw can i download with a github repo

#

with papi ecloud command

turbid tide
#

what do you want to download?

#

expansions?

daring holly
#

ye

turbid tide
#

you don't need an account to do that

daring holly
#

no like if i made my own expansion

turbid tide
#

oh

daring holly
turbid tide
#

I am not sure actually

#

I know you can either put it on ecloud or make it inside the plugin

warm topaz
tender vaporBOT
#

@austere hawk,

turbid tide
#

there is a pin button n the corner

oblique coral
#

is it possible to fit placeholders within placeholders? Ex. %cmi_random_[%placeholder2%]_[%placeholder3%]%

brisk coral
#

If the placeholder supports it yes

#

And it's usually {}

north dew
#

I'm using %essentials_worth% and i noticed it gets the worth of the player's hand, is there any way i can get the worth of a specific item. I'm using skript (ersatz to be specific) Here's my code if u want it :

Command /shop <item> <number = 1>:
  aliases: /market, /buy
  trigger:
    give arg-2 of arg-1 to the player
    send "%placeholder ""essentials_worth""%"
brisk coral
#

We don't do that here.

north dew
#

ik, but technically it's stiill placeholder api

vivid sparrow
#

you can't do that currently but can be added

north dew
#

wdym

#

oh

#

when is it being added?

vivid sparrow
#

I said it can be added

#

open an issue on github so we don't forget

north dew
#

ohhh

#

i thought u said it was being added

#

ok i opened an issue

stone parcel
#

How i can use placeholder in JavaScript?

#

(parse)

ornate ginkgo
#

Can I use placeholder api plugin in 1.16?

warm topaz
#

check the pinned messages

ornate ginkgo
#

Thanks uwu

stone parcel
turbid tide
#

you gave your function the same name as your variable

stone parcel
#

oh bruh

turbid tide
#

also put your placeholders in "" or ''

#

not in ``

stone parcel
#

yeah but i want to use $

turbid tide
#

also remove break;

stone parcel
#

why?

turbid tide
#

I'm not sure you can use $

stone parcel
#

it wouldnt work without it

turbid tide
#

it will stop when it returns something

#

the function will stop

#

also I am not 100% sure but I think there is a placeholder that returns the job name already

#

don't know where I've seen it tho

stone parcel
#

the problem is, that by default you can have multiple jobs

#

because of this i think there is no placeholder thtat returns the job#

#

but how i can stop the foreach statement?

#

i think i will do it with if statements

turbid tide
#

what does this placeholder %jobsr_user_archived_jobs% return?

stone parcel
#

nothing

#

itself

turbid tide
#

that's weird.

stone parcel
#

oh wait bruh, i did it on the wrong server

#

wait i have to start him

#

it returns 5

turbid tide
#

oh I see so that's not good

#

the best way I can think of it is by doing it using ifs

stone parcel
#

yeah i have done it already

turbid tide
#

@stone parcel %jobsr_user_job_1% returns the first job a player is in

#

%jobsr_user_job_2% second job

#

etc.

#

and if the player doesn't have a job on that slot it returns none

stone parcel
#

oh, thank you

sour flower
#

I need help. There's an internal error when I try to download the papi's.

turbid tide
#

can you paste the error?

#

?paste

tender vaporBOT
sour flower
warm topaz
#

#spigot-linking

turbid tide
sour flower
#

not sure why that makes a difference with anything.

warm topaz
#

its an issue with DChat

turbid tide
#

well now we can confirm you have bought deluxe chat

#

a lot of people who cracked the plugin come here for support even tho they didn't buy it so a system was made to make sure they get detected and banned

sour flower
#

I'm too dumb to do cracked plugins.

#

plus i'm scared that it'll crash my server xD

#

;-;

turbid tide
#

yeah or download your entire server. People that give cracked plugins do a lot of weird things with them

sour flower
#

Yikes

warm topaz
turbid tide
#

so when does this error show?

sour flower
#

When i updated to 1.161.1

#

oop. you know what i mean

turbid tide
#

I think you can use the version of PAPI that is in pinned messages

#

but as it says there PAPI doesn't fully support 1.16. There might be a lot of bugs

#

or it could break your server so its not recommended

#

to use it on a live server

sour flower
#

_>

#

So, in other words... don't update until papi can get it figured out.

#

;-;

turbid tide
#

well not on a live server

warm topaz
#

1.16 just came out, theres going to be bugs everywhere

turbid tide
#

helpchat has a lot of plugins that need to get updated and 1.16 got launched just a few days ago

sour flower
#

I'm aware.

turbid tide
#

people are working on a lot of updates rn but they are not getting launched until they know there won't be problems

#

From what I'm aware just DChat got a 1.16 release. The rest are a work in progress

sour flower
#

Oh. I just noticed that my DC is 1.15 should i pout the 1.16 and see if it works ;-;

warm topaz
#

yes lol

sour flower
#

i'm so dumb

#

Okay, it's working. But I have a silly question. Did they remove shift from gliding down while flying?

turbid tide
#

what?

#

I didn't even know that was a thing xD

warm topaz
#

same xd

turbid tide
#

or you don't mean with elytra

#

just normal flying

sour flower
#

No.

#

Normal flying. If you pressed shift it lowered you xD

#

It's not a thing anymore 😠

turbid tide
#

wait rly?

#

I don't believe it. That would be trash

#

maybe you changed your controls?

sour flower
#

Yeah. No I didn't. 😦 It happened in two different servers.

turbid tide
#

yeah controls are not per server they are per client

warm topaz
#

test in vanilla mc

turbid tide
#

just check them just in case

#

also as kaliber said

#

just go in singleplayer

#

and test it if your controls are the same

#

I'm opening 1.16.1 for the fist time and I'm going to check myself

sour flower
#

It works on my singleplayer since it's still in 1.15.2

#

Weird!

warm topaz
#

what about 1.16?

turbid tide
#

just make a new singleplayer

#

for 1.16.1

open flower
#

Im trying to use %server_name% from papi ecloud Server. But all its returning is:
A Minecraft server. And i cannot find out where to change the server name

warm topaz
#

have u done these commands?

#
/papi reload```
turbid tide
#

@open flower in server proprieties

open flower
#

There is no Server-name:

turbid tide
#

the motd

#

thing

warm topaz
#

oh wait, i didnt read it xd

turbid tide
#

its MOTD

#

or something

open flower
#

i did change that to Survival, and restarted the server

#

same thing

warm topaz
#

blitz, server name is defined in papi config

turbid tide
#

and it staid survival?

#

oh rly ?

warm topaz
#

yes sir

turbid tide
#

then check papi config chronic

warm topaz
#

go to /plugins/placeholderapi/config.yml

open flower
#

Like a boss. thank you my man

warm topaz
#

np 😄

turbid tide
#

Kaliber when you get .name() method in 1.15.2 it gets the one from the server proprieties so I assumed it does the same thing kaliber xD

warm topaz
#

welp, thats just how the server expansion works

turbid tide
#

yeah I didn't know but its good to know xD

sour flower
#

weird. so the shift works in single player.

warm topaz
#

possibly a spigot thing, idk

turbid tide
#

I'll test it on my newly made 1.16 server

#

seems to work with latest paper version

#

so its either the version you are using or some plugins

sour flower
#

ooh.. could've been because I didn't upgrade my server -- which is why the shift didn't work. seems to be working now.

#

So, I'm running 1.16.1 and the shift works fine.

#

It'd be glitchy to anyone running anything lower than 1.16.1

azure palm
#

How can I remove the permissions to do /papi for a certain rank?

turbid tide
#

wait papi is allowed to default ranks?

brisk coral
#

That doesn't have a permission iirc

open flower
#

papi isnt cooperating with luckperms, and server's placeholders. 1.16

turbid tide
#

PAPI does not fully support 1.16 You need to use latest version of LP and PAPI from the pinned version

#

also doesn't cooperate isn't enough information there could be other problems

#

do you get any errors on server startup or something?

open flower
#

sec

#

leme see if this is my stupidity first

#

was my stupidity, I got it working after some further tinkering

#

im betting money that dev version helped out though

#

thank you

turbid tide
#

xD no problem

runic lintel
#

HELLO

#

blitz

#

i need u

#

%math_[precision:0]{world_X1}+{world_X2}%

#

how

#

%math_[precision:0]{bungee_lobby}+{bungee_lobby1}%

#

this work

#

but worlds?

warm topaz
#

what is world_x1 and world_x2

runic lintel
#

idk

#

its example

#

how to math world1 + world2

warm topaz
#

are u trying to get how many players are in 1 world?

runic lintel
#

yes

warm topaz
#

%server_online_<world>% i believe

runic lintel
#

%math_[precision:0]{server_online_World1}+{server_online_World2}%

#

?

warm topaz
#

so %math_{server_online_world1}+{server_online_world2}%

runic lintel
#

okay

warm topaz
#

looks good to me

#

make sure u have the server expansion downloaded too

runic lintel
#

thx u

warm topaz
#

no problem

keen crown
warm topaz
#

do u have killstats plugin installed @keen crown ?

tepid birch
#

Is anybody else having issues getting Vault Eco and Permission placeholders to work using paper 1.16.1 build #21, vault 1.7.2-b107 and placeholderAPI 2.10.6?
as in, they don't parse correctly

turbid tide
#

there is a version for 1.16

#

of Papi

#

in the pinned messages

#

try that

tepid birch
#

thank you

#

hmm I still can't get them to work, other placeholders are working (for example player_name and server_tps) just not vault, must be on their end then

#

I'll check logs

#

hmm no vault errors

#

I'll try a dev vault version

warm topaz
#

did u do download vault expansion too?

tepid birch
#

I don't know what that is

#

oh the ecloud

warm topaz
#

yea

#

papi ecloud download vault
papi reload

tepid birch
#

I wonder if the old extension doesn't support the new PAPI dev build?

#

I already had the extension because I made a backup of my server and I'm running on that backup

#

interesting

warm topaz
#

remove superb votes expansion

#

yea

tepid birch
#

vault still doesn't work anyway

#

is this something that only I am facing issues with?

steep thorn
#

@keen crown why use killStats? Plugin hasn't been updated in years

warm topaz
#

^

#

i think im gonna make my own papi expansion that does the same as killstats, more updated and 1 less plugin to download

austere hawk
#

just a question.
Does PlaceholderAPI need to be updated to do /papi ecloud download RNG ?

warm topaz
#

the expansion isnt verified, so u have to download it manually

#

@balmy marten pls verify me 😄

tender vaporBOT
#

@warm topaz,

austere hawk
#

oh

warm topaz
austere hawk
#

uh Kaliber IDK why /papi parse me %rng_min:10_max:100% is not working ?

balmy marten
#

@warm topaz Checked and verified Verified could take up to 2 hours to get cached and show in game

warm topaz
#

thanks 😄

#

@austere hawk, im in the middle of updating it rn but it should be working anyway 🤔

austere hawk
#

well for somereason its showing error

warm topaz
#

?paste

tender vaporBOT
austere hawk
#

let me try restarting

warm topaz
austere hawk
warm topaz
#

what in the hell

#

whats ur java version?

austere hawk
#

idk and idk how to check

warm topaz
#

search for about java on windows start menu

#

and try to redownload the expansion @austere hawk

austere hawk
#

Java 8

#

ok

#

nope

#

@warm topaz still no

warm topaz
#

alright got the problem

#

ill ping u when i update it

austere hawk
#

ok

steep thorn
#

@warm topaz how about the vanilla player kills?

#

Works fine for most use cases

warm topaz
#

ya, but the statistics can only show the player kills and deaths, whereas with KillStats, it shows KD/R and killstreak along with some leaderboards, which vanilla stats dont show

iron garden
#

I've just send a paragraph of text, and it's gone 😦 is there a way to get it back?

warm topaz
#

ctrl+z ?

iron garden
#

I sent them and it got deleted by a bot, ctrl + z doesn't help 😢

#

Is there any logs where I can see the message?

warm topaz
#

nope 😦

iron garden
#

ahh, I'll rewrite then 😂

turbid tide
#

when did you send the message?

iron garden
#

just now

#

2-3 mins ago

brisk coral
#

@warm topaz Math?

iron garden
#

I'm having a ArrayIndexOutOfBoundsException error, when trying to parse a javascript placeholder. The code is here: https://paste.helpch.at/itatifihuj.cs
the error doesn't happen all the time, it just occasionally triggers :/ so that's confusing. Could anyone take a quick look at the code and see if there's anything I do wrong? More complete error log of the out of bounds error https://paste.helpch.at/ukucanebit.md

What I'm trying to accomplish, is to store player name into a custom variable, and be able to get the player name by calling the custom variable at any given point.
Here's what I do:

  1. papi parse Blekdigits "%javascript_dungeondata_desertiaGiga,set%" will store the Blekdigits into a variable called desertiaGiga
  2. papi parse OtherPlayer "%javascript_dungeondata_desertiaGiga%" will return the variable stored in desertiaGiga, which is Blekdigits
warm topaz
#

well yeah, but u still cant do killstreak etc

#

¯_(ツ)_/¯

austere hawk
#

hello

#

when update 1.16 version papi?

brisk coral
#

Use the pinned version

balmy marten
#

Latest version will work, you just wont be able to list expansions in game

#

Which we have a fix that is to be released soon™️

austere hawk
#

Sometimes it's broken even though I do nothing

turbid tide
#

@iron garden when does this happen? is it a special time? or is it just random/ because I can't figure anything wrong here

#

I see that if you have just an argument in your case desertiaGiga and there is something in that path it will return it if not it should return an empty line. and when you have 2 arguments in your case set it should set the the player username in that path and then return the name. Idk if this will help but maybe try and save the username in a variable first and then set the variable in that path

#

and also return the variable

#

even tho as it is everything should work from what I can tell

iron garden
#

the error only happens on the second command, papi parse OtherPlayer "%javascript_dungeondata_desertiaGiga%", never happens when I set the value, sorry about that, I forgot to tell you

#

I was thinking that it might have something to do with mythicmobs, but I don't think so. Over at mythicmobs, I just set the mob to run the parse command to a random player when it dies

turbid tide
#

if only I knew to read errors xD

iron garden
#

ahh XD no worries, your help is appreciated

#

just need someone to see from their perspective, see if my code is weird

turbid tide
#

mythicmobs.skills.placeholders.parsers.PlaceholderString.get(PlaceholderString.java:40) I mean it is something to do with mythic mobs

#

but dk what

brisk coral
#

=paste

tender vaporBOT
brisk coral
#

Show

iron garden
#

Show?

brisk coral
#

Show the js placeholder

mint fable
#

it's above

brisk coral
#

ew scrolling

mint fable
#

tru

iron garden
brisk coral
#

Like what is this 2015, pfft step up ur game cj

#

You're missing a ;

#

on the method call

mint fable
#

wot

brisk coral
#

dungeonData()

#

Missing a ;

mint fable
#

never even looked at that

turbid tide
#

xD

mint fable
#

but

#

you don't need them

#

in javascript?

brisk coral
#

You do lol?

turbid tide
#

well why would it work some times and some not

brisk coral
#

It's always been required

#

This ain't kotlin smh

warm topaz
#

😄

iron garden
#

it's not required in javascript though

mint fable
#

^

#

the code runs frosty

iron garden
#

I think so, xD i worked in frontend for a year

brisk coral
#

It's always thrown an error when I didn't have it kek

mint fable
#

the error comes from ArrayIndexOutOfBounds

iron garden
#

Ahhh

turbid tide
#

in papi js they are xD

brisk coral
#

but again, I don't use js that much so kek :p

mint fable
#

I'd add it just to see what happens

#

because it is through java, through nashorn

iron garden
#

yea of course, adding em right now

#

it's weird how it just happens sometimes

mint fable
#

y'all making me fucking go crazy over here

iron garden
#

the error, i mean

brisk coral
#

I mean from previous experience ; is required

#

So not sure

mint fable
#

because I never used ; in javascript, which is why I always forgot them when doing java at first

iron garden
#

I've added the ;

mint fable
#

and the first IDE I used... was absolute garbage

brisk coral
#

Eclipse

mint fable
#

nope

brisk coral
#

What then?

mint fable
#

can't remember the name

brisk coral
#

Blekdigits, let us know if it still throws the error

mint fable
#

it was a paid software the school had, and it's absolutely trash

iron garden
#

I guess now I would just hope for the best, see if it still throws the error

carmine veldt
#

bluej, dr java

#

cj

mint fable
#

bluej is bad...

iron garden
#

in a day, it happens around 2-5 times (out of 186 times)

#

so I'll let you guys know if it still happens tomorrow, around the same time

mint fable
#

it's a completely different way to setup a project that I absolutely hated, and felt bad for my classmates that liked it

brisk coral
#

I'm confused as to what idiot decides what software to use, like damn just use the most known Free software (IJ) instead of some random bs

#

Like it ain't that hard

mint fable
#

but it wasn't those

#

I think it started with a p

iron garden
#

thanks though guys 😄

mint fable
#

oh i think it was jcreator

#

but I swear it was paid as well

#

oh it is

#

jcreator pro lmao

#

just spam it constantly @iron garden 😂

#

all it does is get data, so you wouldn't mess anything up

wispy dove
#

A placeholder for the time in game ?

turbid tide
#

its statistic

#

oh nvm

#

its server xD

#

statistic is for time played

#

xD

#

read the message wrong

mint fable
#

idk what it is

#

I see no in-game time

#

it's gotta exist... right?

tender vaporBOT
turbid tide
#

there is

#

in server

#

I think

#

or statistic

#

it had a 12 or 24 hours format let me check the wiki

wispy dove
#

It's the time in real life in server

mint fable
#

it's player

#

^^

wispy dove
#

Nice thanks

turbid tide
#

oh

#

well got them both wrong xD

mint fable
#

I was pretty sure world didn't have an expansion... player makes a lot more sense

wispy dove
#

I have a problem with the ScoreboardObjectives expansion, the name of my scoreboard contains a "_" and papi take it for an other entry and no for the name of the scoreboard. Any idea ? I can't change the name of my scoreboard

mint fable
#

actually

#

looking at it now, 2 is not enough splits

#

they'd have to put the objective name in {} or something

#

Why can't you change the name @wispy dove

wispy dove
#

I see, i can't because it's a scoreboard used in a datapack, and if i change it I have to modify it in lots of files and lines

#

The name of the scoreboard is bac_advancements and I want to get his value ^^

warm topaz
#

idk how to update the jar on the ecloud 😅

mint fable
#

go to the versions

#

@warm topaz

#

okay @wispy dove

#

so

#

I changed a very small part

#

and I'm going to hope it works

wispy dove
#

Oh nice ^^

mint fable
#

give it a try for me, let me show how to use

#

waiut

wispy dove
#

Okay thanks you !

warm topaz
#

@mint fable wheres that?

#

couldnt see it anywhere

mint fable
#

go to your expansion

#

and click versions

#

make sure you're logged in

warm topaz
#

ohhhh ok i see

#

i was looking at the edit button in my expansions section

mint fable
#

try that @wispy dove

#

do not try that

#

smh

warm topaz
#

updated. thanks cj 😄

wispy dove
#

Ok I try it !

mint fable
#

Changed format from
%objective_score_<obj-name>_[otherEntry]%
to
%objective_score_{<obj-name>}_{[otherEntry]}%

#

did it work @wispy dove

wispy dove
#

It prompt me "ERROR"

#

I try to use it with the plugin tab in a server which is in a bungeecord network

mint fable
#

what did you use

#

and is there an error in console?

#

?startuplog

tender vaporBOT
mint fable
#

you should test it with /papi parse

#

/papi parse me <placeholder_here>

wispy dove
#

It prompt me this : "an internal error occured while attempting to perform this command

mint fable
#

yes

#

send the startuplog

wispy dove
#

?paste

tender vaporBOT
mint fable
#

retroactive doesn't work :L

#

sadly

wispy dove
#

I reload the server to see the startuplog

mint fable
#

okay, make sure to run the command before sending it

wispy dove
#

Okay

mint fable
#

does that work?

wispy dove
#

Same things

mint fable
#

send

wispy dove
mint fable
#

ok

wispy dove
mint fable
#

good thing this all makes sense

wispy dove
#

^^

mint fable
#

that should work

wispy dove
#

It woooooooooorks !!!!!!

#

You're a god you know

mint fable
#

👍 i'll send it to the dev

wispy dove
#

Nice !

mint fable
#

can you test all placeholders?

wispy dove
#

All ?

turbid tide
#

the placeholders from this expansions he wants to make sure there aren't any other hidden bugs

mint fable
#

all 4

wispy dove
#

What are the 4 ?

#

I see just

#

%objective_score_<obj-name>%
%objective_score_<obj-name>_[otherEntry]%

mint fable
#

i think i found one

#

check the spigot page

wispy dove
#

It works with the 2 placeholders I send

mint fable
#

not with scorep though, right?

wispy dove
#

What is scorep ?

mint fable
#

check the spigot page

wispy dove
#

the papi spigot page ?

wispy dove
#

It works with %objective_scorep_<obj-name>_[otherPlayer]%

#

But don't with %objective_scorep_<obj-name>%

mint fable
#

ok

#

i have no idea how to use this

#

i get errors lol what

#

oh ok i fixed it lol

wispy dove
#

%objective_displayname_<obj-name>% don't works too

#

lol

mint fable
#

i was in a bugged version and didn't reload

#

btw if you surround your stuff with `` it looks like this

turbid tide
#

and it doesn't apply effects like italic etc

mint fable
#

ye lol

wispy dove
#

Thanks for your help !

mint fable
#

what the hell is the point of scorep

#

it only goes through if it's a player I guess?

#

🤷‍♂️

#

oh displayname i didn't change

#

it doesn't need it

wispy dove
#

It's works only when I specify the player in the placeholder

wispy dove
#

❤️

wispy dove
#

I want to give you a big thanks cj89898 for the time you spent for me

junior musk
#

somemone knows how to get a list of files from a directory with PAPI JS ?

flat quartz
#

Is there a currently supported method for nesting placeholders? I'd like to do something like this:
%board_prisons-blocks-broken_value_%player_name%%

warm topaz
#

use {} or something like that

#

but no i dont think u can nest the %%s

flat quartz
#

I tried using {player_name}, but it does not replace

lyric lion
#

Does someone know way to replace " "(space) with a "," in result of placeholder without JS?

flat quartz
#

No. Use js.

lyric lion
#

JS still doesn't working on Mohist

flat quartz
#

I don't know what you just said but use Js.

lyric lion
#

I caaaan't 😄

flat quartz
#

Why?

lyric lion
#

It doesn't working with something related to my server core

flat quartz
#

Placeholder expansions don't interfere

#

Get the expansion, and use js

warm topaz
#

2 people have reported the problem afaik

lyric lion
flat quartz
#

That's a java problem

lyric lion
#

Hm

junior musk
#

Mohist, a Bukkit+Forge server software somehow doesn't support the Javascript expansion for PlaceholderAPI

lyric lion
#

How I can resolve it?

flat quartz
#

Failed to set ScriptEngine... you need javax

junior musk
#

I have already tried too and it worked on Spigot or Paper, but not on Mohist

lyric lion
#

Failed to set ScriptEngine... you need javax
What it and where I can get it? 😄

flat quartz
#

Looks like Mohist doesn't provide it

#

That would be their fault

#

Nothing you can do

junior musk
#

Failed to set ScriptEngine... you need javax
it isn't necessary to specify a ScriptEngine

lyric lion
#

Oof

flat quartz
#

That most likely means it can't find any because javax isn't there

#

It's just a caught exception message

junior musk
#

I have the same thing on normal spigot without setting the script engine but it still works compared to Mohist

flat quartz
#

if mohist doesn't have interpreters for javax scriptengine then there's nothing you can do

shadow spear
#

deluxechat is not showing my essentials nickname - even when i have a /nick
I'm using %player_name% as the placeholder
how do I make it show essentials nick when one is active?

junior musk
#

%essentials_nickname%

shadow spear
#

but then the nickname prefix which is set in the ess config file doesnt show

#

ex. ~Tommy

junior musk
#

there's no way 1s I know to add it

#

actually, there may be one with js

shadow spear
#

whats js?

junior musk
#

javascript

#

I could make a script for you but I'm not on my computer

shadow spear
#

ah okay

#

thanks anyway though 🙂

junior musk
#

it's 3:16 am for me atm so x)

#

I'll try when I get up

shadow spear
#

2:17 here - gnight! haha

austere hawk
crimson island
#

can someone teach me javascript lol

#

im trying to make a placeholder

#

or write a placeholder*

fallow bloom
#

I'm trying to register my own placeholders but I'm getting this error:
https://mcpaste.io/5844523b6e6e10d0

The issue is caused by a NPE in my hook class CDPAPIHook.java from calling my getCooldown() method in the class AppleListener.java, here is my return code in the hook class:

 @Override
 public String onPlaceholderRequest(Player player, String identifier) {

     if (player == null) {
         return "";
     }

     if (identifier.equals("cooldown")) {
         return apple.getCooldown(player);
     }

     if (identifier.equals("combattag")) {
         return plugin.getConfig().getString("combattag", "value doesnt exist");
     }

     return null;
 }

Then the getCooldown() method and Objects or methods that it refers to:

    public Map<UUID, Long> cooldowns = new HashMap<UUID, Long>(); // this stores the UUID of the player and when they ate the apple.
    cooldowns.put(p.getUniqueId(), currentTime); // this line is run when a player eats a gapple and does not have a cooldown already.
    public boolean hasCooldown(Player p) {
        
        long currentTime = System.currentTimeMillis();
        
        if(cooldowns.containsKey(p.getUniqueId())) {
            if(cooldowns.get(p.getUniqueId()) <= currentTime - (plugin.getConfig().getInt("Cooldown") * 1000)) {
                cooldowns.remove(p.getUniqueId());
                return false;
            }
            return true;
        }
        return false;
    }
    public String getCooldown(Player p) {
        final long currentTime = System.currentTimeMillis();
        if(hasCooldown(p)) {
            final long cooldown = ((plugin.getConfig().getInt("Cooldown") * 1000) - currentTime + cooldowns.get(p.getUniqueId())) / 1000;
            return String.valueOf(cooldown);
        }
        return "0";
    }
#

Any help would be greatly appreciated!

gritty kestrel
#

Ok so I am trying to display the mined blocks on the scoreboard on the side and I tried to use the statistics placeholder but it always just displays as a 0 for mined blocks and It wont go up at all any help??

mint fable
#

if you're on an older version you might need to download 1.7.0 of statistic

#

/papi ecloud download statistic 1.7.0

#

/papi reload

gritty kestrel
#

Its 1.15.2

mint fable
#

what are you testing

gritty kestrel
#

The mined blocks

#

%statistic_mine_block%

mint fable
#

thank you

#

Can you test it with /papi parse me <placeholder>

#

Tell me if that works

gritty kestrel
#

It just says "0" in chat

mint fable
#

are you on the latest statistic then?

#

/papi ecloud download statistic to make sure

#

don't forget to reload

gritty kestrel
#

Did it and it still says 0 after mining a few blocks

#

version 1.9.2

#

whats weird is the other statistics work just no that one and ofc its the only one I want xD

mint fable
#

i wonder if the regular one doesn't work anymore and it needs to be specified thonking1

#

idk tho, is there a way to check if minecraft/spigot is tracking it?

gritty kestrel
#

Throught the .yml folders?

mint fable
#

maybe

#

there is a stats folder

#

so you can check there

#

in the world file

gritty kestrel
#

There isnt any player data for the worlds and I didnt see anything that caught my eye in the spigot folder

mint fable
#

there isn't a stats folder in your world file?

gritty kestrel
#

data,playerdata,poi, and region folders

#

and playerdata is empty

mint fable
#

what is poi

#

oh nvm

#

there should be a stats folder and playerdata should not be empty

#

are you in the main world folder?

gritty kestrel
#

Im pretty sure the main world from where it has server.properties and stuff

mint fable
#

no

#

server.properties are in the server folder

#

the main world folder should contain the stats folder

gritty kestrel
#

ahh it does but it is not the world I curently am in because of multiverse

mint fable
#

okay, but open it

#

go to your stats and check them

#

does it work if you're in the other world? (stats should be global)

gritty kestrel
#

It has used and dropped but not mined blocks (it could be because no one has mined a block in that world tho) but I have mined blocks in a different world so that should of showed up unless I have to set the new world as the default world

mint fable
#

interesting

gritty kestrel
#

there is even like crafting mob kills etc I dont see mind blocks anywhere tho

mint fable
#

i think it was called mineblock

#

or mineBlock

#

just search mine

#

see what happens

gritty kestrel
#

nah just shows the crafted section and minecraft custom section

mint fable
#

rip

gritty kestrel
#

ikr

#

I just wanna see the blocks i mined man 😢

austere hawk
#

%statistic_mine_block% should work

gritty kestrel
#

It doesnt

#

Always shows as 0

mint fable
#

maybe something is blocking it

gritty kestrel
#

Lemme try setting it as the default world maybe thatll work

austere hawk
#

try %statistic_mine_block:stone%

gritty kestrel
#

that didnt work either

#

Is it because of the auto pickup plugin could that affect it?

austere hawk
#

try restarting the server

gritty kestrel
#

Just did

austere hawk
#

but for this u have to restart the server

gritty kestrel
#

Ok i got the plugin and now whats the placeholder for the mined blocks?