#placeholder-api

1 messages ยท Page 35 of 1

gusty nacelle
#

is the CheckItem expansion official from PlaceholderAPI? does it make sense to ask for support with that here

junior musk
#

yes

gusty nacelle
#

wonderful

sharp bloom
#

i rly dont understand how the %statistic_mine_block:COBBLESTONE% works and stops working randomly

junior musk
#

Minecraft's statistics are weird ๐Ÿคท

gusty nacelle
#

I'm using a plugin called ExecutableItems and it's conflicting with CheckItem_Remove. This is the problem:
The custom item say is of type "diamond" (made in executable items). and then I create another item example "Diamond Seller Wand", when I make an event/action that the player does, it will use checkitem to = 'yes' to determine if the player had 10 diamonds in inventory. However, it also includes the Executable Item that's material type is a diamond. so their custom item gets removed.
To combat this i decided i would try to use namecontains "Diamond" as vanilla item is called Diamond and the Custom Item is not. However this does not work because vanilla items only have a material and not a display name. It works after using /itemname on diamond to call the Diamond (but not on vanilla diamond) So I have joined to request a feature as i am unable to use github to open a ticket or whatever.

Possible solution:
Reverse conditions like namedoesnotcontain or !namecontains.
This would allow me to specify the name of the executable item and blacklist it.

Even better solution:
Have a checkitem parameter that will only work if there is no display name set on the item is empty. i.e. nameempty
This will allow to use both vanilla and EI items with checkitem and not have to blacklist ei items individually.

sharp bloom
junior musk
#

%checkitem_mat:diamond,strict,amt:10%

gusty nacelle
#

i searched the docs for what that does

#

theres no desc i think on github

sharp bloom
#

but there is direct "support" for executableitems

gusty nacelle
#

ok awesome can you tell me what strict does and about the support for it

junior musk
#

nothing more, nothing less

#

actually that might be an issue if there's more than 10 diamonds, but if that's the case you could use %checkitem_amount_mat:diamond,strict% and check whether it's >= to 10

sharp bloom
#

%checkitem_nbtstrings:PublicBukkitValues..executableitems:ei-id=diamond,amt:10% wouldnt that be the best solution?

#

and run the /ei take %player_name% diamond 10

junior musk
#

they don't want the EI items

#

they want only the vanilla diamonds

#

not the EI items

sharp bloom
#

oh

gusty nacelle
#

like if you have 20 do it twice

#

as normal

junior musk
#

uh

#

weird but okay ๐Ÿ˜…

#

oh right, because you're using checkitem_remove

#

yeah that sounds about right

junior musk
#

I don't think there's any way to prevent that

sharp bloom
#

there is always the minecraft clear aa_cat_stare

#

maybe combine maths too with it?

gusty nacelle
junior musk
#

all good then

gusty nacelle
#

tysm

jagged snow
#

This is the used placeholder:
%math_SQRT((%var_block_z%-%var_player_z%)*(%var_block_z%-%var_player_z%))%

Thats the error in the console:

! [Wed 15:21:42 WARN PlaceholderAPI] [math] Invalid Placeholder detected!
! [Wed 15:21:42 WARN PlaceholderAPI] [math] Placeholder: %math_SQRT((%
! [Wed 15:21:42 WARN PlaceholderAPI] [math] Cause: 'SQRT((' is not a valid Math expression.
The Math Extension is on the latest version on PAPI 2.11.5

#

Additionally, I am using the plugin 'Executable Items', which parses its placeholders first. It was working fine a few weeks ago.

junior musk
#

use {} for placeholders within placeholders

#

%math_SQRT(({var_block_z}-{var_player_z})*({var_block_z}-{var_player_z}))%

mint fable
#

did you lose access to your ecloud account?

celest plover
#

Yesterday I didn't have the button to add a version, now I do

mint fable
#

ah

#

you also need to fix the version in your pom.xml

celest plover
#

If you see on github it's correct

mint fable
#

and we found it odd that you check if placeholderapi exists thonking

#

hmm lemme see

celest plover
#

I know but that's becouse Intellij gives me a warning

#

I just don't like it ahaha

mint fable
#

hmm

#

when you load the expansion what version does it say in-game?

celest plover
#

As the metric class needs a @NotNull instance

#

4.7

mint fable
#

well there are no metrics soo

celest plover
#

What do you mean?

mint fable
#

maybe i misunderstood

#

you check if placeholderapi exists so you can use it in metrics?

celest plover
#

I do the check just to remove the yellow warning from intellij

#

I know that it will always be not null

mint fable
#

you have to remove the metrics

celest plover
#

No why lol

mint fable
#

placeholderapi has metrics

celest plover
#

I know

#

I want metrics for my expansion

mint fable
#

it will not be verified if you have metrics for your expansion

celest plover
#

Why lol

mint fable
#

Rules are rules

#

We gotta be more strict on the rules these days too

#

in the past, your expansion did have metrics

#

still does

#

but if you want it verified you'll have to remove all metrics

celest plover
#

It's a free expansion, I just want to know how many players use it

#

It doesn't create problems

mint fable
#

You don't need to argue

#

i'm not here to argue

#

I'm just telling you the situation

#

you don't have to comply, but it won't get verified

#

that's all

celest plover
#

Which are the rules?

mint fable
#

I didn't make the rules, and they won't be changed

#

let me know if you get a version you want to upload

celest plover
mint fable
#

only issues with your expansion was the metrics, the version (fixed), and we thought it was weird to check if placeholderapi existed, but you did it for a warning for notnull for metrics; which will be removed anyway

celest plover
#

Ok but if I have to follow rules, can I see these rules?

mint fable
#

there is no list

celest plover
#

Can I check if the expansion was downloaded from ecloud?

#

If not I add the metrics, otherwise no

mint fable
#

I do not believe so.

#

We can just remove it from the ecloud

sharp bloom
#

eh, if only the statistic expansion wouldnt randomly stop working r_ew

celest plover
mint fable
#

there is no compromise to be had

celest plover
#

the metrics code won't run if you download the expansion with ecloud

mint fable
#

@austere hawk by chance could you push an update for the ChatColorExpansion fixing your getVersion() method?

#

@warped flicker Could you do the same thing with your donatecraft expansion?
your getversion() returns 1.0.3 and the ecloud says V1.0.4 (needs to match exact)

celest plover
#

Uploaded the new version

mint fable
celest plover
#

is there a wiki on how to use config with expanions?

vivid sparrow
#

implement Configurable, override the getDefaults method and load the values from config on canRegister

mint fable
#

checkitem has config options

vivid sparrow
mint fable
#

was trying to find a page but I think I had to look at other expansions for examples

#

@untold crater by chance could you update the kyorify expansion and fix the getVersion() method?

untold crater
#

i have not touched that thing in ages but sure

mint fable
#

thanks ๐Ÿ™‚

celest plover
#

thanks

#

can the Map(getDefaults) be an ImmutableMap?

warm topaz
warm topaz
celest plover
hasty iris
#

Hello, I am using the crazyenvoy plugin. I want to show the remaining time for the envoy event in the plugin on another server. Does anyone know how I can do this?

#

I am using a cross server system, I have 2 separate worlds, I want the envoy event duration to appear in both worlds.

celest plover
#

configsection is null if getIdentifier() returns a string with capitalized chars

mint fable
#

@neat fern by chance could you update your randomcolors expansion to fix the getVersion() method mismatching the version on the ecloud as well?

#

@limber ice by chance could you update the Statz expansion? ecloud says version 1.3.5, but internally the jar says 1.5.3

#

@dry citrus could you by chance update your Simplepets expansion to fix the version? internally it says 1.0.0, ecloud says 1.0.2

#

@distant sail could you by chance update your superheroes expansion to fix the version? internally it says 1.0.0, ecloud says 1.0.2

dry citrus
tender vaporBOT
dry citrus
#

Oh sorry ๐Ÿ˜”

trail forge
#

how to i download a JetsMinions expansion for placeholderapi? it does not exist with the ecloud download command

balmy marten
#

If it's not on the ecloud it might be built into the plugin?

trail forge
#

I tried to use it on TAB plugin but it's not displaying it, i thought it was available to download from ecloud

balmy marten
#

Does it show up in /papi list?

trail forge
#

yes

balmy marten
#

Then it's registered

#

You can test placeholders with /papi parse me %placeholder%

trail forge
#

Hmm with that command it is working, then it's the TAB plugin issue

balmy marten
#

Which tab plugin?

balmy marten
#

From reading their wiki it doesnt seem you need to do anything special to get it working

#

Just make sure it's using the %'s

trail forge
balmy marten
#

Weird, if it's working in papi is most likely an issue on TAB's side

sharp bloom
#

eh ofc a jets plugin :/

sharp bloom
#

i had same issue with jetsantiafk and changed it

balmy marten
sharp bloom
#

ye i had that issue on tab and holograms

#

and after reloading the plugin it would work fine

balmy marten
#

you talking about restarting jets or the tab?

sharp bloom
#

jets ofc

#

/minions reload

balmy marten
#

Weird that would make any difference if it works fine in papi parse

trail forge
#

Wow that worked

sharp bloom
trail forge
#

Reloading the jetsminions plugins worked

balmy marten
#

So odd

sharp bloom
#

mid plugins

trail forge
#

thanks!

sharp bloom
#

jets plugins have unique issues

jagged snow
#

I recognized weird things:

%parseother_ChemFlix_{changeoutput_equals_input:{essentials:afk}_matcher:yes_ifmatch:test_else:test}%
returns atcher:yes_ifmatch:test:else:test

and %changeoutput_equals_input:{essentials:afk}_matcher:yes_ifmatch:test_else:test%
returns test.

This is a bug. Isn't it?

jagged snow
#

ah yeah i see... thank you โค๏ธ

mint fable
#

yep

drowsy trail
#

Hey, is OtherPlayer expansion is still being supported?
When the placeholder is incomplete, it throws an exception, which is rather unexpected considering other expansions don't really do that (AFAIK)
https://pastie.io/yxamht.md

balmy marten
drowsy trail
balmy marten
#

All expansions will have that as they hook into PlaceholderAPI to function

drowsy trail
# balmy marten All expansions will have that as they hook into PlaceholderAPI to function

I don't think that's true? Just checked a few random expansions, and they do have different packages.
Also just made a test expansion that just throws an exception, and it seems to be using my package

> papi parse --null %example%
[12:34:05 WARN]: Unexpected exception while parsing console command "papi parse --null %example%"
org.bukkit.command.CommandException: Unhandled exception executing command 'papi' in plugin PlaceholderAPI v2.11.5
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[paper-api-1.20.2-R0.1-SNAPSHOT.jar:?]
    ...
Caused by: java.lang.RuntimeException: Yolo
    at me.imdanix.testexpansion.TestExpansion.onRequest(TestExpansion.java:24) ~[?:?]
    at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.5.jar:?]
    at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.5.jar:?]
    ...
