#placeholder-api

150650 messages · Page 95 of 151

turbid tide
#

@deep hollow you'll just have to make your own method or copy one of the ones tanguygab suggested

junior musk
#

a simple Google search can help you find lots of answers

deep hollow
#

there isn't any expansion no?

turbid tide
#

no

deep hollow
#

like numbersuffix but reversal

turbid tide
#

but all you have to do is copy paste

wicked knoll
#

How I can check if a bungeecord proxy server is online?

I was using Pinger but after I setup firewall for the ports to be secured it now shows offline even if they are online

deep hollow
turbid tide
turbid tide
turbid tide
#

like this

#

tho apparently this won't work with negative numbers

#

so if you care about that, use the last link tanguygab sent instead

deep hollow
#

No no I won't use negative numbers dw

#

it's giving num = Math.abs(num); (is not a function) error

#

I suppose num will have to be var charity number no?

turbid tide
deep hollow
#

No no I didn't edit anything

deep hollow
turbid tide
deep hollow
#
        TypeError: Math.sign is not a function in <eval> at line number 10```
turbid tide
#

hmm

turbid tide
#

first of all what version of the expansion

deep hollow
#

nashorn

#

the default one

turbid tide
#

try switching to quick_js

deep hollow
#

with quick_js only parse the placeholder

#

with any error

#

like %javascript_charityrewards%

turbid tide
#

without any errors? or with errors?

deep hollow
#

no without any error

turbid tide
deep hollow
#

gives me that now

#

using nashorn again

turbid tide
#

yeah I guess nashorn is missing way too many features that modern javascript has.

turbid tide
#

don't just reload

#

try both scripts on quickjs after a server restart

deep hollow
#

engine: 'quick_js' right?

#

or without the _

turbid tide
#

what version of the javascript expansion do you use?

deep hollow
#

I should use that one, no?

#

latest one

turbid tide
#

yes. latest from there

#

that one should add a config option

#

called use_quick_js:

#

set that option to true

#

and restart the server

deep hollow
#

oh fuck

#

now it works 😮

#

much appreciated Blitz!!

turbid tide
#

👍

#

hopefully your other scripts won't break

#

lmao

deep hollow
#

I put them on nashorn haha

#

as they were working fine with nashorn

#

only that one you sent it's using quickjs I suppose

turbid tide
#

the whole system was changed in javascript 2.0.0

#

you either use nashorn for all of them, or quickjs for all of them

deep hollow
#

ah seriously?

#

but quickjs will use same methods as nashorn I guess no?

#

like nashorn it's same as quickjs with less methods

vivid sparrow
#

I guess they work the same for basic scripts, pretty sure one of the differences is how you access java objects or other stuff

tender vaporBOT
deep hollow
#

Anyone knows how to use a variable as a decimal?

#

like

#

combo = ((tokens * 0.combo);

#

combo = ((tokens * 0."%tokens_Combo_level%"); tried that but isn't working

#

there's a way of doing that of I should divide combo / 100 and then use it?

junior musk
#

multiply by 0.1

#

or divide by 10

#

simple maths 👌

deep hollow
#

yeah but was thinking about using the variable directly

#

but it's easier dividing by 10 yeah

#

thanks 👍

junior musk
#

well I guess you could do something like parseInt("0."+var) but it's kinda pointless

deep hollow
#

yeah works fine dividing by 100

#

tyy

floral plank
#

divide then format as needed

deep hollow
#

Someone knows how to guess a formula depending on different results?
Pickaxe level at level 1 = 560 blocks required
Pickaxe level at level 2= 1430 blocks required
Pickaxe level at level 3= 2550 blocks required
Pickaxe level at level 4= 3960 blocks required
Pickaxe level at level 23 = 81150 blocks required
level 24 = 88200 blocks required
I need a formula like levelingExpression: "levels * 5000"

vivid sparrow
#
  • 5000?
deep hollow
deep hollow
vivid sparrow
#

Thats gonna be complex

deep hollow
#

yeah, that's why I asked here haha

#

I'm looking for pickaxe level 4 blocks needed, but I just need an estimation

mossy sable
#

is it possible to return a net.kyori.Component on placeholder request?

vivid sparrow
#

uh, what is the updated skript expansion?

rocky pier
#

Hello, how can I reset the hours played to 0 to all the players?

restive slate
#

Can PAPI run on Bungeecord?

woven escarp
#

For the love of god

#

i just want the placeholderAPI maven import

#

I have no idea how to get the version

#

and i'm in a rush right now

#

all i need is the dependency

austere hawk
#

[22:07:53 INFO]: adyzek issued server command: /papi register Expansion-MineResetLite.jar
[22:07:53 WARN]: [PlaceholderAPI] mineresetlite is attempting to register placeholders via deprecated PlaceholderHook class. This class is no longer supported and will be removed in v2.13.0!
[22:07:53 WARN]: [PlaceholderAPI] Cannot load expansion mineresetlite due to an unknown issue.

safe rose
woven escarp
#

great so i found my dependency

#

but now i need the vexsoftware dependency

#

which is apparently buried in the deepest sections of the internet

#

And I found version 2.6.0

#

but it failed to register no matter what I did

#
            <groupId>com.vexsoftware</groupId>
            <artifactId>nuvotifier-universal</artifactId>
            <version>2.6.0</version>
            <scope>provided</scope>
        </dependency>```
woven escarp
#

Wait, this isn't the votifier discord..

proper stirrup
#

how do i reset place holder

#

please help 🤧🤧🤧

vivid sparrow
#

If you are talking about the statistic expansion, data is collected from the world folder

proper stirrup
#

so how delete it +_-

#

reset

#

do i need delete all the world ? :?

#

please help 🤧🤧🤧

#

@vivid sparrow

floral plank
#

you could probably delete specifics too

proper stirrup
#

i deleted player data -_-

#

nothing happens

floral plank
#

what placeholder

#

are we talking about exactly

static shard
#

Hi

#

Can I get the maven import of papi

#

Ok that's it thank you

#

