#placeholder-api
150650 messages · Page 3 of 151
Heyo! This error keeps occuring! What should I do D: https://hasteb.in/isagahom.shell
Heyo?
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
ah i remember this error. i cant remember how i fixed it. i believe u have to go back a version of vault expansion
or do this if what I've said doesn't work ^
How do I put placeholders into bungeecord plugins? Like for example a tab plugin that I put into the bungeecord plugins folder
PAPI doesn't support Bungee so idk if you can. I might be wrong tho
TAB does that
Does PAPI have javadocs?
Or could someone explain to me how PlaceholderAPI#setRelationalPlaceholders() works?
you could get better support in #development
ty
no problem
Was that directed at me or the other person?
the other person. but you could ask in there as well
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?
you could use javascript
formatter expansion maybe? or javascript
and just replace the spaces with commans
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?
I am pretty sure you can't
im not sure tbh, i just said it as maybe it does
it only formats intigers
ah
I tried it before and just spits an error
Js, meh :c
let me finish the thing I'm working on and I'll make the js. should be like 5-6 rows
Okay
TAB does that
@brisk coral really? I'm using it and it just says %essentials-nick% or something
@vapid rune,
oh sry
%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
oh
and to use that you need the Essentials expansion on your servers
https://github.com/NEZNAMY/TAB/wiki/How-to-set-up-PlaceholderAPI-support-on-bungeecord if you want to install the bridge
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
Where I can read about JS usage in PAPI?
❤️
btw
made this
you will need to use it like this: %javascript_FILENAME_{placeholder}%
@lyric lion
I edited "example" in scripts folder. It might be looks like this? %javascript_example_{luckperms_group_expiry_time_vip}%
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
I'm followed this guide: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script
...and it doesn't work. Strange
/jsexpansion list says that I has zero scripts loaded
shouldn't you replace the {} by %% in the script?
what?
this is the script
doesn't have %%
you call the placeholder in arguments using {}
he's using that placeholder
%javascript_example_{luckperms_group_expiry_time_vip}%
the placeholder isn't translated in {}
wdym?
ok idk
https://paste.helpch.at/rukuxurugi.md
Hm./jsexpansion liststill says that i has zero scripts
I'm do all that you say in guide
just follow the guide and don't use /jsexpansion reload becuase I didn't say to use it in my guide
/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```
I literally told you how to use the placeholder in the guide
change example to replacespaces .....
I did everything that was said in the guide several times already
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
Yes, I see, and I already tried this
and?
Still some problem
what problem?
https://discordapp.com/channels/164280494874165248/573429521554866178/726475090199314482 wdym by this message?
what did you change in it?
Seems like this extension incompatible with mohist or any other things
what did you change in it?
just added a dot beforejs
@junior musk, I know that you using mohist, does you has same errors?
oh yeah that was my mistake
I don't really use it atm x) only sole testing
Hm
and I didn't follow the conversation
tl;dr version: JS extension doesn't work 😄
so I have this placeholder: https://paste.helpch.at/nepoxuqive.js. Gave him this guide: https://paste.helpch.at/zakixobuxi.md but for some reason it doesn't work for him
This guide doesn't working too
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script
[19:44:12 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: hello_world
oh wait
I think I know what the problem is
add: engine: 'nashorn'
under file: etc.
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
can you send a screenshot of : javascript_placeholders.yml, javascripts folder and the replacespaces.js file?
paste ur js file
because I rly don't know what you've done wrong
^
kalber its literally this: https://discordapp.com/channels/164280494874165248/573429521554866178/726479541723201639
I gave him everything something must have gone wrong
while setting it up
actually, now that I think of it, I remember that the js expansion didn't work for me on Mohist
because it works just fine for me
script: https://prnt.sc/t7js1t
javascript_placeholders.yml: https://prnt.sc/t7jsad
folder: https://prnt.sc/t7jsei
i have no idea what Mohist is xD
what is mohist
Forge+Paper+Spigot
link?
wtf is that?
probably won't work tbh
I am so confused
wtf
why didn't you follow my guide tho? All this time I thought you were following my guide
...
^^^
I followed your guide earlier, it gave the same effect, so I tried another guide
spigot and forge for 1.12.2?
idk either that thing you are using doesn't accept js placeholders or you did something wrong but I have no idea
it's possible mohist is messing with it
on my Mohist server, expansions were working fine except the js one
but I'd say follow the guide blitz sent
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
wot
yeah it's broken
/jsexpansion reload works until I do /papi reload
after it just loads 0 scripts
until I restart the server
you don't have access?
it's in placeholderapi
Oof.. I will restart server and try again.
I only have access to help-chat cj
i see
they are afraid to give me access to anything else xD
well never asked actually
but yeah :)))
yeah better
- /papi ecloud download JavaScript
- /papi reload
- 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
yeah probably its because of Mohist then
theres one in the pinned messages
cheers
read carefully the message
it says it is not recommended to be used on a live server
you're gonna have to wait a bit until most plugins fully support 1.16 and have less bugs xD
Hello ecloud for PlayTime don't work on 1.16.1 server can be this fixed please ?
@heady dove contact the PlayTime plugin developer
Mhmm i use only PaPi i don't use plugin i think so this is on developer of PaPi
what playtime placeholder then?
can you give the placeholder that you are trying to use?
Sure
"%playtime_player%
%playtime_time%
%playtime_timesjoined%
%playtime_serveruptime%"
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
Okey thanks and do you know what i can use for economy ? Because Vault don't work too 😅
have you downloaded the expansions?
Sure
and you are trying to use %vault_Eco_balance% ?
I using %vault_eco_balance_fixed%
and what is it returning?
It don't work 😦
Can it make ScoreBoard so it don'T work ?
If ScoreBoard son'T maked to 1.16 ?
do /papi parse me %vault_eco_balance_fixed% and see what it returns
Nothing 😦
It write to chat %vault_eco_balance_fixed%
I have Vault
Okey i now tryied but nothing
So any idea ?
?startuplog
send that over
why arent these placeholders working
did /papi ecloud download Statistic
it downloaded
then /papi reload + server restarted
what mc version you on
try downloading 1.7.0 and use _ instead of : I believe
1.0.7*?
papi ecloud download statistic 1.7.0
ye, it's 1.7.0
not 1.0.7 that doesn't exist
worked thanks
👍
all other ones without : are working
try COW too
bruh
might be case sensitive
just did
and?
Yeah neither of those suggestions worked
can you show what you tried again?
wtf?
%statistic_kill_entity_MOB%
LOL
not use : instead of _
worked
😄
ty lmfao
b r u h
reckon theres a way to get collective mobs killed?
?paste
add em all up
boi
Yea
Here you have log https://hastebin.com/cipebuwope.md
nah
but just saw it in the barry message
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
@turbid tide Here you have log https://hastebin.com/cipebuwope.md
eh, it works
well I didn't ask for it xD ...
I have >:|
it literally yells at you like 50 times for not having vault
I install them
and by 50 i mean like 6
[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
Mhmm i can send there image >:|
tofonek
?imgur
I don't care if you have the vault jar in your folder
it is not loading on the server
https://ctrlv.cz/QnDa i have
oh they put it on spigot too now?
been on spigot for a while
idk I always used thatr one from spigot
Oh i'm idiot 😄 I'm sorry, i forgot download Vault
Hey i used %javascript_lore%
https://imgur.com/a/PuZ1J1N
it worked for like 2 seconds.
then it brakes.
what's your server version?
k I'll test it later
To stop things from braking all you gotta do is cut the brake lines 😉
what?
then it brakes.
@peak summit found your problem
Yep!
Yes?
the %javascript_lore%
are you using it in the display_name ?
because if you are than that's the problem
sure I guess
@turbid tide I do not know what the issue is....
maybe because i am using tokenenchant?
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 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
hello how can i create an account
what account?
Placeholder 1.16? Support
there is a beta version in pinned messages but as it says there its not recommended for live server. use at your own risk
Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us.
yes
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) ^
ye
you don't need an account to do that
no like if i made my own expansion
oh
could i do like /papi ecloud download https://github.com/blahblahblah
I am not sure actually
I know you can either put it on ecloud or make it inside the plugin
answered in #off-topic
@austere hawk,
there is a pin button n the corner
is it possible to fit placeholders within placeholders? Ex. %cmi_random_[%placeholder2%]_[%placeholder3%]%
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""%"
We don't do that here.
ik, but technically it's stiill placeholder api
you can't do that currently but can be added
Can I use placeholder api plugin in 1.16?
check the pinned messages
Thanks uwu
hey, i m trying to make a placeholder (with my c# knowlege) that returns the actual job, but it says script error :/ https://hastebin.com/vusogitadu.js
you gave your function the same name as your variable
oh bruh
yeah but i want to use $
also remove break;
why?
I'm not sure you can use $
it wouldnt work without it
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
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
what does this placeholder %jobsr_user_archived_jobs% return?
that's weird.
yeah i have done it already
@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
oh, thank you
I need help. There's an internal error when I try to download the papi's.
#spigot-linking
@sour flower please follow the instructions in #spigot-linking first
not sure why that makes a difference with anything.
its an issue with DChat
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
I'm too dumb to do cracked plugins.
plus i'm scared that it'll crash my server xD
;-;
yeah or download your entire server. People that give cracked plugins do a lot of weird things with them
Yikes
u can use #deluxechat now
so when does this error show?
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
well not on a live server
1.16 just came out, theres going to be bugs everywhere
helpchat has a lot of plugins that need to get updated and 1.16 got launched just a few days ago
I'm aware.
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
Oh. I just noticed that my DC is 1.15 should i pout the 1.16 and see if it works ;-;
yes lol
i'm so dumb
Okay, it's working. But I have a silly question. Did they remove shift from gliding down while flying?
same xd
No.
Normal flying. If you pressed shift it lowered you xD
It's not a thing anymore 😠
wait rly?
I don't believe it. That would be trash
maybe you changed your controls?
Yeah. No I didn't. 😦 It happened in two different servers.
yeah controls are not per server they are per client
test in vanilla mc
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
what about 1.16?
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
@open flower in server proprieties
There is no Server-name:
oh wait, i didnt read it xd
blitz, server name is defined in papi config
yes sir
then check papi config chronic
go to /plugins/placeholderapi/config.yml
Like a boss. thank you my man
np 😄
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
welp, thats just how the server expansion works
yeah I didn't know but its good to know xD
weird. so the shift works in single player.
possibly a spigot thing, idk
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
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
How can I remove the permissions to do /papi for a certain rank?
wait papi is allowed to default ranks?
That doesn't have a permission iirc
papi isnt cooperating with luckperms, and server's placeholders. 1.16
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?
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
xD no problem
HELLO
blitz
i need u
%math_[precision:0]{world_X1}+{world_X2}%
how
%math_[precision:0]{bungee_lobby}+{bungee_lobby1}%
this work
but worlds?
what is world_x1 and world_x2
are u trying to get how many players are in 1 world?
yes
%server_online_<world>% i believe
so %math_{server_online_world1}+{server_online_world2}%
okay
thx u
no problem
hmmm,
this isn't loading. https://api.extendedclip.com/expansions/killstats/
do u have killstats plugin installed @keen crown ?
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
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
did u do download vault expansion too?
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
https://pastebin.com/rWvSNyHV (nevermind, I believe this is because superbvote hasn't been updated and thus doesn't work with PAPI)
vault still doesn't work anyway
is this something that only I am facing issues with?
@keen crown why use killStats? Plugin hasn't been updated in years
^
i think im gonna make my own papi expansion that does the same as killstats, more updated and 1 less plugin to download
just a question.
Does PlaceholderAPI need to be updated to do /papi ecloud download RNG ?
the expansion isnt verified, so u have to download it manually
@balmy marten pls verify me 😄
@warm topaz,
oh
uh Kaliber IDK why /papi parse me %rng_min:10_max:100% is not working ?
@warm topaz Checked and verified
could take up to 2 hours to get cached and show in game
thanks 😄
@austere hawk, im in the middle of updating it rn but it should be working anyway 🤔
well for somereason its showing error
?paste
let me try restarting
https://gyazo.com/1ca9e65dc00e00e8d60bace7599d7ad4 yea working for me
idk and idk how to check
search for about java on windows start menu
and try to redownload the expansion @austere hawk
ok
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
I've just send a paragraph of text, and it's gone 😦 is there a way to get it back?
ctrl+z ?
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?
nope 😦
ahh, I'll rewrite then 😂
when did you send the message?
@warm topaz Math?
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:
papi parse Blekdigits "%javascript_dungeondata_desertiaGiga,set%"will store theBlekdigitsinto a variable calleddesertiaGigapapi parse OtherPlayer "%javascript_dungeondata_desertiaGiga%"will return the variable stored indesertiaGiga, which isBlekdigits
Use the pinned version
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™️
Sometimes it's broken even though I do nothing
@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
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
if only I knew to read errors xD
ahh XD no worries, your help is appreciated
just need someone to see from their perspective, see if my code is weird
mythicmobs.skills.placeholders.parsers.PlaceholderString.get(PlaceholderString.java:40) I mean it is something to do with mythic mobs
but dk what
=paste
Show
Show?
Show the js placeholder
it's above
ew scrolling
tru
Like what is this 2015, pfft step up ur game cj
You're missing a ;
on the method call
wot
never even looked at that
xD
You do lol?
well why would it work some times and some not
😄
it's not required in javascript though
I think so, xD i worked in frontend for a year
It's always thrown an error when I didn't have it kek
the error comes from ArrayIndexOutOfBounds
Ahhh
in papi js they are xD
but again, I don't use js that much so kek :p
y'all making me fucking go crazy over here
the error, i mean
because I never used ; in javascript, which is why I always forgot them when doing java at first
I've added the ;
and the first IDE I used... was absolute garbage
Eclipse
nope
What then?
can't remember the name
Blekdigits, let us know if it still throws the error
it was a paid software the school had, and it's absolutely trash
I guess now I would just hope for the best, see if it still throws the error
bluej is bad...
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
it's a completely different way to setup a project that I absolutely hated, and felt bad for my classmates that liked it
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
thanks though guys 😄
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
A placeholder for the time in game ?
its statistic
oh nvm
its server xD
statistic is for time played
xD
read the message wrong
there is
in server
I think
or statistic
it had a 12 or 24 hours format let me check the wiki
It's the time in real life in server
Nice thanks
I was pretty sure world didn't have an expansion... player makes a lot more sense
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
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
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 ^^
@austere hawk sorry for the wait. this should work https://github.com/Kqliber/RNGExpansion/releases/tag/1.0.1
idk how to update the jar on the ecloud 😅
go to the versions
@warm topaz
okay @wispy dove
so
I changed a very small part
and I'm going to hope it works
Oh nice ^^
Okay thanks you !
updated. thanks cj 😄
Ok I try it !
Changed format from
%objective_score_<obj-name>_[otherEntry]%
to
%objective_score_{<obj-name>}_{[otherEntry]}%
did it work @wispy dove
It prompt me "ERROR"
I try to use it with the plugin tab in a server which is in a bungeecord network
It prompt me this : "an internal error occured while attempting to perform this command
?paste
I reload the server to see the startuplog
okay, make sure to run the command before sending it
does that work?
Same things
send
I use the placeholder : https://hastebin.com/sunobapana.shell
ok
When I do the command : https://hastebin.com/otojikajat.bash
good thing this all makes sense
^^
👍 i'll send it to the dev
Nice !
can you test all placeholders?
All ?
the placeholders from this expansions he wants to make sure there aren't any other hidden bugs
all 4
What are the 4 ?
I see just
%objective_score_<obj-name>%
%objective_score_<obj-name>_[otherEntry]%
It works with the 2 placeholders I send
not with scorep though, right?
What is scorep ?
check the spigot page
the papi spigot page ?
It works with %objective_scorep_<obj-name>_[otherPlayer]%
But don't with %objective_scorep_<obj-name>%
i was in a bugged version and didn't reload
btw if you surround your stuff with `` it looks like this
and it doesn't apply effects like italic etc
ye lol
Thanks for your help !
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
It's works only when I specify the player in the placeholder
❤️
I want to give you a big thanks cj89898 for the time you spent for me
somemone knows how to get a list of files from a directory with PAPI JS ?
Is there a currently supported method for nesting placeholders? I'd like to do something like this:
%board_prisons-blocks-broken_value_%player_name%%
I tried using {player_name}, but it does not replace
Does someone know way to replace " "(space) with a "," in result of placeholder without JS?
No. Use js.
JS still doesn't working on Mohist
I don't know what you just said but use Js.
I caaaan't 😄
Why?
It doesn't working with something related to my server core
2 people have reported the problem afaik
That's a java problem
Hm
Mohist, a Bukkit+Forge server software somehow doesn't support the Javascript expansion for PlaceholderAPI
How I can resolve it?
Failed to set ScriptEngine... you need javax
I have already tried too and it worked on Spigot or Paper, but not on Mohist
Failed to set ScriptEngine...you need javax
What it and where I can get it? 😄
Failed to set ScriptEngine...you need javax
it isn't necessary to specify a ScriptEngine
Oof
That most likely means it can't find any because javax isn't there
It's just a caught exception message
I have the same thing on normal spigot without setting the script engine but it still works compared to Mohist
if mohist doesn't have interpreters for javax scriptengine then there's nothing you can do
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?
%essentials_nickname%
but then the nickname prefix which is set in the ess config file doesnt show
ex. ~Tommy
whats js?
2:17 here - gnight! haha
can someone explain why i see (https://imgur.com/a/PK1t5Aa), everytime when i do /papi ecloud list all 2 but if I m using the console its different. (https://imgur.com/a/JTpwo8Z)
I think its a bug
can someone teach me javascript lol
im trying to make a placeholder
or write a placeholder*
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!
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??
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
Its 1.15.2
what are you testing
It just says "0" in chat
are you on the latest statistic then?
/papi ecloud download statistic to make sure
don't forget to reload
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
i wonder if the regular one doesn't work anymore and it needs to be specified 
idk tho, is there a way to check if minecraft/spigot is tracking it?
Throught the .yml folders?
There isnt any player data for the worlds and I didnt see anything that caught my eye in the spigot folder
there isn't a stats folder in your world file?
what is poi
oh nvm
there should be a stats folder and playerdata should not be empty
are you in the main world folder?
Im pretty sure the main world from where it has server.properties and stuff
no
server.properties are in the server folder
the main world folder should contain the stats folder
ahh it does but it is not the world I curently am in because of multiverse
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)
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
interesting
there is even like crafting mob kills etc I dont see mind blocks anywhere tho
nah just shows the crafted section and minecraft custom section
rip
%statistic_mine_block% should work
maybe something is blocking it
Lemme try setting it as the default world maybe thatll work
try %statistic_mine_block:stone%
that didnt work either
Is it because of the auto pickup plugin could that affect it?
try restarting the server
Just did
ok u can try using
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#statz (placeholders)
https://www.spigotmc.org/resources/statz.25969/ (plugin)
but for this u have to restart the server
Ok i got the plugin and now whats the placeholder for the mined blocks?