balmy marten
#

Im confused as to what you question is?

junior musk
#

the guy used com.extendedclip.papi.expansion

#

so that's why imDaniX thought the expansion was managed by us

balmy marten
#

Oh

#

Was most likely just a copy of the example we gave in the wiki at the time

limber ice
#

@mint fable expansions are now built into jar, how do I update versions on papi ecloud?

tender vaporBOT
balmy marten
#

If it's built in now, happy to keep it unverified or remove it to avoid user confusion

limber ice
#

there are still people who run older versions of Statz and Autorank and still want the older versions of expansions, since latest don't work on all versions

balmy marten
#

So it looks like you have 1.5.3 in the jar but 1.3.5 on the ecloud

#

Easist way would be to reupload the same version but label it as 1.5.3 on the ecloud

#

And update the description to mention it's only for legacy versions

limber ice
#

yes and latest statz is 1.7.1 and thats not on spigot, since Staartvin has been AFK I have manually changed version of the expansion to what is on the cloud to show it up to date

balmy marten
#

The best bet would be to mark it as unverified in the ecloud to avoid any out of date messages from showing due to mismatched versions. And realistically its only outdated versions of the main plugin that need to download it

limber ice
#

so unverified still leaves older version on ecloud?

balmy marten
#

Correct, just requires manual download

limber ice
#

then yes that should work, what about autorank?

balmy marten
#

Is that built in aswell?

limber ice
#

yes

balmy marten
#

I've updated the Statz ecloud page, when you get a moment just update the ecloud description to mention the plugin versions it's built for

limber ice
#

and clip made the expansion

#

I just updated the discription

balmy marten
#

No worries, I can update the autorank description

limber ice
#

I had someone mention I needed to updated the placeholders on statz, is there another change coming?

balmy marten
balmy marten
limber ice
#

yes I updated a year or so ago

balmy marten
#

There's only been 1 real change I believe which was over a year ago

limber ice
#

the person getting the message is running Purpur I don't see it on Paper

balmy marten
#

Have you got the message?

limber ice
#
[01:37:09 WARN]: [PlaceholderAPI] autorank is attempting to register placeholders via deprecated PlaceholderHook class. This class is no longer supported and will be removed in v2.13.0!
[01:37:09 WARN]: [PlaceholderAPI] Cannot load expansion autorank due to an unknown issue.
balmy marten
#

Get them to run /papi dump when possible

limber ice
#

or did he download a expansion

balmy marten
#

My guess is its the old expansion, but papi dump should tell you all the version info to be sure

limber ice
#

ok

#

if I run /papi ecloud list installed gold means?

balmy marten
#

Out of date

#

The changes we made wouldn't be in our cache yet

#

Takes a bit of time

limber ice
#

so autorank and statz will be gold, but they will not be able to download older version?

#

so they will be green in time

balmy marten
#

They should go green as they wont be able to see the new versions

#

Once our cache updates

#

Can take up to an hour

limber ice
#

or be removed from the list?

balmy marten
#

Yeah so only verified expansions are shown to the in game downloader, so once the cache is updated papi wont be able to see the version missmatch and assume its up to date

limber ice
#

cache seems to be updated already

balmy marten
#

Good to hear

limber ice
#

it says I have 11 hooks and list 10 I thought I should of had 12 hooks

balmy marten
#

Is that a question?

limber ice
#

I guess

balmy marten
#

Haha all good

#

Whats up

limber ice
#

what is Advancements? I never downloaded it

balmy marten
#

Feel free to run /papi dump

limber ice
balmy marten
#

So Expansion-advancements.jar is in your expansions folder

#

So you would have downloaded it

limber ice
#

maybe at one time but it wasn't in list before I updated player and bungee

balmy marten
#

Feel free to delete it if you're not using it

limber ice
#

so papi don't count expansions built into jars?

balmy marten
#

I believe it might, but i'd have to double check that

limber ice
#

I have 11 in expansion folder, just not seeing javascript in list