<repositories>
        <repository>
            <id>placeholderapi</id>
            <url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
         <groupId>me.clip</groupId>
          <artifactId>placeholderapi</artifactId>
          <version>2.11.1</version>
         <scope>provided</scope>
        </dependency>
    </dependencies>```
proper stirrup
proper stirrup
floral plank
#

those are stored with player data

#

in your world folder

proper stirrup
#

what ? in my world folder -_-

floral plank
#

world folder contains player data

#

those are stored there

proper stirrup
#

i need delete player dat or what?

floral plank
#

<world name>/stats/<uuid>.

#

this is where they are apparently

#

from a quick google

proper stirrup
#

so i need delete stats folder?

floral plank
#

wipe inside the stats folder

proper stirrup
#

then i need restart server or just can reload placeholderapi?

floral plank
#

restart the server

#

you should not be editing files

#

when the server is online anyway

proper stirrup
floral plank
#

server doesnt, thats why you dont

#

lmao

proper stirrup
#

so then why i can access to files wile server on 😄

#

i dont stop server i using premium ddos to crash it 🤣🤣

floral plank
#

except that a ddos does not crash a server

#

just overwhelms the network

proper stirrup
#

oh forget 😄 bots

#

☑️

pallid saddle
#

after 2.11.2 update so many plugins have f*cked up colors

vivid sparrow
#

read the changelog

pallid saddle
#

I know

vivid sparrow
#

it is the fault of your plugins/the expansions used because they rely on papi to color their output

turbid tide
#

yeah. it has been marked as a bug and for removal for a very long time

austere hawk
#

PlaceholderAPI placeholders
realmines_totalblocks_MINE,
realmines_minedblocks_MINE,
realmines_remainingblocks_MINE,
realmines_perremainingblocks_MINE,
realmines_perminedblocks_MINE,
realmines_secondsleft_MINE

#

doesnt work

mint fable
#

contact the author of realmines

austere hawk
#

was wondering if I could some implement a placeholder to this

#
 assert player != null;
            if (player.hasPermission("adminitem.spacehelm")) {
                ItemStack itemStack = new ItemStack(Material.RED_STAINED_GLASS);

                ItemMeta itemMeta = itemStack.getItemMeta();
                itemMeta.setDisplayName(ChatColor.RED + "Dctr's Space Helmet");

                itemMeta.setLore(Arrays.asList(
                        ChatColor.GRAY + "" + ChatColor.ITALIC + "Drop this item to decrease your FPS",
                        ChatColor.GRAY + "" + ChatColor.ITALIC + "Immune to drops.",
                        " ",
                        ChatColor.DARK_GRAY + "To: " + player.getDisplayName(),
                        ChatColor.DARK_GRAY + "From: " + ChatColor.RED + "[ADMIN] " + ((Player)sender).getDisplayName(),
                        " ",
                        ChatColor.DARK_GRAY + "Edition: Coming Soon!",
                        " ",
                        ChatColor.RED + "" + ChatColor.BOLD + "SPECIAL"
                ));```
#

only the part which says to: and from:

#

somethign like from: %vault_rank% %player_name%

mint fable
#

while it is PAPI related, might get more help in #development

#

Should be PlaceholderAPI.setPlaceholders(OfflinePlayer, String)

austere hawk
#

alrightu

austere hawk
#

Hi

#

How i can show %thirst% and %fatigue% on top my heart and my food

#

My plugin have support placeholder but no have it on config

tacit fossil
#

Getting this error when trying to reload papi

[10:07:44 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [10:07:44 INFO]: [PlaceholderAPI] Fetching available expansion information... [10:07:44 ERROR]: [PlaceholderAPI] Failed to load class files of expansion. java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/massivecraft/factions/RelationParticipator at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_312] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_312] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) ~[?:1.8.0_312] at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596) ~[?:1.8.0_312] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_312] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_312] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_312] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175) ~[?:1.8.0_312] Caused by: java.lang.NoClassDefFoundError: com/massivecraft/factions/RelationParticipator

#

using papi 2.11.2 java 8 paper 1620 for MC 1.12.2

#

I've never had this issue before on the same server

jaunty stag
#

Hellow,
I downloaded the latest version of Bungee PAPI and it installs it at an old version (1.0.1) and when I try to download the latest version on the site or with /papi ecloud download Bungee and I restart the server it does the same...

Does anyone have an idea?

tender vaporBOT
jaunty stag
vestal garden
#

Anyone know a placehold i can you to output the formatted item name of an item that isnt from vanilla

#

like its display name

#

all the placeholders ive tried just ouput MODNAME_ITEM_NAME

#

jout want the output to be Item Name

vestal laurel
#

Hello, i'v got this error when loading my server, any ideas? thanks you

mint fable
mint fable
#

probably possible to make a placeholder for vanilla items as I believe you can see what language the client uses, but not sure if that's gonna work with modded items

austere hawk
turbid tide
#
function kdr() {
    var kills = parseInt("%statistic_player_kills%" + "%statistic_mob_kills%");
    var deaths = parseInt("%statistic_deaths%");

    if (deaths == 0) return kills;
    return (kills/deaths).toFixed(2);
}

kdr();```
#

something like this possibly

austere hawk
#

always the goat 🐐 🙏

turbid tide
#

Bungee-Expansion v3.0

If you want to test the next version of the bungee expansion, this is it.

To Note: Placeholders have changed since the last version.

List of placeholders:
%bungee_count% - returns the amount of players on the server that the placeholders are parsed on.
%bungee_count_total% - returns the amount of players on the bungeecord instance.
%bungee_count_<server-name>% - returns the amount of players on one of the backend servers that are connected to the bungeecord instance.
%bungee_server_name% - returns the name of the server that the placeholders are parsed on (name is taken from BungeeCord's config.yml file).

Installation process:

  • Download the JAR.
  • Go to the plugins/PlaceholderAPI/expansions/ directory
  • Make sure you do not have any other bungee expansion installed. If you do, remove them all from that directory.
  • Put the downloaded jar in the directory.
  • Restart your server.
  • If you were using the old bungee placeholders somewhere, update them to the new ones.

Please let us know if you encounter any problems with the expansion!

tribal mist
#

Hi, i have a problem when i download new expansion

#

When i try to download expansion server, that plugin is not registered after to do /papi reload

#

So there's error when register expansion placeholderapi

#

What should i do? I'm using Magma, for spigot 1.12.2 and i have installed the lastest version of placeholdersapi

deep hollow
#

Hey, I'm getting an error while using lore.js (javascript on community scripts), someone knows where's the issue? (didn't modify the js)

https://pastebin.com/Mv2ytVLL Thanks 🙂

vestal garden
#
var material = '%player_item_in_hand%';

materialNew = material.replace(/_/g, ' ')
materialNewer = materialNew.replace(/PIXELMON/g, '');

function displayitem() {
  return materialNewer.replace(/\S+/g, str => str.charAt(0).toUpperCase() + str.substr(1).toLowerCase());
}
displayitem();```

Trying to add a javascript placeholder to format %player_item_in_hand% from `MODID_ITEM_NAME` to `Item Name` (specifically for Pixelmon)

this script should in theory (unless im stupid) do that buy getting no output when i run `/papi parse me %javascript_displayname%`
mint fable
#

@lament coral you make the checkitem request/issue?

#

I won't make a full version that supports this I don't think, but I'm okay to compile a version just for you

#

I'd recommend using deluxemenus instead of bossshop tho 😎 fingerguns

lament coral
lament coral
#

I'll try it tonight i'm actually going to work

honest oxide
#

How do I get the required values displayed?jobmines: expression: '%jobsr_user_jmaxlvl_Miner% == 80' type: boolean true_result: '&bUp' false_result: '&etest'

vestal laurel
#

Hi, still have thoose errors when loading papi

restive slate
#

is there a channel for suggestions?

vivid sparrow
turbid tide
restive slate
#

This would be an huge impact for development

turbid tide
#

but the good news

#

PAPI v3 will have proxy support

restive slate
#

I understand, in fact mine was a suggestion

turbid tide
restive slate
vestal laurel
tender vaporBOT
austere hawk
#

hii

#

idk why my error

vestal garden
#

Please can someone help me with my javascript placeholder, really not sure what im doing wrong

uncut matrix
#

Hey, I'm wondering if it is possible to use Placeholders in Essentials Kits such as a kit that performs /eco give {USERNAME} %some_placeholder_here%?

vestal garden
uncut matrix
#

So in kits something like this: /eco give {USERNAME} %landlord_next_land_price% but the placeholder doesn't parse same with {}. So I doubt it is supported

