#placeholder-api
150650 messages · Page 95 of 151
there isn't any expansion no?
no
like numbersuffix but reversal
but all you have to do is copy paste
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
yeah but I have to add it into my javascript, never do that before so a bit tricky for me 🙄
You'd have to make your own plugin and expansion for that. I don't think you can do it with just an expansion if pinger doesn't work.
I mean it's literally just a copy paste
like this
tho apparently this won't work with negative numbers
so if you care about that, use the last link tanguygab sent instead
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?
no. you shouldn't have to edit anything here.
No no I didn't edit anything
but it's giving this error
can you put the entire error in a paste bin and send it here?
TypeError: Math.sign is not a function in <eval> at line number 10```
hmm
what engine do you use?
first of all what version of the expansion
try switching to quick_js
if that doesn't work either, try this script instead: https://paste.helpch.at/povegutema.js
with quick_js only parse the placeholder
with any error
like %javascript_charityrewards%
without any errors? or with errors?
no without any error
ok. switch back to nashorn and use this script.
<eval>:22:15 Expected an operand but found error
return `${sign + wholeDigits}.${fractionDigits}`;
^ in <eval> at line number 22 at column number 15```
gives me that now
using nashorn again
yeah I guess nashorn is missing way too many features that modern javascript has.
btw. switch to quickjs and restart the server
don't just reload
try both scripts on quickjs after a server restart
no
what version of the javascript expansion do you use?
yes. latest from there
that one should add a config option
called use_quick_js:
set that option to true
and restart the server
I put them on nashorn haha
as they were working fine with nashorn
only that one you sent it's using quickjs I suppose
you can't set per script engine anymore
the whole system was changed in javascript 2.0.0
you either use nashorn for all of them, or quickjs for all of them
ah seriously?
but quickjs will use same methods as nashorn I guess no?
like nashorn it's same as quickjs with less methods
I guess they work the same for basic scripts, pretty sure one of the differences is how you access java objects or other stuff
Ah so it's okay
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?
yeah but was thinking about using the variable directly
but it's easier dividing by 10 yeah
thanks 👍
well I guess you could do something like parseInt("0."+var) but it's kinda pointless
divide then format as needed
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"
- 5000?
no no it's an example
I need an expression following these blocks needed
Thats gonna be complex
yeah, that's why I asked here haha
I'm looking for pickaxe level 4 blocks needed, but I just need an estimation
is it possible to return a net.kyori.Component on placeholder request?
uh, what is the updated skript expansion?
Hello, how can I reset the hours played to 0 to all the players?
Can PAPI run on Bungeecord?
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
[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.
why would you be using such an old version? you should just use the latest version.
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>```
Wait, this isn't the votifier discord..
If you are talking about the statistic expansion, data is collected from the world folder
so how delete it +_-
reset
do i need delete all the world ? :?
please help 🤧🤧🤧
@vivid sparrow
player data in the world afaik
you could probably delete specifics too
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>```
hmm
statistic_deaths and statistic_player_kills
what ? in my world folder -_-
i need delete player dat or what?
so i need delete stats folder?
wipe inside the stats folder
then i need restart server or just can reload placeholderapi?
restart the server
you should not be editing files
when the server is online anyway
who cares 😄
so then why i can access to files wile server on 😄
i dont stop server i using premium ddos to crash it 🤣🤣
after 2.11.2 update so many plugins have f*cked up colors
read the changelog
I know
it is the fault of your plugins/the expansions used because they rely on papi to color their output
yeah. it has been marked as a bug and for removal for a very long time
PlaceholderAPI placeholders
realmines_totalblocks_MINE,
realmines_minedblocks_MINE,
realmines_remainingblocks_MINE,
realmines_perremainingblocks_MINE,
realmines_perminedblocks_MINE,
realmines_secondsleft_MINE
doesnt work
contact the author of realmines
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%
while it is PAPI related, might get more help in #development
Should be PlaceholderAPI.setPlaceholders(OfflinePlayer, String)
alrightu
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
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
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?
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
Version was never updated in the 2.0 source code, it's downloading 2.0 though
It would be dependent on local language selected for the client
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
btw blitz, I got this as the KDR
https://i.imgur.com/JXlusIm.png
Is there anyway to fix this or round it to like 2 decimal digits or something?
yeah you can round in javascript.
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
always the goat 🐐 🙏
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!
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
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 🙂
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%`
send your script file in a paste
@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 😎 
Yes it was me.
If there is a way to compile a version that would be great as it would save me some time !
try this with __ for space
I'll try it tonight i'm actually going to work
How do I get the required values displayed?jobmines: expression: '%jobsr_user_jmaxlvl_Miner% == 80' type: boolean true_result: '&bUp' false_result: '&etest'
is there a channel for suggestions?
update the server expansion
For PLaceholderAPI? then you can either use the github issues tab or just suggest it here and someone might post it on github.
Yeah for Papi.
An entire evolution of the plugin could be to make it run on the proxy.
This would be an huge impact for development
if it were that easy 😦
but the good news
PAPI v3 will have proxy support
I understand, in fact mine was a suggestion
but. the earliest ETA for that is 2023.
Really cool!
i'll look into that thx
Please can someone help me with my javascript placeholder, really not sure what im doing wrong
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%?
In what context what placeholder do you want to use
Currently creating a feature to give out x amount of money that a claim costs monthly.
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
provide the script file
?paste
Thats what i have right now, when i test what itemNewest is outputting with console.log(itemNewest) the output is correct
what is the issue
when i call the javascript placeholder noting outputs and i get a huge error in console
?paste
https://paste.helpch.at/cevekeluru.bash ```yml
example:
file: example.js
displayname:
file: displayname.js
hmm
what java version do you use
I'm not entirely sure of the cause, but this is my best guess
Current Java version: 11.0.15+9-LTS
the class referenced by the error doesnt look like a functional class?
I have no clue
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
thanks anyways man, means a lot ❤️
no problem 
can someone help me with placeholderapi
i cant download KillStats expansion
for some reason
placeholders might be included with the plugin now
/papi parse me <placeholder> to test
and what should it write out after executing ?
whatever the placeholder returns
does it just return the placeholder?
it might just be unverified because it's 8 years old
the plugin
yes
i know it worked before
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 ?
the scoreboard on older versions? ye
also tried to download and then put it in expansions folder and also papi reload
but sitll not working
ye
Do you have the killstats plugin?
yeah
/papi dump
Also which placeholder are you testing to be exact?
%killstats_kills%
%killstats_deaths%
run this
Didn't someone recently make an expansion for total blocks mined? (By the player)
?
someone told me "you cannot send mclo.gs links here" and I was like "bullshit, lemme test it"
there is one in the statistic expansion
I let them know thx
yeah. someone did get warned or temp muted here but not for sending mc logs
for spamming them
auto warned or temp muted*
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```
this errro is related to something called artemis
possibly to an outdated artemis expansion?
or maybe a missing plugin that's required for said expansion
i have no expansion called that and unsure since half the time I have no clue what I have done lol!
do you have an artemis plugin maybe?
erm I will look through but no that I can think of
ok so I might've been wrong
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
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
you can remove the expansion from your plugins/PlaceholderAPI/expansions/ directory
the expansion probably doesn't work because it requires the PlayerStats plugin
this plugin to be more specific: https://www.spigotmc.org/resources/playerstats.102347/
oh i forgot that! appreciate the help and will try download the plugin and see it fixes!
oh thank you!
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
depends on expansion and placeholder. it's up to each expansion to add as much customizability as they want
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).
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.
thanks for your help but i don't know java
is there any placeholders that show how many players are in a gamemode?
bungee ones would if they are separate servers.
ah I need it for only players on one server to see whether they are in survival
I believe it'd be %server_online%
Or if you are running multiple "Servers" on a single instance you could check players in a world
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
go on your Expansion's page, click on Versions and you'll get an Add Version button
lol! i swear it wasn't there the first time I looked, thanks
my addons were unverified, can I get them verified again
Yeah. Someone will look at them as soon as they have time
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?
alright. verified them both.
the latest of huskhomes?
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
hmm. not sure if I will be able to edit an existent version but I will try
thank you!
alright. updated it. will be verifying it soon
thank you so much!
no problem
alright. verified husk homes as well
marvellous, cheers!
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
Idk what site that is, but use this
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
You could try using the Str expansion with the world one
/papi ecloud download str then /papi reload
and use %str_capitalize_{world_biome}%
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 !!!!
Thank you!! ❤️
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?
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.
ok so first thing I Notice
your argument is not a number
why are you trying to parse it to a number?
Because I'm trying to get the acrobatics1 to make it as x and acrobatics2 as y value. There's actually a larger code than that but I'm trying to understand if this works. Sorry for the confusion.
well those are not numbers
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
That's my final solution. Will proceed with this solution instead. Thank you so much and sorry for the trouble.
sorry for pinging.
Are there any placeholders that give Epoch/Unix time?
is there a placeholder that can check how much armor points a player has?
Pretty sure armor is a scoreboard objective (https://minecraft.fandom.com/wiki/Scoreboard) so ScoreboardObjectives (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#scoreboardobjectives) should work
Use this @austere hawk %attribute_player_value_GENERIC_ARMOR%
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
Take a look at the formatter expansion @calm dawn
perfect, thank you. exactly what i was looking for
Np
Hey sorry, I'm using the lore.js from community scripts, didn't edit it
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://paste.helpch.at/uwivirexak.bash
I was just going to make sure you didn't have any extra bits in your js file
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
maybe because i'm using latest javascript and isn't using nashorn?
no clue 🤷♂️
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
Anyone know how to solve this? I'm using the latest version of PlaceholderAPI
Your host is probably blocking the ecloud, try to disable it from config and download expansions manually
That error happens if you try to use the PlayerStats expansion without an updated version of the PlayerStats plugin present (v1.7 to be precise). If you download the PlayerStats plugin from spigotmc, it should work!
the problem not only with it, i download placeholder, reload and get it
Just tried downloading them manually from https://api.extendedclip.com and I still get the same error after restarting
You have this plugin? https://www.spigotmc.org/resources/playerstats.102347/updates
cj89898 forget to send the response. it worked with a small fix on bsp. Thanks a lot for your time !
it does @cunning elk
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!
I'm still getting this issue
have you disabled the ecloud from papi config? @willow pewter
i have now and just tried it, will i need to re-install the expansions manually again?
no
so is it another issue?
Disable the ecloud and restart the server
still the same error :/
do you have cloud_enabled false and it throw the same error ??
oh god plugman
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?
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?
I'm using the full jar but in version 2.11.x it doesn't work
In 2.10.x it works
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
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
also if my ide show me that the import is available, when I write it, it will result that the import can't be resolved
you are most likely doing something wrong code side
show the code and #development is the proper place for it
ok, now I will do it
no there is no bungee/velocity version of papi
sorry for late response, yeah i did restart
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
Ok ty
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 😩
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
Why error?
https://hastebin.com/jesuhaqoyu.sql
.replaceAll(`"`, `\\"`)
You need java 16
if .replaceAll do not exist, it anyways works
let a = `some text "" 12344`
a.replace(/"/g, `\\"`)
me?
Yes
how i dont look at this. thanks
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%
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
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
dont helped
https://hastebin.com/icajoyalid.sql
use the latest version of the plugin and expansion
as you can see the error is different than before
ok
any placeholder/plugin for 1.19 paper that could show prefixes/suffixes in the tablist?
can try https://www.spigotmc.org/resources/animated-tab-tablist.46229/ it supports papi
sick cheers
Why this not work?
%gradient_message_#0CE800_#147001_%player_name%%
can you surround it with `` to escape formatting?
Tab not work with this
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}%
Thanks
hey, for some reason it wont install itself into the plugin folder
after putting the bukkit jar in
do i have to put it inside the API expansion folder?
i didnt, for some reason the host im using required me to restart a few times
a bit late, tho if you can help me out w something else, would be great
ops my bad
best to just ask wherever is best
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
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.
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)?
How do I use the javascript expansion? I can't download javascript
/papi dump
if ya still need help
no need to dm
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
https://api.extendedclip.com/expansions/changeoutput/versions/ /papi ecloud download changeoutput <version>
oh yea i should probably downgrade...
This worked. Thanks dude! I didn't realize you could change the version of the extensions. When I updated it I thought it couldve been a format change but those are so rare for the most part that I just disregarded it
Have a great rest of your day!
np, you as well o/
Just math round it?
The math expansion does that
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)?
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
But apparently the code does this:
'kill with hand\n <---- can't read this because the quote is missing.
10 kills\n
10 kills\n
'
I already talked to the plugin creator and it seems to be from Placeholder API.
https://github.com/PikaMug/PlaceholderExpansion-Quests/issues/15
?dm-filler
Is it possible to reset a placeholder or change its output? I want to reset a player's statistic_death
it's stored in their player data file
[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%
I'm using this for the target part https://ajneb97.gitbook.io/conditionalevents/global-variables#variables-of-targets
i think you need to use [prc] for the % in the expression not sure tho
for placeholders on the math expansion, use {} instead of %%, though I don't think this will work in your case with the target placeholders
anyone know if there is a placeholder to convert minimessage format to the good old &?
how to connect placholderapi with a plugin?
/papi ecloud download
then is not supported with papi
how am supposed to fix the placeholders then
🤷♀️
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
@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
@odd galleon use the server expansion, %server_time_FORMAT%, they both do the same thing
Ok thanks
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
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
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 😅
Having a weird issue with placeholders, everytime i set a users suffix of prefix it changes it to users balance prefix
How do i put a placholder api in holograpicdisplays without and extra plugin
How can i put a placeholder like playername inside a placholder?
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
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.
I believe in their latest beta you use something like this: {papi: player_name} instead of %player_name%.
and another example would be {papi: server_name} instead of %server_name%
pretty sure that expansion has been broken for a long time. The author is not maintaining it afaik.
Can you show me your format or whatever you're doing please? (might go to sleep so I might only answer tomorrow)
do you have any other suggestions for this?
I need to fetch just one data from mysql
it would be perfect if this extension worked
nope. you'd need to make your own little expansion for this.
no. there's only a way to get each region at a time based on prioirty. so you can use a placeholder to get the priority 1 region, then another placeholder to get the priority 2 region, etc.
Could you tip me on how to set the priority into placeholder 🤔?
Pretty sure its any wg placeholder followed by _priority
Example %worldguard_name_2%
probably
ty, since I don't want the next parsing colors yet since some of my plugins don't support that
😬
well they are custom codded and my dev is on vacation 2 days from release 😅
yeah ic
ty tho ❤️
🤷♂️
So when I try to add a expansion and try reloading it doesnt work and it sends a error in console?
then what?
send it here
which one are you trying to download
It looks like you have the playerstats expansion but not the playerstats plugin
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?
?startuplog
send that over after you've type in-game /papi ecloud download vault and /papi reload
@modern spire
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.
Instead of using a boated plugins just for Holograms, you could try something like https://www.spigotmc.org/resources/decentholograms-1-8-1-19-papi-support-no-dependencies.96927/
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
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
You can write your placeholder expansion in a separate jar file, then inside that jar file, you can have your MySQL or whatever database queries. Then once it’s done, just load the jar into PlaceholderAPI expansion folder
More info on the wiki on external placeholders
@gleaming sandal /papi ecloud download changeoutput & /papi reload
We're not using CMI just for holograms, so it's well used. 😄
not working
did you update the extensions?
are you using it correctly? @gleaming sandal
yes
Hey does math still work on placeholders
yes...
ok can u help me with it
?help
can you send a copy + paste of the placeholder? It seems to me that you are missing a few things to add
https://github.com/Kqliber/Expansion-ChangeOutput
is there a placeholder that returns a specific user's display name?
looking for this one? %player_name%
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
http://pdom.icu/url/ar38n i was thinking this one?
It is what i want, but when i go offline it goes to PNF, can i change this message when the player is offline?
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
Read the changelog
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
you need to manually download the expansion
can i have a download link ?
thanks a lot, helped out. Good evening !
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?
if you use parseother with {player_name} it won't say PNF
not all placeholders work for offline players though
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.
no
how do i use it? haha
doesn't otherplayer take a username?
i'm shorthanding it.
do not shorthand please
too lazy to type it all out
its just a username. as support you should know it takes a name lol
you don't understand how papi works
that expansion is community-made expansion
not made by me
or any of us here
¯_(ツ)_/¯
okay have a good day figuring it out by yourself
How do i use paresother?
Can i use parseother with just text instead of another placeholder?
%parseother_{"&cShiftyRP"}_{otherPlayer_name_shiftyrp}% kind of thing?
%parseother_{shiftyrp}_{player_name}% will return the %player_name% placeholder for the user shiftyrp
different expansion from otherplayer (no longer needed)
you are way too nice
Will that do what i want though? When online i want my username (and prefix) and if i change my nickname it should change too. Otherwise if i'm offline.. just show a pre-defined message.
Sorry if that just mentioned you.
basically:
Online: %otherplayer_name_ShiftyRP%
Offline: &8&L[O&dOwner&8&L] &cShiftyRP
copy paste with tab or with papi ?
papi
ya, look at the new format
nono
%changeoutput_equals_input:{player_item_in_hand}_matcher:bow_ifmatch:true_else:false%
like this
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 
or you can downgrade changeoutput, but might lose some functionality
%changeoutput_equals_input:{deluxecombat_has_pvp_enabled}_matcher:true_ifmatch:&4:dagger:_else:&a:shield:% try that
need update plugin
ah
whoa. How on earth do i use that xD
There's no OtherPlayer_Online so how would that know which player to look for?
when you are offline does the otherplayer expansion actually error, or just say PNF instead of the name?
@latent cargo
PNF
%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%
Damn. Thanks. 🙂
I'll test it later and get back to you
Thanks for your help. Despite me being a bit cocky.
all good 
player does not exist?
you can try it
just swap it in the placeholders for otherplayer
i gotta go, gl
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
its not good
Hey, anyone knows if there's any javascript to make a daily streak rewards with deluxemenus? Thanks! 🙂
Can anyone understand why the placeholder isn't working right?
https://drive.google.com/uc?id=1UHlG_hHR_GiwLsi0C7lFLQmy3JXKzBHi
Placeholder: %changeoutput_equals_input:{otherplayer_name_ShiftyRP}_matcher:PNF_ifmatch:&8&L[&dOwner&8&L] &cShiftyRP_else:{otherplayer_name_ShiftyRP}%
have you tried the placeholder inside the /papi parse command? Maybe you do not have the expansion installed?
expansion is installed.
try the placeholder using papi parse then
see if it works like that
can you execute /papi dump and send the generated link here?
Seems like you have the expansion installed but not registered
try restarting your server
if it doesn't work after, send a full startup log
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
Hmm. yeah. there are some errors. Just doesn't mention any expansion.
If you execute /papi reload do the expansions start working? or are they still broken
they start working yes, but don't work correctly
it's now showing PDNE instead of the text
I'm assuming /papi parse me {otherplayer_name_ShiftyRP} returns PDNE instead of PNF?
ah yeah. that's my bad. /papi parse me %otherplayer_name_ShiftyRP%
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
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
yeah. I think so.
but that sounds like a problem with the OtherPlayer expansion which we don't have source code access to.
what are you trying to achieve tho?
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
hmm. but wait a second. Doesn't %otherplayer_name_ShiftyRP% just return ShiftyRP back whenever the user is online?
no it shows the displayname
Prefix and username
I have a gif of that aspect working here.. http://pdom.icu/url/t5s3m
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.
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.
again how would it know what displayname to use
again.. requirement of OtherPlayer
http://pdom.icu/url/40zqk @cerulean tundra
i think i worked out the issue
what was the issue?
placeholder was wrong
meant to be displayname not name..
but encountered another issue and gave up again
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
info on js expansion 
So like, when i'm online it shows my prefix
when i disconnect it just shows my name
what's the current placeholder?
%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
idk. kinda give up for now
ok, checkout this js if you don't get it working
will need to manually download the js expansion from the ecloud tho
ok, thanks ❤️
is there a placeholder for player ping that refreshes at .5 or .25 ms
@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
Doubt that. There is no actual way to retrieve a player's ping using spigot's api afaik so expansions like the Player one have to use reflection. Also idk if there is a way to get that update every 25ms. more like every 50ms (1 tick) afaik.
Thats kinda sad but how do other servers do it??
Is it because maybe they coded it in by themselves??
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
it also depends on where you use the placeholder
depending on the plugin, you may have a different refresh interval for placeholders
For me using sprac n essential have the same refresh time for ping
can you send the link of the plugin?
player_ping does not refresh every tick I'm pretty sure
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
Edit for pvp manager pls
you have PvPManager's placeholders here, you just need to use those instead of DeluxeCombat's placeholders
yes. I know. but even if you parse the placeholder every tick, the ping one will not update
because it's cached
that's what I meant
are you saying that the expansion is caching the ping, or that Minecraft is ?
I believe it's happening on minecraft's side.
or something like that. not 100% sure
I mean it worked for me?
There’s just a few bugs to work out but not really worth it anymore
Hello! I am spammed in the console with this error:
https://pastebin.com/hvkqVwKN
You probably cant use the total entities placeholder in tab
use %sync:server_total_entities%
^
oh, senk
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
https://helpch.at/placeholders#statistic
@woeful helm take a look at the above placeholders 
%statistic_minutes_played%
%statistic_seconds_played%
etc.
@mint fable pig made papi bot delete its messages for some reason smh
big smh
But not the unknown expansion message lol
😂
https://paste.helpch.at/kuwajibaqa.rb
I have no idea what is up with this..
Its always been alright till now..
paper 1.19.2?
Yes.
and if you execute /papi reload, expansions start working?
I don't know but it has been reported before. Waiting for one of the developers to investigate and possibly fix.
can you execute /papi dump and send the generated link here?
might be helpful to them
ty
If it helps blitz.
I installed fishing plugin which requires..pyrolib.
Ever since then I been getting this error... Shown above.
If you remove these two, do expansions load fine?
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.
open placeholderapi's plugin.yml and add these plugins as softdepend
okok
Public I will try that if it does it again.
Still same problem.
Where do you put these errors in the file?
Anyone know how to hide depend errors to place holder api? and will it work for all plugin depends?
you don't put the errors, you put the plugins
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.
How to properly install PAPI on Bungeecord server?
You cant
Why? I already did that
It doesn’t work on Bungeecord
I used this guide and it worked
https://github.com/NEZNAMY/TAB/wiki/How-to-set-up-PlaceholderAPI-support-on-bungeecord
TAB has a way to use PAPI placeholders while having TAB installed on BungeeCord by using a bridge on the backend where PAPI is installed, but that only works with TAB, other plugins have to use a similar solution if they want PAPI placeholders on Bungee
otherwise, PAPI doesn't officially support BungeeCord
Blitz Would you not have to do that with every jar release tho?
you would, yes
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.
ConsoleSpamFix
No
is there a placeholder for whether an item is stackable? like buckets
[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) ~[?:?]```
Is there an total xperienced gained placeholder?
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
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]```
Hey Blitz
is there a mirror link I can download from? Im having issues downloading from spigot to my linux server
It's on MCM and Jenkins
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
Not sure if this is the right place to ask but I found the placeholder here https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#server
error plugins https://pastebin.com/Xv9s0tfK
try to restart the server @mental cedar
if the problem persists, set check_updates false
probably related with your missing }: &8[%progress_bar_{bungee_BedWars-1}%&8]
that option doesn't take the property from server.properties. It takes it from plugins/PlaceholderAPI/config.yml. There should be an option called server_name or something like that.
@turbid tide ^^
Looks like a phishing link or something
oh okay. I didn't know PAPI had that option lol. Thank you 🙂
sorry barry 🥲
Do you have that expansion downloaded?
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
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?
Ohh Thx
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
should be 1/2 the amount of health
math expansion could do that
%math_1:_{player_health_rounded}/2%
it worked! thanks:))
Hello, I can't get the "Factions" plugin to work in my scoreboard after putting the Player and Vault extensions..
i saw somewhere papi 3 will support mini message formating everywhere, so papi 3 when?
2023
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?
Hi
Why I use "/papi ecloud download JavaScript" not work
It said "Failed to find an expansion named: JavaScript"
Restart the server
You have to manually download it from ecloud site
when i use %server_tps% it just shows some weird stuff: "20.0, 20.0, *20.0"
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
Ok and how do i get rid of the switching betwren the * and normal
I'm not sure if you can
Hmm
%changeoutput_equals_input:{server_tps_1}_matcher:*20_ifmatch:20_else:{server_tps_1}%
do i have to install any extensions for that bc it doesnt work
