#placeholder-api

1 messages ยท Page 191 of 1

peak steeple
#

I need help please

vivid sparrow
#

try to update the vault expansion

#

Yes, but there's no placeholder for this

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

Source

vivid sparrow
ripe sedge
#

how to update an playce holder if I dont now wisch Papi ecloud Placeholder have an update but the console say updates for one placeholder avaible?

ornate oriole
#

it shows

#

or /papi ecloud update updates them all

stark shard
#

Are you trying to have a placeholder update its value on an interval?

#

If so the plugin associated with that will update the placeholder based on the set interval within the plugin or menu

#

Placeholders itself will always change if a new data is presented

#

I believe

mint fable
stark shard
#

Oh

compact imp
tender vaporBOT
# compact imp How?
Hey!

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

compact imp
#

Wut

mint fable
#

Seems like it could possibly be added

#

the expansion is open source

#

Not sure if essentials provides an api for the cooldown of commands though

#

or teleporting

compact imp
#

Ah, I see, I'm not much of a java coder though, rip

mint fable
rare eagle
#

Hello I want to make like a counter for how many players are in the survival world but if somebody is in the nether it doesn't count it in. How can I solve this? I'm using the %server_online<world>% placeholder right now.

wheat coyote
rare eagle
#

but how would the command look like? Like this: %math_{server_online}_world+{server_online}_world_nether%?

wheat coyote
wheat coyote
tender vaporBOT
compact imp
high hemlock
#

why doesnt this work (&e%bungee_factions%/100&8)

rare eagle
#

But you can just do _and after that a world

#

Guys I downloaded the math papi expansion and all my other placeholders aren't working

compact imp
#

Are you trying to get all online player count or all online player count in a specific world?

rare eagle
#

but its done

compact imp
#

ah, I see

rare eagle
#

now all my other placeholders aren't working

compact imp
#

how so?

rare eagle
#

I have no idea

compact imp
#

returning %...% or returning a null/0 value?

rare eagle
#

%%

#

But the placeholders are downloaded

#

i just reloaded

compact imp
#

test a basic one, make sure it isn't just a specific set breaking. Like %player_name%

rare eagle
#

Everything is broken

compact imp
#

check your logs

rare eagle
#

Oh wait no

#

%player_name% works

#

i think

compact imp
#

you... think...?

rare eagle
#

1 sec

high hemlock
compact imp
#

%...% or null/0?

high hemlock
compact imp
#

what does it show you

rare eagle
#

If I type in /papi parse me %player_name% it doesn't work

#

It's broken

compact imp
#

does it just return %player_name%?

rare eagle
compact imp
#

check your logs

#

er, first check if you have the player expansion downloaded

rare eagle
#

how can i check that?

#

I mean It worked before

mint fable
#

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

send that over

compact imp
#

What CJ said also applies

mint fable
#

a useful one is also /papi dump

#

it gives them a link to share

rare eagle
#

Here's papi dump

compact imp
#
Expansions Registered:
  rankup     [Author: Okx, Version: 3.6.1]
  quests     [Author: [LMBishop & contributors], Version: 3.10.1]
  combatplus [Author: [Nik], Version: 1.6.1]
  ajlb       [Author: ajgeiss0702, Version: null]

Math nor Server are registered, Thunder

rare eagle
#

Well that's weird

#

it was installed before

mint fable
#

Sorry I still need your log

#

silly me

rare eagle
#

Umm

mint fable
#

there's something erroring

rare eagle
#

Is it possible to get the log on aternos? Im temporarily using aternos right now

mint fable
#

I have no idea

#

can you access logs folder

rare eagle
#

let me check 1 sec

mint fable
#

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

rare eagle
#

Found it

mint fable
#

i feel it's probably essentials, that has issues

rare eagle
#

I can send the full log

mint fable
#

okay

#

?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

rare eagle
#

But can you delete it after you open it? thx

#

I mean the link

#

or can i delete it now?

mint fable
#

well you can

rare eagle
#

ok thx

#

because it has some ips as well i think

compact imp
#

Looks like some version mismatches

mint fable
#

you need to update to java 11

#

to use the math expansion

#

and you should also update papi

high hemlock
#

cj......do u know why this doesnt this work (&e%bungee_factions%/100&8)

mint fable
#

?jdk

tender vaporBOT
mint fable
#

oh no

rare eagle
#

I'll try to

compact imp
#

i.e. Is it showing up as %bungee_factions% or like null or 0

high hemlock
mint fable
#

are you using math at all?

#

are you trying to divide?

compact imp
mint fable
compact imp
compact imp
mint fable
#

-papi bungee

high hemlock
rare eagle
#

Ok I switched to java 11 and im starting the server

#

do I have to download the expansions again?

mint fable
#

no

rare eagle
#

Ok thx

#

So it should work now

mint fable
#

๐Ÿคž

compact imp
#

is %bungee_factions% a valid placeholder? are you trying to grab the count of players in a world?

mint fable
#

a server

rare eagle
#

So just because math expansion wasn't working that caused the other ones not to work too?

mint fable
#

it's the order they load in

rare eagle
#

It works omg ty so much

compact imp
# high hemlock yes

Okay, do you have any other servers you can test the placeholder with on your BungeeCord?

#

Such as your default or hub one

compact imp
#

Try it on that then

high hemlock
#

doesnt work in either of em

mint fable
#

where are you testing it

#

type /papi parse me %bungee_factions%

rare eagle
#

%math_{world_players_world}+{world_players_world_nether}%

#

This should work right?

#

Because it's not working

mint fable
#

well you don't have world installed

rare eagle
#

I just installed it

mint fable
#

but you can just use the %server_online_<world>% you were using

rare eagle
#

I did it but instead of a 0 its 0.000 why is that?

#

It displays 0.000