tender vaporBOT
vestal garden
#

Thats what i have right now, when i test what itemNewest is outputting with console.log(itemNewest) the output is correct

mint fable
#

what is the issue

vestal garden
#

when i call the javascript placeholder noting outputs and i get a huge error in console

mint fable
#

?paste

tender vaporBOT
mint fable
#

send your error

#

and send your javascript_placeholders.yml

vestal garden
mint fable
#

hmm

#

what java version do you use

#

I'm not entirely sure of the cause, but this is my best guess

vestal garden
vestal garden
# mint fable hmm

the class referenced by the error doesnt look like a functional class?

mint fable
#

I'd say update java see if it fixes

#

sorry I thought I sent that earlier, try java 17

vestal garden
#

this is the class that that error references

#

doesnt look functional

mint fable
#

I have no clue

vestal garden
#

if its a java version issue not a lot i can do abot ity if its not written for java11

#

not gonna change java version for 1 small QOL placeholder guess ill just have to cope or find another way

#

thanks for the help

mint fable
#

🤷‍♂️ I have no clue what the issue is

#

as I said, it was my best guess

vestal garden
#

thanks anyways man, means a lot ❤️

mint fable
#

no problem fingerguns

foggy oak
#

can someone help me with placeholderapi

#

i cant download KillStats expansion

#

for some reason

mint fable
#

placeholders might be included with the plugin now

#

/papi parse me <placeholder> to test

foggy oak
mint fable
#

whatever the placeholder returns

#

does it just return the placeholder?

#

it might just be unverified because it's 8 years old

#

the plugin

foggy oak
foggy oak
foggy oak
#

i used it like few months ago

#

i dont really know any other placeholders that can give me player kills deaths and killstreak

#

also the problem is that i can have only 40 characters or so ?

mint fable
#

the scoreboard on older versions? ye

foggy oak
#

but sitll not working

foggy oak
mint fable
#

Do you have the killstats plugin?

foggy oak
#

yeah

mint fable
#

/papi dump

mint fable
foggy oak
#

%killstats_deaths%

mint fable
jolly crystal
#

Didn't someone recently make an expansion for total blocks mined? (By the player)

vast oasis
#

hi everyone

#

just trying to test something quickly:

vivid sparrow
#

?

vast oasis
#

someone told me "you cannot send mclo.gs links here" and I was like "bullshit, lemme test it"

turbid tide
jolly crystal
turbid tide
#

for spamming them

#

auto warned or temp muted*

steady hornet
#

hi, Been use placeholdapi and worked fine until started setting up a scoreboard. now i get the following

java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent
        at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:?]
        at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) ~[?:?]
        at java.lang.Thread.run(Unknown Source) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: com/artemis/the/gr8/lib/kyori/adventure/text/TextComponent
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Unknown Source) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2.jar:?]
        ... 2 more