balmy marten
#

It says javascript is registered

limber ice
#

I removed advancment and Statz and Autorank returned in the list

balmy marten
#

hmm?

limber ice
#

I will give the cache more time and check later

balmy marten
#

I can see it's been removed from the api on our side. You might be able to force it to reload the server cache with /papi ecloud clear and /papi ecloud refresh

limber ice
#

that seem to fix it

distant sail
tender vaporBOT
distant sail
#

done

vocal moon
#

i think this is the right channel so i think its nothing wrong with papi but maybe bc i want to use papi-mineresetlite and it say the class is not supported so is there a version that supports that class still

balmy marten
#

The mineresetlite expansion is built into MineResetLite, so no need for an expansion

vocal moon
#

Ok

vocal moon
#

do you possibly know what placeholders there are or like are they the same

balmy marten
#

I'm not sure, give it a try

vocal moon
#

ok

#

man idk

vocal moon
#

ye idk what it could be

#

and i cant find a place where it is displayed on too

balmy marten
#

Does it show up in the /papi list?

vocal moon
#

minerestelite?

balmy marten
#

Correct

vocal moon
#

yeah

#

wait

#

no lmao

balmy marten
#

Mind running /papi dump?

vocal moon
#

k

#

sent me a link

balmy marten
#

Mind throwing that link here

vocal moon
balmy marten
#

Whos MineResetLite plugin do you have?

#

Seems there's a few authors with the same plugin

vocal moon
#

tbh i dont even know

balmy marten
#

/ver mineresetlite might tell you

#

Looks like you have this one

vocal moon
#

jjkoletar

#

maybe lol

#

yeah

#

haha

balmy marten
#

So I don't think that plugin has placeholderapi support

vocal moon
#

dang...

balmy marten
#

I'll check the code to confirm

sharp bloom
#

what's your server version and u use a dead plugin o.O

balmy marten
#

Yeah, no dice, no papi hooks

vocal moon
#

idk i think 1.20.1 or 1.20.2

#

well ill go look for another mrl

balmy marten
#

vk's is the one with papi support but I don't know how up to date it is

vocal moon
#

i think it isnt lol

#

might be

vocal moon
#

if i cant find ill use like catamines or smth

sharp bloom
#

tho idk how stable it is

vocal moon
#

ill go check it

sharp bloom
#

yeah catamines better lol

vocal moon
#

tho realmines is good too

balmy marten
#

Both seem to have Papi support so you should be good either way

untold crater
tender vaporBOT
inland moat
#

hi i have a question about CheckItem Expansion. I have a custom nbt tag "strength" and i want the placeholder to ouput only the value of the nbt tag "strength", what placeholder do i use?

mint fable
mint fable
#

replace <slot> ofc

high dragon
#

Is there any placeholder or any simple way to count entitiesยฟ?
In a range or in a plotยฟ?

fossil stratus
#

Is there documentation on the changeover process for updating old applications that used PAPI to whatever changed in 1.20.4? Looking for generic information on exactly what changed and how to properly update it

inland moat
tender vaporBOT
mint fable
#

wym idk rn

#

Did you test the exact placeholder i sent?

inland moat
#

im not at my pc rn but i tried the exact one you sent

sharp bloom
#

maybe u need to use the nbtints?

#

if its an interger value

inland moat
mint fable
#

hmm

#

can you type /papi parse me %checkitem_getinfo:<slot>_%

#

what does that return @inland moat

inland moat
mint fable
#

did you replace slot

inland moat
#

yea

#

%checkitem_getinfo:mainhand_nbtints:% parses nbt:NBTTagCompound:Item:{tag:{strength:10}}|INTEGER:Damage:0

#

without nbtints: it parses just an empty string

mint fable
#

oh so it is an int

#

hmm

#

%checkitem_getinfo:mainhand_nbtints:strength=0%

#

?

inland moat
#

parses 0

mint fable
#

can you /data get entity @s SelectedItem

#

imma brb

#

?imgur

tender vaporBOT
#
FAQ Answer:

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

mint fable
#

%checkitem_getinfo:mainhand_nbtints:Item..tag..strength=0%

inland moat
#

still parses 0

mint fable
#

hmm

#

ah

#

so it only supports one set of .. , hmm

#

It would require pushing an update to checkitem and the time to do so

quick imp
#

Hello, my situation is the following, I have a menu that when you open it you can choose sanctions, and when you select it the command is executed which perfectly marks who to sanction with the arguments, but how can I make it say who was sanctioned? How do I get it to take the nickname of whoever put /punish and then mark it, since I use forward

broken cipher
#

hello
can someone tell me what happened to %vault_prefix_color% placeholder?

#

i tried searching in update logs on github and ecloud, i do not see anywhere it was stated it was removed, though this placeholder does not work nor is included in list of placeholders, but it was

#

ok i found it now... in 1.8.0 was removed

quick imp
tender vaporBOT
versed warren
#

don't ping

molten sky
#

hello i have a plugin that asks me to do .papi ecloud download javascript but i can't do it in games

junior musk
#

the Javascript expansion got unverified, so you need to download it manually from the ecloud

#

click on Download

junior musk
#

can you send your menu?

#

if you want the player that opened the menu, use %player_name%, if you want the player that got sanctioned, use the argument

molten sky
#

when I download it and put it in the right place in my files and restart the server nothing happens it tells me "Failed ton find an expansion named: javascript".

junior musk
#

you don't need to run the command again

#

once you downloaded the jar and restarted the server, it'll be loaded

#

check /papi list

quick imp
#

It is a menu that there will be another menu

quick imp
#

@junior musk

junior musk
#

what's not working?

#

which placeholder did you try and what does it show? and what should it show

#

and which command did you run

quick imp
#

view

junior musk
#

that doesn't tell me what's not working exactly

#

nor what's showing ingame

#

nor what it should show

#

nor which command you ran ingame

quick imp
#

When you enter %player_name% and execute the command it is not filled in, directly execute %player_name% it does not become the player's nickname

junior musk
#

?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

junior musk
#

did you do those commands?

quick imp
#

the command does say so

quick imp
junior musk
#

do /papi parse me %player_name%

#

does it say your name in chat?

quick imp
junior musk
#

/papi dump

#

send the link

hybrid sage
#

how do i papi parsecmd a console command

junior musk
#

--null as player

hybrid sage
hybrid sage
#

works great if its a player

#

doesnt work if its in consoe

#

console

junior musk
#

what's your PAPI version?

hybrid sage
#

2.11.5

junior musk
#

what's the full cmd you ran?

hybrid sage
#

its a little weird

#

/papi cmdparse --null lp group %superior_island_uuid% parent add t2-spawners

junior musk
#

uh

#

idk if cmdparse supports it

hybrid sage
#

its weird bc there is a luckperm group with the same name as the uuid

#

it works if its as a user

#

if i do /papi cmdparse usernameofanadmin lp group %superior_island_uuid% parent add t2-spawners

hybrid sage
#

last time ill ping u if u dont want it

junior musk
#

it does support --null

#

idk why it doesn't work for you

hybrid sage
#

ill just write a small plugin to do it ig

#

anyone else know a fix before i do that though?

junior musk
#

do you use DeluxeMenus?

#

wait actually no

#

nvm

hybrid sage
near nimbus
#

Can't seem to download the world expansion, trying to get %world_timein12_<world>% working

#

Any ideas?

balmy marten
near nimbus
#

It doesn't appear in the auto complete tho

balmy marten
#