mint fable
#

put %math_0_

rare eagle
#

To the beginning?

mint fable
#

ya, start it like that

#

o wait

rare eagle
#

It works

mint fable
#

nice

rare eagle
#

Thanks a lot

#

I just need to test it now if it adds the players from all 2 worlds then it's totally working

high hemlock
#

of memebrs BUT it doesnt work with anythin else

mint fable
#

Okay, so where are you trying to use it?

high hemlock
#

like hologram or signs

high hemlock
mint fable
#

what version of holographic displays are you using

#

and what signs

high hemlock
#

ik that below 2 it needs holographic extensions

mint fable
#

4 isn't even a version

#

what

high hemlock
compact imp
#

Shouldn't placeholders in Holograms be {papi: <placeholder>}? Yeah except it's fricken curly braces {papi: <placeholder>} because it's smelly and stinks

#

Unless you're using a different plugin

mint fable
#

shhh

#

don't say it so nicely

compact imp
#

wut

mint fable
rare eagle
#

It works perfectly now thanks again!

mint fable
#

and for now use the lame {papi: bungee_factions}

compact imp
mint fable
#

I'm gonna change the label to bug soon

#

smh

compact imp
#

๐Ÿ’€

mint fable
#

i can't smh

compact imp
#

smh my head

high hemlock
compact imp
#

Where'd you get 4 from?

high hemlock
#

nono

#

its v2.4.9

mint fable
#

then use holographic extension

#

and use %placeholder%

high hemlock
#

i had mistaken it for multiverse plugin

mint fable
#

but you should also complain to filo

high hemlock
mint fable
#

it's not even just curly braces, it's also papi:

#

like what is that

#

disrespect I'd say

compact imp
#

pompous alligator pringle igloos

#

or something

#

<insert funny.png>

mint fable
#

we are so good mvdw caved in

compact imp
#

huh

mint fable
#

featherboard uses papi now

compact imp
#

All my brains thinks is MultiVerse Don't Worry

mint fable
#

maximvdw made featherboard and mvdwplaceholderapi

compact imp
#

ah yes, featherboard, that thing we all know

#

(It's probably a hologram plugin from context but being dumb is funny so shush)

mint fable
#

it's a scoreboard plugin

#

but ye

high hemlock
#

i installed the latest versions available

#

it says they have placeholder support init

#

but

#

it still doesnt work

#

%bungee_factions%

mint fable
#

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

hmm send that over

high hemlock
#

?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

versed warren
#

bruh

tender vaporBOT
#

๐Ÿ”จ It has come to my attention that a user was using a leaked plugin, they have been... well let's say.. dealt with.

compact imp
#

ooooooooooh, someone's been.. dealt with.

silver minnow
#

๐Ÿ’€

#

using a pirated version of a free plugin ๐Ÿฅฒ

broken nest
tender vaporBOT
compact imp
turbid tide
#

Citizens

compact imp
#

bruh

#

Wait, no, isn't Citizens premium? Coulda swore I bought it a month back

sharp jay
#

its both

compact imp
#

or rather, they pirated

turbid tide
# compact imp or rather, they pirated

so. citizens is freemium. you can download an official jar for free, or you can pay for it. that's more like a donation I guess. They might also only give support to the people that paid. Not sure about the last one

#

it has been there for ages

compact imp
#

Oh, well aren't I dumb

#

Eh, it's a good plugin

tender vaporBOT
#
Hey!

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

tender vaporBOT
#
Possible Solution Found:

Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.

frank panther
#

I have an announce command that works to display placeholders in chat. I'm trying to run this command from console to display a placeholder for a player. I'm not sure how to tell the placeholder what player to look at. Is this even possible?

turbid tide
#

because PlaceholderAPI literally takes in a Player as a paramater to the setPlaceholder method

#

so that's how you do it in code

#

PlaceholderAPI.setPlaceholders(Player, String)

vale island
#

I'm looking for a placeholder that displays time played as just a number soo instead of something like 1d 2h it would display as just 26. Anyone know a papi expansion or a separate plugin that has something like this?

turbid tide
#

you can chose

vale island
#

you are amazing! I was searching for time in the wiki, that's why I couldn't find anything ๐Ÿคฆโ€โ™‚๏ธ

broken nest
#

Is there any reason why the essentials placeholders return the player's display name instead of their username?

turbid tide
#

the essentials_nickname?

broken nest
#

no like %essentials_baltop_player_0%

turbid tide
#

not sure actually. @errant iron made that decisions. I'm personally not a big fan either.

broken nest
#

I think you guys should add an option in the config if you want to use the display name or like _displayname after placeholder

#

I'm trying to use the placeholder for a skin of an NPC but since it's the displayname it adds colorcodes to the player's name and what not

errant iron
#

blitz you literally have GitHub access

turbid tide
#

and?

#

you did it

#

you should fix it

errant iron
#

and pr or shutup

turbid tide
#

:)))

#

fuck you

errant iron
#

Essentials doesn't store the raw username, so it might be expensive to call this placeholder as it does a Bukkit player lookup by ID.

errant iron
broken nest
#

That would just be the displayname without colors right?

errant iron
#

it's their username

#

just stole the code from another part that strips colors

broken nest
#

its saying Invalid ID

errant iron
broken nest
#

Perfect, thank you so much

#

Any idea what this error is?

errant iron
#

Couldn't find the player with that UUID

broken nest
#

Ah

turbid tide
#

@errant iron

#

you can use IUser#getBase to get the player

#

and get the name from there

#

they store the player inside the user

errant iron
#

this is why you pr or shutup blitz

turbid tide
#

well was about to. bcz glare can do a release within the next 2 hours

#

so if you cna't. I can merge and do another pr

#

oh apparently they just have a getName as well

errant iron
#