Caused by: java.lang.ClassNotFoundException: com.artemis.the.gr8.lib.kyori.adventure.text.TextComponent
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:?]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:?]
        at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source) ~[?:?]
        at java.lang.Class.getDeclaredMethods(Unknown Source) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[PlaceholderAPI-2.11.2.jar:?]
        ... 2 more```
turbid tide
#

possibly to an outdated artemis expansion?

#

or maybe a missing plugin that's required for said expansion

steady hornet
#

i have no expansion called that and unsure since half the time I have no clue what I have done lol!

turbid tide
steady hornet
#

erm I will look through but no that I can think of

turbid tide
#

artemis is not a plugin in this case

#

artemis the gr8 is the author of the plugin/expansion

#

or at least the expansion has his name as a package

#

and I found they have a PlayerStats expansion

steady hornet
#

oh!

#

i tried to do the command /papi ecloud download playerstats

#

yes it looks like I tried to download the expansion now it says failed to find file. and try reload with the command and no luck!

#

can i remove it from the list it is trying to access?

#

sorted but I can't playerstats expansion as doesn't exist

turbid tide
turbid tide
steady hornet
austere hawk
#

Can we change the inside of the placeholders? For example UpTime: 1 d 5 h 31 12s instead of 1 day 5 hours 31 minutes 12 seconds

turbid tide
#

otherwise, you could write your own code to take that input and modify it the way you want

#

but yeah that requires some either javascript knowledge (using the javascript expansion) or some java knowledge (writing your own expansion).

turbid tide
# austere hawk https://pastebin.com/p9tMskbZ

I'm not sure if you got help with this yet, but it seems like you're possibly running either an outdated version of essentialsx, or you have the essentials expansion installed but not the essentialsx plugin.

austere hawk
swift lake
#

is there any placeholders that show how many players are in a gamemode?

novel nova
swift lake
#

ah I need it for only players on one server to see whether they are in survival

novel nova
#

Or if you are running multiple "Servers" on a single instance you could check players in a world

long steppe
#

how do I upload an update for an existing placeholder expansion? i'm logged in but can't find a way to do this, have checked the edit expansion page already

#

I feel like it should be obvious but I'm just totally missing it

junior musk
#

go on your Expansion's page, click on Versions and you'll get an Add Version button

long steppe
long steppe
#

my addons were unverified, can I get them verified again

turbid tide
#

Yeah. Someone will look at them as soon as they have time

analog flax
#

Hi! I accidentally named an expansion update the wrong version. I need to change it. Can a member of staff please do this for me?

turbid tide
analog flax
#

oh, likewise, my "HuskHomes" addon needs re-verifying!

#

yes please! needs to be changed from 3.0 to 2.0

#

sorry, butterfingers! thanks so much for the help

turbid tide
#

hmm. not sure if I will be able to edit an existent version but I will try

analog flax
#

thank you!

turbid tide
analog flax
turbid tide
#

no problem

turbid tide
analog flax
#

marvellous, cheers!

willow pewter
#

Getting this error with expansions. I need to reload everytime I restart the server to make the placeholders actually show up. Any idea why?
https://keig.tk/Oa1w61OAUD.txt

vivid sparrow
#

Idk what site that is, but use this

tender vaporBOT
mossy fox
#

i need help with placeholder api when i use %world_biome% placeholder the biome name latters are all small i need first one capital for example: "forest" i need it "Forest

turbid tide
#

/papi ecloud download str then /papi reload

#

and use %str_capitalize_{world_biome}%

mossy fox
#

ok let me try

#

oh thanks you so much bro it works

#

thanks a lot i was trying to fix it from 2 hours now thanks you so much god bless you bro Thanks !!!!

long steppe
lethal breach
#

Here's my code,

var acrobatics1 = '%mcmmo_xp_acrobatics%';
var acrobatics2 = '%mcmmo_xp_needed_acrobatics%';

var y = parseInt(args[0] + 1); 
var y = parseInt(args[0] + 2); 

var value = Math.floor((x / y) * 100);
    return value;

so if I call it %javascript_calling_acrobatics%, I should return 1 value which is the percentage. I'm always receiving NaN so I don't know if this is the right code.

Right now, I'm trying to explore eval(). But since it has performance issues, I'm looking for other ways to obtain the correct data.

Is there a way to have an alternate solution for this?

fading schooner
#

Hi all.

Every time our server restarts PAPI does not load at all and you have to manually /PAPI reload for it to load at all. This is bad due to our auto restarts every 12 hours and players are frequently reporting the scoreboard as being bugged. Any help is appreciated, thanks.

tender vaporBOT
turbid tide
#

your argument is not a number

#

why are you trying to parse it to a number?

lethal breach
turbid tide
#

so you don't want to parse them to numbers.

#

I thought you wanted to parse them as numbers when you asked in #dev-general

#

ahhh. I see what you're trying to do

#

that's not going to be possible. transform a string into a variable.

#

you can have a bunch of if checks I guess

lethal breach
lethal breach
#

sorry for pinging.

austere hawk
#

Are there any placeholders that give Epoch/Unix time?

tender vaporBOT
austere hawk
#

is there a placeholder that can check how much armor points a player has?

vivid sparrow
#

Use this @austere hawk %attribute_player_value_GENERIC_ARMOR%

calm dawn
#

is there a straightforward way to convert a number returned by a placeholder to a countdown? for example, 3600 would become 1h, 86460 would become 1d1m, and so on

#

i see %server_countdown_<SimpleDateFormat>_<time>%, but obviously that is for counting down to a specific point in time

vivid sparrow
#

Take a look at the formatter expansion @calm dawn

calm dawn
#

perfect, thank you. exactly what i was looking for

vivid sparrow
#

Np

deep hollow
willow pewter
mint fable
#

seems like you can't use some of the methods for some reason

#

You'd still need to use java, but maybe you can use checkitem to get the lore? %checkitem_getinfo:mainhand_loreequals:% should return it like line1|line2|line3

deep hollow
mint fable
#

no clue 🤷‍♂️

mortal valley
#

how do I display the placeholder with colors in the new update ? RANK:

#

this no longer works and I saw that colors got removed with placeholderapi and need to be parsed seperately

willow pewter
vivid sparrow
willow pewter
#

the server is locally hosted

#

is it likely my internet is blocking it?

errant grotto
paper pewter
errant grotto
willow pewter
cunning elk
#

where can I download 1.19.2 version

#

or will 2.11.2 work on 1.19.2

lament coral
#

cj89898 forget to send the response. it worked with a small fix on bsp. Thanks a lot for your time !

vivid sparrow
#

it does @cunning elk

noble shard
#

Hey!
I wanted to add some expansions in papi (the expansions were already installed). Anyways I installed it again with /papi ecloud download PlayerTime and when I did /papi reload, The existing placeholders stopped working even after a restart!

vivid sparrow
#

have you disabled the ecloud from papi config? @willow pewter

willow pewter
#

i have now and just tried it, will i need to re-install the expansions manually again?

vivid sparrow
#

no

willow pewter
#

so is it another issue?

vivid sparrow
#

Disable the ecloud and restart the server

willow pewter
#

still the same error :/

vivid sparrow
#

do you have cloud_enabled false and it throw the same error ??

willow pewter
#

oh it doesnt embed

vivid sparrow
#

and it still happen?

#

you do restart the server, right?

#

no plugman or anything

floral plank
willow rover
#

I have a question
I'me new in coding with java and so in coding minecraft plugins, I've created some plugins ecc, some of these have other plugins as depends but now I can't do a thing
I have to create a plugin that create also custom placeholder for papi but I don't use Maven and I saw that adding PlaceHolderAPI.jar as Referenced Library don't works to import the PlaceHolderAPI
On github I've seen how to import with Maven or Gradle but I don't use them
There is a way to import PlaceholderApi with a .jar or something like this?

willow rover
#

The problem is only with 2.11.X... when I import the package from the Libraries the import can't be resolved
But if I use 2.10.X or previus versions it works and it import the packages

The problem is only with 2.11.x

#

What should I do?

floral plank
#

learn how to use gradle

#

its quite simple

#

if not, just use the full jar

willow rover
#

I'm using the full jar but in version 2.11.x it doesn't work
In 2.10.x it works

floral plank
#

wdym it "doesnt work"

#

internal package names might be changed

#

your ide should tell you what imports are available

#

once you put the class name

willow rover
#

the import can't be resolved from Eclipse, it doesn't find the packages
all the other version that are not the 2.11.x works

willow rover
floral plank
#

you are most likely doing something wrong code side

willow rover
#

ok, now I will do it

nocturne hound
#

Hi

#

PlaceHolderApi have a version for Velocity?

mint fable
#

no there is no bungee/velocity version of papi

willow pewter
sterile heart
#

whats the player balance placeholder, would be really thankful for any answers

turbid tide
# sterile heart whats the player balance placeholder, would be really thankful for any answers

if you have Vault and an economy plugin that does support vault, you will want to download the VaultExpansion (/papi ecloud download vault then /papi reload) and then use one of these placeholders:

%vault_eco_balance%
%vault_eco_balance_<number>dp%
%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_balance_commas%
``` They all return the same number just formatted differently
sterile heart
#

Ok ty

bleak bough
#

I have a javascript file I'm using to filter a placeholder based on specific situations, but am having an issue where theres the situation where the placeholder can return a " quote in it. Apostrophes work fine, but if it contains a " it causes a script error. I've tried to use various forms of .replace to escape these characters in what the placeholders returning but am having no luck. Any advice?

#

For reference of what I've tried:

    return "%griefdefender_claim_name%".replace(/\"/g, '\\"');
}
claimname();```
#

(the script will not be doing just this when its complete, I've just stripped out the excess while debugging this)

#

I'm able to replace any character except quotes for some reason 😩

bleak bough
#

like according to regexr that expression should work fine (and it does with every other character), but placeholderapi just doesnt like it with quotes specifically

autumn stream
vivid sparrow
#

You need java 16

autumn stream
#

if .replaceAll do not exist, it anyways works

let a = `some text "" 12344`
a.replace(/"/g, `\\"`)
autumn stream
vivid sparrow
#

Yes

autumn stream
#

how i dont look at this. thanks

halcyon holly
#

Hey, I've got a problem that I've been trying to solve for 2 days. The placeholders are not working on my aj leaderboard holograms, I've tried holographic displays and decent holograms and it still looks like this: https://i.imgur.com/2e9hKbM.png

I have done /papi ecloud statistic and reload but it just does not seem to work. Of course I've also added the %statistic_player_kills% to ajlb

#

My placeholder &a&l1. %ajlb_lb_statistic_player_kills_1_alltime_name% &7- %ajlb_lb_statistic_player_kills_1_alltime_value%

paper pewter
#

I know holographic displays uses a different placeholder format, {papi:placeholder} from the top of my head. Decent holograms should work with the normal format, though

visual spindle
#

Hey, I need a bit of help with the usage of the API, I want to edit a scoreboard setting as well as a tablist

#

I have no previous experience with PAPI so its a bit of a stretch for me to do it

autumn stream
vivid sparrow
#

use the latest version of the plugin and expansion

#

as you can see the error is different than before

autumn stream
#

ok

visual spindle
#

any placeholder/plugin for 1.19 paper that could show prefixes/suffixes in the tablist?

mint fable
visual spindle
#

sick cheers

final shale
#

Why this not work?

%gradient_message_#0CE800_#147001_%player_name%%
mint fable
#

can you surround it with `` to escape formatting?

final shale
#

Tab not work with this

mint fable
#

to use a placeholder inside another one it will most likely be {player_name}