Cause its not verified

near nimbus
#

wait rly

#

lmao

balmy marten
#

I'll check it now and get it verified if it passes

vivid sparrow
#

Smh Brett

cedar crest
#

hello , how to register / activate CMI placeholders ?

junior musk
#

CMI registers it's placeholders automatically once you install the plugin

jagged snow
#

hey ^^
the scoreboard value of 'counter' equals '3' but this placeholder returns 'no' instead of 'yes' when 'counter' is on '3':
%changeoutput_equals_input:{objective_score_{sanduhr_counter}_{counter}}_matcher:3_ifmatch:ja_else:no%

junior musk
sharp bloom
#

ye also could be that :/

#

tho the amount seems correct ?

#

3 opening, 3 closing

#

maybe it cant get parsed properly

vivid sparrow
#

yes, that's what tang meant

sharp bloom
#

then utils expansion is a great option, %utils_parse_objective_score_{sanduhr_counter}_{counter}% that might fix it

junior musk
#

PAPI doesn't care about how many opening/closing there are, it just takes the first } regardless of whether there was one more { before

#

so yeah, you'll need the utils expansion

sharp bloom
#

ooof

wet basinBOT
#

@vivid sparrow Unknown expansion.

sharp bloom
#

someone add a ?utils

#

?list

tender vaporBOT
#
Available FAQ Answers:
FAQ Keys
arrow-code
autosellapi
base64-serialization
best-vps-deal
bug-with-dd
challenges
checkitem
checkitem-nbt
codeblocks
colors
database
dc-fuuid
dc-towny
di
dictionary
discorddev
dm-1.10.5
dm-base64
dm-builds
dm-cooldown
dm-creator
dm-deny
dm-external
dm-filler
dm-glow
dm-heads
dm-item-data
dm-middle
dm-modeldata
dm-multireq
dm-open_requirement
dm-pixelmon```
FAQ Keys
dm-requirements
dm-stringequals
dm-tags
dm-update
docs
dry
ecloudblock
enchant-format
enchants
entities
ess-builds
flags
help
hidden-roles
hosting
hosting-free
hosting-paid
hotswap
imgur
javadocs
jdk
js-factionname
js-tag
json
learn-java
libs
luckperms
materials
need-help
nojquery
not-discord
notowner```
FAQ Keys
papi-builds
papi-dump
papi-hd
papi-mini
papi-nocolor
papibot
particle-guide
particles
paste
placeholders
player
pls-no
plsnoarrowcode
plsnolombok
roleperks
service
site
slots
solid
sounds
spigot
spigotid
startuplog
tagess
tryandsee
wiki
xy
yaml```
sharp bloom
#

yeah we need more expansion tbh

#

in the format of ?player

#

?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

sharp bloom
#

ok mby not player

#

but

#

?checkitem

tender vaporBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.
And click here for the CheckItem wiki with DeluxeMenus example menus.

vivid sparrow
#

I would argue we should not encourage the usage of 20 nested placeholders ๐Ÿ™‚

sharp bloom
#

Actually sh!

#

thats what shortcut expansion is for

#

i even use shortcuts in shortcuts

vivid sparrow
#

eh

sharp bloom
#

its a nice way to manage nested placeholders tbh

junior musk
#

just like ParseOther

#

to make sure to account for _

vivid sparrow
#

yeah... great format

junior musk
#

yeah...

vivid sparrow
#

idk why not [] instead or something else

junior musk
#

๐Ÿคท

vivid sparrow
#

An objective's name is used internally for referencing in commands, target arguments, and the file format. In Java Edition, the allowed character set for it includes all lowercase and uppercase letters, numbers, underscore, period, minus and plus.
Time for an update to use [] instead kek

sharp bloom
#

it would be so cursed with .

vivid sparrow
#

nah we need something that is not allowed in the name

sharp bloom
#

yeah

jagged snow
vivid sparrow
#

be careful walking down this path, the path of too many nested placeholders kek

sharp bloom
sharp bloom
#

2 nested placeholders is nothing

#

i think the most i have are 5

vivid sparrow
frozen inlet
#

Hello

#

How can I make a deluxemenu take playpoints point instead of economy money?

gloomy marsh
#

Guys exists any form to do that:
%superior_island_top_worth_position%:
when u have island: "#%superior_island_top_worth_position%"
when u dont have island: "" <-blank

#

im using

#

%changeoutput_equals_input:{superior_island_top_worth_position}_matcher: _ifmatch:_else:#{superior_island_top_worth_position}%

#

but i return (when i haven't island)
#

humble bone
#

Hi. I'm using %statistic_hours_played% to visualize the hours played by a player. But can I change this information? For example, add a few hours to the player's time or reset it to zero? In which file is it stored?

ocean beacon
gloomy marsh
junior musk
gloomy marsh
gloomy marsh
junior musk
#

and the ChangeOutput placeholder returns nothing ?

wary knoll
#

please help...

wary knoll
#

................

junior musk
#

can you provide a screenshot? which placeholders are you using and in which plugin?

wary knoll
#

wait i cant send ss in here

junior musk
#

?imgur

tender vaporBOT
#
FAQ Answer:

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

wary knoll
#

ultra scoreboard and CMI

#

does not work with the %player%

junior musk
#

?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

wary knoll
junior musk
#

%player% isn't a PAPI placeholder

#

%player_name% is

#

and it requires the Player expansion do be downloaded

#

which you're not using, and don't have downloaded

wary knoll
#

Okay but still I think itโ€™s still broken since mbedwars didnโ€™t work (or mbedwars placeholder is broken?

#

)

junior musk
#

idk if mbedwars supports PAPI

#

but it probably has its own player placeholder

#

which one did you use?

#

seems like it uses {player}

wary knoll
#

Oh

#

It just said you could do /papi info mbedwars

#

So I kinda thought it was this design

junior musk
#

yeah to get placeholders that retrieve info from mbedwars

#

but idk if it actually parses PAPI placeholders in its language files

wary knoll
#

Alright

#

Thanks for your help

#

Have good one

junior musk
#

you too

wispy pond
#

Pls help

#

Someone is spamming me

#

So much

#

Someone cones to dm i can send a pic tgen use translater

#

@junior musk

#

@junior musk

junior musk
#

what did I do to you to deserve a double ping NotLikeThis

#

if someone is bothering you in DMs, just block them

wispy pond
#

Wait bro just add me and make the pic that i will send to you
And yoy Will know

junior musk
#

does it matter?

#

just block them if you don't want to see their msgs

#

that's what the block function is here for

wispy pond
#

He's saying sexual things about ne in groups and servers

junior musk
#

that's something different, don't just block but also report the Discord account

#

also send a message to @tender vapor with all the info (screenshots and stuff) so we can ban them from the server

wispy pond
#

Ok but he have to use translate because he's Kurdish

junior musk
#

we can't really do that, we're not affiliated with Discord

#

that's why I told you to report their account

#

the best thing we can do is ban them from this server

idle lily
#

Why does everyone think this is discord support

balmy marten
#

Our seo is just too good

sharp jay
#

lol

wispy pond
#

Ban him from the group

#

I haven did the report

jagged snow
#

How do I get the countdown until 23:59 each day using the server_countdown placeholder? I've already tried, but I can't figure it out.

balmy marten
sharp bloom
#

?not-discord

tender vaporBOT
#
FAQ Answer:

Looking for discord support?
HelpChat is a Minecraft plugin and development support server and is not affiliated with discord in any way.
If you require support from discord, we recommend you to visit their official support website at https://support.discord.com
On this website, you can read their FAQs, or open a support ticket if necessary.

sharp bloom
raven dragon
#

Hey guys, this might because we are a cracked server, but is there any way to fix this?

#

[15:46:15 ERROR]: Could not pass event PlayerJoinEvent to PlaceholderAPI v2.11.3
java.lang.ClassCastException: null

mint fable
#

We do not support cracked servers here

jagged snow
#

I think you didn't see this because of the discord support thing. I'd rather send it again:
How do I get the countdown until 23:59 each day using the server_countdown placeholder? I've already tried, but I can't figure it out.

ionic pumice
#

Hey, I would like to know if eCloud account registration requests are accepted again?

sharp raft
#

[19:27:40 WARN]: java.lang.NullPointerException: Cannot invoke "org.bukkit.entity.Player.getDisplayName()" because "player" is null
ConfigurationSection playerConfig = config.getConfigurationSection("players." + player.getDisplayName());

junior musk
#

your player instance is null ๐Ÿคท

#

and since this doesn't have anything to do with PAPI, use #development instead

next gazelle
#

Just got placeholder api, but placeholders are still not working, anyone know why

junior musk
#

which placeholders? and where are you using them?

cyan wyvern
junior musk
#

formatted how?

cyan wyvern
#

show K

#

1000= 1k

#

1100= 1.1k

#

500000= 500k

junior musk
#

you can use the Formatter expansion

#

%formatter_number_format[_[locale]:[pattern]]_<number>%

cyan wyvern
#

thanks

#

this will affect perfomance ?

junior musk
#

shouldn't

cyan wyvern
#

its safe to do papi reload?

#

i have 140 online

junior musk
#

yes

rocky matrix
#

the player api on papi breaks the featherboard plugin

#

does anyone know why?

#
[18:24:56 WARN]: java.lang.NoSuchFieldException: locale
[18:24:56 WARN]:        at java.base/java.lang.Class.getField(Class.java:2117)
[18:24:56 WARN]:        at com.extendedclip.papi.expansion.player.PlayerUtil$2.cacheReflection(PlayerUtil.java:128)
[18:24:56 WARN]:        at com.extendedclip.papi.expansion.player.PlayerUtil$2.apply(PlayerUtil.java:104)
[18:24:56 WARN]:        at com.extendedclip.papi.expansion.player.PlayerUtil$2.apply(PlayerUtil.java:95)
[18:24:56 WARN]:        at com.extendedclip.papi.expansion.player.PlayerUtil.getLocale(PlayerUtil.java:138)
[18:24:56 WARN]:        at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:200)
[18:24:56 WARN]:        at FeatherBoard (3).jar//be.maximvdw.featherboard.NR.Z(NR.java:3)
[18:24:56 WARN]:        at FeatherBoard (3).jar//be.maximvdw.featherboard.Ny.E(Ny.java:4)
[18:24:56 WARN]:        at FeatherBoard (3).jar//be.maximvdw.featherboard.jU.N(jU.java:30)
[18:24:56 WARN]:        at FeatherBoard (3).jar//be.maximvdw.featherboard.sn.N(sn.java:73)
[18:24:56 WARN]:        at FeatherBoard (3).jar//be.maximvdw.featherboard.sn.X(sn.java:90)
[18:24:56 WARN]:        at FeatherBoard (3).jar//be.maximvdw.featherboard.sn.h(sn.java:3)
[18:24:56 WARN]:        at FeatherBoard (3).jar//be.maximvdw.featherboard.api.scoreboard.ScoreboardLine.updatePlaceholders(ScoreboardLine.java:219)
[18:24:56 WARN]:        at FeatherBoard (3).jar//be.maximvdw.featherboard.api.scoreboard.Scoreboard$AnimationUpdater.run(Scoreboard.java:9)
[18:24:56 WARN]:        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101)
[18:24:56 WARN]:        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
[18:24:56 WARN]:        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[18:24:56 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[18:24:56 WARN]:        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[18:24:56 WARN]:        at java.base/java.lang.Thread.run(Thread.java:842)
[18:24:56 ERROR]: [FeatherBoard] java.lang.NullPointerException: Cannot invoke "java.lang.reflect.Field.get(Object)" because "this.locale" is null
        at com.extendedclip.papi.expansion.player.PlayerUtil$2.apply(PlayerUtil.java:112)
        at com.extendedclip.papi.expansion.player.PlayerUtil$2.apply(PlayerUtil.java:95)
        at com.extendedclip.papi.expansion.player.PlayerUtil.getLocale(PlayerUtil.java:138)
        at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:200)
        at FeatherBoard (3).jar//be.maximvdw.featherboard.NR.Z(NR.java:3)
        at FeatherBoard (3).jar//be.maximvdw.featherboard.Ny.E(Ny.java:4)
        at FeatherBoard (3).jar//be.maximvdw.featherboard.jU.N(jU.java:30)
        at FeatherBoard (3).jar//be.maximvdw.featherboard.sn.N(sn.java:73)
        at FeatherBoard (3).jar//be.maximvdw.featherboard.sn.X(sn.java:90)
        at FeatherBoard (3).jar//be.maximvdw.featherboard.sn.h(sn.java:3)
        at FeatherBoard (3).jar//be.maximvdw.featherboard.api.scoreboard.ScoreboardLine.updatePlaceholders(ScoreboardLine.java:219)
        at FeatherBoard (3).jar//be.maximvdw.featherboard.api.scoreboard.Scoreboard$AnimationUpdater.run(Scoreboard.java:9)
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101)
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:842)```
mint fable
#

