#placeholder-api

1 messages ยท Page 184 of 1

turbid tide
#

Download the luckperms expansion. you can do so by executing: /papi ecloud download luckperms then /papi reload

austere hawk
turbid tide
#

do you have the Enjin plugin? if not delete the expansion

austere hawk
#

how do I delete it?

turbid tide
#

you can find it in plugins/PlaceholderAPI/expansions

#

delete it from there

austere hawk
#

ah

austere hawk
#

all works thanks

turbid tide
#

no problem

upbeat bridge
#

Hello, how can I use placeholders in signs? Thanks

turbid tide
#

I don't know if there's plugins that do that. PAPI doesn't do that by default. you'd have to find plugins that do that

upbeat bridge
#

Ok, thanks

turbid tide
short timber
#

Hey, does anyone know which placeholder can show me the version of the player he is playing on?

turbid tide
short timber
#

%viaversion_player_protocol_version% showing me 1.18

#

but i am on 1.17.1

turbid tide
#

hmm. the expansion just returns what via version gives. make sure you're using latest viaversion version and also correct protocollib version

upbeat bridge
#

Hello again, is it possible to add an alias to a plugin placeholder?

#

thanks

#

nvm, thanks

grand dove
turbid tide
#

you can find the expansions at plugins/PlaceholderAPI/expansions.

grand dove
#

The line just above the exception is mcmmo loading. Is there a known issue with that plugin conflicting?

turbid tide
grand dove
#

Okay, I will do a little tinkering and see if I can narrow it down. Thank you very much!

#

Well, that directory appears to be empty. Hard to disable anything there heh. Any other advice??

turbid tide
grand dove
#

During bootup of the server

turbid tide
#

will open a PAPI issue about this. or you can if you want and I am going to add a comment with what I've fund so far. like I've found where it happens but dk why for sure.

turbid tide
grand dove
#

I appreciate that. I should add that it is intermittent. I rebooted to see if I could duplicate, and it didn't do it. I will cycle through a few more and get back to you. Thank you very much for the help

#

Sure, I will download it and prep it in a few minutes

#

So, cycled through ten more boots. Couldn't replicate the problem. I'm going to guess it was just a hiccup. If it happens again, I will come back. Thank you again though.

nimble needle
#

is there a placeholder / placeholderapi supported plugin that allows me to put the name of the server im in without me having to update it automatically? Cuz I am gonna have a bungeecord tablist where the tablist runs through all servers instead of me having the TAB plugin on all servers and if it says "You are currently on Hub" even tho ur on skyblock, it will look weird. Anyone know a placeholder that shows the name of the bungeecord realm im on?

#

or

#

is there a plugin

#

where i can put an announcement on lets say the tablist without me manually going into the config and adding an announcement?

toxic jungle
#

Hello! I just updated PAPI to the latest version on my 1.17.1 server, but the expansion of javascript get broken

toxic jungle
turbid tide
#

update the javascript expansion

toxic jungle
#

ofc I did

turbid tide
#

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

toxic jungle
austere hawk
#

how can i edit placeholdersapi expansions ?
which program ?

toxic jungle
trim mist
#

Yes, Nashorn was removed after Java 15 16 or 17.

toxic jungle
#

did not know, thanks Glare

turbid tide
austere hawk
turbid tide
#

as long as you have the source code that is

austere hawk
#

thanks

turbid tide
#

yo @vivid sparrow do u remember what the way of getting a PlaceholderAPI class was in the js expansion?

#

because for some reason PlaceholderAPI.static.setPlaceholders doesn't work anymore (including using the nashorn engine instead of quickjs)

#

I remember there being no way to actually get it using QUickJs but am using nashorn rn but don't remember what it was

#

seems to work for other clases tho. tried for Statistic and it works

#

ok wow... now PlaceholderAPI.static works

fickle tide
#

I have a question regarding localtime, for some reason i am not getting English dates when trying to get day of the week but rather in my language which i do not want, do you know from where does it pick up the value?

turbid tide
fickle tide
#

So if i parse the value it has a chance of being different to other members?
Like i created a small view requirement that is checking if the day is same as string value "Friday" then it will show a menu every friday but this is getting every users locale that means for me it will not work because it will translate to my language?

turbid tide
turbid tide
#

and just compare that

#

u is the format

fickle tide
#

Yeah you are correct, thanks ๐Ÿ˜Š

deep hollow
#

Hey, anyone has a javascript converter from minutes to time format?

turbid tide
#

I mean making one shouldn't be that hard. unless you want to use like special time formats like dd/MM/YYYY HH:mm

#

in that case you could possibly use Date

deep hollow
turbid tide
deep hollow
#

Much appreciated Blitz! ๐Ÿ™‚

#

and if I want to implement that with that placeholder (%autosell_global_multiplie_minsleft%)

#

I just have to create a var?

turbid tide
#

you just literally call

formatMinutes(parseInt("%autosell_global_multiplie_minsleft%"));```
deep hollow
#

before the function

#

or inside it?

#

sorry to bother you

turbid tide
#

well before it.

deep hollow
#

it's showing like that

#
formatMinutes(parseInt("%autosell_global_multiplie_minsleft%"));

function formatMinutes(minutes) {
  var hours = minutes >= 60 ? minutes / 60 : 0;
  var days = hours >= 24 ? hours / 24 : 0;

  minutes %= 60;
  hours %= 24;

  return parseInt(days) + "&ed " + parseInt(hours) + "&eh " + parseInt(minutes) + "&em";
}```
turbid tide
deep hollow
#

ups, there was a mistake on ecloud extendedclip api

#

its showing multiplie instead of multiplier

#

but works now ๐Ÿ™‚

#

btw, there is a way to hide days, hours if there are only less than 60 minutes left?

dull fossil
#

Is there a way to change yes/no to true/false in a placeholder?

tender vaporBOT
#
Hey!

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

deep hollow
#

done, don't know if it's well optimized but it works haha

#

thanks u ๐Ÿ™‚

cerulean spade
#

Anyone can help me with this i recent updated placeholder

surreal summit
#

hi, why is this not working? "%player_has_permission_permission.test%" (JavaScript PAPI)

austere hawk
#

hello

slate pollen
#

Hey, is there a different way to display amount of players in a server then the %Bungee_server% placeholder?

#

Also, i kinda didn't get this to work

tender vaporBOT
slate pollen
#

oh lol

slate pollen
lethal basin
slate pollen
knotty forum
#

hey my discord wont work and I need help

hearty orchid
#

Ok

quaint mist
#

when i reset everyone's balance, the placeholder still shows the previous one even tho i reloaded the plugin several times.

#

im currently using ajLeaderboards's placeholders to create a leaderboard

craggy turtle
#