#

if it supports it, which gradient should

#

%gradient_message_#0CE800_#147001_{player_name}%

final shale
#

Thanks

visual spindle
#

after putting the bukkit jar in

#

do i have to put it inside the API expansion folder?

mint fable
#

no

#

do you get errors?

#

?startuplog

tender vaporBOT
visual spindle
#

i didnt, for some reason the host im using required me to restart a few times

mint fable
#

send your startuplog if you can

visual spindle
visual spindle
#

ops my bad

mint fable
#

best to just ask wherever is best

visual spindle
#

I am using a simple announcer plugin, and a person that is not op-ed cant see the messages

#

that the announcer sends between intervals

mint fable
glass sky
#

heyya

#

Oh i can't send images here. That makes it a little harder to explain but we migrated to 1.19.2 and the placeholders for lots of stuff have broken but for other things it works. I'm not quite sure what I should be doing.

https://cdn.discordapp.com/attachments/991337691348205571/1018289196147933235/unknown.png

I already did /papi ecloud download changeout, and still have issues. The same issue is occuring for simple placeholders like %player% and %crate%. I don't think it's a full on PAPI issue, but I believe it's a update issue.

austere hawk
#

Is there a placeholder to tell how large the server is in GB (or MB). Also, is there a placeholder to tell how old a server is (in days)?

austere trench
#

How do I use the javascript expansion? I can't download javascript

livid falcon
#

is there anyway that i can use to shorten the location of homes ?

mint fable
glass sky
#

Should I dm you what I got?

mint fable
#

no need to dm

glass sky
#

I did it earlier today

mint fable
#

ah you updated your changeoutput ofc

#

%changeoutput_<options>_input:<input>_matcher:<match>_ifmatch:<output-if-matched>_else:<output-if-not-matched>%

#

new formatting

#

or you can downgrade

glass sky
#

oh yea i should probably downgrade...

glass sky
#

Have a great rest of your day!

mint fable
#

np, you as well o/

austere hawk
#

The math expansion does that

austere hawk
#

Is there a placeholder to tell how large the server is in GB (or MB). Also, is there a placeholder to tell how old a server is (in days)?

junior musk
#

%server_ram_used%

#

I think

#

ah nope, it's not that

#

I don't see any other

cerulean tundra
#

Hello, I have this problem.
https://pastebin.com/F13eJbyN
If I run the placeholder in minecraft there is no problem, but when I try to read it with the JS expansion it can't read the string.

var quest = '%quests_player_current_quest_names%';
function questmenu() {
    return quest;
}
questmenu();
#

When using the placeholder in minecraft chat, it shows me the values correctly.
Kill with hand
10 kills
10 deaths

livid falcon
#

?dm-filler

tender vaporBOT
keen hawk
#

Is it possible to reset a placeholder or change its output? I want to reset a player's statistic_death

mint fable
#

it's stored in their player data file

warm plover
#

