#placeholder-api
1 messages ยท Page 96 of 1
@tender vapor
sended
Can you confirm it's happening again after adding the expansions back?
yes
Hello, im the owner of the server that bygio is talking about. i can explain it more @trim mist
We have removed the expansions, then the issues went away. We added them back and it occurred again
add them one by one
okay
the only one from us that use runnables is vault
I'm so confused. None of those even have it.
it might be broken glare
all plugins updated.
You might have to try the expansion 1- by -1.
ill test 1by1
And be just java.lang.Runnable
i can confirm we also did not modify any sort of code, i'm a developer my self.
how did i get a high level up on my role?
xp from messages
okay, we removed all extensions But when we restart and do /papi reload. I says there are 6 extensions successfully registered. So just going through all plugins now
@vivid sparrow it was crazy crates
@hallow sapphire
Please respect the rules, be patient and don't ping staff members!
contact bad bones
ok
what is the placeholder for askyblock to know island placement from the island value?
?
i couldnt find it there
Then there probably isn't one.
Hey, is there a placeholder for player count that doesn't include vanished players?
thanks
if you are using supervanish I think it has one
@vivid sparrow Unknown expansion.
np
it's not supervanish
%essentials_safe_online% doesn't work
make sure you have the exansion
Oh right yeah, sorry
I wasnt talking with you ByGio
look at plugins that use papi api (check plugin.yml for depend or soft-depend)
you can make a plugin to do that for you
huh
Idk
I made a scoreboard
And they said its your end
The devs of the scoreboard plugin
idk what you are talking about & dont pm me please
๐ Its what they tolkd me
All PlaceholderAPI does it serve placeholders that plugins create via the data inside their stuff. It's weird that you are in this situation but I really do not seeing anything inside of PAPI occuring there other than serving the placeholders.
Meaning there's no "magical fix". We have 22,000+ servers running this and it just seems to have singled you out.
who use [precision:<number>] into math expansion
I like delete all numbers digits after the .
[precision:0] ?
but... %math_1+1[precision:0]%? or what?
Where can i find VotePartys place holders?
It is not on Papi
/papi ecloud info voteparty
@trim mist I don't see that channel
@turbid tide Sorry to disturb but it gives error: Name cannot be empty: https://paste.helpch.at/womuyejezo.cs
Hey whats a good scoreboard plugin that accepts PAPI
featherboard but its premium
any others you know of?
KiteBoard
so are they all going to be paid for plugins?
We'll free ones usually don't have the features you're looking for ๐คทโโ๏ธ
PlaceholderAPI likes to hang on shutdown :P
Got a log to show?
is there a way to format how the time placeholders are displayed for luckperms? I'm using %luckperms_group_expiry_time_<groupname>%, but I don't need seconds to be displayed, for example
does anyone know why im getting this https://imgur.com/a/zlTM3JH
(i might just be being stupid) and sorry if this is the wrong channel i just assumed since it was papi
You will probably get more help in #development
Hey,
I have a Problem with an Statistic Placeholder.
I want to display the Playtime of the specific player in the Scoreboard.
It worked perfectly the last times, but a few days ago, it just freezes to count up.
I take the Placeholder %statistic_time_played%
Any help? Would be nice ;D
I am using the build in system where I can create custom scripts, I want to know if I can have multiple method inside one script and the select which method I want to call?
Does Papi work for anyone else?
it works for me
i just had that happen but it fixed itself when i did /papi reload
well ive been having it for a few days now and it doesnt fix itself xd
dm me if anyone knows how โค๏ธ
Unicode symbols doesnt work, I just get random weird characters?
I am making custom javascript scripts.
And everytime I try to use a unicode symbol, it appears correctly in the editor, but not ingame.
i cant find any placeholders for voteparty that work. does anyone have one?
Hey, I am trying to user place holders in a plugin but it does not seem to be working.
I used this code:
System.out.println("PlaceholderAPI: " + PlaceholderAPI.setPlaceholders(p, "[%player_name%]"));
But it outputs this: PlaceholderAPI: [%player_name%]
I am soft depending it, it is loaded on the server, and there are no errors
Did you have Player expansion installed?
No, what is that?
It's required to parse the player placeholders.
/papi ecloud download Player
/papi reload
OK, I added it and seems to be working, thanks!
Yup!
Hey, This may sound like a stupid question but im new to making a minecraft server
How could I get the value of another players balance
Im currently using this placeholder to get my own balance: %vault_eco_balance_commas%
How could I get someone elses in the same comma format
you can use the parse other placeholder
%parseother_{USERNAME}_vault_eco_balance_commas%
Ty
no problem
his pleasure ๐
Hello, I have this error using PlaceholderAPI and Factions 3 https://paste.helpch.at/sisatosoko.sql . I want to use %factions_role% in chat, I have the cloud extension downloaded. Thanks for any help.
how do i see what placeholders are in expansions?
or the wiki!
So you cannot check them ingame?
You can
What command?
/papi ecloud placeholders <expansion>
Thanks!
Just note that not all expansions list their placeholders through that command
Okay, will note that behind my ear ๐
Hello, I have this error using PlaceholderAPI and Factions 3 https://paste.helpch.at/sisatosoko.sql . I want to use %factions_role% in chat, other placeholders are working. I have the cloud extension downloaded. Even the papi parse is not working. Thanks for any help.
You're using an incorrect version of either the expansion or the plugin (factions 3)
I have the latest version of both
Any idea what this error would be from? https://pastebin.com/Frc9sbYb
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
I'm nocturnal, and I just use Dark Reader. Lol
Dark reader messes some stuff up from time to time
If it messes something up, I just brighten the page and it usually works. The only pages ive gotten issues with are pages made with Wix
What expansions are you running?
Let me take a ss
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
What action did you do to get that error? I assume it was on startup
Yeah, when my server started
Could you try disabling all the expansions and seeing if the error still occurs
is there a way to display the server u are on in something like a scoreboard by calling the bungeeconfig using a placeholder?
You can use %server_name% (you can change the value inside the papi config)
I'll try, but give me a min haha, installing xenforo
tyt
@brisk coral dosnt that only allow u to define 1 server name tho?
Papi isn't bungee compatible, so all you need
what he means is you go to the papi settings for each server because you have a different one in every server
o coruse u will xD
Hey,
I have a Problem with an Statistic Placeholder.
I want to display the Playtime of the specific player in the Scoreboard.
It worked perfectly the last times, but a few days ago, it just freezes to count up.
I take the Placeholder %statistic_time_played%
Any help? Would be nice ;D
Don't we all, ask away
?ecloudblock
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.
Talk to your hosting an company and ask them if they can whitelist ecloud I guess
My hosting company - Windows 10, my pc xd
Check your firewall then and whitelist the ecloud
Does anyone here know how to setup Pterodactyl panel? (PM me)
Q: how does PAPI handles an array of strings in replacement of a placeholder?
if I want to return a list of strings for one placeholder, what is the prefered/standard return for PAPI?
^
Yes, that I know. I decided to just join strings with delimiter.
[PlaceholderAPI] File: generator-progress-bar.js for javascript placeholder: generator-progress-bar is empty
Anyone know why this error is being generated?
Please tag me if you have the answer.
Probably because the File: generator-progress-bar.js for javascript placeholder: generator-progress-bar is empty
@austere hawk
Just I just delete it then @mint fable
What?
i don't understand what the bot told me i need help
- broadcast %player_name% just voted! Only %voteparty_votes_required_party% more votes
?spigot
Spigot Account Linking
To get support for a premium plugin owned by Clip or Glare you will need to verify your spigot account using =spigot in the #bot-commands channel. After you have successfully linked your spigot account you should ask your question in the coresponding channel for that plugin. If you have already linked your account and want to update your roles, run this command =spigot check.
@austere hawk ^
Hey there. Having browsing the list of available placeholders, I can't find one available for "Facing" IE North, South, East... NW and so on. Was wondering if this is a thing? ๐ Thanks
@balmy marten did you messed up with the perms?
I looked at this and compass and so on dont seem to provide a 'facing' one
try
%player_direction%
Well it appears I completely missed that one... Thanks for helping with a silly question
np
Hello, so I am having issues with my placeholders on Featherboard and was wondering if anyone could assist me?
Elaborate issues
So basically they dont work
I have all the necessary plugins for it, but they just wont show the values
does parsing the placeholder using papi parse work?
Hello, so I am having issues with my placeholders on Featherboard and was wondering if anyone could assist me?
FeatherBoard doesn't support PlaceholderAPI directly, it uses MvdwPlaceholderAPI for placeholders instead. Their placeholders are different from PAPI. To use the one from PAPI, you can use the placeholder {placeholderapi_<placeholder>}
does parsing the placeholder using papi parse work?
@brisk coral How do you mean? I tried /papi ecloud download FactionsUUID but that doesnt work
/papi parse me %placeholder%, also what Tang said
but you can also find on your plugins' documentation if they support MvdwPAPI or not and if yes then use their {placeholders} on FB
I will give it a try quickly
/papi parse me %placeholder%, also what Tang said
@brisk coral it says 2 in chat when I type /papi parse me %factionsuuid_player_kills% and it just says %factionsuuid_faction% after i type /papi parse me %factionsuuid_faction%
I assume wrong placeholder then
it's %factionsuuid_faction_name%
so if you want to use it in FeatherBoard, use {placeholderapi_factionsuuid_faction_name}
and what would the kills one be? {placeholderapi_factionsuuid_player_kills?}
yup
Perfect! thank you very much โค๏ธ
๐
Is there a placeholder that gets Player input? Like lets say %Player_input%?
Nope
There's a plugin which reads chat input and converts it to a variable, but I forgot what it's called
Would you know a way to make the following work:
I want to set up a command in DeluxeMenu and when I click it, it asks me to input a username?
Like lets say I want to give my friend Admin for an hour, I would have the command set up, the only thing I'd need to do is input the player name?
You did?
Could anyone tell me why im getting this error?
Theexpansion cloud is not enabled!
I have the cloud enabled in the config
try /papi enablecloud
x)
Now then
Any idea why %vault_rank% doesnt show my player rank? And only shows %vault_rank%?
/papi ecloud download Vault
/papi reload
where do you want it to show ?
In chat
have DeluxeChat set up
Imma try restarting the server
Nope still nothing =/
ah you're using DeluxeChat
Could it have anything to do with me getting an Internal Error every time I reload papi?
you have to link your spigot profile to discord to get verified and then have support with it
Could it have anything to do with me getting an Internal Error every time I reload papi?
probably
if it's an error with PAPI then you can ask here
can you send the error ?
=paste
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
=paste
@austere hawk, I can't see you! As you're using a browser and are marked offline, I can't fetch your memeber details. Please mark yourself online or use the desktop app!
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
click the blue text
Oh
then it will open you a page where you paste all your text, save with a button on the top right of the page and send the url here
O
latest version is 2.10.5
๐
How make a menu that can display the duration of the temporary permission granted to a player(
%luckperms_inherited_expiry_time_essentials.keepinv%) doesn't work tho , please help
Do you have the expansion?
what is that?
%luckperms_expiry_time_<permission>%
%luckperms_expiry_time_<permission>%
@turbid tide that didnt work too
also expansion /papi ecloud download LuckPerms /papi reload
no problem
now the countdown seems to be not moving, althougt it decreases everytime I re open
Thanks !
oh my god you guys are awesome
How about if they dont have the permission , I want the active item to be greenwool and inactive to be redwool
view_requirement:
permission:
type: has permission
permission: permission.node
priority: 1
``` for the green wool
and only priority: 2 for the other one
Cool!
okay thanks
Hi, i recently added Iridium SkyBlock on my server and when i try to put the Iridium PlaceHolders in FeatherBoard nothing happens.
how are you using them? you need to use {placeholderapi_placeholder}
also placeholder without %%
&6&l* &fLevel: &6&l{iridiumskyblock_island_level}'
thats the config on fb
i didnt do nothing, just added the plugins: iridium skyblock, featherboard and placeholder api
{placeholderapi_<yourplaceholder>}
so it would be {placeholderapi_iridiumskyblock_island_level}
do i need to add the placeholder somewhere in plugin files?
well, in the scoreboard file
ye but this placeholder isn't available on placeholderapi's wiki page
Doesn't matter
the placeholder is %iridiumskyblock_island_level%
i tried with %%
since IridiumSkyBlock doesn't have direct support for PAPI
you have to use {placeholderapi_<placeholdername>}
so in the end it will look like this {placeholderapi_iridiumskyblock_island_level}
I've explained it a bit there https://discordapp.com/channels/164280494874165248/573429521554866178/699581874388860969
still not working
do /papi ecloud download IridiumSkyBlock
and /papi reload
yes
it just showed a 0
IridiumSkyBlock does have support for MVdWPlaceholderAPI
so {iridiumskyblock_island_level} should work
do you have MVdWPlaceholderAPI ?
nvm, you should else FB can't load...
I don't see why it doesn't work
what are your MVdWPlaceholderAPI, PlaceholderAPI, IridiumSkyBlock and FeatherBoard versions ?
last/latest isn't a number
Iridium Skyblock [1.8-1.15] 2.3.6
feather board 4.20.1
try to update to 4.25.0
i cant
why ?
ok
but why can't you reset your password ?
forgot all the mails
.....
resetting my pc and i got the random passwords
so i need to buy another one?
ok, thank you for your time ๐
can anyone give me a hand setting up placeholderapi holograms with KOTH
How would you link your plugin to placeholder api?
check wiki
A resource that allows information from your favorite plugins be shown practically anywhere!
โข Spigot
โข Wiki
โข Placeholder-List
โข GitHub
โข eCloud
@wet creek
Thanks
So, any plugin can be linked to placeholderapi?
or does it need to be approved?
only external expansions need to be approved to be downloadable from the ecloud
Hey so %server_name% where is this being grabbed from??
Papi config
oh ty
Hello,
I would like to add compatibility with all placeholder to my plugin. But I don't know how to do it. I added the dependency on the plugin.yml file, I added it in the library of my plugin, I checked if there was indeed PlaceholderAPI when starting the plugin. But I can't replace all% something_things% in my plugin.
use PlaceholderAPI.setPlaceholder(Player, String) to set the placeholders
you are not setting the placeholders to the correct strings
clip lives :oshit:
yes corona hasnt got me yet
I can't find a placeholder for "time played on network" when having a bungeecord network. Is this not a thing or am I just not seeing it?
papi is not bungee
ok, thanks
why p.getPlayer
On my scoreboard it does not change. example %player_name% it remains to display %player_name%
and you probably want to replace the placeholders before set them to the scoreboard
just p
Didn't see that he was using that in the method smh
I'm really sorry i just started development
Also make a list instead
By changing the p.getPlayer() by p it still works but I have no change %player_name% remains displayed on the scoreboard.
https://paste.helpch.at/udebipuvic.java
you dont change the actual string
No the placeholder does not change the %player_name%
- use ChatColor.transalteAlternativeChatColors('&', string); (or what is the method name)
- Where do you set the text to scoreboard? I don't have much experience with scoreboards but I don't see any set method
In the config.yml file
I mean in code
Caused by: java.lang.ClassNotFoundException: me.blackvein.quests.Quests contact the author of your quests plugin
Line1 line2 etc... contains the text
@vivid sparrow is me i'm starting minecraft dev
Hi,
I have a little problem with placeholderAPI.
If I want to download something with ecloud the plugin says
- 'No cloud expansions are available at this time.'
What can I do to fix this? I am using newest version papi on spigot 1.12.2
?ecloudblock
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.
Is there a way to enable this? I have full access to the server cuz its a dedicated
hi, is it possible that the placeholderapi isn't working with the extension for PowerRanks
?
It'd be the other way around since the expansion could be broken
@brisk coral Unknown expansion.
the console loaded my expansions succesfully so i don't know whats wrong?
yes
Then what's the issue?
scoreboard revision
parse the placeholders using /papi parse me %placeholder%
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Typically if the placeholder and parsing but not showing on the scoreboard, it's an issue with the scoreboard.
The placeholder doesn't work..
Check that you're using the correct placeholder
Any console errors ?
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
Sorry, no idea. Looks fine from what I can see.
Looks like the author of that expansion is pixar02.
yes?
Might try to find him and reach out to him. Have no idea. Expansions aren't directly tied to PlaceholderAPI. 3rd party authors create them and upload them.
In this case, I have never heard of that author.
Would be neat if the author was required to be in the discord tho, Glare
That'd probably be too much work.
I mean or atleast their discord on the expansions somewhere
That'd be fair.
so this will never work for me?
That's kind of an excessive assumption.
=aste
@austere hawk, I can't see you! As you're using a browser and are marked offline, I can't fetch your memeber details. Please mark yourself online or use the desktop app!
=paste
@austere hawk, I can't see you! As you're using a browser and are marked offline, I can't fetch your memeber details. Please mark yourself online or use the desktop app!
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
I am using placeholder api for the guilds name
and when theres no guild it displays nothing instead of the configed msg
Just got a message "No cloud expansions are available right now" Need an update? or.
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.
Well downloading the files manually for each isnt the logical choice, the ecloud was just working fine a bit ago.
Everything is up on our end, so it's most likely getting blocked in your firewall/host
Let me restart the server and see, as everything wasnt top notch a bit ago with ecloud.
Also make sure your on the latest papi 2.10.5
papi ecloud works, Somehow the server glitched and just needed a restart, Also while I'm here, I got a console spam issue I'll post in autosell.
Alrighty
can some1 help me
on varaibles
it doesnt work
like %vault_eco_balance%
wont work
/papi ecloud download Vault
Hello, after the server restart, the expansion does not load (placeholder is visible in chat) and I need to type /papi reload to make it work. Can anyone help me please?
"The expansion" like theres only one
For Factions3, i updated the one from ecloud for old version of factions
why does this not work?
Do you have the expansion? @balmy jolt
I have the expansion in /plugins/PlaceholderAPI/expansions with other expansions, that are working. If i type /papi reload then it all works
michuk, I assume this is an old expansion?
I updated it from version from 2017 by decompiling, fixing and then compiling
Hermmy that's not an answer to my question..
mickhuk, check if the persist option is set to true
@brisk coral i do
And have you reloaded papi?
yes?
Also any console errors, and is the killstats plugin loaded properly
none
And the second part of the question
ok next question?
and is the killstats plugin loaded properly
/papi parse me %placeholder%
replace the %placeholder% with one of the killstats one
Stop pinging, and show me what it returns
it just says %streak%
oml
now where did you get %streak% from?
that's the list ^
and %streak% isn't on there
ik still not working
so type /papi parse me %killstats_streak% and see what it says
i didnt memorize the varable
also check if it has any errors in console
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
how to verify expansion
wdym
?
but what does it say when you run the command
send over a startup log
@jolly dew I'd say putting it on github is a good place to start
Wait, is it your plugin?
You should add it into the plugin instead of having it externally
kitpvp
@jolly dew If you add it to your plugin that means you don't need to push updates to the ecloud, and players won't have to download it either
@mint fable Thank you
Managed to fix it by changing the identifier. Thank you very much
Theres not time to wait! Ask your question @austere hawk!
"Simply means you don't have MCore Factions installed." https://github.com/PlaceholderAPI/PlaceholderAPI/issues/60
factionsuuid (and it's forks) placeholders are built into the plugin btw.
whats the reason i keep on seeing this in the chat when i try to download a plugin to placeholder
https://prnt.sc/s0k23p
download what placeholder?
i need deluxetags placeholder to download but it doesnt work
are you running this? /papi ecloud download DeluxeTags
emily
Yes?
yes emily but i got the same messages as above
What command do I use to download mcorefactions?
/papi ecloud download Factions
then /papi reload
what version is your PlaceholderAPI? @austere hawk
last version
yes
works for me
Yes?
if i do that it keeps giving error
what error
[14:35:18 INFO]: AlberTnT issued server command: /papi reload
[14:35:18 ERROR]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.factions.MCoreFactionsExpansion
[14:35:18 ERROR]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] com/massivecraft/factions/RelationParticipator
[14:35:18 ERROR]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] Failed to init placeholder expansion from class: me.m0dex.factionsmap.FactionsMap
[14:35:18 ERROR]: [me.clip.placeholderapi.PlaceholderAPIPlugin] [PlaceholderAPI] com/massivecraft/factions/RelationParticipator
i download 2.10.4 and now i can download vault en deluxetags but no others
i will try again
I can always just directly send you the expansion as well
well now deluxetags worked but i cant fix my scoreboard
lol how do you not know- you're welcome
well i tried it again and it worked
hello there, is there a way to get placeholders values through the API?
/papi parse me %placeholder%
through the Java API
you'll probably get more help in #development
you'll probably get more help in #development
i'll try there tho
I'm confused, are you trying to make your own placeholder?
no, i'm trying to pull all the placeholders that are available with placeholder api with my own plugin
that didn't make sense, honestly
I know that using BSkyBlock you can use these placeholders to make a leaderboard: %level_[gamemode]-island-level% %level_[gamemode]-island-level-top-value-#% %level_[gamemode]-island-level-top-name-#%
is there a way to make it work with aSkyBlock as well?
Hey
How can I get the amount of XP a player has?
Thanks
%player_exp%
%player_exp_to_level%```
%player_exp% gives a really strange 0.x value
%player_total_exp% seems to be what I'm looking for, but it can give some anomalies when parsed.
I have 420 levels
oh
oh
I have 727858 XP, and that's what appears in essentials /xp, and %player_total_xp%
However, another player has 198494 XP in /xp, but %player_total_xp% tells them they have 815986 XP
total_xp returns the maximum xp a player had I think
Well, I've just given them 1 XP using essentials xp command
actually %player_total_exp% works just fine for me wtf
and now %player_total_xp% shows 198495
I had a wrong value myself until I gave myself XP
then it updated
It is
I'm saying it wrong here
But I'm using it correctly ingame
Is it possible to run commands when the GUI is opened?
like click on an item and it runs commands? if so it is
Just when the GUI is opened
Cause I could give and take XP from the user
Then it would probably display the correct value
open_commands:
- 'tralala'
- 'tralala2'
Thanks
Would be good if those placeholders could be fixed too ๐
Temporary solution tho
I have 727858 XP, and that's what appears in essentials /xp, and %player_total_xp%
However, another player has 198494 XP in /xp, but %player_total_xp% tells them they have 815986 XP
Seems to me it's adding them up
nvm the math doesn't work smh
But as soon as it updates, it shows the correct value
Use %player_exp% for the exp you currently have
Nope
That one returns the total of what you had iirc
?imgur
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Well pretty sure those placeholders just uses a method from spigot api
aBoo, that method is probably broken, or so someone said, not sure if it was you
If it was me? Why would it be me?
There's %player_current_exp%, its probably whay u want
Not returning anything
If it was me? Why would it be me?
What?
Was replying to this
not sure if it was you
Yea not sure if it was you who said it's broken or someone else
Ah, well i don't really know. Just remember that there's two placeholder one for total of what you had and another for what you currently have
I know that using BSkyBlock you can use these placeholders to make a leaderboard:
%level_[gamemode]-island-level% %level_[gamemode]-island-level-top-value-#% %level_[gamemode]-island-level-top-name-#%
is there a way to make it work with aSkyBlock as well?
or is the only way to do that using LeaderHeads? ๐ฆ
I guess only with LH ยฏ_(ใ)_/ยฏ
or make your own placeholders
that too
With PlaceholderAPI, is it possible to have it where if (for example) a %is_muted% placeholder is "false", then it doesn't show up at all? I want to make it so that if a player is muted it will show but if they're not muted, there's no "muted: false". is there a way to do that?
you can do that using Javascript Placeholders
what placeholder are you using? the essentials one?
here is an example:
do: /papi ecloud download JavaScript and /papi reload. After that go to plugins/PlaceholdersAPI/javascript_placeholders.yml and add: ismuted: file: ismuted.js After that do /jsexpansion reload, then go to plugins/PlaceholderAPI/javascripts and reload the folder. Now a new file should appear called ismuted.js. Open the file and add: ```
function isMuted() {
if ("%essentials_is_muted%" == "yes")
return "yes";
return ""
}
isMuted();```. After you saved the file do /jsexpansion reload and then use the placeholder %javascript_ismuted%. @split rock
y blitz
not again please
function isMuted()
{
return "%essentials_is_muted%" == "yes" ? "yes" : "";
}
isMuted();
nooooooooooooooo
Frosty will you be kind enough and explain that to me? or at least point me to a link where I can find an explanation?
oh NVM just understood it
this is the if %essentials_is_muted% == "yes"
thanks a lot
you need to add quotes around placeholder btw
smh
Hello, everytime I start my server this error appears (version paper 1.15.2)
[21:19:25 ERROR]: [PlaceholderAPI] Failed to init placeholder expansion from class: com.extendedclip.papi.expansion.factions.MCoreFactionsExpansion
[21:19:25 ERROR]: [PlaceholderAPI] com/massivecraft/factions/RelationParticipator
[21:19:25 INFO]: [PlaceholderAPI] Successfully registered expansion: player
[21:19:25 INFO]: [PlaceholderAPI] Successfully registered expansion: rainbowcolor
[21:19:25 INFO]: [PlaceholderAPI] Successfully registered expansion: server
[21:19:25 WARN]: [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.2-b107 which is not a depend, softdepend or loadbefore of this plugin.
/papi ecloud download Factions
/papi reload
show the full error, @austere hawk and in a paste please.
?paste
i aam using HolographicDisplay and placeholdersAPI but placeholders do not work
Prison:
location: Spawn, -22.831, 121.200, 1.489
lines:
- '&d&lPrison'
- '&lONLINE'
- '%player_name%'
^^
@dire scroll
@dire scroll already tried
Yes
then I guess hd doesn't support placeholderapi?? idk?
Anyone got experience adding their own custom place holders to PAPI?
Currently the placeholder from my plugin when on the sign has the correct value but the incorrect name attached
hey
an admin can look this pls ? https://github.com/PlaceholderAPI/PlaceholderAPI/issues/291
does PAPI work on bungee? like can ya jus install it as a plugin?
not yet
Link me to a config and I'll check to see if it's valid.
=yaml <paste link>
You can utilize that site with your config and it'll tell you where the issue is.
I mean you'd need to put in your config.
Link me to a config and I'll check to see if it's valid.
=yaml <paste link>
hmmm
'
missing wut :V
You don't have a ' at the beginning.
Yup!
ill restart it again xD
I want to run a command that gives a kit to all online players. Is there a placeholder to do this?
I don't think placeholders run commands
Similar to running a command using the placeholder %player% but instead of capturing the player that ran it executing it for (madeup example) %onlineplayers% run by administrator.
hmmm
Yeah I don't think there's anything like that
Uh no idea
I am a little new to developing and I was trying to add my own placeholder using the example one on the wiki. However, when using the /parse command, the placeholders don't work at all and the test message I put in the code below doesn't run either.
@Override
public String onRequest(OfflinePlayer offlinePlayer, String params) {
if (params.equals("test")) { return "success"; }
if (offlinePlayer == null || !offlinePlayer.isOnline()) { return "player is not online"; }
Bukkit.broadcastMessage("THIS IS A TEST");
Player player = offlinePlayer.getPlayer();
switch (params) {
case "onejump":
return "test";
default:
return null;
}
}
Here is my onEnable() too
@Override
public void onEnable() {
// Small check to make sure that PlaceholderAPI is installed
if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null){
new OneJumpRank().register();
}
}
send the class
which class?
your expansion class
also you need to provide your plugin
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
instead of onRequest()?
yes
hmm, wait
let me double check
if you have one or the other I believe that the log will tell you
it will yell at ye
speaking of logs
can I get a startup log?
also you should be returning true
wait
I think you're combining the wrong part of the wiki
you should be following the "Internal class"
which means your canRegister should always be true
if it's not your plugin and you don't have access to it
if it's your own plugin, you should be doing internal class
๐
Ok, new problem, when I load it in the server, It always says its not registered, when it obviously should be enabled at all times.
send log?
Don't use leaked plugins.
๐จ A user has been banished from the island for using wrongly distributed software, the island has spoken.
does anyone know if there's any placeholder for jobs reborn for the jobs' prefix? I can't find any here :/ https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#jobs-reborn
is it the short name by chance?
you can do it with javascript
I don't know much about jobs, but those are all the placeholders provided
but I don't think there is one done by them
function isMiner()
{
return "%jobsr_user_isin_Miner%" == "True" ? "&aM" : "";
}
isMiner();```
@cobalt cradle
wait what?
javascript for Miner
you will have to do it for every job
&aM is what it returns if he is miner
else it returns nothing
can i just use papi with holographic displays, or do i need an expension? it isnt working
You need HolographicExtension (plugin)
right, tyty
any permission to block the /papi help?
I denied placeholderapi.* but I can still see the help
I don't think so, it doesn't do anything besides show the main menu
You could add that.. not much but still, the less the players see the better
you can use PluginHiderPlus or something simillar and just block the command
I mean, it's not complicated to add and then you give us the choice ๐
if we don't want it (the most probable case), we hide it, otherwise we show it, I don't see any case where I would like to enable it for my players if they can't run any of those commands
- for me, .* = false means this plugins should not run anything, event a help or a even a version
Yeah, really depends on the plugin and how it handles permissions
yes I know papi is a big plugin so I don't know how you handle permissions :/
Anyhow we're in the middle of rewriting papi for v3 so the permission node might make an appearance
make an issue pls cube
Depending how we choose to run it
it is not the most important thing don't worry
could there be a way to create placeholders in game in v3?
ik it's rly random but i can see people using it
You'd need to explain how'd it work
/papi createplaceholder (placeholderWithout%) (placeholder)
/papi updateplaceholder (placeholderWithout%) (placeholder)
so for example /papi createPlaceholder lastUpdate 1/1/20
and then every time you update you do /papi updateplaceholder lastUpdate 1/2/20 and in all places where %lastUpdate% is used its updated
basically like creating variables
Oh so yeah that can actually already be done
via expansions
We actually made an expansion that did it as well, but we just ran out of time to continue it
it didn't really work last time I used lol
Yeah we know, hence why its not on the cloud
Hey so I read the documentation on how to integrate PAPI into my plugin, but since my plugin is for bungeecord how would I be able to implement it? since I can't have PAPI on the bungeecord, and I need to have the placeholders show on the servers to use PAPI?
Do I create an addon or something?
It's OS if anyone wants to help maintain it
I would but I'm not a dev =/
Has anyone been able to get the ProVotes placeholders to work ?
Plugin PlaceholderAPI v2.10.5 generated an exception while executing task 61
java.lang.NullPointerException: null
at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager.lambda$null$3(ExpansionCloudManager.java:186) ~[?:?]
at java.util.HashMap.forEach(Unknown Source) ~[?:1.8.0_251]
at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager.lambda$fetch$4(ExpansionCloudManager.java:182) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot.jar:git-Spigot-596221b-9a1fc1e]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [spigot.jar:git-Spigot-596221b-9a1fc1e]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_251]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_251]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
How can i fix this?
@magic raven
Looks like your server can't connect to our API,
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 barry ๐
Exist %server_status% or a placeholder to view if the server is online or offline?
%server_online%
That is to view the number of online players on ur server
server_up
I can't get the XConomy PlaceholderAPI extension as it says it doesn't exist.
that is because it doesn't
The listed placeholders don't seem to work, but let me try.
@brisk coral doesn't working
What are you trying to do Andrew?
Exist %server_status% or a placeholder to view if the server is online or offline?
Hrm, idk then.
Define "doesn't work"
He doesn't show me if the server is online or offline
try the pinger placeholders
%pinger_isonline_testplugins.com:25565%
change testplugins.com to your server ip
and 25565 to your server port
Does PlaceholderAPI 2.10.5 support version 1.15.2?
Yes
Exist a placeholder to view server icon?
Yeah so PAPI on 1.12.2 sometimes will just hang on shutdown entirely
[09:30:08] [Server thread/INFO]: [PlaceholderAPI] Disabling PlaceholderAPI v2.10.5
I'll be back in like 45, and I'll respond to you on that Jake.
cheers just ping me pls ๐
@magic raven Why tho..
To view in the status command ๐
You're trying to view a img inside mc, not how that works
hello,i found a problem could someone teach me how to do?when i use %player_item_in_hand% in scoreboard,"pink_wool"became""wool"and so on,something lost.but it WAS good.what happened? ๐ฆ
slab,wood,planks,wools are all get a mistake
even though i replace 2.10.5 with 2.10.4 ,the mistake still alive
im using 1.12.2 ๐ฆ
@leaden fern Do you have any information such as logs I could look at to try and identify why it's doing this? On shutdown, the plugin turns off the cloud, unregisters all the expansions, and cancels any tasks that were running.
So I am trying to do /papi parse NAME %placeholder% with another player that is online and it says that it couldn't find that player
PAPI: 2.10.5
SV: 1.12.2
Thats the only log entry, it just hangs when shutting down right on the PAPI entry sometimes
Also if that player does /papi parse me %placeholder% it says failed to find player: me
Jake, can I get the output of /papi list?
I need a placeholder to check if a player is online or not, something like %player_online% that gives "yes" or "no", But I want to check another player, Is there anyway??
%parseother_{username}_{placeholder_without_percent_signs}%
@trim mist shoot me a friend request
@leaden fern
Please respect the rules, be patient and don't ping staff members!
shoot me a friend request
jake, why do you want Waffle King to shoot you ? why would you want to be shot ? ||ok I know, my jokes always suck x) ||
yea that was not a good joke ๐ฆ
just updated server to 1.15.2 and PlaceholderAPI to 2.10.5. %player_level% no longer works?
What's it say?
I'm using it in commands to change stuff like name prefixes etc. Just literally says %player_name%. Worked back on 1.12
I have the newest player expansion thing
These commands are called through deluxemenus if that makes a difference
That means it's not seeing the expansion if it's literally printing out the placeholder.
Could try removing it and redownloading it.
it recognises %player_name% though. I'm on the newest dev version of deluxemenus, maybe that's broken something
will continue to investigate
Only thing I think that's messed up on the latest version is args in some random cases. Not sure, I never worked on that part of the plugin.
i can /papi parse it fine. so it's something else
Ahh
is there a count up placeholder
how would i make a java script like a count up?
Hi! Guys, ani can help me with math placeholders?
Just ask and someone might be able to help!
Mmmm I get this error Too many numbers or operator, if i user numbers of get with placeholders works
it is understood?
Hey. my %deluxetags_tag% isnt working in DeluxeChat. How do I fix that?
Never mind. I fixed it by download the DeluxeTags papi extension
&6Welcome, {PLAYER}&6!
&6Type &c/help&6 for a list of commands.
&6Type &c/list&6 to see who else is online.
&6Players online:&c {ONLINE} &6- World time:&c {WORLDTIME12}
&c%player_gamemode%
why does this not work, im lost
i did installed essentials papi
link?
Did you download a plugin that lets essentials use papi?
the extension
essentials doesn't have support for papi
=pl ChatInjector
^
does that work with motd?
doesn't look like it
probably get a better plugin
like frozen join
=plugin frozen join
:>
use fj for motd, 10/10
ChatInjector doesn't work with motd, atleast I doubt it does
Hey im trying to add the gamemode of the player as prefix with luckperms papi but it just says:
%player_gamemode%Rik___: hi
"name": "huts",
"prefixes": [
{
"prefix": "%player_gamemode%",
"priority": 1
}
]
}```
i don't think luckperms supports papi
Expansions add placeholders FOR the plugin into PAPI to be used by OTHER plugins
ah
they don't give LuckPerms magical perms to parse papi placeholders everywhere
Then I had as idea to put it in the from essentials
I see
but
you could get another chat plugin ๐คทโโ๏ธ
Could not pass event AsyncPlayerChatEvent to EssentialsChat v2.17.2.43
chatinjector doesnt work on 1.15?
it wont load
doesn't seem like it
the review on chatinjector: Works great! I needed to add placeholdersapi placeholders into essentialsX chat.
It works on 1.15
I dont?
why not?
Well you need it
it's required

