#placeholder-api

150650 messages · Page 62 of 151

turbid tide
#

yes. install the server expansion

twin prawn
#

okay 😄

#

could you give an example, i tried /papi parse me %server_countdown_26.8.2021_26.8.2021% and it returned 0

turbid tide
twin prawn
#

ah

twin prawn
austere hawk
#

%server_countdown_dd.MM.yyyy_26.08.2021%

twin prawn
#

ooh

turbid tide
#

oh right

#

I used / instead of .

#

my bad

twin prawn
#

thats good tho! it works

#

😄

dusky hound
#

Guyys help

#

I need placeholder for per world kills and deaths

tight tartan
#

ummm

#

anyone know why

#

Evaluating javascript is taking quite a while in timing report?

elder flax
#

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.

tender vaporBOT
austere hawk
#

?papi-builds

tender vaporBOT
turbid tide
#

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();```
errant iron
#

var smiling_face_with_3_tears

turbid tide
errant iron
#

nashorn poopy

modern lynx
#

ajLeaderboards plugin can make numeric placeholder leaderboards, but you're gonna need the placeholder of ore count you want

untold adder
#

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

turbid tide
# errant iron nashorn poopy

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.

turbid tide
untold adder
#

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

austere hawk
#

Hello, i am using buildtools and i wanna add papi to my plugin

#

someone?

turbid tide
#

ugh. what does buildtools have to do with PAPI?

austere hawk
#

i done use either maven or gradle

#

dont

#

help

#

anyone

frank nova
smoky spoke
#

Is it a bug or not?
Using the enchantments option of the checkitem placeholder on enchanted books with the said enchants would say no

spice canopy
#

How to ask for a review of my expansion?

turbid tide
spice canopy
#

yeah

turbid tide
#

what's the name of it?

spice canopy
#

str

turbid tide
#

will give it a look when I've got a bit of free time.

spice canopy
#

ok, tks

turbid tide
#

alright @spice canopy. verified it.

spice canopy
#

tks. by the way, some functions seem to be the same as String... : (

turbid tide
#

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

valid bone
#

does anyone know what is this about?

#

sv on paper 1.17.1

turbid tide
#

update your server expansion

untold adder
#

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}}%

turbid tide
untold adder
#

yeah I found that, but I need to find a way somehow

turbid tide
#

javascript expansio

#

n

golden cloud
#

Hi!

turbid tide
#

hello

golden cloud
#

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}}%'

turbid tide
#

you can't have placeholder inside placeholders

golden cloud
#

oh

turbid tide
#

well. you can. but you can't have placeholder inside placeholder inside placeholder

#

which is what you have

golden cloud
#

anyway to make it?

turbid tide
#

javascript expansion maybe

golden cloud
#

Im sorry is that a expansion?

turbid tide
#

yes

tender vaporBOT
turbid tide
#

^^^

golden cloud
#

Can you give me an example?

#

Because im not quiet familliar with it

turbid tide
#
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>}%`
golden cloud
#

Ohhh

turbid tide
#

it explains everything

golden cloud
#

But theres nothing displaying

#

Yeah i figured it out

#

But nothing displaying

#

Its empty

turbid tide
#

can you show me your javascript_placeholders.yml file please?

golden cloud
#

ohh

#

i see

#

There you go thank you!

turbid tide
#

no problem 👍

untold adder
# turbid tide n

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()
turbid tide
#

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

untold adder
#

I tried that but I am getting the classic error

Caused by: com.koushikdutta.quack.QuackException: SyntaxError: expecting ';'
turbid tide
#

oh. just put ; at the end. 1 sec

#

there. edited

#

try that

untold adder
#

still the same error, damn this is confusing

fervent night
#

Not so long ago something like this worked for me "%RainbowColor_%cp-player-name%%"
How to achieve it now?

fervent night
#

@vast anchor In this case, it works, thanks a lot

pallid lark
#

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
turbid tide
pallid lark
#

I don't use essentials, i use Cmi

turbid tide
#