?papi-dump

tender vaporBOT
#
FAQ Answer:

PAPI Dump
To generate a PAPI dump, execute the command /papi dump. Then you can copy the link by clicking on it in chat and selecting the COPY LINK button.

mint fable
#

@rocky matrix this

rocky matrix
mint fable
#

seems to be a known issue

#

you can subscribe to the issue to get updates

rocky matrix
#

Thank you

#

ive also got another error

#

with the same plugin

mint fable
#

๐Ÿ‘

#

what is it

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

rocky matrix
mint fable
#

aha

#

@rocky matrix

#

can you check your paper config

rocky matrix
#

i stg if its something so damn simple

mint fable
#

there is a setting related to ip addresses i think

#

see if enabling that fixes the locale at all

#

just wondering

#

i'm just trying to see what paper did in 1.20.2

#

and I see that

#

seems like it could be related ๐Ÿคทโ€โ™€๏ธ

rocky matrix
#

is it in config/paper-global.yml

mint fable
#

uh

#

yes

#

it might be related to logging the ips?

rocky matrix
#

only thing for logging is this yml logging: deobfuscate-stacktraces: true

mint fable
#

hmm

rocky matrix
#

but heres the whole file

mint fable
#

i don't use paper lol

#

so

#

:L

rocky matrix
#

damn

mint fable
#

?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

rocky matrix
mint fable
rocky matrix
#

I cant find him on anything, and hes not active on spigot like at all

mint fable
#

check the plugin threads

rocky matrix
#

I have, he was last active bout a month ago

#

ahh

mint fable
#

it might be related to the same thing papi is

rocky matrix
#

but i see others have the same problem

mint fable
#

tbh

#

hmmmmmmmm

#

i'm looking at this lol

rocky matrix
#

sorry, im not really much of a java dev lol, what does this mean

mint fable
#

just read the name

#

Add-config-option-for-logging-player-ip-addresses.patch

