#placeholder-api
1 messages ยท Page 170 of 1
If there is not a branch with last commit like week ago they are all same
EOL for Java 8
it is
it does for newer ones
non-LTS releases since 9 only have support for 6 months
8 they kept extending because they didn't release any versions for 5 years, then people got scared so they extended it more
11 ends in 2 years ๐
then we'll all be on 17 at last
I hope minecraft requires 17 for 1.18
omg please dont
or... It depends on changes made between 16 and 17 ๐
Nashorn is biggest pain in the ass ๐
And deobfuscated nms in 1.17 too (not say it is not better tho)
it will
Every new minecraft version will require the latest java version from now on
That was bound to go soon enough, Nashorn wasn't very good
Honestly I wish we had a better embedded scripting language for PAPI
And the NMS changes in 1.17 are great, because it brings us way more into line with what Mojang is doing and not the will of md5
And they'll stay the same forever now, not remapped like they used to be
Any idea why Javascript expansion giving me 7.0 for Javascript return parseInt(7)? ๐
return parseInt(7).toFixed(0)
js is weird. that's been an issue for a while
couldn't find the cause at all
yeah. never had that problem anywhere else other than the js expansion
so not really sure
like to return it as a number, like you know the /time set 13000, I want that type of value
yeah. then you'd have to use javascript to convert it I believe
Is there a way to pull info from offline players using placeholders? I tried using
%parseother_{ItsDed}_{statistic_deaths}%
But obviously that doesn't show anything when I'm offline, which I want it to. I'm looking for a workaround. I tried using leaderboard plugins since those cache the data, but they don't support the necessary placeholders to do this.
I have this issue
[22:44:28 ERROR]: [PlaceholderAPI] Failed to load expansion class StatzExpansion - One of its properties is null which is not allowed!
[22:44:28 ERROR]: [PlaceholderAPI]
java.lang.NullPointerException: The expansion version is null!
how do I fix it
@slow crystal please
not really. unless an expansion specifically supports offline players then not possilble. and currently the statistic expansion doesn't support Offline players
use the formatter expansion
what option would I use
I can see that it turns %formatter_number_format_1234567% and converts that to 1,234,567
But not turning it to like 1.2M
@warm topaz ๐
Please respect the rules, be patient and don't ping staff members!
You might want to look into this https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Community-Scripts#number-suffix
Does anybody know a plugin that can convert script placeholders into papi placeholders?
ty
Can you send?
What do you mean
Please respect the rules, be patient and don't ping staff members!
public String getIdentifier() { return "skript"; }``` needs to match the name of the expansion you've set on the ecloud
How do I fix it?
Either you update the name on ecloud or you update the expansion to have the identifier skippi instead of skript
I would of named it skript but there already is a skript. It's outdated and my expansion fixes it.
How can I make a placeholder that get the block at a specific coordinates with JavaScript expansion like %block_x_y_z%
why is it so bad papi?
https://timings.aikar.co/?id=165be5ecc31945c7975aec880c9742f8#plugins
PlaceholderAPI::Task: de.tr7zw.nbtapi.utils.ApiMetricsLite$1$$Lambda$8091 (Single)
No idea what that is but that isn't from us. Possibly an expansion.
It looks like NbtAPI's bstats class which makes no sense.
If you can get a spark report confirming it's something in PlaceholderAPI then maybe I can do something about it.
then I make a profile in spark (? and I send it to you?
Please respect the rules, be patient and don't ping staff members!
You can post it here and someone could look at it.
Is there a way to add the player count of two servers together through the BungeeCord expansion pack?
Tried utilizing Math and the [precision:0] variable doesn't work. It instead pastes:
[PlaceholderAPI] [Math] Cause: '0+0[precision]' is not a valid Math-Expression.```
(The alternative was presented with just [precision]; same applies under both circumstances)
Try %math_0:... placeholders%
No [percision]
Gotcha
Is this what you're referring to?
%math_0:{bungee_Watermelon}+{bungee_Mango}%
(Or am I entirely mistaken)?
Ah... I get it. It's supposed to be this:
%math_0_{bungee_Watermelon}+{bungee_Mango}%
help
yeah. %math_0:_... would also work.
well it depends what world you also want to use? do you want to use the world in which the player is?
yeah. that doesn't look like PAPI. Also I notice that in the timings you sent it only happened twice. I might be wrong but it might be a plugin that uses nbtapi and has a placeholderapi hook or something.
something like ```js
var player = BukkitPlayer;
var x = parseInt(args[0]);
var y = parseInt(args[1]);
var z = parseInt(args[2]);
function getBlockType() {
var world = player.getWorld();
var block = world.getBlockAt(x, y, z);
return block.getType();
}
getBlockType();``` Might work. then you will have to make the call something like this:
%javascript_<identifier>_X,Y,Z%
Hi, I'm making a plugin and want to use placeholders for holographic displays with the plugin. But its not working for some reason. https://pastebin.com/a60J1jXA - PlaceholderExpansion code
OnEnable:
new OSPlaceholderExpansion().register();
System.out.println("PlaceholderAPI Hooked");
} else {
throw new RuntimeException("PlaceholderAPI is not gevonden. Installeer deze om de plugin volledig te laten werken.");
}```
[14:35:43] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: oorlogsimulatie
[14:35:43] [Server thread/INFO]: PlaceholderAPI Hooked```
HolographicDisplay doesn't support PlaceholderAPI
you need to install HolographicDisplay, HolographicExtension and ProtocolLib
to get it to work in HD
ah thanks
Thank you so much
Would this work if my 3rd arg is the world
var x = parseInt(args[0]);
var y = parseInt(args[1]);
var z = parseInt(args[2]);
var world = parseInt(args[3]);
function getBlockType() {
var block = world(x, y, z);
return block.getType();
}
getBlockType();
that's your 4th argument. and no. it won't.
will fix it in a few minx
mins*
busy rn
var server = BukkitServer;
var x = parseInt(args[0]);
var y = parseInt(args[1]);
var z = parseInt(args[2]);
var world = server.getWorld(args[3]);
function getBlockType() {
var block = world.getBlockAt(x, y, z);
return block.getType();
}
getBlockType();``` try this @pure wraith
Ok will do thanks
Can't see in Spark (?
I don't know how to see the spark that's why I sent it.
Please respect the rules, be patient and don't ping staff members!
you press the all button once
and it will list plugins from worse to best
and in the time you generated the profile, papi did ok
no problems
a script placeholder? what type of script?
what is coded in. yeah.
Hi
hello
I did /papi ecloud download Statistic , then i mined some blocks and when i do /papi parse kFxDaKing %statistic_mine_block%
it keeps returning 0
what's your server version?
1.17.1
any chance you use purpur?
yes, im usign purpur
yeah. we got like 5 reports of this. problem is that the expansion itself doesn't register the actual data. Purpur does. or should. For some reason for the past 2 weeks we got people reporting that the statistics are not registered at all. You can check if they are for you by going in the Statistics menu from minecraft itself. if they're still 0 there then please report to purpur.
everything is on 0
in menu
so ill report it
thank you!
IS there any alternative to "Statistic" that should work on purpur for now?
well since the statistics are not registered at all not really. unless you use a plugin that will also keep track of statistics I guess. I think Statz used to do this? not sure. but when you will fix Statistic expansion aka Statistics you won't be able to convert them so my recommendation would be to get those fixed
Found the problem
If there is someone else, just send him this, or pin this message.
I had it disabled in spigot.yml
disable-saving: true #Must be false
forced-stats: {}```
oh. why would it be enabled tho? I Feel like this should be disabled by default
thank you tho. will keep that in mind
could be. tho its been reported a lot lately
like at least 5-6 reports and only on purpur
so maybe purpur enables it by default?
xD
nope ๐
i tried clean all these configurations on test server
and let them restore to defaults
and it worked, so i found this
Does "Statistic" support walk distance only in centimeters? ๐
wtf ๐
%statistic_walk_one_cm%
Cant find meters..
its just whatever statistics are supplied by the game
if u want metres, u can combine this placeholder with the math expansion and / by 100
^^^ what he said
Sadly i cant use 2 placeholders in leaderboard plugin
o? why not?
javascript
also
atleast i think i cant
but why its not in meters by default? ๐
download the math expansion btw
since its in meters ingame
ugh. that's what spigot gives, that's what we use xD
cant parse that sadly ๐
not working
wait. what leaderboard plugin are you using?
ok. so I think you can create a leaderboard with CM and then just display their name and their stats but in meters. let me double check
not holograms, but sign + head
with holograms it should works i think
oh
right
then javascript is the way. if you want to do signs and heads
will write a step by step tutorial. will take you a couple minutes at most to set up
- Download javascript expansion:
/papi reload```
2. Go to `plugins/PlaceholderAPI/javascript_placeholders.yml` and add:
walk_in_meters:
file: walk_in_meters.js```
3. Do a /papi reload
4. Go to plugins/PlaceholderAPI/javascript/walk_in_meters.js and add:
var cm = parseInt("%statistic_walk_one_cm%");
function getInMeters() {
return (cm/100).toFixed(0);
}
getInMeters();```
5. Use the placeholder `%javascript_walk_in_meters%` instead of `%statistic_walk_one_cm%` to make the leaderboards
6. Profit.
@stuck gulch ^^^
Noice, thank you so much it works
๐ yw
Vault Placeholder not working I used the command
/papi ecloud download Vault
It said it downloaded it but, it doesn't work
did you type /papi reload
right after?
do you have vault installed the spigot plugin
Hello i have problem i want to do leaderboard with ajLeaderboards becouse its not working
i see on my hologram only %ajlb_lb_vault_eco_balance_1st_value%
and I should see the top 1 for the amount of money
yes and yes
Please respect the rules, be patient and don't ping staff members!
oops-
Hey everyone! I've been looking at the scoreboard objectives expansion for PAPI. But I can't seem to find a couple of placeholders I need, similar to Vault's, %vault_eco_top_balance#% and %vault_eco_top_player_#% where the placeholder displays the score in the position of "#" or the player name in postion "#" is there anyway around this? Or can it be coded? Can I code it? Thanks! Please ping me if you respond ๐
I sadly dont
There is no time to wait! Ask your question @astral hedge!
try updating the expansion /papi ecloud download player not 100% sure if that command is used for updating since it doesn't say it on the wiki
I already solved it, thanks
I had old extensions downloaded
Does this line in the config for PlaceHolderAPI date_format: MM/dd/yy HH:mm:ss change the format for all placeholders installed that use dates/ hours mins & secs?
Does the expansion Statistics even support changing the format?
No. Each expansion has to add support
Hello, anyone know how the randomnumber expansion works ? I can put numbers where it is needed but nothing is displayed at final
%randomnumber_number%
%randomnumber_number_scale%
%randomnumber_number_min_max%
%randomnumber_number_min_max_scale%
%randomnumber_number_5_10% => no
%randomnumber_5_5_10% => no
%randomnumber_number_5_5_10_20% => no
%randomnumber_number_10% => no
%randomnumber_5_10% => no
i don't understand how this placeholder works
Ugh. Idk hoe that placeholder works either. I recommend you use the RNG expansion instead:
/papi ecloud download rng
/papi reload
@lament leaf
Could someone explain the differences between percent sign placeholders and curly bracket placeholders?
Like, why %player_displayname% doesn't work for some plugins while {player_displayname} does?
Although parsing %player_displayname% produces correct result?
ok, thx ๐
it's working, nice ! ๐
It's just preference i guess. We recommend % placeholders to be used and { placeholders to be used as a placeholder in placeholder solution. But people can use them as they want basically. Same stuff just looks different
The plugin developer yeah
O_o
So, there is neither standard nor the way to figure out whether %-ted and nested placeholders would work?
Well i mean there is a standard but people are weird and can't follow it xD
Most plugins just support %% placeholders and rely on the expansions to add {} placeholder support
Do these expansions act per plugin or on whole bunch of them?
I. e. if I install, say, VultureChat (which recognizes only {}), then I need to install a specific expansion to make it recognize %%?
anyone know anything about pinger + ptero
The pinger wont ping anything, always returns as offline
internal and external
can yo udo /papi pairse me %luckperms_prefix%
are you sure that the group you're in has a prefix at all then?
alrigt ๐
how would I go about opening an ecloud account?
@balmy marten ^
Hi I was just wondering how i could go about changing the format of a placeholder using javascript. I was trying to figure out how to change the format of the place holder %statistic_time_since_death% from 0d 9h 36m 2s to HH:mm:ss.
Hey, how can I use placeholders in item's lore?
I would like to ask if it is possible to create javascript placeholders on a 1.8 server?
Because it writes such an error: https://pastebin.com/3sKPK8N6
You have to update your java version to 15 or higher or use an older version of the javascript expansion
You would need a plugin for this. PlaceholderAPI is just a tool that plugins can use. its not meant to do that. I am afraid I don't know a plugin to do this either tho
Which version of javascipt should I use?
so if you can't update the java version just download the javascript expansion with the version 1.6.0. You can do so by doing /papi ecloud download javascript 1.6.0 then /papi reload
Thank you very much for your help in solving the problem. ๐
hello. so I got a question. what do you want to happen if hours go above 24? Do you still want it to use HH:mm:ss format?
so 230:20:45 would be 230 hours 20 minutes 45 seconds?
Yes, this is exactly what i had in mind! ๐
alright
alright @maiden wing I have not tested it but here's something I got: https://paste.helpch.at/oqenabiqir.js
Alright cool thank you! I'm super unfamiliar with the process of using javascript to modify placeholders.. do you think you could just run me through on how i would get this setup? I'm assuming i need to do /papi ecloud download javascript 1.6.0 then /papi reload & then place this code in a config somewhere?
- Download javascript expansion:
/papi reload```
2. Go to `plugins/PlaceholderAPI/javascript_placeholders.yml` and add:
```yml
time_since_death:
file: time_since_death.js```
3. Do a `/papi reload`
4. Go to `plugins/PlaceholderAPI/javascript/time_since_death.js` and add the code there: https://paste.helpch.at/oqenabiqir.js
5. Use the placeholder `%javascript_time_since_death%` instead of `%statistic_time_since_death%`
6. Profit.
btw. @maiden wing this will return 0 if you have 0 hours or minutes or seconds
so it could be something like 0:3:0
is that alright?
just tested it online and seems to work. hopefully it works just as well in the expansion
Works perfectly ๐ Thanks so much!
๐
idk if I need to put here javascript code, so I am trying to make a placeholder something like %javascript_sell_IRON_PICKAXE% and it will check if player has the iron pickaxe in his inventory, https://paste.helpch.at/helumicuti.js
the error that I get is in there
You might just want to use the checkitem expansion instead
you can do that with checkitem ๐ณ
Yeah. You can check if a player has an item you can also take that item or you can give it. Also you can check the amount as well
dm me a username and email you'd like
@trim mist
Please respect the rules, be patient and don't ping staff members!
Any idea why playertime is not counting players playtime
Maybe cause it hasn't been updated in like 3 years? Idk
Are the Bungeecord placeholders not working? I am using BungeeChat and trying to have the ServerNames be listed in a prefix. %bungee_<servername>%
I did download the pack from the ecloud. Does Papi need to be on the Bungeecord Proxy? Or the individual servers. I have them on the servers, just not on the Bungee itself right now.
Thanks, that worked by the way.
Please respect the rules, be patient and don't ping staff members!
WHy cant i have an proper play time since last join or something
can i somehow reset the player onlinetime on every join?
uhhh
can u give me anything i can google
please any solution how to just make it display the time playied since join not in total
%player_time_since_join%
If that was the case there would not be a papi ecloud download Bungee command to download placeholders for Bungeecord.
extenstion name since this doesnt work
Please respect the rules, be patient and don't ping staff members!
yeah. found out it doesn't exist. I'm making or at least attempting to make a javascript right now
So I am running a mohist 1.12.2 server with placeholder API, but often, when I try to start it, the entire server is just getting stuck. You cannot join and you don't get a response when sending console commands.
the latest line in the console is:
[Server thread/INFO] [Mohist]: [PlaceholderAPI] Placeholder expansion registration initializing...
that is why I am assuming that I did something wrong with my placeholderAPI setup or there is some problem with my papi install.
I am running V2.10.9 since I couldn't get some of my extensions working with newer versions
i bet theyll say upgrade to newer version and something with extension stuff
You can always hope for a better response tho... can't get worse than my one time asking for forge 1.12 support lol
Nothing major changing between .9 and .10 so not sure why you couldn't get stuff working on it.
Anyway
It's most likely getting caught up on a broken expansion
two out of 3 extensions were erroring consistently upon load ๐คทโโ๏ธ
Do you have the errors?
Also remove all your expansions and see if the server loads
I think it was some kind of website not reached, tho I would have to re-try to get the exact error again
I'll try that
https://paste.helpch.at/bugobohefu.js here. try this please.
loaded fine without the extensions... when I put them back in, it loaded fine as well this time
the exact same configuration is just sometimes loading and sometimes not...
you probably had an expansion you forgot about or didn't know about that was broken and was breaking the loader
Next time it fails grab the latest.log
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
the last line of the latest.log is the same as console, not really any more information given when it hangs up
We look at a number of things not just the last line
ok
i did
now it says since 50 minutes
i just rejoined
so
rejoining with installed plugin
lets see...
YES
yes.
it depends?
its buggy sometimes
the script
i restarted and joined, it says im online since half hour
yes?
ugh
well are you making a plugin to store the data? or what?
that's what it depends on
yeah. and this is the reason it is not in an expansion. bcz spigot is dumb. afraid you would need a custom plugin or something to keep track of that.
ugh. you would have to store it somewhere
which is why I thought you are making a plugin or something
bcz that's not an option
ugh nope
I don't
does anyone know of a placeholder that will add spacing around another placeholder if its not empty
ie transforming abc to abc but keeping empty as empty
Javascript. Kr changeoutput expansion
ah changeoutput looks like the one thanks
%changeoutput_equals_{placeholder}___ {placeholder} % is what you want btw xD
I know it looks weird but will make sense if you check the wiki and how it works
not really sure. I usually use Essentials's economy and if I need a custom one I use GemsEconomy.
try PlayerPoints maybe?
ugh. does gems economy not support mysql? I thought it does
oh. I see. it wasn't updated in a while
I can't download the placeholders of every plugin (1.17.1)
Hey so I looked all over and yet to find anything. But im trying to fine a place holder that uses checkitem_mat:stone
But i want it to check and show the message if the player has in between 1-10
So i need a lessthan or greater than API that works with Checkitem
javascript expansion
got a link to that?
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
here u go ^
doesn't look like i can use that as a placeholder though. looks like i need to write a file but the way im doing it is though a GUI that just uses placeholders
yes. you need to write a file, and there's placeholders that return the output from the file
so in that file you can calculate stuff, test stuff, etc. do javascript stuff basically and return an output
thru a placeholder
ya I this wont work for me then. I cant add javascript to this plugin. .I have a back way around it but way more work to it
wait what? you got it all wrong
the Javascript Expansion will take care the code, it will execute it etc, then it will give the output to placeholderapi in a placeholder which you can use in any plugin that supports PAPI
no other plugin will need to get in contact with the javascript part
just the expansion itself
The server expension, Tps placeholder doesn't work on 1.8.9?
It looks like the recentTps package wasn't in nms in 1.8.9?
is there any way i can get the tps now or no?
I believe you just have to update the expansion to latest
I just tried to update it and it said "No updates available for this expansion."
can you do /papi dump and send the generated link?
yeah. not really sure I'm afraid
you are on latest
I thought its a different problem you had
Hey I'm having issues with ParseOther on my scoreboard. I am using %parseother_{username}_{cmi_baltop_name_1}% to show a luckperms prefix followed by the name of someone in my CMI baltop. This currently shows up as blank so I am wondering what I need to replaceusername with and also why it is showing up as blank?
username is meant to be replaced - so you have to replace it with either a player name or a placeholder
Okay so i am having problems with the npc packets, so i am removing them from tab, but its also removing their skin
Is there anyway to prevent this?
nvm i fixed it, i had to put a 5s delay
updated to the lastest version and now placeholders seem to be acting weird
like now even the player expansion doesnt want to work
Here is my TAB Placeholders API errors file!
cant upload stuff
oh
note the log is long
update PAPI and all the expansions
i thought im up to date?
https://i.imgur.com/CI8spGm.png 2.10.10 is latest iirc
plus you might have to update the expansions also
i think it was velocity being mean
hm
Who knows, it keeps saying no permissions even though I have op perms
๐
Probably just my beginner velocity setup actin up
Hello a question what is the thing that I have to download to put the rank?
and of tags?
tags?
%deluxetags_tag%
Grax
clans ?
Please respect the rules, be patient and don't ping staff members!
what clans plugin?
What ?
this is on their spigot page
Grax uwu
Puppy
?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
/papi ecloud download server then /papi reload
did however fix my TPS in tab issue
do /papi dump and send over the generated link
go to plugins/PlaceholderAPI/expansions. You have 2 Player expansions ther:
Expansion-player.jar and Expansion-Player.jar
Delete them both and then execute the ecloud commands from above
you might have to do a /papi reload after you deleted tho
and after that execute the commands
download player instead?
oh wait
xD
well yeah. that too
but that has nothing to do with your issue
1 sec
oh. same as with Player expansion, you have 2 of Server.
delete all of 4 of em, do /papi reload
then do /papi ecloud download player then /papi ecloud download server then /papi reload
Ok ^-^
Tysm, any way to disable javaascript btw?
it keeps complaining example.js is empty when it generates it
just delete it from the expanions folder and do /papi reload
Ty ^-^
You're always so resourceful
Really appreciate it
yw ๐
hello
What deluxetags does not work for me is that I use it is another plugin for chat format as essentials chat
not sure I understand this?
Either I'm blind or it doesn't exist:
I need a placeholder that reruns true if inventory is full. I can't seem to find anything about this anywhere.
well. there is one that returns true if the inventory has empty slots and false if it is full. is that good enough?
Oh absolutely
%player_has_empty_slot%
there's also this %player_empty_slots%
that returns the slot amount
you need the Player extension.
cool
i with to cry all the all now. i feet sad about it you help me
well if you actually give something that can help me help you, then yeah maybe
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
yes bad boy too
I don't understand
how
I don't understand what you say ๐
be my sorry .
okay to be a happy boy
not a sad boy okay
okay
see you soon
bye
@blazing tartan English is not your native language?
Yes Dan
What language do you speak?
what complierler do i use for making a placeholder expansion for 1.16?
Hey also, is there a way to turn on global to show in the %worldguard_region_name%
Id like my expansion verified https://api.extendedclip.com/expansions/skippi/
cc @balmy marten
Please respect the rules, be patient and don't ping staff members!
lol
Author and Identifier don't match what's on the ecloud, therefore can't be verified as it would conflict the update notify ingame.
How do I fix it?
Update your code to reflect what information you put on the ecloud
I have a bungee server and the lobby server has placeholderapi and I downloaded the expansions but doing the parse command doesn't work for a placeholder such as %user% is there something I'm doing wrong?
Hey everyone! I need a bit of help wit6h adding my own scoreboard objectives placeholder. Heres my code: https://pastebin.com/6mn5vA31
However when I the placeholder to a scoreboard plugin, the right data (The highest score on a scoreboard in this instance) doesn't seem to be returned.
What is returned is: org.bukkit.craftbukkit.v1_16_R3.scoreboard.CraftScore@<and then a scramble of changing numbers here>
I'd appriate any advice on how to fix this issue!
Thanks!
(Please ping me when you respond)
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
DeluxeTags no longer requires an expansion! Go to plugins/PlaceholderAPI/expansions and delete the DeluxeTags expansion. Restart the server afterwards.
still doesnt woek after that it just prints %deluxetags_tag% on the phrase
DeluxeTags latest dev build (using that because 1.17.1) doesnt seam to support placeholders as after i've downloaded the ecloud of it and run /papi parse me %deluxetags_tag% it returns An internal error occured while attempting to peform this command
https://paste.gg/p/anonymous/fed9afec6dd448f994b77a5086f389c7
^ re-uploaded as a paste
do you know why I can't download any placeholders? plugin version: 2.10.10
PlaceholderAPI expansion is no longer needed. You will have to manually delete it. Go to
plugins/PlaceholderAPI/expansionsand delete theDeluxeTags-Expansion.jarfile and restart the server. Most of the times just /papi reload won't work! You will still be able to use PAPI placeholders btw, its just that there is no longer need for an external expansion.
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
@hidden wedge read this please ^. also make sure in plugins/PlaceholderAPI/config.yml you have the ecloud enabled ^^^^
so do i not need expansions at all?
yes. it is now built inside the plugin. the one from the ecloud is not needed anymore
%user% is not a valid placeholderapi placeholder? every placeholder has this format: %<identifier>_<something-else>%
Those placeholders worked before I moved to a bungee server
what placeholder. %user%? exactly that placeholder? I could bet on them not being placeholderapi placeholders
Could have been a placeholder for the scoreboard plug-in, but Iโm using a different one now (DeluxeHub)
well if you were using it just in scoreboard then yes. it was probably an internal placeholder. what placeholder are you trying to get right now?
Getting multiple ones, but the main three Iโm getting right now is
Date: such as 9/24/21
Username
And luckperms prefix, but I only have luckperms bungee installed, so I was thinking there was a placeholderapi for bungee.
Ok. So:
Date: %server_time_<format>%
Name: %player_name%
Nickname: %player_displayname%
Prefix: %luckperms_prefix%
Now. There is no bungee placeholderapi. So I believe you might not be able to use the placeholder/expansion
Also. for the time format, it uses java's simple date format https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
Here's an example:
%server_time_dd/MM/yy% would return 24/08/21
Ok thanks, then that means I have to install luckperms for each of my servers instead of downloading the bungee one so I can edit perms per server.
yes. I also recommend connecting them thru mysql. this will help out a lot so you can basically give global permissions/ranks, you could also give permissions from one server on another etc.
I would need to figure that out idk how to use mysql but Iโll look into on how to get that working.
well. you just need to get one set up and if you use Pterodactyl it does it for you in like 1 or 2 clicks.
after that it is easy to use since you just have to add it to the config.yml
Can someone remind me what command to check a placeholder in game?
/papi parse
Thx!
@vast anchor
- Download javascript expansion:
/papi reload```
2. Go to `plugins/PlaceholderAPI/javascript_placeholders.yml` and add:
```yml
random_string:
file: random_string.js```
3. Do a `/papi reload`
4. Go to `plugins/PlaceholderAPI/javascript/random_string.js` and add this code in there:
```js
var strings = ["word1", "word2", "word3"];
function pickRandom() {
return strings[Math.floor((Math.random()*strings.length))];
}
pickRandom();
- Use the placeholder
%javascript_random_string% - Profit.
you can add as many words/strings you want
is there a placeholder that will give you the tine untill a date so i could set the placeholder to %datetotime_25/8/2021% and it'll output 0d 8h Xm Xs (did that as an estimation for now manually)
%server_countdown
do i need to install an ecloud?
yes. install the server expansion
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.
Please respect the rules, be patient and don't ping staff members!
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
?papi-builds
You can find the latest PlaceholderAPI dev builds here: https://ci.extendedclip.com/job/PlaceholderAPI/
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
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
^^^
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
Please respect the rules, be patient and don't ping staff members!
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
Please respect the rules, be patient and don't ping staff members!
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
Use https://paste.helpch.at/ for errors, logs and configs. So we don't spam the discord.
@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