I am having an issue with deluxetags placeholders in my chat.
Caused by: java.lang.NoClassDefFoundError: me/clip/deluxetags/DeluxeTag
at com.extendedclip.papi.expansion.deluxetags.DeluxeTagsExpansion.onRequest(DeluxeTagsExpansion.java:88) ~[?:?]
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:161) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98) ~[?:?]
at me.oncode9.lpc.LPCPlugin.onChat(LPCPlugin.java:77) ~[?:?]
that happens whenever a player types in chat. The placeholders I have tried to use so far: %deluxetags_tag% {deluxetags_tag} and %{deluxetags_tag}% nothing works...

tender vaporBOT
craggy turtle
#

^ worked, thanks

turbid tide
quaint mist
#

Ok

still sandal
#

Is there a way to have a placeholder pointing towards a vanilla objective?

austere hawk
#

hello I want this but with the economy of reborn jobs (the points)

#

left_click_requirement:
requirements:
money:
type: has money
amount: 25000

still sandal
turbid tide
still sandal
tender vaporBOT
still sandal
#

Using objective_scorep_<Competition> and the score is set to 0.

#

I think the scoreboard objective for the calling player. might cause it to not work as I'm calling it via namelessmc.

edgy sapphire
#

Hey, I'm getting an issue where placeholderAPI Javascript expansion not working, it worked earlier but now it doesn't
here is the console error:
https://pastebin.com/FSAakPCv

#

My server version: 1.16.5
my paper version: git-Paper-790

austere hawk
#

i have installed extensions math and statistic

#

when i do something like %math_4/2% it works

#

i copy pasted even this command with downloaded player extension and nothing โ˜น๏ธ

tender vaporBOT
austere hawk
#

oh

austere hawk
#

i checked /papi parse me %math_0_{statistic_mine_block}/2% and... works, but why hologram not?

acoustic fulcrum
#

Where do I need to look into setting mob spawners to instead spawn ores like diamond. iron, etc instead of mobs?

tender vaporBOT
edgy sapphire
#

I'm using Java 8

#

still need help

turbid tide
# edgy sapphire still need help

you have 2 options. you either update your java version (recommended) or you downgrade the javascript expansion. if you do not know how to upgrade java just google How to update java on **INSERT OPERATING SYSTEM HERE**

turbid tide
turbid tide
turbid tide
edgy sapphire
austere hawk
tender vaporBOT
edgy sapphire
dark imp
#

Why when downloading listplayers from ecloud it doesnt shows as hook ?

tender vaporBOT
#
Hey!

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

mint fable
#

explain a bit

mint fable
#

?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

mint fable
#

/papi parse me %player_name%

#

what does it return

#

Where are you trying to use it that it isn't working?

#

if you don't then I can't help you...

#

you need holographic extension for holograms, do you have it?

tender vaporBOT
#
Unknown Resource!

I couldn't find a resource with the name or id of holographic extension

#
Uploading Images

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.

mint fable
#

I would recommend asking on their discord about that

#

for the decent holograms

#

because it works in /papi parse

#

so if it doesn't work when you put it in the hologram then...

#

?startuplog

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.

mint fable
#

are you on latest papi?

#

send over the startuplog

#

i'll take a look

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
#

Can you send the entire log please

#

that is not the entire log

tender vaporBOT
#
๐Ÿ“‹ Paste Converted!
https://paste.helpch.at/dopufobetu

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

mint fable
#

I don't think I can fix it

#

Yes

#

Big problem

dark imp
mint fable
#

oh?

#

listplayers was unverified because playerlist was a better replacement

#

that can do everything listplayers can, and more

hard wolf
#

what version of placeholder do I need for 1.16.5

stone edge
#

Are there requirements for expansions to be added in eCloud?

warm topaz
#

not really no. just make sure the expansion actually makes sense being an expansion
if u want the expansion to be verified, then there would be more requirements

warm topaz
stone edge
#

which requirements?

warm topaz
#

idk all of them myself but ik that the expansion name needs to match the getIdentifier() method and ur code would be checked just to make sure theres no dodgy stuff going on

tender vaporBOT
#

๐Ÿ”จ A user has been banned for using plugin leaks, be like me and use legit copies of plugins.

stone edge
#

dodgy stuff means malicious code or bad code

warm topaz
#

yeah malicious

fickle tide
#

Is it possible and if yes if someone is willing to help me make a small "script" inside placeholderapi that will start the counter when there are no players on the server and run a command after x amount of time passes of empty server

mint fable
fickle tide
#

maybe leave event ?

#

and on server start (if no one joins the server)

mint fable
#

you would need to make a full expansion

#

Is that what you want?

#

the placeholder is easily made in java, not in a javascript placeholder though

#

Are you going to actually need a placeholder? sounds like a basic plugin to me

weak socket
#

?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

weak socket
#

Is there a specific or general reason this could occur even though PAPI is loaded before the plugin trying to register placeholders java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null

weak socket
tardy glade
#

can you make animated gradient with Animation expansion?

#

if yes, how

dark imp
tender vaporBOT
vivid sparrow
#

if it is made by / for you, use compileOnly (gradle) or <scope>provided</scope> (maven) for the PAPI api

edgy sapphire
turbid tide
edgy sapphire
#

OMG it's working, thanks for helping!

turbid tide
#

๐Ÿ‘

median girder
#

How do I add PAPI as a dependency to my project?

tardy glade
spark goblet
#

Is PlaceholderApi plugin present only for paper / bukkit engines, except bungee? Because I can't run the plugin on bungeecord. https://paste.helpch.at/luveqecija.cs plugin version: PlaceholderAPI-2.11.1

vivid sparrow
#

Yes, it is a spigot plugin.

spark goblet
#

is there somewhere, a bungee version?

#

on some github? I searched and only found expansion for ecloud

vivid sparrow
#

no

#

there's some add-ons made by other people

spark goblet
#

okay okay

ember shell
#

Do you have an estimate of when it will be officially released?

tender vaporBOT
blazing spire
#

Hey, I need help with ParseOther

#

%parseother_{emilyrose9}_{vault_eco_balance_formatted}%

#

This is just displaying my own balance

agile mauve
#

Hi anyone can help me when i try to do this

#

/papi parse me %jobsr_user_jtoplvl_Mineur_1%

#

it's don't work

celest heath
weak socket
agile mauve
fickle tide
#

Correct me if i am using this placeholder wrong
but when using
%world_isgamerule_<gamerule>_<world>% it is always giving me false value
and i use %world_isgamerule_doFireTick_world%

crimson sierra
#

Hello. Is there a way to store placeholders values to database? TY

tawdry pecan
#

About checkitem
How do I get it to work if I have one material paper with itemname, and one material paper without itemname, but both should be checked separately.

#

"%checkitem_mat:PAPER,nameequals:&eTest,loreequals:&8Testlore,amt:1%" "%checkitem_mat:PAPER,amt:4%"

#

Customitem
Vanilla Item

vivid sparrow
simple nova
#

is there a placeholder

#

