#placeholder-api

1 messages ยท Page 170 of 1

turbid tide
#

oh ok nvm then i GUESS

#

guess*

#

what's this?

latent garden
#

If there is not a branch with last commit like week ago they are all same

errant iron
#

EOL for Java 8

turbid tide
#

wait. is 7 not coming this september?

#

wait

#

17*

#

that's what I meant

errant iron
#

it is

turbid tide
#

or does that not have anything to do with EOL?

#

of a java version

errant iron
#

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

turbid tide
#

I hope minecraft requires 17 for 1.18

latent garden
#

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)

errant iron
#

Every new minecraft version will require the latest java version from now on

errant iron
#

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

latent garden
#

Any idea why Javascript expansion giving me 7.0 for Javascript return parseInt(7)? ๐Ÿ˜„

turbid tide
#

return parseInt(7).toFixed(0)

#

js is weird. that's been an issue for a while

#

couldn't find the cause at all

latent garden
#

Never seen that ๐Ÿ˜„ Maybe its Nashorh thing

#

thx btw

turbid tide
#

yeah. never had that problem anywhere else other than the js expansion

#

so not really sure

untold adder
#

like to return it as a number, like you know the /time set 13000, I want that type of value

turbid tide
#

yeah. then you'd have to use javascript to convert it I believe

restive anchor
#

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.

next oasis
#

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

slow crystal
#

yes

#

i have a wiki that you might find helpful

#

but

#

well

turbid tide
north crane
#

hi

#

how can i format 10000 to be 10k is there an expansion for that?

warm topaz
#

use the formatter expansion

north crane
#

what option would I use

north crane
#

But not turning it to like 1.2M

north crane
#

@warm topaz ๐Ÿ˜ 

tender vaporBOT
turbid tide
austere hawk
#

Does anybody know a plugin that can convert script placeholders into papi placeholders?

next oasis
zenith pebble
#

What do you mean

tender vaporBOT
turbid tide
#
public String getIdentifier() { return "skript"; }``` needs to match the name of the expansion you've set on the ecloud
zenith pebble
#

How do I fix it?

turbid tide
#

Either you update the name on ecloud or you update the expansion to have the identifier skippi instead of skript

zenith pebble
#

I would of named it skript but there already is a skript. It's outdated and my expansion fixes it.

pure wraith
#

How can I make a placeholder that get the block at a specific coordinates with JavaScript expansion like %block_x_y_z%

knotty kite
trim mist
#
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.

knotty kite
tender vaporBOT
trim mist
#

You can post it here and someone could look at it.

foggy wraith
#

Is there a way to add the player count of two servers together through the BungeeCord expansion pack?

foggy wraith
#

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)

lilac oxide
#

No [percision]

foggy wraith
#

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

turbid tide
turbid tide
turbid tide
# knotty kite https://spark.lucko.me/ou4WmwIldN

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.

turbid tide
wary lake
#

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

you need to install HolographicDisplay, HolographicExtension and ProtocolLib

#

to get it to work in HD

wary lake
#

ah thanks

pure wraith
#

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();

turbid tide
#

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
pure wraith
#

Ok will do thanks

knotty kite
tender vaporBOT
turbid tide
#

and it will list plugins from worse to best

#

and in the time you generated the profile, papi did ok

#

no problems

turbid tide
#

a script placeholder? what type of script?

turbid tide
#

what is coded in. yeah.

thorn thunder
#

Elara ofc

#

my_script.elr

stuck gulch
#

Hi

turbid tide
#

hello

stuck gulch
#

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

turbid tide
#

what's your server version?

stuck gulch
#

1.17.1

turbid tide
#

any chance you use purpur?

stuck gulch
#

yes, im usign purpur

turbid tide
#

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.

stuck gulch
#

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?

turbid tide
stuck gulch
#

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: {}```
turbid tide
#

thank you tho. will keep that in mind

stuck gulch
#

Propably my dev enabled that to "optimize" server

#

๐Ÿ˜‚

turbid tide
#

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

stuck gulch
#

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

warm topaz
#

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

turbid tide
#

^^^ what he said

stuck gulch
#

Sadly i cant use 2 placeholders in leaderboard plugin

turbid tide
#

o? why not?

warm topaz
#

javascript

turbid tide
#

also

stuck gulch
#