#

seems like it would add the option lol

#

but honestly, I'd reach out to paper support to see if they have any info/help

rocky matrix
#

and you think that logging players ip is the problem with this plugin?

mint fable
#

well, not exactly

#

in my eyes

#

I see getting the player's locale could be related to getting the player's ip

#

but I could be 100% wrong

#

I was just reading the patches they made for 1.20.2 specifically

rocky matrix
#

Do you think that it could be that im running this on local host?

mint fable
#

hmm

#

maybe? but probably not?

rocky matrix
#

hm

mint fable
#

do you have a spigot instance to try

#

what about 1.20.4

rocky matrix
#

like not paper spigot?

mint fable
#

yeah sorry, regular spigot

rocky matrix
#

im running the lastest version of paper spigot

#

but yeah let me try regular spigot

mint fable
#

oh mb

#

uh oh

#

it also happens on regular spigot

rocky matrix
#

-.-

#

bukkit?

#

lol

mint fable
#

and my featherboard is going wild

#

lol

#

let's see

rocky matrix
#

how could we get it to just load up normally?

golden bison
#

does papi no longer offer support for the simplegems plugin?

mint fable
#

it says papi is required to use it @golden bison

golden bison
#

im aware, but its not listed on the ecloud site and i cant get it to load in my server using /papi ecloud download

mint fable
#

most likely included in the plugin, test with /papi parse me %placeholder%

golden bison
#

what should come up after that?

rocky matrix
#

also doesnt work on craftbukkit, i assume it doesnt work with anything 1.20.3+

golden bison
#

placeholder api or the simplegems plugin?

mint fable
rocky matrix
#

I supposed all i can really do is just wait for maxim to post an update huh @mint fable

mint fable
#

umm

#

maybe

#

im looking into our issue

rocky matrix
#

Alright, ive been at this for a couple days now and no luck lmao

mint fable
#

ssssmmmmmhhhhh

#

fucking mojang

rocky matrix
#

fr

mint fable
#

i don't even have 1.20.3 to test

#

so

#

they changed it from locale to cM in 1.20.2

#

and in 1.20.4 it's cO

rocky matrix
#

alright

mint fable
#

smh

rocky matrix
#

wtf

mint fable
#

so now i have to compile 1.20.3

#

to see

rocky matrix
#

i am running 1.20.4 btw

mint fable
#

yes i can fix

rocky matrix
#

ah alright

#

I mean, if this happens on not just paper, but spigot AND bukkit, then i assume its a plugin side thing?

mint fable
#

yes it's an issue on all servers

#

imma go give my cats some treats while 1.20.3 builds

rocky matrix
#

bet bet

mint fable
#

should be able to give you a working version rq tho

rocky matrix
#

alrighty

mint fable
#

uh ok

#

building

rocky matrix
#

and just throw this into the expansions file?

mint fable
#

yes, delete the other one

#

oh wait

#

I mixed it up

#

ok

rocky matrix
#

loading

#

nope still spams

mint fable
#

oh did i make it backwards again

#

wtf

rocky matrix
#

lol

mint fable
#

featherboard might still have issues

#

but im fixing the locale placeholder

rocky matrix
#

alright

mint fable
#

oh i see my mistake

#

classic

#

dw i gotchu

#

and yes my cats will still get treats

rocky matrix
#

haha

mint fable
#

aha

#

it worked

#

now, what is your bet on if 1.20.3 has a different name than the other 2?

#

i'm thinking yes

#

oh, fuck me

#

1.20.3 doesn't exist, it was replaced by 1.20.4

#

smh

rocky matrix
#

lol

#

so the only thing left now is a plugin side thing right?

#

for featherboard

mint fable
#

yes

#

i do believe so

rocky matrix
#

alrighty, maxim better be checking his plugin regularly lol

mint fable
#

most likely is a similar issue

#

he updates pretty good

rocky matrix
#

are you going to upload this version to ecloud?

mint fable
#

yes

#

and your game will tell you to update it

rocky matrix
#

alrighty

#

thank you!

mint fable
#

lol i have too much power

#

pushed it right to the github

rocky matrix
#

do you think if i use 1.20 it should work fine?

mint fable
#

probably

#

our issue wouldn't happen in 1.20.1

#

he updated it for 1.20.2 though

rocky matrix
#

alright, just so i can keep configuring this server

mint fable
#

it said in the logs

rocky matrix
#

maxim?

mint fable
#

his last update was 1.20.2

rocky matrix
#

ahh alright

#

You think youd be able to find the problem in his code?

mint fable
#

not really

#

it's obfuscated

#

and even if i could, I can't fix it

#

lol

rocky matrix
#

ah alright lol

hybrid vale
#

Hi, does anyone know of any placeholders that can help me generate a structure?

junior musk
#

placeholders retrieve information, they don't (or at least shouldn't) run stuff

hybrid vale
#

I am looking to create an advancedenchantments enchantment, but I wouldn't know how to do it because I need to make it generate a structure, but I find it impossible

junior musk
#

you need to create a structure? ๐Ÿคจ

hybrid vale
#

not exactly, generate a structure (igloo)

sharp bloom
#

/setblock and goodluck ๐Ÿ’€

junior musk
#

what does that have to do with PAPI though

junior musk
hybrid vale
#

because I saw that in AE they can be used as placeholders and I was wondering if I could make something like an igloo

junior musk
#

do you know what a placeholder is?

hybrid vale
#

but well my mistake

hybrid vale
sharp bloom
junior musk
#

basically, a placeholder just returns text, like a player name or your money for example

#

so I'm not sure how it'd help generate a structure

hybrid vale
junior musk
#

a command (like the /place cmd) can help generate structures

hybrid vale
#

Im trying to do the enchantments from CE to AE, because CE has a lot of bugs. Does anyone know if there is a way to shoot multiple arrows with a bow?

sharp bloom
#

moving to AE as a better option is crazy itself :/

hybrid vale
#

I am talking about CustomEnchantments, because it has some enchantments that I like more and I see AE as a better option because it has more usable enchantments and better options to create them

heady urchin
#

Can you use papi placeholders in text entities somehow?

junior musk
#

you can't use PAPI placeholders in vanilla features, unless you have a plugin that uses those features and parses placeholders in them

heady urchin
#

Okay thanks

cursive patrol
junior musk
#

I think this works on Velocity as well

cursive patrol
mint fable
#

playerlist

#

@cursive patrol this

cursive patrol
mint fable
#

are you testing with /papi parse me %placeholder%?

cursive patrol
#

same with that command it still shows like : %playerlist_staff_list_amount%

mint fable
#

did you /papi reload after saving the config?

cursive patrol
#

yes

mint fable
#

and you downloaded the expansion?

cursive patrol
#

yes

mint fable
#

wait

#

your syntax is wrong

#

%playerlist_staff_amount%

cursive patrol
#

thanks!

mint fable
#

yep, no problem!

#

๐Ÿ˜Š

compact wing
#

heya! i have some trouble with a menu for ranking up

#

the goal is when someone ranks up this message is displayed:

'[console] broadcast chat %player_name% has upgraded to &7Commoner&f!'

however, in the server it keeps saying %player_name% instead of the actual players name

#

fixed!! NVM

olive frigate
#

