#placeholder-api

1 messages · Page 180 of 1

turbid tide
#

well. I guess its not possible then. the thing is the server expansion uses java's Date - Date operation. so whatever that returns, the server expansion returns. I'm not very good with those dates

lyric hollow
#

is there a way to get placeholderapi dev builds that work for 1.18

leaden kraken
#

check pins

#

@lyric hollow

lyric hollow
#

are expansions supposed to work with the dev version?

#

none of mine are for some reason

errant iron
#

Wouldn't really be much of a plugin without expansions lol

lyric hollow
#

yeah lol

#

idk whats wrong then

#

got it workin

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.

sonic stratus
#

Hello! Can anyone tell me when PAPI will be ready for 1.18?

sonic stratus
#

👀

tender vaporBOT
turbid tide
#

here @sonic stratus ^^

sonic stratus
#

thx ❤️

fervent spire
scarlet valve
#

Is the Math expansion working

#

Flr some reaspn when i download it

#

And reload

#

It crash all the placeholders

warm topaz
#

any errors in console when u reload?

scarlet valve
#

Yea

#

Give me a moment

scarlet valve
#

Google decided not woek

#

1s

turbid tide
#

do you have java 11 or newer? if not that's your problem

turbid tide
#

@arctic loom I was thinking. can't you just use the spigot provided caching system (believe its the google one) instead of using caffeine? This way the expansion can work on older java versions

arctic loom
#

Not a fan of the Google cache since it, at least in older versions, was considered "unstable" which my IDE would complain about

carmine veldt
#

caffeine is based on guava's cache

#

fun little fact

#

not helpful to the convo just a fun fact

turbid tide
#

yes. I Found out today when I went to the caffeine github.

misty rock
#

Hey!

Im trying to work with Papi and TownChat, however:

/papi parse me %townychat_channel_name%

Returns null OR doesnt update to the right channel, any clue whats going on?

signal knot
#

Hello I have a problem I am trying to display in my scoreboard %vault_eco_balance% But it does not display anything. When I run / papi ecloud donwload Vault. And then / Papi reload it does nothing. However, the expansion is good to download but does not work.

Version: 1.16.5
Placeholder version: 2.10.10
Vault version 1.7.3

/Papi dump = https://paste.helpch.at/juhomijove

https://pastebin.com/kHV9DsVZ

turbid tide
signal knot
turbid tide
#

oh. IC. the ecloud version was not updated.

signal knot
turbid tide
#

yeah

dapper citrus
#

does your plugin work on 1.18?

turbid tide
#

PAPI?

tender vaporBOT
turbid tide
#

get it from here ^^^

dapper citrus
turbid tide
#

if you get it from that link yes

dapper citrus
#

thanks

austere hawk
#

Hello. [14-12-2021 01:15:48] That player is not online! I'm using %player_name%

#

For DeluxeMenus

fervent spire
#

?player

tender vaporBOT
#
FAQ Answer:

Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload

austere hawk
#

Thank you is working

#
  'Magic Dust':
    material: SUGAR
    slot: 11
    priority: 1
    update: true
    hide_attributes:  true
    display_name: '&eMagic Dust'
    lore:
      - ''
      - '&7Apply magic dust to an enchantment'
      - '&7book to increase the success rate.'
      - ''
      - '&ePrice:&f 200 &6Coins'
      - ''
      - '&fClick to get this item.'
    left_click_requirement:
      requirements:
        has_money:
          type: has money
          amount: 200
      deny_commands:
        - '[message] &cYou don''t have enough money for this!'
    left_click_commands:
      - '[console] rc one %player_name%'
      - '[close]'```
#

economy money not taking

#

That's deluxemenus config

fervent spire
#

It doesn't take money, it only checks how much they have. You need to add a command to remove the money

austere hawk
#
        - '[console] eco take %player_name% 200'
      requirements:
        has_money:
          type: has money
          amount: 200
      deny_commands:
        - '[message] &cYou don''t have enough money for this!'```
#

?

fervent spire
#

You'd add it to the left click commands.

#

Otherwise that would take the money then check if they had enough money

austere hawk
#

Yes here something wrong, an interal error

fervent spire
#

Paste the full menu file.

#

?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

austere hawk
#

fixed

#

Thank you for help

austere hawk
#

How I can add item in inventory keepondeath, possible move only in inventory and when click is open /deluxemenu open <menu> (player)

snow tinsel
silver minnow
snow tinsel
#

java version on my computer?

silver minnow
#

and for the StatzExpansion - it seems like the expansion is outdated

silver minnow
snow tinsel
#

how to update?

#

:/

silver minnow
#

you'd have to downgrade javascript versions - lemme check which one

#

@snow tinsel delete the javascript expansion from plugins/PlaceholderAPI/expansions then do /papi ecloud download javascript 1.6.0

snow tinsel
#

ok and for the statzexpansion?

silver minnow
#

what Statz version are you running?

austere hawk
#

With deluxemenus I can add item in inventory keepondeath, possible move only in inventory and when click is open /deluxemenu open <menu> (player) ?

snow tinsel
silver minnow
#

it's built-in in v1.6.2+

snow tinsel
#

which verison should I get then?

silver minnow
#

wdym?

snow tinsel
#

which version should I have on my server?

#

of Statistic?

silver minnow
#

Statz?

snow tinsel
#

yes

silver minnow
#

keep the one you have

#

but delete the expansion

snow tinsel
#

why?

silver minnow
#

expansions can be built-in to the plugin

#

the ones in /papi ecloud download are usually for ones that don't need an entire plugin

#

like the Player expansion

snow tinsel
#

oh ok

haughty berry
mellow rampart
#

Hey guys, i cant seem to find the placeholders for Aureliumskills on the placeholder website. Did you delete it, or is it listed with another name?

balmy marten
mellow rampart
#

ohh, im sorry 😦

balmy marten
#

All good, here to help

still ibex
#

Hey! Can someone help me with my problem?
I use LoliServer-1.16.5-build219
Plugins: TAB, PAPI, PermissonsEx, Vault, Chatty

Problem:
I tried to show in tab in which world player is located, in world its ok, but when I went to the nether it show me DIM-1 (not world_nether) Why?
I tried %world% and %player_world%

magic rock
#

Hi, I'm not sure but I think its because of Forge world file structure

#

On Spigot server is in root separated folder for every world

austere hawk
#