atleast i think i cant

turbid tide
#

btw

#

you should be able to

#

%math_0_{statistic_walk_one_cm}/100%

#

try using this

stuck gulch
#

but why its not in meters by default? ๐Ÿ˜„

turbid tide
#

download the math expansion btw

stuck gulch
#

since its in meters ingame

turbid tide
#

ugh. that's what spigot gives, that's what we use xD

stuck gulch
#

not working

turbid tide
#

wait. what leaderboard plugin are you using?

turbid tide
#

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

stuck gulch
#

not holograms, but sign + head

stuck gulch
turbid tide
#

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

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

stuck gulch
turbid tide
#

๐Ÿ‘ yw

scarlet glade
#

Vault Placeholder not working I used the command
/papi ecloud download Vault
It said it downloaded it but, it doesn't work

sharp jay
#

did you type /papi reload

#

right after?

#

do you have vault installed the spigot plugin

short timber
#

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

scarlet glade
tender vaporBOT
scarlet glade
#

oops-

shrewd stream
#

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 ๐Ÿ™‚

sharp jay
#

It can be coded yes

#

meaning you can code it if you want

shrewd stream
#

ok

#

You don't know of any expansions or things that may have already done this?

sharp jay
#

I sadly dont

shrewd stream
#

alg

#

thank you for your help! ๐Ÿ™‚

astral hedge
#

hi

#

i need help

tender vaporBOT
#

There is no time to wait! Ask your question @astral hedge!

astral hedge
#

I can't use %player_ping%

austere hawk
#

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

astral hedge
maiden wing
#

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?

maiden wing
#

Does the expansion Statistics even support changing the format?

turbid tide
lament leaf
#

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

turbid tide
#

Ugh. Idk hoe that placeholder works either. I recommend you use the RNG expansion instead:
/papi ecloud download rng
/papi reload

#

@lament leaf

vital widget
#

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?

lament leaf
#

it's working, nice ! ๐Ÿ™

turbid tide
vital widget
#

Whose preference?

#

Plugin developers'?

turbid tide
#

The plugin developer yeah

vital widget
#

O_o

#

So, there is neither standard nor the way to figure out whether %-ted and nested placeholders would work?

turbid tide
#

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

vital widget
#

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

heady urchin
#

anyone know anything about pinger + ptero

#

The pinger wont ping anything, always returns as offline

#

internal and external

turbid tide
#

can yo udo /papi pairse me %luckperms_prefix%

#

are you sure that the group you're in has a prefix at all then?

#

alrigt ๐Ÿ‘

umbral loom
#

how would I go about opening an ecloud account?

turbid tide
#

@balmy marten ^

maiden wing
#

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.

halcyon pollen
#

Hey, how can I use placeholders in item's lore?

lean seal
#

I would like to ask if it is possible to create javascript placeholders on a 1.8 server?

turbid tide
turbid tide
lean seal
#

Which version of javascipt should I use?

turbid tide
lean seal
#

Thank you very much for your help in solving the problem. ๐Ÿ™‚

turbid tide
maiden wing
turbid tide
#

alright

maiden wing
#

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?

turbid tide
# maiden wing Alright cool thank you! I'm super unfamiliar with the process of using javascrip...
  1. 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?

maiden wing
#

Perfect ๐Ÿ˜„

#

You have been way more than helpful, i appreciate it so much!!

turbid tide
#

just tested it online and seems to work. hopefully it works just as well in the expansion

maiden wing
#

Works perfectly ๐Ÿ˜„ Thanks so much!

turbid tide
#

๐Ÿ‘

untold adder
#

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

turbid tide
untold adder
#

you can do that with checkitem ๐Ÿ˜ณ

turbid tide
#

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

untold adder
#

damn

#

thanks

#

I will look into it Hype

balmy marten
heady urchin
#

@trim mist

tender vaporBOT
heady urchin
#

Any idea why playertime is not counting players playtime

trim mist
#

Maybe cause it hasn't been updated in like 3 years? Idk

mystic citrus
#

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.

tender vaporBOT
regal flint
#

WHy cant i have an proper play time since last join or something

regal flint
#

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

mystic citrus
#

If that was the case there would not be a papi ecloud download Bungee command to download placeholders for Bungeecord.

regal flint
tender vaporBOT
turbid tide
regal flint
#