I'm having some trouble with PlaceholderAPI and it being added as a dependency once compiled into a jar. I'm using maven, and it works just fine, i can access the class. However, when compiling, the dependency isnt being added, causing a ClassNotFoundException. All of my other libraries are being compiled, but this one is not even in the list.
The following is added to my pom.xml

             <repository>
              <id>placeholderapi</id>
              <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
          </repository>

          <dependency>
              <groupId>me.clip</groupId>
              <artifactId>placeholderapi</artifactId>
              <version>2.11.5</version>
              <scope>provided</scope>
          </dependency>

When making the jar (using the Project structure tab), the dependency is nowhere to be seen
(partial screenshot, but sorted alphabetically so it should be near the m)
https://bork.treble-is-fluffy.gay/floofed684ea2.png
I'm not sure whether this is a papi issue or a maven issue, but all my other dependencies installed just fine.

junior musk
#

you need the PAPI plugin

olive frigate
#

that absolutely makes sense. how did i not think of that

#

ok works now, no clue how i did not realise that, thanks!

muted onyx
#

Hi. I need to create new expansion with my plugin. How Can I Register? ecloud register been blocked now.

balmy marten
#

If so, provide a link to the source

muted onyx
balmy marten
muted onyx
balmy marten
#

Github, gitlab, bitbucket. Whichever

muted onyx
#

wait plz

#

is this right? my first create expansion.

azure rover
#

Hi, Im trying to set up Venturechat and PAPI is required. I have it pretty much all setup but when I type in chat my ranks repeat itself

balmy marten
muted onyx
#

So I need to use out of plugin

balmy marten
#

huh?

#

Have you got a link to the RPGSharpAPI plugin you're referencing?

muted onyx
balmy marten
#

Is it a public plugin?

muted onyx
#

Selling plugin

balmy marten
#

Have you got a link to it?

muted onyx
#

It's uncommon case.

#

It only selled in south korea. It's in Discord not website.

balmy marten
#

We're not going to host an expansion to a non-public plugin, so you can build the expansion into the plugin or just provide the expansion separately with the plugin when you sell it.

muted onyx
#

um.. ok thx

azure rover
#

My tags are doubling iteself, can anyone help to fix?

balmy marten
#

Whats your chat format look like?

azure rover
#

[Lvl.1][Newcomer]:[Lvl.1][Newcomer]: Wyvern

balmy marten
#

I mean the config

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

azure rover
#

papi config uploaded

balmy marten
#

We'd need your chat config

#

And you need to copy pasta the link here for us to actually see it

azure rover
#

im not sure where I would find that with my host? Would it be under the Essentials Plugin Config?

balmy marten
#

Which chat plugin are you using?

azure rover
#

VentureCraft

balmy marten
#

Should be in there then

azure rover
azure rover
#

omg I figured it out,

#

thanks for pointing me in the correct direction

muted onyx
tender vaporBOT
balmy marten
#

Users can manually put expansions into the /plugins/placeholderapi/expansions/ folder

muted onyx
#
package org.swlab.rpgsharpplaceholderapi;

import com.hj.rpgsharp.rpg.apis.rpgsharp.RPGSharpAPI;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;

import java.util.Objects;

public final class RPGSharpPlaceHolderAPI extends PlaceholderExpansion {


    @Override
    public boolean canRegister() {
        RPGSharpAPI rpgsharp = (RPGSharpAPI) Bukkit.getPluginManager().getPlugin(getRequiredPlugin());
        return rpgsharp != null;
    }
    @Override
    public @NotNull String getIdentifier() {
        return "rpgsharpextension";
    }

    @Override
    public @NotNull String getAuthor() {
        return "dople_L";
    }

    @Override
    public @NotNull String getVersion() {
        return "1.0.0";
    }

    public String onPlaceholderRequest(final Player player, @NotNull final String identifier){
        if ( player == null){
            return "";
        }
        if ( identifier.startsWith("RPGSharp_")){
            final String string = identifier.split("_")[1];
            
            if (Objects.equals(string, "Exp")){
                return String.valueOf(RPGSharpAPI.getRPGPlayerAPI().getRPGPlayer(player).getExp());
            }
        }
            else {
            return "no data";
        
        }
        return "not in select mem";
    }
}

This is my whole code. Why cannot load expansion?

#
[16:24:29 ERROR]: [PlaceholderAPI] Failed to load expansion class RPGSharpPlaceHolderAPI - One of its properties is null which is not allowed!
java.lang.NullPointerException: Cannot invoke "String.replace(char, char)" because "name" is null
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.getPlugin(PaperPluginInstanceManager.java:67) ~[paper-1.19.4.jar:git-Paper-550]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.getPlugin(PaperPluginManagerImpl.java:58) ~[paper-1.19.4.jar:git-Paper-550]
        at org.bukkit.plugin.SimplePluginManager.getPlugin(SimplePluginManager.java:462) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
        at org.swlab.rpgsharpplaceholderapi.RPGSharpPlaceHolderAPI.canRegister(RPGSharpPlaceHolderAPI.java:16) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:223) ~[PlaceholderAPI-2.11.5.jar:?]
        at me.clip.placeholderapi.expansion.PlaceholderExpansion.register(PlaceholderExpansion.java:147) ~[PlaceholderAPI-2.11.5.jar:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:193) ~[PlaceholderAPI-2.11.5.jar:?]
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
        at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:366) ~[PlaceholderAPI-2.11.5.jar:?]
        at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[PlaceholderAPI-2.11.5.jar:?]
        at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.4.jar:git-Paper-550]        at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.19.4.jar:git-Paper-550]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1483) ~[paper-1.19.4.jar:git-Paper-550]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:447) ~[paper-1.19.4.jar:git-Paper-550]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1397) ~[paper-1.19.4.jar:git-Paper-550]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1174) ~[paper-1.19.4.jar:git-Paper-550]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-550]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
#

this is error message.

#

IDK "java.lang.NullPointerException: Cannot invoke "String.replace(char, char)" because "name" is null" what this means.

muted onyx
#

oh i solved.

dull notch
#

Hello, I have a problem with the placeholder API plugin (version 2.11.4) and Paper-196 (MC: 1.20.1). I also use several other plugins, such as essentialsX, eco, boosters, vault, and essentialsSpawn. I'm having a problem with the Boosters plugin, so here's what I want to do: basically, the plugin is designed to create boosters, so you can execute commands when a booster is active and when it's deactivated. To do this, I use the %player% placeholder, for example ; give %player% diamond 64. With the placeholderAPI plugin, the %player% placeholder is not replaced by the player's name, but by empty space. As a result, none of the commands work, and when I remove the placeholderAPI plugin, the player's name is recognized, so what can I do?

#

I've also downloaded the expansion player via /papi ecloud download player.

#

Even if I replace %player% with %player_name%, it still doesn't work, it's not replaced by the player's name.

balmy marten
#

Does /papi parse me %player_name% return your name?

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

tender vaporBOT
# dull notch yea
Hey!

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

dull notch
#

but not plugin

#

not Boosters plugin

balmy marten
#

Does the plugin support PlaceholderAPI?

#

You might need to chat to the author of the plugin as if it's working in papi parse then it's most likely an issue in the third party plugin trying to use it.

dull notch
#

In fact, the %player% placeholder works in the message category, which is used to send a message when a booster is active, but not in the command category, which sends a command to the console. But what I don't understand is that without the PlaceholderAPI, it works.

#

In the config file it says #Supports %player%.

balmy marten
#

%player% is probably an internal placeholder, nothing to do with placeholderapi

#

Check with the author is the best bet

dull notch
#

Ok I just found the solution, in fact it's really the expansion player that makes the plugin bug, without it it works.