that shows what item name is used for killing player/mob

#

??

mint fable
#

It will make it so it HAS to match default values OR what you supply

tawdry pecan
#

So I would like to query both (trade item).
Unfortunately, the second variant also includes the customitem. With "strict" I also get a "false" "%checkitem_mat:PAPER,amt:4%" out.

mint fable
#

how did you use strict? Does the item have ANY other data?

tawdry pecan
#

item1: type: "string equals" input: "%checkitem_mat:PAPER,nameequals:&eTest,loreequals:&8Test,amt:1%" output: "Yes" deny_commands: - '[sound] entity_villager_no' item2: type: "string equals" input: "%checkitem_mat:PAPER,amt:4,strict%" output: "Yes" deny_commands: - '[sound] entity_villager_no'

mint fable
#

lmao I love the deny commands

#

so 100% it's just a vanilla piece of paper?

#

do you have more than 4?

#

You might be wanting to use a comparator operator with the amount placeholder

#
type: '>='
input: '%checkitem_amount_mat:PAPER,strict%'
output: 4

maybe

tawdry pecan
#

Yes, only the vanilla item should be checked. But not the custom paper item

#

Ok that would work. And if I want to subtract that? # - '[placeholder] %checkitem_remove_mat:PAPER,strict,amt:4%' Is there then also another solution?

mint fable
#

that seems like it should work

#

does it not?

mint fable
tawdry pecan
#

Oh, yes, I think it works. I was just confused. If not, I'll get back to you. Thanks for the good support!

austere karma
#

Hello, I was wondering if I can create a variable of placeholders api in the config file. Just doing something like this %variable_custom% = helloworld

tender vaporBOT
#
Hey!

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

pliant pulsar
#

[00:37:05 INFO]: 12 placeholder hook(s) registered! 2 placeholder hook(s) have an update available.

#

how i update?

smoky spoke
#

is there a placeholder that when i enter something, it retypes it as all lowercase?

mint fable
#

@smoky spoke this

smoky spoke
#

tysm ๐Ÿ‘

#

also just curious, is there somehow a placeholder that checks the custom model data number of the item you are holding?

mint fable
#

What for?

#

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

mint fable
#

you can check for item's WITH a certain model data with that this

#

oh wait, I forgot I did just add a new placeholder to get info of items as well!

#

but I don't think it works with inhand yet

#

take a look and let me know if anything works for your needs @smoky spoke

smoky spoke
mint fable
#

well if you're looking for it, surely there's a need

#

I can add it for mainhand and offhand really quick @smoky spoke

smoky spoke
#

ow ok

#

but what's the checkitem option for it tho? don't see it on the docs. i only see an option that tells me if im holding "an item with custom model data of 100" for example

mint fable
#

oh?

#

getinfo:

#

it's a placeholder not a modifier

smoky spoke
#

can you perhaps give me an example so i can use it as reference?

mint fable
#

%checkitem_getinfo:<slot>_<modifier1>,<modifier2>,<...>% - Returns information about an item in a slot. Returns information in the same order listed on this wiki. List is seperated via " &r" (Ex. %checkitem_getinfo:0_mat:)

#

this should've been done, but I ran into a weird issue

#

aha, I messed up my build path at one point, all fixed now

#

example: %checkitem_getinfo:mainhand_custommodeldata:%

#

probably gotta manually download it

#

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

smoky spoke
#

ok tysm!

mint fable
#

๐Ÿ‘ hope it helps

smoky spoke
#

knowing the getinfo will help me so yes
it will help

mint fable
#

noice

chrome dragon
#

when i do /papi reload nothing happens. can somebody help me?

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.

chrome dragon
#

?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

chrome dragon
tardy glade
#

hello, is there expansion for animated gradients?

balmy marten
chrome dragon
#

there's nothing else in there

balmy marten
#

Where do you have papi installed?

#

on a spigot/paper server?

chrome dragon
#

spigot/paper

#

yes

balmy marten
#

Does /papi return anything?

chrome dragon
#

yes

#

it sends some commands

balmy marten
#

Great

#

Run /papi dump for me

#

and shoot over the link it gives you

chrome dragon
#

it doesnt give a link..

balmy marten
#

What does it do?

chrome dragon
#

nothing

#

not even a message in console or anything

balmy marten
#

hmm... really going to need the full log

#

restart your server and grab your latest.log

chrome dragon
#

oki

balmy marten
#

should be a few hundred lines or so

chrome dragon
#

?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

balmy marten
#

ty give me a sec

#

So when you run a papi reload or dump nothing in console appears?

chrome dragon
#