yeah feel free to modify my branch if you need to

turbid tide
#

in user

errant iron
#

I didn't see a getname from user

turbid tide
#

nah. I'll just merge yours and PR myself on the main branch

errant iron
#

well hang on one sec

turbid tide
errant iron
#

how do I get IUser from user? or whatever I have there

turbid tide
#

it extends it

#

actually implements

#

but whatever

errant iron
#

oh

errant iron
#

we don't have a user

#

we have a BalanceTop.Entry

#

which one has DisplayName, Balance, and UUID

turbid tide
#

oh really?

errant iron
#

yuh

turbid tide
#

SHIT

errant iron
#

yeah you think I wouldn't have tab completed getName lmao

turbid tide
#

well you might've not thought about it. it happened to me before when I was looking for the player in User

#

but it was called base

errant iron
#

I did the spicy like press . after the thing and see what methods

#

the Java classic

turbid tide
#

I just assumed you're lazy. since user has loads of methods

#

but entry might have just a few

errant iron
turbid tide
#

yeah I understand now

#

is just that at the time

#

I didn't know it wasn't a user

#

or forgot rather

turbid tide
trim mist
#

What's the problem?

errant iron
#

they want raw username, not displayname

#

the Essentials entry only had UUID and DisplayName

#

so we do a Bukkit.getPlayer lookup to get the username

turbid tide
#

but we don't have a user. just a baltop entry which is just uuid and displayname yeah

trim mist
#

Get the User from the UUID, get the name from the user?

errant iron
#

yup

#

but that can return null

#

so

#

kinda problematic

trim mist
#

Just return null / invalid name if it returns null

#

Err sec. Let me hit someone up.

turbid tide
#

am empty string might be better

#

an*

trim mist
#

Waiting on confirmation, but I'm fairly sure if they are in the baltop, we can get a user.

#

Wait so why do we still need to touch the Bukkit#getPlayer at all?

errant iron
#

to get their raw username

turbid tide
#

bcz the baltop entry only stores the uuid and display name

#

people want the raw player name

errant iron
#

people being the person above

#

then Blitz was like "Star made it that way, I still don't agree"

turbid tide
#

so me

trim mist
#

User#getName ?

errant iron
#

we don't have a User

#

we have a BalanceTop.Entry

trim mist
#

Grab it

turbid tide
#

well I kinda opened an issue a while ago star lmao

errant iron
#

from?

trim mist
#

You have their UUID

errant iron
#

can I get an Essentials Player from UUID?

trim mist
errant iron
#

okay

#

done

#

still returns null if it can't find

trim mist
#

Yes we are good to do that. If it can be nullable, just have a handler for that.

errant iron
#

already in the PR

trim mist
#

๐Ÿ‘

austere hawk
#

Where I can find the latest build for papi because I forgot all the commands here ๐Ÿ˜„

#

?papi builds

trim mist
#

Pretty sure our latest build is still the spigotmc

austere hawk
#

so updates are back in spigotmc

trim mist
#

I mean they have always been there ๐Ÿ˜›

#

@errant iron @turbid tide So everything good to go in that PR then? We can get that merged.

turbid tide
#

I still think we should return empty string instead of null

errant iron
#

Might be worth a little more testing

#

or yeah if blitz wants to change the return

turbid tide
#

blitz is going to sleep ๐Ÿ˜ฆ

errant iron
trim mist
#

We can hold the release for another day then, that's not an issue.

turbid tide
#

yeah probably better

trim mist
austere hawk
trim mist
#

Nashorn isn't in the JDK anymore. Switch to QuickJS in the config.

austere hawk
#

sorry, I didnt understand you

trim mist
#

Idk what config it's in. Either the main papi config or if js have it's own config, switch the config that talks about quickjs

austere hawk
#

use_quick_js: false this to enabled it?

trim mist
#

Yup

austere hawk
#
var placeholder = args[0];

function getPlayers() {
  var players = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");
  if (players == 1) return players + " Player";
  return players + " Players";
}
getPlayers();```
trim mist
#

I don't use that expansion myself so maybe someone else will come along and know it ๐Ÿ™‚

warm plover
#

Hey there, with CheckItem can you use %checkitem_give% to give an item in a specific slot?

#

It doesn't seem to work with inslot

jolly crystal
night kiln
#

My place holders dont seem to be loading,

    public static String translatePlaceholders(Player p, String s) {

        return PlaceholderAPI.setPlaceholders(p, org.bukkit.ChatColor.translateAlternateColorCodes('&', s));
    }

    String title = getConfig().getConfigurationSection("Gui").getString("Title");

    ChestGui gui = new ChestGui( getInt("Size", "Gui"), translatePlaceholders(p, title));
Title: "Autographs | %player_name%"
austere hawk
#

./papi ecloud download player, then /papi reload

#

and iirc you don't have to translate color codes, placeholderapi automatically does that

night kiln
#

ahh

#

Thats most likley why

night kiln
austere hawk
#

Hahaha fair, happens to the best of us :)

inner shell
#

When I have the message x placeholders have an update available, what is the step to properly update those and make the message go away? lol. I've tried papi ecloud update all

#

sorry. "x placeholder hooks have an update"

#

specifically this 13 placeholder hook(s) registered! 8 placeholder hook(s) have an update available.

austere hawk
#

I think so anyway

#

Oh wait you did try it

#

and you reloaded the plugin after right?

#

i.e /papi reload

inner shell
#

hrm nope didnt reload .

austere hawk
#

There you have it then :P

drifting nimbus
#

JavaScript expansion doesn't seem to be installing on my server

#

The jar is in the expansions folder, but it doesn't show up in my /papi list

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.

drifting nimbus
#

java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

tender vaporBOT
drifting nimbus
#

Dang

#
javascript:
  debug: false
  github_script_downloads: false
  argument_split: ','
  use_quick_js: true
``` So I added this to my config.yml, but it didn't switch to quick.js I believe
vivid sparrow
#