oh

#

it should exist by now somewhere i wonder why not ;-;

solid moss
#

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

regal flint
#

i bet theyll say upgrade to newer version and something with extension stuff

solid moss
#

You can always hope for a better response tho... can't get worse than my one time asking for forge 1.12 support lol

balmy marten
#

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

solid moss
balmy marten
#

Do you have the errors?

#

Also remove all your expansions and see if the server loads

solid moss
solid moss
#

the exact same configuration is just sometimes loading and sometimes not...

turbid tide
#

you probably had an expansion you forgot about or didn't know about that was broken and was breaking the loader

balmy marten
#

Next time it fails grab the latest.log

tender vaporBOT
#
FAQ Answer:

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.

solid moss
#

the last line of the latest.log is the same as console, not really any more information given when it hangs up

balmy marten
#

We look at a number of things not just the last line

solid moss
#

ok

regal flint
#

a

#

how to use the script

turbid tide
#

and use the %statistic_time_since_join% placeholder

regal flint
#

oh i have to update it?

#

im not online since 50 minutes

turbid tide
#

yes.

#

delete old expansion and download this one ^

regal flint
#

i did

#

now it says since 50 minutes

#

i just rejoined

#

so

#

rejoining with installed plugin

#

lets see...

#

YES

turbid tide
#

yes what?

#

yes it works?
yes it doesn't work?
yes what? xD

balmy marten
#

yes.

turbid tide
#

ah. that makes sense

#

my bad

turbid tide
#

it depends?

regal flint
#

its buggy sometimes

#

the script

#

i restarted and joined, it says im online since half hour

turbid tide
#

yes?

#

ugh

#

well are you making a plugin to store the data? or what?

#

that's what it depends on

turbid tide
#

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

untold crater
#

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

turbid tide
untold crater
#

ah changeoutput looks like the one thanks

turbid tide
#

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

hidden wedge
#

I can't download the placeholders of every plugin (1.17.1)

full lily
#

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

full lily
#

got a link to that?

tender vaporBOT
#
Javascript
Useful Links & Information:

An expansion that allows you to use javascript for processing
โ€ข Wiki
โ€ข Community Scripts
โ€ข GitHub
โ€ข eCloud

turbid tide
#

here u go ^

full lily
#

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

turbid tide
#

so in that file you can calculate stuff, test stuff, etc. do javascript stuff basically and return an output

#

thru a placeholder

full lily
#

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

turbid tide
#

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

runic nebula
#

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?

turbid tide
runic nebula
turbid tide
#

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

runic nebula
#

Blitz?

turbid tide
#

yeah. not really sure I'm afraid

#

you are on latest

#

I thought its a different problem you had

exotic dew
#

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?

silver minnow
runic nebula
#

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

edgy moth
#

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

silver minnow
edgy moth
#

i thought im up to date?

silver minnow
edgy moth
#

odddd

#

Alr!

#

the version command for me wasnt working

silver minnow
edgy moth
#

i think it was velocity being mean

silver minnow
#

hm

edgy moth
#

Who knows, it keeps saying no permissions even though I have op perms

silver minnow
#

๐Ÿ‘€

edgy moth
#

Probably just my beginner velocity setup actin up

steel trail
#

Hello a question what is the thing that I have to download to put the rank?

silver minnow
#

%vault_rank% or %vault_prefix% maybe

steel trail
#

Grax

#

:>

#

<3.

steel trail
silver minnow
#

tags?

steel trail
#

deluxetags

#

%tags%

turbid tide
#

%deluxetags_tag%

steel trail
steel trail
tender vaporBOT
# steel trail clans ?
Hey!

Please respect the rules, be patient and don't ping staff members!

turbid tide
steel trail
turbid tide
#

this is on their spigot page

steel trail
#

Grax uwu

austere hawk
#

Puppy

keen mica
#

?paste

tender vaporBOT
#
FAQ Answer:

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

keen mica
#

how does one solve this

turbid tide
keen mica
#

did however fix my TPS in tab issue

turbid tide
#

do /papi dump and send over the generated link

turbid tide
#

you might have to do a /papi reload after you deleted tho

#

and after that execute the commands

keen mica
turbid tide
#

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

keen mica
#

Ok ^-^

keen mica
#

it keeps complaining example.js is empty when it generates it