when i do /papi reload this appears in console:
[09:37:09 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [09:37:09 INFO]: [PlaceholderAPI] Fetching available expansion information...

balmy marten
#

Wondering if its having issues reaching our api

#

Can you download expansions via the ingame commands?

#

/papi ecloud download server for example

chrome dragon
#

that works

balmy marten
#

k now im really confused

carmine veldt
#

papi is being racist

balmy marten
#

either that or some other plugin is doing some funky stuff

#
[09:30:47] [Server thread/INFO]: [WolfyUtilities]  - PlaceholderAPI : Integration is async. Enabled once done loading!```
#

seems scary

chrome dragon
#

the heck is wolfyutilities

balmy marten
#

Your server lol

vivid sparrow
#

A lib most likely

balmy marten
#

You should probs know lol

#

Remove it and see what breaks

#

and if papi comes back

chrome dragon
#

it's some kind of denizen addon or smt

#

but dont need so i removed it

#

removed it and still doesnt work :/

balmy marten
#

with a full restart?

chrome dragon
#

yes

balmy marten
#

:/

#

Will be painful but you could try removing everything besides papi and core plugins like essentials / perm plugin

#

just to see if it will load correctly

#

then slowly add stuff back till it breaks

vivid sparrow
#

Split the plugins in half and then try. Then split again in half the group where the problem is located, and try again

chrome dragon
#

found it

#

i removed all the plugins i dont use and it works now

balmy marten
#

hmm wonder what it is

trim reef
vivid sparrow
#

try math_0:_

turbid tide
#

not actually needed btw.

#

the problem seems to be at least in the first one that {statistic_sprint_one_cm} returns an empty string

#

same for walk one cm

#

so it tries to evaluate this: /100+/100

#

well that's what is happening with the others as well

#

seems like your statistic expansion might be broken

austere karma
#

Hello, i was trying to make an javascript with papi but I dont know how to make this works

    sellprice_dirt = 1000;

function pucharseprice_dirt() {
    return buyprice_dirt;
}

function tradeprice_dirt() {
    return sellprice_dirt;
}

pucharseprice_dirt();
tradeprice_dirt();```
function pucharseprice_dirt() and tradeprice_dirt gives me the same value (1000)
rigid lance
#

I want the placeholder to be used by other plugins

turbid tide
austere karma
#

Hello i was coding some placeholders but the api of placeholders its not working well

var sellprice_dirt = 1000;

function pucharseprice_dirt() {
    return buyprice_dirt;
}

function tradeprice_dirt() {
    return sellprice_dirt;
}

pucharseprice_dirt();
tradeprice_dirt();```
#

i have this setup and this code works in any compiler but not in minecraft

fathom oak
#

How can i parse placeholder in placeholder with /lp parse command?

austere karma
fathom oak
#

give me example

#

/papi parse me %lpextra_group_weight_{luckperms_current_group_on_track_rank_male}%

#

this doesn't work

austere karma
#

what errors are you getting in the console

fathom oak
#

i have no error on console

austere karma
#

try /papi parse Pledix %lpextra_group_weight_{luckperms_current_group_on_track_rank_male}%

#

you can't use papi parse in console

fathom oak
#

no i am type this command in game

austere karma
fathom oak
#

yeah

austere karma
#

mmm, i don't know what is bad there

fathom oak
#

maybe papi parse command doesn't support using placeholder in placeholder

#

or something else

austere karma
#

look at luckperms variable at github

fathom oak
#

this placeholder works

#

problem is variable usage i think

austere karma
#

maybe

fathom oak
#

Is there an example where placeholder is used in placeholder? If so can you send it?

austere karma
#

do you have setup LuckPermsMVdWHook.jar

fathom oak
#

maybe placeholder is something special this variable thing

#

I am using LuckPerms and PlaceholderAPI

#

i don't need this .jar

austere karma
#

in the github says that you need it

fathom oak
#

its for MVdW plugins

#

like FeatherBoard

austere karma
#

yeah

#

sorry xD

turbid tide
turbid tide
fathom oak
#

this is my expansion

#

i developed for custom purpose

austere karma
fathom oak
#

actually its works alone

turbid tide
fathom oak
#

i need group weight by specific track

turbid tide
austere karma
fathom oak
#

if papi doesn't support it I will have to wait for the variable pattern myself

austere karma
#

but if you do it with js compiler with console.log it works

turbid tide
fathom oak
#

yeah

turbid tide
#

well that's not PAPI's job. that's your expansion's job. you have to parse the input thru the bracket parser

#

PlaceholderAPI.setBracketPlaceholders(Player, input);

fathom oak
#

okay okay

#

I thought it was a ready made thing that came with the papi my fault

turbid tide
#

no it is not. and its all good

turbid tide
austere karma
#

okey

wide sand
#

hey, papi don't update bungee placeholder to 2.0

fathom oak
tender vaporBOT
rigid lance
tender vaporBOT
rigid lance
#
    @Override
    public String onRequest(OfflinePlayer player, @NotNull String params) {

            // %revblocks_blocks%
            if (params.equalsIgnoreCase("blocks")) {
                return String.valueOf(userHandler.findUser(player.getUniqueId()).getBlockCount());
            }

        return null; // Plac
    }``` Its returning null for some reason
mint fable
#

debug it

#

Bukkit.getLogger().info(params);

vivid sparrow
#

User handler is null?

#

Params is @NotNull

rigid lance
#

User Handler can't be null since I am using it on different stuff and it works

mint fable
#

is it possible for params to even be null? thonking

vivid sparrow
#

Show the full class

rigid lance
#

I think its the player that is null

vivid sparrow
#

Well, yea

mint fable
#

debug

vivid sparrow
#

It is nullable

vivid sparrow
#

Since you can have placeholders that dont depend on a player, e.g. server expansion

#

How do you parse the placeholders?

vivid sparrow
mint fable
#

I feel that constructor is off

#

should be register or something I believe

vivid sparrow
#

Nah

mint fable
#

aight

#

what calls it though?

vivid sparrow
#

register?

rigid lance
#

That's my code on the onEnable method

      // PlaceholderAPI
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null){
            new BlockPlaceHolder(userHandler).register();
        } else System.out.println("PlaceholderAPI is not installed.");```
mint fable
#

ohh duh it's inside a plugin

rigid lance
#

Yeah

vivid sparrow
#

btw use isPluginEnabled

#

Debug the onRequest method

rigid lance
#

on it

#

Ok I just found out that I don't use papi 2.11.1

vivid sparrow
#

That shouldnt be an issue

rigid lance
#

Yeah so when I /papi parse me %revblocks_blocks% I get the same error, no debug message too

#
    public String onRequest(OfflinePlayer player, @NotNull String params) {

        User user = userHandler.findUser(player.getUniqueId());

            // %revblocks_blocks%
            if (params.equalsIgnoreCase("blocks")) {
                if (user != null) {
                    return String.valueOf(userHandler.findUser(player.getUniqueId()).getBlockCount());
                } else {
                    System.out.println("User is null!, debug message");
                }
            }
        return null;
    }```
vivid sparrow
#

check if the player is null

rigid lance
#

Alright

#

Same thing, I don't see the debug message

vivid sparrow
#

Is it located at the top of the method, before getUser ?

rigid lance
#

Oh, it was under, let me check again

#

Same error, no debug message

#

Isn't there a request method that requires Player instead of OfflinePlayer

vivid sparrow
#

No, but you can get the player from an OfflinePlayer

#

Can you send your main class?

rigid lance
#

Yes

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

vivid sparrow
#

Use ours please

rigid lance
mint fable
#

system.out.println ๐Ÿ˜ฌ JavaPlugin.getLogger

rigid lance
#

OK

#

When I sent you the class I saw the problem

#

Stupid me

vivid sparrow
#

What did I tell you ๐Ÿคฃ

rigid lance
#

Sorry dude xD

#

Yeah it works now

vivid sparrow
#

Nah just kidding

rigid lance
#

Had this

        userHandler = new UserHandler(this);

Under the register

#

Why cj 0.0

vivid sparrow
#

Because thats the proper way, especially in long term

mint fable
#

system out is a pretty raw way of doing it

vivid sparrow
#

Paper even has a warning for that on newer versions xd

mint fable
#

noice

rigid lance
#

Aight I will use this from now on

mint fable
#

noice

#

I personally use Bukkit#getLogger but I won't tell you that

vivid sparrow
#

What I want is spigot to enable the debug level :(

mint fable
#

f

toxic jungle
#

Hello, my server is crashing when I try to use quickjs

#

but the problem is, when I use nashorn, there is a memory leak apparently and long GCs

#

currently minecraft 1.17.1 and java 17

#

PlaceholderAPI version 2.11.1

toxic jungle
frosty rivet
#
[19:35:05 WARN]: [PlaceholderAPI] Task #882 for PlaceholderAPI v2.11.1 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
        at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[purpur-api-1.18.1-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1709) ~[purpur-1.18.1.jar:git-Purpur-1467]
        at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108) ~[?:?]
        at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45) ~[?:?]
        at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201) ~[?:?]
        at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.18.1.jar:git-Purpur-1467]
        at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[purpur-1.18.1.jar:git-Purpur-1467]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1571) ~[purpur-1.18.1.jar:git-Purpur-1467]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:516) ~[purpur-1.18.1.jar:git-Purpur-1467]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1494) ~[purpur-1.18.1.jar:git-Purpur-1467]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1282) ~[purpur-1.18.1.jar:git-Purpur-1467]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[purpur-1.18.1.jar:git-Purpur-1467]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]