use and older version of the js expansion that supports java 8

#

or, you know, update your java ๐Ÿ˜„

austere hawk
#

papi ecloud download essentians
[15:39:25 INFO]: Failed to find an expansion named: essentians

#

wut

turbid tide
austere hawk
#

I dont really know what is this

turbid tide
#

hosting company

austere hawk
#

I just deleted all expansion to reinstall them

#

Nope

tender vaporBOT
#
FAQ Answer:

Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

turbid tide
#

anywas try this ^

#

anyway*

austere hawk
#

okay

#

Also I had a problem with my javascripts

#

And I changed PlaceholderAPI.static.setPlaceholders to PlaceholderAPI.setPlaceholders is this right?

turbid tide
#

so on the nashorn engine the first one will work. idk about the quickjs engine tho

#

idk if any of those will work

austere hawk
#

when I enabled the quickjs everything was broken

#

but for now its ok, I just wanted to know if I did it right

peak terrace
#

Hi there, how i can fix this error?

java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.Placeholde rAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.plac eholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null

Expansion class:

    @Override
    public @NotNull String getIdentifier() {
        return "orioncore";
    }

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

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

    @Override
    public boolean canRegister() {
        return true;
    }

    @Override
    public boolean persist() {
        return true;
    }

    @Override
    public String onPlaceholderRequest(Player player ,String holder) {

        if (player == null) {
            return "";
        }

        if (holder.equalsIgnoreCase("level")) {
            return "0";
        }

        return null;
    }
peak terrace
#

heeey, i really need help!

turbid tide
#

mind sending the entire error in a paste bin?

turbid tide
#

any chance you can share the JAR itself?

peak terrace
turbid tide
#

want to see if you're shading PAPI

peak terrace
#

Can i send his on private messages?

turbid tide
#

yeah. 1 sec opening my dms

#

ok send it

#

yeah

#

@peak terrace don' shade in papi

#

the api should come with the PAPI plugin. you don't need to shade it

peak terrace
#

change <scope> parameter?

turbid tide
#

yeah

peak terrace
#

just i set dependencies in pom.xml, and scope PAPI is "compile"

turbid tide
#

I believe it should be provided

peak terrace
#

okie, one moment

#

@turbid tide Yea, thanx, working!

turbid tide
#

๐Ÿ‘

austere hawk
#

/papi ecloud download Player doesnt work for me

#

pls help me I need it

#

Am running 1.16.5

#

PaperMC

turbid tide
austere hawk
#

it says there is 0 expansions available or something similar

#

when I put the name

#

it says

#

Could not find expansion named: Player

tender vaporBOT
#
FAQ Answer:

Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

austere hawk
#

ty

flat quartz
#

Any plans to separate PAPI and itโ€™s API? Itโ€™s kind of annoying accidentally importing libraries from PAPI because theyโ€™re shaded into the library

vivid sparrow
#

ยฏ_(ใƒ„)_/ยฏ

#

the only lib it has is adventure

sacred locust
#

are you able to put {} placeholders within the changeoutput placeholder? For example, like this:
%changeoutput_equals_{changeoutput_equals_{player_direction}_N_-8_0}{changeoutput_equals_{player_direction}_S_8_0}_80_8_-8%
This just gives me direction} as the output

austere hawk
#

where are u putting this

tight idol
#

Hello

sacred locust
tight idol
#

Can u ask how I can show hearts in TAB plugin

#

The number of hearts

#

A person has in numbers

#

Like 10

#

Pls help someone

peak terrace
warm plover
#

Hey there, with CheckItem can you use %checkitem_give% to give an item in a specific slot?

warm topaz
#

u could try using the NestedPlaceholders expansion to nest them instead tho

turbid tide
#

Yeah it will error out bcz it doesn't know how to deal when you divide by 0

#

I'd say javascript expansion and have a fallback if divder is 0

sacred locust
#

is there a placeholder to check the block material of an x y z coord?

tight idol
twin prawn
scarlet lake
#

hey papi will give error anytime I do /papi ecloud download <anything>

tender vaporBOT
#
FAQ Answer:

Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

peak jay
#

Can someone tell me how to create placeholders for my plugin myself?

broken nest
#

lol

errant iron
#
    private String fixMoney(double d) {

        if (d < 1000L) {
            return format(d);
        }
        if (d < 1000000L) {
            return format(d / 1000L) + k;
        }
        if (d < 1000000000L) {
            return format(d / 1000000L) + m;
        }
        if (d < 1000000000000L) {
            return format(d / 1000000000L) + b;
        }
        if (d < 1000000000000000L) {
            return format(d / 1000000000000L) + t;
        }
        if (d < 1000000000000000000L) {
            return format(d / 1000000000000000L) + q;
        }

        return String.valueOf(d);
    }```
#

this is the code used to make that lol

#

dunno

#
    private String format(double d) {
        NumberFormat format = NumberFormat.getInstance(Locale.ENGLISH);
        format.setMaximumFractionDigits(2);
        format.setMinimumFractionDigits(0);
        return format.format(d);
    }```
#

oh, might be that it's not <= or something

vivid sparrow
#

That will format the value with commas, dots, etc. The other method format the value with k for thousands, M for millions, etc.

tight idol
twin prawn
#

Ecloud Expansion iirc

#

Never used it myself

burnt canyon
#

where abouts does papi store or retrieve user information. ive got things like user play time that id like to alter and was wondering if i could view this information somewhere or edit it

#

pretty sure i found it somewhere at one point but cant find it again

vivid sparrow
#

Papi doesnt store anything

burnt canyon
#

do you know where abouts things like user play time would be?

