#placeholder-api
1 messages · Page 127 of 1
read your mentions smh @steep thorn
I'm on my phone and Discord notifications absolutely suck
ok fine 😔
hi when i copy <dependency> <groupId>me.clip</groupId> <artifactId>placeholderapi</artifactId> <version>{VERSION}</version> <scope>provided</scope> </dependency> into my pom.yml
I get an error saying " Dependency 'me.clip:placeholderapi:2.10.9' not found"
Can anyone help me?
I already replaced the version with 2.10.9
Have you added the repository?
yup
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>```
huh ok the problem seems to have resolved it self lol
idk what fixed it but now its fine
is there a placeholder for essentials mails?
Not for the /mail as far as I know
when 1.16.2 support?
It will be released when it's released.
so helpful thank you for your wisdom
what would I have done without that knowledge i do not know
pretty sure its causing severe memory leak on my bungee proxy doe
papi isn't a bungee plugin, so that's a big doubt
i have a probleme in 1.16.2
same
Then explain the problem
I don't see the group
[% javascript_group_prefix%] nickname
it is marked like that in the chat, while with the old version of papi it worked
:what:
And what chat plugin are you using
deluxechat
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
What in the hell is that
A very long time ago that might've been how you do it, but it hasn't been like that for atleast a year if not more
Yeah, to just display a group of PermissionEX with deluxechat I should write how?
Just use the vault placeholders?
I recently unistalled the javascript placeholder which was changing tab, how can get rid of the %javascript_tab% now? https://prnt.sc/ucfc4y
Remove it from the tab config?
I couldnt find a place where it was being set so I presumed it was still placeholderapi doing it, the only thing I can see modifying tab names is BungeeTabListPlus but that wasnt even using the javascript placeholder in the first place.
PlaceholderAPI only replaces placeholders it doesn't add them into places
anyone having issues with 1.16.2 PlaceholderAPi? tried dev version and regular version
Just disables it and papi doesn't work
uh wydm
i just use it for placeholders like essentials, vault and my scoreboard stuff
What do you have in plugins/PlaceholderAPI/expansions
Can someone say me why placeholder api not working?
yours aint working either?
Then it could be a plugin that's using papi that is causing it
Yea
Because PlaceholderAPI isn't do that itself
okay well ill try to remove vault and see if it fixes it
Well it wouldn't be vault
What plugins do you have?
and it disables it and gives error
uh like worldedit, worldguard, shopguiplus, essentials stuff, skyblock, vault, placeholderapi, protcollib, citizens, citizensCMD, crazycrates and and nuVotifer oh and buycraft maxbans and such
when i use a lower version of papi it works fine its just the 2.10.9 and 2.10.10-Dev one
Can someone say me a papi version for 1.8.9
[18:50:04 WARN]: Plugin PlaceholderAPI v2.10.7-DEV-${BUILD_NUMBER} generated an exception while executing task 17
org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftScheduler.validate(CraftScheduler.java:537) ~[patched_1.16.1.jar:git-Paper-79]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:212) ~[patched_1.16.1.jar:git-Paper-79]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftScheduler.runTaskTimer(CraftScheduler.java:197) ~[patched_1.16.1.jar:git-Paper-79]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftScheduler.runTaskLater(CraftScheduler.java:161) ~[patched_1.16.1.jar:git-Paper-79]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftScheduler.runTask(CraftScheduler.java:130) ~[patched_1.16.1.jar:git-Paper-79]
at me.clip.placeholderapi.updatechecker.UpdateChecker.lambda$fetch$1(UpdateChecker.java:79) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.1.jar:git-Paper-79]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) ~[patched_1.16.1.jar:git-Paper-79]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[patched_1.16.1.jar:git-Paper-79]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
it was a dev version i have to update i guess
hey i am using RogueParkour with Leadheads but it isnt working
there is apparantly an api to install but i cant finf it
because that one doesnt exist?
Hey, on the CheckItem-Expansion, i see it has a data modifier. I was curious how this part of the expansion worked?
I think it's used for 1.12.2 and below for materials with multiples datas (such as wool with its different color variants)
gotcha. was kinda hoping it could scan for NBT data on items lol
thanks
Can someone help me? PlaceHolderAPI is not working on my server. Could not load 'plugins / PlaceholderAPI-2.10.9.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.clip.placeholderapi.PlaceholderAPIPlugin'
where have you downloaded the plugin from? Try redownloading again from spigot and using the new jar
seems like some files are missing from it
not sure if latest version still supports 1.7.x
unless it specifically says on the spigot page. let me check
but on spigot says it does so I'm supposing it should still work
Can you see my latest log?
sure
I can't send here
?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
@tawny crystal,
There seems to be some invalid syntax in your config! You can paste it into https://yaml.helpch.at/ in order to find out where your issue is!
have you tried redownloading the plugin?
yes
Pretty sure PAPI doesn't work when Forge is involved.
oh that could be it
Mods and plugins don't run nicely together.
Is there any way to solve this?
I just tested it on 1.7.10 spigot and it works fine so it's most likely the other software you are running with it.
If you use supported software, then yes, it works, but in this case, you aren't using supported software, so, most likely it will not work for you.
i'm using bukkit
You're using something that seems to also inject / utilize MinecraftForge.
https://paste.helpch.at/okonupokat.css anyone else having issues with 1.16.2 placeholderapi?
I haven't had issues 8J but I know what that warning is from and I can fix it.
Can you tell me if this fixes it?
This one isn't a public dev version yet 😛
oh
Yeah, so just tell me if that fixes it.
Yeah, glad I could help, not a bother at all!
Hey so I've been running PAPI for awhile now and it just randomly stopped working for no reason
I've tried reloading, restarting the plugin, re-adding the player, server, and vault hooks, nothing is working
Is placeholderApi broken it keeps not saving my Luckperms placeholder i have to keep redownloading it
Papi itself is not broken. Which placeholder are you trying to use?
For me personally, it's all of them
@toxic portal When you restart your server, are there any errors in console?
Not from Papi
Do any of the errors mention PAPI
An have you tried using the latest version of PAPI
this could be it maybe: servers)/WARN]: java.lang.NoClassDefFoundError: Could not initialize class
It's from Skript tho so idk
Wait a sec
This is from PAPI
> [19:50:04] [Server thread/ERROR]: [PlaceholderAPI] github/scarsz/discordsrv/dependencies/google/common/collect/ImmutableMap```
Means that the expansion isn't updated
Alright, how do I fix that?
The person who made the expansion needs to update it.
It would be the reason why that plugins placeholders don't work.
Let me keep looking for errors
That's all from PAPI
For some background, my server crashed for an unrelated reason, and when it came back online, this happened
I would say double check your epxnasion and plugin version for DSRV. If they manage their own expansion I say talk to them.
That's fine, but I'm more concerned about the entire plugin being broken rn
If it crashed, it's likely some shit got corrupted
How do I go about fixing that
Did the ole turn it off and back on 5 times maneuver
And it somehow worked?
Ty guys
Any ideas as to why my PAPI continues to delete my ecloud downloads for certain plugins such as Luck perms after every single restart ?
Papi can't delete files
Possible it's not downloading correctly, after downloading an expansion see if it places it in /plugins/placeholderapi/expansions
Okay
Console says this after every restart "06.09 23:53:34 [Server] WARN [PlaceholderAPI] Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.1.99 which is not a depend, softdepend or loadbefore of this plugin."
yea u can ignore that iirc
but it keeps getting rid of my luckperms and deluxetags papi ecloud downloads
It shouldn't that's a debug in the server jar, doesn't really mean anything.
Hi !
I currently have a problem
When I send a message in the chat there is a delay, I tried to remove placeholderapi and I no longer have this delay?
Did you know why?
nvm, found
can someone update mcmmo expansion to have baltop like placeholders such as: %vault_eco_top_player_#% %vault_eco_top_balance_formatted_#%
ex: %mcmmo_rank_powerlevel_#% %mcmmo_rankplayer_powerlevel_#% %mcmmo_rank_<skillname>_#% %mcmmo_rankplayer_<skillname>_#%
@light comet I don't think there's an easy way to do that for the expansion developers
Looking at the Vault expansion, they fetch everyone's balance and sort in memory, which is very inefficient
Unless Mcmmo already offers a way to do this through their API
https://github.com/mcMMO-Dev/mcMMO/wiki/Player-commands
Looking at this they seem to have commands, so it might be possible
Hopefully someone can take a gander and try it out. Because holographic scoreboards for some reason is removing formatting by the text for some reason?
So it'd be a nice way to make a custom hologram with top mcmmo stats
hola amigos
can anyone help with with featherboard mvdw papi, for the stats time played its moving insanely fast, the actual time played is 11hrs but on featherboard the time played displayed is 9d 18h how can i fix it?
anyone know why papi 2.10.6 wont let me download vault and comes up with an error then 2.10.9 once downloaded wont let me open my server selector menu
use PAPI 2.10.9, update all your plugins (or at least the ones depending on PAPI, but yeah, still), and redownload every expansions you had in /papi ecloud installed list
ty
What's the placeholder for kill counter?
/papi ecloud download Statistic
/papi reload
%statistic_player_kills%
when i do /papi ecloud download autorank it doesnt work, I've tried manually registering it as well and it just says 'Failed to register expansion from PAPI-Expansion-AutoRank-1.1.0. I'm using the latest autorank version on 1.16.2
https://www.spigotmc.org/resources/autorank.3239/
That sucks
annyone else have issues with chat messages not capitalising because of placeholder api lol
when i disable the plugin the chat messages are fine
but when enabled it goes lowercase
its chat injector not papi
i aint got that
ah nvm then
I know there is a bug with chat injector that does that
never heard of it being papi's fault
what version of papi are you using?
can you try the dev builds for me please? https://ci.extendedclip.com/job/PlaceholderAPI/
well the latest
didnt do anything but for some reason its no longer doing it
@final shadow Would it be okay if you updated the AutoRank expansion? Or is there some other way?
@glacial rapids,
Please respect the rules, be patient and don't ping staff members!
Oh sorry about the ping
Yes
I didn't know we aren't allowed to ping staff
I can update that tomorrow if it’s needed
Cool, thanks
oh clip
Is it? Idk
mcore factions expansion needs updating too, i have a jar of it, but i had to decompile it so if u wanna put it on the ecloud u can
Link expansions that need to be open source and updated below this message and I’ll do it after work
Any that are broken that I made
clip found it I think https://github.com/PlaceholderAPI/AutoRank-Expansion
and yes its made by you xD
well at least its on your gh
oh wait did i miss this one?
dafuq
ig ill update it now haha
also clip theres still a few expansions that i updated a while that could be merged in the papi repo
nvm, deathrealms already updated it https://github.com/DeathRealms/AutoRank-Expansion
just need to merge this one
I made a pr
in the latest version, playerpoints placeholder doesnt work. It returns this https://gyazo.com/e87d20f4d0d371f728113143aadec01d
@final shadow
@frank sinew,
Please respect the rules, be patient and don't ping staff members!
Do placeholder have %bungee_<server>_ping% ?
or any server ping placeholder?
That's from your own UltraAFK, actually
That's from your own UltraAFK, actually
@rare lily
I really doubt that
public String onPlaceholderRequest(final Player p, final String identifier) {
if(identifier.equals("isAFK")){
if(UltraAFKAPI.isPlayerAFK(p)) {
String result = getYamlConfigFile().getString("uafk-placeholder-api-result");
String colored = ChatColor.translateAlternateColorCodes('&', result);
return colored;
}else{
return "";
}
}
return "";
}
that's the only thing that I've in my onPlaceholderRequest
and he's the only customer that i've getting that error
at hotdoctor.plugin.ultraafk.extensions.PAPI.onRequest(Unknown Source)
My bad, plugin is getting the placeholder from onRequest
this is the code:
public String onRequest(OfflinePlayer p, String identifier) {
if(identifier.equals("isAFK")){
if(p.isOnline()) {
if(UltraAFKAPI.isPlayerAFK((Player) p)) {
String result = UltraAFKAPI.getYamlConfigFile().getString("uafk-placeholder-api-result");
String colored = ChatColor.translateAlternateColorCodes('&', result);
return colored;
}else{
return "";
}
}
}
return "";
}
i just added this b4 because the break update lol
And store it in the class. If you do what you're doing now it's going to spam config calls.
https://prnt.sc/uelu02
any possible solution?
Holographic Displays?
If so, you need this -> https://www.spigotmc.org/resources/holographicextension.18461/
Hold up, what is that config string returning?
@trim mist uafk-placeholder-api-result: ' &8▍ &fAFK'
xd
ohk thanks
Who summoned me
A lot of people
Hey guys
./papi ecloud download (plugin)
doesnt work
i get this message
''No cloud expansions are available at this time''
@austere hawk tell us exactly what you are executing
./papi ecloud download towny
it doesnt work with any tho
and the towny people say that i need to download the placeholders to make stuff work
?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.
@austere hawk
cant rn need to go to school
Hi, not work animation placeholder api, i download next api: animations, deluxemenus, player, rainbowcolor, randomcolor, server, statistic
Animation not work, but i re-open menu, i see that color changed.How i make change color dynamic without re-open menu?Tested on minecraft 1.12.2 1.15
update_interval: 1 and update: true
And forgot say, with plugin Deluxe menus https://imgur.com/a/6p4hjSl
answer is the same
update_interval: 1 for the gui settings and update: true for the item settings
Right? https://imgur.com/a/2cL2y6T
no
you put update_interval: 1 for the gui settings only and update: true for the item settings only
hey
is anyone familiar with adding placeholder api to a plugin
specifically reading placeholders from a config.yml
PlaceholderAPI.setPlaceholders(OfflinePlayer, String)
@gusty yoke u can read more here https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI#setting-placeholders-in-your-plugin
ok thank you
are there placeholders for massivecraft factions? i cant find any
yes
oki ty
oki ty
pin it ¯_(ツ)_/¯
@final shadow OS the expansion like u said u will yesterday 
@warm topaz,
Please respect the rules, be patient and don't ping staff members!
ok so
i have
factions plugin
placeholders
in my scoreboard
it shows the faction your in
but
if you have no faction
instead of showing like "None" it shows just nothing
is that possible to change
?js-factionname
Send a different message if the player is factionless
function factionName() {
var name = "%factions_faction%"; // Replace with the placeholder of your factions plugin
return name == "" ? "" : name + " ";
}
factionName();```
use this with the javascript expansion
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki this should guide u how to use it
u create the placeholder using that js code
then use that placeholder in ur scoreboard
wait so
how do i create a placeholder
it sorta tells me in the site you sent me
but
it doesnt show me where (unless i read that wrong which is very much possible)
this is so confusing xd
@warm topaz
would it be possible to get some support here for PAPI for sponge?
ey whers the new doc replacing ezplaceholderhook
u basically extend PlaceholderExpansion now and use onRequest instead of onPlaceholderRequest @forest wolf afaik
if u want the expansion to be inside ur plugin, then yes use that
hey the place holder for the plugin GemsEconomy dont faund, and give me a spam error,
Plugin: https://www.spigotmc.org/resources/gemseconomy.19655/
Error Pastemd: https://paste.md-5.net/nulokuqoxe.apache
TXH
Hello, so my friend made a plugin (we now have lost contact with each other). Anyways, it's a egg plugin kinda like what Hypixel has and there is no placeholders. I want to make a placeholder for %eggs_found%. The plugin is connected in MySQL but I have no idea on how to make a placeholder for a sidebar.
idk for sure but maybe you can use mysql placeholders?
nope, thats not working either...
hey the place holder for the plugin GemsEconomy dont faund, and give me a spam error,
Plugin: https://www.spigotmc.org/resources/gemseconomy.19655/
Error Pastemd: https://paste.md-5.net/nulokuqoxe.apache
TXH
so in the MySQL expansion, what should i put in the query area?
I have a problem with the plugin.
I set server-name=lobby5 in server.properties.yml
But,the placeholders %server_name% display is A Minecraft Server
I do /papi ecloud download Server and /papi reload
on paper mc 1.12.2 version
No matter I modify motd or server_name, it always shows %server_name% is A Minecraft Server
having an issue with factions (color) placeholders: https://prnt.sc/uf74jh
they only work when the player requesting the player is different
this is my own expansion, anyone know what's up?
here's the placeholder link: https://api.extendedclip.com/expansions/factionsupdated/
No matter I modify motd or server_name, it always shows %server_name% is A Minecraft Server
@slim vault u change it in the papi config
Hello, I'm having a fun issue when recalling the %statistic_time_played% in a plugin of mine.
It Displays as the following; PlayTime: 4d 49h 1m 44s
Any idea on how to fix?
Including PlayTime:?
if you parse the placeholder as /papi parse me %statistic_time_played% it still shows it wrong?
can i save/cache values im generation in my javascript placeholder?
What i see has it some sort off database (but i can be wrong).
atleast for cooldowns
@snow veldt You could use the data shit yes
@brisk coral Do you have a link to more info on that or is it just a easy as making a global variable for my object named data?
A resource that allows information from your favorite plugins be shown practically anywhere!
• Spigot
• Wiki
• Placeholder-List
• GitHub
• eCloud
Should be explained on the wiki iirc
i did look for that in the wikis.
but yeah u just found it in the github.
"Storing Data"
Great. Thanks!
Hi, if I implement my own placeholders, can they be case sensitive? Or are they required to be lower case or do I have to make them case sensitive?
And even if there are no hard requirements, what is the common standard?
they are case sensitive by default, excluding the identifier if I'm not wrong
you receive the user's input as it is then handle it on your own
Yeah, thought so. I'm one of the developers of a quest plugin. The quest packages (folders user can put their quests in) can be named case sensitive. Reading placeholders for such packages with the command works too, so we thought everything is fine.
But now a user came to us because a Denizen dev told him that we are doing it wrong by having case sensitive placeholders. (They lowecase the given placeholder before passing it to PAPI). So I thought better ask what the right way is...
"they" = denizen dev?
who uses that plugin anyways
Whe have users that use it and implemented support for Denizen. I don't use it myself, but there are people.
i wouldnt bother with such thing
there aren't many rules for placeholders format, other than the identifier must be unique and not contain underscores (I guess)
Anyways, thanks for the clarification, I will ask the Denizen dev to stop blaming us for doing it wrong.
if you parse the placeholder as
/papi parse me %statistic_time_played%it still shows it wrong?
@turbid tide Yes it does
@hasty cipher,
Please respect the rules, be patient and don't ping staff members!
there isn't a reason why that would happen
it looks like it just stopped rolling over in the days
so the hours just keep counting up instead of the days
any fix for my issue?
how can i install this on my bungeecord?
you can't
papi doesn't support bungee yet
there are some plugins and APIs that say they can add bungee support for papi but there is no official one that papi supports.
what are those plugins
for support
or just other placeholder plugins that support bungee
I made this little javascript placeholder.
var completed = false;
function questCompleted() {
if (args.length == 1) {
completed = args[0];
}
if (completed) {
return "&8[&l&a&lCOMPLETED&8]";
} else {
return "&8[&l&eACTIVE&8]";
}
}
questCompleted();
However, when I pass the argument false, it still returns "[COMPLETED]". What am I doing wrong? Using if (completed == "true") fixes it, but that doesn't seem very correct.
looking at other javascript code, it looks like you always have to use condition === true
var completed = false;
function questCompleted() {
if (args.length == 1) {
completed = args[0];
}
return completed == true : "&8[&l&a&lCOMPLETED&8]" ? "&8[&l&eACTIVE&8]"
}
questCompleted();```
try this
wait nvm
Whats the valid ECMAScript to use for the javascript expansion?
I know what the problem is ...
when you get the argument you get a string
not an actual boolean
javascript seems so weird lmao
so here ```
var completed = "false";
function questCompleted() {
if (args.length == 1) {
completed = args[0];
}
return completed == "true" : "&8[&l&a&lCOMPLETED&8]" ? "&8[&l&eACTIVE&8]";
}
questCompleted();``` @night owl
It is.
duck typing 🙄
where the fuck are the variable types
there aren't
why
its just var and with newer versions val
can i use template strings with? Or what ECMA do i need to stick to?
I mean I don't have any power over that and I don't mind it either xD so idk
if I know that I want a boolean, I'd rather my program crash and burn if it's getting something else instead of just saying 🙂
i feel so ignored 😭
I have no idea what ECMAScript is so ... xD
But you know javasript?
Ah, so an argument within a javascript placeholder is always a string?
Can i use arrow functions? template strings?
yes Aiko
it uses nashorn engine i believe, so whatever that can do ig
@night owl You can parse it though.
yeah you could parse it but it is always going in as a string
The Nashorn engine is an implementation of the ECMAScript Edition 5.1 Language Specification. It also implements many new features introduced in ECMAScript 6 including template strings; let, const, and block scope; iterators and for..of loops; Map, Set, WeakMap, and WeakSet data types; symbols; and binary and octal literals.
Great. Thanks Kaliber.
👍
i know which javascript features i can use now.
Ty guys 😄
Anyone got tips for https get calls?
function httpGet(theUrl){
var con = new java.net.URL(theUrl).openConnection();
con.requestMethod = "GET";
return asResponse(con);
}
Would this work?
You mean player_ping?
Anyone know how I could turn two placeholders into a percentage from someone else's plugin? I have one placeholder which counts the regions discovered, and another which is the total regions there are.
Ah thanks, giving it a go but I always get back the error 'The provided value was invalid! Reason: Too many numbers or variables.
even just adding them together i get this error
%math_{rpgregions_region}+{rpgregions_discovered_count}[precision:0]%
wait
lol
using the wrong placeholders -.-
Got it working, thanks!
Anyone know why this isnt working:
Using maths then using it within progress bar
comes out as http://prntscr.com/ug2ttt
Bar is not going up basically.
how and where do you use it?
@mint fable Can i have some help pls
@subtle marsh,
Please respect the rules, be patient and don't ping staff members!
does anyone know how i can turn this solution from stackoverflow into a papi placeholder?
function nFormatter(num, digits) {
var si = [
{ value: 1, symbol: "" },
{ value: 1E3, symbol: "k" },
{ value: 1E6, symbol: "M" },
{ value: 1E9, symbol: "G" },
{ value: 1E12, symbol: "T" },
{ value: 1E15, symbol: "P" },
{ value: 1E18, symbol: "E" }
];
var rx = /.0+$|(.[0-9]*[1-9])0+$/;
var i;
for (i = si.length - 1; i > 0; i--) {
if (num >= si[i].value) {
break;
}
}
return (num / si[i].value).toFixed(digits).replace(rx, "$1") + si[i].symbol;
}
i'm not familiar with javascript
function nFormatter()
{
var num = args[0];
var digits = args[1];
The rest of your code without the function part
}
nFormatter();
Should work I guess
isnt there a formatter expansion or smth?
function nFormatter()
{
var num = args[0];
var digits = args[1];
var si = [
{ value: 1, symbol: "" },
{ value: 1E3, symbol: "k" },
{ value: 1E6, symbol: "M" },
{ value: 1E9, symbol: "G" },
{ value: 1E12, symbol: "T" },
{ value: 1E15, symbol: "P" },
{ value: 1E18, symbol: "E" }
];
var rx = /.0+$|(.[0-9]*[1-9])0+$/;
var i;
for (i = si.length - 1; i > 0; i--) {
if (num >= si[i].value) {
break;
}
}
return (num / si[i].value).toFixed(digits).replace(rx, "$1") + si[i].symbol;
}
nFormatter();
is that right?
is that doing the same job?
but then which one should i use?
Any solution to server countdown improperly parsing hours?
%server_countdown_hh:mm-dd.MM.yyyy_12:00-17.09.2020%
What does %server_time_HH mm ss% print?
Hey, I'm having some trouble with the holding_lore.js script thats shared as an example with the javascript expansion. It seems to be trying to parse the placeholder from all players on the server at once when called into a scoreboard, but other placeholders are working fine. Any chance someone might be able to help out with this? I'm extremely novice when it comes to js.
how do i get a placeholder, specifically the %player_ping% placeholder to update faster?
that's up to the plugin that parse the placeholder @quartz condor
Hey Waffle, when do you think you guys will be adding the Skript Expansion fix that Death Realms made? I get that its probably not worth whatever work it is to just upload one expansion but I'm curious.
@cloud shard are you talking about this https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#held-item-lore ?
wdym?
@vivid sparrow yupp yupp. for some reason when calling it in our kiteboard, its seems like its trying to display as if im parsing it for all players at the same time, causing the results to flicker a lot
Parse them in chat
Can i ping one of the support members if they're the one that made the extension im having trouble with
Just ask the question and someone else might possibly know the answer
https://gyazo.com/915bba7954a23b91f50ca80540801d22
Well, i guess i'll just paste it here still. the Held Item Lore community script found at https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#held-item-lore seems to bugging out a fair bit. it will randomly have script errors, and if more than one person is on the server, it will spaz out and start trying to display the results for both players at the same time. aBooDyy posted it, and im a novice at js, so i have no idea where it could be going wrong
[23:01:27 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[23:01:27 ERROR]: [PlaceholderAPI] Failed to load placeholder expansion from class: com.extendedclip.papi.expansion.player.PlayerExpansion
Could anyone help?
Im not sure why the PlayerExpansion will not load
Make sure you have the latest plaecholderapi and player expansion
Yeah ok
Do I always need to get the newest PAPI?
I am developing a plugin and I prefer to not continuously update my maven
Good practice to be using the latest
I guess, I just dont know how often it updates lol
Not very often
Mk
You can also just set the version to LATEST iirc.
Any idea when you guys could post the new Skript Expansion to the Ecloud? I need it really bad 🥺
Here is the link from DeathRealms, possibly ping me with any response, I'm heading to bed. https://discordapp.com/channels/164280494874165248/695431668944732270/750601356221612122
if you have the file, why don't you just put it into your Expansions folder in your PlaceholderAPI folder?
this way you don't need to wait for it to be on the ecloud
WARN | rankup is attempting to unregister placeholders through the PlaceholderAPI class which is no longer supported!
Is this really no longer supporter? Rankup3 plugin
tell the author to update their papi hook
Im not sure if this is caused by PlaceholderAPI, but I am also using TitleManager and my Vault thingy always turns white when its suppose to be green https://prnt.sc/ugjmti
@vocal imp show your config
For TitleManager?
Yeah
Hmm, that looks normal
I wonder if the Vault expansion is somehow adding a color reset
Both Vault, TitleManager and PAPI are updated to the latest release that supports 1.8
This, https://prnt.sc/ugjuog ?
Not too sure if this is a Towny or PAPI issue, this happens with every plugin when shutdown happens:
hi guys, is there a placeholder indicating live players? or which are in a certain gamemode?
@turbid tide Unknown expansion.
it shows players based on many things. Doesn't show them for a certain gamemode but probably can be added
I'll msg the dev of the expansion and ask him to maybe add it
as in a list of online players?
@turbid tide the number of alive players! in survival gamemode
well no that's not a thing
ah
that's what I'm saying. you can list all online players but not all players in a gamemode
Wasn't there a list expansion?
that's what I'm saying. you can list all online players but not all players in a gamemode
@turbid tide ok!
Aren't u the author 
Ah
but he's making it a plugin ...
@junior musk 
👋
OS it and I'll add shit if he's not updating it anymore
already os and I will update it

I've added it
@meager flume ^
here's the jar meanwhile I update it on the eCloud
put it in your Expansions folder in your PlaceholderAPI folder
actually I may have fucked up something x)
should have tested before
oh right, I didn't make it allow you to use it :D
this should work
The dude seriously left lmao
bruh
@vocal imp yeah I meant that command, try executing it from your console to see if it adds any color code things
if you have the file, why don't you just put it into your Expansions folder in your PlaceholderAPI folder?
Tanguygab
Because I can't just upload a jar on minehut.
ah, then rip
Ditto
Can you edit config files on Minehut?
If so, just use the JavaScript expansion in PlaceholderAPI and use a custom JavaScript placeholder to spawn a reverse shell
Then you have full control and you can upload any file you want