[00:52:23 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [00:52:23 WARN]: [PlaceholderAPI] [math] Placeholder: %math_% [00:52:23 WARN]: [PlaceholderAPI] [math] Cause: '' is not a valid Math Expression.

#

Would anyone know why the math placeholder is causing this?

#

This is the placeholder %math_%target:vault_eco_balance%/8%

reef hedge
#

i think you need to use [prc] for the % in the expression not sure tho

junior musk
faint zealot
#

anyone know if there is a placeholder to convert minimessage format to the good old &?

rocky dune
#

how to connect placholderapi with a plugin?

willow lagoon
#

/papi ecloud download

rocky dune
#

tysm @willow lagoon

#

but i have an plugin that doesnt show there

#

the plugin is TAB

willow lagoon
#

then is not supported with papi

rocky dune
#

how am supposed to fix the placeholders then

willow lagoon
#

🤷‍♀️

odd galleon
#

i cant update expansion: servertime to latest version.

#

even after ./papi ecloud update all.

#

any one help me for this

#

also after manually added new version when i do /papi reload it change to version 1.0 insted of 2.0

mint fable
#

@odd galleon it looks as though the author forgot to change the internal version to 2.0

#

as far as I can see, there are no real changes other than he accidentally included an extra file (useless) in 1.0

vivid sparrow
#

@odd galleon use the server expansion, %server_time_FORMAT%, they both do the same thing

odd galleon
#

Ok thanks

austere hawk
#

Hi, I recently updated my expansion called
https://github.com/ShimadaJP/Groopi
However, when I went to eCloud, the website said I needed re-verification. Can I get re-verification please?
Also, the latest version of Groopi is so powerful that it is capable of fully replacing JavaScript expansion entirely because Groopi is as fast as native Java code and is easier to use. It would be great if you could verify my expansion

frigid lake
#

How is my account flagged as spam bruh

#

please read above ^

#

Maybe my account got flagged because I posted the same exact sentence in another channel after I removed it

hollow fox
#

Hello there!

I'm wondering on how to check on which region player is standing using PlaceholderAPI.

A found that there is an expansion: https://api.extendedclip.com/expansions/worldguard/

But the %worldguard_region_name% shows only one (first in the list) region. Is it possible to see the region list with any placeholder?

Basically, i need to check if the PlayerA is in the RegionB

p.s.
From the WorldGuard supPort i got a message that it is "not their stuff" and they "can't help with it" 💪 👌🏻 💁
So here am I, at the PAPI support thread 😅

light dock
#

Having a weird issue with placeholders, everytime i set a users suffix of prefix it changes it to users balance prefix

fossil barn
#

How do i put a placholder api in holograpicdisplays without and extra plugin

fossil barn
#

How can i put a placeholder like playername inside a placholder?

little salmon
#

hi guys i couldnt manage to run mysql extension

#

it works fine after restart but this lasts just 60 seconds

#

after updating once, i'm getting 0 value

#

i'm using mariadb 10.6 as mysql-server

turbid tide
# fossil barn How can i put a placeholder like playername inside a placholder?

it really depends. some expansions support nested placeholders, some don't. For those that do tho, you use bracket placeholders. Like so: %string_equals_{player_name}_Blitz%. This would work since the string expansion supports nested placeholders. And this would return yes if the player's name is Blitz, and no otherwise. But %ascii_{player_name}% wouldn't since the ascii expansion doesn't support nested placeholders. Also it expects a number not a string as input.

turbid tide
#

and another example would be {papi: server_name} instead of %server_name%

turbid tide
turbid tide
little salmon
#

I need to fetch just one data from mysql

#

it would be perfect if this extension worked

turbid tide
turbid tide
hollow fox
turbid tide
#

Example %worldguard_name_2%

mortal valley
#

does placeholderapi version 2.11.1 work on 1.19.2

#

?

vivid sparrow
#

probably

mortal valley
#

ty, since I don't want the next parsing colors yet since some of my plugins don't support that

vivid sparrow
#

😬

mortal valley
#

well they are custom codded and my dev is on vacation 2 days from release 😅

vivid sparrow
#

yeah ic

mint fable
#

ya, I think checkitem broke too

#

haven't fixed it yet

mortal valley
#

ty tho ❤️

mint fable
#

🤷‍♂️

modern spire
#

So when I try to add a expansion and try reloading it doesnt work and it sends a error in console?

mint fable
#

/papi dump

#

@modern spire

modern spire
#

then what?

mint fable
#

send it here

modern spire
mint fable
#

which one are you trying to download

#

It looks like you have the playerstats expansion but not the playerstats plugin

modern spire
#

Oh I need to download that for it to work?

#

would of been nice if the tutorial I watched specified that💀

#

wait but that doesnt explain why it doesnt let me do the vault one?

mint fable
#

?startuplog

tender vaporBOT
mint fable
#

send that over after you've type in-game /papi ecloud download vault and /papi reload

#

@modern spire

coral furnace
#

Does anyone have same problem as we?

Can't use Bungee expansion in holograms or chat, tried PAPI 2.11.3, 2.11.2 ( 1.19.2 ), and it doesn't want to work. We tried to manually install it and even with ecloud command, still nothing.

#

Nevermind, Holographic Displays are broken, I recommend CMI.

trim mist
raven night
#

How do I ensert a javascript into deluxe menus? I want to query a database and put the results on an item in my shop menu

#

I mean into placeholder. sorry

light dock
#

Im using venture chat for bungee messaging and id like to show what server the person is messaging from as a placeholder is that possible? Im currently using {server_name} which is just showing A Minecraft Server

pseudo pewter
#

More info on the wiki on external placeholders

gleaming sandal
#

help

sharp jay
#

@gleaming sandal /papi ecloud download changeoutput & /papi reload

gleaming sandal
sharp jay
#

restart your server @gleaming sandal

#

oh it says 2 placeholders got updates

coral furnace
gleaming sandal
tender vaporBOT
sharp jay
gleaming sandal
#

nope

#

link ?

#

not working update extension

#

maybe need edit placeholder ?

sharp jay
#

are you using it correctly? @gleaming sandal

gleaming sandal
#

yes

dusky helm
tender vaporBOT
sharp jay
#

yes...

dusky helm
#

ok can u help me with it

sharp jay
#

?help

tender vaporBOT
dusky helm
#

hey hey hey

#

nvm

cerulean tundra
latent cargo
#

is there a placeholder that returns a specific user's display name?

cerulean tundra
latent cargo
#

don't think so

#

I want to set it to a particular username

#

and if that player updates their username.. I want the placeholder to change automatically

latent cargo
#

It is what i want, but when i go offline it goes to PNF, can i change this message when the player is offline?

tawdry galleon
#

Placeholder API is completely breaking my text colours on version 2.11.2, and anything older is not working, is there any way I can create a ticket?

For example, a rank will display as '&6Newcomer', this is happening for all instances of placeholderapi in game

vivid sparrow
#

Read the changelog

nova sparrow
#

hello, does anyone know why this error occurs ? (I apologize in advance if the translation is incorrect, I'm just from Ukraine)

Failed to find an expansion named: Javascript

floral plank
#

you need to manually download the expansion

nova sparrow
floral plank
nova sparrow
latent cargo
#

So, when i go offline, my placaeholder on an NPC: %otherplayer_name% turns to "PNF". Is their a way i can replace the PNF "error" While i'm offline, then use the placeholder when i am online?

mint fable
#

if you use parseother with {player_name} it won't say PNF

#

not all placeholders work for offline players though

latent cargo
#

i mean the PNF replacement could literally just be text

#

Set it to the last known username personally.

#

with this i'd put: %parseother_{player_name}_{otherplayer_name}% ?

#

actually that wouldn't work right.

mint fable
#

no

latent cargo
#

how do i use it? haha

mint fable
#

doesn't otherplayer take a username?

latent cargo
#

Yes

#

so %otherplayer_name_shiftyrp%

mint fable
#

okay so not %otherplayer_name%

#

either way

latent cargo
#

i'm shorthanding it.

mint fable
#

do not shorthand please

latent cargo
#

too lazy to type it all out

mint fable
#

if you're asking for help provide all details

#

especially placeholders

latent cargo
#

its just a username. as support you should know it takes a name lol

mint fable
#

you don't understand how papi works

#

that expansion is community-made expansion

#

not made by me

#

or any of us here

latent cargo
#

¯_(ツ)_/¯

mint fable
#

okay have a good day figuring it out by yourself

latent cargo
#

How do i use paresother?

mint fable
#

if you're gonna be rude

#

all info here this

latent cargo
#

Can i use parseother with just text instead of another placeholder?

#

%parseother_{"&cShiftyRP"}_{otherPlayer_name_shiftyrp}% kind of thing?

mint fable
#

%parseother_{shiftyrp}_{player_name}% will return the %player_name% placeholder for the user shiftyrp

#

different expansion from otherplayer (no longer needed)

latent cargo
#

Sorry if that just mentioned you.

#

basically:

Online: %otherplayer_name_ShiftyRP%
Offline: &8&L[O&dOwner&8&L] &cShiftyRP

mint fable
#

Ahh, you can use changeoutput for that most likely

gleaming sandal
cerulean tundra
#

papi

mint fable
#

ya, look at the new format

tender vaporBOT
cerulean tundra
#

nono

cerulean tundra
#

like this

mint fable
#

changeoutput has a new format. Send the placeholder you're trying to put in the scoreboard and we can modify it to be correct for you this

#

or you can downgrade changeoutput, but might lose some functionality

gleaming sandal
mint fable
#

%changeoutput_equals_input:{deluxecombat_has_pvp_enabled}_matcher:true_ifmatch:&4:dagger:_else:&a:shield:% try that

gleaming sandal
#

loool

#

not working plugin...

#

not papi have problems

#

and plugin

#

sorry

mint fable
#

oh

#

the plugin no working with placeholders?

gleaming sandal
#

need update plugin

mint fable
#

ah

latent cargo
#

There's no OtherPlayer_Online so how would that know which player to look for?

mint fable
#

when you are offline does the otherplayer expansion actually error, or just say PNF instead of the name?

#

@latent cargo

latent cargo
#

PNF

mint fable
#

%changeoutput_equals_input:{otherplayer_name_shiftyrp}_matcher:PNF_ifmatch:&8&L[O&dOwner&8&L] &cShiftyRP_else:{otherplayer_name_shiftyrp}%

#

@latent cargo

#

you can test with /papi parse <player|me> %placeholder%

latent cargo
#

Damn. Thanks. 🙂

#

I'll test it later and get back to you

#

Thanks for your help. Despite me being a bit cocky.

mint fable
#

all good fingerguns

latent cargo
#

i don't know what that means

mint fable
#

player does not exist?

latent cargo
#

is it character uhm

#

Like dependant. whats the word xD

#

specific

#

sensitive*

mint fable
#

you can try it

mint fable
#

i gotta go, gl

latent cargo
#

Ty

#

anyone else able to add some input?

gleaming sandal
#

for pvp manager

#

please edit

latent cargo
gleaming sandal
#

no edit..

#

i say for pvp manager

#

no for deluxecombat

placid light
#

hello
is there some papi expansion (similar to pinger that detects if server is online/offline) that has an option to detect if server is online/offline but also if server is currently restarting?

#

Example to make more clear what i am asking:

Input
%pinger_state_testplugins.com:25565%

Output (depending on server state)

  • if server is online: online
  • if server is offline: offline
    (this above is all possible, this is what i am asking for if exists)
  • if server is currently restarting: restarting...
#

is this possible? i mean it's clear to me that Pinger papi expansion doesn't have this placeholder but what about adding it's possible to detect if subserver if restarting at the moment when you try to parse placeholder

gleaming sandal
deep hollow
#

Hey, anyone knows if there's any javascript to make a daily streak rewards with deluxemenus? Thanks! 🙂

latent cargo
turbid tide
latent cargo
#

expansion is installed.

turbid tide
#

see if it works like that

latent cargo
#

dunno why it's not working

turbid tide
latent cargo
turbid tide
#

try restarting your server

#

if it doesn't work after, send a full startup log

tender vaporBOT
turbid tide
#

I see that's true for most expansion. so I'm assuming one of your expansions might be broken and breaking all the others as well

latent cargo
#

you can just have the log then

turbid tide
#

Hmm. yeah. there are some errors. Just doesn't mention any expansion.

turbid tide
latent cargo
#

they start working yes, but don't work correctly

#

it's now showing PDNE instead of the text

turbid tide
latent cargo
#

it just returns the actual text lol

turbid tide
turbid tide
# latent cargo that would be correct. PDNE

yeah. then what's happening is that it checks if {otherplayer_name_ShiftyRP} returns PNF but it doesn't because it actually returns PDNE so it will return the else branch.

#

which is PDNE

latent cargo
#

but before using the new placeholder check

#

It used to say PNF

#

and.. when im online it should show my display name anyway, not PDNE?

#

it should show PDNE/PNF if i'm offline

turbid tide
#

yeah. I think so.

#

but that sounds like a problem with the OtherPlayer expansion which we don't have source code access to.

latent cargo
#

ugh

#

so after all this effort i can't do what i want

turbid tide
latent cargo
#

A staff hall of fame, I want the NPC's name to automatically represent the actuall staff user.

So if i change my username on server, the NPC automatically updates itself

#

but.. otheruser returns PNF if you disconnect

#

So in that situation.. i'd like it just to say the rank and name when the NPC was created

#

Online: %otherplayer_name_ShiftyRP%
Offline: &8&L[O&dOwner&8&L] &cShiftyRP

turbid tide
latent cargo
#

no it shows the displayname

#

Prefix and username

#

Do you have any suggestions or should i just give up?

#

Kinda fed up with this shit now.. especially after being treated like scum by the citizens developer.

#

it's showing PDNE online or off.

latent cargo
#

How does the NPC know which username it's looking for?

#

it's not me that's running the command to get the result of the placeholder.. so it won't grab my username for the nickname. that's why i have to use the 'OtherPlayer' extension.

latent cargo
#

again how would it know what displayname to use

#

again.. requirement of OtherPlayer

#

i think i worked out the issue

mint fable
#

what was the issue?

latent cargo
#

placeholder was wrong

#

meant to be displayname not name..

#

but encountered another issue and gave up again

mint fable
#

ah

#

what's the issue

#

I bet it could be solved with javascript instead of changeoutput

#

then we could just parse any placeholders for whoever

#
var isonline = "%parseother_{ShiftyRP}_{player_online}%";
if(isonline === "true") {
  "%parseother_{ShiftyRP}_{player_displayname}%"
} else {
  "&8&L[O&dOwner&8&L] &cShiftyRP "
}

maybe

tender vaporBOT
mint fable
#

info on js expansion this

latent cargo
#

So like, when i'm online it shows my prefix

#

when i disconnect it just shows my name

mint fable
latent cargo
#
%changeoutput_equals_input:{otherplayer_displayname_ShiftyRP}_matcher:PNF_ifmatch:&8&L[&dOwner&8&L] &cShiftyRP_else:{otherplayer_displayname_ShiftyRP}%```
#

hmm

#

when disconnected it should have my prefix wtf.

#

I'll test it again when i wake up XD

mint fable
#

ya, maybe the space messes it up or something

#

weird...

#

makes no sense

latent cargo
#

idk. kinda give up for now

mint fable
mint fable
# tender vapor

will need to manually download the js expansion from the ecloud tho

latent cargo
#

ok, thanks ❤️

lofty sage
#

is there a placeholder for player ping that refreshes at .5 or .25 ms

turbid tide
#

@latent cargo I just realised. You have to note that Citizens doesn't parse placeholders for players

#

so there's no target. that's why it says PDNE

#

because the placeholder doesn't actually get any targets

#

I believe a way to get this to work on a citizen npc would be to also use Denizen

turbid tide
lofty sage
#

Is it because maybe they coded it in by themselves??

turbid tide
#

it could be. I mean there might be ways to get the instant ping, I Just don't know of any

#

ok. maybe it would be more instant with using packets but idk. these are just ideas

junior musk
#

it also depends on where you use the placeholder

#

depending on the plugin, you may have a different refresh interval for placeholders

lofty sage
#

For me using sprac n essential have the same refresh time for ping

junior musk
#

can you send the link of the plugin?

turbid tide
junior musk
#

I'm pretty sure PAPI doesn't have a refresh system

#

it's up to plugins to call the placeholders at the interval they want

#

though if you're talking about the internal MC method to get the player's ping that the placeholder is calling, then yeah, that's possible

#

and probably not changeable

gleaming sandal
junior musk
#

you have PvPManager's placeholders here, you just need to use those instead of DeluxeCombat's placeholders

turbid tide
#

because it's cached

#

that's what I meant

junior musk
#

are you saying that the expansion is caching the ping, or that Minecraft is ?

turbid tide
#

I believe it's happening on minecraft's side.

junior musk
#

ah then yes

#

of course

turbid tide
#

or something like that. not 100% sure

latent cargo
#

There’s just a few bugs to work out but not really worth it anymore

turbid reef
vivid sparrow
#

You probably cant use the total entities placeholder in tab

junior musk
#

use %sync:server_total_entities%

vivid sparrow
#

^

turbid reef
woeful helm
#

Good day!
how can I view the total playing time of the player in minutes, hours, etc.?
Unfortunately I can't find exact instructions.

Would appreciate a feedback.
Regards

Marco

mint fable
#

%statistic_minutes_played%
%statistic_seconds_played%
etc.

vivid sparrow
#

@mint fable pig made papi bot delete its messages for some reason smh

mint fable
#

big smh

vivid sparrow
#

But not the unknown expansion message lol

mint fable
#

😂

austere hawk
austere hawk
#

Yes.

turbid tide
#

and if you execute /papi reload, expansions start working?

austere hawk
#

Let me go look.

#

Yes.

#

Why does that happen blitz?

#

Its fixed now.

turbid tide
#

can you execute /papi dump and send the generated link here?

#

might be helpful to them

austere hawk
#

Ah just turned laptop off.

#

One sec

#

Here blitz.

turbid tide
#

ty

austere hawk
#

If it helps blitz.

#

I installed fishing plugin which requires..pyrolib.

#

Ever since then I been getting this error... Shown above.

vivid sparrow
#

If you remove these two, do expansions load fine?

jaunty stag
#

Hellow!
Is there a way (without installing plugins) to correct/hide these errors?

[22:09:12 WARN]: [PlaceholderAPI] Loaded class com.bencodez.votingplugin.VotingPluginMain from VotingPlugin v6.9.4 which is not a depend or softdepend of this plugin.
[22:09:12 WARN]: [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-CMI which is not a depend or softdepend of this plugin.
[22:09:12 WARN]: [PlaceholderAPI] Loaded class com.sk89q.worldguard.WorldGuard from WorldGuard v7.0.8-beta-01+cbb2ba7 which is not a depend or softdepend of this plugin.
[22:09:12 WARN]: [PlaceholderAPI] Loaded class com.sk89q.worldedit.world.World from WorldEdit v7.2.12+6240-87f4ae1 which is not a depend or softdepend of this plugin.
[22:09:12 WARN]: [PlaceholderAPI] Loaded class com.onarandombox.MultiverseCore.MultiverseCore from Multiverse-Core v4.3.2-SNAPSHOT-b870 which is not a depend or softdepend of this plugin.
[22:09:12 WARN]: [PlaceholderAPI] Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.4.46 which is not a depend or softdepend of this plugin. 
vivid sparrow
#

open placeholderapi's plugin.yml and add these plugins as softdepend

jaunty stag
#

okay :)

#

ty

runic field
#

okok

austere hawk
#

Public I will try that if it does it again.

austere hawk
#

Still same problem.

austere hawk
#

Anyone know how to hide depend errors to place holder api? and will it work for all plugin depends?

languid cairn
#

i get this error on server start

#

any ways to fix?

tender vaporBOT
turbid tide
#

if you open the jar using a zip opener like WinRAR you can find a plugin.yml file inside. in it you add this line:

#
softdepend: ["LuckPerms", "Essentials"]``` you can add whatever plugins you want there
#

also. those are not errors. they could just be ignored

#

they're just warnings from spigot letting you know PlaceholderAPI or rather one of it's expansions has hooked into another plugin.

austere hawk
#

How to properly install PAPI on Bungeecord server?

austere hawk
austere hawk
austere hawk
floral plank
#

yes but thats not papi on bungee

#

thats TAB on bungee

junior musk
#

otherwise, PAPI doesn't officially support BungeeCord

austere hawk
#

Blitz Would you not have to do that with every jar release tho?

junior musk
#

you would, yes

austere hawk
#

Couldnt placeholder add an option in the config.yml which allows blocking of words in terminal?

#

So we can just block all soft depends not just for placeholder api.

junior musk
#

ConsoleSpamFix

austere hawk
#

Yeah i know its just a whole another plugin to add.

#

I run 65 already LOL

plush dove
#

is there a placeholder for whether an item is stackable? like buckets

remote cipher
#
[19:44:45 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.11.2 generated an exception while executing task 493
java.lang.NullPointerException: Cannot read the array length because "<local4>" is null
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.getOfflinePlayers(CraftServer.java:2116) ~[purpur-1.19.2.jar:git-Purpur-1768]
        at org.bukkit.Bukkit.getOfflinePlayers(Bukkit.java:1449) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at com.extendedclip.papi.expansion.vault.BalTopTask.run(BalTopTask.java:47) ~[?:?]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.19.2.jar:git-Purpur-1768]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.19.2.jar:git-Purpur-1768]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.19.2.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]``` this is spamming my console.. any ideas?
#

and this one...

[19:52:51 WARN]: [PlaceholderAPI] Plugin PlaceholderAPI v2.11.2 generated an exception while executing task 202481
java.lang.NullPointerException: Cannot read the array length because "<local4>" is null
        at org.bukkit.craftbukkit.v1_19_R1.CraftServer.getOfflinePlayers(CraftServer.java:2116) ~[purpur-1.19.2.jar:git-Purpur-1768]
        at org.bukkit.Bukkit.getOfflinePlayers(Bukkit.java:1449) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at com.extendedclip.papi.expansion.vault.BalTopTask.run(BalTopTask.java:47) ~[?:?]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.19.2.jar:git-Purpur-1768]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.19.2.jar:git-Purpur-1768]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.19.2.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]```