then delete the essentials expansion

#

go to plugins/PlaceholderAPI/expansions

pallid lark
#

oh omg, my bad, i'm so stupid xd

zealous shadow
#

is javascript-expansion placeholderapi 1.17

#

also is there placeholderapi bungee

turbid tide
#

Yes.

#

No

shrewd stream
#

BLITZ

#

hello

turbid tide
#

hello

shrewd stream
#

any ideas on why my expansion doesn't work?

turbid tide
#

they shouldn't come with the expansion !!

shrewd stream
#

mmmm

#

do you use intellj?

turbid tide
#

your expansion has 2.5 MB when it should have a few KB

#

yes I do.

shrewd stream
#

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?

turbid tide
#

ugh. I haven't used artifacts in over a year now

shrewd stream
#

oh no?

#

how should i build the project then?

turbid tide
#

well I Usually use gradle

shrewd stream
#

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?

turbid tide
#

can you show me a screenshot of how it looks when you go under artifacts?

#

@shrewd stream

shrewd stream
#

yeah sure

#

1 mo

untold adder
#
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 ';'
turbid tide
shrewd stream
#

all sent thru now

#

in your DM's @turbid tide

turbid tide
#

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

shrewd stream
#

cool

#

aha imgur blocked

#

ill upload to google drive

turbid tide
#

sure

turbid tide
#

ok. you see where it says Compile v ?

shrewd stream
#

yep

turbid tide
#

click that and tell me the available options

untold adder
shrewd stream
#

compile, test, runtime, provided

turbid tide
#

ok. select provided for both the options, apply and then build the jar

shrewd stream
#

done

#

im running the server now...

turbid tide
turbid tide
shrewd stream
#

Arg sorry

#

Mu computer just crashed I'll send thru the jar in a minute

turbid tide
#

👍

#
var material = args[0];
var placeholder = "checkitem_amount_mat:" + material;

