#placeholder-api
1 messages · Page 171 of 1
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
Please respect the rules, be patient and don't ping staff members!
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
Please respect the rules, be patient and don't ping staff members!
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
Command(s): d;info
Example: d;info
Description: Display info about the bot.
Command(s): d;docs, d;javadocs
Example: d;javadocs
Description: Get a list of javadocs.
Command(s): d;prefix
Example: d;prefix <prefix>
Description: Set the server's command prefix.
Command(s): d;algorithm
Example: d;algorithm <algorithm>
Description: Set the server's algorithm.
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 :(
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
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
Please respect the rules, be patient and don't ping staff members!
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?
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
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 ?!!
Please respect the rules, be patient and don't ping staff members!
@balmy marten Ok I'll send you a message
Please respect the rules, be patient and don't ping staff members!
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
u can use a plugin like ajLeaderboard / LeaderHeads to handle leaderboards
Okay I will see
afraid not. this will be removed completely in the future but right now there is no fix. you would have to fork PAPI and remove it.
ah. thought its a private plugin
isnt there a deprecated method that allows u to disable it?
doesn't work anymore.
hasn't worked in a while
ah
it was something like
PlaceholderAPI.setPlaceholders(Player, String, Boolean)
and true would color it
false won't
for the boolean parameter.
oh wait. @timid fox it is still there. try using it just in case
Thx so much
i just found that lmao
I'm so fucking confused. why would they make it like that? xD
🤡
I found this out before but forgot how fucked it is
i download vault expension but dosnt work !!
do you have the vault plugin installed?
how can I change refresh delay of Player expansion?
there is no refresh? the plugin doesn't cache anything afaik
%player_online% placeholder for my offline alt is still parses yes
I left 2 mins ago
no wait I was parsing myself
ok
lol xD
How can I use %formatter_number_format_{gemseconomy_balance_cookies}%' with ParseOther? It doesn't work when I use it as %parseother_{artwart}_{formatter_number_format_{gemseconomy_balance_cookies}}%. It shows %formatter_number_format_gemseconomy_balance_cookies% exactly same.
yes. bcz you can't use placeholder in placeholder in placeholder.
ok
Hello ! I got a big error log :
https://pastebin.com/7bncfCXN
Any idea ?
update the player expansio
n
Perfect ! Thank you 🙂
Is there a placeholder that can capitalize each word in a sentence/string?
@turbid tide does string expansion uppercase placeholder uppercase the whole string
Please respect the rules, be patient and don't ping staff members!
why is my computer not working
did you downloaded Vault wxpansion (/papi ecloud download Vault) and then reloaded papi (/papi reload)
if yes provide server log and /papi dump
also /papi parse me %some_vault_placeholder% works?
any placeholder to check the inhand item durability left?
[PlaceholderAPI] skript is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
Skript expansion is outdated, author would need to update it
Alternative solution is you can try this version, https://api.extendedclip.com/expansions/skippi/ keep in mind it's not verified.
Hey, can anyone help me to make a javascript placeholder?
Hey, I can try
I tried to do something but it looks like I keep getting an error
var counter = setInterval(timer, 1000);
function starting() {
var players = "%murdermystery_office:players%";
switch (players) {
case "12":
var count = 15;
case "2":
var count = 60;
}
}
starting()
function timer() {
count = count - 1;
if (count <= 0) {
clearInterval(counter);
return;
}
var countexport = count.replace(/0/g, "𝟎").replace(/1/g, "❶").replace(/2/g, "❷").replace(/3/g, "❸").replace(/4/g, "❹").replace(/5/g, "❺").replace(/6/g, "❻").replace(/7/g, "❼").replace(/8/g, "❽").replace(/9/g, "❾");
return countexport;
}
timer()
@magic rock
The error is saying something about setInterval
probably bcz timer is not a variable?
you probably meant to call the function in there?
you type the function name to call it from a setInterval function
oh
like you would do this::timer in java or () -> timer()
but setInterval will most likely not work
count is also not defined
So I'll just need to type var count = 0 at the start?
I tried to do it like this:
If the arena office haves 2 players connected then a countdown of 60s would start else
if there are 12 players, the countdown would jump to 15s
So I just tried to like copy code from stackoverflow and to use the code that Blitz gave me because I don't know any JS, I know just a bit of C++
I need to have Xp level number like 1 to 30 on aplaceholder, which one to use ?
so you need a placeholder that returns the amount of exp levels a player has? then use %player_level% or %player_levels%
I need the level itself not the amount of xp i cannot find a placeholder for that
yes. player levels returns the level
Can anyone help me to fix that?
Hi, I need help ! My server throws me an error and I don't know how to solve it
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
do /papi dump and send the generated link here
Can anyone help me to fix this?
Sorry I don't understand you, I don't understand English very well
what language do you speak
Español
I'll use google translate
in your console execute: /papi dump
The problem is that the server does not start, but now I try and send
Hi, how can I have a placeholder for a certain player like: %player_claims_<player>%?
Custom placeholder
How?
Hmm but like isn't it possible with any extension
this?
Let me explain, I just updated my server to java16, and now it doesn't start the server directly so I can't put the command they tell me
this is the last thing he tells me before stopping the server automatically
https://paste.helpch.at/cedacolasi.css
1.16.5
Yo, can someone look at the WorldGuard PAPI expansion?
There's a glitch with it due to region templates and parent regions.
When you set a region template or parent region/inheritances, the %world_region_name% will glitch between the template and the region name itself.
Can you fix it so it actually returns the region's name consistently?
I asked the WorldGuard devs, and they told me to report it back to you.
^ Yeah that's an issue that's affecting me heavily as well.
can anyone help me to fix this?
can you show us the error?
Please respect the rules, be patient and don't ping staff members!
oop-
yeah.
as gaby said
that is not a valid method
in nashorn
so you can't use it
setInterval I mean
that doesn't exist
Do you have any ideas how can I change it?
change what exactly?
setInterval
no idea. don't know anything similar that is available in nashorn
Do you have any idea how could I do a countdown?
hello everyone!
im trying to download PlayTime from ecloud but its telling me its not exsisting. has anyone any suggestion?
(using spigot 1.17.1 and papi 2.10.10)
try playertime instead of playtime it works for me
its downloaded but wont register
okay just did a full plugin reload and its working 😄
thanks ❤️
any placeholder to check the inhand item durability left?
qwq
I wonder why the script was removed from the plugin and when it will be added, it is urgently needed
the check item one is capable of that,
what script? what plugin?
afraid not. it can only check if you have an item or how many of an item you have.
%player_item_in_hand_data% might work.
well. not might. it will.
that only say you the durability that you already use
i want to know the durability left
wait what? I'm 99% sure that shows the durability left
Skript plugin
you mean why the skript expansion was removed from the ecloud?
yes
because it was old, broken (didn't even work) and no one maintained it. if you want a more updated one you can use this one: https://github.com/Altruiis/skript-expansion/releases/
there i send u the screenshot
you have to manually download it but it takes like couple seconds Efehan.
that Hoe is about to break
Thanks
can you do /papi dump and send the generated link over please?
%checkitem_<modifier1>,<modifier2>,<...>% - Returns if user has the item
%checkitem_amount_<modifier1>,<modifier2>,<...>% - Returns amount of items the user has
%checkitem_remove_<modifier1>,<modifier2>,<...>% - Removes the items from the players inventory - Can be used with amount, it just has to be after. (Ex. `%checkitem_amount_remove_<...>%`) Please be careful as it does REMOVE ITEMS FOR GOOD
%checkitem_give_<modifier1>,<modifier2>,<...>% - Gives the player items. Returns true if successful, returns the number of items NOT given if unsuccessful. (When unsuccessful items can still be given, it just might not be all of them)```
not according to the wiki
there's only 4 types, one that returns yes/no if they have an item
1 that returns the amount
1 that gives the item
and 1 that takes the item
What did he wish to check again?
he wants the durability value
like no matter what item in main hand
show the durability
Ohh, I misunderstood it then, my bad.
@indigo grail are you willing to use a javascript then? not sure why the expansion doesn't show the durability left. I'll report the bug on github but until then I can try and make a javascript placeholder instead
rlly? qwq ❤️ TSM!!
ok. can you try this one first please? https://paste.helpch.at/akuvunuvoy.js
I can't really test it at the moment
actually. I might be able to. 1 min
can someone tell me is it ok to have 100+ papi placeholders that check on something in gui menu?
how much bad can it get with a lot of players in terms of lagging
(1.16.5, or any version)
well. that really depends. a lot on the plugin/placeholder itself. like some placeholder might make a database call each time. if you have placeholders like those, it can be bad. but if the plugins were at least somewhat well made, you shouldn't really have that kind of problems.
well, i will have a lot of placeholders that will grab value from the .yml file (database) and math it with something and output it
100+ in one deluxemenus menu
I mean it really isn't a way to tell
you'll have to test
1 sec Red. it doesn't work
working on fixing it
bcz rn it does the same thing
i will
as the other placeholder
btw blitz did you create string papi expansion
yes I did
can you add java8 support and can you explain how it works in an example please
at least this second thing i wrote
which placeholder you want example for?
what if i want multiple ones
well. tell me which
i saw %string_equals_{server_name}_Lobby% example
how to add more names like {server_name} to check if they are "Lobby"
to check if %server_name% equals or %example_placeholder% equals
in the same placeholder
so you want to check if one of multiple placeholders is Lobby?
not really sure I understand your question
@indigo grail
use %player_item_in_hand_durability%
it also works for the armor placeholders and item in offhand.
is that the player expansion?
do you know how to manually update it?
alr 👍
well. you can't really do that from isnide the string expansion
its meant for just 1 string
and i would also like to
for example is %someplaceholder% == 13689
how to make string to check if it has for example 3 in it, then output is "yes"
this is possible. 1 second
thank you for taking time into this
will wait
Yes! it work! i love u Blitz!!!!! uwu ❤️
@placid light you can use this placeholder %string_contains_<string>_<match>% for that. it would look something like this: %string_contains_{someplaceholder}_3%
is is possible to more than 1 match?
sorry if i am asking too much
as I said. no. not in the string expansion.
you'll have to use the javascript one
for that
but you need to know some javascript
hi
i have a problem with placeholders
i want to use them in my server, but when I write them, the scoreboard say %objective_score_<obj-name>% instead of the actual score
Can anyone help me in voice chat to configure my scoreboard?
have you downloaded the necesary expansion?
I have downloaded the AnimatedScoreboard Plugin and Placeholder plugin
I need more plugins?
no. a placeholderapi expansion. execute:
/papi ecloud download ScoreboardObjectives
then:
/papi reload and try then.
can anyone help me to make a like 15s countdown?
Does anyone know where I can find a simple if else statment for a placeholder ?
I want to make a placeholder withing javascript that would display "none" if a player has no town or nation
the EssentialsExpansion expansion is not telling PlaceholderAPI its version
so it won't register
Is there a way to fix this? I've been fiddling with it for around a day now.
np
It's the current version of papi on pixelmon 1.12.2.
So who can I contact for assistance? @silver minnow
Sorry for the ping ^
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.10 - Dev Builds
v2.10.10 - Dev Builds
I'm using Magma.
Magma is pretty steady. lol
Also, I had somebody else download it onto a 1.17.1 server, didn't seem to work either for whatever reason.
this is probably ur best bet then
So what you guys are saying is that this thing doesn't work anywhere, but so far no one has told the author and it hasn't been fixed? This is ridiculous :D
pretty sure it'd have been fixed, could be server sided
lol
but this is the parts of the error message that are important:
[PlaceholderAPI] Failed to load expansion class EssentialsExpansion - One of its properties is null which is not allowed!
java.lang.NullPointerException: The expansion version is null!
[PlaceholderAPI] Failed to load expansion class EssentialsExpansion
I don't think I need to explain this 🥴
One of its properties is null which is not allowed!
Basically each expansion has a bunch of properties (ex: name), andnullmeans "nothing" or in this case it's better to think of it as "missing"
java.lang.NullPointerException: The expansion version is null!
This means that the expansion version is "nothing" or "missing"
the rest just shows where the code is being called and stuff, unless you're the developer you don't have to worry about it
It's been fixed, literally repeated the same steps over and over again until it worked LOL
- Uninstall Papi + Respective folders.
- Reinstall Papi (2 versions)
- Download the essentials expansion
- Reload
- Type in chat. Didn't work
and repeat that process from most of yesterday and most of today until it worked! 
I have no fucking idea either
try restarting the server again
apologies for the language, not sure what the rules are like in here.
I stg if I restart and it disables
I will cry.
🥲
lol as long as its not nsfw it doesn't matter
help me about Progress-Expansion pls.
%progress_bar_{superior_island_upgrade_hoppers-limit}%
idk how to do
Do javascript placeholders lag the server ?
Depends what they're doing
hey, how can I had to my scoreboard other scoreboards? I have one scoreboard in my server that is "points".
In my custom scoreboard I want to put your nuber of points, the top 3 with more points and the bottom 3 with less points
Is that possible?
Replacing text most likely.
Please respect the rules, be patient and don't ping staff members!
var TownName = '%townyadvanced_town%';
function getTownName() {
if (TownName == "") return "&cNone";
else if (TownName !== "") return "%townyadvanced_town%";
else return TownName;
}
getTownName();
Should be no issue then
Alrighty thanks a lot.
ugh. bcz you haven't really used it correctly? have you red the wiki to see how it all works?
placeholder is not working idk why the version good and everything ok when i type /papi reload it didnt say anything and then i reload server then also no changes
@slow crystal\
anyone?
its urgent
Hi!
help me (:
- don't reload server
- what placeholder?
huh?
Sorry man papi is a bit above my pay grade
uh then ping other staff :/
its urget
placeholder is not working
and then i reload server then also no changes
no
don't ping staff
so?
..
okh i am srry i am in hurry :/
🤩
yup when i type /papi ecloud download player it shows added and all
the i type /papi reload :/
restart your server??
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
i did
ya /papi reload not working
its a bad command
no
bruh
/reload breaks things
let me try
No
If you try I dont help
cya
what errors
bi
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
no errors
wait let me
@silver minnow you help him
yup no errors
idk all good just /papi rerload didnt work
u can come in server and check
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
it shows nothing thats the problem
what's up
yaa
wait. why is that?
good question
@fleet chasm ? why can't you provide the logs? or is it that you don't want to?
The whole point of logs are to log warnings and errors so problems can be solved more quickly
okh
but where
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
you put them in this paste bin ^
and send the link in here
also. if possible. generate new logs first by restarting the server.
and send the newly generated ones
I'll take alook in a minute. ingame rn
enjoying life ;/
me too. me too.
so. I see you have a problem with your essentials expansio. can you execute a /papi dump and send the link generated here?
ok
Oh. So you don't have the essentialsx plugin.
There's 2 fixes:
- You install the
EssentialsXplugin. (if you need it of course) - You go to
plugins/PlaceholderAPI/expansionsand delete the file calledExpansion-essentials.jarthen restart the server.
ok btw nice pfp
let me try
not made by me but ty
man ur just op tysm
Please respect the rules, be patient and don't ping staff members!
no problem. 👍
hey, i am running a 1.17 server and i think that it not detecting placeholder
[17:19:12 INFO]: Ninoide issued server command: /protecciones
[17:19:15 INFO]: CONSOLE issued server command: /eco take %player_name% 50000
[17:19:15 INFO]: Error: Jugador no encontrado.
[17:19:15 INFO]: Jugador no encontrado. (%player_name%)
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
@edgy thunder execute these 2 commands ^
yeah, it worked, thanks you so much ^^
how to add a placeholder
hey there, i am getting java.lang.NullPointerException: The expansion version is null! on https://github.com/PlaceholderAPI/Example-Expansion with PlaceholderAPI 2.10.10 (fresh install)
is this a recent issue?
Update: seems to be that the version string MUST be hard coded now using ${project.version}
Anyone?
Is there a way to allow old Placeholder hook classes so I can use Token Manager without issue?
no. they were removed. also is token manager not updated?
what perm plugin you using?
Token Manager hasn't been updated in quite a while.
but it seems like the latest one doesn't use PlaceholderHook. it uses PlaceholderExpansion. so it should work
I get this when I start with that expansion in:
[PlaceholderAPI] tokenmanager is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
that's strange. what version of tokenmanager u got?
hmm. that's the latest from github as well. strange. idk. maybe I'm seeing things.
anyways. that's not being added back. it has been changed and removed for a reason
Okay. It's just the Command Panels uses TM for the tokenpaywall= command, which makes it difficult to really know where this is going in the future
I asked them about it as well. The only free one for 1.17 is called "NotTokens" and they have a placeholder already, but it isn't compatible with Command Panels
At least it's the only free one I've come across, after lots of digging
