#placeholder-api
1 messages · Page 143 of 1
ye looks like there aren't really any plugins specifically for that
1.8 - 1.12
https://www.spigotmc.org/resources/whisper.68653/ <- all versions apparently, not too sure if that's true tho
https://dev.bukkit.org/projects/chatco <- another plugin
https://dev.bukkit.org/projects/fixchat <- another
TriumphChat soon™️
oh here you go: https://www.spigotmc.org/resources/ultimatechat-1-7-1-16.23767/
one that seems to support PAPI and also has /msg feature
Hi, I'm having trouble displaying %vault_eco_balance_formatted% in my scoreboard. I have the Vault extension installed.
Didn't fix!
I already mentioned I had the Vault extension installed.
What plugin?
hmmmmmmmmmmmmmmmmmmmmmmmm
Does it work with '/papi parse'?
Try /papi parse %vault_eco_balance_formatted%
And tell me what it returns
I can't download Skript to PlaceholderAPI. When I do '/papi ecloud download Skript' and then '/papi reload' it says 'No expansions were registered!' Can someone help me?
Hi,
There is issue with PAPI "Player" module, %player_total_exp% placeholder doesn't count XP when using anvil or enchanting table. 
wym by when using anvil or enchanting table
%player_total_exp% returns the total exp a player ever had since their death. it doesn't return the exp they have rn
you can use javascript for that if you want. I made one a while ago I can search for the link and give it to you
it has all the explanation on how to make it and use it
Why player module doesn't have this by default?
ye it uses the totalExp method or whatever its called
because minecraft doesn't offer a method for that
Fr?
so they didn't bother with the math. to be honest I didn't either. most of it its taken from essentials. I just changed it a bit to work for this case
it doesn't have it cj.
What is %player_exp%
Damn you right
Wait
What is exp to level
p.getExpToLevel()
Ye what it do tho
let me check spigot docs
Bet
I should create "javascript_placeholders.yml" file myself?
EDIT: nevermind there is instructions
Get the total amount of experience required for the player to level
spigot doesn't offer a method so they didn't bother adding one xD
Fucking spigot
no do /papi ecloud download JavaScript and /papi reload
it will create it for you
Great
It makes no sense in any aspect blitz lmao
ye you should read the top as well I guess xD
Stupid spigot
well idk
xD
I took it from essentialsX and changed it a bit
because my brain was dead when I made it
Makes sense
couldn't do the math
Well
I did make my own but its basically the same lmao
The method to calculate it does, but the fact that spigot can’t tell you xp is lame
Thank you Blitz for that exp script, you are life saver 
Hello guys, i'm new in PAPI and i have a question, is this possible to place placeholder in placeholder like %gradient_message_#6bfc03_#03fcf4_%luckperms-prefix%%?
only if the expansion supports them. Tho most of the times when it does you have to use it like this %placeholder_in_{placeholder}%
so basically the inside placeholder with {} instead of %%
yay, it works, i love you ❤️
I'm sorry if this is a dumb question, but I've been trying to figure this out all week. I've got Placeholderapi displaying a number is stats on a scoreboard, things like armor durability, number of deaths, and FreeRPG Tokens, the one thing I can't seem to figure out is how to list the total number of arrows in ones inventory. It can just be regular arrows, tipped arrows don't need to be counted if that's not possible. Does anyone know how to make this work?
use the CheckItem expansion
and if you want to count all arrows you can use the checkitem and the math expansion together
?Checkitem
I'm using the checkitem expansion, but I can't seem to get the code right... I'm not at my PC right this second to copy the code I do have though unfortunately... It currently just returns "yes"
%checkitem_amount_mat:arrow% this should show the amount of normal arrows
Thank you very much, I'll try that straight away
That works, thank you again
@glad glen
@austere hawk,
Please respect the rules, be patient and don't ping staff members!
ow sorry
do /papi ecloud download LuckPerm then /papi reload and then use %luckperms_prefix%
what hologram plugin you using?
HD doesn't support PAPI by default. you need to install HolographicExtension and ProtocolLib.
so potentially dumb question: I have a plugin that allows players to join teams by clicking a sign. Once they've clicked the sign, I can run /papi parse playername %RoleCreator_rolename% (my custom placeholder) and it returns the team they're on. Is there a way to create a placeholder request other than with the papi parse command? In theory, I want to be able to run one when a player joins and when a player clicks a sign so I can update their scoreboard to show their team
the scoreboard comes from a yml file
when a player joins? you'd need a plugin with a listener for that
what plugin are you using for signs?
it's my own custom plugin. I have an onPlayerJoin listener, but Idk how to send a "placeholder request"
wait
PlaceholderAPI.setPlaceholders or smth
why do you want to run the placeholder?
PlaceholderAPI.setPlaceholders(player, string)
if it just returns the team the player is on
very confused ^
when you can get the data directly from your plugin
So am I, I think I did something dumb somewhere and am paying the price-
but essentially, I don't need the papi parse command, I just want to be able to use my custom placeholder in a yml file and on sign clicks or join events, update the placeholders so it updates the scoreboard
papi parse was just to check that I hooked it into the placeholder api correctly
I just want to be able to use my custom placeholder in a yml file and on sign clicks or join events, update the placeholders so it updates the scoreboard
let's break this down
okay
- why do you need to use the placeholder?
why not just check the player's team internally?
the same way you do it for the placeholder
but for the listeners
placeholderapi is a way for a developer to PROVIDE placeholders for OTHER people to use
and then, on the reverse, developers can SUPPORT placeholderapi, making OTHER placeholders work in THEIR plugin
now yes, you could use your placeholders in your config if you wanted to include papi integration, which would also let you use OTHER placeholders
but it sounds like all you need are a couple of listeners coded to add/remove/set the player's team
is there a way to have a "variable" in a yml file? like, this template.yml file is controlling the scoreboard of the players on the server, and I would need to update that variable just for the individual. I had seen the %placeholder_name% in other people's examples, and that made me think placeholder was the way to do it
because I can create a listener, I just wouldn't know how to feed it to the yml
so all you want to do is put the placeholder on your scoreboard?
I want to be able to run one when a player joins and when a player clicks a sign so I can update their scoreboard to show their team
you don't need to run the placeholder
if you parse it in your scoreboard, it will get the team name
I don't know exactly you want to do with your sign clicks and player join events, but from what I've read, it seems unnecessary
So featherboard controls the scoreboards of my players, and I've added a custom score for the team. Since that plugin runs seperate from mine, I was just trying to find a way to send my team name over to it
okay hold up
lol
you said you setup the scoreboard in your plugin
oh crap, my bad
if you want to add a papi placeholder to featherboard use
{placeholderapi_placeholder_without_percent_signs}
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
so since my current one is the %RoleCreator_rolename%, I would have to have it in the featherboard yml as {placeholderapi_RoleCreator_rolename}?
and follow that guide?
yes
awesome, thank you so much, sorry for the confusion
👍
when i give my prefix i see it not on my scoreboard
is there a youtube video on what this plugin is, im trying to figure it out
@mossy helm,
Please respect the rules, be patient and don't ping staff members!
Is it possible to use the javascript engine to get an argument then pass that argument into another placeholder? e.g. a javascript script that grabs a time and puts the time into the placeholder %server_countdown_<SimpleDateFormat>_<time>% where you then check if the result = 0 and if it does do something? I've tried
if (args.length == 1)
{
var date = args[0];
}
if(%server_countdown_dd.MM.yyyy_date% == 0)
and
if (args.length == 1)
{
var date = args[0];
}
if(%server_countdown_dd.MM.yyyy_{date}% == 0)
but they both return invalid date error
Last I checked that's not javascript
function hasDateReached() {
if (args.length == 1)
{
var date = args[0];
}
var timeLeft = %server_countdown_dd.MM.yyyy_%date%%;
if(timeLeft == 0)
{
return "&aDate Reached";
}
else
{
return timeLeft;
}
}
hasDateReached();
actual script
I've tried using a set date and I get this error
[07:40:34 ERROR]: [PAPI] [Javascript-Expansion] An error occurred while executing the script 'tomorrow':
<eval>:4:7 Missing space after numeric literal
if(16h 19m 25s == 0)
^ in <eval> at line number 4 at column number 7
and i have no clue on how to fix this, tried converting the outcome to a string, that didn't work. Anyone have any idea on how to fix this error?
That's because you are comparing an unknown identifier
If you are making it as string, place it inside quote: "16h 19m 25s"
its the result from %server_countdown_dd.MM.yyyy_18.01.2021%
If so: js if ("%server_countdown_dd.MM.yyyy_18.01.2021%" === "0") { //things }
Hi, I have had such a problem for a long time, I have this error and I don't know what to do, can anyone help?
Failed to register expansion from Expansion-Skript.jar
Ok. thanks
Hello
Can me ask.
Why Papi Math
if used it will show the 3 decimals
like 1.000
rather than 1 instead
you can add [precision:0] in the placeholder and it will round it to 1 without the 0s
probably
Not unless you have a plugin that is updating the website
^
then time to write one ;p
basically
for when you need it: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI#setting-placeholders-in-your-plugin
Hi how do i install this for bungeecord?
Just manually in every backend server? or can i install it on my proxy
Feelsbadman 😭
just backend servers
why do you need it for bungee?
there might be alternatives for your case.
Just for tablist
doesn't %player_health% show that?
ah. I know there is %player_Health_scaled% as well but I'm pretty sure that shows something else
I think you'll have to make your own javascript placeholder
@glass thicket,
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.
How can I run PlaceholderAPI#setPlaceholders without it coloring my legacy ampersand text I give it? The colorize boolean method is deprecated and it doesn't event work anyway
setPlaceholders colorizes text? Wut
[16:19:03 INFO]: line (BEFORE) = &bCLICK ME
[16:19:03 INFO]: line (AFTER setPlaceholders()) = §bCLICK ME
No clue man
Ok I fixed it in my own private build 👌
hello, i am dealing a problem with ServerNPC placeholder, i dont know where to get a support, but i will try both of you guys
bedwarsInfo:
Skin: '%player_name%'
Location: world:26.5:50.0:-167.5:45.03711:0.65732026
UUID: d41c7d0c-90cb-fd10-0000-000000000000
Hologram:
yHeight: 5.399999999999997
lines:
- §6§lYour Bed Wars Profile
- §r
- '§fYour Level: %bw1058_player_level%'
- §r
- '§fProgress: §a%bw1058_player_xp_formatted%§7/§b%bw1058_player_rerq_xp_formatted%'
- §r
- '§fAchievements: §cComing Soon'
- §r
- '§fTotal Wins: §a%bw1058_stats_wins%'
- §r
- '§fBed Destroyed: §a%bw1058_stats_bedsdestroyed%'
- §r
- §e§lCLICK FOR STATS
Action:
- false|none|msg:§cThis feature is still under maintenance, join discord for further updates!
Settings:
isHolder: true
Inventory:
HEAD: AIR
i have this config, and it should show up the NPC skin base on your skin. base on the players skin like on Hypixel bedwars NPC player stats
the %player_name% isn't working, itis just showin a normal steve skin
the other placeholders are working fine like on "lines" only on skin part
i have downloaded the player, server, etc.. placeholders
do the placeholders work if you do /papi parse me %placeholder% of course changing the %placeholder% part with your placeholders.
any clue why parseother isn't working?
https://paste.helpch.at/yajisotabi.bash
pretty sure user has to be in {}. same for placeholder. well I'm 100% sure about the player. try %parseother_{fredthedoggy}_{aoneblock_my_island_count}%
oooh
I assumed my name didn't have to be in {}'s
and I tried both for the placeholder
it does. I'm 99% sure. I know that placeholder usually doesn't have to be in {}
but for name I think its always required
it works
/papi parse Fredthedoggy %parseother_{oJoeyo}_{aoneblock_my_island_count}%
also is the fact that it doesn't worth with an offlien player a parseother issue, or a bentobox issue
and if so what are the docs on making offline work
bentobox is open source
you want me to send you their papi code? I know where its located
I'll find it dw
public String onPlaceholderRequest(Player p, String placeholder)
ye OneBlock only accepts online players
or bentobox in general
ok. I have access to their contributer chat so I'll just ask them to change it 😛
what are the docs for offline players?
yeah changing it might not be as easy depending on how they get the data and all that stuff.
are there docs though?
you can't change it to OfflinePlayer for placeholders
but what if their data only saves for players
you can dkim. PAPI has 2 methods
one for OfflinePlayer
wat
and one for Player
seriously?!
ugh dk if it works for external expansions but BentoBox's is internal
according to https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion u have to use onPlaceholderRequest 🤷
yeah I know they'll remove the offline one since its not used apparently
don't know if it will happen in v3 or when but that's what clip was saying couple months ago
also where does it say that?
I can't find anything about that
why would you remove offline?
just because the example shows that one doesn't mean they have to
¯_(ツ)_/¯
don't know for sure if they'll remove it. this is just something clip told me some months ago. its because its not used.
but it might not get removed
ok 🙂
I mean some use it so that might make them leave it
but as I said adding offline player support is not as easy as changing the method you use if your data is not saved for offline players.
ty
ok, I know this is wrong in some way, but I'm not exactly sure how:
%javascript_data_set,{aoneblock_island_uuid}-prestige,{javascript_data_get,{aoneblock_island_uuid}-prestige}+1%
is supposed to add 1 to the current javascript_data_get,{aoneblock_island_uuid}-prestige
any clue whats wrong?
why use set?
there's add
where you can just specify 1 instead
%javascript_data_add,{aoneblock_island_uuid}-prestige,1%
any clue why every once in a while %javascript_data_get,{aoneblock_island_uuid}-prestige% returns "First Argument Must be Get, Set, Add, or Subtract" every once in a while (randomly)
its really messing with my scoreboard
I need a way to store data :/
I might just get someone to write me a small plugin for this actually
its a pretty simple concept
you can use dm for that?
well only if you have a way to execute commands
just update to 1.16.5 please
players can connect with 1.16.4
that's what I did
yeah I know, but its bungeecord so theres actually no patches that change anything
all my players still connect with 1.16.4 because they don't even know yet
anyway, about dm?
yeah you got a way to execute commands when you want to set data?
yes
because that's the only way to set data unfortunately in dmenus
and it does it as console?
then you can use /dm execute PLAYER [meta] ...
ah I see.
not with a specific player's meta
yeah then not deluxemenus
I mean idk why it would even say that unless one or both of the arguments are empty
or first one is broken in any way
idk I've seen that the data placeholder is sometimes not very reliable.
Yeah...
@lilac oxide,
Please respect the rules, be patient and don't ping staff members!
Oops sorry
I think I'll switch to a more performance savvy way tho
Via a plugin
Is there a tutorial on caching placeholder outputs for x amount of time?
I am having a problem with deluxechat, the variables do not appear in the chat and I have the placeholderapi installed
?spigot
Spigot Account Linking
To get support for a premium plugin owned by Clip or Glare you will need to verify your spigot account using =spigot in the #bot-commands channel. After you have successfully linked your spigot account you should ask your question in the coresponding channel for that plugin. If you have already linked your account and want to update your roles, run this command =spigot check.
What scoreboard should I use with papi and also how would I show like top 3 player deaths? I know in vanilla minecraft you can make a scoreboard showing so or show a number in tab display
Some free scoreboards that support PAPI are: Scoreboard-Revision, QuickBoard, AnimatedScoreboard, Some paid ones are: KiteBoard, FeatherBoard (supports PAPI thru MVdWPAPI).
If you want to make leaderboards using PlaceholderAPI placeholders you'll need to buy the plugin LeaderHeads.
Its the only one I know that makes leaderboards based on PAPI placeholders and its pretty good.
Alright thank you
It says my name. Its working but not on part of skin. But its weord because on other user who's using servernpc plugin are working fine
@left matrix,
Please respect the rules, be patient and don't ping staff members!
yeah but that isn't a PAPI problem if they work in /papi parse me %placeholder%. Don't know how that plugin works or anything about it unfortunately.
How do i convert a decimal to number
using placeholderapi
One of the placeholder expansion requires a number instead of decimal, was wondering if it's possible to convert the decimal to number so it can be parsed.
OMG. A 30 day placeholder for essentials kits is dispalyed as a 0.. I thought it was me 😄
hours. i spent hours
anyone know the max a placeholder can go to? being displayed in a deluxemenu?
If I use the placeholder %pinger_players_mc.hypixel.net: 25565% then 0 is output but why?
because they have some kind of protection or some stuff like that
no even if I take another server no matter which one it doesn't work. So all servers with a sub domain do not work
So why is that not possible with a subdomain?
@wide sleet,
Please respect the rules, be patient and don't ping staff members!
Can you pull a placeholder on a different backend server on the same proxy?
is %server_online% show also vaished players?
Is there a way to check something is a valid placeholder on the server with the api?
With most vanish plugins, yes.
thanks
show or not?
It will show vanished players.
What plugin do you use for the vanish?
essentials
.
how i can give more arguments for %statistic_drop% if %statistic_drop_UNTYPED% give this error?
i cant send here screenshots...
@acoustic elk,
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
/papi parse me %placeholder%
Hello just an quick question. If you are using placeholder with hologram display. Does the plugin need to be bungee side
or can it be on server side and still work?
meaning just on each server rather then global should i say
idk, i just downoloaded cmibungee because it need for others functions, and in theory not
what version of spigot are you on @acoustic elk
paper 1.12.2
try %statistic_drop:UNTYPED%
well it is an invalid material
does it work with STONE
what is UNTYPED supposed to do?
yes
no filter
here this link
https://helpch.at/docs/1.16.4/org/bukkit/Statistic.Type.html
https://imgur.com/a/d1UpsJ7 Is it like this?
yea
Hmmm
@acoustic elk I don't think that is something you need to worry about
Then what would i need to have it pop up as an hologram?
it would define the statistic type so DROP is probably an ITEM type
that's what it seems to me
is there any reason you want to check UNTYPED?
just statistic for all droped items by player
👍
For this do i need any other plugin for the placeholder to work?
As i just cannot get it working but running last version of all plugins
=pl holographicextension
you need that for papi placeholders to work in holograms
also don't forget to get the bungee expansion
someone can help me whit "%objective_score_parkour%" I want to get the first player in "parkour", the second etc, its names and points
damn new icon
@vivid sparrow Unknown expansion.
you can't do that @unborn fossil
but in the wiki say that: "Note: [otherEntry] can be another player name, Offline Player name, or non-player Entry"
and what is "Non-player entry"
probably a npc's name or something
ahhh okey, F
var mundo = "%player_world%";
if(mundo == 'Mundo_nether'){
return 'Nether';
} else if(mundo == 'Mundo_the_end'){
return 'The End';
} else {
return '%player_world%';
}
}
checamundo();```
what am i doing wrong?
its returning empty
pls ping
do strings not have to be wrapped in "" in js?
try using "" instead of '' @cunning elk
can someone help me with skript place holders for papi?
Idm
does anyone know anything ab skript placeholders
How do i convert a decimal to number
using placeholderapi
One of the placeholder expansion requires a number instead of decimal, was wondering if it's possible to convert the decimal to number so it can be parsed.
how can i get player health bar with animations expansion ?
Is there a placeholder about how long a player has been online since they joined and didn't leave?
hmm, I don't think so
depending on what %player_last_played% returns, you might be able to make one with js though
if %player_last_played% happens to return the time when they joined the server, you can do it
if it returns the LAST time they logged off, or the CURRENT time, it won't work
Okay ty
The placeholder %math_{bungee_server2}+{bungee_server1}% returns a number like "5.00" am I able to change this so that it is "5"
%math_[precision:0]{bungee_server2}+{bungee_server1}%
Thank you
How do i convert a decimal to number
using placeholderapi
One of the placeholder expansion requires a number instead of decimal, was wondering if it's possible to convert the decimal to number so it can be parsed.
can i know why does BAMobCoins placeholder doesnt listed in the https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders
because the dev of the plugin never requested it to be there. They can always make a PullRequest to add them.
a lot of plugins don't have their placeholders there. usually they have another place where they are listed like their spigot page or their wiki
i see, thanks for the info
i am trying to get the right placeholders for a specfic plugin epic-set clans The plugin provides a java code, but im unsure how to use it. here is a photo of the owner explaining something about support???
nvm it won't letme paste anything i will link the page
I mean they're on the spigot page
why look at the code for them?
on the page you just linked
Im confused when he says this To use the ClanManager you need to get its instance as:
Code (Java):
ClanManager clanManager=EpicSetClansApi.getClanManager();
so the plugin has the placeholders built in?
I must be doing it wrong
I am trying to show clan names and other info like clan bank on another plugin called titlemanager
right. you don't need to use the code for that
because titlemanager supports PlaceholderAPI
okay
all you got to do is use these placeholders: %epicset-clans_clan% for clan name %epicset-clans_clan_raw% for clan name without colors %epicset-clans_clan_tag% for clan tag %epicset-clans_clan_tag_raw% for clan tag without colors %epicset-clans_tag% for player role %epicset-clans_tag_raw% for player role without colors %epicset-clans_comment% %epicset-clans_comment_raw% %epicset-clans_position% %epicset-clans_respect% %epicset-clans_respect_formatted% %epicset-clans_respect_raw% %epicset-clans_points% %epicset-clans_points_formatted%
okay, i will keep working on this. I appreciate your feedback
To Whom it concerns, AutoRank Dev version 122+ now has the Papi expansion built in into the jar
@limber ice Unknown expansion.
does anyone know if tghere is a placeholder expansion to evaluate numbers
something like %evaluate_{superior_island_level}_>=%
and it returns true or false
How to display the number of completed achievements by a player in "Playerlist scoreboard display type" ? Datapack: BlazeandCave's Advancements Pack, Plugin: TAB
@warm plover #ecloud-updates
Tysm!
hey can i get a placeholder that returns the number of completed advancements
does anyone know anything ab skript placeholders
Hi is there a placeholder for deluxe tags? I'm not using deluxechat, using cmi btw
how would i make it so that if someone has a certain permission and they do > before their message its green
can i know what is the latest version of papi? is it 2.10.9?
what placeholder show amount online players without vanished?
premium has a higher priority
yea I know but didn't thought that many premium plugins have papi in their title lol
anyone
This a development question or?
o maybe my bad
guys, can anyone help on this? https://paste.helpch.at/yilufolugi.bash
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
But it's working fine on my other server tho
It reports the same to me ..
Hi, is there any WorldGuard placeholder to check how many players in a region ?
https://github.com/Andre601/Formatter-Expansion
How does the formatting placeholder work?
I'm trying to do this: %formatter_number_time_12341234(set this number to sneak time)%
this is what i have: %formatter_number_time_%statistic_sneak_time%%
But that doesn't work, how do I got about doing this?
Thanks ! 😄
use %formatter_number_time_{statistic_sneak_time}%
okay well that works.. but it's not accurate 😅
it counts up by the seconds wayyy to fast
I'm pretty sure it just takes the time from minecraft
you need to use the math expansion or javascript. but like with math you won't be able to use the formatter anymore
so probably javascript expansion is what you want
ahh, probably not worth it lmao
I'm not confident in java
don't need to be
sure, i'll give it a go, could you guide me though it?
var time = parseInt("%statistic_sneaktime%")
time/20```
this is all the code you need
for it
like 2 lines
that's all
also javascript totally different from java
o noes 🤣
i tried changing it to %stat_sneaktime%, just showed up as a string
oh wait
one sec
hmmm
i'm using papi's statistic,
here is the script
var time = parseInt("%statistic_sneak_time%")
time/20
would the new placeholder be the name of the script?
example sneaktime_stat.js = %sneaktime_stat%
name is not defined within the script
function sneaktime_stat() {
var time = parseInt("%statistic_sneak_time%")
time/20
}
does that define it properly?
no
welp
I'm telling you it is not defined in the script
it's defined in the javascript_placeholders.yml
Oh, yeah i've already done that..
sneaktime_stat:
file: sneaktime.js
engine: nashorn
so sneaktime_stat is the name
right, i'm using that in game but it's not working.
type /papi parse me %statistic_sneak_time%
wait
do you only need to divide by 20?
if so, just use math
Yeah
%math_{statistic_sneak_time}/20%
I wanted to divide it by 20, but i wanted it formatted
hour, min, sec type thing
oh
Yeah..
so you don't just want to divide by 20
what does this return?
No, but if we divide by 20 first and then make my own placeholder with it to put in the formatting it will work
4463
but that doesn't make sense lol
just do it in the js
okay so
what is your current script?
var time = parseInt("%statistic_sneak_time%")
time/20
||don't you need a sneaktime_stat() at the end?||
Hmm..
and what's not working atm? it's not parsing the placeholder?
No, just returns %sneaktime_stat%
oh lmao i thought he had that part right
?
returns nothing, there's nothing in the script
can you send the new script again?
var time = parseInt("%statistic_sneak_time%")
time/20
add return before time/20
even if it's not a function, you should need a return
then how do you know what to return ? 🙃
you know how you do
can you at least try it?
function yee(){
return "haw";
}
yee();```
hahah
there is no return yee();
it's just yee();
the outputted value is the value of the last line in the script
welp
maybe latest dev build?
time to start the test server
do you have any console errors by chance
what for?
the first string it finds outside a function its returned
because what do you think calling a function would do?
it would be just like typing in the string
Nope
if you looked in console it would've told you that you need a ;
var time = parseInt("2168") time/20```
oop, one second
to find a way to make it work x)
[PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: sneaktime_stat
you don't need ; if you're on latest version
that's not a problem Zaddish
you can ingore that
got the same thing,
and I think it is a problem
Right, that's the only thing it's throwing up
because it says [19:11:29 INFO]: [PAPI] [Javascript-Expansion] 0 script loaded!
please believe me
then why does it says 0?
no idea. maybe you didn't put it in javascript_placeholders.yml?
I did
what's your javascript expansion version?
show me javascript_placeholder.yml
example:
file: example.js
engine: javascript
sneaktime_stat:
file: sneaktime_stat.js
did you remove the engine
I tried global, nashorn and javascript as engine
engine: nashorn
engine: nashorn
it defaults to it
and removed the line aswell, but none worked
yeah it does
don't need it, tried with and without, makes no difference
mine works fine with ;
show me the code
dev build of papi?
what's your server version?
1.16.5
try updating
I know PAPI 2.10.9 is broken on 1.16.4 somehow
?papi-builds next time cj if you want
👀 I'm using 1.16.4 and never got it broken
ye can never remember
sure give me a sec
broken a bit with js at least @junior musk
yeah I guess that's it
papi parse Razvan2010 %javascript_testingg%
[19:16:25 INFO]: 6242.5```
same code you just gave me
and it works
hahaha what
Could not load 'plugins\PlaceholderAPI-2.10.10-DEV-122-javadoc.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
still got nothing
🤦♂️
latest PAPI version for me, JS 1.6 and the code the guy just sent
and it works
var time = parseInt("%statistic_sneak_time%")
time/20```
so idk what the problem for you guys is. maybe forgot to download the statistic expansion?
i'm running on 1 hour of sleep in 28 hours sorry i'm a bit slow
statistic is downloaded and working.
no worries
when was it last updated
do /papi ecloud download JavaScript and it will download the new one
also /papi reload
bruh
also check the expansions folder
u telling me this
you might have 2 files
because I know it did the same for me
and it used the old version
had to remove one of them
manually
ah ok nvm then
maybe next time
JS-Exp: 1.6.0
PAPI: 2.10. 10-DEV-122
js file and js-placeholders file filled and still got 0 scripts loaded and the warn about the engine not correct
I mean 112 or higher I think it works
ye
ye
testingg:
file: test/testingg.js
``` this is my javascript_placeholders
I just figured I had latest
^
idk zaddish
welp
what does it say now?
the same thing
I've just tried 118 with JS 1.6.0 and doesn't work
script error?
Tanguy what code?
just %sneaktime_stat%
zaddish
well for me it doesn't x)
lmao
you need to do %javascript_<identifier>%
bruh
the one you sent, I tried with ; and without
yeah
but i'm defining the script's name as %sneaktime_stat%
but what placeholder are you calling?
...
well
%statistic_sneak_time%
no
?
%javascript_<identifier>%
no?
%javascript_identifier%
so if you set the name of the script to sneaktime_stat in javascript_placeholders.yml
you use %javascript_sneaktime_stat%
and thats my q to leave and get food
it's not working, but it's not showing anything
but like
i thought we were making our own placeholder
with another one
btw Blitz, do you get that:
[19:23:48 WARN]: [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder test isn't initialized! Defaulting to global
or that?
[19:23:48 WARN]: [PAPI] [Javascript-Expansion] Failed to set ScriptEngine for javascript placeholder: test
yep.
wait
I think both
not sure
[19:25:17 WARN]: [PAPI] [Javascript-Expansion] ScriptEngine type for javascript placeholder testingg isn't initialized! Defaulting to global
this is what I get
you only get this one?
yeah
and then says this [19:25:17 INFO]: [PAPI] [Javascript-Expansion] Placeholder %javascript_testingg% has been loaded
then it's a problem with the ScriptEngine which does idk what
for me it says Failed to set ScriptEngine for javascript placeholder: javascript_sneaktime_stat
its the engine. its the javascript engine.
but his works doesn't it?
because it returns a blank line?
when you parse the placeholder?
same for me
hmm
Wait, wasn't this error
Failed to set ScriptEngine for javascript placeholder: test
caused by Java versions?
maybe...
what's your Java version?
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
probably not the latest
should work on java 1.8
why's that?
got it aswell 
on 1.15 it would've error
hm
can you go into your expansions folder?
and delete all the javascript expansions from it
and do /papi ecloud download JavaScript then /papi reload
done
ok I got it
[10:29:47 INFO]: [PAPI] [Javascript-Expansion] 0 script loaded!
[10:29:47 INFO]: [PlaceholderAPI] Successfully registered expansion: javascript
put this in your javascript_placeholders.yml: yml sneaktime_stat: file: sneaktime_stat.js engine: 'nashorn' then go to your plugins/PlaceholderAPI/javascript/snaketime_stat.js file and add the code there
I changed it to 11 and it workeed, changed it back to 15 and didn't
wdym
its %JAVA_HOME%
variable
system variable
0 scripts loaded
unless you're not talking about that blitz
I am
i'm pretty sure that's a manual variable
wdym manual?
doesn't come predefined in windows
oh yes
have to set it yourself
a select few
it's a placeholder for your PC that returns the path to your Java jdk
and that's what programs using Java try to access to get your java version and things
^
🤷
it's basically the same as mounting a server drive, except instead of typing in the ip, it's the name of your server
forever
😮
wdym
oh
lol
instead of %appdata% just make a %minecraft% or %mc% lul
oooo
mine is less than 5 letters
and its just so anyoing. I wonder if just changing the folder name
would break anything
so that's why everytime I tried to rename it to Tanguy and Tanguygab it didn't work...
yeah because you can set custom names when you make the account but for some reason mine just took the 5 letters from my email
and its my old email
that's like just trash
xD
iirc it just doesn't take it and recreates another folder
when your pc is so slow that browser extensions crash, 99% of apps (not discord for some reason) doesn't respond
😢
specs?
intel something
lol
i have two computers
but
for different uses
🙂
one of them is loaded with games
I have 3 :killme:
one has a 1080 ti
i5
tffff
3070 gaming x trio
we should probably move to #off-topic or something. cube will get mad at us.
no xD
Does anyone know what placeholder can be used to display the number of achievements here?
datapack: BlazeandCave's Advancements Pack
how do i know the list of stuff for the placeholders?
or how do i add one
the plugin folder only has config.yml and the expansions folder
the config is basicly empty
A resource that allows information from your favorite plugins be shown practically anywhere!
• Spigot
• Wiki
• Placeholder-List
• GitHub
• eCloud
@cosmic ice 
ok
does anyone know if its possible to round %player_exp% to two decimal places and truncate the leading 0?
can someone help me
how do i change the server name that is displayed with the %server_name% placeholder
papi config
tyvm
there doesn't seem to be a placeholder for that.
not yet no.
why
v3 is supposed to add Bungee support but I can't tell you when that'll come out
please hacker into the top secret cia hosted servers to find out for me
find out what? when? not even they know lmao.
they're working on it on their free time
if you have some java knowledge there is an API on spigot that is suppose to add bungee support. but its just an API
please don't be like the other 2 guys in the review secio
section*
as the spigot page says this is not a plugin. its an API.
I mean I think you're suppose to make your own plugin using the API.
on how to make a plugin? there are a few but I don't recommend any. if you want to make your own plugins you'd have to learn java first.
on how to use the API tho I don't think there is.
Alone this plugin will do nothing, this is only a very lightweight
lol and then
Not working, I've put it into Bungee and Spigot plugins folder and it does nothing...
I have one review on my one resource, 5/5 hehehe
nice
yeah that's why I mentioned them lmao.
can anyone help me with skript placeholders?
help with what exactly?
if you want the most updated one you can download it from here: https://github.com/Altruiis/skript-expansion/releases/
i wrote a skript for counting players online and i want to pass the variable to the plugin scoreboard-r. when i put in %skript_<onlinecounter>% it just displays it instead of using the number
i did the ecloud update and still nothing
did you run /papi reload
try doing /papi parse me %skript_onlinecounter%
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.
?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
seems to be that its "skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!"
ok ill give that a shot
Is there any other js engines to use for Javascript-PAPI? Nashorn is ES5
download it from here; https://github.com/Altruiis/skript-expansion/releases/ go to plugins/PlaceholderAPI/expansions delete the existent jar in there put the one you just downloaded and do /papi reload
no. Graal is going to be added soon since java 1.15 doesn't even support nashorn anymore. I think its Graal (the name) I have a bad memory. thienbao is working on it currently
the variable just reads <none> now
well at least it works now. the expansion I mean xD
well if it returns something it means it works. its just something that you've set up that's wrong. idk how skript works or how to use it so I can't help you from now on with this
alrighty thanks for the help
Please tell me which placeholder can be used to display the number of completed achievements in the TAB plugin
Datapack: BlazeandCave's Advancements Pack
for the progress bar I think you can use https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#progress (never tested it out before though)
I'm not sure about the %achievements%/%total% though
Are you talking about like percentages?
maybe you can use the javascript expansion for that, not too sure though
oh
then what
😅
so like 70/100?
well you can google total, for reached... you might be able to use https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#advancements but I'm not exactly sure how, you can try experimenting with different values though 🙂
np 😛
Just gotta practice
Same way you'd learn how to play the guitar, practice
Pretty much
help
@carmine veldt