tender vaporBOT
lusty citrus
#

I seem to be incompetent and not understanding something, so I have Placeholder API, and I downloaded "Player" library from e-cloud and reloaded. But when I try this command %player_has_permission_<permission>% or %player_has_potioneffect_<effect>% they don't work. The effect placeholder gives me internal errors and the permission one comes back as "yes" all the time even though the perms im querying dont exist.

vivid sparrow
#

Remove the <>

lusty citrus
#

did that haha

#

i put in a perm after permission_ without the <> and it just says "yes"

#

thats how it's supposed to work right?

#

b/c I put, permission_role.role2 which is a perm ik doesn't exist. and I'd expect it to say "no", not "yes"

vivid sparrow
#

Are you opped?

lusty citrus
#

I am ๐Ÿ˜”

#

I didnt realize that would be a thing

celest heath
lusty citrus
#

incredible

#

what about the potion effect placeholder? that one stills gives me an internal error

#

and im definitely writing in a valid potion effect

vivid sparrow
#

What error?

#

Also, it expects a bukkit effect name, what version are you on?

lusty citrus
#

welp I cant upload a .txt of the error, but I am on Paper 1.16.5

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

lusty citrus
vivid sparrow
#

d;1.16.5 PotionEffectType

ionic fractalBOT
#
public abstract class PotionEffectType
extends Object```
PotionEffectType has 1 sub classes, 32 fields, 15 methods, and  1 extensions.
Description:

Represents a type of potion and its effect on an entity.

vivid sparrow
#

Enchantment wtf

mint fable
#

this run those commands to make sure you're on latest expansion version

lusty citrus
#

you've never heard of %player_item_in_hand_level_<enchantment>% cuz I see it on the github wiki under "player" section

#

and all my plugins are up to date

#

there's an enchantment for on hand and off hand

mint fable
#

wait are you talking about the potioneffect placeholder or is that error for the enchantment placeholder

lusty citrus
#

the error link I gave you was for enchanements, but the same error occurs with potioneffects

mint fable
#

okay ya that makes a lot of sense

#

threw us for a loop there

lusty citrus
#

my bad lmao ive been up for too long trying to figure this and other MC related things out ๐Ÿ˜‚

mint fable
#

what exact placeholder are you using

vivid sparrow
#

^

#

Still, at line 159 there's nothing

#

Make sure you have the latest version of the player expansion

lusty citrus
#

I'm using %player_has_potioneffect_<effect>% atm

vivid sparrow
#

what effect

lusty citrus
#

any effect, but I see the issue

#

I was typing a valid effect

#

but they have to be ALL CAPS

#

sigh

#

same with the enchantment command, it works now

#

I didnt know you had to cap every letter

vivid sparrow
#

Will try to rewrite the player expansion at some point

lusty citrus
#

No pressure haha, I keep forgetting MC is weird about that stuff.

#

Thanks for guiding me to an answer tho!

mint fable
#

Make sure next time when asking for help to give important details like what placeholder you're using! ๐Ÿ‘

#

Makes things a lot easier if we can spot the problems you might not see or recognize AS a problem

lusty citrus
#

heard, thanks you guys ๐Ÿ™๐Ÿฝ

toxic jungle
#

sorry for replying u

#

could you give me a hand? :D

mint fable
#

never used quickjs

#

or maybe I have ๐Ÿคทโ€โ™‚๏ธ

#

but I don't know enough about it

#

no idea if it'll help tho

toxic jungle
mint fable
#

icic

plush dove
#

I'm trying to download the math placeholder but its telling me Failed to find an expansion named: Math

celest heath
plush dove
#

yes

celest heath
plush dove
#

๐Ÿ‘ thanks

celest heath
#

Yup! Let me know if that works

plush dove
#

yup it did

#

thanks a ton!

celest heath
#

Yup!๐Ÿ‘

plush dove
#

would this be correct %math_%clv_player_level%*2%?

#

to get a placeholder times 2

celest heath
#

Possibly try doing /papi parse me <placeholder> to check

plush dove
#

I see now

#

Note that the % can't be used within the placeholder and that you have to use [prc] instead.

mint fable
#

use {} not %% inside

#

so %math_{clv...

plush dove
#

yup thx

#

is it { or [?

mint fable
#

[prc] is for using an actual percent side (modulo)

plush dove
#

ahh ok thx

mint fable
#

{placeholder} is for parsing placeholder

plush dove
#

everything works now thx a ton!

untold adder
#

Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us.
๐Ÿ˜ญ

vivid sparrow
#

Message funnycube#0001 an email and username @untold adder

gusty hollow
#

what are the placeholders in the "chatty" plugin?

celest heath
hollow nymph
#

is it possible to handle a new placeholder async? if i would leave it sync it could freez the server some ticks

vivid sparrow
#

No

toxic jungle
tender vaporBOT
random hornet
#

what is the getIdentifier in the api class PlaceholderExpansion?

#

like whatever placeholder starts with it?

mint fable
#

yes

#

the player expansion's identifier is player

#

@random hornet this

random hornet
#

i see now,thx a lot!

gusty hollow
gloomy horizon
#

hello, sorry to bother you.
I have a problem launching PAPI during server startup.
It shows me this error and I don't understand where it comes from.

The version is the latest and the server is in 1.18 (knowing that I had the same error in 1.17 but that I had left like this:x)

if anyone can help me

sorry for my bad english (google translate)
https://paste.helpch.at/hiviravuru.md

tame willow
#

What is %essentials_safe_online% placeholder

nocturne sequoia
turbid tide
tame willow
#

Tx

turbid tide
turbid tide
turbid tide
# gusty hollow no, what exactly are there placeholders?

you should really be asking the author of the plugin these questions. but here went thru the code of the plugin myself to find them:

%chatty_cooldown%
%chatty_current%
%chatty_online%
``` and it seems like they all support a player name after as well so for example `%chatty_current_BlitzOffline%`
#

but again, it should be the developer's job to document that. you should ask them to update their wiki or something

frosty rivet
#

can i put a placeholder in a placeholder?

magic rock
frosty rivet
#

from some plugin

#

i want to do something like this

%quests_q:%quests_started_list%:info%
#

so basically i want to get info about the current started quest for the player or smth like that

vivid sparrow
#

use {} instead of %% for the inner placeholder
so %quests_q:{quests_started_list}:info% should work

turbid tide
#

well it will only work if the quests expansion supports nested placeholders.

#