function getAmount() {
    return "{" + placeholder + "}");
}
getAmount();``` @untold adder try this
shrewd stream
#

The thing doesn't like having a whole lotta programs open

turbid tide
#

it retunrs {checkitem_amount_mat:GRASS_BLOCK}?

#

@untold adder ^

untold adder
#

nah, just 0

turbid tide
#

wait. can I see the javascript you used?

#

like the placeholder

#

you tried

untold adder
#

/jsexpansion parse me %javascript_sellall_GRASS_BLOCKS%

#

DAMN

#

blocks

#

it's working

#

thanks again blitz

turbid tide
#

alright. 👍 you're welcome

shrewd stream
#

theres the jar

turbid tide
#

@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

turbid tide
shrewd stream
#

done done

turbid tide
#

welp. I guess provided did not work xD

shrewd stream
#

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

turbid tide
#

can you try runtime instead of provided btw?

#

and send a jar then?

shrewd stream
#

Sure sure

#

Let me just start my computer up cause it crashed again.😫

turbid tide
#

and send the jar in DMs after you compiled it

shrewd stream
#

cool

turbid tide
shrewd stream
#

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

silver minnow
turbid tide
#

dkim u know how artifacts and modules work?

silver minnow
#

nope

turbid tide
#

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

shrewd stream
#

cool

#

still didn't work

#

holy moly

#

wait

#

waaiiit

#

maybe

#

nope nvm

turbid tide
#

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

shrewd stream
#

damn ok

#

better get some sleep then aha

#

hey thanks so much for your help, 🙂 i really appreciate it

mighty drift
#

how to make a head menu?

tranquil relic
#

hello is there a placeholder we can get world tick time.

pine nebula
#

hi

#

what is the placeholder for ping for each players

#

%player_ping% is not working for me

fervent spire
#

Did you do /papi ecloud download Player then /papi reload

pine nebula
#

help plz

#

okay thanks

#

worked

random thistle
#

can some one help me
how to add money balance in title manager config
i use =
essentialsx
titlemanager
PlaceholderAPI

untold adder
turbid tide
#

wait let me double check that first

#

yes. @untold adderyour caffeine expansion requires java 11. doesn't support anything lower.

untold adder
#

hmm ok

untold adder
#

I was wondering what the heck does caffeine expansion comes from

#

I have to use a lower version

#

of Math

turbid tide
#

oh. yeah. makes sense xD. I guess caffeine is just a library the expansion uses

untold adder
#

and works!

turbid tide
untold adder
#

You know the pain when you make something for spigot/mc-market you have to make a compability for dinosaurs

turbid tide
#

xD

tender vaporBOT
turbid tide
#

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

harsh ore
#

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?

tardy glade
#

is there papi extension that can round numbers?

turbid tide
turbid tide
tardy glade
turbid tide
#

%math_0_{placeholder_here}%

tardy glade
#

great

#

thx

turbid tide
#

%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

austere hawk
#

what does the debug setting do?

turbid tide
austere hawk
#

lmao why is it there

#

did the player expansion put it?

turbid tide
#

I think expansions might be using it

austere hawk
#

also I think my plugin is broken lol

#

I mean it's shit anyway, to be expected

turbid tide
#

lmao

#

yeah @austere hawk. went to github1s and searched for debug mode in all files and its literally never used xD

warm plover
#

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

tight tartan
#

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

silver minnow
#

hm

tight tartan
#

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

silver minnow
#

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

tight tartan
#

👀 That was my guess

#

Since nashorn is nuked in JDK 15

silver minnow
#

iirc they still use nashorn

tight tartan
#

and we switch from 11 to 16 for 1.17

silver minnow
#

but they shade it

#

aka put it inside the plugin itself

tight tartan
#

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

urban sleet
#

hey

#

how can I get placeholderAPI and MvDWPlaceholders to make friends

#

cuz rn they hate each other

turbid tide
turbid tide
warm plover
turbid tide
warm plover
#

ah, just going to wait then. ty

turbid tide
#

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

warm plover
#

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

turbid tide
#

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

warm plover
#

oh alright

turbid tide
#

there's no reason to update I guess

warm plover
#

ty

turbid tide
#

just so you know tho

urban sleet
tender vaporBOT
urban sleet
#

then everything wasa chilling except vote party

#

then I installed placeholderAPI

#

and boom

#

hatred

turbid tide
#

have you checked the startup log? to see if there's any errors/warnings?

topaz mango
#

How do i get my scoreboard api to look like the one on testplugins.com for voteparty?

turbid tide
#

Can u send a screenshot of how it looks?

topaz mango
#

dmd you

turbid tide
#

Placeholders. Pretty sure they're listed on the wiki

topaz mango
#

but what about with the little bars in the bottom?

turbid tide
#

That uses the progress bar expansion from placeholder api

topaz mango
#

Okay thanks

turbid tide
#

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?

silver minnow
#

blitz y u still awake 👀 👀

turbid tide
#

Nah

#

Half asleep xD

#

Yes

tardy glade
#

how do you parse thru console?

#

as console i mean

turbid tide
#
"%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

marble flame
#

Who can help me that ecloud off vault not working?

subtle dove
#

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

untold adder
#

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
deep spade
#

Hi, i have a question. I use PlaceHolderAPI - can i overwrite the Boolean (true & false to something else)? If i can, where?

dusky hound
#

Hey guys I cant find top jobs plugin placeholders

tender vaporBOT
silver minnow
#

@remote verge umm.. isn't "PlayerReport" the plugin you should be questioning?

remote verge
#

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 ...

silver minnow
#

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)

remote verge
#

Sorry, I was confused, it was from Staff +

silver minnow
#

thonking the error says "PlayerReports"

remote verge
#

I got confused about the message 😂

silver minnow
#

🥲

remote verge
#

[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

silver minnow
#

ah

#

then you should contact StaffPlus+

#

sorry 🥲

remote verge
#

That was the problem I have xd

remote verge
visual pilot
visual pilot
#

Please ping me if anyone is willing to help me out, since I really want to use this expansion lol

visual pilot
proud tide
#

For some reason %statistic_time_played% is bugged

#

and displays more than 24 hours instead of stopping at it

robust oasis
#

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.

visual pilot
proud tide
#

but it has days in it?

sharp jay
#

@robust oasis I highly recommend you asking in there support server as far as I remember I think they have one

proud tide
#

a day is 24 hours

sharp jay
#

Correct so it should say 1 day 1 hour ect

visual pilot
#

Oh right, I didn't notice that lol

sharp jay
#

@proud tide MC version?

proud tide
#

1.16.5

#

The server is on 1.16.5 but has the latest PAPI

sharp jay
#

Hmm I tested it with 1.16.5 and didnt have issues before for a menu I made

visual pilot
#

Should I ping/contact the expansion's dev?

#

Am I even allowed to? 😅

untold adder
proud tide
#

and %statistic_time_played:hours% gives me 8

#

but %statistic_time_played% gives 9d 56h 14m

untold adder
sharp jay
#

@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

untold adder
#

It's minutes played I think

sharp jay
#

thats the issue

untold adder
#

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!

sharp jay
#

as far as I know statistic takes it straight from there

#

ya do what Nico said

proud tide
#

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

sharp jay
#

yes it will be fixed just a matter of time

untold adder
#

well I saw the source code and clearly it's a bug

untold adder
austere hawk
#

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

indigo grail
#

a... this maybe is the correct chanel to ask.... exist a form to "create" variables so that variables work like a placeholder?

austere hawk
#

wdym

#

Create your own placeholder?

#

@indigo grail

indigo grail
#

yea

#

that

austere hawk
#

Yah, you can do it with javascript

indigo grail
#

how? can you help me plz?

austere hawk
#

I can't teach you the whole javascript language lol

indigo grail
#

a

#

well, ok

indigo grail
#

qwq

#

i will try

untold adder
visual pilot
#

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

errant iron
#

it should be %str_replace_minecraft,mine,our%

visual pilot
#

Oh oof, the example should probs be changed then

errant iron
#

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
        * $  => %
        * \$ => $
        * \< => <
        * \> => >
        * \, => ,
        * \\ => \
        * */```