vivid sparrow
#

From statistic? World data

burnt canyon
#

ah okay i think i found it under world > stats, cheers

magic rock
dry zealot
#

How I change PremiumVanish Placeholderapi?

untold crater
#

depends on what you mean by change

dry zealot
#

It's default Yes and No when player are vanish. I want to change it to [V]

radiant plaza
dry zealot
#

Help?

radiant plaza
radiant plaza
#

Use change output expansion to change Yes to [V]

#

Idk if there's any other option available

dry zealot
dry zealot
#

Umm ... where it located when I install it?

radiant plaza
dry zealot
radiant plaza
#

Bruhhhhh

#

Not in config file

radiant plaza
dry zealot
radiant plaza
dry zealot
#

Is there anyother different way to do it?

radiant plaza
#

%changeoutput_equals_{premiumvanish_isvanished}_YES_[V]_&7%

#

Parse this and check if it works @dry zealot

dry zealot
#

Umm ... it's dosen't show up [V] when staff goes to vanish

#

Because you did full CAPS of YES

#

So yes, it's working now

#

Thanks

radiant plaza
simple nova
#

how to use exaclty math round

#

/papi parse me %math_ROUND(2)_{deluxemenus_meta_SK-STR_DOUBLE_0}%

#

i need to round it 2 digits after comma

#

found it

eternal onyx
#

With the 'Server' api on the ecloud: does the %server_online% placeholder mean that the server itself is running or is it count for the amount of people on the server? I'm looking for the placeholder for the latter if so. If anyone could direct me to the correct one then that would be appreciated.

sharp jay
eternal onyx
#

Thanks ๐Ÿ™‚

cerulean flame
#

Hiya im using power ranks and was told I could use placeholder-api to showcase the hearts within the tablist.

Im assuming im to be using the placeholders under "Scoreboardobjectives" but I don't exactly see one for that case.

Also, was wondering if they update in real-time, because it didn't seem like they were with some of the ones I did try out (perhaps I didn't reload the whole server and instead just the plugins which could make a difference).

untold crater
#

that's definitely a question for the plugin author

#

re the last point, no they are not realtime, they only update when the plugin that uses the placeholders updates which is entirely beyond our control

vital folio
#

How can i edit this yes/no message?

vital folio
radiant plaza
vital folio
#

yes = โœ”
no = โœ˜

turbid tide
vital folio
#

gui:
placeholders:
tag:
available: '&aโœ”'
unavailable: '&cโœ˜'

plucky trench
#

Is there a placeholder for /time query gametime?

turbid tide
plucky trench
#

is there a game ticks format?

viscid mica
#

Any tips? Upon server start, or papi reload, I get this invalid CRC;
[PlaceholderAPI] Fetching available expansion information...
java.util.zip.ZipException: invalid entry CRC (expected 0xcacbc2bd but got 0xdd9ee7a6)
(paper 1.18.2-283 and paper 1.17.1-408, java openjdk 17.0.3, expansions: bungee/player/vault)
Tried manually and ecloud re-installing the expansions, same result, even with just any 1 of the 3 expansions.

fleet mauve
#

Hey, I wanted to ask how I can display my luckperms prefix as a placeholder in the tablist

sharp jay
#

@fleet mauve use the plugin called Tab

fleet mauve
#

can you send me a link?

sharp jay
fleet mauve
#

can you do that in the footer?

sharp jay
#

Everything

#

even above there head

fleet mauve
#

ok that's cool thank you

sharp jay
#

np

fleet mauve
#

does this also work with luckperms bungee?

sharp jay
#

Uh not sure it but you can just copy and paste it and make luckperms bungee

#

then whenever you change something it changes in every server

fleet mauve
#

so there is no placeholder for luckperm's bungee

sharp jay
#

setup luckperms to be bungee

fleet mauve
#

I have

sharp jay
#

so if you give the perms then you can have it global?

fleet mauve
#

ok

#

I'm looking at a tutorial

viscid mica
austere hawk
#

does check_updates check for updates related to PAPI or also the expansions?

bold bone
#

Is it normal for a delay to occur? purpur use 1.17.1

austere hawk
#

Hi guys basically i need help getting the list of players from a specific team with a placeholder

lament verge
#

Hello, is there a placeholder that returns the nickname of the last player who joined the server?

zealous ledge
#

i am creating a plugin with placeholdersapi but it says Cannot resolve symbol 'PlaceholdersAPI'

vivid sparrow
#

because it is PlaceholderAPI

vivid sparrow
#

no

zealous ledge
vivid sparrow
#

show your built script

zealous ledge
#

you mean the thing it says while compiling?

vivid sparrow
#

no, your pom or build.gradle file

tender vaporBOT
#
๐Ÿ“‹ Your paste: CDX
https://paste.helpch.at/ivarohuceh

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

zealous ledge
#

ty bot

zealous ledge
#

where could i upload an image

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.

zealous ledge
austere hawk
#

%player_last_join%

#

In the Player placeholder

zealous ledge
austere hawk
#

%player_last_played_formatted%

#

Try this

zealous ledge
austere hawk
bold bone
vivid sparrow
#

send the link here

vivid sparrow
#

the link to the report

bold bone
#

Aikar report?

vivid sparrow
#

yes

zealous ledge
runic nebula
zealous ledge
runic nebula
#

Did you add the dependency

zealous ledge
#

Yeah

runic nebula
#

did you import it

#

the class

zealous ledge
#

Wdym import

runic nebula
#

example: import java.util.HashMap;

zealous ledge
#

When I type PlaceholderAPI I donโ€™t get any suggestions

runic nebula
#

What are u using, maven or gradle

zealous ledge
#

Maven

runic nebula
#

have you reloaded maven?

zealous ledge
#

Wdym reload

#