This one should work fine: https://gist.github.com/frohoff/8e7c2bf3737032a25051
Use /bin/bash instead of cmd.exe
I think they blocked js expansion 🤣 @steep thorn
Makes sense
I tried this trick on another free MC host thingy and they also disabled it afterwards
haha
Lol yeah its blocked on there
2 ways they were greifed included those
So once with the expansion and another with unmodified skript addons
I think Skelett by default allows file download and upload, so they made a fork.
Are there any expansions that format things so it displays 2k 4M 8T etc?
Formatter does commas which is based on my locale but that doesn't have support for the number abbreviations
who uses minehut anyways
I guess
Also I cant get players for the life of me, I say the same stuff every time lol.
Are there any expansions that format things so it displays 2k 4M 8T etc?
Formatter does commas which is based on my locale but that doesn't have support for the number abbreviations
Can't you use AWS free tier if you want a small free MC server?
I don't care about costs, I already have 2 test servers. The issues is that I can't get any players.
wait why cant I import papi
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Go to #development and shown mvn install output
im doing exaclty that
what version did u put in the dependencies?
i put 2.10.9
<repositories>
<repository>
<id>spigotmc-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.10.9</version>
<scope>provided</scope>
</dependency>
ok
now it works
restarted my ide
so I have a bossbar plugin
it gets its messages from a config
And don't paste configs like that in the chat please
yeah use a pasting service like https://paste.helpch.at
Hey guys, I have noticed the expansion Vault is wasting CPU cycles on an empty server or if theres 10 players online. Some servers which has 10K of playerdata, or any which the expansion Vault looks for, wastes CPU ressources.
I did monitor 2 servers with the expansion and some are still at 8-10% w/o players on the system (on a 4C/8T, maxing a core would be 12%) and now removed expansion they're below 1% with no players, myself idling is below 3% so expecting 10 players doing basic stuff, below 8-10% (if no heavy tasks are made)
PS: not sure if its in right channel
Lol
@hazy yacht that might be because of the baltop task that it is running
It's implemented in a very inefficient way
Honestly surprised not more people have had issues with this
The way it currently works is that it requests the balance for each offline player separately
So if your economy plugin uses MySQL, that could mean thousands of sequential queries
I checked the code and there's a way to disable it, check 'baltop.enabled' in the settings
@balmy marten Okay, so how can I request an eCloud extension verification?
@graceful surge,
Please respect the rules, be patient and don't ping staff members!
Is your one the themeparks one?
Jup
Did you fix the issues I pointed out?
Yes, author and version are changed
Alright i'll give it a check in a sec
👍
@graceful surge Checked and verified
, can take up to two hours to actually go live in the ecloud
Thanks 🙂
the skript expansion on the ecloud doesnt install for me
How would I go about working out the number of weeks since a particular date/time with a placeholder? e.g. if I set 01/09/20 (dd/mm/yy), I would get a result of 1 week as of today (14/09/20), and that would be 2 weeks tomorrow on 15/09/20 (so basically DaysBetween DIV 7)
Thanks 🙂
Math
Will that be able to factor in the month?
Ideally I'm looking for something like %server_countdown_<SimpleDateFormat>_<time>% which I assume counts down to a date/time, but counting from a date/time instead. Does that exist?
o
no it does not exist
I did make a javascript once that counted time since a specific date tho. but can't remember what I've done with it
hmm alright thanks
but yeah probably the best way to do it is javascript or math
https://discordapp.com/channels/164280494874165248/573429521554866178/754963610207387669 Sorry for late answer, will check that out! I'm using this placeholder %vault_eco_player_balance% in the tablist (BungeeTabListPlus) which on the server is the player sees his own balance, this should only query the online player, correct?
sorry how can I use PAPI in my plugin? (Whist answering keep in mind I don't use Maven, is there a precompiled library?)
the library its the plugin itself.
thanks
%bungee_total%
@austere hawk Unknown expansion.
%player_ping%
%math_{rankup_money}/100[precision:0]%
How do i execute /eco give %player_name% %math_{rankup_money}/100[precision:0]%
i want to make a voucher that runs a command that can run the above command with placeholders parsed
how do i do that
using vouchers by badbones btw
well you need to make sure that the vaucher plugin accepts placeholders
that's all you need basically
if it does not support placeholders then I'm afraid you can't do it
handled in gabys discord
so im having issue with a javascript file. i have this:
var highestrank = "%luckperms_lowest_group_by_weight%";
var ranks = ["&bOwner", "owner", "Owner", "ADMIN", "MOD", "HELPER", "SUB", "DONOR"]
function Run() {
if(ranks.indexOf(highestrank) >= 0) {
return highestrank;
} else {
return "";
}
}
Run();
its meant to take the most important rank that a player has, and if the rank is in the list of ranks defined at the top, then return the rank name, otherwise return an empty string
however, it always returns an empty string
ive even validated that %luckperms_lowest_group_by_weight% is what i expect it to be by returning that value instead of an empty string
i also tried debugging by including the color codes that are used the displayname as well as the rank name and the capitalised rank name, but to no avail
it only ever returns a blank string and i cant figure out why
I'm having placeholder api problems. It completely disables for me at times and requires a server restart. https://imgur.com/gallery/g9mT6zX
@desert slate Are there any errors in console when it disables
Nothing directly from placeholderAPI. There are a lot of errors from other plugins giving errors from placeholders not working correctly.
hello i need help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
Hello friends I have a problem and I'm not sure what's causing it
I have 3 expansions: animations, luckperms, and player
I have a custom tablist that did not actually mention any expansions and I had to figure it out by myself, anyway
The top part of the tablist uses the animation expansion
however, it breaks after a few seconds
it works and then it doesn't and I'm very confused
also when I try to see which expansions are loaded it only loads luckperms and player, and animations does not show up in the list
no problem
Hi I am the animations expansion developer
@heady falcon u sound like tech support
is this what they teach u in enterprise solutions 
☹️
Hi Kaliber
Yes we understand that the client would like the whole solution completed and implemented by 2pm this afternoon, however we have only just finished setting up spring boot
@heady falcon it happened again lol
I didn't change anything
PAPI loads lp and player but not animations, even though it says animations is active
Could someone else maybe help me with my issue?
https://pastebin.com/YsFGxzAK why do i get this, 2.10.9, 1.16.3 tab by neznamy
@austere hawk,
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.
pretty sure %server_uptime% is broken. not 100% sure tho. also no idea when its getting fixed or how to fix it
okay thanks
do you know any alternatives?
or other ways to get that placeholder
Make sure to update the Server expansion
%server_uptime% was fixed
@austere hawk
/papi ecloud download server
/papi reload
/tab reload
right?
oh i forgot to update tab
maybe thats the issue
okay so i updated tab
i did /papi ecloud update server
and it started working
but after /tab reload
it just disappears
maybe its a tab issue
ok nevermind its working nopw
thanks
good morning
the color of the city in the tab does not change, the author of the tab said to contact the placeholder developers
1:53 am. I guess you can call it morning
верно
I have such a greeting so to speak
so why doesn't the color change? plugin towny
but if you do /papi parse me %placeholder%TEXT it works?
well not %placeholder%... you're suppose to test the placeholder that doesn't work
the placeholder for color.
you are suppose to test it using /papi parse me %placeholderthatdoesn'twork%
Well, I prescribed it and what's next. it doesn't work anyway
I write / papi parse me &9%townyadvanced_town%
and it writes to me in a different color
@turbid tide
well yeah does it write in the color you want it to write?
no need to double ping ... I'm a little busy rn.

@idle coral @sharp jay help me
@hasty sedge,
Please respect the rules, be patient and don't ping staff members!
no
You dont need to ping
You were clearly told not to ping
wait for someone instead of being impatient
What is the placeholder for guilds prefix
Could someone help me please? PAPI refuses to register Animations
So after updating PAPI, almost every capital letter has become lowercase....any idea why that could be? (Please ping me with your response)
I actually just figured it out. It was because I had the pre-1.13 version of ChatInjector installed. Updating fixed it.
hello
i needed help with bedwars1058 placeholders
papi is installed but its not working
good morning
the color of the city in the tab does not change, the author of the tab said to contact the placeholder developers
nicesupport
Dude. We are not the developer of the tonwy placeholder...
we are not even the developers of PAPI
we are just helping people out with problems that we have an answer for.
I don't have an answer so you'll have to wait for someone that does.
Just because we're online and have "staff" role doesn't mean we know everyting. I'm not even a developer.
what has towny to do with it, the problem is in the placeholder
yeah...
the placeholder is by towny
but we didn't make that placeholder
the placeholder was made by another developer
PAPI is just a tool
that plugin developers can use
to make their plugin better by adding placeholders
do you rly think that the 3-4 developers that made PAPI, made all those over 15k+ placeholders?
no they didn't because that would be insane.
and stupid at the same time.
I'm sorry for all this ^ but people don't understand how PAPI works just come here and blame everything on clip
nevertheless, you could answer me yesterday, then you don't know how to solve this problem and to wait for an answer from another support
which is not fun
the developer tab told me that the problem is in your plugin, I wanted to make a suffix near the nickname so that the city could be seen, he saw it but the default color
I'm a helper on TAB's discord and I can assure you it's not a problem with PAPI
no. the problem is in the Towny expansion
it's actually not a problem at all
it's just a feature
Towny's dev added the color in the placeholder
and made the placeholder through PlaceholderAPI
ok, should I contact the towny developer?
okay
or at least allow you to change it via maybe a config
@mossy birch Are you sure you dont get a stack trace at all?
Or does it happen when you reload papi or reload the server?
I could show you if i can pm you
both of these dumps were made without restarting the server
as you can see in the first one animations is not registered while it is in the expansions dir, and in the second one it is loaded
it worked for a few hours and broke again
does statistic papi got problem? player has 1 d 25hour or 1d 50h... for the %statistic_time_played%
But after 72 hour the play time back to normal .-.
https://cdn.discordapp.com/attachments/737931806548033540/755813120114425866/unknown.png
Hi, is there any way I could take over ownership of an expansion?
If the dev of one of them gives you access. Or if its open source. But then you won't be the owner of it just of the copy of it
Okay, so if they won't give me access, then I would upload my own expansion for my plugin?
well if its your own plugin and someone made an expansion for it you can make your own of course.
Alright, so I can upload an expansion with a name that is already in-use?
well I mean what plugin you're talking about?
SpeedBuilders
also you could just make the expansion directly into your plugin
no need for ecloud or anything like that
Okay, maybe the eCloud version could get removed though eventually since it's currently broken and some may confusingly try to use that one?
but I bet if you talk to someone like WaffleKing, FunnyCube or PiggyPiglet they'll understand it and take down the old one
Alright, thank you
hmm we can ping him and wait for him to wake up
@balmy marten help this man out ^ He wants the SpeedBuilders expansion taken down from the ecloud since he didn't make it (the SpeedBuilders plugin is his) and the owner of the expansion doesn't update it or gives access to PlayFriik to update it.
Hopefully that'll do, thank you again 👍
no placeholders work for me
download Player and Server
I try via /broadcast with ChatInjector and nothing
only work {TIME} {DATE} {USERNAME}
from EssentialsX
@idle coral ?
@frozen cargo,
Please respect the rules, be patient and don't ping staff members!
ok
@mossy birch Did you /reload (not restart) the server at all
Got an issue with what seems like essentials. For some reason Papi is creating a warning, along with a lot of stuff I don't understand 😅 It's doing this about twice per minute and flooding my console.
https://pastebin.com/zAZiS1Zf
Probs need to update something
@heady falcon to be honest with you I didn't know you can reload the entire server and not just a specific plugin, so no
Can anyone tell me? I have no placeholders working from papi ecloud
displayed in green that everything is installed but not working
Can I get some help?
does statistic papi got problem?
player has 1 d 25hour or 1d 50h... for the %statistic_time_played%
https://cdn.discordapp.com/attachments/737931806548033540/755813120114425866/unknown.png
use the papi dev builds
http://ci.extendedclip.com
on mobile so idk the right url, im sure u can find it
I have to reinstall papi into my server every time I restart it
It just stops working after every restart
If I type in /papi nothing happens
good discord channel and high quality support...
Have you heard of a litle concept, called volluntary work. We do this out of our own free will. Just because you're around and free, doesn't mean we are. You'll be helped when and if someone has time and knows the solution.
?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.
@austere hawk ^
same for you danecheck
also what placeholders
and what do they return?
send the logs
ok
is there a site where I can format my text for Animations (similar to a website that allows you to format color text for minecraft)
don't think so.
?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
@austere hawk,
DeluxeMenus requires you to have PlaceholderAPI installed in order for the plugin to function.
To fix, install PlaceholderAPI and restart the server.
but I have it
Ok
holly fucking shit
what
I just took a look at the entire log not just PAPI part ... all your plugins get disabled
bcz of that error
Thats what happened
yeah dude your server is out of space
oh
not a papi issue i don't think
I didn't rly took a close look at the error xD
I mean the server seems to be inside his pc
its not
oh is it not.
It's on Sparkedhost and it's not mine I'm just a Dev
I mean can you check the panel and see what your disk space is at?
also sparkedhost 🤮
ok so I've had this problem for 3 days and I'm going out of my mind
Animations stops working and starts working completely randomly
no @austere hawk
oh
So the only way to have it fixed is if I had a backup?
yeah
What if I didn't
then you're screwed
Oh
guaranteed your worlds are corrupted too
What if I remove placeholderapi and then reinstall all the plugins
?
your worlds will be corrupted still, and also it has nothing to do with papi
well I mean its not placeholderapi's fault
Oh
How
have you looked at the startup log?
because your server ran out of storage
oh
you are at 100% capacity
How do u know
and I assume things started to overwrite one another?
because i've seen your logs? lol
yes @turbid tide
you can check the storage on your host, i guarantee you're at 100%
That cant be the problem
Because:
that is absolutely the problem because all of your zip headers have been overwritten, meaning either
a. you have a pirated plugin with a backdoor that has corrupted your server or
b. that infinite disk limit is a lie and you have to contact support when you want more
it's very extremely rare to be at a perfect 550 MB
yeah. I had the same problem with SH but with ram not storage
it says when you buy the service that they limit it and you can go higher if you need more.
Oh
I'm very confused, is this the correct syntax?
%animation_<flash>Flashing text</flash>%
ah that parsed but the text box is empty
I'm so tired of this
Animation is loaded but is not working for me
my friend who is also logged in has the animated tablist working
wait how are you parsing it?
bcz you know what flash does right?
it flashes the text in and out of existence
so if you're parsing it just once it may return just an empty line of text
or it may return the text
so i should try it in game and not papi parse?
if you don't parse it someowhere where it gets refreshed
as in, in a tablist for example not through a command?
Does it work with /papi parse after it breaks?
Niall dw. He used flash tag and when he parsed it showed him the part of the flash when it was vanished
after changing it to another thing
it now works for both of us
this is only the second issue the first issue was that papi would unregister animations
but im using the newest dev build for papi rn and it seems like it doesn't do that anymore
so I guess my days of spamming your discord are done 😄
What plugin you using
For what?
Animationa