turbid tide
visual pilot
#

It's in the readme and also tab completed

errant iron
#

%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

visual pilot
#

Right, but %str_replace_minecraft_mine_our% is also on the readme

#

Anyways, thanks for letting me know lol

errant iron
#

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

visual pilot
#

They must've typed _ out of reflex or something lol

turbid tide
#

yeah. I just PRed a change.

errant iron
#

what a hero

turbid tide
#

xD

errant iron
#

did you also change the chinese version?

turbid tide
#

NO

untold adder
#

who are the devs of statistics?

#

expansion

turbid tide
#

don't believe there are any yet

visual pilot
#

This placeholder is pretty good, especially since making JavaScripts is such a pain xD

turbid tide
untold adder
turbid tide
#

ok Star. fixed Chinese version as well

turbid tide
#

make sure you're on the latest spigot release

untold adder
#

well idk maybe, I was on 1.16 when I tried

turbid tide
#

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.

errant iron
untold adder
#

hmm

turbid tide
#

yes. 1 year ago

#

that's why I'm saying. it was fixed

turbid tide
untold adder
#

oh ok!

turbid tide
#

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.

untold adder
#

oh so that was the issue

magic rock
#

hello guys, how to do something like %statistic_time_played_playername% ?

turbid tide
#

yeah. strange that they've let it there for 11 months

turbid tide
magic rock
#

Thank you Blitz!

turbid tide
proud tide
#

oh alright

#

thanks a lot!

untold adder
#

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();
vivid sparrow
#

@thorn thunder

thorn thunder
#

Could you send the complete stacktrace?

blazing pier
#

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.

turbid tide
#

you probably didn't override the persist method and returned true

#

@blazing pier

turbid tide
blazing pier
#

and for register i do that:

plugin = getPlugin(Plugins.PLACEHOLDER);
if (plugin != null && plugin.isEnabled()) {
    AuctionExpension auctionExpension = new AuctionExpension(this);
    auctionExpension.register();
}
turbid tide
#

a placeholder that can make a scoreboard? no

#

or what exactly u mean?

blazing pier
#

hooo, wheaa, thank to you

turbid tide
#

👍 yw

untold adder
turbid tide
#

google StopWatch plugins. Idk of any but I assume there's some out there.

#

not that I know of. no

turbid tide
#

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?

vivid sparrow
blazing pier
vivid sparrow
#

What is this question supposed to mean?

turbid tide
#

yeah lmao. the Vault expansion supports OfflinePlayers no matter where its used. or what exactly you need to know?

vivid sparrow
#

Test

turbid tide
#

they do not

#

indeed

dusky hound
uncut hollow
#

How to get placeholders to work for scoreboard revision?

warm oriole
#

can i do it so that if a placeholder is empty, it returns a different string?

magic rock
# warm oriole 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)

silver minnow
#

since a string is not a boolean

magic rock
silent sequoia
#

I’m just wondering but I have a question about discord if this is the correct server

deft kelp
#

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.

fervent spire
#

Either really. Both work really well.

#

Have you done /papi ecloud download Vault and /papi reload

hard basalt
#

hmmm

#

do u have the correct version of papi ?

#

and vault

#

and also luckperm

deft kelp
hard basalt
#

u on 1..8.8

deft kelp
hard basalt
#

latest is not what u need

#

2.10.5 is the correct version i think

deft kelp
hard basalt
#

yes

deft kelp
#

vault and papi

#

?

hard basalt
#

yes

deft kelp
#

ayt hopefully this works

warm oriole
#

How can i use js with 1.8.8?

turbid tide
#

you update to java 15 or newer and download the latest expansion

deft kelp
#

do I have to install an earlier version of the expansion aswell?

hard basalt
warm oriole
tender vaporBOT
turbid tide
warm oriole
#

ok

deft kelp
#

with the downgraded vault and papi'

turbid tide
#

@deft kelp what's your problem again?

turbid tide
#

can you do /papi dump and send the generated link here?

turbid tide
#

yes. I Think console also works

deft kelp
#

I'm using an older version of papi rn that doesn't have it

#

coz i thought downgrading would fix it

#

ill update again

turbid tide
#

oh please don't. very very rarely downgrade fixes anything

deft kelp
#

hold up im updating again

turbid tide
#

it looks to me like the expansion is there.

#

what does /papi reload do?

deft kelp
turbid tide
#

and nothing else? not even in console?

deft kelp
#

vault isn't detected

turbid tide
deft kelp
#

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

turbid tide
#

okok. can you please:

  1. stop server
  2. go to plugins/PlaceholderAPI/expansions
  3. delete Expansion-vault.jar
  4. go to: https://api.extendedclip.com/expansions/vault/
  5. press: download latest
  6. get what you just downloaded and put it in plugins/PlaceholderAPI/expansion
  7. start the server
deft kelp
turbid tide
#

please do. and if it doesn't work, send the latest generated startup log

hard basalt
#

is the latest papi not support 1.8 ?

deft kelp
hard basalt
turbid tide
#

well. a new one must've generated. so I want that one

deft kelp
#

ill paste the new one

deft kelp
#

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

turbid tide
#

yeah. is the Vault plugin you have the latest from spigot by any chance?

deft kelp
turbid tide
#

so not a development build?

deft kelp
#

I can reinstall if you want

turbid tide
#

please try. bcz I'm losing my minds here xD

deft kelp
#

latest version is 1.7.3 ryt?

turbid tide
#

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

turbid tide
deft kelp
#

but I think that also means that I'll have to install the expansion for 1.8?

#

or is it the same

turbid tide
#

hmm. not sure actually

deft kelp
#

Placeholder API should work in 1.8 right?

#

hmm

turbid tide
#

yes

deft kelp
#

I'll try to dl the expansion for 1.8?

turbid tide
#

sure. but Idk which one that is