austere hawk
#

Is there an total xperienced gained placeholder?

heavy zealot
#

Update the plugin and my version of the server and every time I talk it sends me this error and it doesn't let me talk

fervent zephyr
#

Help api

#
[19:25:36 INFO]: [Progress] Couldn't get the number from {bungee. The progress will be 0%.
[19:25:36 INFO]: [Progress] Couldn't get the number from {bungee. The progress will be 0%.```


```&8[%progress_bar_{bungee_BedWars-1%&8]```
meager veldt
#

is there a mirror link I can download from? Im having issues downloading from spigot to my linux server

balmy marten
#

It's on MCM and Jenkins

orchid hull
#

Yo. Is there a reason that %server_name% returns the server's default MOTD? "A Minecraft Server". I can't seem to change it either, in server.properties
I'm using latest PAPI version btw and latest version of purpur

mental cedar
vivid sparrow
#

try to restart the server @mental cedar

#

if the problem persists, set check_updates false

languid cairn
#

how do i fix?

turbid tide
turbid tide
austere hawk
#

@turbid tide ^^

tender vaporBOT
austere hawk
#

Looks like a phishing link or something

orchid hull
orchid hull
#

sorry barry 🥲

short shoal
#

Do you have that expansion downloaded?

strange hedge
#

hello