All I did was add the dependency and repository in pom.xml and added it as a dependancy in spigot.yml and tried to use it

lament verge
teal knot
trim matrix
#

Heyo everyone o/

#

Can someone help me solve this error ?

#

Oh, i cant sent files

#
[08:17:16 ERROR]: 
java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.ConfigurationSection.getKeys(boolean)" because the return value of "me.gabytm.placeholderapi.config.ConfigExpansion.getConfigSection(String)" is null
    at me.gabytm.placeholderapi.config.ConfigExpansion.register(ConfigExpansion.java:56) ~[?:?]
    at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:172) ~[PlaceholderAPI-2.11.1.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:333) ~[PlaceholderAPI-2.11.1.jar:?]
    at me.clip.placeholderapi.util.Futures.lambda$onMainThread$0(Futures.java:46) ~[PlaceholderAPI-2.11.1.jar:?]
    at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.2.jar:git-Paper-286]
#
    at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.18.2.jar:git-Paper-286]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1531) ~[paper-1.18.2.jar:git-Paper-286]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:483) ~[paper-1.18.2.jar:git-Paper-286]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1455) ~[paper-1.18.2.jar:git-Paper-286]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1225) ~[paper-1.18.2.jar:git-Paper-286]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) ~[paper-1.18.2.jar:git-Paper-286]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]
#

ping me pls, if someone knows anything about it

turbid tide
#

the config expansion seems to be broken

#

idk why/how to fix

frigid basalt
#

I've added placeholder api to my IntelliJ project, but I can't add it to classpath or import classes from it

#

would be awesome if you could help me

gray yoke
#

How do placeholders get updated in holograms? Do the hologram plugins have to physically update the hologram every time the placeholder value changes or would the placeholder value automatically change within the hologram?

turbid tide
crystal mica
#

is there a placeholder to show the player's xp level?

crystal mica
radiant plaza
#

you need to install player expansion first

crystal mica
#

thank you:)

crystal mica
#

are they called xp or exp

#

Some use xp and some people use exp

radiant plaza
#

Experience (exp)

crystal mica
#

I can't send a screenshot but for example, I have 0.14285715 exp

tender vaporBOT
crystal mica
radiant plaza
#

/papi ecloud download Math

#

%math_[precision]:[rounding]_<expression>%

crystal mica
radiant plaza
#

%math_2:half-up_{player_exp}%

crystal mica
#

so the 2 indicates the numbers after the decimal point

#

?

radiant plaza
#

yeah

crystal mica
#

thank you so much!

prisma sonnet
#

Hi! How can I create my own placeholder?

#

I'm trying, but I can't create it

tender vaporBOT
#
๐Ÿ“‹ Your paste: notdeliable
https://paste.helpch.at/odenumugor

A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.

prisma sonnet
#

This is Placeholders.java

turbid tide
#

are you registering the expansion?

prisma sonnet
turbid tide
#

well yeah you need to register the expansion.

  new Placeholders().register();```
#

you might want to also check if PAPI is present and enabled if you haven't added it as a depend

turbid tide
#

yeah

prisma sonnet
#

Not working

#

Sent the image in DM

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.

turbid tide
#

please send images here not in dms as well

#

same for logs

prisma sonnet
#

That's the problem

#

I don't have permission

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.

#
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

prisma sonnet
#

Oh ok

prisma sonnet
turbid tide
prisma sonnet
#

So, what should I change?

turbid tide
#

well rn I'm very confused. vbcz in the code you sent, you're using the correct method

#

any chance you're using an older plugin version?

#

ah nvm found it

#

line 63

#

remove that

prisma sonnet
#

Then it will get fixed?

turbid tide
#

most likely

#

yes

prisma sonnet
#

Should I return with null, false or true?

turbid tide
#

pretty sure you don't even need the register and canRegister methods btw

#

you will need to override the persist method

#

and set it to true

#
    @Override
    public boolean persist() {
        return true; // This is required or else PlaceholderAPI will unregister the Expansion on reload
    }```
prisma sonnet
#

So I'm deleting register + canRegister

#

And adding this method

turbid tide
#

yeah

prisma sonnet
#

In Placeholders.java

turbid tide
#

yup

#

and also the getPlugin one

#

remove that one as well

turbid tide
#

mind sending the code again?

prisma sonnet
#

Sorry, I was busy

tender vaporBOT
turbid tide
#

then try parsing /papi parse me %nyks_world%

prisma sonnet
#

Will it work?

turbid tide
#

yeah this is alright. try parsing it with this change

prisma sonnet
#

Yeah, it sends me "not working"

turbid tide
#

can you try printing identifier and see what it prints when you do/papi parse me /papi parse me %nyks_world%

#

also maybe read the yellow warnings that IntelliJ gives you as well. They might tell you what is actually going on

turbid tide
#

in console. you can just use System.out.println here or pass in the logger in the constructor

prisma sonnet
#

I can't print it in onEnable()

turbid tide
#

the request one

prisma sonnet
#

Prints "world"

turbid tide
#

yeah check the yellow warnings from IJ

prisma sonnet
#

There is no yellow warnings

turbid tide
prisma sonnet
turbid tide
#

yeah all those

#

if you hover your mouse over them it should tell you what's going on

prisma sonnet
#

I should do all the recommendations, right?

turbid tide
#

well most likely

prisma sonnet
#

It worked

austere hawk
#

is is possible?

warm topaz
#

replace inner placeholders %% with {}

mental night
#

lol

austere hawk
#

help i cant install anything

eternal onyx
#

What is the placeholder for how many users are on a server? I've tried %server_online% with the server ecloud download but it displays as 1 with multiple user's being in the server?

austere hawk
#

it says no expansion found

eternal onyx
eternal onyx
austere hawk
#

ok

#