deft kelp
#

umm does vault with placeholder api work in 1.8 in general?

#

or I'll have to use another plugin?

turbid tide
#

placeholderapi does. idk about vault

deft kelp
#

@turbid tide dyk other peeps that were able to use vault in 1.8 with PAPI

#

?

#

or they used an alternative

turbid tide
#

not sure actually. never encountered this before now

austere hawk
#

Is bedwars1058 still available with the ecloud?

deft kelp
#

out of nowhere

#

after I downloaded luckperms for spigot

#

now the vault expansion works???

#

i guess my problem is solved lmaoo

turbid tide
#

wait. @deft kelp you had no permission plugin?

deft kelp
#

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?

turbid tide
#

it might. not sure

deft kelp
#

well tys for all of your help!

turbid tide
#

@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

deft kelp
turbid tide
#

yeah.

deft kelp
turbid tide
#

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

turbid tide
#

nah. that's how you enable all the baltop placeholders

#

then you can use the placeholder you used before

austere hawk
#

where i can ask for help?

subtle rivet
#

Is there a placeholder for accurate amount of sugar-cane harvested?

turbid tide
subtle rivet
#

And cactus / other farming items that are usually harvested from the bottom

stone edge
#

(i think)

trim mist
#

The regular statistic ones are based upon whatever Minecraft tracks so it depends on if it counts that all or not.

subtle rivet
#

I see it, but I don't think the sugar-cane and cactus above it counts haha

stone edge
#

but not when you break from bottom

subtle rivet
#

Lemme test it again

turbid tide
#

pretty sure it does not

subtle rivet
#

Tryna make quests but setting up any form of tracking for cane or cactus is horrid

trim mist
#

Yeah if MC doesn't track every block in that, then statistics won't show it. Most likely would have to custom track that.

subtle rivet
#