river fjord
#

@balmy marten Hi, hey a question, is there a fastlogin expansion?

tender vaporBOT
river fjord
#

Sorry

austere hawk
#

how to reset placeholder data statistics. the deaths/kills i tried deleting the world/stats wont work

#

nvm got it

tame kestrel
#

"Placeholder got blocked due to security concerns (%checkitem%)"

#

anyone know how to disable this

#

i got it to work but it still spits these errors and its annoying

jovial cargo
tame kestrel
#

cmi

jovial cargo
#

๐Ÿคข

tame kestrel
jovial cargo
#

Im tryna

tame kestrel
#

ah gotcha

jovial cargo
#

figure out where in CMI is blocking it

tame kestrel
#

thanks ill look to

mint fable
jovial cargo
mint fable
#

but it has since been fixed and there's no reason for cmi to really be doing this anymore

#

but ๐Ÿคทโ€โ™€๏ธ

tame kestrel
mint fable
#

there might be a config option for it? not really sure tbh

tame kestrel
#

using statements and variables just making something that works

jovial cargo
#

I dont know what the config looks like, I was gonna check it to see but I cant find it anywhere online

#

cant you just do %cmi_user_itemcount_[itemIdName(:data)]%

#

Then if the value is greater than 0, continue

#

@tame kestrel

tame kestrel
#

oh i didnt realize cmi had its own

#

i hope its just as powerful

mint fable
#

pretty interesting that it does lol

#

the more you know

jovial cargo
tame kestrel
#

im not surprised, another dev wanting to replace it all

jovial cargo
#

It was probably added because of that checkItem issue

mint fable
#

i'm also not surprised, it is CMI after all

tame kestrel
#

i took a hiatus from my server for 6 months, i get back and everyuthiungs destroyed on the backend

jovial cargo
#

๐Ÿคข

tame kestrel
#

super frustrating

mint fable
#

and yeah, I feel I've tried to look for the config online before too, but didn't get much

tame kestrel
#

hey cmi is powerful for what its worth, i've made incredible things lol but yeah some devs are REACHING

mint fable
#

very powerful

jovial cargo
#

I just dont like CMI. Used it like once and hated every second of it

mint fable
#

big bloatware imo, but if you need it then ๐Ÿคทโ€โ™€๏ธ

tame kestrel
#

^^

jovial cargo
#

Yeah, It takes too much resources

tame kestrel
#

bloatware forsure, luckily you can disable anything you dont want

jovial cargo
#

Thats why I dont like it

tame kestrel
#

nah just go thru and disable what you dont need, its one of my lowest resource users

#

out the box its a mess

#

its a lot to digest

#

my servers 4 years old now though, so its found its place lol

jovial cargo
#

Yeah, there is like 100's of base configuration files

#

Its too overwhelming and annoying to deal with

mint fable
#

@tame kestrel just fyi I don't think they have a config option for it

#

seems nobody has touched the discussion since tanguygab opened it the last time somebody came to us with the issue

#

It was a stupid thing for them to do in the first place IMO

jovial cargo
#

Ewww @junior musk uses CMI

#

Respect: lost

mint fable
#

idk if they do tbh

#

could've just been testing

jovial cargo
#

Yeah

mint fable
#

I just find it incredibly stupid/frustrating that they coded in a hard block for it

tame kestrel
mint fable
#

like wtf

#

they coded a hard block for ANOTHER plugin?

tame kestrel
#

yeah that part

#

wheres my freedom to do what i want lol

mint fable
#

right

#

like why does CMI control the security on my server thonking

tame kestrel
#

exactly i have security setup for that

#

cmi can chill

mint fable
#

fr

tame kestrel
#

i know what im doing if im adding a remove/give checkitem to a command

mint fable
#

just so you know the checkitem issue fyi:

#

the issue is with give or remove placeholders

tame kestrel
#

i appreciate the help though, i am currently 7 day banned from mythicmobs because their solution to my issue was "so uninstall it"

#

ok heard

#

ill remove it thru the vanilla cmds

mint fable
#

they can be issues because sometimes players can parse those placeholders themselves

mint fable
tame kestrel
#

was considering it anyway i just like to use as few lines as possible LOL

mint fable
#

multiple plugins have the "users can parse placeholders" issue too

tame kestrel
#

heard

#

i dont see a lot from the servers side so thats really good to know

mint fable
#

we've done some updates for deluxemenus to fix issues there I believe

tame kestrel
#

oh are you the deluxemenus dev?

mint fable
#

because users could type placeholders instead of argument when opening a menu and it would eventually get parsed

#

we are the deluxemenus dev

#

HelpChat

tame kestrel
#

die hard for deluxemenus, thank you for that one. thats good, deluxechat is yall too right?

mint fable
#

yes, but discontinued

tame kestrel
#

i used to use it until a lack of updates

#

oh good to know

mint fable
#

chatchat is a replacement in the works, but IMO it's a completely different plugin for a different userbase

#

I always used basic chat plugins so idrk a good one nowadays

tame kestrel
#

i just went to chatcontrol, it works i guess. never satisfied i didnt really like venture chat either

mint fable
#

LPC i think?

#

ah right

#

cc is nice for that security stuff

tame kestrel
#

i am intense with my chat haha i hate hate hate ugly chat. (why does hypixels chat look like that)

#

espeically with bedrock users on the game, gotta heighten the security

jovial cargo
#

I use Skript ๐Ÿ™‚

#

Muhahahaha

#

for my security stuff that is

tame kestrel
#

nice i havent used that since 1.7-9 actually i forgot about that

#

my first server

mint fable
#

๐Ÿ˜‚

jovial cargo
#

NO! I cant monkagun here

mint fable
#

welp, now time for me to eat food

tame kestrel
#

power comes at a price, you'll hate it out the box and it takes a while to fine tune lol

#

good chat thanks for the advice

mint fable
#

yep ofc

jovial cargo
#

@mint fable Listen, I know Skript is bad but i meannnnnnnn it works so well when you are good at it

tame kestrel
#

^ cmi in a nutshell

#

big facts

jovial cargo
#

I dont speak complicated

mint fable
#

lol

tame kestrel
#

mojang should take notes.

jovial cargo
#

Speaking of stuff working well

#

My meta menu is not

#

LOL

tame kestrel
#

oh i shouldve mentioned this instead of yapping. i corrupted my main account on my server somehow, when i was switching to INTEGER meta from STRING or w/e and i missed a line and made it put a string for an integer, long story short my main acct is completely unable to open that specific menu. ill send an error in a minute if it produces, but if i recall, it doesnt

jovial cargo
#

perfect!

jovial cargo
#

Meta is all coming along!

mint fable
#

or try fixing it with /dm execute <player> [meta] ...

#

i wonder what is broken exactly

tame kestrel
#

[22:10:24 WARN]: [DeluxeMenus] Failed to get meta value for player Sleepington with key 'MENU' and type 'INTEGER'. Reason: Saved tag can not be converted to type: INTEGER

#

i can just delete my player data and itll fix right?

mint fable
#

ye, or fix it

tame kestrel
#

i dont know what value it is, ill delete

jovial cargo
#

Got meta to work ๐Ÿ™‚

mint fable
#

it's the MENU key

#

I was gonna use NBTExplorer to open the data file and remove the value

#

but if deleting doesn't really matter then that's a lot easier

jovial cargo
#

Just made a dynamic punishment menu ๐Ÿ™‚

#

Feeling proud!