each expansion needs to add support for that and if it does not, you can't use placeholders inside placeholders.

vivid sparrow
#

I was actually wondering about that

frosty rivet
#

doesnt seem like it does

#

would there be any other way i could do something like that?

turbid tide
#

well you have like 2 options really:

  1. (BEST) get the dev to parse bracket placeholders
  2. Use the javascript expansion
slender skiff
#

Is it possible to make a custom placeholder?

#

In the configuration for one of my plugins obviously it has a placeholder, but there's no expansion for that plugin

hybrid wraith
#

umm whats the place holder to show tag

#

%deluxetags_tag% that dont work

slender skiff
#

hm

#

ill check

hybrid wraith
#

or it does and im doing something wrong lol

#

i have lpc

#

as the chat

turbid tide
slender skiff
#
# - %level%
# - %player%
# - %xp%
# - %procent%
# - %xplevelup%
# - %maxlevel%
# - %ismax%
# - %permission%```
turbid tide
slender skiff
#

oh

#

Sorry it looked like a question to mine

#

sorry abt that

lethal basin
#

lol

slender skiff
#

im gonna explain better

#

How do I show the level of the player (I'm using levelsystemapi which doesn't have a placeholder) on my spigotboard

turbid tide
simple nova
#

how to update

#

a placeholder ?

#

my JS doesnt work and placeholderapi says there is a placeholder

#

that is update avaliavble

turbid tide
simple nova
#

hm

#

ok

#

but

#

my JS scrtipts

#

doesnt work

#

any ideas

turbid tide
#

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

simple nova
#

yea sure

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

simple nova
#

y

slender skiff
turbid tide
simple nova
#

blitz

#

where can i sent it

#

?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

tender vaporBOT
# simple nova https://paste.helpch.at/memegiruju.sql
Possible Solution Found:

Go to plugins/PlaceholderAPI/expansions/ and delete the quest expansion (all of them if there's multiple) then do /papi reload.

simple nova
#

ok

#

but still JS doesnt work

turbid tide
#

restart the server and send a new startup log

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

turbid tide
simple nova
#

hm

#

when i updated

#

paper

#

2 days ago

#

it broke

#

ok ill remove it

#

nah still

#

script doesnt work

#

:/

turbid tide
#

/papi reload and send the output from the console

simple nova
#

my plugin for level that is for script is working

#

but the script doesnt

#

oh wait

turbid tide
#

can you generate a new papi dump?

simple nova
#

oh

#

thats

#

script for tags

#

`var tag = "%deluxetags_tag%";

function tagFormat() {
return tag === "" ? "" : " " + tag;
}

tagFormat();`

#

now it seems not working

turbid tide
#

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

tender vaporBOT
# simple nova https://paste.helpch.at/ojijazezaz.bash
Possible Solution Found:

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

turbid tide
#

Barry is too smart sometimes

#

xD

simple nova
#

ok

#

so now

#

it shows

#

%deluxetags_tag%

#

s

#

is it changed

turbid tide
#

what does /papi parse me %deluxetags_tag% return?

simple nova
#

placeholder

turbid tide
#

no. the placeholder should be the same

simple nova
#

returns

#

placeholder

turbid tide
#

did you restart the server as requested by barry?

simple nova
#

im restartng

#

ok

#

seems to work now

turbid tide
#

๐Ÿ‘

wintry patio
#

Hey why does Deluxe Tags not work for essentials chat with the new update of PAPI?

#

ah nevermind, Just needed to disable papi_chat:

hybrid wraith
turbid tide
hybrid wraith
#

oh maby as i had the old version it wasnt a option ill check as ive updated ty

wintry patio
#

yeah its in the config, honestly you can prob just copy what I wrote into the config to fix it

#

just make sure to add false after it

turbid tide
hollow wigeon
#

Is there any chance this plugin would cause chunks with command blocks in them to disappear for bedrock players ?

#

Itโ€™s the most recent updated plugin on my server and for some reason all command block chunks are completely gone for bedrock players

zealous violet
#

Yo I'm trying to use the Plotsquared placeholders in my scoreboard and theyre not working?

celest heath
#

And then doing /papi reload

zealous violet
celest heath
#

Yup

foggy timber
#

I try yo put player online on holographic display on bedwars lobby but it dint work and Ik it's about placeholder bc i asked the creator of holographic and said to go here

celest heath
foggy timber
odd vector
#

PlaceholderAPI javascript not working on version 1.8.8 java 8

lethal basin
foggy timber
lethal basin
#

%player_list% or %player_dick% etc

austere hawk
#

Is there a placeholder that will count the time (for example 5 minutes)

hazy oyster
#

Hello ๐Ÿ™‚ I am currently facing an issue with the plugin, where I am getting spammed with error logs. Is this the right place to ask? Or is there a dedicated ticketing system?

tender vaporBOT
#

Ask away

hazy oyster
#

...did the bot just reply to me like that? Ok anyway. So I have just upgraded my server to 1.18.1 and all of the plugins, and I've noticed that now I am getting the error

24.01 12:19:40 [Server] WARN [PlaceholderAPI] Task #450 for PlaceholderAPI v2.11.1 generated an exception
24.01 12:19:40 [Server] INFO org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
#

This issue seems to be happening on all the servers that I have on the backend that are connected to my BungeeCord proxy server

vivid sparrow
#

Go to expansions folder and delete the extra bungee expansions

turbid tide
#

oh. I completely forgot to answer this lmao

#

the message was still written in my message box but didn't send it

hazy oyster
#

oh, ok i just saw them

#

seems that one of them is written as Bungee and the other one as bungee

#

is it a bug that it doesnt just override them?

#

that seemed to have fixed the issue though ๐Ÿ™‚

turbid tide
# hazy oyster is it a bug that it doesnt just override them?

the problem is that at some point the expansion changed its name on the ecloud. and the ecloud names are case sensitive so it considers bungee different than Bungee. It would require a lot of rewriting for that to be fixed I believe (this is just from what I've heard. never actually looked into this myself)

hazy oyster
#

ahh ok makes a lot of sense

#

thanks for the explanation ๐Ÿ™‚

frosty rivet
#

im looking for a placeholder that would count from 0 to 100 and repeat

lethal basin
#

denizen

#

but you would need to script it yourself

flint garnet
#

what is the placeholder to show how many players are online?

turbid tide
#

%server_online%

flint garnet
vivid sparrow
#

No, essentials has its own, I think it is {ONLINE}

austere hawk
#

how do i use my custom placeholders in a dif plugin, ik it has something with the persist()

#

i think xD

thin coyote
#

is there a essentials command cooldown placeholder?

honest oriole
celest heath
austere hawk
#

please help me
i have a plugin Leader Heads 3.1.8.3 And PlaceHolderApi 2.9.2, i create a hologram with top kills and deaths, but kill and deaths always stay in 0, i dont understand please help

zealous ledge
turbid tide
#

Install vault

vivid sparrow
#

you have the vault expansion installed but the plugin is not installed

turbid tide
#

or delete the vault expansion

zealous ledge
#

I removed it from my expansions folder earlier cuz I didn't have vault but nothing changed so I'm trying by installing vault rn

twilit venture
#

whats the placeholders for kills and deaths of a player

warm topaz
#

@twilit venture ^

pliant stream
#

i'm using the command /papi unregister mcmmo however, when i reload, it's still there

#

as is plugin which i've unregistered

#

and they seem to not be removed

#

keeps telling me i still have two placeholders to update

celest heath
pliant stream
#

done that, it showed removed from in-game.

#

but then went through with /papi ecloud download mcmmo 1.0.2 (the version showed up by itself)

#

and now it's telling me there's an update avaliable.

celest heath
#

Hmm okay have you tried doing /papi ecloud download mcmmo again?

pliant stream
#

yup

#

hm... did a papi dump

#

seems like it's installing 1.0, even though i explicitly told it to download 1.0.2 ?

#

doing the same with plugin, stating it's downloaded 1.3.0 but showing installed as 1.1.0

#

can't... share images here.

tender vaporBOT
pliant stream
celest heath
pliant stream
#

nope it doesn't like that

#

it didn't take it in as the mcmmo plugin and just wanted to download a new one

celest heath
#

Hmm do you need the update for mcmmo?

pliant stream
#

i'm using the overhaul mcmmo, but sure what changed between 1.0 and 1.0.2

#

oh i can see what changed, don't really need the change

pliant pulsar
#

What is wrong here? It works in TAB in version 1.17.1 but in 1.18.1 it doesn't work, have the values changed or something?

[%changeoutput_equals_{essentials_afk}_yes_&cโœ—_&aโœ“%]

pliant pulsar
#

In 1.17.1 it returns "no" or "yes" and in 1.18.1 it returns a check or an "X", I don't know how to use the changeoutput for those values.

#

Now it works like this, after a long time of testing...

[%changeoutput_equals_{essentials_afk}_โœ˜_&aโœ“_&cโœ—%]

rain topaz
#

hello, I need some help with the math expression using cmi placeholders
it works fine
/cmi placeholders parse %math_{cmi_server_online_spawn}+{cmi_server_online_bedwars}%
but it returns this

#

any way to make it a round number
so it is just 3 instead of 3.000

scenic cosmos
#

My server is 1.18.1spigot why %playerpoints_points% cannot be displayed normally

#

๐Ÿฅฒ

vivid sparrow
#

The expansion was probably changed

scenic cosmos
#

I looked at the wiki but didn't have any clue

pliant pulsar
twilit venture
#

may anyone tell me whats the specific placeholder for K/D ratio of a player and kill streak of a player?

#

nvm

pale seal
#

For some reason Placeholder API (in combination with Holographic displays) Doesn't work. If I make a hologram and have it say something like Advancements_remaningAmount It just litterly says that, and doesn't change it to the actualy remaining amount of advancements

vivid sparrow
#

because HD doesn't have native papi support, only though add-ons

#

but there's other plugins like DecentHolograms

turbid tide
#

3.0.0 added PAPI support.

vivid sparrow
#

๐Ÿ‘

turbid tide
pale seal
#

Yeaa..

#

i eventually also downloaded 3.0.0

#

and that worked indeed

warm plover
#

Is there a way I can use Formatter to replace certain outputs in placeholders?

#

For example, my skills plugin shows health as 20/20 but I would like it to show as โ‚‚โ‚€/โ‚‚โ‚€

turbid tide
warm plover
#

Wouldn't really know how to do that, would you know by chance?

hot spoke
#

how do i implement papi into my plugin? ive already made an expansion, but i want my placeholders to use a config file
so i can change them whenever
they are my server version and info placeholders so i will need to change them with a command every so often

urban tinsel
#

Hello, is it possible to use RGB colors in ChangeOutput placeholder expansion? Version 1.16.5
I tried &#ff0000 which gives plain text, and &x&f&f&0&0&0&0 which makes the whole thing black because &0 at the end

warm topaz
#

the plugin ur using the placeholder in should handle the coloring, not the expansion

urban tinsel
#

I used it in /papi parse

obsidian crescent
#

Hi there! I'm trying to use the server_countdown placeholder in the server expansion, however im really confused how to use the %server_countdown_<SimpleDateFormat>_<time>% one

I have seen the simpledateformat docs but im still confused.. I am trying to make it show a countdown to 29th january, 7pm server time
%server_countdown_29.01.2022_19:00:00% should work right?

#

never mind it, i realised i had to first speciy the format i was using then do it

mint fable
#

checkitem now has nbt support

#

@vivid sparrow โค๏ธ

vivid sparrow
#

๐Ÿฅฐ

hoary crane
#

Hi I'm using %changeoutput% placeholder and I want to make a nested if by adding another %changeoutput% inside the false output, is it possible to do it?
I tried with {changeoutput...} but seems to not reading that placeholder

#

%changeoutput_<=_{vault_eco_balance_fixed}_3_false_{changeoutput_equals_{luckperms_has_permission_group.conquistatore}_yes_true_false}%

This is how the general placeholder should be

#

I'm actually looking at %javascript_<your placeholder identifier>% , could be a possible fix if I add the nested if in this placeholder?

warm topaz
#

actually u could use the nestedplaceholders expansion I think. idk

warm topaz
hoary crane
warm topaz
#

yeah

tender vaporBOT
#
Hey!

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

hoary crane
#

If they don't work for my case, can you show me how I have to use the JS placeholder? I'm not into this language

hoary crane
#

Does the CheckItem placeholder find an item even if its inside a shulker in his inventory?

austere hawk
#

ecloud account registration is lockedd?

#

anyway to make one?

warm topaz
#

accounts have to be made manually by an admin

#

@carmine veldt are u able to create accounts or is it just cube?

carmine veldt
#

don't know how to make accounts

warm topaz
#

smh

warm topaz
ionic sigil
#

where can I find help?

mint fable
#

We aren't really here to help if you're speaking about your Windows 10 issue. This was said about it though: #general-plugins message

#

This server is for minecraft plugins, this channel being more specific to PlaceholderAPI

tender vaporBOT
# austere hawk thank you!
Hey!

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

strange hedge
#

hello

#

so i have this placeholder

#

%rankup_requirement_playtime-minutes_left%

#

which shows the minutes left needed for a rankup

#

is there a way i can format this to show hours?

celest heath
strange hedge
#

that isnt a placeholder in the rankups plugin

#

they told me to ask here about help with formatting

celest heath
strange hedge
#

rankups

celest heath
strange hedge
#

yeah it does

#

but i would like to format it to be hours somehow

#

there is no hours placeholder for ranks plugin

celest heath
#

Just curious if that works

strange hedge
#

it doesnt

hoary crane
#

Guys how can I check with %checkitem% if a player has a shulker box with an elytra inside

stone edge
#

is that even possible with that expansion?

dense sequoia
#

how i can install placeholders for bungee

fervent spire
dense sequoia
#

uh?

tired verge
#

Hey, may i ask about this error? It happens when i try to do a custom placeholder.

dense sequoia
#

simple pls

fervent spire
tired verge
#

Thats it, i tried to download the jar 15.2 of the lib, but it doesnt work

#

The custom placeholder is this:

    return '%pvpmanager_pvp_status%' == "true" ? 'Activado' : 'Desactivado';
}
xd();```
fervent spire
placid light
#

ok so i know there is Formatter papi expansion but is there a way to replace multiple strings (if found) in the papi placeholder with desired ones?
this can be done with JS?

placid light
tired verge
hollow fern
#
[10:37:01 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: YungLunchMoney:b7715e32-de10-400c-87b0-ee3952f3c85bReturned data: %statistic_seconds_played%

[10:37:01 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: GluuSticc:9def9338-2ed0-42e1-91e6-969c06c70b59Returned data: %statistic_seconds_played%

[10:37:01 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: .kalvine_f:00000000-0000-0000-0009-01fed08cc896Returned data: %statistic_seconds_played%

[10:37:11 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: YungLunchMoney:b7715e32-de10-400c-87b0-ee3952f3c85bReturned data: %statistic_seconds_played%

[10:37:11 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: GluuSticc:9def9338-2ed0-42e1-91e6-969c06c70b59Returned data: %statistic_seconds_played%

[10:37:11 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: .kalvine_f:00000000-0000-0000-0009-01fed08cc896Returned data: %statistic_seconds_played%

[10:37:21 ERROR]: [HoloExtension] Module %statistic_seco
#

console spam dunno how to remove this statistic

#

broke my papi

eager phoenix
#

Hey there, I have a question related to papi.
I read through the docs and saw that you can add your own placeholders by extending PlaceholderExpansion.

#

Now I want to update the placeholders if someone breaks a block, by using the on blockbreak event provided by spigot.
How could I update/override the placeholder value outside of the expansion class?

#

so lets say my placeholder identifier is called:
skyblock and the second identifier is minedBlocks.

How could I update skyblock_minedBlocks inside of the Listener class instead of the Expansion Class?

simple nova
#

hello

#

i found this

#

and i want to know if this gona works in javascript api

#

`IChatComponent mainComponent = new ChatComponentText("Display text");
IChatComponent hoverComponent = new ChatComponentText("Hover text");

// create the hover event and apply it to the style
HoverEvent hover = new HoverEvent(HoverEvent.Action.SHOW_TEXT, hoverComponent);
mainComponent.getChatStyle().setChatHoverEvent(hover);`

steel basin
vivid sparrow
#

@mint fable

#

@eager phoenix store the data somewhere and access it from the expansion class.

vocal tundra
#

hey im pretty new to this and trying to create a javascript expansion for papi and when i run this
var region = %worldguard_region_name_capitalized% function regionSpaced() { return region.replace("_"," "); } regionSpaced();
it says
Caused by: com.koushikdutta.quack.QuackException: ReferenceError: 'regionSpaced' is not defined at <javascript>.<eval>(?:6) ~[?:?]

vivid sparrow
#

Add "" around the placeholder

vocal tundra
#

YOOOOO it worked

#

thanks so much

vivid sparrow
#

Np

strange hedge
simple nova
#

how a placeholder are updated

#

?

#

i got 2 that needs update

vivid sparrow
#

Placeholders or expansions?

mint fable
#

Have you tried the formatter expansion @strange hedge ?

strange hedge
#

no but i saw it, i have no idea how to use it

#

so i was asking if someone could give me an example of how to use it

mint fable
#

your placeholder returns minutes?

strange hedge
#

it shows the minutes left needed to rankup

#

and i want it to show hours left not minutes

mint fable
#

format might have changed, try %formatter_number_time_minutes_{your placeholder}%

#

test in chat with /papi parse me <placeholder>

#

it might also be fromMinutes instead of minutes (format changed and not sure which one is accurate)

vivid sparrow
#

By looking at formatter code, that will show days, hours, minutes, seconds, milliseconds

mint fable
#

yes

#

I just remembered

#

and imma write a js code

vivid sparrow
#

well maybe it feet their needs

mint fable
#
var time = "%placeholder%";
var minutes = parseInt(time);
var total = 0;
if(!isNaN(minutes))
  total += minutes/60;
total.toFixed();
vivid sparrow
#

aren't you supposed to call isNaN before parseInt?

mint fable
mint fable
#

Doesn't make sense to me

#

parseInt returns NaN or int

vivid sparrow
#

yeah, alright

mint fable
#

the time will always be a valid string

vivid sparrow
simple nova
mint fable
#

/papi ecloud update all works

vivid sparrow
#

those are expansions

torn crag
#

hi i use placeholder api and im wondering if it is posible to make a placeholder a color so %Player% died by %killer% and that the placholders will be blue and the chat will be white

simple nova
#

ty

#

isnt ths a chat formating

#

or death massages

mint fable
torn crag
#

deathmessages

mint fable
#

%Player% is not a papi placeholder btw

#

and neither is %killer%

torn crag
#

ooh

simple nova
#

yo

#

where is blitz

torn crag
#

but does someone knows how to change that?

simple nova
#

its missing those days

vivid sparrow
#

Exams

#

_Tijn just add a color code?

simple nova
mint fable
simple nova
#

not here

torn crag
#

aha but i think i have to change every message manual

mint fable
#

Ctrl+F

#

find replace

simple nova
#

those %player% %killer% is for the deathmassage plugin

mint fable
#

how many are there?

simple nova
#

not placeholders

mint fable
#

๐Ÿ˜ฌ embarassing

simple nova
#

i mean

#

yea

mint fable
#

๐Ÿ˜‚

simple nova
#

now we wait gabby to say it too

mint fable
#

I'd love a death massage

#

put you to sleep forever, feeling relaxed

vivid sparrow
#

yup

simple nova
#

im looking for such way to make custom msg and give them by perms

#

so they can boost my $$$

#

๐Ÿ˜„

strange hedge
#

would i put the %% in the "your placeholder" part of this?

#

%formatter_number_time_minutes_{your placeholder}%

simple nova
#

are u experenced with JS api ?

#

no

vivid sparrow
#

{ }, zere

strange hedge
#

ok

simple nova
#

gaby

#

i have playtime plugin if i connect it to DB is it gona work on all backend server connected to it ?

vivid sparrow
#

if it is not built this way, no

#

using a database for storage doesn't always mean it supports multiple servers, it could simply mean that the developer decided to use that type of storage

simple nova
#

so ill need something supporting bungee ?

vivid sparrow
#

check the documentation of the said plugin, but yes