Hi everyone ! 👋
I'm actually trying to use my placeholder on featherboard, but I doesnt work, even if the in the /papi list my plugin is active
(btw on featherboard i'm using {placeholderapi_myplaceholder} )

turbid tide
#

if you're on 5.0.0 or newer you should note that Featherboard no longer uses MVDWPapi but rather it dirrectly uses PAPI

#

so it should be %myplaceholder%

austere hawk
turbid tide
#

so its older than 5.0.0?

austere hawk
#

yes :/

vagrant moon
#
    if ("%checkitem_inslot:39, enchantments:3;blast_protection%" == true) {
        //do stuff
    }

I dont understand how to check for enchantments

turbid tide
# austere hawk yes :/

can you execute /papi parse me %myplaceholder% of course replacing myplaceholder with the PAPI placeholder please?

turbid tide
vagrant moon
#

I cant debug currently :c

turbid tide
# vagrant moon I cant debug currently :c

well. I recommend you remove the space before enchantments, you also make sure the enchantment names correspond to the spigot ones (on newer versions I believe its called PROTECTION_EXPLOSIONS idk what its called on older ones), and also you make sure in your PAPI config the options boolean: return true and false and not yes and no. if they do change the code to: js if ("%checkitem_inslot:39, enchantments:3;blast_protection%" == "yes") { //do stuff }

astral stump
#

Hi team, I seem to be having issues with griefprevention expansion, has stopped working (got covid?) ecloud seems to load it fine but it is not present in papi list

granite palm
#

Is there an EZRanksPro API where I can hook into? Because PAPI has a nice API repository, EZRanksPro doesn't

warm topaz
#

theres a class within the jar, but thats about it

turbid tide
#

oh is there?

granite palm
#

Then time for reflection

#

Yes in the jar file

#

But no Maven repo

warm topaz
#

could setup a maven repo in the future i suppose

tender vaporBOT
still ibex
#

something with registration?

#

@Override
public boolean canRegister() {
return (plugin = (AP) Bukkit.getPluginManager().getPlugin(getRequiredPlugin())) != null;
}

turbid tide
still ibex
#

inside a plugin

still ibex
#

ok

#

it helped to register

#

but

#

its not working

#

I use it like %worldOfPlayer%

turbid tide
#

don't use uppercase in your identifier first of all

#

second of all it will be %identifier_params%

#

so %worldofplayer_world% for example

#

oh wait

#

nvm

#

you're not using the params at all

still ibex
#

this?
@Override
public String onRequest(OfflinePlayer p, String params) {
super.onRequest(p, params);
Player player = p.getPlayer();
if (player != null){
return localizedWorldName(p.getPlayer().getWorld());
}
return null;
}

turbid tide
#

ok. first of all remove the super.onRequest line. then try /papi parse me% worldofplayer_SOMETHING% just like that

still ibex
#

hmm

still ibex
#

but not in tab

turbid tide
#

well does your tab support PAPI?

still ibex
turbid tide
#

you need to add the _

#

%worldofplayer_%

#

PAPI has a special format

#

it needs to be %identifier_PARAMS%

#

and if it doesn't find the _ its not considered a valid placeholder

still ibex
#

ok. doesn't work
tabsuffix: " %current_world%"
public String getIdentifier() { return "current_world"; }

turbid tide
#

well

#

as I said

#

you need the _

#

and you shouldn't have _ in your identifier

#

your identifier should be currentworld

#

and then you should use %currentworld_something%

still ibex
#

I got it, it works. I did not use params.

#

Thank you

still ibex
#

@turbid tide Is there an extension that takes the tps of the world (not the server)?

tender vaporBOT
junior musk
#

the TPS is calculated based on the server 🤨 there's no per world TPS

still ibex
#

ok

austere hawk
#

im using geyser and TAB, I wanna display the vault_eco_balance placeholder on the scoreboard, but in the bedock players it doesn'T show, but on java it show, do you guys know how can i put the player balance on the scoreboard in both java and bedrock?

pseudo quest
#

where can i download latest placeholderapi version?

tender vaporBOT
turbid tide
#

at this link ^

pseudo quest
#

Thx bro

#

even new version of placeholderapi not working with tab plugin

turbid tide
#

what do you mean when you say its not working? what about it is not working? does it not load at all? are there specific placeholders that don't work?

pseudo quest
#

All placeholders

#

in console
[TAB] Disabled in 3ms [18:29:36 INFO]: [PlaceholderAPI] Successfully registered expansion: tab [3.0.0] [18:29:36 INFO]: [TAB] Enabled in 15ms

#

But on scoreboard doesnt show values

still ibex
#

how to disable this?
yellow-number-in-tablist: '%ping%'

pseudo quest
#

remove it maybe

#

What should i do @turbid tide

#

Sorry for ping

still ibex
pseudo quest
#

I am just a player who doesnt know how to turn on placeholders

#

I dont know how to help u bro

turbid tide
#

or set it to a special number maybe

pseudo quest
#

and what should i do?

turbid tide
pseudo quest
#

all placeholders

#

%rank%

turbid tide
#

those are not PAPI placeholders tho

pseudo quest
#

%vault_prefix%

turbid tide
#

that is

#

/papi parse me %vault_prefix%

#

what does it say?

pseudo quest
#

w8

#

%vault_prefix%

#

on chat

#

maybe bsc i am using paperspigot

turbid tide
#

also the vault extension

pseudo quest
#

only vault

solemn pasture
#

Amm can i get Support, im using LeaderHeads too, i can prove i bought it

#

If a placeholder, returns "" what does that mean?

robust stream
#

hi i need help with /papi ecloud download ParseOther

#

i wanna display the rank of other players on my hologram

#

%parseother_{rng_online_player}_{uperms_prefix}%

#

i use ultrapermission plugin for permission

#

any idea how setup he rank of other player on holograms

#

fixed

turbid tide
solemn pasture
#

Okey thx

turbid tide
astral stump
#

any idea on griefprevention guys?

narrow thorn
tender vaporBOT
# narrow thorn https://paste.helpch.at/niqokunoba.sql
Possible Solution Found:

The plugin (or program) you are trying to use was compiled using a newer Java version than the one you using.
To find what version you need, start from 52 which is Java 8 and for example, 60 is Java 16. (8 + 8 = 16 => 52 + 8 = 60)

errant iron
#

You need Java 11

narrow thorn
#

I thought so

#
container@pterodactyl~ java -version
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment 18.9 (build 11.0.13+8)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8, mixed mode, sharing)
container@pterodactyl~ java -Xms128M -Xmx11264M -Dterminal.jline=false -Dterminal.ansi=true -jar TacoSpigot.jar
Error running patched jar
java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.destroystokyo.paperclip.Paperclip.main(Paperclip.java:177)
Caused by: java.lang.NullPointerException
        at org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast(SystemUtils.java:1413)
        at org.bukkit.craftbukkit.Main.main(Main.java:23)
        ... 5 more
container@pterodactyl~ Server marked as offline...
#

what does that mean?

narrow thorn
errant iron
#

Did you reinstall?

narrow thorn
#

Reinstall what

errant iron
#

Your server on Ptero

narrow thorn
#

No

errant iron
#

Do that

narrow thorn
#

tbf

#

idkh

#

its not even my server

#

its a friends I am helping setup xD

errant iron
#

All it does is redownload the jar

#

unless whatever TacoSpigot is has a weird reinstall script

narrow thorn
#

i tried spigot as well

#

and it said the same

errant iron
#

Try Paper

sharp jay
#

ayo how do I remove the extra 0 at the end in the math papi expansion

#

I want it to be only 0.20

junior musk
#

%math_1_....%

sharp jay
#

ty

tender vaporBOT
austere hawk
#

I'm going to investigate

#

unit of measurement
Hi, does anyone know what unit of measure it indicates, it is %player_time%

#

value: 176144211

#

My bad bad

austere hawk
#

send me link in pm

#

PlaceholderAPI extension

#

is Player

#

oooh

#

I'm not sure and I'm going to try but could be the online players time

#

I meant the same as /pt

#

NoooOOOoo

turbid tide
austere hawk
#

thx

austere hawk
#

I do, but it send me an NullPointerExeception

#

Fixed 😉

#

Yo, this is a bit of a stretch of a question for PAPI but it is PAPI related. So we've got a script set up with JavascriptExpansion (here https://github.com/PlaceholderAPI/Javascript-Expansion/blob/master/expansion/src/main/java/com/extendedclip/papi/expansion/javascript/JavascriptExpansion.java).

This script is player-specific and is set on a server-wide UltraBar. It shows the region the player is in, and replaces the region with a nice String. (https://www.spigotmc.org/resources/ultra-bar.20113/)

This JavaScript script is 30% of the main thread on spark, so I created a custom expansion which does the same as the JavaScript script but in a class, cutting out the middleman (https://www.toptal.com/developers/hastebin/kucupukuhe.java)

When UltraBar is configured to use this new custom placeholder, it doesn't load:

[12:46:31 WARN]: Player specific placeholders do not work on server wide messages!
[12:46:31 WARN]: The plugin UltraBar will now disable it self due to this.```

My question is why is the JavascriptExpansion Placeholder we created not recognised as player-specific, but the one I coded is recognised as player specific?
vivid sparrow
#

Horrible

signal knot
#

Hello, I come back to you once again. I can't use the Vault Placeholders. Is it brand I use Mohist Mod + Plugins? en 1.16.5? Car for others it works well.

https://paste.helpch.at/eyidocitim

urban monolith
#

What core do need for PlaceholderAPI? I'm using Paper, does it fit?

magic rock
#

yes

#

any Spigot fork should be fine

urban monolith
#

Where can I send it?

magic rock
#

?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

stiff bone
#

hey i tried putting %math_{server_online_world1}+{server_online_world2}% on a scoreboard, but the problem is it only shows the world nether. i have math and server installed btw

#

so when im in the overworld it says zero, when i go into nether it suddenly changes to 1

#

ive tried removing the 1 and 2 and i think when i remove 1 so only keep the 2 it shows the overworld but same way around

weak isle
#

Would someone be able to point me in the right direction? I’m looking to replace the text result of another placeholder if it returns a specific word/result otherwise it would just return a regular response. I’ve tried googling a few things but I don’t think it’s quite what I’m looking for and I don’t know what to search since I’m pretty new to JavaScript

noble kayak
#

Hello, how do I make a deluxe menu open another menu with an item?

fervent spire
fickle locust
#

hello, does anyone know why the placeholderapi does not work on the holograms?

fickle locust
noble kayak
magic rock
#

u need holographic placeholders/holographic extension to make placeholders work in hd

rapid sundial
#

i made a custom placeholder with javascript but im getting errors if i try to /papi parse me

#

im working with 1.18.1 and i just upgraded from 1.17

mint fable
#

are you on the pinned version by chance

rapid sundial
#

i used the latest on jenkins i guess

mint fable
#

doesn't look like it, give it a try

#

it's for 1.18 so

rapid sundial
#

not working 😦

mint fable
#

same error?

#

what's in your javascript config

rapid sundial
mint fable
#

not the js

tender vaporBOT
#
📋 Paste Converted!
https://paste.helpch.at/efurofoked

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

rapid sundial
#

mean this?

mint fable
#

no I think it's javascripts.yml

rapid sundial
#

tps:
file: tps.js
engine: nashorn

mint fable
#

try removing engine: nashorn

#

should default to javascript ig after that

#

and then it might work

rapid sundial
#

still error

mint fable
#

what is it now

#

still trying to use nashorn?

rapid sundial
#

is there some kind of special expansion for the newer javascript?

rapid sundial
mint fable
#

it could be broken atm on 1.18 but not sure

#

Is it still the same error? that would indicate trying to use nashorn

#

maybe try engine: javascript

#

that's what is in your config you just sent me

rapid sundial
#

thats working

mint fable
#

nice

turbid hound
#

Hey all. Is there a memory leak with PAPI 1.18? I'm using the dev build, and when PAPI is enabled, it spikes up and eats every bit of the memory on my server, and then crashes with no error message. It could be an expansion, but I'm not very smart with this stuff. I disabled every plugin individually before I came here, and Papi was definitely causing it

stone edge
#

Is there a placeholder/expansion to decrease an amount from a parsed placeholder
a placeholder from other plugin returns a number like %something_param% => 5
so it decreases by 1 and it returns 4

mint fable
#

have you tried disabling every expansion individually @turbid hound ?

#

before that, have you tried updating all expansions?

#

/papi ecloud update all

tender vaporBOT
# turbid hound I'll try
Hey!

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

turbid hound
#

Oh sorry

#

I only have pretty common expansions, and they're recently updated

thorny vale
#

hi is their any place holders for essentials show balance

turbid tide
thorny vale
#

ok thanks

grizzled dagger
#

Any help pls?

#

Eventually goes 100% doing nothing and crashes, 0 players when happened

turbid tide
grizzled dagger
#

So, how do I track it?

turbid tide
#

if you don't have the nbtapi plugin installed on your server I recommend you remove plugins 1 by 1.

grizzled dagger
#

I've got installed the nbtapi

#

should I remove it?

turbid tide
#

oh wait nvm. that only happend twice in the entire timings. so it might not be bad.

#

I'm not very good at reading timings but I think this happens like once an hour or something like that. so its not that bad.

grizzled dagger
#

Yeah, but made a loop so it can restart over, but lagging causes ftp services and RDP not to work

#

im using this server also as my home server

#

Can't add an screenshot, currently is running to 90%

tender vaporBOT
grizzled dagger
turbid tide
#

do you have spark installed? can you generate a report please?

grizzled dagger
#

No, do you want me to install it?

#

This is the new report

#

no papi showing as lag

turbid tide
#

yeah. the one that was showing was happening every hour or so. it wasn't a problem

grizzled dagger
#

Im restarting the server, i've added spark

#

give me a sec

turbid tide
#

run /spark profiler and use the server for 5 minutes or so

#

then do /spark profiler --stop

grizzled dagger
#

got it running now

stiff bone
#

hey

#

i tried putting %math_{server_online_world1}+{server_online_world2}% on a scoreboard, but the problem is it only shows the world nether. i have math and server installed btw

grizzled dagger
#

its currently at 5% of cpu

#

nothing crazy happened

turbid tide
#

and if possible when the cpu is running high

grizzled dagger
#

i tried loading world, but didn't happened

turbid tide
stiff bone
#

ill try in a few minutes

grizzled dagger
#

its going a bit up but wont hit 90% or like that

#

currently at 15%

#

but constantly going up, slow but going up

grizzled dagger
#

It could be an minor loop causing that going up slowly but ending in an 100% CPU crash?

turbid tide
stiff bone
#

if i remove the 2 it counts overworld and if i remove 1 it counts only nether

#

but doesnt count anything if i keep it like it's supposed to be

turbid tide
stiff bone
turbid tide
stiff bone
#

yeah all worlds

turbid tide
#

well just do %server_online% then

#

no math no nothing

stiff bone
#

that didnt work

#

when i go into nether

#

it says zero

#

only works in the overworld

#

wait never mind

#

i know whats wrong

#

sorry for the trouble i just messed up my scoreboard so it didnt work in the nether

#

thanks

turbid tide
#

ah. alright. no worries

grizzled dagger
#

@turbid tide My CPU is currently at 24% and increasing slowly

#

What do you want me to do? Spark, timings or what I should try?

turbid tide
#

ok. run a spark report and let it run while it increases

#

just /spark profiler

grizzled dagger
turbid tide
#

well this has only been running for 4ms. you're meant to let it run for a few minutes

#

so you run /spark profiler then wait a few minutes

#

then do /spark profiler --stop

grizzled dagger
#

i've ran it for 7 min

turbid tide
#

hmm

#

not sure what that is then. might be something else.

grizzled dagger
#

maybe average time of response?

turbid tide
#

could be

grizzled dagger
#

As far as I can read, it parks unsafely, might be occupating resources without a reason?

turbid tide
#

no no. Unsafe is a class

#

and park is a method it calls

grizzled dagger
#

oh

turbid tide
#

or that is called

#

and its inside that class

grizzled dagger
#

Oh okay 🙂

#

Its running now at 29%

#

For sure its raising without doing nothing

turbid tide
#

are you loading new chunks maybe?

grizzled dagger
#

Yeah, tried to stress the server

#

but didnt reach any higher CPU

#

Im now doing another spark without joining the server, which is usually how it crashes

#

doing nothing

turbid tide
#

ok. so what I'm starting to think is that your server doesn't actually use 80% of your cpu. what is happeninng is that windows sees you don't use it and just decides to give the server as much as it can even if it doesnt actually need it.

#

because your server seems to be sleeping quite a bit (the parked stuff) which according to the documentation is a good thing.

grizzled dagger
#

So what can I do?

turbid tide
#

I mean if you start using your cpu on something else does it still go up? or are you limited?

grizzled dagger
#

the entire server crashes

#

goes 100% and i cant use it

errant iron
#

see this is why you either A. need an operating system that can limit things (such as linux) or B. need Docker so you can limit stuff

#

my favorite is both

turbid tide
#

lol

simple nova
#

what is the placeholder to show me when player got their nickname changed in Ess there is option to put a character as prefix showing it is not their true nickname

#

tag me if u have answer thanks

turbid tide
#

use a plugin like TAB and then I believe you can just put placeholders there. so %player_health_rounded% for example

#

you can use math then. %math_1_{player_health_rounded}/2%

turbid tide
#

yeah. set the 1 to 0

#

no problem

fallen perch
#

Updated my server to 1.18.1 (using papi 2.10.10) and none of the placeholders anywhere seem to be working anymore, using parse command just returns the variable I entered, what am I doing wrong?

tender vaporBOT
turbid tide
#

try getting the latest development build of PAPI ^

fallen perch
#

Installed DEV-139, still not working

#

Have already tried to regenerate config, removing and reinstalling extensions, running on paper if it's relevant.

turbid tide
#

none of those are PlaceholderAPI placeholders my friend

#

are you using TAB by any chance?

fallen perch
#

oh now I see, papi placeholders work, but extension ones (luckperm ones for example) dont seem to be working, am using TAB yes

turbid tide
weak isle
#

Anyone happen to know javascript that could tell me what I'm doing wrong? It doesnt throw any errors in console when I try to parse the placeholder, I'm trying to replace the original placeholders reponse of "none" with a blank response

#
var result = "%lands_land_name%";
 
function LandName() {
    if (result == 'None')
        return ""
 
    else if (result == 'TestLandName')
        return "ReplacedLandName"
 
    else return result;
}LandName();```
turbid tide
#
var result = "%lands_land_name%";
 
function LandName() {
    if (result == "None")
        return "";

    else if (result == "TestLandName")
        return "ReplacedLandName";
 
    else return result;
}
LandName();``` try this maybe
weak isle
turbid tide
#

if you want to use PAPI placeholders in essentials you have to install chat injector I believe. essentials doesn't support PAPI

weak isle
#

Im not to familiar with the string replace option in java, I tried it but didnt get anywhere

turbid tide
weak isle
#

It is, darkgray &8

turbid tide
#

well. that might be a problem.

#

1 sec

#
var result = "%lands_land_name%";
 
function LandName() {
    if (result == "§8None")
        return "";

    else if (result == "TestLandName")
        return "ReplacedLandName";
 
    else return result;
}
LandName();``` try this
weak isle
turbid tide
#

I'm not sure if the plugin is maintained anymore. might be broken. but that's all we can really do.

turbid tide
#

you could try CarbonChat. seems pretty nice and afaik it supports PAPI.

#

there's a builds on that page

#

builds link*

weak isle
#

Another question if you don’t mind, blitz, I was looking to use the JavaScript as well to be able to filter out some of the worst land names if people created one with that but since they can apply colours to the land name as well would I have to use something like a regex filter to match for any colour variant of that bad name?

that’s some thing I could probably Google but I just wasn’t sure if that would be what I needed

turbid tide
weak isle
#

Would that be fairly simple? I’ve worked with regex filters in the past but JavaScript is both interesting and frustrating at the same time

turbid tide
#

no need for rejex. just use the indexOf method

#

for example: "testStringwithBadWord".indexOf("BadWord") would return 14 and "testStringwithNoBadWord".indexOf("SomeBadWord") would return -1. you can use those values to check if the string contains a bad word. if it returns -1 it does not otherwise it does

elfin summit
#

How can I upload my expansion to the eCloud? Registration is closed

turbid tide
elfin summit
#

ok

turbid tide
elfin summit
#

they accept expansions that are specific to your own 1 plugin right?

turbid tide
#

if its a private plugin I recommend you build the expansion inside your plugin instead of making it an external class

elfin summit
#

well not private its on spigot but for .99c

turbid tide
#

yeah. that's fine

elfin summit
#

ok cool

#

ty

turbid tide
#

yeah. pretty sure you can change those from PlaceholderAPI's config.yml

signal hollow
silver minnow
#

iirc it used mvdwplaceholder or smth like that, but not anymore

#

and plus - onlineplayers isn't a valid PAPI placeholder anyways

signal hollow
#

I used mvdw placeholders before i used the mvdw and it still did the same thing

silver minnow
#

it's %server_online%

or with mvdw try {placeholderapi_server_online} maybe?

turbid tide
#

if you're on Featherboard 5.0.0 or newer you have to use PAPI placeholders as featherboard no longer supports mvdw placeholderapi

signal hollow
#

papi placeholders?

turbid tide
#

PlaceholderAPI placeholders

signal hollow
#

%placeholder% inside the config?

turbid tide
#

yeah

signal hollow
#

WOW

#

I feel dumb

turbid tide
#

and without the placeholderapi_ stuff

signal hollow
#

and replace {} with %%

turbid tide
#

yeah

signal hollow
#

Thank you so much!

#

❤️

turbid tide
#

no problem

signal hollow
#

ExpansionsLoadedEvent to FeatherBoard v5.1.0

balmy marten
elfin summit
#

How do you become a verified expansion so players can download with command?

warm topaz
#

what expansion are u trying to verify?

elfin summit
warm topaz
#

@balmy marten ^

balmy marten
#

It's not just me lol

elfin summit
#

eh its real short anyways

#

1 placeholder

turbid tide
#

any chance you can link the source code to the expansion?

balmy marten
#

it's on the page

#

smh blitz

turbid tide
#

I keep looking on the right

balmy marten
#

getAuthor should return ur ecloud username

turbid tide
#

and identifier should always be lowercase

balmy marten
#

yeah that to

turbid tide
#

all lowercase. otherwise it will just break

elfin summit
#

oh

#

ok

turbid tide
elfin summit
#

ok ill update it

#

ty for pointing those out

turbid tide
# elfin summit ok ill update it

also you should note the placeholder will actually be %identifier_hcffaction%. so in this case %hcfpluspapiexpansion_hcffaction%

elfin summit
#

oh ok had no idea

turbid tide
#

yeah. might want to change the identifier to hcfplus and the check in your onRequest metohd to be just for faction

#

so this way it will be %hcfplus_faction%

elfin summit
#

yep just did that

#

Where do I upload the update to? I can only see to change description and stuff

#

got it

#

ok all fixed

turbid tide
#

you also have to make sure the ecloud name matches the identifier I believe. it should be HCFPlus. no Expansion

#

but I can change that for you

#

not sure if you can

elfin summit
#

oh ok i can change it

balmy marten
#

getAuthor case needs to match, should be lowercase as your username is

turbid tide
#

cube. that's a bit stupid don't you think? xD

balmy marten
#

ecloud cant handle capitals

#

its crashes

turbid tide
#

xD

balmy marten
#

its hilarious

elfin summit
#

fixed

#

i think the name eCloud is funny

balmy marten
#

getVersion needs to match whats on the ecloud otherwise it will say it always needs an update

elfin summit
#

dammit youre right

#

gotta think ahead with this one

turbid tide
#

so update to 1.0.3

#

in your code

elfin summit
#

fixed

turbid tide
#

ok. verified

elfin summit
#

thank youu

balmy marten
#

can take up to an hour to show up in game

#

cause it has to get cached

elfin summit
#

no worries im still polishing up the actual plugin

languid badger
#

hi, where can i download the latest dev version?

balmy marten
#

Of papi?

#

It's pinned

languid badger
#

thx

copper sandal
#

How can I have a place holder inside of another one for eg with animations im trying to do %animations_<rainbow>&l%player_name%</rainbow>%

#

but this doesnt work

#

I also tried %animations_<rainbow_player_name_/rainbow>%

#

but I cant seem to figure it out

leaden kraken
#

Try %animations_<rainbow>&l{player_name}</rainbow>% @copper sandal

copper sandal
#

I dont understand the key1 value think

#

I dont understand that msg really tbh

vivid sparrow
#

Hmm

copper sandal
#

doesnt work but when I do %animations_<rainbow>&l{player_name}</rainbow>%

#

cause I read both wiki's and yeah

#

The issue is that it doesnt show the player's name

#

but animation still works

weak isle
#

I ran into a small issue when using javascript to replace a players claimed land name bad words if used, it all works as expected but if a player makes a land name called woRD2 or any variation in capitals/lowercase it no longer returns the ProhibitedText response and I'm not quite sure how to fix it.

    else if (result.indexOf("Word1") >= 0 || result.indexOf("Word2") >= 0 || result.indexOf("Word3") >= 0)
        return "§cProhibitedText§r";
vivid sparrow
#

result.toUpperCase().indexOf("WORD1") != -1

#

Index 0 is good

copper sandal
turbid tide
copper sandal
tender vaporBOT
copper sandal
#

oh I didnt know reply pings did that sorry

#

I didnt even know it was on

#

my bad

turbid tide
#

well. either the player expansion isn't work which you can test by doing /papi parse me %player_name% or the animation expansion doesn't support PAPI placeholders

copper sandal
#

it works for my scoreboard on the side the player expansion and I stated above I got both animations and player expansion

#

and the animation expansion is the one on the papi website ?

#

yeah just did parse and it works fine

turbid tide
#

yeah. my assumption is then either the rainbow tag doesn't support placeholders or the entire expansion doesn't. (but since the wiki claims it does support PAPI its probably just the rainbow tag)

copper sandal
#

Will this be fixed or nah ? and yeah I found it strange it said it worked but I did try everything before asking hence why I came in here

turbid tide
#

we don't know. its not our expansion. and we don't have access to the source code either to fix it ourselves.

copper sandal
#

ahh ok yeah its just the rainbow tag and some of the other animations are a bit broken rip

turbid tide
#

it might not be broken. I might remember niall (the author) saying something about it being either very inefficient (performance wise) or not being really possible

copper sandal
#

It just doesnt behave how its shown on the site tbh and probably cause its the placeholder inside too

#

ill just have to without ig

elder palm
#

Hey blitz, do you know if there is a placeholder to show the ingame days amount (f3)?

static ocean
#

How can I show ingame day through scoreboard?

elder palm
#

Hold up, i may have found it

#

Try %server_time_DD%

turbid tide
#

That will show the real time

#

Ingame

static ocean
#

I want ingame time.

#

Can it happen?

vivid sparrow
#

d;spigot World#getFullTime

ionic fractalBOT
#
long getFullTime()```
Description:

Gets the full in-game time on this world

Returns:

The current absolute time

vivid sparrow
#

probably this

static ocean
#

how to use?

elder palm
#

He needs a placeholder, not a code reference 😅

static ocean
elder palm
#

How do you want it to look like though?

#

Just the number of days from f3, right?

#

No time or ticks for the actual day

vivid sparrow
#

damn, 11k days on my server, welp xd

elder palm
#

Woah

#

Wait, a mc day is how long in real time again'?

static ocean
vivid sparrow
#

20m iirc

elder palm
#

11k+20 = alotta

vivid sparrow
#

153 days

elder palm
#

5 months

vivid sparrow
#

pretty precise, last wipe was on juli

elder palm
#

Anyway, i must be blind since even i cant find the correct placeholder

vivid sparrow
#

Yeah it has to be made

elder palm
#

Yikes

#

Yea im not doing that, got clippy to set up still, a server, a website - im completely overbooked for the next week lmao

vivid sparrow
#

:))

#

@ blitz

drifting coral
#

hi

#

i don't understand how it work the placeholder %checkitem_amount_<modifiers>%

hallow zinc
#

hi

#

((I am using the google translator))

Hi, the DeluxeMenu menu requirements do not work.
As you can see, here I should change "NOT WORKING" to "WORKING", I am using the variable% jobsr_user_isin_Woodcutter% for the woodcutter job for example, I have deluxemenu 1.13.3 and placeholperapi 2.10.10.
I am using a paper 1.8.8 server

hallow zinc
#

do you understand my explanation?

mint fable
#

=ver deluxemenus

tender vaporBOT
#
Deluxemenus - Version List
Spigot:

1.8.8
1.12.2
1.16.5
1.17.1

Version:

v1.10.5
v1.13.3 - Latest
v1.13.4 - Dev Builds
v1.13.4 - Dev Builds

mint fable
#

@hallow zinc this

tardy glade
#

Hello, is there any papi addon that allows me to make "pixel art" in the chat

#

something like this

mint fable
#

doesn't sound like something you'd use papi for really

tardy glade
#

ah okay

hasty iris
#

https://prnt.sc/23fvgeb Statistic does not work properly in version 1.18.1, the link given does not work, what can I do?

hallow zinc
# tender vapor

I have 1.8.8 paper, I already put deluxemenu 1.10.5, should I also change the version of Placeholderapi? I currently have the latest version

#

@mint fable

tender vaporBOT
mint fable
#

still not working on 1.10.5?

#

Can you send your menu over?

#

?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

hallow zinc
hallow zinc
tender vaporBOT
#
📋 Paste Converted!
https://paste.helpch.at/lifubeqihi

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

mint fable
#

okay try string equals ignorecase

#

instead of string contains

hallow zinc
#

note that when changing deluxemenu version, now I have these WARNs in console

mint fable
#

looks like it has to do with a menu that has permission requirements

#

it's possible the requirements changed between 1.10.5 and 1.13.3

#

so you built on a newer version, and now have to change it back for 1.10.5

hallow zinc
mint fable
#

and you're sure it's returning &aTrue? can you take a picture of /papi parse me <placeholder>

hallow zinc
mint fable
#

what if you just did string contains and True

#

instead if including the color

hallow zinc
#

still not working, nothing changed

#

type: string contains
input: "%jobsr_user_isin_Woodcutter%"
output: "True"

mint fable
#

?dm-requirements

tender vaporBOT
#
FAQ Answer:
view_requirement:
  requirements:
    requirement_name:
      type: TYPE```
mint fable
#

I'm very confused

hallow zinc
#

Like me, it doesn't make sense because it doesn't work

mint fable
#

so in the menu it just shows the ✘?

#

y

hallow zinc
#

sure, it just shows X in red, like I'm not working on those jobs, and they should be green, since if I'm working

mint fable
#

okay what if we try javascript

#
type: javascript
expression: '"%jobsr_user_isin_Woodcutter%".includes("True")'
hallow zinc
#

I have no knowledge to do that with javascript, I would need help with that

mint fable
#

did it work?

river glen
#

in deluxemenus, i wanted to create a shop using a placeholder from a plugin we made
and the action when clicked doesn't "read" the value that the player has

mint fable
#

send your menu

#

?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

mint fable
#

what mc version and what deluxemenus version?

hallow zinc
mint fable
#

you see the type: string contains

#

replace it and line it up

#

@river glen can you send your papi config?

hallow zinc
mint fable
#

@river glen and typing /papi parse me %checkitem_mat:GRANITE% is returning yes correct?

#

I presume it's working, I made it 😉

river glen
#

yes, im asking about the buy option

mint fable
#

ohhh

#

my bad

#

of course mine works!

river glen
#

because the sell option works properly

mint fable
#

type /papi parse me %spacemc_money%

river glen
#

it returns the amount of money that i have

mint fable
#

can you send a picture

river glen
#

i cant send it here

mint fable
#

?imgur

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

river glen
mint fable
#

could be the .0

#

try javascript

#

seems to be my answer for everything today

hallow zinc
#

it still doesn't work, I don't understand anymore

#

view_requirement:
requirements:
joined:
type: javascript
expression: '"%jobsr_user_isin_Woodcutter%".includes("True")'

mint fable
#
type: javascript
expression: 'Number.parseFloat("%spacemc_money%") >= 100'
#

i'm so confused, are we sure we are editing the right file @hallow zinc ?

#

it's happened before

#

if we remove the view requirement entirely, does it show?

hallow zinc
#

It is the correct file, look, I modify it for you to see

mint fable
#

oh shoot

#

surround the placeholder in ""

hallow zinc
#

add lots of X's to it, it's the correct file

mint fable
#

I see

#

can you send your current menu

hallow zinc
#

the entire DeluxeMenu folder?

mint fable
#

no

#

just the one menu

river glen
mint fable
hallow zinc
#

well, thank you very much for time, in another moment you continue helping us, no problem

#

I send you the menu to the private one and you look at it when you have time, thank you very much

mint fable
#

try updating deluxemenus to the latest dev build

#

?dm-builds

tender vaporBOT
mint fable
#

@river glen this

hallow zinc
#

I tried before

mint fable
#

not you, you should still use 1.10.5 I believe

hallow zinc
#

I sent you a request so I send you the menu and you look at it when you have time

river glen
indigo briar
#

Whenever I download the Math expansion, my Player expansion stops working

#

And after I download the Math expansion, when I do /papi reload nothing happens

mint fable
#

Blitz will fix all issues 👍

turbid tide
turbid tide
indigo briar
#

Ah alright

#

Is there a way to do math like that with a different expansion or should I try an older version?

turbid tide
#

maybe 1.0.6? I forgot xD

indigo briar
#

Okay thanks!

river glen
#

blitz, do you know why this doesn't work?

turbid tide
#

@river glen what's' the problem? I really can't go all the way up to read all the text

river glen
#

1.17.1 server with 1.13.4-dev-125 deluxemenus version

turbid tide
#

hmm. have you tested with a different javascript requirement? deluxemenus uses nashorn which is like ecmascript 5.1 or 6.1. so might not have Number.parseFloat

river glen
#

nope, i got this one from cj

indigo briar
turbid tide
indigo briar
#

I am doing %math_1+1%

turbid tide
indigo briar
#

I downloaded that version using the command also, not the website

hallow zinc
#

((sorry my english, i'm using google translator)

Hi, let's see if you have any other solutions to the problem I have, the requirements are not working in the menus.
This element must change when the user is hired in a job and says "TRABAJANDO" in green, but instead, it always appears in "SIN TRABAJO X" in red.
My server is 1.8.8 and I was using the latest version of deluxemenu, I tried 1.10.5 and it was not a solution.

turbid tide
turbid tide
turbid tide
# river glen yes

can you possibly go to plugins/DeluxeMenus/config.yml, set debug mode on, restart the server and send the newly generated startup log over in a paste bin please?

turbid tide
hallow zinc
tender vaporBOT
errant nacelle
turbid tide
#

can you show me your current menu please? the one after you updated it

turbid tide
#

are you op while testing this? can you test without being op if you are

river glen
turbid tide
#

pardon me if I'm repeating myself but I have a massive headache and can't focus. am trying to multitask at the same time. you're saying you are clicking the item inside the menu and it triggers the click commands not the deny commands?

#

like it takes your points

#

and gives you granite

river glen
#

it doesn't read my amount of money i do have
in order to get the granite i need 100 points, i do have the 100 points and it says i don't have them

#

i hope you understand lol

turbid tide
#

ohh

#

well that's bcz of this expression: '5 > 8'. 5 is never higher than 8. but it gives you the deny commands right? the you don't have enough points message

#

ok. I was misunderstanding the first time. good thing I asked again

#

and %spacemc_money% returns a double/float right? for example 100.5 money?

river glen
#

it works, thank you so much for your time!

turbid tide
#

no problem

signal hollow
#

how do i add placeholders to featherboard 5.0.0

turbid tide
#

ugh. it uses PAPI placeholders. so make sure you have PAPI installed, then download the expansions you need and then you just use %placeholder% in featherboard config

severe lagoon
#

where are all the PAPI dev builds?

tender vaporBOT
turbid tide
turbid tide
#

no problem

signal hollow
#

Thanks for your help blitz

#

Can someone explain why this happens?

turbid tide
signal hollow
#

%server_online%

#

I downloaded the placeholder server

turbid tide
# signal hollow I downloaded the placeholder server

yeah. what I think happens is you have a broken expansion that breaks the PAPI loaded and so the other expansions don't get loaded. Could you restart your server and generate a new startup log then send it using a paste bin please?

signal hollow
tender vaporBOT
#
📋 Paste Converted!
https://paste.helpch.at/woqohitiqi

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

turbid tide
# signal hollow https://pastebin.com/sQjkb7tK

oh yeah. your chat reaction expansion. is the one. you dont have the chatreaction plugin installed. either install that plugin or go to plugins/PlaceholderAPI/expansions and delete the chatreaction expansion

#

then restart the server

signal hollow
#

okie thank you

turbid tide
#

no problem

signal hollow
#

Thank you so much blitz it works!

turbid tide
#

yw 🙂

vagrant moon
#
    if ("%checkitem_inslot:39, enchantments:3;blast_protection%" == true) {
        //do stuff
    }

I dont understand how to check for enchantments

#

/papi parse me %checkitem_inslot:39, enchantments:3;blast_protection%
result: %checkitem_inslot:39, enchantments:3;blast_protection%

vagrant moon
#

same

#

Im just trying the papi command first

turbid tide
#

well. I can tell you 1 thing for sure, you have to change the enchant name

#

according to spigot that is not the correct one

vagrant moon
#

static Enchantment PROTECTION_EXPLOSIONS
Provides protection against explosive damage

turbid tide
#

yeah.

vagrant moon
#

yes but its the same output :c

turbid tide
#

/papi parse me %checkitem_inslot:39,enchantments:3;PROTECTION_EXPLOSIONS%. also why slot 39? u sure its the correct slot number?

vagrant moon
#

it is

#

Output: %checkitem_inslot:39,enchantments:3;PROTECTION_EXPLOSIONS%

turbid tide
#

do you have the checkitem expansion installed?

turbid tide
vagrant moon
#

even it has protection 3

#

explode*

turbid tide
#

ok. give me like 10 minutes and I'll start up my server and test this. bcz rn I'm out of ideas

vagrant moon
turbid tide
#

tier one is not allowed. to stop spam. you should use imgur for that

tender vaporBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

vagrant moon
#

Im just using ctrl+v xd

#

Its to much steps for just posting a screen: make screenshot, open paint, paste screenshot, save image, open imgur, upload image, send url in discord

turbid tide
#

well I can recommend sharex. great tool (for windows). Takes screenshots for you, and uploads them to a website you want then copies the link to you clipboard. also gives you a lot more customizability but that's what I am using it for

vagrant moon
#

/papi parse me %checkitem_inslot:39,enchantments% works fine

#

for detecting if item is enchanted

turbid tide
#

wait. that's strange. it shouldn't even do that. enchanted should do it

#

also

#

I might've found the problem

#

:kek:

#

%checkitem_inslot:39,enchantments:PROTECTION_EXPLOSIONS=3%

#

try this please

vagrant moon
#

tells me no

#

every time

#

Im trying with 3 items, all with netherite helmet:
Helmet 1: Blast Protection 3
Helmet 2: Blast Protection 2
Helmet 3: Fire Protection 1

turbid tide
#

ok. I am starting the test server as we speak

#

will test this and see what I can do

#

@mint fable u around? can you help us with this? doesn't seem like enchantments work for some reason. I am looking at the code currently and can't find what the problem could be.

tender vaporBOT
turbid tide
vagrant moon
#

wrong information

#

/papi parse me %checkitem_inslot:39,enchantments:blast_protection=3%

turbid tide
#

wait what?

vagrant moon
#

I tested

turbid tide
#

I swear to god both should work then

#

anyways

#

that seems like a bug. bcz it does have specific checks for both namespace keys and normal spigot names

vagrant moon
#
    if ("%checkitem_inslot:39,enchantments:blast_protection=3%" == "yes") {
        //do stuff
    }
#

this should be the code than, right?

turbid tide
#

yeah.

vagrant moon
#
    if ("%checkitem_inslot:39,enchantments:blast_protection=1%" == "yes") {helmetPoints + 1}
    if ("%checkitem_inslot:39,enchantments:blast_protection=2%" == "yes") {helmetPoints + 2}
    if ("%checkitem_inslot:39,enchantments:blast_protection=3%" == "yes") {helmetPoints + 3}
    if ("%checkitem_inslot:39,enchantments:blast_protection=4%" == "yes") {helmetPoints + 4}
    if ("%checkitem_inslot:39,enchantments:fire_protection=1%" == "yes") {helmetPoints + 1}
    if ("%checkitem_inslot:39,enchantments:fire_protection=2%" == "yes") {helmetPoints + 2}
    if ("%checkitem_inslot:39,enchantments:fire_protection=3%" == "yes") {helmetPoints + 3}
    if ("%checkitem_inslot:39,enchantments:fire_protection=4%" == "yes") {helmetPoints + 4}
    if ("%checkitem_inslot:39,enchantments:projectile_protection=1%" == "yes") {helmetPoints + 1}
    if ("%checkitem_inslot:39,enchantments:projectile_protection=2%" == "yes") {helmetPoints + 2}
    if ("%checkitem_inslot:39,enchantments:projectile_protection=3%" == "yes") {helmetPoints + 3}
    if ("%checkitem_inslot:39,enchantments:projectile_protection=4%" == "yes") {helmetPoints + 4}
    if ("%checkitem_inslot:39,enchantments:protection=1%" == "yes") {helmetPoints + 3}
    if ("%checkitem_inslot:39,enchantments:protection=2%" == "yes") {helmetPoints + 4}
    if ("%checkitem_inslot:39,enchantments:protection=3%" == "yes") {helmetPoints + 5}
    if ("%checkitem_inslot:39,enchantments:protection=4%" == "yes") {helmetPoints + 6}
turbid tide
#
helmetPoints + 3``` that ain't a thing chief
#
helmetPoints += 3``` on the other hand is
vagrant moon
#
    if (helmet == "NETHERITE_HELMET") {helmetPoints + 6}
    else if (helmet == "DIAMOND_HELMET") {helmetPoints + 5}
    else if (helmet == "IRON_HELMET") {helmetPoints + 4}
    else if (helmet == "CHAINMAIL_HELMET") {helmetPoints + 3}
    else if (helmet == "GOLDEN_HELMET") {helmetPoints + 2}
    else if (helmet == "LEATHER_HELMET") {helmetPoints + 1}
turbid tide
#

no my friend

#

helmetPoints + 6 will literally just calculate 0 + 6 but do nothing with that value

#

helmetPoints += 6 on the other hand means helmets point will increase by 6

#

so it will become 0 + 6 which is 6

#

you need to change it for all the additions

vivid sparrow
#

x += n is a shortcut for x = x + n

static ocean
#

There is no placeholder to show how much day in game?

vivid sparrow
#

math?

grave magnet
#

%player% isnt working in deluxechat... any tips?

austere hawk
#

My profile has been suspended due to a virus. What do I need to do to get it back?

austere hawk
#

@idle coral

tender vaporBOT
idle coral
#

What

mint fable
#

it's vanilla enchantment names @turbid tide

#

not spigot enchantments

#

idk why 🤷‍♂️

shy cedar
#

hey guys, I've been trying to get the total playtime of a player to show up through the placeholderapi for about an hour now with no success. I've read online that the playtime expansion has since been included in the newer versions of the plugin so I wouldn't need to download any expansions, but I can't seem to get it working at all. Any advice?

brazen isle
#

is there a placeholder that will display a item in scoreboards? %item_diamond%

prime umbra
#

The placeholder %bungee_total% ping is too late.
I use %bungee_total% with discordsrv, if players join the server, the number of players will be delayed

static ocean
#

How to show in game day with placeholder?

stark jewel
#

Little question, using the Placeholders plugin, if I use the %prefix% place holder but I want to delete only the first character in it, is it possible?

Ex: If the prefix would be &#123456[TEST], I want the place holder to return #123456[TEST]

turbid tide
stark jewel
tender vaporBOT
#
Javascript
Useful Links & Information:

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

turbid tide
#

you can read the wiki ^

arctic raft
turbid tide
#

have you tested them with the papi parse command?

#

also. do you have the KIllstats plugin installed?

arctic raft
#

umm what command 😅

turbid tide
#

/papi parse me %placeholder%

arctic raft
turbid tide
arctic raft
#

oh sry must have missed that part

turbid tide
#

and yes it sohuld work on 1.18 as well

arctic raft
#

oh yea i've tried that Plugin its not loading

arctic raft
#

now i only need to fix that the tab list only updated on a PlayerJoin event -_-

lofty patio
#

Hi
Is there (somewhere) placeholder which return true when player has X hours played?

warm topaz
arctic raft
tender vaporBOT
arctic raft
#

just wanna inform him lol 😮

#

bad bot!

#

:c

tender vaporBOT
silver minnow
arctic raft
#

oh thanks x)

#

and the other stats i have to add into the config now i'm good to go ty so much guys

austere hawk
#

is there a player holder for a mined block in y world

#

like how many black wool were mined in a specific world

#

like %statistic_mine_block:<material>% but with world

turbid tide
#

No

#

You'd need a special plugin to keep track of that

austere hawk
austere hawk
turbid tide
#

afraid I dont know any. might want to look at Statz but doubt it does this

austere hawk
#

tried it

lyric bone
#

Hello, I want to do a game status, for exemple in my lobby server, in the menu I want a placeholder with a text from my game server, do you know how can I do this? (in the lobby menu, have an item with lore "IN GAME" or "WAITING" from the minigame state)

merry mulch
#

can somebody help me out with some ecloud worldguard placeholders?

twin prawn
merry mulch
#

i use this one: %worldguard_region_<regionname>_owner% but it doesn't work

#

i have downloaded the ecloud

#

and restarted te server

twin prawn
#

The enginehub discord would probobly be of more use

merry mulch
#

that discord saw i need to ask here because that is not there placeholder

#

but from ecloud

#

so hopefuly you guys can help me out

twin prawn
merry mulch
#

no haha, is from ecloud

#

how fast is the papi support?

#

just for knowing ;D

twin prawn
#

In other times, instant but it is quite late

merry mulch
#

alright

#

happy to hear, there are a lot of devs who take so 4 day to response, thats why i ask

humble saddle
#

papi getting stuck at reloading

#

Fetching available expansion information...

#

papi ecloud downlaod vault

#

then papi reload

merry mulch
#

I have installed the eclouf vault but nothing changed

prime umbra
#

The placeholder %bungee_total% ping is too late.
I use %bungee_total% with discordsrv, if players join the server, the number of players will be delay

edgy delta
#

guys I did anything wrong?

thorny vale
#

Dose anyone know when the plugin will support 1.18

balmy marten
#

We have a dev build pinned, aiming to release a production build today or tomorrow

thorny vale
#

ok

#

it's the second last plugin i need

warm plover
#

Is it possible to have a nested placeholder like this? %nested_math_{rng_1,{player_item_in_hand_level_LOOT_BONUS_BLOCKS}+1%

edgy delta
#

guys

#

I did /papi ecloud download player_ping it doesnt work

#

I tried /papi ecloud download server_tps it didn't worked as welll

warm plover
#

Did you do /papi ecloud download player and /papi reload

#

you don't download each variable

warm plover
#

you download player and server

edgy delta
warm plover
#

?

edgy delta
#

I run my server on 1.18

#

it is working

#

from 1 week

thorny vale
#

in a dev build

#

?

warm plover
warm plover
thorny vale
#

ok

warm plover
#

np

torn jay
#

Hello, is there any plugin that creates custom parse placehoder? I'm trying to create a token shop where player buys an item

mint fable
#

just a value you can manipulate?

torn jay
#

yea

mint fable
#

try using player meta via deluxemenus

torn jay
#

ok thanks

mint fable
#

executable via /dm execute

#

obviously this is really only useful if you already use deluxemenus

torn jay
#

How do you give a value to the player?

#

and substract its value once the player bought the item

#

oh nvm

dense saddle
#

i switched java versions from 17 to 9 so fawe worked (1.8.8)
and now the javascript expantion doesnt work for papi