#placeholder-api
1 messages ยท Page 191 of 1
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
.
how to update an playce holder if I dont now wisch Papi ecloud Placeholder have an update but the console say updates for one placeholder avaible?
I think if you do /papi ecloud list
it shows
or /papi ecloud update updates them all
Are you trying to have a placeholder update its value on an interval?
If so the plugin associated with that will update the placeholder based on the set interval within the plugin or menu
Placeholders itself will always change if a new data is presented
I believe
No, when they start the server papi says "You have 1 update available" if you have an expansion to update
Oh
How?
Please respect the rules, be patient and don't ping staff members!
Wut
Seems like it could possibly be added
the expansion is open source
Not sure if essentials provides an api for the cooldown of commands though
or teleporting
Ah, I see, I'm not much of a java coder though, rip
Hello I want to make like a counter for how many players are in the survival world but if somebody is in the nether it doesn't count it in. How can I solve this? I'm using the %server_online<world>% placeholder right now.
hey i've an error with bungee expansion, any idea?
https://gyazo.com/367839cbdfb3a33df5b8b80220661f81
Thanks
but how would the command look like? Like this: %math_{server_online}_world+{server_online}_world_nether%?
%math_{world_players_WORLD}+{world_players_WORLD_NETHER}%
Thx so much
np
@mint fable any idea?
Please respect the rules, be patient and don't ping staff members!
%server_online% just does everyone online, isn't that what you want?
why doesnt this work (&e%bungee_factions%/100&8)
But you can just do _and after that a world
Guys I downloaded the math papi expansion and all my other placeholders aren't working
Are you trying to get all online player count or all online player count in a specific world?
Together in 2 specific worlds
but its done
ah, I see
now all my other placeholders aren't working
how so?
I have no idea
returning %...% or returning a null/0 value?
test a basic one, make sure it isn't just a specific set breaking. Like %player_name%
Everything is broken
check your logs
you... think...?
1 sec
um anyone knows wout this ?
wdym by returning
what does it show you
does it just return %player_name%?
yeah
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
send that over
/papi list
a useful one is also /papi dump
it gives them a link to share
Expansions Registered:
rankup [Author: Okx, Version: 3.6.1]
quests [Author: [LMBishop & contributors], Version: 3.10.1]
combatplus [Author: [Nik], Version: 1.6.1]
ajlb [Author: ajgeiss0702, Version: null]
Math nor Server are registered, Thunder
Umm
there's something erroring
Is it possible to get the log on aternos? Im temporarily using aternos right now
let me check 1 sec
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
Found it
i feel it's probably essentials, that has issues
I can send the full log
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
But can you delete it after you open it? thx
I mean the link
or can i delete it now?
well you can
Looks like some version mismatches
you need to update to java 11
to use the math expansion
and you should also update papi
cj......do u know why this doesnt this work (&e%bungee_factions%/100&8)
?jdk
oh no
What is your placeholder returning?
i.e. Is it showing up as %bungee_factions% or like null or 0
wdym "returning" mate
%bungee_factions%
They're adding the online player count of 2 worlds Ignore
that's a different person
Do /papi list and see if bungee is installed
Oh I got confused
-papi bungee
yes bungee is installed
Ok I switched to java 11 and im starting the server
do I have to download the expansions again?
no
๐ค
is %bungee_factions% a valid placeholder? are you trying to grab the count of players in a world?
a server
So just because math expansion wasn't working that caused the other ones not to work too?
yes
yes
it's the order they load in
It works omg ty so much
Okay, do you have any other servers you can test the placeholder with on your BungeeCord?
Such as your default or hub one
yes
Try it on that then
doesnt work in either of em
%math_{world_players_world}+{world_players_world_nether}%
This should work right?
Because it's not working
well you don't have world installed
I just installed it
but you can just use the %server_online_<world>% you were using
Ok thx
I did it but instead of a 0 its 0.000 why is that?
It displays 0.000
put %math_0_
To the beginning?
It works
nice
Thanks a lot
I just need to test it now if it adds the players from all 2 worlds then it's totally working
it shoes me numbers
of memebrs BUT it doesnt work with anythin else
Okay, so where are you trying to use it?
like hologram or signs
hologram
above 4.
ik that below 2 it needs holographic extensions
wait let me try somthin
Shouldn't placeholders in Holograms be Yeah except it's fricken curly braces {papi: <placeholder>}?{papi: <placeholder>} because it's smelly and stinks
Unless you're using a different plugin
wut
tell filo to change the format back https://github.com/filoghost/HolographicDisplays/issues/591
It works perfectly now thanks again!
and for now use the lame {papi: bungee_factions}
HD4: Electric Borgalor
๐
i can't smh
smh my head
wait nvm its v2.4.9
Where'd you get 4 from?
i had mistaken it for multiverse plugin
This better, CJ?
okay ill try it rn
it's not even just curly braces, it's also papi:
like what is that
disrespect I'd say
we are so good mvdw caved in
huh
featherboard uses papi now
All my brains thinks is MultiVerse Don't Worry
maximvdw made featherboard and mvdwplaceholderapi
ah yes, featherboard, that thing we all know
(It's probably a hologram plugin from context but being dumb is funny so shush)
holographic extention is only for 1.15
i installed the latest versions available
it says they have placeholder support init
but
it still doesnt work
%bungee_factions%
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
hmm send that over
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
bruh
๐จ It has come to my attention that a user was using a leaked plugin, they have been... well let's say.. dealt with.
ooooooooooh, someone's been.. dealt with.
I'm using the latest version from the eCloud
Please respect the rules, be patient and don't ping staff members!
Wait, which plugin was it? Papi?
Citizens
its both
Now I'm even more confused, this is the one I have. Is that not the one they have? https://www.spigotmc.org/resources/citizens.13811/
or rather, they pirated
so. citizens is freemium. you can download an official jar for free, or you can pay for it. that's more like a donation I guess. They might also only give support to the people that paid. Not sure about the last one
this is on their spigot page https://i.imgur.com/GTgb00T.png
it has been there for ages
Please respect the rules, be patient and don't ping staff members!
Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.
I have an announce command that works to display placeholders in chat. I'm trying to run this command from console to display a placeholder for a player. I'm not sure how to tell the placeholder what player to look at. Is this even possible?
that's up to your announce command to do so. are you developing the command? or is it from an existent plugin?
because PlaceholderAPI literally takes in a Player as a paramater to the setPlaceholder method
so that's how you do it in code
PlaceholderAPI.setPlaceholders(Player, String)
I'm looking for a placeholder that displays time played as just a number soo instead of something like 1d 2h it would display as just 26. Anyone know a papi expansion or a separate plugin that has something like this?
%statistic_seconds_played%
%statistic_minutes_played%
%statistic_hours_played%
%statistic_days_played%```
you can chose
you are amazing! I was searching for time in the wiki, that's why I couldn't find anything ๐คฆโโ๏ธ
Is there any reason why the essentials placeholders return the player's display name instead of their username?
the essentials_nickname?
no like %essentials_baltop_player_0%
not sure actually. @errant iron made that decisions. I'm personally not a big fan either.
I think you guys should add an option in the config if you want to use the display name or like _displayname after placeholder
I'm trying to use the placeholder for a skin of an NPC but since it's the displayname it adds colorcodes to the player's name and what not
blitz you literally have GitHub access
and pr or shutup
Essentials doesn't store the raw username, so it might be expensive to call this placeholder as it does a Bukkit player lookup by ID.
Try this one, should be %essentials_baltop_player_stripped_0% for their normal username
That would just be the displayname without colors right?
its saying Invalid ID
try this one
Couldn't find the player with that UUID
Ah
@errant iron
you can use IUser#getBase to get the player
and get the name from there
they store the player inside the user
this is why you pr or shutup blitz
well was about to. bcz glare can do a release within the next 2 hours
so if you cna't. I can merge and do another pr
oh apparently they just have a getName as well
yeah feel free to modify my branch if you need to
in user
I didn't see a getname from user
nah. I'll just merge yours and PR myself on the main branch
well hang on one sec
its inside IUser
how do I get IUser from user? or whatever I have there
oh
well you see
we don't have a user
we have a BalanceTop.Entry
which one has DisplayName, Balance, and UUID
oh really?
yuh
SHIT
yeah you think I wouldn't have tab completed getName lmao
well you might've not thought about it. it happened to me before when I was looking for the player in User
but it was called base
I just assumed you're lazy. since user has loads of methods
but entry might have just a few
yeah I understand now
is just that at the time
I didn't know it wasn't a user
or forgot rather
well I guess we can merge like this?
What's the problem?
they want raw username, not displayname
the Essentials entry only had UUID and DisplayName
so we do a Bukkit.getPlayer lookup to get the username
but we don't have a user. just a baltop entry which is just uuid and displayname yeah
Get the User from the UUID, get the name from the user?
Waiting on confirmation, but I'm fairly sure if they are in the baltop, we can get a user.
Wait so why do we still need to touch the Bukkit#getPlayer at all?
to get their raw username
bcz the baltop entry only stores the uuid and display name
people want the raw player name
people being the person above
then Blitz was like "Star made it that way, I still don't agree"
so me
User#getName ?
Grab it
well I kinda opened an issue a while ago star lmao
from?
You have their UUID
can I get an Essentials Player from UUID?
Yes we are good to do that. If it can be nullable, just have a handler for that.
already in the PR
๐
Where I can find the latest build for papi because I forgot all the commands here ๐
?papi builds
Pretty sure our latest build is still the spigotmc
so updates are back in spigotmc
I mean they have always been there ๐
@errant iron @turbid tide So everything good to go in that PR then? We can get that merged.
I still think we should return empty string instead of null
blitz is going to sleep ๐ฆ
wanna test this real quick blitzo?
We can hold the release for another day then, that's not an issue.
yeah probably better
https://github.com/PlaceholderAPI/Essentials-Expansion/pull/48 looks good to merge for this update too.
ok so I had a little break with my server and now I just updated some plugins and have a problem with papi javascripts
here is my latest.log https://paste.helpch.at/ogusevebaw.md
Nashorn isn't in the JDK anymore. Switch to QuickJS in the config.
sorry, I didnt understand you
Idk what config it's in. Either the main papi config or if js have it's own config, switch the config that talks about quickjs
use_quick_js: false this to enabled it?
Yup
Now most of the scripts are working, but this is not https://paste.helpch.at/datoyivimi.sql
var placeholder = args[0];
function getPlayers() {
var players = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + placeholder + "%");
if (players == 1) return players + " Player";
return players + " Players";
}
getPlayers();```
I don't use that expansion myself so maybe someone else will come along and know it ๐
Hey there, with CheckItem can you use %checkitem_give% to give an item in a specific slot?
It doesn't seem to work with inslot
My place holders dont seem to be loading,
public static String translatePlaceholders(Player p, String s) {
return PlaceholderAPI.setPlaceholders(p, org.bukkit.ChatColor.translateAlternateColorCodes('&', s));
}
String title = getConfig().getConfigurationSection("Gui").getString("Title");
ChestGui gui = new ChestGui( getInt("Size", "Gui"), translatePlaceholders(p, title));
Title: "Autographs | %player_name%"
you sure you have the player expansion?
./papi ecloud download player, then /papi reload
and iirc you don't have to translate color codes, placeholderapi automatically does that
Thank you! I was over here loosing sleep and its bc I didnt load it ๐คฆ.
Hahaha fair, happens to the best of us :)
When I have the message x placeholders have an update available, what is the step to properly update those and make the message go away? lol. I've tried papi ecloud update all
sorry. "x placeholder hooks have an update"
specifically this 13 placeholder hook(s) registered! 8 placeholder hook(s) have an update available.
/papi ecloud update all
I think so anyway
Oh wait you did try it
and you reloaded the plugin after right?
i.e /papi reload
hrm nope didnt reload .
There you have it then :P
JavaScript expansion doesn't seem to be installing on my server
The jar is in the expansions folder, but it doesn't show up in my /papi list
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
The plugin (or program) you are trying to use was compiled using a newer Java version than the one you using.
To find what version you need, start from 52 which is Java 8 and for example, 60 is Java 16. (8 + 8 = 16 => 52 + 8 = 60)
Dang
javascript:
debug: false
github_script_downloads: false
argument_split: ','
use_quick_js: true
``` So I added this to my config.yml, but it didn't switch to quick.js I believe
use and older version of the js expansion that supports java 8
or, you know, update your java ๐
papi ecloud download essentians
[15:39:25 INFO]: Failed to find an expansion named: essentians
wut
any chance you use falix nodes?
I dont really know what is this
hosting company
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
okay
Also I had a problem with my javascripts
And I changed PlaceholderAPI.static.setPlaceholders to PlaceholderAPI.setPlaceholders is this right?
so on the nashorn engine the first one will work. idk about the quickjs engine tho
idk if any of those will work
when I enabled the quickjs everything was broken
but for now its ok, I just wanted to know if I did it right
Hi there, how i can fix this error?
java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.Placeholde rAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.plac eholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null
Expansion class:
@Override
public @NotNull String getIdentifier() {
return "orioncore";
}
@Override
public @NotNull String getAuthor() {
return "orionmc";
}
@Override
public @NotNull String getVersion() {
return "1.0";
}
@Override
public boolean canRegister() {
return true;
}
@Override
public boolean persist() {
return true;
}
@Override
public String onPlaceholderRequest(Player player ,String holder) {
if (player == null) {
return "";
}
if (holder.equalsIgnoreCase("level")) {
return "0";
}
return null;
}
heeey, i really need help!
mind sending the entire error in a paste bin?
any chance you can share the JAR itself?
What for?
want to see if you're shading PAPI
Can i send his on private messages?
yeah. 1 sec opening my dms
ok send it
yeah
@peak terrace don' shade in papi
the api should come with the PAPI plugin. you don't need to shade it
change <scope> parameter?
yeah
just i set dependencies in pom.xml, and scope PAPI is "compile"
I believe it should be provided
๐
/papi ecloud download Player doesnt work for me
pls help me I need it
Am running 1.16.5
PaperMC
what does it say when you do that?
it says there is 0 expansions available or something similar
when I put the name
it says
Could not find expansion named: Player
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
ty
Any plans to separate PAPI and itโs API? Itโs kind of annoying accidentally importing libraries from PAPI because theyโre shaded into the library
are you able to put {} placeholders within the changeoutput placeholder? For example, like this:
%changeoutput_equals_{changeoutput_equals_{player_direction}_N_-8_0}{changeoutput_equals_{player_direction}_S_8_0}_80_8_-8%
This just gives me direction} as the output
where are u putting this
Hello
just did papi parse me
Can u ask how I can show hearts in TAB plugin
The number of hearts
A person has in numbers
Like 10
Pls help someone
I think you must be using player_health?
Hey there, with CheckItem can you use %checkitem_give% to give an item in a specific slot?
u cant have inner placeholders of inner placeholders
u could try using the NestedPlaceholders expansion to nest them instead tho
Yeah it will error out bcz it doesn't know how to deal when you divide by 0
I'd say javascript expansion and have a fallback if divder is 0
is there a placeholder to check the block material of an x y z coord?
Yea but I want the number of hearts to be displayed instead of health
Anyway to do this?
Use js expansion to decide by 2
hey papi will give error anytime I do /papi ecloud download <anything>
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
Can someone tell me how to create placeholders for my plugin myself?
private String fixMoney(double d) {
if (d < 1000L) {
return format(d);
}
if (d < 1000000L) {
return format(d / 1000L) + k;
}
if (d < 1000000000L) {
return format(d / 1000000L) + m;
}
if (d < 1000000000000L) {
return format(d / 1000000000L) + b;
}
if (d < 1000000000000000L) {
return format(d / 1000000000000L) + t;
}
if (d < 1000000000000000000L) {
return format(d / 1000000000000000L) + q;
}
return String.valueOf(d);
}```
this is the code used to make that lol
dunno
private String format(double d) {
NumberFormat format = NumberFormat.getInstance(Locale.ENGLISH);
format.setMaximumFractionDigits(2);
format.setMinimumFractionDigits(0);
return format.format(d);
}```
oh, might be that it's not <= or something
That will format the value with commas, dots, etc. The other method format the value with k for thousands, M for millions, etc.
I personally use this https://stackoverflow.com/a/30661479
Is js expansion a plugin?
where abouts does papi store or retrieve user information. ive got things like user play time that id like to alter and was wondering if i could view this information somewhere or edit it
pretty sure i found it somewhere at one point but cant find it again
Papi doesnt store anything
do you know where abouts things like user play time would be?
From statistic? World data
ah okay i think i found it under world > stats, cheers
use math expansion for math
How I change PremiumVanish Placeholderapi?
depends on what you mean by change
Check in config of premium vanish
U using {premiumvanish_isvanished} placeholder right?
Use change output expansion to change Yes to [V]
Idk if there's any other option available
But I can't find it where it located
Umm ... where it located when I install it?
In expansion folder
But how I change it? It dosen't show in config.yml
Install the expansion and use it's placeholder
I install it, but how to use it?
Refer to wiki in git hub
My brain ... it's hurting
Is there anyother different way to do it?
%changeoutput_equals_{premiumvanish_isvanished}_YES_[V]_&7%
Parse this and check if it works @dry zealot
Umm ... it's dosen't show up [V] when staff goes to vanish
Because you did full CAPS of YES
So yes, it's working now
Thanks
๐
how to use exaclty math round
/papi parse me %math_ROUND(2)_{deluxemenus_meta_SK-STR_DOUBLE_0}%
i need to round it 2 digits after comma
found it
With the 'Server' api on the ecloud: does the %server_online% placeholder mean that the server itself is running or is it count for the amount of people on the server? I'm looking for the placeholder for the latter if so. If anyone could direct me to the correct one then that would be appreciated.
just type /papi parse me %server_online%
Thanks ๐
Hiya im using power ranks and was told I could use placeholder-api to showcase the hearts within the tablist.
Im assuming im to be using the placeholders under "Scoreboardobjectives" but I don't exactly see one for that case.
Also, was wondering if they update in real-time, because it didn't seem like they were with some of the ones I did try out (perhaps I didn't reload the whole server and instead just the plugins which could make a difference).
that's definitely a question for the plugin author
re the last point, no they are not realtime, they only update when the plugin that uses the placeholders updates which is entirely beyond our control
what you want instead of it?
yes = โ
no = โ
that placeholder is editable from plugins/PlaceholderAPI/config.yml but it will edit all placeholders that return yes/no
gui:
placeholders:
tag:
available: '&aโ'
unavailable: '&cโ'
okey ty
Is there a placeholder for /time query gametime?
%world_time_<world>%
%world_timein12_<world>%```
Any tips? Upon server start, or papi reload, I get this invalid CRC;
[PlaceholderAPI] Fetching available expansion information...
java.util.zip.ZipException: invalid entry CRC (expected 0xcacbc2bd but got 0xdd9ee7a6)
(paper 1.18.2-283 and paper 1.17.1-408, java openjdk 17.0.3, expansions: bungee/player/vault)
Tried manually and ecloud re-installing the expansions, same result, even with just any 1 of the 3 expansions.
Hey, I wanted to ask how I can display my luckperms prefix as a placeholder in the tablist
@fleet mauve use the plugin called Tab
can you send me a link?
Having a hard time with configuration? Check out the wiki.
Header/Footer
Per-world / per-server support
Per-group / per-player support
Enable / disable in specified worlds
Nametags (scoreboard team assignment)
Per-world /...
can you do that in the footer?
ok that's cool thank you
np
does this also work with luckperms bungee?
Uh not sure it but you can just copy and paste it and make luckperms bungee
then whenever you change something it changes in every server
so there is no placeholder for luckperm's bungee
I have
so if you give the perms then you can have it global?
FYI in case anyone else has the same issue on Arch. Downgrade zlib to v1.2.11 and restart paper or whatever you have.
(I used: "pacman -U /var/cache/pacman/pkg/zlib-1:1.2.11-5-x86_64.pkg.tar.zst")
does check_updates check for updates related to PAPI or also the expansions?
Hi guys basically i need help getting the list of players from a specific team with a placeholder
Hello, is there a placeholder that returns the nickname of the last player who joined the server?
i am creating a plugin with placeholdersapi but it says Cannot resolve symbol 'PlaceholdersAPI'
because it is PlaceholderAPI
?
no
tried that too same thing
show your built script
you mean the thing it says while compiling?
no, your pom or build.gradle file
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
ty bot
and when does it say this?
where could i upload an image
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
There is
%player_last_join%
In the Player placeholder
when i hover over placeholderapi
Any solutions ?
?
Also can someone please help me
https://prnt.sc/h9QceA6-NFV9 Is it normal for a delay to occur? purpur use 1.17.1
send the link here
the link to the report
Aikar report?
yes
anyone..?
whats the error?
Did you add the dependency
Yeah
Wdym import
example: import java.util.HashMap;
When I type PlaceholderAPI I donโt get any suggestions
What are u using, maven or gradle
Maven
have you reloaded maven?
Wdym reload
All I did was add the dependency and repository in pom.xml and added it as a dependancy in spigot.yml and tried to use it
Same return number
Any solution ?
Heyo everyone o/
Can someone help me solve this error ?
Oh, i cant sent files
[08:17:16 ERROR]:
java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.ConfigurationSection.getKeys(boolean)" because the return value of "me.gabytm.placeholderapi.config.ConfigExpansion.getConfigSection(String)" is null
at me.gabytm.placeholderapi.config.ConfigExpansion.register(ConfigExpansion.java:56) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:172) ~[PlaceholderAPI-2.11.1.jar:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:333) ~[PlaceholderAPI-2.11.1.jar:?]
at me.clip.placeholderapi.util.Futures.lambda$onMainThread$0(Futures.java:46) ~[PlaceholderAPI-2.11.1.jar:?]
at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.18.2.jar:git-Paper-286]
at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[paper-1.18.2.jar:git-Paper-286]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1531) ~[paper-1.18.2.jar:git-Paper-286]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:483) ~[paper-1.18.2.jar:git-Paper-286]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1455) ~[paper-1.18.2.jar:git-Paper-286]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1225) ~[paper-1.18.2.jar:git-Paper-286]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) ~[paper-1.18.2.jar:git-Paper-286]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
ping me pls, if someone knows anything about it
I've added placeholder api to my IntelliJ project, but I can't add it to classpath or import classes from it
would be awesome if you could help me
How do placeholders get updated in holograms? Do the hologram plugins have to physically update the hologram every time the placeholder value changes or would the placeholder value automatically change within the hologram?
the holograms need to update
is there a placeholder to show the player's xp level?
yeah
what is it
thank you:)
btw stupid question
are they called xp or exp
Some use xp and some people use exp
Experience (exp)
ok and last question, is it possible to round up the number so it doesn't have like 10 numbers after the decimal point?
I can't send a screenshot but for example, I have 0.14285715 exp
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload or similar service to upload images/screenshots.
yeah you can
wait a min
ok, btw here is a picture https://imgur.com/a/J1UFF8w
what do I have to change to that to make it work for xp
%math_2:half-up_{player_exp}%
yeah
thank you so much!
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
This is Placeholders.java
are you registering the expansion?
I'm trying to.
This is the main class: https://paste.helpch.at/romixotupi.java
well yeah you need to register the expansion.
new Placeholders().register();```
you might want to also check if PAPI is present and enabled if you haven't added it as a depend
In onEnable() ?
yeah
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
I can't send it
That's the problem
I don't have permission
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/upload to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
Oh ok
So, what should I change?
well rn I'm very confused. vbcz in the code you sent, you're using the correct method
any chance you're using an older plugin version?
ah nvm found it
line 63
remove that
Then it will get fixed?
most likely
yes
btw idk what guide you followed, but the updated one is here https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion
pretty sure you don't even need the register and canRegister methods btw
you will need to override the persist method
and set it to true
@Override
public boolean persist() {
return true; // This is required or else PlaceholderAPI will unregister the Expansion on reload
}```
exact link for an example expansion and explanation here https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-a-plugin-internal-class
yeah
In Placeholders.java
mind sending the code again?
Sorry, I was busy
Please respect the rules, be patient and don't ping staff members!
can you instead of returning null at the end return a custom string? this is for debugging purposes. set it to something like "End"
then try parsing /papi parse me %nyks_world%
yeah this is alright. try parsing it with this change
Yeah, it sends me "not working"
can you try printing identifier and see what it prints when you do/papi parse me /papi parse me %nyks_world%
also maybe read the yellow warnings that IntelliJ gives you as well. They might tell you what is actually going on
Where can I print it?
in console. you can just use System.out.println here or pass in the logger in the constructor
I mean, in which function
I can't print it in onEnable()
the request one
Prints "world"
yeah check the yellow warnings from IJ
There is no yellow warnings
There is just icons like that: https://imgur.com/a/DBDb7DK
I should do all the recommendations, right?
well most likely
It worked
is is possible?
replace inner placeholders %% with {}
lol
help i cant install anything
What is the placeholder for how many users are on a server? I've tried %server_online% with the server ecloud download but it displays as 1 with multiple user's being in the server?
it says no expansion found
Make sure it uploaded correctly.
Do /papi reload
do /papi reload
in console appears this:
If you're gonna paste a log. Do it in hastebin.
Does anyone know a placeholder that can get a list of players in a certain team
Hey i have an problem
Where can i create ticket?
Ok, so
My problem is :
I have my placeholder : %vault_rank% doesnt work.
When i use : /papi register Expansion-Vault.jar ITS WORK !
But when i reload, the expansion disappear and %vault_rank% does not work anymore
The plugin does not save my expansion
.
hi is there an issue with papi ecloud download bungee?
i have downloaded it tons of times and rebooted but it still isn't loading
do you get an error in console?
[16:30:51 INFO]: [PlaceholderAPI] Fetching available expansion information...
[16:30:55 INFO]: Lilspoooky issued server command: /papi reload
[16:30:55 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[16:30:55 INFO]: [PlaceholderAPI] Fetching available expansion information...
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials
[16:30:55 ERROR]: [PlaceholderAPI] failed to load class files of expansions```
how to fix the player exp placeholder, I have 20 levels and the placeholder shows I have that much exp
is that normal?
/papi list neither shows bungee has been added to the expansions.
Expansion-bungee.jar
PAPI-Expansion-Bungee_HEbAVYe.jar
Both also are in "expansions" folder, but do not load.
there seems to be an error with your Essentials expansion which prevents PAPI from loading the rest of the expansions, you may be using and outdated version of the Essentials PAPI expansion with a newer Essentials version or vice-versa, or maybe removed Essentials and forgot to remove the exansion
make sure both are up to date, or if you removed Essentials, go to /plugins/PlaceholderAPI/Expansions and remove the Essentials expansion jar
thank you for the reply. So removing essentials expansion did fix it thanks! But then trying to redownload essentials expansion anew, breaks papi again. Is it that the essentials papi is broken long term now? thanks again for the quick reply and fix
maybe you're using an older version of Essentials then, make sure it's up to date
thank you very much! have a great day.
So sorry to revisit this friend, so i just checked logs and it seems that the logs are being spammed, caused by bungeecordexpansion
https://prnt.sc/fz19SxsOcttS
if you would post the log here trough a paste link, instead of a picture, @tender vapor would tell you what the issue is
not sure if it's actually a user issue
except if it's because of an older version of the Bungee expansion, idk what could cause
considering that the latest update was in 2020, I doubt it's that
hmm, its rather troublesome for my log tracking.
you have multiple bungeecord expansion jars
๐ค
that's why he said barry would tell him the porblem and solution
oh, which should be deleted?
expansion-bungee.jar or papi-expansion-bungee_HEbAVYe.jar
fair
thanks blitz! this seems to have fixed it, now i have now ran into
[18:22:44 WARN]: [PlaceholderAPI] listplayers is attempting to register placeholders via a PlaceholderHook class which is no longer supported!
has there been a replacement for this?
:D
issue resolved, thanks again xD
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
@noble cairn ^
is there a way to change the time zone for server placeholder
%server_time_<SimpleDateFormat>%
Heu i have an problem
I have my placeholder : %vault_rank% doesnt work.
When i use : /papi register Expansion-Vault.jar ITS WORK !
But when i reload, the expansion disappear and %vault_rank% does not work anymore
The plugin does not save my expansion
Hey, my play time doesn't shop up any idea https://cdn.discordapp.com/attachments/716260645271765024/964247389357637762/unknown.png
i installed the PlayerTime from papi
var nickname = "%essentials_nickname%";
function NameTest() {
var nickname_fixed = nickname.replace(/./g, '');
return (nickname_fixed).toString()
}
NameTest()
results in no output.
I tried slice(1), substring(1) etc. but with same results.
reload?
yeah, i reloaded
%playertime_time% %playertime_time_seconds% %playertime_time_minutes% %playertime_time_hours%
Version 1.0.1 Release Notes
Added new placeholders
@twilit smelt
ok
ohh so i have to install a pluging
yes
i already have essentials witch tracks time, is there not a way to use that one?
i already have a lot of plugins and i want to minimize the amount that i have
i installed the thing with /papi ecloud download PlayerTime and reloaded shall that do it? @vagrant moon
yes
ok
@vagrant moon is there a way to make it have spaces and stuff? https://cdn.discordapp.com/attachments/716260645271765024/964288608699842620/unknown.png
%playertime_time_seconds% %playertime_time_minutes% %playertime_time_hours%
is there a way to not show the total of everything, so when it get's to 60 min it goes to 0 and adds 1h? https://cdn.discordapp.com/attachments/716260645271765024/964289353184595978/unknown.png
otherwise only with JS
where do i set that up?
javascript?
What is the placeholder for current server? I've tried %server_online% and other holders but can't find the correct one. Can someone please let me know?
I keep getting boolean responses of yes/no, true/false. I just need the world/server name xD
you can't get the server name with placeholders since PAPI isn't a bungee plugin
Damn
there isn't really any use to it either
I'm just trying to have my tablist display what world the user is in on that server
oh, well for the world you can just use %player_world%
or if your tablist plugin has a placeholder for that directly built-in, you can use it as well
hey any idea how to upload a papi expansion to ecloud?
Hey i have an problem
I have my placeholder : %vault_rank% doesnt work.
When i use : /papi register Expansion-Vault.jar ITS WORK !
But when i reload, the expansion disappear and %vault_rank% does not work anymore
The plugin does not save my expansion
@idle coral
Please respect the rules, be patient and don't ping staff members!
check your console for errors on /papi reload, it could be possible that one of your expansions is broken, which prevents PAPI from loading the rest of the expansions
Is there a way to add a minecraft team placeholder or luck perms group placeholder?
ty, god bless you
Does anyone know why when I put "/papi ecloud download extension"
tells me "Failed to find an expansion named: "
Which host do you use?
my plugin is giving an error where it can't download expansion what do i do?
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
Download it manually then
install the expansion >> put in papi expansion folder in plugins
download it manually ^
do /papi ecloud download vault and /papi reload
that's better than register
It's on their wiki
?? why u using python
Eh it says registration locked in the ecloud website so i can't register
You can dm me a username and email and I'll create the account from the backend.
All other expansion are loaded
did you check the console?
make sure yu don't have 2 vault expansion jars in your Expansions folder
Done
Please respect the rules, be patient and don't ping staff members!
Oops sry
mate, what are you talking about?
๐ฅด
how long does it take for ecloud expansion updates to become available?
1-2 hours iirc
Registration is locked in the ecloud website so how can i register?
get @balmy marten to do it for you
Please respect the rules, be patient and don't ping staff members!
dm me a username and email you'd like and i'll create it on the backend
3rd person today wew
Yeah as kali said takes about 1-2 hours for our cloudflare to cache it and for it to showup via commands
ah i see thanks
That's what I did xD
then download it with the command
Hey! how do I get placeholder api extension values from other servers across a bungeecord network?
For example, if I have to show total playtime across all servers
have the plugin connect to a mySQL database
otherwise I don't think you can fetch placeholders from another server into others
uh? how
find a plugin that says it can connect to a mySQL database or bungee/velocity supported
u will also need a database that your hosting service can provide for you
I know it is possible using papi itself
I just dont remember how I did it
Hello, can you help me ๐
https://paste.helpch.at/umojobaxuz.md
the placheholders fill my logs
i try to download 2 version of statistic-expansion
/leaderheads validate %statistic_player_kills%
/leaderheads enable %statistic_player_kills%
i love you bro
no homo ๐
Got an issue with the Statz expansion: https://paste.helpch.at/tusumugeki.sql
Decompiled it and looked at it
this.VERSION = this.getClass().getPackage().getImplementationVersion();
This is where the version is, somehow returning null. idk how to fix
hello guys
Why does a JS file detect another file?
I have two files that change the name of the time (minutes, seconds and other) JS lptime changes the names in luckperms, but the file time_played changes the name from placeholders %statistic_time_played:hours%
but it detects lines with lptime, why?
help pls๐ฅบ
solved the problem by renaming the js files, although they were different, but now it helped
?help
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait
If someone wants to help me I would appreciate it this is my problem
won't let me install expansions
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
say failed to find an expansion named
LeviDarck issued server command: /papi ecloud download Player
failed to find an expansion named: Player
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
If you can not respond with what I am asking I can no longer help you
aaa
send your latest.logs man whats so hard about that
it's okay??
nope
I don't know how to explain it because it's not an error as such it just doesn't let me download the expansions I use the command /papi ecloud download Player
and it says that an expansion called: Player could not be found, even though that's what it's called
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
download it manually
and place it inside ur expansions folder within placeholderapi plugins folder
then reload the server
Thank you very much it worked for me
help me pless
Someone could help me please
??
Hello, sorry to be bothering im having an issue where PAPI wont load player module correctly or i think so but im quite a bit inexperienced on this matter, how can i fix it?
where is the 1.18.2 plugin
what's the name of this mysterious plugin you're looking for?
update the server expansion
placeholder api
ok thx
@thin totem btw PlaceholderExpansion has its own log methods you could use.
Thanks
Please respect the rules, be patient and don't ping staff members!
Hello guys
Good afternoon
Is it possible to make a
Region of worldguard checks a player placeholder ? I mean i want a region that only let(example) %mmocore_level% of player >= 10 to enter/move/interact in that region
ooh I hope so, sounds like a good idea
I feel like that is kind of out of the scope of a placeholder's job. I think you could find / make a plugin that has PAPI requirements (kind of like DM has but outside of a menu environment) where different actions could take place based on the results from the player.
Haven't been able to find any yet sadly
yeah i failed in my search of something like this
but
i found
a plugin
ConditionalEvents
i think its possible to do with it but im still trying to figure how to do it
yeah the only problem with that is... that idk how to create plugins yet
Please respect the rules, be patient and don't ping staff members!
Haven't used ConditionalEvents but I know it's been around since like 2017.
Well, look
example1:
type: custom
custom_event_data:
event: dt.ajneb97.api.TurretPlaceEvent
player_variable: getPlayer()
variables_to_capture:
- '%turret_world%;getLocation().getWorld().getName()'
conditions:
- '%turret_world% equals spawn'
actions:
default:
- 'cancel_event: true'
- 'message: &cYou can''t place turrets on this world.'
- 'playsound: %player%;NOTE_PLING;10;0.1'
you can use custom events