#

I'm looking for the fabric version of this plugin, it says that it supports certain fabric mods that my server uses but I can't find it anywhere

white knot
#
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:428) ~[PlaceholderAPI-2.11.2.jar:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
        at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
        at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.IllegalStateException: zip file closed
        at java.util.zip.ZipFile.ensureOpen(ZipFile.java:831) ~[?:?]
        at java.util.zip.ZipFile.getEntry(ZipFile.java:330) ~[?:?]
        at java.util.jar.JarFile.getEntry(JarFile.java:518) ~[?:?]
        at java.util.jar.JarFile.getJarEntry(JarFile.java:473) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:163) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:108) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:126) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:574) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
        at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.2.jar:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:405) ~[PlaceholderAPI-2.11.2.jar:?]```
Can anyone tell me why I get this error?
tender vaporBOT
normal dagger
#

hi, was wondering if there is a placeholder for amount of hearts a player has. Not health but hearts. I have a lifesteal server so i really would need this. Thanks

mint fable
#

should be 1/2 the amount of health

#

math expansion could do that

#

%math_1:_{player_health_rounded}/2%

normal dagger
#

it worked! thanks:))

proper finch
#

Hello, I can't get the "Factions" plugin to work in my scoreboard after putting the Player and Vault extensions..

austere hawk
#

i saw somewhere papi 3 will support mini message formating everywhere, so papi 3 when?

turbid tide
#

2023

lusty spruce
#

My font images from Itemsadder aren't being parsed in item lore, it just shows %img_imagename% but if I do /papi parse me %img_imagename% it will show the image. Is this a PAPI bug or itemsadder bug?

torn escarp
#

Hi

#

Why I use "/papi ecloud download JavaScript" not work

#

It said "Failed to find an expansion named: JavaScript"

short shoal
normal dagger
#

when i use %server_tps% it just shows some weird stuff: "20.0, 20.0, *20.0"

junior musk
#

first number is TPS in the last minute, second is in the last 5 minutes and third is 15min

#

you can use %server_tps_1% instead if you just want the TPS in the last minute

normal dagger
#

Ok and how do i get rid of the switching betwren the * and normal

junior musk
#

I'm not sure if you can

normal dagger
#

Hmm

junior musk
normal dagger