#placeholder-api
150650 messages · Page 62 of 151
okay 😄
could you give an example, i tried /papi parse me %server_countdown_26.8.2021_26.8.2021% and it returned 0
ugh. first option is the format. not the date
/papi parse me %server_countdown_dd/MM/yyyy_26.08.2021%
ah
that exact command you sent returns invalid date
%server_countdown_dd.MM.yyyy_26.08.2021%
ooh
ummm
anyone know why
Evaluating javascript is taking quite a while in timing report?
Hey, I'm getting that error. https://sourceb.in/WFemsFCWBJ How can I solve this?
I reported this error in LuckPerms server but they said this is problem of PlaceholderAPI.
?papi-builds
sounds not very possible from javascript
actually
hmm
very possible actually
you can make the console execute commands from javascript I believe.
so you make the javascript execute the lp commands
var server = BukkitServer;
function grantPermission() {
server.dispatchCommand(server.getConsoleSender(), "COMMAND WITHOUT SLASH HERE");
}
grantPermission();```
var 
still uses nashorn by default
nashorn poopy
ajLeaderboards plugin can make numeric placeholder leaderboards, but you're gonna need the placeholder of ore count you want
how can I fix this error
[22:02:22 WARN]: [PlaceholderAPI] [Math] Invalid Placeholder detected!
[22:02:22 WARN]: [PlaceholderAPI] [Math] Placeholder: %math_1_{deluxemenus_meta_price_DOUBLE_1}%
[22:02:22 WARN]: [PlaceholderAPI] [Math] Cause: '{deluxemenus_meta_price_DOUBLE_1}' is not a valid Math-Expression.
It happens to me when I disconnect, like I have a GUI in deluxe menus that uses metas, and I always remove em
yes I know. believe me. yugi tried to get another one a lot but couldn't. he got nashorn to work and you can switch to quick js from the config but that doesn't work for everyone. so when I help others I have to just use what nashorn gives
no.
well it seems to me like it just doesn't parse your deluxemenus placeholder
yeah something like that but I don't get why, maybe I am mising something, maybe I forgot to remove it or something
oh I know why
Getting this Javascript-Expansion error when someone disconnects. I don't know if this issue with extension or there is a mistake in my code.
Error: https://mclo.gs/UdiGEoj
JS code: https://mclo.gs/sNClfyx
Is it a bug or not?
Using the enchantments option of the checkitem placeholder on enchanted books with the said enchants would say no
How to ask for a review of my expansion?
review? like to get it verified?
yeah
what's the name of it?
str
will give it a look when I've got a bit of free time.
ok, tks
alright @spice canopy. verified it.
tks. by the way, some functions seem to be the same as String... : (
yeah
you might have to put the placeholder inside ""
ye
also
a return
you don't have a return
no need for break;
function getDisplayName() {
switch ("%eazynick_rank%") {
case "default":
return "&8Coal&f";
case "iron":
return "&fIron&f";
case "gold":
return "&eGold&f";
case "amethyst":
return "&dAmethyst&f";
case "diamond":
return "&bDiamond&f";
default:
return "Error";
}
}
getDisplayName();```
yes
update your server expansion
I am trying to make a math placeholder and it's not showing
%math_2_{deluxemenus_meta_defaultprice_DOUBLE_1}/{deluxemenus_meta_defaultAmount_INTEGER_1}*{checkitem_amount_mat:{deluxemenus_meta_item_STRING_AIR}}%
and it's because {checkitem_amount_mat:{deluxemenus_meta_item_STRING_AIR}}%
yes. its bcz you can't have placeholder in placeholder in placeholder
yeah I found that, but I need to find a way somehow
Hi!
hello
I would like to combine parseother with math but it seems it wont work.
%parseother_{{cp-chosenplayer}}_{math_{vault_eco_balance_fixed}+{lands_land_tax}+{lands_land_balance}}%'
you can't have placeholder inside placeholders
oh
well. you can. but you can't have placeholder inside placeholder inside placeholder
which is what you have
anyway to make it?
javascript expansion maybe
Im sorry is that a expansion?
yes
^^^
function calculate() {
return (parseInt("%vault_eco_balance_fixed%") + parseInt("%lands_land_tax%") + parseInt("%lands_land_balance%")).toFixed(0);
}
calculate();``` and then you call `%parseother_{{cp-chosenplayer}}_{javascript_<identifier>}%`
Ohhh
how do i import this
I figured it out
But theres nothing displaying
Yeah i figured it out
But nothing displaying
Its empty
can you show me your javascript_placeholders.yml file please?
no problem 👍
I tried this but it returns 0, and I have items in my inventory, for example, I tried %javascript_name_GRASS_BLOCK% and it returns 0, so then I tried the real placeholder %checkitem_amount_mat:GRASS_BLOCK% and it works, I tried debugging and it returns %checkitem_amount_mat:GRASS_BLOCK%, I am confused
function getAmount() {
return "%checkitem_amount_mat:" + args[0] + "%"
}
getAmount()
using quick js
pretty sure that's bcz it tries to parse the checkitem part of the placeholder before it adds the argument.
function getAmount() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + "checkitem_amount_mat:" + args[0] + "%");
}
getAmount();```
try this
instead
I tried that but I am getting the classic error
Caused by: com.koushikdutta.quack.QuackException: SyntaxError: expecting ';'
still the same error, damn this is confusing
Not so long ago something like this worked for me "%RainbowColor_%cp-player-name%%"
How to achieve it now?
@vast anchor In this case, it works, thanks a lot
I get an error when reloading Papi
[20:37:52 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[PlaceholderAPI-2.10.10 (1).jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more
Caused by: java.lang.ClassNotFoundException: net.ess3.api.IEssentials
at java.net.URLClassLoader.findClass(URLClassLoader.java:433) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:586) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
at```
java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[PlaceholderAPI-2.10.10 (1).jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]
... 6 more
you are missing essentialsx? or maybe you have to update to the latest dev build if you do have essx installed
I don't use essentials, i use Cmi
oh omg, my bad, i'm so stupid xd
hello
any ideas on why my expansion doesn't work?
well. once again... you're shading in papi and spigot
they shouldn't come with the expansion !!
ok
i followed the last part of this tutorial
in how to build to the plugin
how do i build it without adding spigot and papi?
should i screen-share the process I took to build the program?
ugh. I haven't used artifacts in over a year now
well I Usually use gradle
sorry im super new so im just following the first thing that explains something on the interenet
you use intellij to code
and then gradel to build the project?
can you show me a screenshot of how it looks when you go under artifacts?
@shrewd stream
var material = args[0];
var placeholder = "checkitem_amount_mat:" + material;
function getAmount() {
return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");
}
getAmount();
I don't get why this code is not working,
Caused by: com.koushikdutta.quack.QuackException: SyntaxError: expecting ';'
can you show me the full error in a paste bin please?
ohh @shrewd stream go to Modules
and show me a screenshot of that
and please upload it to imgur to send it here
going from DMs to here and back is a bit disorienting. thank you
sure
ok. you see where it says Compile v ?
yep
click that and tell me the available options
compile, test, runtime, provided
ok. select provided for both the options, apply and then build the jar
seems like it can't find PlaceholderAPI anymore. they might've changed the way it works now
send me the jar as well
hmmm
👍
var material = args[0];
var placeholder = "checkitem_amount_mat:" + material;
function getAmount() {
return "{" + placeholder + "}");
}
getAmount();``` @untold adder try this
The thing doesn't like having a whole lotta programs open
it's happening this again
nah, just 0
/jsexpansion parse me %javascript_sellall_GRASS_BLOCKS%
DAMN
blocks
it's working
thanks again blitz
alright. 👍 you're welcome
@thorn thunder btw. I see that the js expansion still puts a default binding called PlaceholderAPI for PlaceholderAPI.class. But seems like with QuickJS at least it can't access the set placeholders anymore? It used to be PlaceholderAPI.static.setPlaceholders() but that seems to return null now. the PlaceholderAPI.static part.
welp I guess I should test PlaceholderAPI.setPlaceholders
doesn't seem like the download works. just dm me the jar.
done done
welp. I guess provided did not work xD
doesn't look like it :/
it might be importnatnt to note that i was originally using eclipse
but then moved to intelij cause i didn't like eclipse
but havn't got it working since then
and send the jar in DMs after you compiled it
cool
oh yeah. no more need for static. that's cool
whoa
setting papi and spigot api to runtime spit out alot of errors
still want me to send it thru?
java: package me.clip.placeholderapi.expansion does not exist when building with papi-api and spigot-api set to runtime
@turbid tide
interesting
dkim u know how artifacts and modules work?
nope
wait a minute
@shrewd stream
set them both to compile
and then
on the left
there's a box
uncheck both boxes
and then try and compile
nope. doesn't look right
welp. I really need to get some sleep. will have to check this tomorrow
well today but later. its 3:28 am
damn ok
better get some sleep then aha
hey thanks so much for your help, 🙂 i really appreciate it
how to make a head menu?
hello is there a placeholder we can get world tick time.
hi
what is the placeholder for ping for each players
%player_ping% is not working for me
Did you do /papi ecloud download Player then /papi reload
can some one help me
how to add money balance in title manager config
i use =
essentialsx
titlemanager
PlaceholderAPI
https://paste.helpch.at/ibimivewom.sql happens this on 1.8, papi dump - https://paste.helpch.at/izigaxogiw
like the new placeholder version doesn't like 1.8 or java 8?
what???
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#Vault you can use Vault
you need java 11
wait let me double check that first
yes. @untold adderyour caffeine expansion requires java 11. doesn't support anything lower.
hmm ok
I found that caffeine expansion, is it from Math expansion https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#math
I was wondering what the heck does caffeine expansion comes from
I have to use a lower version
of Math
oh. yeah. makes sense xD. I guess caffeine is just a library the expansion uses
and works!
or... ya know... update java? xD
You know the pain when you make something for spigot/mc-market you have to make a compability for dinosaurs
xD
I mean. have you tested it?
then please do...
ugh. idk. not sure what exactly you're trying to do here.
yes. with java you could
with javascript. idk
it is more of a no than yes
you would have to listen for world changes somehow. and you can't listen to events in javascript. so no probably not.
it will only check when you parse it
Is there any chance to put a new plugin to the placeholders?
Which is not on the list
I can manually put this in the script or not?
is there papi extension that can round numbers?
anyone can update the wiki. there's even a guide on how to do it.
maybe the math expansion?
can you show me an example please?
%math_0_{placeholder_here}%
%player_level% or %player_levels%
I believe
oh
that's not a thing
you can't do that
xp resets on death
well
let me explain
yes. 1 minute
%player_exp% - exp points towards the next level (in percentage)
%player_level% - current exp levels
%player_exp_to_level% - required exp points to level up
%player_total_exp% - total exp points the player has. probably since last respawn
what does the debug setting do?
to be honest with you I don't even think that's used in PAPI
I think expansions might be using it
lmao
yeah @austere hawk. went to github1s and searched for debug mode in all files and its literally never used xD
So I am trying to use the Vault placeholders for %vault_eco_top_player_#% but regardless of someones balance it never says a name or anything
Parsing placeholders such as /papi parse me %vault_eco_top_player_1% shows nothing
Yeah I do have quite a bit scripts
So its probably infeasible to send them all, but nothing is too complicated to the point that it will cause lag
hm
All of them are just <10 lines of ifs and string manipulations
mostly its stuff like this (just as an example)
var hasTown = "%townyadvanced_has_town%";
var hasNation = "%townyadvanced_has_nation%"
function hasTowny() {
if (hasNation === "true"){
return ":nation:";
} else if (hasTown === "true"){
return ":town:";
} else {
return "&8[&fNone&8]"
}
}
hasTowny();
And we are currently on the most recent version, we used to be running 2.10.9 and never noticed the problem. But now even when we switch back to 2.10.9 the problem is still there
And we haven't changed any JS since a while ago, so it shouldn't be the scripts themselves
hmmm
sorry I don't know 😕 maybe someone else will
might be related to the new javascript engine thing (?) ever since 1.17 came out
and the java 16 change
iirc they still use nashorn
and we switch from 11 to 16 for 1.17
Yeah... otherwise it wouldn't work, not sure whether the shading has anything to do with it
But it is creating quite a significant performance drag on our server, I am curious to whether other server admins have experienced it
We are def not the only server running 1.17 with PAPI XDD
hey
how can I get placeholderAPI and MvDWPlaceholders to make friends
cuz rn they hate each other
that's because these were disabled in version like 1.5.2 or something like that. they're being moved to the essentials expansion. if you still want to access them thru the vault expansion you need to download the expansion version 1.5.1 /papi ecloud download vault 1.5.1 then /papi reload, then go to plugins/PlaceholderAPI/config.yml and enable the baltop option.
what does that mean? xD
like they will be moved or they already are?
well. there is currently a dev build available. its pinned in this channel if you want to test it. but you will require essentialsx version 2.19 to be installed (so dev builds of essentialsx)
ah, just going to wait then. ty
well. the expansion will still require 2.19 in the future. and from the tests we've done it works. so unless you really really don't like dev builds for some reason, can't find any other reason to not update
I would just rather wait for the official 2.19 update to be released just in case of glitches on production
It was something I wanted for fun anyway so it won't bother me
well. I can tell you for certain that essx team only updates builds after they've been tested a lot. so they're safe. as a matter of fact most people use the builds instead of the spigot release.
but if you don't need it
oh alright
there's no reason to update I guess
ty
just so you know tho
I had mvdw
then everything wasa chilling except vote party
then I installed placeholderAPI
and boom
hatred
have you checked the startup log? to see if there's any errors/warnings?
How do i get my scoreboard api to look like the one on testplugins.com for voteparty?
Can u send a screenshot of how it looks?
dmd you
Placeholders. Pretty sure they're listed on the wiki
but what about with the little bars in the bottom?
That uses the progress bar expansion from placeholder api
Okay thanks
I don't think that would be possible? Not sure how you would track the text that "goes over it"
But how would you know if a character overlaps another?
blitz y u still awake 👀 👀
no u can't. you can as Player or OfflinePlayer from the papi parse command.
"%placeholder%" == ""``` ?
that means you were using it wrong.
well. first of all as dkim said (before deleting the message...) null is not "", and "%placeholder%" == "" should work as long as you're not doing something else wrong
Who can help me that ecloud off vault not working?
Hi, I'm having this problem, when I try to enable a plugin with placeholderapi it tells me "The eCloud manager is already enabled" but it doesn't enable
idk why but javascript is working kinda strange Like I need the BukkitPlayer and it just doesn't work, I tried with your scripts but is not working
var player = BukkitPlayer;
function playerNameHealth() {
var name = player.getDisplayName();
var health = player.getHealth();
return name + " has " + health + " health!";
}
playerNameHealth();
Caused by: com.koushikdutta.quack.QuackException: SyntaxError: unexpected character
at com.koushikdutta.quack.QuackContext.evaluate(Native Method) ~[?:?]
at com.koushikdutta.quack.QuackContext.evaluate(QuackContext.java:600) ~[?:?]
at com.koushikdutta.quack.QuackContext.evaluate(QuackContext.java:615) ~[?:?]
at com.koushikdutta.quack.QuackContext.evaluate(QuackContext.java:653) ~[?:?]
at com.extendedclip.papi.expansion.javascript.evaluator.QuickJsScriptEvaluator.execute(QuickJsScriptEvaluator.java:23) ~[?:?]
... 22 more
Hi, i have a question. I use PlaceHolderAPI - can i overwrite the Boolean (true & false to something else)? If i can, where?
Hey guys I cant find top jobs plugin placeholders
@remote verge umm.. isn't "PlayerReport" the plugin you should be questioning?
yes
Hello good, I have a problem and I do not know what it is. I have the latest plugin updates and I don't know what happens, daddy throws an error. It is the only error on my server I would appreciate the help ...
If so, try updating it to 3.4.1, and if it still doesn't work join their discord server
(There's a Ask Questions / Get Support button, I'm not allowed to send discord invites in this server)
Sorry, I was confused, it was from Staff +
the error says "PlayerReports"
I got confused about the message 😂
🥲
[PlaceholderAPI] Failed to load expansion class StaffPlusPlusPapi (Is a dependency missing?)
[01:23:32 ERROR]: [PlaceholderAPI]
java.lang.NoClassDefFoundError: net/shortninja/staffplusplus/IStaffPlus
at net.shortninja.staffplus.papi.StaffPlusPlusPapi.canRegister(StaffPlusPlusPapi.java:35) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:194) ~[?:?]
at me.clip.placeholderapi.expansion.PlaceholderExpansion.register(PlaceholderExpansion.java:138) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:168) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_292]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_292]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) ~[?:1.8.0_292]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_292]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_292]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_292]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_292]
at java.util.stream.LongPipeline.reduce(LongPipeline.java:461) ~[?:1.8.0_292]
at java.util.stream.LongPipeline.sum(LongPipeline.java:419) ~[?:1.8.0_292]
at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:593) ~[?:1.8.0_292]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$3(LocalExpansionManager.java:327) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched.jar:git-PaperSpigot-"4c7641d"]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Caused by: java.lang.ClassNotFoundException: net.shortninja.staffplusplus.IStaffPlus
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_292]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_292]
... 23 more
That was the problem I have xd
Oh thanks
using the placeholder str_replace throws errors in the console: https://paste.gg/p/anonymous/0b40e2c066254483a38e1ee69a2d55ae
I used %str_replace_minecraft_mine_our% btw
Please ping me if anyone is willing to help me out, since I really want to use this expansion lol
...
what did you try to enable
For some reason %statistic_time_played% is bugged
and displays more than 24 hours instead of stopping at it
Hi, i have an issue with using placeholders in bedwars1058. I want to use other placeholders than {wins}, {kills} etc.
They work, however i need to leave and join the server to get the placeholder updated.
It's not supposed to stop at 24 hours
but it has days in it?
@robust oasis I highly recommend you asking in there support server as far as I remember I think they have one
a day is 24 hours
Correct so it should say 1 day 1 hour ect
Oh right, I didn't notice that lol
@proud tide MC version?
Hmm I tested it with 1.16.5 and didnt have issues before for a menu I made
Bump for this btw
Should I ping/contact the expansion's dev?
Am I even allowed to? 😅
try debuging, like try to parse this, and see what the results are %statistic_time_played:hours%
%statistic_time_played:days%
When I do %statistic_time_played:days% I get 57
and %statistic_time_played:hours% gives me 8
but %statistic_time_played% gives 9d 56h 14m
damn
@proud tide can you hit esc and click the one for statistics from minecraft? and tell me what that shows?
forgot the name for it
It's minutes played I think
57.35d
thats the issue
you can do this %statistic_time_played:days%d %statistic_time_played:hours%h %statistic_time_played:minutes%m
and it will be fixed for sure!
yeah
Is there any way it would be fixed in the main placeholder
that way it's more optimized and makes less updates
since with %statistic_time_played:days%d %statistic_time_played:hours%h %statistic_time_played:minutes%m %statistic_time_played:seconds%s it will make 4 updates each 3-5 seconds
yes it will be fixed just a matter of time
well I saw the source code and clearly it's a bug
hello I made the code working, idk what you re trying to do don't know russian but here it is, you can adapt from there https://paste.helpch.at/eyozumapeq.js
Hi, can anyone help me? I'm trying to make a 60s countdown but I only find placeholders that counts until a specific day/hour/year
a... this maybe is the correct chanel to ask.... exist a form to "create" variables so that variables work like a placeholder?
Yah, you can do it with javascript
how? can you help me plz?
I can't teach you the whole javascript language lol
Bump
how str_replace works?
str_replace_minecraft_mine_our
Would replace all strings called "mine" in "minecraft" and will replace it with "our"
minecraft->ourcraft
Not sure if I can ping the dev to let them know
I also can't open an issue report on the repo
you're supposed to use commas as separators
it should be %str_replace_minecraft,mine,our%
Oh oof, the example should probs be changed then
i dunno where the example is, but there's literally a code comment about it lol
/*
* Usage: %str_<method>_param1,param2%
* Parameter type: default as String.
* <number> as Number (auto transform to int or double by dot)
* <numberi> force as int eg.<2i>,<2.1i> -> 2
* <numberd> force as double eg.<2d>,<2.0d> -> 2.0
* <numbera> as ascii char eg.<37a> -> %; <37A> -> 7 (UpperCase => Hexadecimal)
* <t> as boolean true
* <f> as boolean false
* $ => %
* \$ => $
* \< => <
* \> => >
* \, => ,
* \\ => \
* */```
why should it be changed?
It's in the readme and also tab completed
%str_function_parameter1,parameter2……%
that's the example in the readme
obviously separated by commas
The parameters part consists of multiple variables, separated by a comma ,.
also in the readme
Right, but %str_replace_minecraft_mine_our% is also on the readme
Anyways, thanks for letting me know lol
ah lol, I see that now
weird that's the only one like that
[17:55:12 INFO]: ourcraft```
even in the test output he uses commas
They must've typed _ out of reflex or something lol
yeah. I just PRed a change.
what a hero
xD
did you also change the chinese version?
NO
don't believe there are any yet
This placeholder is pretty good, especially since making JavaScripts is such a pain xD
that are more updated than the ecloud one
yeah there is a bug on statistics ecloud
ok Star. fixed Chinese version as well
I'm pretty sure that bug was fixed in newer versions of PlaceholderAPI.
make sure you're on the latest spigot release
well idk maybe, I was on 1.16 when I tried
I'm also looking at the expansion code right now and don't see why it would go over 24. it literally has a hours %= 24; line.
you da best ❤️
and I was wrong. not new versions of placeholderapi. just latest of statistic
oh ok!
I Was also wrong about dev builds. here's one https://ci.extendedclip.com/job/Statistics-Expansion/9/
tho
Ok. So @untold adder I take all that back. They did fix it 11 months ago. but for some reason didn't push it to the ecloud. latest from the ecloud still has the bug.
oh so that was the issue
hello guys, how to do something like %statistic_time_played_playername% ?
yeah. strange that they've let it there for 11 months
%parseother_{playername}_{statisitic_time_played}%
Thank you Blitz!
@proud tide read this pls. its a fix for your issue. see the link above and use that statistic expansion until I talk with someone about pushing it to the ecloud
I have an annoying problem and I don't know how to fix it like I am using javascript expansion with quick js, and the problem is that BukkitPlayer doesn't work or something like that, I tried using the default scripts with the player, and still doesn't work, classic error Caused by: com.koushikdutta.quack.QuackException: SyntaxError: unexpected character
var player = BukkitPlayer;
function worldTime() {
if(player.getWorld().getTime() < 13000){
return "§e☀";
}
else if(player.getWorld().getTime() >= 13000){
return "§b☽";
}
}
worldTime();
@thorn thunder
Could you send the complete stacktrace?
Hello, do you know why when I do /papi reload, the placeholders of my plugins don't work anymore. I couldn't find anything on the documentation to know if I have to do something when a user does this command.
can you try a script that doesn't use BukkitPlayer? something like this: js function worldTime() { if(3000 < 13000){ return "§e☀"; } else if(3000 >= 13000){ return "§b☽"; } } worldTime();
I have this: https://paste.helpch.at/atoduhapel.java
and for register i do that:
plugin = getPlugin(Plugins.PLACEHOLDER);
if (plugin != null && plugin.isEnabled()) {
AuctionExpension auctionExpension = new AuctionExpension(this);
auctionExpension.register();
}
as I said. no persist method. if you check the wiki for the internal expansion part it asks you to add that method
a placeholder that can make a scoreboard? no
or what exactly u mean?
hooo, wheaa, thank to you
👍 yw
my thing was to try to use a placeholder, but no success, for now I will make it in java, it's much easier
google StopWatch plugins. Idk of any but I assume there's some out there.
not that I know of. no
!
how do you know the ecloud is not enabled?
what happens when you try to download an expansion?
also have you checked config.yml? make sure its enabled there as well?
I told you it is a problem :)
yeah, that why i ask for it x) zauctionhosue is already updated on spigot and my website
What is this question supposed to mean?
yeah lmao. the Vault expansion supports OfflinePlayers no matter where its used. or what exactly you need to know?
Test
Heeelp !!!!
How to get placeholders to work for scoreboard revision?
bump
can i do it so that if a placeholder is empty, it returns a different string?
/papi ecloud download JavaScript
/papi reload
go to plugins/PlaceholderAPI/javascripts
create file something.js
put this in it
var placeholder = "%placeholder%"
var output;
placeholder === true ? output = placeholder : output = "custom thing";
change %placeholder% to placeholder what are you checking
change "custom thing" to your thing
/papi reload
and it should work (maybe, im noob in JS)
use placeholder %javascript_filename% (without .js)
==, not ===
since a string is not a boolean
nana
I’m just wondering but I have a question about discord if this is the correct server
Yo can someone help? I've installed both PAPI and Vault plugins in my server but when I try to install the vault expansion for PAPI, it doesn't seem to get detected. I've already tried multiple things including reinstalling both plugins serveral times and installing the mvdw expansion(which also doesn't get detected).
By the way, everytime I do /papi reload and it's not detected, nothing appears in the console.
I did it in the bottom of this log: https://paste.helpch.at/ofevicomiq.md
Either really. Both work really well.
Have you done /papi ecloud download Vault and /papi reload
yoo any help here?
im looking into it
hmmm
do u have the correct version of papi ?
and vault
and also luckperm
I have the most recent vesions of papi and vault
?
oh so i get the 1.8 ver of both?
yes
yes
ayt hopefully this works
How can i use js with 1.8.8?
you update to java 15 or newer and download the latest expansion
maybe
i cant, 1.8 can only do java 8
then download the javascript expansion version 1.6.0 /papi ecloud download javascript 1.6.0 /papi reload
ok
@deft kelp what's your problem again?
^
can you do /papi dump and send the generated link here?
ohh ingame?
yes. I Think console also works
I'm using an older version of papi rn that doesn't have it
coz i thought downgrading would fix it
ill update again
oh please don't. very very rarely downgrade fixes anything
ohh someone told me to downgrade earlier
hold up im updating again
@turbid tide paste.helpch.at/povorusogi
1 placeholder hooks successfully registered
and nothing else? not even in console?
when i do papi list theres plyaer expansion and mycommand(even if i didn't install the expamsion for it)
vault isn't detected
it probably has it built into the plugin. that's why
ohh ayt
idk with vault though
[12:10:55 INFO]: loopyz issued server command: /papi reload
[12:10:55 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[12:10:55 INFO]: [PlaceholderAPI] Fetching available expansion information...
[12:10:55 INFO]: [PlaceholderAPI] Successfully registered expansion: player
this is what happens in the console
and I have the vault expansion installed but it isn't detected
okok. can you please:
- stop server
- go to
plugins/PlaceholderAPI/expansions - delete
Expansion-vault.jar - go to: https://api.extendedclip.com/expansions/vault/
- press: download latest
- get what you just downloaded and put it in
plugins/PlaceholderAPI/expansion - start the server
ohh i've tried that before but I'll retry
please do. and if it doesn't work, send the latest generated startup log
is the latest papi not support 1.8 ?
Did not work, do I paste the log in the helpchat website?
u mean this 1 ? https://paste.helpch.at/ofevicomiq.md
well. a new one must've generated. so I want that one
that was mine before
ill paste the new one
yeah
I restarted the server, ran /papi list then stopped it
Don't mind the luckperms error in the start, I accidentally pasted it in the spigot server instead of bungeecord LOL
yeah. is the Vault plugin you have the latest from spigot by any chance?
Ye, it's the latest one.
so not a development build?
I can reinstall if you want
please try. bcz I'm losing my minds here xD
ye samee, I've had this error for 3 dayss
latest version is 1.7.3 ryt?
you know. I've just realised. You're on 1.8.8.
What if the vault expansion doesn't support 1.8.8 at all? hmmm
yes. I believe so
hmm I'll install the version released back in 2015 for 1.8
but I think that also means that I'll have to install the expansion for 1.8?
or is it the same
hmm. not sure actually
yes
umm it still did not work with the 1.8 plugin
I'll try to dl the expansion for 1.8?
sure. but Idk which one that is
ohh ye, the oldest one is from 2017
umm does vault with placeholder api work in 1.8 in general?
or I'll have to use another plugin?
placeholderapi does. idk about vault
hmm ye a few expansions seem to be incompatible with 1.8
@turbid tide dyk other peeps that were able to use vault in 1.8 with PAPI
?
or they used an alternative
not sure actually. never encountered this before now
Is bedwars1058 still available with the ecloud?
whattt
out of nowhere
after I downloaded luckperms for spigot
now the vault expansion works???
i guess my problem is solved lmaoo
wait. @deft kelp you had no permission plugin?
Ye I didn't for my lobby spigot server
but for the bungeecord I did
i thought that was enough but I decided to dl luckperms in the lobby just to be safe
then out of nowhere vault works
does the expansion need a permission plugin to work?
it might. not sure
@deft kelp the problem with not having luckperms on your spigot is that vault won't be able to get the permissions and ranks anyways
Ohhh, that may have been the problem with the expansion
yeah.
well ye tys
ugh
rank?
what is rank
in this case
is it a number? is it an actual rank?
what are you putting instead of rank
when you're trying it
@austere hawk
ugh no
rank is a number
so 1
would be top 1
2 top 2
what "official wiki" is this that you're talking about?
wait. so you want to get the player's current rank?
oh Ic. Ic.
Ok. So first of all.
Are you aware that all top placeholders were removed in newer versions of the Vault expansion?
welp. it was moved to the essentials expansion. still work in progress tho.
you can still get the old baltop placeholders from vault by doing 2 things:
downloading version 1.5.2 of Vault expansion
enable them in plugins/placeholderap/config.yml
nah. that's how you enable all the baltop placeholders
then you can use the placeholder you used before
bump
where i can ask for help?
Is there a placeholder for accurate amount of sugar-cane harvested?
here?
And cactus / other farming items that are usually harvested from the bottom
I think the statistic one allows you to check broken blocks of each type
(i think)
The regular statistic ones are based upon whatever Minecraft tracks so it depends on if it counts that all or not.
I see it, but I don't think the sugar-cane and cactus above it counts haha
but not when you break from bottom
Lemme test it again
pretty sure it does not
Tryna make quests but setting up any form of tracking for cane or cactus is horrid
Yeah if MC doesn't track every block in that, then statistics won't show it. Most likely would have to custom track that.
@turbid tide Perfect. I installed Placeholder API and alls is fine but after i tryed to install the Expansion "Server" and the reload my Server shows the Error: https://paste.helpch.at/aweniyigeg.http
There u have also the Dump output.
Anyone hava an Idea?
Might upload that and cactus as two placeholders
Well yeah, expansions can have as many placeholders as you want. Just create a new one.
Huh, well it ain't returning anything on the stats one
So yeah if it only counts it as 1, you'd have to write your own plugin to properly track it to handle all the other blocks.
/papi parse TombSpyder %statistic_break_item:SUGAR_CANE% That's returning zero, am I being dumb?
On paper
Pretty sure break item for for like item in hand broken.
@turbid tide Me?
ohh yeahhh. its mined what you want to use Amis
seems like you have a corrupted server expansion.
That or a plugin is modifying the class loader because it uses a line of code to get the version in that expansion iirc.
@turbid tide But what expansion? xD
It's still in statistic expansion.
Sorry i dont understand
I'd take it getting accurate tracking for this would require a plugin? and not just an expansion?
Wait no, it wouldn't right?
I mean you'd have to keep the data somewhere for it, so you'd make a plugin and then an expansion inside the plugin to pull data from.
So the expansion would require a plugin to work also
I didn't realise papi did not handle any storage
That complicates things
hehehe
ugh. I don't know if you can run titles from javascript. you can run commands but that's about it.
function runCommand(sender, command) {
BukkitServer.dispatchCommand(sender, command);
}
function run() {
if ("%placeholder_to_parse%" == "true") {
runCommand(BukkitServer.getConsoleSender(), "title send %player_name%");
}
}
run();``` something like this
you would have to parse the placeholder at the start and at the end somehow. this really sounds like not a job for javascript
like even if it is somehow possible it sounds very bad
yes. but in your javascript. you would have to somehow know when they go afk
and the only possible way I can think of is parsing the placeholder every tick
it is parsing every tick. unless the tab refreshes less often or it has a cache system
@turbid tide just put the console sender in that method as well lol xd
yes. but maybe he wants to use BukkitPlayer instead
Correct, it's 100% middleman. It only passes data from plugins.
Huh, does it support data from all sources
I feel like a sq-lite database would be ideal
Wait
Is there a way to override default statistics, that way the plugin wouldn't be required?
I have no idea. That's not really a PAPI matter. We pull directory from the Bukkit API at that point.
So we pull whatever data is given to us through Minecraft itself, any custom stuff would most likely require a plugin.
Hey, can anyone tell me if this is going to work?
function run() {
if ("%murdermystery_office:state%" == "Waiting" || "%murdermystery_office:state%" == "Starting") {
var stats = "%javascript_waiting%";
} else {
if ("%murdermystery_office:state%" == "In-game") {
var stats = "%javascript_ingame%";
} else {
if ("%murdermystery_office:state%" == "Ending") {}
var stats = "%javascript_ending";
}
}
run();
have you tried parsing those placeholders? see what they return?
also
you're setting stat
but never returnng anything
you should return stats probably
instead of setting it in a local variable?
I mean did I do good the ifs?
Can you help me to improve it? It's my first time doing this LOL
hmm. what exactly are you trying to do?
Idk javascript, I know just a bit of c++ lol
so if the state is waiting or starting you return a custom javascript
if its ingame another one
yah
I like this: Dk for sure if it will all wrok but you can try it: https://paste.helpch.at/iqobicucaz.js
I can test it tho in a second as well
yup
seems like its working
Thankuuu
yw 👍
Any fix for BukkitPlayer in js?
I got that code working with some Java but I want to do something with BukkitPlayer
Using JavaScript expansion:
I am parsing %player_yaw%, making it a normal number and if it's above 180, doing yaw-360 and after that there are 32 if statements for checking diff yaw values between 2 numbers and then returning a value for the placeholder. How can I make the script to run better? (to use less resources) It's using nashorn engine also I am using it in a bossbar
can we see your current script? @grand zenith
as far as I know this is a problem with QuickJS itself. It is known to not work well or at all on some machines. You'll probably have to use nashorn instead.
why are you doing that entire thing? is that a special symbol? or what. bcz in the paste bin they all look the same
anyways. few things you can improve is have just 1 check per if statement
how
if (yaw <= -170)
if (yaw <= -160)
if (yaw <= -150)
...
if (yaw <= 180)```
since you return
every time it gets to the second if
it can't be lower than -170
so it will always be between -170 and -160
also. maybe have a if (yaw < -180) return "danger" or whatever
don't really know if there's anything else you can really improve
yeah. didn't expect it to increase significantly
Okk I will try that
you guys forgot to put %player_worldtime% from Player Expansion in the placeholders wiki,
https://github.com/PlaceholderAPI/Player-Expansion/blob/473f637e0c0dafd54ccaf4439b7cf07ec2fd8af9/src/main/java/com/extendedclip/papi/expansion/player/PlayerExpansion.java#L350
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#player
case "world_time":
return String.valueOf(p.getWorld().getTime());
I was looking into the code and saw that
weird that it isn't there
[30.08 22:21:12] [Server] [WARN] at java.base/java.lang.Class.getDeclaredField(Class.java:2549)
[30.08 22:21:12] [Server] [WARN] at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:49)
[30.08 22:21:12] [Server] [WARN] at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:270)
[30.08 22:21:12] [Server] [WARN] at PlaceholderAPI-2.10.10.jar//me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:160)
[30.08 22:21:12] [Server] [WARN] at PlaceholderAPI-2.10.10.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70)
[30.08 22:21:12] [Server] [WARN] at PlaceholderAPI-2.10.10.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98)
[30.08 22:21:12] [Server] [WARN] at SimpleScore-LATEST-[3.8.1].jar//com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.replacePlaceholders(ScoreboardTask.kt:107)
[30.08 22:21:12] [Server] [WARN] at SimpleScore-LATEST-[3.8.1].jar//com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.applyPlaceholders(ScoreboardTask.kt:96)
[30.08 22:21:12] [Server] [WARN] at SimpleScore-LATEST-[3.8.1].jar//com.r4g3baby.simplescore.scoreboard.tasks.ScoreboardTask.run(ScoreboardTask.kt:70)
[30.08 22:21:12] [Server] [WARN] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101)
[30.08 22:21:12] [Server] [WARN] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
[30.08 22:21:12] [Server] [WARN] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[30.08 22:21:12] [Server] [WARN] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[30.08 22:21:12] [Server] [WARN] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[30.08 22:21:12] [Server] [WARN] at java.base/java.lang.Thread.run(Thread.java:831)```
Does anyone know how to fix this?
I've made an expansion in java just for that placeholder
Update your player expansion
I tried doing my code on java with placeholders on javascript and I get ```
Caused by: com.koushikdutta.quack.QuackException: SyntaxError: unexpected character
```js
function worldTime() {
if("%player_world_time%" < 13000){
return "&e☀";
}
if("%player_world_time%" >= 13000){
return "&b☽";
}
}
worldTime();
that isn't java
May I get a quick guide, since I have no clue what you are talking about 😄
Or a redirect to a previous messages where this fix was talked about
but @untold adder that's because you need to convert the string (text) to a number
I tried doing my code on java with PLACEHOLDERS ON JAVASCRIPT

I tried parseInt
no succes
maybe someone more experienced in js can help.. but i know enough that it's erroring bc ur comparing a string to an int ¯_(ツ)_/¯
well that's true but it's pain, I tried a lot of alternatives, but no succes, kinda P A I N
Hello, why when i do /papi reload, all placeholder plugin with papi integration are broken ? is it a bug or is it normal ?
idk maybe you can try this
const time = "%player_world_time%";
let placeholder;
Number(time) > 13000 ? placeholder = "&esun" : placeholder = "&b☽";
im noob so its wrong prob
papi refuses to reload and gives this error
https://mclo.gs/i69r8cX
https://paste.helpch.at/ineqixoqij
Is there a PAPI Placeholder that shows the amount of "jumps" all the players on the server ever "jumped" that includes offline players?
i doubt it
mc doesn't send any wasd/jump info to the server, instead the client calculates it, and just sends movement info
I mean isn't there a statistic for times jumped? Just loop all offline players, but that can get kinda resource intensive.
client prob sends info to server

says "update this statistic to jump" idk
wait, where are the statistic saved? in world folder?
🤷
also why are reactions not allowed in here ;-;
these permissions are weird
#general-plugins #general-plugins-2 #placeholder-api no images or reactions
#minecraft no direct file/images but embeds are allowed (??), no reactions either
#bot-commands none allowed
everywhere else it's all allowed i think
(besides services/special/hidden channels)
Yeah statistics are saved in player data in worlds iirc.
Idk. Just a statistic Minecraft figured to add?
how to add lp rank to tittle manager
lines:
- '&b&m&6-----------------'
- '&6> &e&lPlayer Name:'
- '&b%{name}'
- '&r'
- '&6> &e&lPing:'
- '&b%{ping} MS'
- '&r&r'
- '&6> &e&lMoney:'
- '&b%{money}'
- '&6> &e&lRank:'
- '&b%{group}'
- '&b&m&6-----------------'
d;help
Hey! Is there a way I could edit placeholder messages?
I wanted %date% to be "Aug 31, 2021" instead of "31.8.2021".
Is there a way I could edit it?
with? Can't help you unless you tell us what you need help with.
What?
tokenmanager placeholders do not work, should i contact TM developer?
"do not work" is not a clear description of the issue.
it just displays %tm_tokens% and not the amount of tokens
What does /papi parse me %tm_tokens% show
%tm_tokens%
is there a way to fix it?
/papi ecloud download player then /papi reload
Doesn't fix anything for me.
/papi dump and send the generated link here
ok:
- stop server
- go to plugins/PlaceholderAPI/expansions
- delete
Expansion-player.jarandExpansion-Player.jar - start server
- execute:
/papi ecloud download Playerthen/papi reload
I think I found the problem. I did what you said, but it happened again. So I have decided to delete SimpleScore.jar
The spam is gone.
yes. temporarely. until you use the %player_ping% placeholder again
Token Manager problem, the owner of the plugin forgot to add one important method on the Placeholder class, and all of the plugin placeholders break, you need to restart
Hello I'm looking for 2 different placeholders however I can't seem to find them (I may be blind)
- a placeholder to count the number of items in a given players inventory ( %playername_dirt% would print say 34)
And
2) something I can use to calculate with from the last placeholder ( 34 * 2 outputs 68)
For a bit of context, we are using command panels to make a shop and they don't have a sell all only sell x amount
- Checkitem expansion
- math expansion with JavaScript
Check the placeholders wiki for checkitem
Ty
how I can to register new extends PlaceholderHook?
im tried this
PlaceholderAPI.registerPlaceholderHook(this, new Placeholders());
new Placeholders().register();```
its dosent works, the class is
public class Placeholders extends PlaceholderHook {
@Override
public String onPlaceholderRequest(Player p, String identifier) {
if (identifier.equals("ringsfound")) {
return "tets";
}
return null;
}
}
thx
how I can check if the placeholder exsits?
ringsfound
/papi parse me %pluginname_ringsfound%
not plugin name. identifier.
yes
is there any extension that can create countdowns?
server
How can I change
https://i.ibb.co/M20gmzq/server-uptime.png
Displaying 40m, 27s
I want to change 40dk, 27sn
you can make it with javascript expansion, check the wiki how to make a javascript script
Okay, but I have some errors
https://paste.helpch.at/izazayuras.sql
you are using java 8, download a lower version of javascript
how i download lower version of javascript
firstly delete the javascript expansion by going into the expansions folder from PlaceholderAPI, then papi reload, then /papi ecloud download JavaScript Version(number)
Which version should i download
1.6.0
ok
I don't understand javascript, can you give me code for server uptime?
🥲
not possible on jdk 16
solution was just to recode the placeholders in java and it fixed the performance issues
It is, use the latest js expansion release
It uses nashorn by default
Well Java for sure remains the best for placeholders, but why do you need to make a plugin for 1 simple placeholder
you don't
you can use javascript expansion
@thorn thunder. Performance issues have been reported quite a bit on both quickjs and nashorn. Couldn't really gather more information I'm afraid.
I know the issue
Found the fix
But struggling to find time to actually implement it
It should be fine mostly with nashorn tho
Oh. Ok then.
just some people are still on the old #852317810394267708 versions
Oh. Why? xD
Absolutely no idea 🥲
Cant post images here :(
Are you using Animation expansion?
Currently using the statistic %statistic_time_played%, and for players who have been playing since before the statistic expansion, it's lowballing what their actual time played is
where does PAPI store its statistics for that expansion?
The placeholders for seconds, minutes, hours, and days played are all correct, but the main %statistic_time_played% placeholder is far too low
🤷♂️
Yeah you're right, it is a bug, didn't fixed yet, sad
ugh. that's not PAPI. It just gets the statistics from spgiot/minecraft. They are stored in the world file. Btw. Make sure you're on the latest dev build of the statistic expansion https://ci.extendedclip.com/job/Statistics-Expansion/9/ bcz that did fix a bug with the time format. We're waiting for an admin to push it to the ecloud still.
@balmy marten help this mans out please ^ ty.
Ty
You don't, you make an expansion

Is there a PAPI placeholder for the amount of diamonds acquired, NOT the amount of diamond ore mined?
in the minecraft statistics, there's a section for items "Picked up"
Then probably yes
Hello, for some reason, I cannot use the countdown placeholder from the server expansion on anything. I cannot use it on deluxehub and holographic displays, even though it works just fine with a parse
Wait I can't post images?
trying to use it on a deluxehub menu item:
parse:
Parse command:
/papi parse me %server_countdown_kk.dd.MM.yyyy_12.18.09.2021%
Is it possible for a custom PAPI javascript expansion to hook into another plugin?
For example, I'm trying to detect a worldguard region in a custom javascript expansion of mine and I'm not sure how I would do it
What can break a placeholder like this https://imgur.com/SgahoVg
Im using plain text and then the rainbowcolor placeholder
The plugin dev of the plugin that is serving that message used the same server jar as me, the same config and the same chat plugin
And it worked. Apart from those things what could be the cause?
Send me an email and username you'd like
Guys Help Plz my placeholder in holograms are not working ?!!
Help my placeholder in holograms are not working ?!!
@balmy marten Ok I'll send you a message
Accept my friend request and you will be able to
Why it does not work? What is the problem?
Placeholders doesn't work for username section in ParseOther
because cp-player is not a PAPI placeholder?
also. because you can't have % inside placeholders.
ok
%player_uuid% makes UUID like 069a79f4-44e9-4726-a5be-fca90e38aaf5, but I want 069a79f444e94726a5befca90e38aaf5. How can I do that? Is there a way to do that with Formatter or something?
try using %formatter_replace_<target>_<replacement>_<text>%
It might not work
Could try js
function replaceDashes() {
return BukkitPlayer.getUniqueId().toString().replace('-', '')
}
replaceDashes()```
also. it doesn't make the UUID like that. That is the UUID.
hi
guys
PlaceholderAPI.setPlaceholders```
this method seems to auto parse color codes
this is a disadvantage for me
im setting placeholders for a message for discord
so when it tries to ping a role it needs <@&ID>
& and the next number turns to a color code, which breaks the message
anyway to remove the color parsing?
so it makes UUID with -s
Guys help I want to make leaderboards using placeholders anyone know how I can do it