turbid tide
keen mica
#

You're always so resourceful

#

Really appreciate it

turbid tide
#

yw ๐Ÿ‘

steel trail
#

hello

#

What deluxetags does not work for me is that I use it is another plugin for chat format as essentials chat

neon nymph
#

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.

turbid tide
neon nymph
#

Oh absolutely

turbid tide
#

%player_has_empty_slot%

#

there's also this %player_empty_slots%

#

that returns the slot amount

neon nymph
#

Sweet

#

And that's caked in? I don't need an extension?

turbid tide
neon nymph
#

Oh okay

#

Thank you so much!

blazing tartan
#

hi

#

i need help right now

junior musk
#

cool

blazing tartan
#

i with to cry all the all now. i feet sad about it you help me

junior musk
#

well if you actually give something that can help me help you, then yeah maybe

#

?help

tender vaporBOT
#
FAQ Answer:
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait

Source

blazing tartan
#

okay

#

not 2 chat i in be mean to me too.

#

and bad word too

#

to me

junior musk
#

uh

#

what?

blazing tartan
#

yes bad boy too

junior musk
#

I don't understand

blazing tartan
#

how

junior musk
#

I don't understand what you say ๐Ÿ˜•

blazing tartan
#

be my sorry .

#

okay to be a happy boy

#

not a sad boy okay

#

okay

#

see you soon

#

bye

neon nymph
#

@blazing tartan English is not your native language?

blazing tartan
#

Yes Dan

neon nymph
#

What language do you speak?

shrewd stream
#

what complierler do i use for making a placeholder expansion for 1.16?

waxen whale
#

Hey also, is there a way to turn on global to show in the %worldguard_region_name%

blazing tartan
#

ok

#

thank you for that

#

lol

#

So what

zenith pebble
tender vaporBOT
silver minnow
balmy marten
balmy marten
#

Update your code to reflect what information you put on the ecloud

drifting glade
#

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?

shrewd stream
#

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)

tender vaporBOT
#
Possible Solution Found:

DeluxeTags no longer requires an expansion! Go to plugins/PlaceholderAPI/expansions and delete the DeluxeTags expansion. Restart the server afterwards.

twin prawn
# tender vapor

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

hidden wedge
#

do you know why I can't download any placeholders? plugin version: 2.10.10

turbid tide
tender vaporBOT
#
FAQ Answer:

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.

turbid tide
#

@hidden wedge read this please ^. also make sure in plugins/PlaceholderAPI/config.yml you have the ecloud enabled ^^^^

twin prawn
#

so do i not need expansions at all?

turbid tide
twin prawn
#

ah

#

yep works now ๐Ÿ˜„

turbid tide
drifting glade
#

Those placeholders worked before I moved to a bungee server

turbid tide
#

what placeholder. %user%? exactly that placeholder? I could bet on them not being placeholderapi placeholders

drifting glade
#

Could have been a placeholder for the scoreboard plug-in, but Iโ€™m using a different one now (DeluxeHub)

turbid tide
#

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?

drifting glade
#

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.

turbid tide
# drifting glade Getting multiple ones, but the main three Iโ€™m getting right now is Date: such a...

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

drifting glade
#

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.

turbid tide
drifting glade
#

I would need to figure that out idk how to use mysql but Iโ€™ll look into on how to get that working.

turbid tide
#

after that it is easy to use since you just have to add it to the config.yml

cursive ermine
#

Can someone remind me what command to check a placeholder in game?

turbid tide
#

/papi parse

cursive ermine
#

Thx!

turbid tide
#

@vast anchor

  1. 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();
  1. Use the placeholder %javascript_random_string%
  2. Profit.
#

you can add as many words/strings you want

twin prawn
#

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)

twin prawn
turbid tide
#

yes. install the server expansion

twin prawn
#

okay ๐Ÿ˜„

twin prawn
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
#
Hey!

Please respect the rules, be patient and don't ping staff members!

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
#
Javascript
Useful Links & Information:

An expansion that allows you to use javascript for processing
โ€ข Wiki
โ€ข Community Scripts
โ€ข GitHub
โ€ข eCloud

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
#
Hey!

Please respect the rules, be patient and don't ping staff members!

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 I had mvdw
Hey!

Please respect the rules, be patient and don't ping staff members!

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