#placeholder-api
1 messages Β· Page 85 of 1
#1 <placeholder for the name> : <placeholder for the score>
#2 <placeholder for the name> : <placeholder for the score>
etc..
i dont understand
you have 2 placeholders right ?
%leaderheads_value_<statistic>_<time>_<rank>%```
those
and
just read the page I sent you
<statistic>: the name of your statistic, but without all the non-alphanumerical characters. For example, %statistic_walk_one_cm% becomes statisticwalkonecm and {stat_walk_cm} becomes statwalkcm.
<time>: which timetype of the leaderboard to show. Options: alltime, daily, weekly, monthly, yearly.
<rank>: which rank in the leaderboard to show. Must be a number.
ok ty
/hd create asd %leaderheads_name_statisticsecondsplayed_alltime_1% - %leaderheads_value_statisticsecondsplayed_alltime_1%
it shows me - after creating
did you download the statistic expansion in placeholderapi ?
it should be supported by leaderheads
you still have to download the expansion
and did you enable the %statistic_second_played% placeholder in Leaderheads ?
/leaderheads enable %statistic_second_played%
An error occured. This problem has been logged. Sorry for the inconvenience.
yes
anything in the console ?
wait
Hey, for the statistic placeholder, what is the Iron Golem parameter for mobkill in 1.12.2?
iron_golem, irongolem, villagergolem, villager_golem not working.
@elder stump I thought it was villager_golem for 1.12
iirc iron golem doesn't work there.
I have a bunch of papi expansions in my server's folder
but they arent a thing in game
after downloading them, you need to reload papi /papi reload
and keep in mind that some expansions depends on some plugins. So make sure you have them.
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
k 1 sec
ok
ill dm u
u has dms disabled
and it breaks my disc when I paste it here
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
update your LuckPerms
Well idk, you get the latest version which is v5
or you have another choice which is downloading an older version of the expansion
/papi ecloud download luckperms 4.1
/papi reload
Probably your host? PAPI doesn't delete expansions.
π
I wanna use "dev.espi.protectionstones" package on script.js through javascript placeholders expansion. I would like to use the class from this package. How can I do it, if it can be done at all?
I've looked into that before but had no luck. I still think its possible but have no idea how.
I'm trying to do the internal class support for PlaceholderAPI with a softdepend for PlaceholderAPI, and for some reason it's throwing up a NoClassDefFoundError for the me.clip.placeholderapi.expansion.PlaceholderExpansion when the server starts up. Its not happening for me, but for one of my plugin users. My plugin checks onece the server is fully loaded if the PlaceholderAPI plugin exsits in the plugin manager and then creates a new Expansion class that extends PlaceholerExpansion then calls the register() method on this. But for some reason, even though it shoudn't be constructing the class becuase the PlaceholderAPI plugin is not intalled, it's still throwing the NoClassDefFoundError. Thoughts? Did I miss something obvious? Did something change between pre 2.10.4 and 2.10.4 version?
If you're using what's on the wiki, you should be fine. Is it only a single user? Can you reproduce it yourself?
Only difference from the wiki is that I'm checking if the PlaceholderAPI plugin exists after the server's fully loaded (i.e scheduling it in a delayed task), so it registers teh placeholder after all the plugins load.
Can't reproduce it myself
Even if you remove PAPI, you don't get it?
No, they say they don't have PAPI installed and I certainly don't. But mine doesn't choke on the PlaceholderExpansion class on load, whereas his does. His is trying to load my plugin right from the get go, whereas mine is waiting until after vault is loaded. Which is strange in itself since the my plugin softdepends on vault.
Seems to be something on his end.
So, I guess, does the internal example supposed to work properly if PlaceholderAPI is not available?
It should, yeah. If you only create the instance of the class after confirm PAPI is loaded.
Right, so it has this class Expansion which extends PlaceholderExpansion. It's defined and has the imports, but should not get constructed until after the PlaceholderAPI plugin check in the pluginmanager.
// load placeholder API (disable integration if missing)
if (getServer().getPluginManager().getPlugin("PlaceholderAPI") != null) {
logger.log(WARNING, "Enabling PlaceholderAPI support");
expansion = new Expansion(this);
expansion.register();
}
}```
which doesn't occur until after all the plugins load
because it's delayed...
// register other plugin dependencies
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(plugin, this::registerExpansion);
}```
wonder if creating the public static for the Expansion class and assigning it as null is the problem.
not sure how else to make the API accessible.
maybe that's the issue.
yes, so not storing expansion in any variable.
Also checking is enabled vs null
Suppose it's not needed, except to unregisger.
I could try that way and not use expansion as Expansion which is the class that extends PlaceholderExpansion, but just use a boolean flag.
But would have no object to reference.
I mean my expansion class is called PlaceholderAPI, I should probabaly change that
Does it even need to be unregistered onDisable?
So if it's enabled, just create instance and register
Nope
At least I don't believe so
Maybe thats the problem.
By creating a static Expansion = null in my plugin it's instantiating that class that depends on PlaceholderExpansion.
Why's it static?
Well, I'm so accustomed to plugin apis that when I use them, they usually return the class. For example when using Vault, I get returned an Economy, Permission and Chat objects, and with others similar. I suppose before I was not storing PlaceholderAPI, but PlaceholderAPIPlugin in that object.
I guess I'll have to revisit how I have it setup in my other plugins as well.
Typically I don't even touch the expansion class besides registering it
hello, how can I display when other player was online? I'm trying to make staff gui which would display when staff member was last seen
Wasn't there a plugin named stafflist where it shows
ok, will give that a try, thanks for all the help
yeah there was, it's outdated tho
Yup!
so is there any way to achieve it with papi?
use the OtherPlayer expansion
it doesn't have last seen placeholder :/
placeholder which shows if player is currently online would be good enough too...
what should I put instead of {player_online} ?
?
it is in {} brackets so I understand that I should replace it with something?
No
okay
You put exactly that
it works, thanks!
One more question, placeholder %player_online% shows either yes or no, is it possible to change or format these values?
Probabaly can make a JavaScript placeholder for it.
I tried to make one but it just shows an blank line when I parse it for an offline player
Hey, I need some help with featherboard and papi!
I'm trying to show a progress bar of the rankup placeholder: %rankup_percent_done_formatted%
How would I put that into featherboards?
{placeholderapi_rankup_percent_done}
Yeah but I want to put it in a progress bar
Rather than a percentage/number
@brisk coral ^
Nope. I don't use FB.
Oh okay, does any of the staff use FB?
I have been using the older version of placeholder javascript.
My old javascript is organized like this.
expression: '""! == "%worldguard_region_name%"'
type: boolean
true_result: '[%worldguard_region_name%]'
false_result: ''
title:
expression: '""! == "%vault_prefix%"'
type: boolean
true_result: '[%vault_prefix%]'
false_result: '' ```
I wrote a message like that in the latest version javascript and I get a warning message on the console.
Can someone know what's wrong with my javascript?
anyone good at java script?
@austere hawk that's the old way of making JS placeholders.
Check the wiki for the new way https://github.com/PlaceholderAPI/Javascript-Expansion/wiki
Hello here im trying to call out a player home name in deluxemenu using placeholderapi and im trying to understand the way i could perform this stuff. So every player will see the home they define with a on condition menu
So i manage to see how ma y player home are define and use a placeholder math to calcule it and if the number is higher than the number display these button if not not
So the issus here is mainly to call out the player home name for display purpose using essentials
Cause we can use /home 1 for the first defined home so there is a universal command for every player
Do you know a way i could know essentials first sethome of a chooseb player?
Like %essentials_homename_1%
Hey there,
So you want a placeholder to get the player's x home name?
Error: https://paste.helpch.at/pekolegiho.bash its when i start the server
@MCXBPE#0563 Use the progress bar expansion amd just put the placeholder in with {} instead of %%
Just reboot. Happens from time to time.
Okay then π€· dude left
ah
But that's just a wild guess since it's trying to access an ecloud method
Sounds probable.
Hey, for the statistic placeholder, what is the Iron Golem parameter for mobkill in 1.12.2?
iron_golem, irongolem, villagergolem, villager_golem not working.
Unfortunately, iron golems aren't supported there.
Why not?
Idk, spigot doesn't have them for that?
As i remember, i tried that before for someone and didn't work.
Weird. Cause iron golems existed in 1.12.2
Well its about they didn't exist.
What's the placeholder, %statistic_kill_entity:IRON_GOLEM%?
statistic v1.7.0, use_ instead of :
Oop I have the wrong version then haha, cause 1.7.0 is working for me.
Yup, that's weird. I guess they don't.
Yeah.
You'd think on the wiki it'd say what version they started tracking.
I guess they could use a 3rd party tracker.
Well if they aren't tracking it since iron golems has been added, then I don't think they will on newer version.
Of course they can, statistic expansion is for basic statistics from spigot/bukkit's api
Whats the mvdw placeholder for placeholderapi extensions
is it {placeholderapi_%placeholder%}
yes I believe it is that @mental night
Cheers kyle :P
np
%tokenenchant_token% ->34k
Yet doesnt output it like that
it outputs it like 34,000
Any reason why
As it's formatted.
try adding _num
after _token
as it'll be formatted without the _num.
@mental night
so tokenenchant_token_num
yeah plus the other stuff
returns with the same as tokenenchant_token
{placeholderapi_<PAPI placeholder without <> and %%>} to use papi on mvdwpapi
%mvdw_<mvdw placeholder without <> and {}>% to use mvdw on papi
There isn't one for that i believe, check the wiki
If there's not, then ask the author to ads one or make ur own using js
and just remove commas
Wait
@bronze bison
Re explain that
in english
simpleton langauge for me
language
You can for 1. either ask the author to add a placeholder without the comma.
or use JavaScript feature in PlaceholderAPI
by making your own js which replaces the ,
Thats pretty clear?
If you didn't found a placeholder for that (one that returns 32k instead of 32,000)
Then do one of the below
- Ask the author to add one.
- Make one using JavaScript expansion.
never used the expansion so can't help you to be fair.
I don't even have mc on my desktop
Turn this to JS, should be easy
https://github.com/PlaceholderAPI/Vault-Expansion/blob/master/src/main/java/com/extendedclip/papi/expansion/vault/VaultEcoHook.java#L135-L157
I'm on bed and dont feel like writing js on phone π
Ugh ok... 1m
lol
Aboo you should just let Sellinq do it or he'll never learn.
he can always report here with his errors.
Wut
A black hole ill never return from
Check vk's placeholder fo know how to remove the ,
Then change the string to a number and copy the conditions from the link i sent, remove java stuff and ure done π
its on the community wiki
No one's iq is under whatever, u make it like that.
U got google, and i kinda explained what ull do
aboodyy
legit still makes no sense
it makes sense to you as you know whats ur saying
I got 0 utter clue
As I have no coding background
or skirpt
or anything
You should've try at least...
var d = parseInt("WRITE THE PLACEHOLDER".replace(",", ""));
function format() {
if (d < 1000) {
return d;
}
if (d < 1000000) {
return (d / 1000) + "k";
}
if (d < 1000000000) {
return (d / 1000000) + "M";
}
if (d < 1000000000000) {
return (d / 1000000000) + "B";
}
if (d < 1000000000000000) {
return (d / 1000000000000) + "T";
}
if (d < 1000000000000000000) {
return (d / 1000000000000000) + "Q";
}
return d;
}
format();
Don't forget to WRITE THE PLACEHOLDER on the first like :p
@mental night ^
It's just something that happens from time to time if your host blocks the connection.
Should be able to reboot and be fine.
This happens when I start the server
Correct
And does that prevent using /papi ecloud download?
If your host blocks it, yes. You can disable the eCloud in the config and manually download them from the website.
Hi, I'm having some trouble with Papi working with VoteParty. I have voteparty installed on my server, but i can't download the placeholders with /papi ecloud download VoteParty
The latest voteparty has it inbuilt
ohhhh okay. sounds good. thank you!
Also, #spigot-linking for future support with that plugin π
hi, I'm using sponge and for some reason placeholderapi doesnt work well. I have a localhost server and its working there but on the hosted one no. I've been checking plugins for days but I can't find the reason of this problem. Can anyone help me? The server has plugins and mods.
This is support for bukkit PlaceholderAPI, not sponge.
probably, check their site
we're not affiliated with sponge's placeholderapi in any way
okey thank you
Just has the same name π
We'll be supporting Sponge in Q2-4 2020 π
release papi3 when papi reach 300k
how far off is it?
270k iirc
Inb4 botted and removed
Total Downloads: 270,145
lol
plz someone help that know coding really good ):
What do you need help with? @meager cedar
i did a script and its not working
here
every 3 minutes:
broadcast "&6-----------------------------------------------------------------------------------------------------------------
&8&l[&4&lSh&c&lop&6&lke&e&lep&f&ler&8&l] &cDon't froget to join our discord! https://discord.gg//rnP2ZE
&6------------------------------------------------------------------------------------------------------------------------------" and its not working
We don't deal with skripts here, and that isnt coding and it never will be
@meager cedar ^
sorry
Can someone help me? π For the last 4 days i have been trying to figure out a way to return a players date and time with js placeholders. This is my last try:
function convertTime() {
return time.toTimeString();
}
convertTime();```
i tried other ways but i can't get it π¦
Show the input and how you want the output to look
is that a thing? toTimeString() ?
hello, im trying to add the VoteParty expansion to papi but it says it cannot be found
and when i download it directly it says theres an error
well the input is just a timestamp i think π will paste it
Head over to #spigot-linking @autumn pecan
and i just want it to return like HH:mm
24 hours
let me connect and just paste what %player_time% returns
it just returns a bunch of numbers which i assumed that are a time stamp
Kurt_ you need to confirm that you have bought VoteParty on Spigot
my spigot got linked i guess
When have you purchased VoteParty?
97291563 this is one of the result but it changes very fast
can i output count of player completed achievements in placeholderapi? like 34/165
You can
how?
How are you tracking the achievements completed?
Don't think it's posible
Sad
Iβll look into coding a expansion for it @austere hawk
If I canβt do it potentially @primal hearth can
@warm oriole A plugin which tracks that probably already exists so could just use that π€·
Ye just saying itβs a expansion that would just count which achievements youβve done
@brisk coral
yeye
you can'y do that with PAPI
so I'd need a chat plugin
Any simple ones you'd recommend?
DeluxeChat
CIFYChat
Songoda
DeluxeChat has been updated recently
1.8.8
1.12.2
1.13.2
1.14.4
1.15
v1.15.0 - Latest
v1.15.0 - Latest
v1.15.0 - Latest
v1.15.0 - Latest
v1.15.0 - Latest
o
It not being listed in the tested minecraft versions doesn't mean it's not supported.
Yeah
All the good ones cost
yep
You won't get a long term product for free that does everything that you want.
I see
Guess I'll drop a few dollars
Thanks for the help @mental night @brisk coral @junior musk
np
can someone explain how I'm meant to format animations?
I'm trying to set up this example: <typewriter cursor=_ reverse=true pause=10>This text will be typed</typewriter>
I don't know how to combine it with %animations_<type>_YourTextHere%
still can't figure it out :/
I've tried a billion combinations lmao
it's probably something obvious and I'm stupid
%animations_Typewritter?cursor=_,reverse=true,pause=10_<yourtext>%
the <> on the end, does that stay or go?
remove them
idk
back to the papi Voteparty issue
I still can't get the animation to work @junior musk
"%animations_Typewritter?cursor=_,reverse=true,pause=10_yourtext%" & where I'm putting it is compatible as one of my previous attempts displayed as "animation error" or whatever
so this should work? %animations_Typewriter?cursor=_,reverse=true,pause=10_yourtext% ?
yep
Hi !
// create a variable and name it wantever you want like this
// and use the placeholder you want, i'm using this one
var haspermission = "%player_has_permission_permission.test%";
// create a function with the name you want
function permission() {
// if the haspermission variable that we created before return yes (true boolean)
// the js placeholder will return what we set in the return down
if (haspermission === "yes") {
return "&aYou have the Test permission!";
}
// if the haspermission varibale wasnt true it will return what we set down
else {
return "&cYou don't have the Test permission!";
}
}
// by this we are calling the function to run
permission();
I have see this on the page "JavaScript Expansion Scripts" but I want to detect a group (not haspermissions but hasgroup) I use LuckPerms (if you need to know this) and sorry for my bad english I'm French ^^ So who can help me ?
My question is : How to do?
Or Can I replace haspermission by hasgroup? (idk π’ )
There's a LuckPerms placeholder for that? https://helpch.at/placeholders#luckperms
I mean you can just check the permission again, since it's group.<group>
well that was an example, you don't need a js for that either.
how do you use the pinger placeholderapi? liek what does it return.... I'm tyring to have it ping to check if a bungee server is online then do somehting.a..... pls halp
i'm trying to have a menu where is it shows the online players and if the bungee sevrer is online on bukkit java code
I would assume %pinger_isonline_testplugins.com:25565% returns a true or false value
@rapid ginkgo
requirements:
vanila_online:
type: string equals ignorecase
input: '%pinger_isonline_testplugins.com:25565%'
output: '&aOnline'```
That will display '&aOnline' on the item in the menu if its online
oh i would have no idea for a different menu system
Depends if it support placeholderapi if the plugin does you can use that placeholder
Hello, i'm using TAB plugin with Luckperms and PAPI, the placeholders Luckperms doesn't work ? (I'm updating my server to 1.15 version)
https://paste.helpch.at/pecudedijo.sql
Can you help me ?
Update your LuckPerms plugin.
Can someone ELI5 what PlaceholderAPI is? What are "Placeholders"?
The description does not specify what this actually is - it just expects you already know.
PlaceholderAPI is a plugin/library that allows servers the use of placeholders from a wide range of your favorite plugins collectively. Essentials, Factions, LuckPerms, Vault, AutoSell, GriefPrevention, etc.... You can display information from your favorite plugins in any plugin that supports PlaceholderAPI. See a full list of placeholders and supported plugins below. Through the use of the Expansion cloud, PAPI effectively and efficiently allows you to pick and choose which placeholders you want to install. The Expansion cloud allows you to receive new placeholders, updates to existing placeholder expansions, and much more directly from your server without updating the actual plugin. With over 100,000 downloads, PlaceholderAPI is a must have for a server of any type or scale.
TL;DR
Turns strings into another strings
Is it to insert variables into strings?
Turns variables into strings
So essentially, it's a way of sending data between plugins. E.g using stats from a minigame plugin and showing them on a scoreboard, or in chat, etc.
A placeholder/variable is a text that gets replaced with another text based on the viewer (the player).
So for example %player_name%, would get replaced with my name aBooDyy but for you, it would be your name Mitch
e.g. put %factions_name% as a prefix in your chat plugin, papi will swap it out for the appropriate value (via the factions expansion)
@trim mist yOu FoRgOt ClEaR cHaT
Ok, i just have refresh Placeholders with /papi ecloud download LuckPerms command thanks
Can I do something like %math_%server_online%-1%?
It doesn't work, I'm asking if something like that would work.
Let me look 1s
%math_{server_online}_-1%
try that
idk it will work
wait
no
ignore that
wait
yes try it
i dont use it much xD
/papi ecloud download Math
/papi reload
No sadly.
um, now it just says 5000..
oh I'm stupid, this is the test server lol, thank you!!
yeah, staff people
ahh so all works :D
why would u want to remove the player count by 1
out of curiosity
Ah, of course. So I'm using DiscordSRV to have a chatlog and it's nice to see how many players are online in it. I modified the leave and join messages to show the playercount like [53/90].
So a leave message would look like: Geeeri left the server [34/90]
The join message works perfectly with the %server_online% placeholder but the other one has a lower priority or update time or something and so when someone leaves the %server_online% will work like they are still online.
I'm sure the devs could fix it, but it's easier to just patch it in such way for now xD. Thanks for your time and help!
Maybe open an issue on drsv github and ask for these placeholders to be added to the plugin itself?
Yeah, I will do that once I have more time, atm I don't care that much. I'm weird for having these ideas, doubt more people are affected.
I merged @bronze bison
o ty π
idk? did i bump the version?
ok cool
Can you add to the wiki?
clip boutta break the ecloud at the same time you push that change live just to mess with you.
lmao

Boutta drop DeluxeClearChat on spigot
noice :p
of?
did u update it on the ecloud?
Ah, well we do all that when u make it live?
ye
I'm getting totals
Yes
in console
u sure its the new one ? https://img.aboodyy.net/20.01.16_01-31.png
well thats from my pr description
it merged my pr?? https://img.aboodyy.net/20.01.16_01-33.png
i have no idea what I'm doing with this
okay
can you send the wiki part over?
I'll add it in this readme
this is it if you havent gotten it yet http://aboodyy.net/expansions/CheckItem-Expansion.jar
I got it working
the placeholder is same as the other one just add amount_ for the amount
Lol I didnβt do it
uploaded
seems like my commits disappeared?
yea weird :p
it just doesn't show the merge
the code is there but no commits.
and it shows my start for hdbid
yea
probably why I could push
well whatever, the code is there so yeah all good
@tight surge we updated checkitem to include aboodyy's amount placeholder
What does it do?
returns the amount of items a player has instead of a yes or no
o
Yea
you can sell all the stone in your inventory with 1 click
and it would look nice too
because you can also show exactly how much the user will get
yea
and this is the person who wanted it https://github.com/PlaceholderAPI/CheckItem-Expansion/issues/5
Oh, ty π
Gg fellas
That was an emotional rollercoaster
Which plugin?
Run =spigot check in #bot-commands
Mind doing what I said smh..
FiNe Frozty
o jk i cant
i have Dchat on a different spigot acct but magic bot only allows one discord acct to be linked to 1 spigot acct
i can prove i own it if that's an issue π
@brisk coral if you have a solution to the above issue, let me know ^^ otherwise i can pm clip to see if he can do lisence transfer to my current spigot acct
@sacred bronze you know itβs against Spigot rules to have two accounts unless authorized to?
I'm aware. The one is literally only used for delixechat bc I haven't gotten it transferred. It's not used in any forum posts, or anything at all
Successfully linked that account, please note they will need to run =spigot check before any roles are given!
Go link ur other account now
Cool you should have #deluxechat now
brilliant
hey where to get papi for bungeecord?
Doesn't exist yet
This gets the total players on your bungee servers (from bungee's config) as far as I know.
And it has a default interval of 30 seconds, you can change that on papi's config.
@limber ice Unknown expansion.
%bungee_<servername>% total currently online of that one server```
%bungee_<servername>%
I keep forgetting this discord server removes _
?
it's all servers.
wym
you use \ in front of the message to prevent it from getting removed
@limber ice
_example bro_
Any way to get the number of players within a WorldGuard region?
my sever you can type placeholders with _ and it has no issues
also the Autorank server I help on allows %bungee_<servername>% without removing _
yoooooo
so basically right
agent 14 here is trying to use titlemanager to show a placeholder with placeholderapi
yet
its not working
yes i know incredible right?
So how can I get it to work
^
as you likely either
A. Don't have the plugin required.
B. Don't have the expansion required.
C. Don't have either required.
i legit
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
you gave me {}
Good luck man someone else can help you.
Is <group> an input?
yeah
thats the issue
problem solved there you go.
https://discordapp.com/channels/164280494874165248/573429521554866178/667088093752459266
I still have an issue it seems.
It shows up as wi1helm_ has left the server. [24.000/60]
Hi so I want a Hearts placeholder for my scoreboard and I'm using %player_health%, is there any way with Javascript I can divide the parsed placeholder by 2?
So I can get the hearts and not health points?
thank you so much
Hopefully that's the correct format, haven't used it in a while
will try
I will check it out, ty!!
May u give me placeholders for top kills e.g.
@austere hawk what plugin?
Idk.. if it's possible - give me a plugin and placeholders
@hollow hawk Unknown expansion.
May you give me a link because it shows that it is unsupported or I am looking on the wrong place
%statistic_player_kills%
I can't find the plugin
That placeholder just returns the amount of kills a player has.
You need a leaderboard plugin to display top anything. Like Leaderheads
Is it necessary to have statistic papi so the leaderheads work
Yes
LeaderHeads works with all papi placeholders
LeaderHeads is a premium plugin. I think they have a step by step wiki you can use to create the placeholder leaderboard you need.
I am not very good with all these things but I've seen it somewhere else and I think that I'll success π
Best of luck. #general-plugins if you need assistance
Thank you π
Cool
Yeah itβs cool

@final shadow is that a list of plugins on your server ...lol
Stfu
might want to break down and get deluxechat
Might want to break down and eat those url cookies
my bad
url cookies have no calories
yes, placeholderAPI is in top list that is cool
Bruh if thatβs not an accomplishment from not knowing java and only having the perseverance and patience to learn by trial and error idk what is
Shows anyone can do it
yes anyone can, just need to believe in themselves
my plugin's are now just taking off for people to download
@final shadow Add a message placeholder to dchat.
π
any eta for when the ecloud will be back up?
Why can't I download the FactionsUUID ecloud package?
What? I just downloaded Factions.
I downloaded the factions package, definitely not offline. What I am saying is that FactionsUUID doesn't seem to exist anymore?
Itβs built-in iirc ^
Yeah
If the command itself isn't there and NO DOWNLOAD COMMAND instead is shown, then it means, that the plugin actually has the placeholders hard-coded into them and doesn't require a manual download of any expansion.
Hmmmm weird because, I'm having the same problem with relation colors. Says no download but doesn't seem to work...
that isn't how you parse a relational placeholder, its /papi parserel Player1 Player2 %placeholder%
Alright because I was trying to add the color to the name tags and none of them work.
Problem doesn't seem to be on PAPI's side so I'll move to general plugins.
Depends if your nametag plugin supports relational placeholders.
Could I just make a javascript placeholder?
Would that bypass the whole compatibility thing going on.
No, it won't work if your name tag plugin doesn't support relational placeholders.
Great, apparently I payed 11 euros for a plugin that doesn't support relational placeholders kms.
Fun times.
Ask the plugin's author to add support for that?
I'm sorry but we can't do anything.
A guy already asked that back in March.
I know, of course.
Well shit.
That's a bummer.
Author has to do it.
Nothing to do with us as it's their choice and problem for not adding support for it.
Hey @turbid tide,
I've been looking into the player time thing, but unfortunately there isn't any method for getting the player's time (in SpigotAPI).
However, its possible by using the player's IP to get where he is and get his time using an external API, but that wouldn't be done in JS, I'll make an expansion for that whenever I can π (Not sure when tho)
What will V3 change? Or is that unknown?
Hey can someone help me with putting a plceholder into a scoreboard? I have tried this, but it just says "%bungee_total%" and not the total amount of players... code:
public void playerJoin(PlayerJoinEvent event){
Player player = event.getPlayer();
ScoreboardManager manager = Bukkit.getScoreboardManager();
Scoreboard scoreboard = manager.getNewScoreboard();
Objective objective = scoreboard.registerNewObjective("Hub", "dummy");
objective.setDisplaySlot(DisplaySlot.SIDEBAR);
objective.setDisplayName(ChatColor.YELLOW + "BurstMC Hub");
String total = PlaceholderAPI.setBracketPlaceholders(player, "%bungee_total%");
String kitpvp = PlaceholderAPI.setBracketPlaceholders(player, "%bungee_kitpvp%");
Score score = objective.getScore(ChatColor.GOLD + "Total: " + ChatColor.AQUA + total);
Score score2 = objective.getScore(ChatColor.RED + "KitPvp: " + ChatColor.AQUA + kitpvp + " / 450");
score.setScore(2);
score2.setScore(1);
for (Player online : Bukkit.getOnlinePlayers()){
online.setScoreboard(scoreboard);
}
}```
=paste
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
@rapid ginkgo I think you should be using PlaceholderAPI#setPlaceholders instead of setBracketPlaceholders, also this is more of a #development question.
Hey so when I combine %ezrankspro_rankprefix% and %vault_rankprefix% only vault works
As in the donator prefix works but the A-Z rank doesn't show up
That screenshot should help explain
I'm almost certain it has something to do with permissions.
do you think it's the weights?
What permissions does that Jails group have?
essentials kit, warp, nick, kittycannon,nick color,group.god (To inherit god) playervaults, plots
chatformat, animatednames
any ezranks permission?
No
I thought it would still read from the A-Z as it doesn't delete their A-Z rank when they buy a donator rank
should I set donator lower than A-Z?
umm
From what I can see it should work. I'm missing something
ezranks.rank.<A-Z> is applied to each one
prefix: '&8[&a&lA&8]'
that's A in ezrankspro
which normally works
should I set a chatformat for A-Z and add the prefix manually?
but I just don't see how this can't work
Me neither. I basically have the same setup and it works fine
Yes they work fine.
Other than my layout is a little different. I use %vault_prefix% instead of %vault_rankprefix% but they return the same thing
When I do /ru while in the Jails rank it says no current ranks available to rank up to
but without Jails rank it works
like just default A group
so it basically removes their ezranks.rank permission?
Would seem so
It makes no sense
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
rankups.yml
config.yml
OH
FIXED
wtf
in the config.yml
check_primary_group_for_available_rankup: false
π€¦ββοΈ
I had it set to true
Please tell me that wasn't true
so I set it to false and it worked
oof
π€¦
Thanks - well your help made the chat formats work though
as they were the wrong colour
Happy to help. Even if I missed the obvious
π I wish there was a rate staff
Would just get abused
Great
Yeah. Don't think I've ever touched the
check_primary_group_for_available_rankup:
I think it was the old owner
as they had donator ranks going through as permissions not groups
same with staff
I see
Any way to get the number of players within a WorldGuard region?
don't think there is something for that.
Nope
@primal hearth make a expansion for it
Would have to be something custom
@fervent jackal what version of WorldGuard?
I'll work on making a expansion potentially for it sometime today.
WorldGuard 6.2.2
Alright! will tag you here once it's made.
Ty, good luck!
/hd create asd #1 %leaderheads_name_statisticsecondsplayed_alltime_1% - %leaderheads_value_statisticsecondsplayed_alltime_1%
it shows me #1 -
@untold comet all fixed?
@austere hawk did you download the expansion plus holographicdisplay expansion
What expansion? Yes I've downloaded holographicdisplay expansion
Yes I did
What version of LeaderHeads?
The latest but now I see that it shows an error in console
17.01 11:02:53 [Server] Server thread/WARN [LeaderHeadsRevamped] Invalid statistic statisticsecondsplayed
Oh right. Before you made the hologram did you make a sign for this leaderboard or use /leaderheads enable <placeholder>
indeed @mental night it is
Always good
Do:
/leaderheads enable %statistic_seconds_played%
@untold comet did you use deluxe chat to format urs as I canβt get mine to work with essentials
That should enable the leaderboard to track seconds played as well as create a .yml file for the stat in the leaderheads folder.
LeaderHeads has a pretty good wiki you can use. The link for it can be found on their spigot page.
@mental night What is it that's not working with essentials?
Thanks
I recommend DChat @mental night
you can have permission based chat formats and hover messages
it just is more customisable
If only it had a message placeholder smh @final shadow
Hey is there anyway to make a text say "N/A" or "None" if there is no output from a placeholder?
You could probabaly make a JavaScript placehoder to override it.
That's too big brain for me
mk
Kyle, that doesn't really help him.
I think we have some examples here, Derps.
https://www.spigotmc.org/wiki/placeholderapi-javascript-expansion-scripts/
The home of Spigot a high performance, no lag customized CraftBukkit Minecraft server API, and BungeeCord, the cloud server proxy.
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
I mean that's up to you. I just know that's causing the issues with PlaceholderAPI.
i am not sure but do you have the luckperms expansion installed?
Yup. He needs to update the plugin / expansion.
^
update luckperms?
Yup
Should.
ah ok
Idk, read their update logs.
If you are upgrading from v4 to v5 read the wiki first
no
He probably is.
Alrighty, then just leave the error and don't do anything.
papi ecloud download luckperms 4.1
papi reload
You just said you weren't going to do that.
because wiki is stupid
Lmao
if ur upgrading from v4 to v5 then backup ur LP folder and export ur permissions data with /lp export <filename>
Look
thats basically all u need to do
then import the stuff back in
always read wikis and update logs
They have clearly stated that if you upgrade from v4 to v5 you have to follow some simple steps, we aren't responsible of any problems created by you if you refuse to follow their wiki, we are just telling you how to fix the issue with PlaceholderAPI
It's up to you if you want to accept our help or not.
Schematic? Woah almost had to sound that out...
schematic?
Idk apparently it's a big word π
Please use a paste service to share configs, errors, code and long logs.
β’ HelpChat Paste
You have a plugin called PlayerTags throwing errors.
That's Charlies plugin ree
Yup
@cerulean lantern I recommend using his support discord to get help with it
Hi, I'm trying to make if a placeholder of for example this %vault_rank% says default, do I want to make him say something else, how can I do it?
example:
%vault_rank% - default
to
%vault_rank% - User
Javascript placeholder
i did not understand
Use a javascript placeholder to change the outputs
that where is it?
You can see them explained on the placeholderapi wiki
ok
A resource that allows information from your favorite plugins be shown practically anywhere!
β’ Spigot
β’ Wiki
β’ Placeholder-List
β’ GitHub
β’ eCloud
?statistic
I couldn't find anything for: statistic
?statistics
I couldn't find anything for: statistics
#bot-commands and the command is -papi
There's multiple pages of it
On the ecloud
./hd create asd %leaderheads_name_statisticsecondsplayed_alltime_1% - %leaderheads_value_statisticsecondsplayed_alltime_1%
works
but
/hd create asd %leaderheads_name_statistictimeplayed_alltime_1% - %leaderheads_value_statistictimeplayed_alltime_1%
doesn't
i think that i understand what the problem is
/papi parse me %vault_eco_top_player_1% prints "Economy username cannot be null" followed by a stack trace in my console.
How can I fix this, i'm trying to make a deluxemenus gui. When I try to open the gui with the placeholders in, it also prints that error in console & nothing opens
http://prntscr.com/qpfgw6 after doing this it again shows -
help xd
@austere hawk did you remember to enable the stat using
/leaderheads enable %statistic_time_played% ?
Hey SIF11
Hello
@hollow hawk yes yes i did it before almost 2 minutes and it works great
thank you a lot
: )
@austere hawk can you try this one please? https://aboodyy.net/expansions/PAPI-Expansion-Vault.jar
I've PR to fix that but not sure if this jar is updated
yeah you should ;P
Other people experience that too
and some custom plugins aswell that do balance top give the same error
Oh, ok then will do when i got on my pc
kk
Hey, anybody used %math_<math expression>%?
Yeah
How do I parse variables in math, Like this: %math_%balance%*3%
who knows the statistic for money ?
But it's not working
oh, Thank you, I'll try
Did you also download the PAPI math expansion
Yes, I did in cloud
@austere hawk use vault eco
Hello, when will placeholder-api support Luckperms v5?
Time to make a deluxemenus Baltop π
