#placeholder-api
1 messages ยท Page 130 of 1
it helps you get information from minecraft/other plugins using just a word/group of words instead of actually having to code it yourself every time
so plugins that support PAPI can use those words to dispaly/use the information instead of actually needing to hook into a plugin etc.
Ohh i understood now thx
check console
send everything from when you execute /papi reload
does worldguard show in /papi list?
can you send your entire server logs?
=paste
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
Hello, there isn't placeholder that covers the name of the last player who hit each other?, I have been looking with the "Player" but nothing I am looking for.
I'm not aware of anything like that.
i could add this to my list in my plugin
hi, can i get an ecloud account to upload an expansion for my plugin?
DM funnycube with your name and email.
Ahh probabaly not, might have to send him a FR
Alrighty then if you see him online sometime, you can just ask him (:
Can anyone test out my World expansion for a sec?
.
@trim mist
Send it
I mean, all you have to do is press on the link and press "Download"...
I mean, all you have to do is press on the link and press "Download"...
to many buttons ...
@balmy marten hi
hi, can i get an ecloud account to upload an expansion for my plugin?
@novel moss
@novel moss,
Please respect the rules, be patient and don't ping staff members!
xD
dm me an email and username you want
what is the difference between MVdW and Placeholder?
one works only for MVdW's plugins the other works for any plugins that add support for it
The purpose for MVdW is for Maxi's plugins though
yeah that's whay I said one works just for MVdW's plugins
Oh, the bossshop pro plugin actually refers me to this plugin, I think? I'm trying to let BossShop Pro read off McMMO levels, for example that you can only buy a certain pickaxe at Mining level 100. Could anyone hit me up for some advice/assistance how to do this?
does BossShopPro accept placeholders as currency ?
I don't know what most of that even means, so I can't answer that for certain
looked thru their spigot page and seems like you are able to
then download PlaceholderAPI
and then do /papi ecloud download McMMO and /papi reload
and you can use %mcmmo_level_<skillname>% as a currency I guess
you'll have to remove the level using mcmmo's command if it even has that
Blitz, do you mind if I take this to DM with ya?
So that it doesn't clog up the chat space
dw about chat space. Just ask here. That's why this discord server exists xD
first execute those 2 commands I gave you above
Doneso
you should be able to use %mcmmo_level_mining% as a currency now
as I said I'm not 100% sure if it accepts placeholders as I never used this plugin but from what I've seen on the spigot page it should
can u send that placeholder of griefprevention again
do -papi GriefPrevention in #bot-commands
helo, I'm having trouble whith the MySQL expansion, pls any help
i typed -papi votes in bot-commands but it not gaved me vote placeholders
well I mean is there a votes expansion?
because I'm pretty sure that expansion doesn't exist
what vote plugin do you have?
Hi i've been trying to add Power Ranks to the API try and try wouldn't find it so I downloaded one into the Expansions File game now knows its there but won't register it. Any ideas on how to fix?
anyway to "undownload" a ecloud package?
so the opposite of "/papi ecloud download essentials"
Remove it from the expansion folder manually.
Okie dokie. Iโm a lazy butt lol
ugh @kind socket the expansion comes inside the plugin
no idea what you've downloaded but delete it
you only need the plugin itself
Alright thanks
Still not displaying it just says %powerranks_rank% have I done something wrong?
do you have the PowerRanks plugin installed?
Yeah
Everything in powerranks in game is working as normal just not on the scoreboard
I have instaled the PAPI plugin on my server and I downloaded expantions and I go into the game to type /papi reload bit there is no commands for the papi plugin, did I forget somthing?
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
@elder fiber send this ^
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
It just prints out %powerranks_rank% and when I refresh it stays the same I could try re installing power ranks?
hmm idk if that will help
have you deleted the expansion you installed before from expansions folder?
Yeah and I restarted the server
When try to install MySQL expansion an reload papi it don't reload and throw an error
so @turbid tide what do I do with the startup log? do I send it to you?
you send it here
When try to install MySQL expansion an reload papi it don't reload and throw an error
send the error please in a paste
I have instaled the PAPI plugin on my server and I downloaded expantions and I go into the game to type /papi reload bit there is no commands for the papi plugin, did I forget somthing?
@elder fiber I think you forgot to install the plugin
check your plugins folder
and make sure the jar is there
because no loading message from PAPI is showing in your logs
@turbid tide ooh ok I must have deleted the jar file cause I have the folders and everything just not the jar file
๐
https://paste.helpch.at/aqajacoqew.bash
hmm weird. I don't rly understand the error unfortunately. I think your best bet is to wait here until someone can help you or idk if issues on githubs are still opened then open a issue on there.
or contact the expansion's author and maybe they have a solution
OK, ty for the help
Can any one help me?
Contract the author of the MySQL expansion
hello i need help on my essentials papi
%essentials_kit_time_until_available_creativefreechest% it return 0 only or it's not working?
here's my essentials kit.yml
kits: creativefreechest: delay: 60 items: - dirt 1
also here's my deluxemenu
'freechestcd': material: structure_void slot: 31 priority: 2 update: true hide_effects: true display_name: '&fFree Chest' lore: - '&7%essentials_kit_time_until_available_creativefreechest% &8sec.' left_click_commands: - '[sound] UI_BUTTON_CLICK' - '[refresh]'
and yes I have the
update_interval: 1
I may seem desperate but how does one get his expansion verified?
Which expansion?
What's the name of it?

Oh it's that one
I'll have to see the source code for the expansion before I can verify it.
Do you have a github repo for it?
Nope
Is it just a single class?
Yep :)
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
For when you get home ^
You can DM @tender vapor and I'll see it.
Oh okay cool
Hey guys does anybody know if there is a placeholder for each mob killing like a one which counts the deaths of pigs, cows, zombies cause i found one but it was for every mob combined and i dont want that
You might be able to try that statistics expansion.
Thank you :p
How about my issue?
How about my issue?
I'm pretty sure it returns 0 when available. If you're op I think it will always return 0
might be wrong tho
@fluid chasm,
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
how do i make it so when a servers offline, it display's that its offline instead of the player count?
https://hastebin.com/umafidagak.shell
Hello I have a problem with the chestcommand plugin which is blocked because of placeholder
how do i make it so when a servers offline, it display's that its offline instead of the player count?
@fluid chasm you can do it with basic javascript
no
download js expansion and inside the papi folder there will be a javascripts folder
and you put there your script
Thanks
np
I'm trying to get the TPS as just a single integer and it's whooping me
%server_tps% gives three values, the TPS aggregated over 1, 15 and whatever seconds
maybe 5?
%server_tps_15% gives me a double with a loooong decimal
sometimes even going over 20 :x
I tried %math_ceiling({server_tps_15})% and math_round() with a precision of zero and both return 20.000
Your best option is javascript
Hello it's possible to take the placeholder %statistic_deaths% from a server and display it on another?
there are some APIs and plugins that say they can do that but I don't know any of the top of my head. But it is not possible by default
Anyone that could give me an in-depth explanation of how javascript works in papi
@turbid tide as you gave me the script i thought it'd be the best to ask u
>.... [14:14:38 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'mmolevel':
<eval>:2:4 Invalid return statement
return "&a1";
^ in <eval> at line number 2 at column number 4
@dense trail,
Please respect the rules, be patient and don't ping staff members!
Oh shit, my bad...
if (parseInt("%mmocore_level%") <= 10) {
return "&a%mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 20) {
return "&n%mmocore_level%";
}
that's everything
oh well that won't work
I just want it so I can make infinite different level colors
add / remove whenever I want to
function mmocore() {
if (parseInt("%mmocore_level%") <= 10) {
return "&a%mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 20) {
return "&n%mmocore_level%";
}
}
mmocore();```
also there's hundreds of javascript tutorials on google
I don't have the time to sit here and explain everything.
It's fine, thanks for that I'll indeed as you said google for more information
I appreciate ur time โค๏ธ
w3schools has some good tutorials on js
but yeah what you need to know is that you need to always have a function
and call that function after
and always return a string
and what you return is what gets printed
basically
Well actually, you don't even need a function for it to work
How many times am I gonna say that javascript was supposed to be running without function in the first place 
I've heard so many things about it, at least i got it to function now
Yeah you should be using a function because of easier handling
function mmocore() {
if (parseInt("%mmocore_level%") <= 5) {
return "&8Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 10) {
return "&7Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 15) {
return "&fLvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 20) {
return "&6Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 25) {
return "&eLvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 30) {
return "&3Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 35) {
return "&bLvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 40) {
return "&4Lvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 45) {
return "&cLvl %mmocore_level%";
} else if (parseInt("%mmocore_level%") <= 50) {
return "&5Lvl %mmocore_level%";
}
}
mmocore();
Works as a charm
If you want non-function way, this is the entire script: js if (parseInt("%mmocore_level%") <= 10) { "&a%mmocore_level%" } else if (parseInt("%mmocore_level%") <= 20) { "&n%mmocore_level%" }
Ahh i see
for me easier to understand with return
cause then I know what's happening in the script
cause I'm not all to known with js
๐
oh I wasn't aware then. I know its suppose to work without functions and that's why it felt weird when I first tried it and couldn't get it to work without functions.
but now that I look at it, it does make a lot of sense ๐
=paste
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
there are some APIs and plugins that say they can do that but I don't know any of the top of my head. But it is not possible by default
F ๐ฆ thanks
you could probably use a mysql database yourself but you will need some experience with java and mysql.
https://paste.helpch.at/ecobirudal.js @dense trail for easier readability
or even better use switch xD
How are you gonna make a switch condition in the =>, <= expression?
I mean, kotlin has it
But not for js, so that's a problem
oh right. its not when. Its switch.
forgot
kotlin is taking over my brain. I even tried to use fun instead of function in js placeholders xD
||become a java lover pls||

I mean I don't hate java... I'm learning both at the same time
Just one question
I just like kotlin because of the simplicity if I can even call it that.
If you are kotlin addictor, why you still adding ";" in the js scripts 
bcz a lot of people don't update the expansion
believe me a lot of times I forget to add them as well
I mean, it's obvious that he is using 1.6.0 expansion
even when I tried making a plugin on java all the errors were missing ; xD
I mean, it's obvious that he is using 1.6.0 expansion
how? xD
Below 1.6, there is not even an indicator which line was throwing error
oh nice. I should have known that because?
Every script errors will just say error at line 1
Also, second indicator is this: [PAPI] [Javascript-Expansion] (1.6.0)
[PlaceholderAPI] [Javascript Expansion] (1.5.4-)
it will work with and without.
so I don't mind typing a few more characters just to make sure it will work for everyone that tries to use it and don't update the expansion
That depends on yourself
even when I tried making a plugin on java all the errors were missing
;xD
@turbid tide i feel this
?
is it a way i can limit it?
what shows you ? the vault placeholder?
you can use %vault_eco_balance_fixed%
not that much long lol
he wants it fixed Kaliber so I guess that will work.
if he wants like 2-3 decimals then yes javascript
ok
Oh wow thanks for that @rare lily
the placeholder turned into blank, not the placeholder itself, nor an error
return PlaceholderAPI.setPlaceholders(null, LANG.getString(s));
/papi parse me %fw_prefix%
=> &6->
/fw help
=> &7Help menu for the Forger's Weaponry plugin.
LANG is a FileConfiguration, the method returns %fw_prefix%&7Help menu for the Forger's Weaponry plugin. for example
any idea what i did wrong?
I mean you're parsing the placeholder for a null player
you need to parse it for a player or an offline palyer
Does anyone know if it is possible to use Placeholder API placeholders in Venture Chat /msg?
yeah pretty sure its possible. I think you need to use {placeholder} instead of %placeholder% tho
ok because rn i have this https://pastebin.pl/view/781515af and it isnt working
how to get %statistic_hours_played% from selected player?
ok so here me out on this one - Basically I am trying to make players buy plots with the plugin PlotssSqaured with essentials econemy. To do this, players use a GUI (Plugin is CommandPanels) I learned that when a user was to buy a plot for the eco money, the command that it would run when they buy it is - console= lp user %cp-player-name% permission set plots.plot.x+1 - the plots.plot.x+1 is wrong becuase basically what this is doing is setting the users plot limit to +1 when they buy the plot, so Im prettty sure this would have to do with the placeholder #math, can anyone help me with this on how to use it?
help pls?
lol dont bother they have 5-7 supports that can help online rn but no help for me or you
Maybe no one online atm have an answer for you..
they would have said that
its been like 30 minutes since uve messaged, u shouldnt expect support within that time. no one is getting paid here. also ive never heard of this plugin so i cant help u personally
@obsidian charm paste the full error
sorry i dont want to be that guy its just my server released soon so i need to get it done, but at the same time...... You have never heard of plotssquared.... the largest creative plugin,,, aka also a whole placeholder section in your github
i mean ur question is more towards CommandPanels by the sound of it
i could tell u how to do it in deluxemenus, but thats a different plugin
ยฏ_(ใ)_/ยฏ
deluxemenus have similar layouts, it really doesnt even have to do with command panels in the first place thats just a extra piece of info, that is just to trigger the command, the question is what will be the lp user command with what placeholder in order to increasse the limit to user by +1
i know you can becuase a server i was on similar to mine does it
unless CommandPanels has some sort of requirements system (like what deluxemenus has) then im not sure
dude im not an expert but it wouldnt need it, it supports papi and all its doing is running the command, im just adking what placeholoder would be used to increase the plot limit by 1
still no help....
Anyone know why the vault eco placeholders aren't working? I have the vault expansion but the rank top placeholder isn't working.
https://i.imgur.com/uiOoJW9.png
https://i.imgur.com/k8OFkBH.png
Putting this here...
Anyone know how/what to use to get attributes from items, or just the player attributes in general? Like getting total generic.attack_damage, generic.armor, and the rest of them.
c
Anyone know why the vault eco placeholders aren't working? I have the vault expansion but the rank top placeholder isn't working.
https://i.imgur.com/uiOoJW9.png
https://i.imgur.com/k8OFkBH.png
@karmic marsh did you reload papi after downloading the expansion?
Yes and I've restarted the server a couple times too.
make sure it is enabled on papi config
Hi !
I am an error with Placeholder Api when i down my server.
But PAPI are functionnal. ๐คทโโ๏ธ
Hello, I would like to have your opinion on the best method. I have LuckPerm, and PAPI. I would like in the TAB, just to have the players in color in relation to their roles.
What do you recommend as a placeholder?
Thank you for your help.
I'm using PAPI for roles, and it works really well so far. Never tried the other one though
Putting this here...
Anyone know how/what to use to get attributes from items, or just the player attributes in general? Like getting total generic.attack_damage, generic.armor, and the rest of them.
@dull meadow anyway.. bump
Hello, I would like to have your opinion on the best method. I have LuckPerm, and PAPI. I would like in the TAB, just to have the players in color in relation to their roles.
What do you recommend as a placeholder?
Thank you for your help.
@lusty granite seems a bit sketchy but cant you put their color in their prefix then get the placeholder prefix?
Also idk if it works like that
Is there anyway to display placeholdersapi placeholders in skript? I was plugin Ersatz but it doesnt work for me.
Is there anyway to display placeholdersapi placeholders in skript? I was plugin Ersatz but it doesnt work for me.
That's a question to ask the skript developers. They need to add PAPI support. But I'm pretty sure they do support them tho.
Do you know how to make them?
Nope.
on join:
set {_barvicky} to placeholder "playerlist_online,perm,yes,amount,barvicky"
broadcast "%{_barvicky}%"
Don't they have a wiki or something?
@dull meadow anyway.. bump
I think you can use Javascript placeholders.
yo have to now a bit of javascript and spigot api
Thanks, isn't it java though?
its a javascript expansion
so it uses javascript
not java
Hi !
I am an error with Placeholder Api when i down my server.
But PAPI are functionnal. ๐คทโโ๏ธ
@vague lion seems like the ultimatestatistics expansion gives that error.
Ah, ws thinking of something like this
player.getAttribute(Attribute.GENERIC_ATTACK_DAMAGE)
If that doesn't work Imma go do research again, thanks for the help!
well yeah. You can use spigot methodfs
methods* in javascript
expansion
so that's exactly what you'd do I think.
some more info on the expansion: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
Oh thanks a lot!
on join:
set {placeholder} to placeholder "%%playerlist_online,perm,yes,amount,barvicky%%
broadcast "%{placeholder}%"
- It says: "<none>"
It should have said "0"
I'm lost.
I mean what does /papi parse me %playerlist_online,perm,yes,amount,barvicky% even return?
"1"
Bcs i have the permission.
But the skript doesnt show that. Idk
I tried 2 expansions but none of them worked
on join:
set {_placeholder} to placeholder "skyblock_level"
send "%{_placeholder}%"```
this is a bit lower on the same page
@obsidian charm paste the full error
@warm topaz Its spamming this
on join:
set {_placeholder} to placeholder "%%playerlist_online,perm,yes,amount,barvicky%%"
broadcast "%{_placeholder}%"
on join:
set {_placeholder} to placeholder "playerlist_online,perm,yes,amount,barvicky"
broadcast "%{_placeholder}%"```
like this
still <none>
I have this error in bungee https://pastebin.com/p3T2ZGZ7
W8
Woah is pastebin down
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
Idk how, but it started working.
Funnycube is watching over us lmao
PAPI doesn't support bungee yet
So is it possible to make something like this:
command /test:
trigger:
if {placeholder} is 1:
setblock xxx y zzz
?
Idk how, but it started working.
glad to hear
you'll have to try Zizoo
I don't use skript and never have used it.
dude im not an expert but it wouldnt need it, it supports papi and all its doing is running the command, im just adking what placeholoder would be used to increase the plot limit by 1
@glad pumice you say it like its so easy... It won't even be possible with the math expansion. Because the math expansion doesn't save data. With DMenus it would have been easier since it has meta. Also about that github shit. We don't make those fucking placeholders for god sake. People add PAPI support. PAPI doesn't add other plugins support.
anyways back on the subject. Your best chance is to look into javascript data.
there's also a placeholder for that that is made by the community: https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#data if you want to use that
but I'm not here to make a full menu for you. I'm here to point you in the right direction and that's what I did ^
if you want someone to make a full menu for you then please ask in #761129130321772564 or #761129129730900028
Blitzzz
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
hmm Rick is that the entire error?
Yes is spamming
also when does that error appear?
i think for Bungee Expansion
ugh
how have you downloaded it?
you have PAPI on all your servers but not on Proxy?
and then you did /papi ecloud download Bungee and /papi reload on those servers but once again not on proxy?
ok go to plugins/PlaceholderAPI/expansions and delete the Bungee one
then restart
and see if it still appears
the error I mean
Sure wait
Because the expansion is not working properly lol
well yeah Snowman I can tell that. But the error doesn't say the actual reason
it is not working properly
that's what I meant
Now working all fine
is there a way to load papi placeholder without sending in a player?
?
If you mean parsing them via the api, you can pass null for a player
That too
heya anyone know of a good way to target placeholders at another person?
I know you can /papi parse <target player> %placeholder% but I don't want to give players permission to papi parse - what I'm doing is making a custom command that essentially does Their favorite color is: %target_player_placeholder%
^
heyo, Im using Saberfactions, and using the 2 %rel_factionsuuid_relation%%rel_factionsuuid_relation_color% But it isnt working. Saber told me to go to tablist, then montlikadani told me to go here
We need a placeholder for deluxetags to see if a tag is equippred which returns yes or no ๐ค or im just being dumb and cant find it
just use %deluxetags_tag% (?)
But tryna set a requirement to see if anytag is equipped
returns blank but idk how i'd fill it out for this section
a requirement in dmenus?
requirements:
tag:
type: '!string equals ignorecase'
input: '%deluxetags_tag%'
output: ''```
ill quickly try that
that check if he has a tag
not if he doesn't
also your priorities are bad
you have no requirement on prioirty 1
How would you suggest
alr
then
yeah and put it on the second one
gotcha
the item with prioirty 1
@karmic marsh hey did you fix your Vault/PAPI issues
I am still experiencing the same thing
Nope
And it isnt just BalTop, it is all Vault palceholders. Other packages work fine
I can even run them thru /papi parse <player> and get nothin
what's your guys problem?
It seems there was a Vault expansion update or something and now my Vault placeholders dont work
Possibly more than just vault I cant tell
But I definitely know Vault isnt
well some of the placeholders vault had got removed
for example the TOP placeholders
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
send this ^
?paste
Paste Services
When asking for help with a config/menu/code issue please use one of these:
(However we do prefer if you used our paste :))
โข HelpChat Paste - Usage
โข Hastebin
https://hastebin.com/ezigodewec.sql @turbid tide tyvm
@lethal carbon,
Please respect the rules, be patient and don't ping staff members!
whoops sorry didnt know I couldnt ping ya
oh shit everything fucking crashed and windows went into repair mode.
Seems like your EzRanksPro expansion is broken for some reason
also the LP expansion and Vault is not downloaded
you'll have to go to https://api.extendedclip.com/all/, download the expansions manually and put them inside plugins/PlaceholderAPI/expansions
then do /papi reload
first of all make sure the expansions aren't in there already and if they are delete them and then download them manually
also idk about your ezrankspro expansion.
@lethal carbon ^
do you even have the EzRanksPro plugin installed?
Ahhh
if not then delete it
delete the expansion from the folder then
but still
you'll have to download manually the Vault and LuckPerms expansions
I definitely have Luckperms and Vault expansion in the folder
I reinstalled em already
manually?
from the ecloud?
if not then delete the existing ones and download them manually
BOOM
because they don't get registered at all
it was the EZRanks expansion
oh I see
makes sense now. I think PAPI just stopped registering expansion after EZRP one was giving an error
no problem
and sorry for the 1 hour wait. Everything crashed.
No problem at all shit happen
If you mean parsing them via the api, you can pass null for a player
i do mean that, but that'd just make the placeholder blank
depends on the placeholder
parsing it doesnt require a player theoretically
correct
it just gets a string from a yaml file
im registering some simple placeholders that gets some strings from a yaml file via papi
but when i pass in a null for the player parameter it just replaces the placeholder with empty string
๐ฉ
=paste
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
send your class
Yeah
maybe you're not overriding
im in class :wheeze:
Because if the player is null
It returns ""
I think almost all expansions check for player first and return null or ""
it's their expansion
Oh
yeah
Okay. Code after class
not overriding is my initial thought, but code later for sure ๐
i mean, when i actually pass in a player it works just fine :/
Yeah
hey can u update papi hooks on KoTH v1.5.1?
its not up to papi to update expansions, but rather the authors of the plugin/expansion themselves
project is abandoned last 2 years
I don't know how to explain this but how do I make it that a random number generated in a javacsript can be used somewhere else
var min = 1;
var max = 5;
function randomInteger() {
if (args.length == 2) {
min = args[0];
max = args[1];
}
var random = Math.random() * (max - min);
random += min;
return Math.floor(random);
}
randomInteger();
this generates the random number between 1 and 5 and I want to use that number somehow in a message in chat.
use rng expansion ๐
if u need 1 to 5 then use %rng_1,5%
dont forget to download the expansion if u havent already
/papi reload```
Alright but... how do I use that same generated number in a message?
/papi parse me %rng_1,5% & %rng_1,5% = both different numbers
and what I want is to have the first one generate a number and then display that number in chat (cause i'm using it for exp gain)
put the placeholder in whatever plugin ur using to send the message?
You need to store it somewhere, take a look at js Data @dense trail
Could add that to rng @warm topaz %rng_last%
Yeah for now i'll just skip it then... or find a other way
I don't know anything of javascript, I just adjust code to my likings
Mkay
i dont understand that why %kp-pvp_player_kills% dosent work in hologrmas i watched this video https://youtu.be/juooznpPseE but didint help
so how can i help kp-pvp things to work
becaus i want holograms that show how meny deatsh, kills, and all that
but theese dont work
%kp-pvp_player_kills%
%kp-pvp_player_deaths%
%kp-pvp_player_coins%
%kp-pvp_player_streak%
%kp-pvp_player_is_on_kitpvp%
%kp-pvp_players_count_total%
%kp-pvp_player_kit%
%kp-pvp_player_level%
%kp-pvp_player_xp%
/hd setline Kitpvp 1 &b&lKills %kp-pvp_player_kills%
what is wrong with that
dosent work
look the picture
can u do /papi parse me %your_placeholder_here%
its says
well its automaticly instailed
so i dont know how could i do that
and this is the link
/papi parse me %kp-pvp_player_kills%
it says %kp-pvp_player_kills%
Of corse
wait
i mayby have difrent let me look
um
i had wrong papi
sory
lol
wasnt there a placeholder that showed the blocks/sec of a player?
not talking about the walkspeed, but their speed at a given time
nvm its an expansion which somehow breaks other placeholders for some weird reason
Hi, I get some errors when loading javascript placeholders: https://i.gyazo.com/5326968eafe9d4ebec630d5ee323f3ad.png How can I solve it? Thanks
Those are just debugs
yeah. Thienbao should rly make it not be on by default and add an option in javascript_placeholders or something
@rare lily ^ idea for you
make it have a debug option in javascript_placeholders instead of showing all those messages by default
told ya they will get annyoing when you have tens of javascripts
heyhey, quick question: How do i use a placeholder inside a placeholder? currently working with our own coded plugin and a tablist plugin. That Tablist Plugin supports placeholders. Since we want to get the placeholder from that specific player on the tablist, we use %saocore_playerlvlother_playername%, but how could i use another placeholder inside of it? we tried %saocoreplayerlvlother%player_name%% but that seems to break the whole Placeholder entirely
there was a method like PlaceholderAPI.setBracketPlaceholders(), idk if it still exists or not
the bracket placeholders did work for a bit until we restarted the server. we did %saocore_playerlvlother_{player_name}%, which worked for a bit
Nevermind, figured it out. accidentally used player instead of player_name in the placeholder
Is there any reason to why my Karma Overload Expansion did not get verified on the ecloud website?
Probabaly never asked to have it verified?
Do you have a link to the source?
The source being the expansion or the plugin which the expansion is for?
I mean both would be preferred. I just have to look through the code myself to make sure it's safe.
I hope there isn't anything wrong with either, as I don't have that much time to program since I started university
I'll check it when I'm at my PC. Might be tomorrow.
is the source code available anywhere?
because of %
%math_{server-online}-1[precision:0]%
oh
server_online as well
not -
I am trying to figure out placeholders for featherboard for vote party anyone got any idea?
ok
@turbid tide i mean, that's part of your fault for not specify the engine type ๐
@rare lily,
Please respect the rules, be patient and don't ping staff members!
To get the script understand
Time to downgrade the is expansion then xD
I'm getting this error when using the %server_uptime% tag and I'm not entirely sure why. I'm using Paper-231 (MC: 1.16.3).
[03:08:36 WARN]: Unexpected exception while parsing console command "papi parse FireControl1847 %server_online% / %server_max_players% currently online | Online for %server_uptime%"
Caused by: java.lang.NoSuchMethodError: 'java.lang.String me.clip.placeholderapi.PlaceholderAPIPlugin.getUptime()'
@charred mist,
As part of the 2.10.7 PlaceholderAPI update we broke some methods, please update to the latest PlaceholderAPI release found here to fix these issues.
I am running 2.10.9
redownload the Server expansion with
/papi ecloud download Server
then reload PlaceholderAPI with /papi reload
Thanks for the quick reply. Unfortunately I have tried this to no avail. I have also cleared the ecloud cache and refreshed, then re-downloaded, and it did not work
It is version 2.3.1
[03:22:48 INFO]: Expansion: Server
Author: clip
Verified: _
Latest Version: 2.3.1
Released: 2d 39h 28s ago
Release Notes: Fixes %server_uptime%. Thanks to MrGraycat for the fix.
(ironic, seeing as it didn't fix the issue for me)
yeah lol
can you check your Expansions folder in your PlaceholderAPI folder?
maybe there are 2 server-expansion files?
Ohhh you know what, I do see two of them
Does anyone know a placeholder I can use that will get the color of my vault rank but not the actual name?
Ah-ha! That fixed the issue right up. Thanks a ton!
๐
Does anyone know a placeholder I can use that will get the color of my vault rank but not the actual name?
@lone prairie I think %vault_prefixcolor% or %cault_rankcolor%works
%vault_prefix_color%
ok because I tried using that and it still returned the entire prefix. The prefixes are determined by luck perms
yea i assumed %vault_prefix_color% would only return the color but for some reason it gives the entire prefix
thanks for trying to help
I may try to create a placeholder /fix it with my poor java knowledge later
Oooo ok
any idea why this happens:
http://images.virtusdevelops.eu/shareX/a13ewos6.png
Hold on a second.. i just realized something
It is actually not required for the javascript expansion with file as ".js"
ugh no idea.
It can be file ".txt", or any raw file with scripting content
oh
Cuz it evaluate the content not the file itself
makes sense
๐คฃ ๐คฃ
Dont you still need a way to download the js expansion?
It automatically clears out any content with ".js"
Dont you still need a way to download the js expansion?
@vivid sparrow /papi ecloud download
Ah
Btw, i think it was because of me that they noticed ._.
I keep saying that I will use .js for testing hangman on their discord, that's why
who noticed what?
The team, of course
Also, I am not in that discord currently
Second thought.. i'm not adding module dependency in this expansion
Might be too dangerous
How would I go along the ways of formatting the autosell placeholder with timeleft so it doesnt show minutes but it formats as in 2m 59s rather than rounding up to minutes obv javascript papi expansion
Statistic version?
PlaceholderAPI-2.10.9
Plan-5.1-build-770
no the Statistic Expansion version
Plan-5.1-build-770 @turbid tide
thats what the user thats having issues said to me
is this possible ?
@vast anchor I don't know for sure but I also don't recommend that !!!!
It will break all your boolean placeholders
jesus christ what are you thinking? xD
just let it yes/no or true/false or just translate it
that will change the return for every placeholder that used to return yes/no
Let me see what is the best I could think of from editing statistic-expansion
thien ur good with js arnt ya
Yeah
aww shame
he broke the expansion
Liar
smh damn big scruff up
he made the debug mode always be on
How would I go along converting one of autosells placeholders instead of formatting to minutes to format to like 2m 59s
he's like Hitler but even Hitler cared about Germany
That's your fault also ๐
%autosell_time_multiplier_timeleft% parses the same as %autosell_time_multiplier_minsleft%
How would I go along converting one of autosells placeholders instead of formatting to minutes to format to like 2m 59s
@mental night It only returns minutes?
then you can't
well I mean you have 2 minutes
how do you convert 2 minutes to 2 minutes and 20 seconds?
you need to know the seconds not the minutes
ah
Then why does
%autosell_time_multiplier_timeleft% parses the same as %autosell_time_multiplier_minsleft%
parse the same
%autosell_time_multiplier_timeleft% is this returning minutes also?
yeh
๐คท
and i assume it shouldnt
Update 1.6.1 in js-expansion is also gonna be a ride
There're some instances where the debug message are a must to be seen
It's better to stack things
im pretty new to using this plugin, and plugins in general, but ive installed the player expansion and its working, however when i try use %playername% in a command set to clickable sign or npc it returns something like %playername% is not a player. also idk if %player% is a thing, but ive used it in the past on an item i made and it still works, but when i try to recreate that item, it no longer works. any idea whats going on?
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
why not use the ingame command phoenix
/lp group <group> meta setprefix <prefix>
he asked a question but then deleted it
well yes but I mean thats how it shows up in the web editor
the problem however is that the %vault_prefix_color% placeholder does the exact same thing as %vault_prefix% and grabs the whole prefix rather than just the color
hmm, yeah. i had that installed. i added a command to a clickable sign with another plugin that says it supports papi. if i check the command info after using the %player_name% placeholder, it returns my name, but when actually executing the command, it says %player_name% is not a player. so im guessing this is the sign plugin issue?
okay, it seems that luckperms doesnt recognize the placeholder.
idk anymore. thanks for the advice tho!
did u do /papi reload
yeah i made sure it worked using the parse me %player_name% command and it returns my name
mhm
if /papi parse me %placeohlder% works then its not papi
its the plugin that doesn't support it
figured luckperms did, ill go check out that documentation again. thanks!
so i added the command to a citizen npc and it works fine. just not on the sign so i guess that narrows it down to the serversign plugin.
thanks for the help :P
withjava String joinText = "%player_name% &ajoined the server! They are rank &f%vault_rank%"; joinText = PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText); event.setJoinMessage(withPlaceholdersSet); } (example thats on wiki), what would the value of joinText be?
wdym the value?
if I replaced withPlaceholdersSet with joinText
then it would send a join message with placeholders being parsed?
then what is withPlaceholdersSet?
k thx!
wait what wiki is that on?
ยฏ_(ใ)_/ยฏ
I think it was meant to be ```java
String joinText = "%player_name% &ajoined the server! They are rank &f%vault_rank%";
/*
* We parse the placeholders using "setPlaceholders"
* This would turn %vault_rank% into the name of the Group, that the
* joining player has.
*/
String withPlaceholdersSet= PlaceholderAPI.setPlaceholders(event.getPlayer(), joinText);
event.setJoinMessage(withPlaceholdersSet);
I suggest to create a placeholder which shows the Server Total balance
If that's what I think it is, that's a server crash waiting to happen.
๐
lol
I'll consider it once the baltop API goes live in Essentials.
it does it in batches tho right? like pages with /baltop 2 , 3 etc
It actually does it all at once but just async
It'll perform even better when the changes go live.
interesting
I'm using luckperms and statistics extension and I have problem with displayed time being incorrect
download placeholderapi dev build
๐
Is there a placeholder for playtime?
what does EssentialsX use?
for /whois
or if they dont use papi, what code do they use?
papi? for /whois? its their own code
what does the command show?
ip, uuid
hmm
what else was it
[17:16:55 INFO]: ====== WhoIs: NAME ======
[17:16:55 INFO]: - Nick: NICKNAME
[17:16:55 INFO]: - UUID: 1c1dad11-aa3c-333c-8c32-1ba8d43d9476
[17:16:55 INFO]: - Health: 20/20
[17:16:55 INFO]: - Hunger: 20/20 (+4.8 saturation)
[17:16:55 INFO]: - Exp: 6 (Level 0)
[17:16:55 INFO]: - Location: (world, 14,443, 72, -13,135)
[17:16:55 INFO]: - Playtime: 1 day 14 hours 44 minutes
[17:16:55 INFO]: - Coins: 4,194.67โ
[17:16:55 INFO]: - IP Address: /xx.xxx.xx.xx
[17:16:55 INFO]: - Gamemode: survival
[17:16:55 INFO]: - God mode: false
[17:16:55 INFO]: - OP: false
[17:16:55 INFO]: - Fly mode: true (not flying)
[17:16:55 INFO]: - Speed: 0.2
[17:16:55 INFO]: - AFK: false
[17:16:55 INFO]: - Jail: false
[17:16:55 INFO]: - Muted: false``` Its all information they got stored
I guess
some its just player methods
yeah most of it its just player methods I guess
and I think they cache the information when a player leave
because I'm pretty sure after a server restart if the player doesn't rejoin, the command doesn't find the player anymore
It should attempt to pull the player information if it matches a UUID of the player to a file.
both would prob work if thats the case
No it'll attempt to pull the uuid from the name.
Wait, does 1.12 and below supports old version statistic-expansion only currently?
Or it's changed?
I'm pretty sure the latest version works across all.
I think Gaby did a lot of work on that.
guys can u help meu out here
is there a ways to disable a certain placeholder or not?
yes, don't use it
yes, don't use it
the thing is im using luck perms and what ever rank i have when i type in chat is shows luckperms rank in gray than luckperms rank prefix and then my user name
and i want so thath the gray rak dosent show up
remove the placeholder which shows that gray rank from your chat plugin's chat format
just delete the placeholder from your chat format
well then im using papi wrong
i # the essentials chat so papi could take over
#format: '{clans_name}{prison_rank_tag_prestiges}{prison_rank_tag_default} {DISPLAYNAME}: {MESSAGE}'
how can i put the placeholders working correctly?
you need to go to config.yml and set enable-suffix-prefix to false
where ?
good evening I currently have a problem with an API
what is thou problem
I do "/ papi ecloud download state" but the plugins downloads the API well but does not take it into account I tested on 2 different servers but it does not work.
but does not take it into account I tested on 2 different servers but it does not work.
?
are u trying to use this over bungeecord?
no
wdym by that then
๐ค
does anyone know how to hook into placeholderapi? ive been trying to and have followed the wiki but it isnt working
nevermind
xD
๐ค
@tame light have you also reloaded after downloading the expansion ?/papi ecloud download ExpansionName/papi reload
^
what do the #'s in placeholders mean?
Can someone tell me if its possible to do a time since/ count up placeholder
so i dont understand what is going on everytime i close the server for a restart to install or test new configs and plugins it brings up this error at the end to close plugins and i think its courseing problems does anybody know why
it looks like the outpost papi hook is throwing errors
at net.prosavage.outpost.hook.impl.PlaceholderAPIHook.getAuthor
๐
Is there a way to find out what placeholders are listed from a hook via a command?
yea i think so
/papi ecloud placeholders <expansion>
but I don't think it's possible to get the ones from an expansion not on the ecloud
actually, it's not even possible to get the ones from the ecloud because it's manually defined by the author in the placeholders section of the expansion's page
Author has gone bye bye too
if you got the expansion/plugin, I can maybe try to check =)
I have the sauce
Just have a guy working on it right now and he's like figuring out how the old author did it, wanted to see if I could get a list for him to check and see if the old ones work
oki
Would that even be a do-able thing though?
Have placeholderapi be able to list those directly hooked expansions or no?
idk
I don't think so
except if PlaceholderAPI adds a way for the authors to define manually all placeholders in the plugin
That would be do-able via the hook in directly system as is right? Just add some more code for them to implement but make it optional
So what's the topic
In the channel name
It's basically a revamped and rethought version of the old TreasureHunt plugin for CB 1.5
1.4*
It's not so much what I want them to do, we understand that part it's more or less their names since the older dev just hasn't told me their names
So that plugin already has placeholders?
The new dev is just having trouble tracking them down in the code, was just trying to see if there was a way PAPI itself would list them out ofr me
And yeah it has 1 which I know works
And there are supposed to be 2 more but the old dev has cucked me
Could I help you then?
Just send the src or jar in pm
I'll try to find the placeholders I guess :/
Might not need to just asked the dev if he removed it, seems like he's just gonna rebuild it all. ๐
Thanks for the help though. If it's okay and we need help is it fine if I DM you then? ๐
I can send the src in the mean time if so
Hello
i have a issue with Mysql expansion
query: SELECT WINS FROM BedWars WHERE NAME = '%player%'
it show me "0" but the value from database is "5"
if i use my minecraft name instead of %player% it working fine
Because %player% is not a placeholder
Have you ran the two commands
in default Mysql config from /plugins/PlaceholderAPI/expansions/Mysql
appear %player%
the player expansion is installed
for /papi parse me %player_name% it working
๐
what do the #'s in placeholders mean?
if its what i think u mean, it represents a number i guess.
what placeholder are u talking about?
anything from vaults permissions
then yea replace the # with a number
what does the number do?
well it depends on which placeholder exactly, for the top placeholders then itll represent the player at that position of the leaderboard. or with the balance commas/formatted placeholders itll represent how many decimal places are being shown
ait
note these placeholders arnt active check pinned messages
When using
%vault_eco_top_balance_formatted_1%
and
%vault_eco_top_player_1% it brings up nothing ?
because theose placeholders were removed
Oh, what can I use then ?
read the latest pinned messages
message*
nothing yet.
they are working on adding it to essentials
bruh
It was creating extreme and useless lag.
Hello, i am using PAPI and Animated Scoreboard - when i try any effect from the animations extension (I did /papi ecloud download Animations and /papi reload) it just doesnt work. I tried inside the '
quotes and outside, it doesnt work.
any help would be appreciated.
Hello,
I wish to make a ranking of the 3 people with the most money on my server via the plugin HolographicDisplay, vault and AEconomy.
With an addon of HolographicDisplay, I was able to get a PlaceHolderAPI support, but then I was wondering how vault PlaceHolders work (my money plugin is Vault compatible).
That is to say that it is written among others on the wiki :
%vault_eco_top_balance_#%
%vault_eco_top_player_#%
Which one should I use? And if I understand correctly, should I replace the # with the number of the best player I want to get? (the top 1, or top 2...?)
Thank you in advance for your help,
Yours sincerely,
Spinogl
Firstly, you need to replace the # with the number - correct.
About which placeholder, vault-eco-top-balance-# or if you want it with commas vault-eco-top-balance-commas-# or formatted vault-eco-top-balance-formatted-#
Ohh, why was it deleted?
Anyway, it's a bit of a shame to delete it and leave it on the github :/
ugh I mean you can still use it if you use an older version of the Vault expansion
But as a result, there is no way to make a top 3 for example of the people with the most money ? :/
Ahhh okay, and you would have this version of the extension? :/
And if not, from what I thought I understood at the time (because I'm French), now it's possible to make this top only via essentialsX?
not yet
it will be
I think you need to do /papi ecloud download Vault x and replace x with the version but I don't know what the version is
baltop placeholders haven't been removed yet
just disabled by default
you can enable them in your PlaceholderAPI config
Ok, thank you very much, it seems to be working!
hey, i've given myself the permission placeholderapi.* but i'll always get "You do not have permission to do this!" when i try to use any papi command
what can be the issue?
didn't know that
didn't know either, I found it while searching for the version where they would have removed the placeholder ๐
hey, i've given myself the permission placeholderapi.* but i'll always get "You do not have permission to do this!" when i try to use any papi command
what can be the issue?
what's your permissions plugin?
luckperms
do /lp user <player> permission check placeholderapi.*
did you add the permission through the web editor?
yes
if yes, make sure you saved and applied the changes
did you press the save button at the top right?
i'll send you the link via dm
it should theoretically work, right?
Hello, i am using PAPI and Animated Scoreboard - when i try any effect from the animations extension (I did /papi ecloud download Animations and /papi reload) it just doesnt work. I tried inside the '
@left veldt Can someone answer my questions? I tried in quotes and not.
Hallo, I'm using PAPI with Animated Scorboard. Unfortunately the heroes placeholders don't work. I cannot register heroes. Downloading the file works fine, but then after I reload PAPI Heroes isn't listed as an active one.
@left veldt Can someone answer my questions? I tried in quotes and not.
@left veldt send a screenshot
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Hallo, I'm using PAPI with Animated Scorboard. Unfortunately the heroes placeholders don't work. I cannot register heroes. Downloading the file works fine, but then after I reload PAPI Heroes isn't listed as an active one.
@fervent laurel are the placeholders integrated into the Heroes plugin?