i used /papi ecloud dowload Server

#

and no works

eternal onyx
#

do /papi reload

austere hawk
#

in console appears this:

eternal onyx
#

If you're gonna paste a log. Do it in hastebin.

austere hawk
#

Does anyone know a placeholder that can get a list of players in a certain team

sinful robin
#

Hey i have an problem

#

Where can i create ticket?

#

Ok, so

#

My problem is :

I have my placeholder : %vault_rank% doesnt work.
When i use : /papi register Expansion-Vault.jar ITS WORK !
But when i reload, the expansion disappear and %vault_rank% does not work anymore

#

The plugin does not save my expansion

trim matrix
smoky egret
#

hi is there an issue with papi ecloud download bungee?

#

i have downloaded it tons of times and rebooted but it still isn't loading

junior musk
#

do you get an error in console?

smoky egret
# junior musk do you get an error in console?
[16:30:51 INFO]: [PlaceholderAPI] Fetching available expansion information...
[16:30:55 INFO]: Lilspoooky issued server command: /papi reload
[16:30:55 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[16:30:55 INFO]: [PlaceholderAPI] Fetching available expansion information...
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials
[16:30:55 ERROR]: [PlaceholderAPI] failed to load class files of expansions```
crystal mica
#

how to fix the player exp placeholder, I have 20 levels and the placeholder shows I have that much exp

#

is that normal?

smoky egret
#

/papi list neither shows bungee has been added to the expansions.
Expansion-bungee.jar
PAPI-Expansion-Bungee_HEbAVYe.jar

Both also are in "expansions" folder, but do not load.

junior musk
#

make sure both are up to date, or if you removed Essentials, go to /plugins/PlaceholderAPI/Expansions and remove the Essentials expansion jar

smoky egret
junior musk
#

maybe you're using an older version of Essentials then, make sure it's up to date

smoky egret
smoky egret
vivid sparrow
#

if you would post the log here trough a paste link, instead of a picture, @tender vapor would tell you what the issue is

junior musk
#

not sure if it's actually a user issue

#

except if it's because of an older version of the Bungee expansion, idk what could cause

#

considering that the latest update was in 2020, I doubt it's that

smoky egret
#

hmm, its rather troublesome for my log tracking.

vivid sparrow
#

you have multiple bungeecord expansion jars

junior musk
#

๐Ÿค”

turbid tide
smoky egret
#

oh, which should be deleted?
expansion-bungee.jar or papi-expansion-bungee_HEbAVYe.jar

turbid tide
#

both

#

reload

#

redownload

smoky egret
#

thanks blitz! this seems to have fixed it, now i have now ran into

[18:22:44 WARN]: [PlaceholderAPI] listplayers is attempting to register placeholders via a PlaceholderHook class which is no longer supported!

has there been a replacement for this?

turbid tide
#

PlayerList

#

much more bigger, better and well complex xD

junior musk
#

:D

smoky egret
#

issue resolved, thanks again xD

austere hawk
#

hi guys please HELP

#

pleasee

stark shard
#

?help

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

Source

stark shard
#

@noble cairn ^

wise plover
#

is there a way to change the time zone for server placeholder

#

%server_time_<SimpleDateFormat>%

sinful robin
#

Heu i have an problem

#

I have my placeholder : %vault_rank% doesnt work.
When i use : /papi register Expansion-Vault.jar ITS WORK !
But when i reload, the expansion disappear and %vault_rank% does not work anymore
The plugin does not save my expansion

twilit smelt
vagrant moon
#
var nickname = "%essentials_nickname%";

function NameTest() {
    var nickname_fixed = nickname.replace(/./g, '');
    return (nickname_fixed).toString()
}
NameTest()

results in no output.

#

I tried slice(1), substring(1) etc. but with same results.

twilit smelt
#

yeah, i reloaded

vagrant moon
vagrant moon
#

@twilit smelt

twilit smelt
#

ok

twilit smelt
#

ohh so i have to install a pluging

vagrant moon
#

yes

twilit smelt
#

i already have essentials witch tracks time, is there not a way to use that one?

#

i already have a lot of plugins and i want to minimize the amount that i have

#

i installed the thing with /papi ecloud download PlayerTime and reloaded shall that do it? @vagrant moon

twilit smelt
#

do i just put that as a pluging?

#

@vagrant moon

vagrant moon
#

yes

twilit smelt
#

ok

vagrant moon
twilit smelt
twilit smelt
#

where do i set that up?

vagrant moon
twilit smelt
#

how?

#

is there no way i can add some placeholders from essentialsX onto the menu?

eternal onyx
#

What is the placeholder for current server? I've tried %server_online% and other holders but can't find the correct one. Can someone please let me know?

#

I keep getting boolean responses of yes/no, true/false. I just need the world/server name xD

junior musk
#

you can't get the server name with placeholders since PAPI isn't a bungee plugin

eternal onyx
#

Damn

junior musk
#

there isn't really any use to it either

eternal onyx
#

I'm just trying to have my tablist display what world the user is in on that server

junior musk
#

oh, well for the world you can just use %player_world%

#

or if your tablist plugin has a placeholder for that directly built-in, you can use it as well

buoyant pawn
#

hey any idea how to upload a papi expansion to ecloud?

sinful robin
#

Hey i have an problem
I have my placeholder : %vault_rank% doesnt work.
When i use : /papi register Expansion-Vault.jar ITS WORK !
But when i reload, the expansion disappear and %vault_rank% does not work anymore
The plugin does not save my expansion

#

@idle coral

tender vaporBOT
junior musk
fossil bone
#

Is there a way to add a minecraft team placeholder or luck perms group placeholder?

fossil bone
torn quartz
#

Does anyone know why when I put "/papi ecloud download extension"
tells me "Failed to find an expansion named: "

balmy marten
#

Which host do you use?

hearty lily
#

my plugin is giving an error where it can't download expansion what do i do?

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

stark shard
#

install the expansion >> put in papi expansion folder in plugins

stark shard
#

that's better than register

stark shard
buoyant pawn
balmy marten
sinful robin
junior musk
#

did you check the console?

sinful robin
#

Yes

#

No error

junior musk
#

make sure yu don't have 2 vault expansion jars in your Expansions folder

tender vaporBOT
# buoyant pawn Done
Hey!

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

buoyant pawn
#

Oops sry

vagrant moon
errant iron
untold crater
#

how long does it take for ecloud expansion updates to become available?

warm topaz
#

1-2 hours iirc

tawdry trench
#

Registration is locked in the ecloud website so how can i register?

untold crater
#

get @balmy marten to do it for you

tender vaporBOT
balmy marten
#

3rd person today wew

balmy marten
untold crater
#

ah i see thanks

torn quartz
stark shard
#

then download it with the command

remote ingot
#

Hey! how do I get placeholder api extension values from other servers across a bungeecord network?

#

For example, if I have to show total playtime across all servers

stark shard
#

have the plugin connect to a mySQL database

#

otherwise I don't think you can fetch placeholders from another server into others

remote ingot
stark shard
#

find a plugin that says it can connect to a mySQL database or bungee/velocity supported

#

u will also need a database that your hosting service can provide for you

remote ingot
#

I just dont remember how I did it

stark shard
#

it's not

#

I don't believe

ionic hamlet
#

i try to download 2 version of statistic-expansion

radiant plaza
#

/leaderheads enable %statistic_player_kills%

ionic hamlet
#

i love you bro

radiant plaza
#

no homo ๐Ÿ˜…

compact imp
#

Decompiled it and looked at it
this.VERSION = this.getClass().getPackage().getImplementationVersion();
This is where the version is, somehow returning null. idk how to fix

deft crest
#

hello guys

#

Why does a JS file detect another file?

#

I have two files that change the name of the time (minutes, seconds and other) JS lptime changes the names in luckperms, but the file time_played changes the name from placeholders %statistic_time_played:hours%

#

but it detects lines with lptime, why?

#

help pls๐Ÿฅบ

deft crest
#

solved the problem by renaming the js files, although they were different, but now it helped

keen bridge
#

hello i need help

#

I do not speak English very well

sharp jay
#

?help

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

Source

keen bridge
#

If someone wants to help me I would appreciate it this is my problem

sharp jay
#

EXPLAIN

#

context

keen bridge
#

won't let me install expansions

sharp jay
#

whats the error

#

?paste

tender vaporBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โ€ข HelpChat Paste - How To Use

keen bridge
#

say failed to find an expansion named

sharp jay
#

send the error

#

the full thing

keen bridge
#

LeviDarck issued server command: /papi ecloud download Player
failed to find an expansion named: Player

sharp jay
#

once again

#

send the full error

#

?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

sharp jay
#

If you can not respond with what I am asking I can no longer help you

tender vaporBOT
keen bridge
#

aaa

tender vaporBOT
sharp jay
#

send your latest.logs man whats so hard about that

tender vaporBOT
keen bridge
#

it's okay??

sharp jay
#

nope

keen bridge
#

I don't know how to explain it because it's not an error as such it just doesn't let me download the expansions I use the command /papi ecloud download Player
and it says that an expansion called: Player could not be found, even though that's what it's called

tender vaporBOT
#
FAQ Answer:

Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.

stark shard
#

and place it inside ur expansions folder within placeholderapi plugins folder

#

then reload the server

keen bridge
#

Thank you very much it worked for me

tender vaporBOT
keen bridge
#

help me pless

keen bridge
#

Someone could help me please

radiant plaza
#

??

placid relic
#

Hello, sorry to be bothering im having an issue where PAPI wont load player module correctly or i think so but im quite a bit inexperienced on this matter, how can i fix it?

https://paste.helpch.at/soribuneza.md

wet oxide
#

where is the 1.18.2 plugin

turbid tide
turbid tide
#

then spigot

#

it will work on 1.18.2

wet oxide
#

ok thx

turbid tide
#

@thin totem btw PlaceholderExpansion has its own log methods you could use.

placid relic
tender vaporBOT
# placid relic Thanks
Hey!

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

orchid thistle
#

Hello guys

#

Good afternoon

#

Is it possible to make a

#

Region of worldguard checks a player placeholder ? I mean i want a region that only let(example) %mmocore_level% of player >= 10 to enter/move/interact in that region

mint fable
#

ooh I hope so, sounds like a good idea

trim mist
#

I feel like that is kind of out of the scope of a placeholder's job. I think you could find / make a plugin that has PAPI requirements (kind of like DM has but outside of a menu environment) where different actions could take place based on the results from the player.

mint fable
#

Haven't been able to find any yet sadly

orchid thistle
#

yeah i failed in my search of something like this

#

but

#

i found

#

a plugin

#

ConditionalEvents

#

i think its possible to do with it but im still trying to figure how to do it

orchid thistle
tender vaporBOT
orchid thistle
#

oh

#

sorry

trim mist
#

Haven't used ConditionalEvents but I know it's been around since like 2017.

orchid thistle
#

Well, look

#
example1:
    type: custom
    custom_event_data:
      event: dt.ajneb97.api.TurretPlaceEvent
      player_variable: getPlayer()
      variables_to_capture:
     - '%turret_world%;getLocation().getWorld().getName()'
    conditions:
    - '%turret_world% equals spawn'
    actions:
      default:
      - 'cancel_event: true'
      - 'message: &cYou can''t place turrets on this world.'
      - 'playsound: %player%;NOTE_PLING;10;0.1'
#

you can use custom events