:( i've dodged the solution for too long

#

Can you upload singular placeholders lol

austere hawk
#

@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?

subtle rivet
#

Might upload that and cactus as two placeholders

trim mist
#

Well yeah, expansions can have as many placeholders as you want. Just create a new one.

subtle rivet
#

Huh, well it ain't returning anything on the stats one

trim mist
#

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.

subtle rivet
#

/papi parse TombSpyder %statistic_break_item:SUGAR_CANE% That's returning zero, am I being dumb?

turbid tide
#

it might be that no stats are recorded

#

any chance that you are on Purpur?

subtle rivet
#

On paper

trim mist
#

Pretty sure break item for for like item in hand broken.

austere hawk
#

@turbid tide Me?

turbid tide
#

ohh yeahhh. its mined what you want to use Amis

turbid tide
trim mist
#

That or a plugin is modifying the class loader because it uses a line of code to get the version in that expansion iirc.

austere hawk
#

@turbid tide But what expansion? xD

turbid tide
#

your server expansion

#

or if not that, what glare said ^^

trim mist
#

It's still in statistic expansion.

austere hawk
#

Sorry i dont understand

subtle rivet
#

I'd take it getting accurate tracking for this would require a plugin? and not just an expansion?

#

Wait no, it wouldn't right?

trim mist
#

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.

subtle rivet
#

So the expansion would require a plugin to work also

#

I didn't realise papi did not handle any storage

#

That complicates things

austere hawk
#

hehehe

turbid tide
#

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

vivid sparrow
#

@turbid tide just put the console sender in that method as well lol xd

turbid tide
trim mist
subtle rivet
#

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?

trim mist
#

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.

austere hawk
#

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();
turbid tide
#

also

#

you're setting stat

#

but never returnng anything

#

you should return stats probably

#

instead of setting it in a local variable?

austere hawk
#

I mean did I do good the ifs?

turbid tide
#

hmmm

#

could probably be improved

austere hawk
#

Can you help me to improve it? It's my first time doing this LOL

turbid tide
#

hmm. what exactly are you trying to do?

austere hawk
#

Idk javascript, I know just a bit of c++ lol

turbid tide
#

so if the state is waiting or starting you return a custom javascript

#

if its ingame another one

turbid tide
#

I can test it tho in a second as well

#

yup

#

seems like its working

austere hawk
#

Thankuuu

turbid tide
#

yw 👍

untold adder
#

I got that code working with some Java but I want to do something with BukkitPlayer

grand zenith
#

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

turbid tide
#

can we see your current script? @grand zenith

turbid tide
turbid tide
#

why are you doing that entire thing? is that a special symbol? or what. bcz in the paste bin they all look the same

grand zenith
#

special char

#

in a texture pack

turbid tide
#

anyways. few things you can improve is have just 1 check per if statement

grand zenith
#

how

turbid tide
#
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

grand zenith
#

ok thx

#

it's the same resources usage

turbid tide
#

yeah. didn't expect it to increase significantly

junior musk
#

🤔

#

oh wut

#

that actually exist

untold adder
#

case "world_time":
return String.valueOf(p.getWorld().getTime());

#

I was looking into the code and saw that

junior musk
#

weird that it isn't there

slim dawn
#
[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?

grand zenith
grand zenith
#

and now it's not consuming like anything

#

👍

turbid tide
untold adder
#

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();
silver minnow
#

that isn't java

slim dawn
#

Or a redirect to a previous messages where this fix was talked about

silver minnow
#

but @untold adder that's because you need to convert the string (text) to a number

untold adder
silver minnow
silver minnow
#

maybe someone more experienced in js can help.. but i know enough that it's erroring bc ur comparing a string to an int ¯_(ツ)_/¯

untold adder
#

well that's true but it's pain, I tried a lot of alternatives, but no succes, kinda P A I N

jade cove
#

Hello, why when i do /papi reload, all placeholder plugin with papi integration are broken ? is it a bug or is it normal ?

magic rock
edgy moth
unique leaf
#

Is there a PAPI Placeholder that shows the amount of "jumps" all the players on the server ever "jumped" that includes offline players?

silver minnow
trim mist
#

I mean isn't there a statistic for times jumped? Just loop all offline players, but that can get kinda resource intensive.

silver minnow
#

oh

#

maybe

#

¯_(ツ)_/¯

#

oh wait

#

d;spigot Statistic%jump

ionic fractalBOT
magic rock
#

how that works

#

how it knows player jump

silver minnow
#

client prob sends info to server

magic rock
silver minnow
#

says "update this statistic to jump" idk

magic rock
#

wait, where are the statistic saved? in world folder?

silver minnow
#

🤷

#

also why are reactions not allowed in here ;-;

#

these permissions are weird

#

(besides services/special/hidden channels)

trim mist
#

Yeah statistics are saved in player data in worlds iirc.

magic rock
#

its in world/stats/uuid.json just checked

#

but why its saving jumps lol

trim mist
#

Idk. Just a statistic Minecraft figured to add?

random thistle
#

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

ionic fractalBOT
fierce crane
#

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?

austere hawk
#

Hi

#

need help

fervent spire
#

with? Can't help you unless you tell us what you need help with.

austere hawk
#

how do i dounload on placeholder api?

#

it dosnt seem to work

fervent spire
#

What?

inland moat
#

tokenmanager placeholders do not work, should i contact TM developer?

fervent spire
#

"do not work" is not a clear description of the issue.

inland moat
#

it just displays %tm_tokens% and not the amount of tokens

fervent spire
#

What does /papi parse me %tm_tokens% show

inland moat
#

%tm_tokens%

inland moat
#

is there a way to fix it?

slim dawn
#

How do I update player expansion?

#

I have this spam that I can't get rid of

turbid tide
#

/papi ecloud download player then /papi reload

slim dawn
#

Doesn't fix anything for me.

turbid tide
#

/papi dump and send the generated link here

slim dawn
turbid tide
slim dawn
#

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.

turbid tide
#

yes. temporarely. until you use the %player_ping% placeholder again

untold adder
fallen shard
#

Hello I'm looking for 2 different placeholders however I can't seem to find them (I may be blind)

  1. 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

untold adder
#
  1. Checkitem expansion
  2. math expansion with JavaScript
#

Check the placeholders wiki for checkitem

fallen shard
#

Ty

sacred cave
#

how I can to register new extends PlaceholderHook?
im tried this

            PlaceholderAPI.registerPlaceholderHook(this, new Placeholders());
turbid tide
#
new Placeholders().register();```
sacred cave
#

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;
    }
}
turbid tide
#

ugh. idk what wiki you've read but that is not a thing anymore

#

read this please

sacred cave
#

thx

sacred cave
#

how I can check if the placeholder exsits?
ringsfound

untold adder
#

/papi parse me %pluginname_ringsfound%

turbid tide
#

not plugin name. identifier.

untold adder
#

yes

tardy glade
#

is there any extension that can create countdowns?

vivid sparrow
#

server

midnight egret
#

Displaying 40m, 27s
I want to change 40dk, 27sn

untold adder
untold adder
#

you are using java 8, download a lower version of javascript

midnight egret
#

how i download lower version of javascript

untold adder
#

firstly delete the javascript expansion by going into the expansions folder from PlaceholderAPI, then papi reload, then /papi ecloud download JavaScript Version(number)

midnight egret
untold adder
#

1.6.0

midnight egret
#

ok

midnight egret
errant iron
#

🥲

raw panther
#

^ reason to not use papi js

#

1.6 gb of ram usage

thorn thunder
#

Use nashorn instead if that helps

#

You dont have to use quickjs

raw panther
#

not possible on jdk 16

#

solution was just to recode the placeholders in java and it fixed the performance issues

thorn thunder
#

It uses nashorn by default

untold adder
#

Well Java for sure remains the best for placeholders, but why do you need to make a plugin for 1 simple placeholder

silver minnow
turbid tide
#

@thorn thunder. Performance issues have been reported quite a bit on both quickjs and nashorn. Couldn't really gather more information I'm afraid.

thorn thunder
#

I know the issue

#

Found the fix

#

But struggling to find time to actually implement it

#

It should be fine mostly with nashorn tho

turbid tide
#

Oh. Ok then.

thorn thunder
turbid tide
#

Oh. Why? xD

thorn thunder
#

Absolutely no idea 🥲

regal orchid
#

Cant post images here :(

tender vaporBOT
regal orchid
#

I dont think the rainbow placeholder is working xd

untold adder
#

Are you using Animation expansion?

jaunty zephyr
#

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

umbral karma
#

Hi

#

How i can ask for upload my expansion to ecloud?

hidden panther
#

🤷‍♂️

untold adder
turbid tide
turbid tide
tender vaporBOT
grand zenith
jaunty zephyr
#

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"

turbid tide
#

Then probably yes

sand gulch
#

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?

tender vaporBOT
sand gulch
#

Parse command:

/papi parse me %server_countdown_kk.dd.MM.yyyy_12.18.09.2021%

jaunty zephyr
#

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

regal orchid
#

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?

balmy marten
safe oriole
#

Guys Help Plz my placeholder in holograms are not working ?!!

safe oriole
umbral karma
#

@balmy marten Ok I'll send you a message

umbral karma
#

Oh sorry for @

#

I can't dm you

balmy marten
#

Accept my friend request and you will be able to

modern lynx
#

Why it does not work? What is the problem?

#

Placeholders doesn't work for username section in ParseOther

turbid tide
#

also. because you can't have % inside placeholders.

modern lynx
#

ok

modern lynx
#

%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?

sharp jay
#

try using %formatter_replace_<target>_<replacement>_<text>%

vivid sparrow
#

It might not work

#

Could try js

#
function replaceDashes() {
    return BukkitPlayer.getUniqueId().toString().replace('-', '')
}
replaceDashes()```
turbid tide
#

also. it doesn't make the UUID like that. That is the UUID.

timid fox
#

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?

modern lynx
safe oriole
#

Guys help I want to make leaderboards using placeholders anyone know how I can do it