#placeholder-api
1 messages · Page 77 of 1
if you type /papi reload does your expansion show up
or is this in your plugin directly?
is in my inner class
switch to onRequest(OfflinePlayer, String)
ok let me try that
I'm trying to use PAPI with my kitpvp plugin and it will show the values on the side for a split second on join. And then vanish right after and only show the placeholders. Any help?
any errors?
Nope
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
No errors
what scoreboard plugin are you using
TitleManager
Send config?
# PlaceholderAPI
# Version: 2.10.3
# Created by: extended_clip
# Contributors: https://github.com/PlaceholderAPI/PlaceholderAPI/graphs/contributors
# Issues: https://github.com/PlaceholderAPI/PlaceholderAPI/issues
# Expansions: https://api.extendedclip.com/all/
# Wiki: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki
# Discord: https://helpch.at/discord
# No placeholders are provided with this plugin by default.
# Download placeholders: /papi ecloud
check_updates: true
cloud_enabled: true
cloud_allow_unverified_expansions: false
boolean:
'true': 'yes'
'false': 'no'
date_format: MM/dd/yy HH:mm:ss
expansions:
vault:
formatting:
thousands: k
trillions: T
quadrillions: Q
billions: B
millions: M
Titlemanager config
# Each line must also be unique, a work around would be to put a color code at the end your line, to make it unique.
lines:
- '&d&l----------------------------------'
- '&7Rank: &f%vault_rank%'
- '%r'
- '&e&lSTATS:'
- '%r'
- '&7Balance: &f%kitbattle_coins%'
- '&7Kills: &f%kitbattle_kills%'
- '&7Deaths: &f%kitbattle_deaths%'
- '&7Coins: &f%user-coins%'
- '&7KD ratio: &f%user-kd-ratio%'
- '&r'
- '&e&lLEVEL:'
- '&7Level: &f%kitbattle_player_rank%'
- '&7Next level: %kitbattle_player_next_rank% &7( %kitbattle_player_next_rank_exp% EXP )'
- '&r'
- '&e&lINFO:'
- '&7Killstreak: &f%user-killstreak%'
- '&7Highest Killstreak: &f%user-best-killstreak%'
- '&d&l---
@austere hawk please use the paste site provided instead of psoting in chat
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
So i have to replace the onPlaceholderRequest(Player) to OfflinePlayer?
replace it completely or add it?
replace
still having the issue
@mint fable there is no log 🤦
What do you mean there's no log?
it's located in the logs folder
are you registering it @graceful adder ?
papiEnabled = true;
new PlaceholderAPIHook(this).register();
}```
Yeah
no
your server directory
@mint fable https://paste.helpch.at/xenabazehu.md
you don't even have title manager
?
or placeholderapi
or a kit pvp plugin
Did you send me the right server log? O.o
I got no idea @graceful adder
you're trying /papi parse me %eloplugin_elo% right?
latest.log
and no errors in console? @graceful adder
no
@austere hawk if that's your log, then you don't have any of the plugins I said
Line
424
seems that it might be because of kitbattle I suggest asking the dev if there's a fix or check if there's an update
i got no errors in console
or you could try using mvdw's placeholders
will try
Bukkit
You're using the... outdated version?
spigot...
is 5.4
Yes
What
you're using v4.1
update
I don't see why you're repeating what I just said
if updating doesn't fix it, then idk
🤷
f
but definitely update and see if that works
if im not getting the value correctly or is null it's a normal thing that papi is giving me my placeholder
Yep, hence why I can't really help you there
because it's your own plugin :L
but I feel like there should be an error if something like that is happening
debug it
try something like Bukkit.getLogger.info(identifier)
?
Hello guys i need help where can i and can i request for small update to papi (i don't know if it is updated by the papi staff team or the owner of the plugin)
I've seen there is option for is_teleport enabled in essentials and is pay enabled but i can't to seem to find if it has something for the /msgtoggle supported if it does not can i, and other server owners expect that soon,
Thanks in advance
you can toggle if someone can msg you
i think it is for when you ignore one player
Did you try it?
well i am currently having issues at all with teleport and pay enabled ill try that to
ill give you info in few minutes
okay im just a 0iq human being http://prntscr.com/p0z16q
Thanks for the help Cj and sorry for wasting your time
rip
happens to the best of us
what does %essentials_fly% works for ? as i tested it it does not work with if i am flying or if i have fly enabled
return essentials.getUser(p).isFlyClickJump() ? PlaceholderAPIPlugin.booleanTrue() : PlaceholderAPIPlugin.booleanFalse();```
Guess it check if you flying
Please help me, i really don't know why sometimes my placeholderAPI disappear like this
https://imgur.com/a/73Z3RuY
Is it possible just to get the toggle option like if the fly is enabled not if i am flying ?
@fickle tide
?
Hi
I am using spigot1-.12 and lastest ver
when i type /papi parse me %player_item_in_hand_level_efficiency% it show error
Have you perhaps considered that showing the error would help? if so use this
=paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Why are you pinging?
sorry for the ping
This isn't an enchantment efficiency
but the minecraft wiki said that
Efficiency is an enchantment that increases the speed the player mines.
Can /papi ecloud install {} install any addons for a plugin you have?
if the expansion exists (and by {} you mean the expansion name, cuz that wouldn't work on it's own)
/papi ecloud download <expansionname>
/papi reload
i tried /papi ecloud download kitbattle and it said Invalid Expansion
What placeholder are you trying to use
What's with people and pinging today jesus....
lmao
🤷
The placeholders are internal (meaning there is no expansion for it)
Then whats the \expansions folder
There is none
I mean the expansions folder is where all the expansions are stored
player expansions etc
Where are you trying to use the placeholder?
Not sure about title manager, but iirc you can just set it as %kitbattle_coins% on your scoreboard
getting a Zoinks so 🤷
read the link you sent..
%deluxetags_tag% doesnt work for me
Would cmi placeholder be supported by papi?
hi, i need help with something
i have a bungeecord server minigame and when it's in game the motd is changed in "In game"
i want to use %pinger_motd_testplugins.com:25565% in another server but it's showing the motd from server.properties. exist any way to show the motd from minigame?
@brisk coral
@buoyant urchin
Please be patient and don't ping helpful or staff members!
Hey guys, i have a problem with PlaceHolderAPI plugin who can help me for it ?
@tepid cave ^
Ok i have fix my problem to PlaceHolderAPI but now my problem is with HolographicDisplay
I get error occured in console
Well then you'll have to ask in #general-plugins or #general-plugins-2, since its not related to papi anymore.
hi, how do I implements external PlaceHolders on my plugin ? (I am using Jobs Reborn and I would like to use their PlaceHolders. but I don't know how to add external PH to my plugin)
@austere hawk /papi ecloud download JobsReborn
it says "No expansion found with name: JobsReborn"
try Jobs instead of jobsreborn
oh yes ^^ it worked
the problem is that the PH is supposed to be in the Scoreboard but it's actually in the chat ^^'
Jobs has the placeholders built into the plugin, no need to download anything
New placeholders can be found here
hey @bronze bison are you good at papi ?
What do u want?
i have a problem
I can't download some eclouds
it says it's installed
but when i use command /papi ecloud list installed
it's not there
i reloaded plugin
i tried lot of times
but didn't work
U have to reload papi after installing expansions
Also, some expansions need a plugin to work.. make sure u have the plugin it needs
I wanna download expansion Statistic
and i can't
also i have SavageFaction plugin and can't download Faction expansion
Spigot version?
Also, savage factions has the placeholders built into the plugin
U dont need to download an expansion for them
my real problem is this :
https://imgur.com/sTZojEF
the placeholder is in the chat instead of the scoreboard
do I have to implement PHAPI in my scoreboard plugin ?
If you're trying to use a placeholder from a different plugin inside your you either have to implement papi, or implement the plugin you're using to get the placeholders methods
I have implemented Jobs ^^ but it's not changing any of the PHs in the scbrd
maybe I'm a bit dumb ^^ I've implemented only Jobs do I need to implement PHapi too ?
@brisk coral i can't download eclouds it says it's download but it's not
@austere hawk if u want to use a papi placeholder in ur scoreboard then ull have to implement papi in ur plugin
how do I place a PHapi placeholder in my scoreboard ?
Its pretty simple tho, check the wiki https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Hook-into-PlaceholderAPI#using-placeholders-from-placeholderapi-in-your-plugin
oh I just have to put this ?
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) { Bukkit.getPluginManager().registerEvents(this, this);} else { throw new RuntimeException("Could not find PlaceholderAPI!! Plugin can not work without it!");}}
Also check the first step at the top
If thats what u want inside the brackets, the yes
Then u use the parse method, read whats mentioned in the wiki please
No
Don't think so
If it detects forge I want to connect with bossshop to create a GUI that only shows people with forge.
Okay, you'll probably have to go ask boss shop for that then.
hmm
Hey, if a plugin is not supporting the placerholderapi plugin then I'm out of luck if I want to use a few specific variable value?
I'll give it a try, thanks
np 😄
whats the placeholder for tps?
https://imgur.com/a/rc3mnUw Hmmm sometimes papi not read placeholder
/papi ecloud download vault
/papi reload
i have
https://imgur.com/a/OxjrIQ9 i have
/pl and see if its there....
it have and Vault is green : 0
ok then, run the commands i sent....
its an issue from mmocore placeholder
hmm? progress expansion has nothing to do with the error u sent ?
did u send the error to them?
yes i have
and what they said?
they think the issue might is papi
can u parse the mmocore placeholder ure using in that menu?
using parse command /papi parse me %placeholder%
did it send any error when u parsed it? and what it returned?
Anyone good with the javascript extension?
Code: <embarrassing code>
Output: just outputs the function instead of what should be returned
(figured it out)
What's the point of a placeholder when you don't return anything 
if anyone is lazy asf and wants me to make them a juicy config, just message me. i love helping.
Idk why but my jobs reborn placeholder doesn't work and i have download the expansion from the website.
when i use %jobsr_user_points% the placeholder isn't replaced and when i use %jobs_user_points% i have a blank
U dont need the expansion anymore, is built into the plugin now
hum i see but why it doesn't work ?
Do u have the latest version of jobs?
all of my plugin on the latest version
i got this on my scoreboard and other plugin where i have tried the placeholder http://prntscr.com/p2lmty
Does ur scoreboard plugin support papi? Try the placeholder using the papi parse command /papi parse me %placeholder here%
like this ? http://prntscr.com/p2lrp4
and yes he support PAPI
scoreboard: PlaceholderAPI: true
After restart always broken. Thanks for your help.
That's unfortunate.
Hi ! I have problem with a placeholder :
Here is my problem :
I created challenges with deluxemenus, but fabledskyblock placeholder do not work perfectly :/
If I do /papi parse me %fabledskyblock_island_level% it works, If I have the placeholder %fabledskyblock_island_level% it will show me my island level.
But if I use the placeholder for a view_requirement, it doesn't work :/
I tried the two requirements ( to test ) but it doesn't work :
https://pastebin.com/FJGiCu0W
https://pastebin.com/kuYf4YAu
And if I replace the placeholder with another ( like this one : https://pastebin.com/z7b7dmTU ) it works perfectly.
So where is the problem ?
I contacted songoda and they said the problem comes from deluxemenu ^^
no commas, it returns "382" for example
@meager vault try expression: 'parseInt("%fabledskyblock_island_level%") >= 100'
It doesn't work @bronze bison
does it says anything in console when u open the menu
Nothing
And for the other requirement it says : [DeluxeMenus] Error in requirement javascript syntax - %fabledskyblock_island_level% >= 100
use what i sent for open requirements too
not sure, but it seems that its not parsing the placeholder before checking the js expression...
It's like that ? https://pastebin.com/qCWE2Lrn
yes
now does it say anything in console?
Nothing
ok, can u try using that placeholder in math placeholder?
so
expression: 'parseInt("%math_{fabledskyblock_island_level}+0%") >= 100'```
you need to download math expansion for that
/papi ecloud download math
/papi reload
Error in requirement javascript syntax - parseInt("%math_{fabledskyblock_island_level}+0%") >= 100
u downloaded math expansion right ?
yes
wait, it returns the level with colors?
%canseeonline% is not working for me
in language.yml under Placeholder theres fabledskyblock_island_level, can u send me what it has there @meager vault
@eternal drift what is this placeholder? from where?
this isnt a papi placeholder...
there you go :p
do u want &f part or u can remove it?
I can remove it 😄
I didn't know it was the color that created a bug 😮
yea, the number started with a string
thats why it couldnt parse it as a number to compare it
Contact LuckPerms author.
I have a problem. The placeholder refreshing is very slow.
It refreshing every 15-25 seconds on featherboard for example
This problem came up when I changed the server's version from 1.12 to 1.14.4
change the update interval in the placeholderapi config
There isn't setting like that
Does PAPI support placeholders in placeholders?
Example:
%proquests_progress_battlequest%javascript_getDate%%
Depends if the placeholder supports placeholders inside it
And if it does, it wont be %%
Pretty sure it doesn't in my case :(
Rip
When I try to use the BattleLevels variables, it doesn't work. (%battlelevels_level%)
@kindred berry does the plugin ure using it in, supports papi?
Does it work using the parse command /papi parse me %the placeholder here...%?
If none work, contact the dev
@frank summit type -papi vault in #bot-commands
Thanks
Im having trouble on my scoreboard using scoreboard-revised with placeholderAPI with luckperms expansion im trying to do %luckperms_prefix% and it shows up perfect with the correct prefix with the correct colours but as soon as i try to do &7Rank: %luckperms_prefix% it breaks it and nothing shows up
If anyone knows why that would be amazing
Not sure if its to do with the scoreboard, papi or luckperms
Its from ur scoreboard plugin, contact the author
Just download the new one and reload PAPI.
How are essentials placeholders used exactly
What string do they return
Or is it a boolean
hey can i get some help ? im using latest version of papi
but when i use /papi ecloud download Guilds
it says there is no expansion with that name
You don't that for Guilds, its built into the plugin now.
its not working on featherboard
{placeholderapi_(papi placeholder without %% and brackets)}
Oh, thanks for letting me know. Ill remove it from the wiki
its build into the plugin now, so u dont need to download it
np, just checked guilds code, it has it built into the plugin. the placeholders should work fine.
ye its working now thanks
👍
I have the Plugin Scoreboard-r and I would like to display the players Primary group, how do would you do that using the Placeholder API?
Check vault, or LuckPerms if ure using it
👍 😃
%voteparty_votes%
%voteparty_total_votes_needed%
%voteparty_is_ignoring%```
Can anyone tell me what these placeholders will return? I'm guessing the 2nd one will give how many votes are done for the server and the 3rd one will display the total needed until vote party
Hey, I simply don't understand how palceholders work even after reading the wiki. When I created a hologram I just got the variable that I wrote in, rather than any value?
@crimson axle #spigot-linking
Does your hologram plugin support placeholderapi @stone thorn ?
Yes, I figured it I think 😄 thanks though! @balmy marten
Ah, good
@vivid sparrow will do when I’m home
I tried making a PAPI expansion: https://hatebin.com/fkzchfkdke
But when I put it in the expansions folder, it gives this error: Failed to init placeholder expansion from class: com.klyser8.karmaexpansion.KarmaExpansion
I followed the guide on the PAPI wiki
I am almost certain that it's because I should not be instantiating the Main class of the other plugin
Use != null instead of isEnabled()
not sure if this is ths issue, but it might be it
Other things seems fine to me
Got it to work, it was the whole instantiating the main class thing
that caused it to crash
👍
How do you upload an expansion on the PAPI ecloud?
Exactly like that :p
haha
I am trying to download it tho through minecraft and it can't find it
Oh
How do I verify the expansion?
someone probably gotta verify it, idk 🤷
okei
Will check it later today if i could
Are you a moderator?
Yes
oh okay well check it whenever you have time don't worry haha
How do I limit the number of money to appear?
I am using %vault_eco_balance%
But after the point many decimals appear
@frank summit use fixed, formatted, or commas ^
%vault_eco_balance_formatted%
wait, limit as in have a limit on how much money the player can have or?
no decimals I believe.
@frank summit just use the placeholder, it removes the decimals
@mint fable How can I remove decimals?
I can't find it in the archive config
What does the new placeholder return?
/papi parse me %vault_eco_balance_fixed%
you can also try formatted and commas
they're all different
If I want to put only two numbers after the comma I put %vault_eco_top_balance_commas_2% ??
no
Sorry i'm dumb haha
maybe use math expansion with %vault_eco_balance%
But not sure if it will work fine for big numbers
commans will return 1000 like this 1,000
i "fixed"
I remove the decimals with %vault_eco_balance_commas%
I only see the whole number
hmm?
commans doesn't return any decimals iirc
It returns the same value of fixed, but will commans between every 3 digits
I wanted the number and after the comma two decimals. But np. Thank you all
if u really want something like that, open an issue in vault expansion repo and i may add it
ok, thanks!
oh wait
i feel like this is a thing where they might use 598,98 instead of 598.98?
and that could've caused confusion
🤷
I think so, because in my country it is different from yours haha
Hey @gentle flicker,
It seems to me that you uploaded the whole plugin to the eCloud?
If you want the expansion to be built into your plugin, just add the expansion class in your plugin and register it on enable check the wiki for more info https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#internal-class
Or if you want an expansion (separate jar) just hook into your plugin form it and add the expansion class only. (so it will be an expansion and not a whole plugin)
yep yep
@frank summit We use commas and decimal points (periods) like this : 5,938.93
and you want it to look like 5,938.93?
Yep
I think this calls for javascript
could someone help here
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
=paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
put it in "" or ' '
Great! 👍
@bronze bison Do you think that it is better to have an outside expansion, or have it within my plugin?
@gentle flicker
Please be patient and don't ping helpful or staff members!
Ah sorry
Idk if the message got delivered or not
And aBooDyy, I tried not putting my whole plugin into the expansion, but how can I retrieve my plugin's information without adding it into the extension's libraries?
I am trying to download the "server" download on PAPI, among several others; however, it only seems to have kept 1 of the downloaded addons and I get an error when I try to reload papi https://gyazo.com/67a44dc7c27813e7b63c372bff95b50f
I did the command right to download the "server" addon but it doesnt save it for some reason
You can use maven or gradle Klyser
/papi reload maybe? @silent lava
Cant open the link on mobile.
Also Klyser, imo an expansion would be easier to maintain because it takes a few seconds to download, rather that loading a new plugin version.
I am using maven
But it imports the whole plugin
Or I assume so since it is 55kb or so
Which is the weight of the extension + my plugin
@vivid sparrow https://hatebin.com/hgetzqbgqj this is my pom.xml, did I do something wrong with the shading maybe? Cause idk how any of that works
Ping me whenever someone knows if there's something wrong with my pom.xml please
@gentle flicker its completely up to you.
Having the expansion built into the plugin would be better imo cuz u wont have to do anything (u dont have to download it using the ecloud commnd).
If you want to make an external expansion (sperate jar), you don't need to shade/include you plugin in it. It will be provided (because you're using the plugin in the server) same as you're using spigot api without shading it in your plugin.
You wouldn’t want to shade in the dependency
Just depend on it and let that be that
Yeah but I don't understand how I shade dependencies and how I don't shade them
Like what do I write in the pom.xml so that it doesn't shade the dependencies?
u dont write anything, it normally doesn't unless u make it to
also, there's a difference between a dependency, and classes in the project itself
if you want to create an external expansion, you create a whole new project in your IDEA
Unless if you can just compile a specific class, but dont think thats possible
I did create a whole new project
I added my plugin as a dependency
But I think that it shaded my dependency
https://hatebin.com/hgetzqbgqj Do you know if I am shading it here or not? I mean I asume I am, but how do I tell if I am shading it or not
Not a maven expert, but afaik its because of the second plugin
Yeah, It isn't cause of PAPI it's because of my plugin
But I am not sure how I unshade it
I'll try removing the plugin entirely, I usually don't want to shade anything afaik
don't remove the first plugin tho
Yeah I know
aBooDyy I did it! Now the expansion works and is only 5kb
How do I update my expansion on the eCloud?
Nice! Go to versions and click add version or add new version
Alright I did it
Have no idea 😅
I've just verified your expansion @gentle flicker 😃
Just a FYI, plugin.yml file is useless and not needed, because its an expansion, not a plugin.
Thanks for using PlaceholderAPI.
aboo, should I make my placeholders internal or external
up to you
can you give us more information, please?
So i did put the placeholders in to their place but they dont work
and i have downloaded the eclouds
and reloaded
aBooDyy I forgot to remove it oops
u put them where? and which faction plugin ure using?
its all good Klyser, not a big issue
it was nothing
hmm?
hallo can any1 here tell me how was it i get deluxe chat to work i remember simthing about download player somthing
noi what i seek ís somthing you need to need do in the placeholder api plugin
If you wish to receive support regarding DeluxeChat, verify your account.
I still need help on my message from yesterday if anyone can assist:
"I am trying to download the "server" download on PAPI, among several others; however, it only seems to have kept 1 of the downloaded addons and I get an error when I try to reload papi https://gyazo.com/67a44dc7c27813e7b63c372bff95b50f
I did the command right to download the "server" addon but it doesnt save it for some reason"
contact the quests author.
The issue is from quests expansion and not server expansion/papi.
If you want to get it working for the meantime, delete Quests expansion from plugins/PlaceholderAPI/expansions/ folder and it should work fine.
Oh okay thanks for letting me know
my bungee placeholders suddently stopped working and only show variable now %bungee_skyblock% instead of integer
/papi ecloud download bungee
/papi reload
is it in /papi list? Any errors when you reload papi?
?help
» Give the helpers some details
» Ask suitable questions
» Be polite
» Wait
👍
Could we please get a placeholder expansion for Autorank Rebooted? The original Autorank placeholders don't seem to work with it
Contact the author and ask him to add it
thanks for that! Unfortunately, the %autorank_active_path% returns an "internal error" message
Send the error you get in the console please.
one sec
=paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Can you please open an issue about this here https://github.com/PlaceholderAPI/AutoRank-Expansion/issues
sure thing - thanks for the help
@slow hedge Unknown expansion.
@slow hedge Unknown expansion.
@slow hedge Unknown expansion.
Is there any way to make an old plugin work on the new version of placeholderapi
Update the old plugin
its abandoned
unless anyone knows a good alternative for namecolors to this plugin https://www.spigotmc.org/resources/chatcolor-premium.54093/
idk any, id use dm and a chat plugin that supports papi 😄
TheMonDon, you should use DM and make it using that <o/ (note: you will get a lot of perms spam :p)
Anyone know why my placeholders aren't working in holograms? I copied the exact placeholder and made sure I had it
u need holographic extension plugin to use papi placeholders in holographic displays
dont forget ProtocolLib too
Ah thanks man
np 😄
anyone know if theres a placeholder which displays how many players have a certain permission?
@bronze bison Unknown expansion.
if u want to get a number, ull be able to get that with js
thx
var list = "%listplayers placeholder here%";
function getCount() {
return list.split(",").length;
}
getCount();
ive guessed that and made it for you ^ 😄
ive sent the link to js wiki, follow the steps there and use the js script i sent instead of the one in the wiki
?? Great :p
thank you
Yw 😃
Only me that the 'Bungee' expansion isn't working with the latest version?
have you reloaded papi?
I have tried everything, even tried older versions and nothing.
whats the value of the placeholder when theres no one?
i mean listplayers placeholder
then use this @golden rock
var list = "%listplayers placeholder here%";
function getCount() {
if (list == "0") return "0";
return list.split(",").length;
}
getCount();
are u sure the listplayers placeholder returns 0 when theres no players?
and dont use /papijsp reload for the meantime, use /papi reload instead
@golden rock guess should work, listplayers placeholder return nothing not 0
var list = "%listplayers placeholder here%";
function getCount() {
if (list == "") return "0";
return list.split(",").length;
}
getCount();
👍
hey man
just wondering
how can you use placeholderapi in mvdwplaceholderapi
i remember there is a placeholder for it but i can't find it
nvm found it
{placeholderapi_[placeholder]}
nvm again
doesn't work
;p
{placeholder_vault_eco_balance}
you got the expansion?
/papi ecloud download vault
/papi reload
{placeholderapi_vault_eco_balance}
Keep in mind that mvdwpapi placeholders wont work without one of maxim's premium plugins (e.g. featherboard, AnimatedNames, etc)
And make sure that the place ure using it in support mvdwpapi
i have that too
U have vault? U have papi?
/papi list vault is there?
yup
let me see the console
if mvdw no longer supports papi
ah f-
nevermind
dude mvdw is insane
it gave me the placeholders i needed in the console
{factions_faction_id}
15.09 17:36:59 [Server] INFO [MVdWPlaceholderAPI] LegacyFactions added custom placeholder {factions_faction_name}
15.09 17:36:59 [Server] INFO [MVdWPlaceholderAPI] LegacyFactions added custom placeholder {factions_faction_name_blankwild}
15.09 17:36:59 [Server] INFO [MVdWPlaceholderAPI] LegacyFactions added custom placeholder {factions_faction_description}
15.09 17:36:59 [Server] INFO [MVdWPlaceholderAPI] LegacyFactions added custom placeholder {factions_faction_description_blankwild}
15.09 17:36:59 [Server] INFO [MVdWPlaceholderAPI] LegacyFactions added custom placeholder {factions_faction_admin}
15.09 17:36:59 [Server] INFO [MVdWPlaceholderAPI] LegacyFactions added custom placeholder {factions_faction_power}
15.09 17:36:59 [Server] INFO [MVdWPlaceholderAPI] LegacyFactions added custom placeholder {factions_faction_powermax}
i wish papi does this 🤔
papi3 🔜™
xd
Suggest what do u want in its repo in gh
Awwwww mannn!
the mvdw placeholder in faction won't work
fudge
guess switching back to papi
papi for lyf?
Guys
i am using math to substract 2 different placeholders, the only problem is that the result has decimals
anyway to remove them?
nvm i think i found out
add [precision:0]
yep used that
Now i'm struggling to find a way to check if a placeholder value is bigger than a set one... i think i need to use javascript but i has no clue how to do that.
Excuse my noob-yness when asking these questions.
I am trying to create a store using DeluxeMenus that takes 1 token for X item. And looking at the great examples you guys have I found this place: https://www.spigotmc.org/wiki/placeholderapi-javascript-expansion-scripts/#tokenenchant-token-value . And I'm assuming that I'll need Has Item... So all I need to do is save that script as hasItem.jsand add those two lines to javascript_placeholders.yml
My question here is then... Where is the javascript_placeholders.yml? And where should I save hasItem.js.
- I hope this was the right chat to put this.
There's no has item js
Its a requirement type
oof no lol
There's and i made it 😅... Dont use it anyway
Use checkitem
it is indeed :p
Could I use that to also check if there's at least one empty slot in the player's inventory? By checking for air? Or is that not how that works? 😛
There's a player placeholder for this
🙌
How can i put 2 different json messages on the same line?
In which plugin? Where?
In PlaceholderAPI or MVDWPlaceholderAPI is there a way to round the skyblock level because i want it to say island level 10k instead of 10000
Askyblock^
I've added this placeholder while ago to askyblock expansion, but its not live yet.
If ure interested in downloading it manually check the PR here https://github.com/PlaceholderAPI/ASkyblock-Expansion/pull/9
Do i just download it and put it in my plugins folder then @bronze bison
@visual brook
Please be patient and don't ping helpful or staff members!
oh sorry i didnt realise you were staff
You replace it with the current one in plugins/PlaceholderAPI/expansions
Im helpful, not staff btw 🙂
So i put it in the expansions?
Wont that get rid of the original skyblock stuff if i replace the askyblock expansion?
U delete the old askyblock expansion there, and put this new one
The new one is the same as the old one, just has these new placeholders
Ohh thank you
np 😄
Yayy it works thanks so much for making that!
And do you have any experience with IslandBorder placeholderapi?
Because I have an issue with it
Glad it did! Thanks to who suggested it.
Guess ull have to contact the plugin's author since its most likely have the placeholders built into the plugin.
Hey!
I need help with javascript, this placeholder: %fabledskyblock_island_level% returns a non formatted value, how can I place commas between them? e.g 12,500 101,000
Made this to someone https://discordapp.com/channels/164280494874165248/573429521554866178/579671451981053972 few modifications and ure done
I'm a bit confused, what exactly? Lots of data are there
Hmm,
- Put ur placeholder in a variable.
- Remove the first check cuz u wont need args.
- Remove
numvariable. - Replace
numincostvariable with ur placeholder variable. - And ure done.
Kinda few things * :p
kek
Thank you its working! 😛
Noise, np 😄
my placeholders that were using placeholderapi just stop working on my featherboard
For some reason does /papi parse me %placeholder% throw the error "Failed to find player: me"
This also happens when using the playername instead of me.
I run PlaceholderAPI on PaperMC 1.14.4 and it's a network, meaning it's connected to a BungeeCord (online mode and IP forwarding are setup)
It is kinda urgent so I would appreciate if someone has any idea what is going on.
Rejoin and it should work @arctic loom
@next minnow if the placeholders work using papi parse commnd /papi parse me %the placeholder here%, then its an issue from fb
@bronze bison Rejoining doesn't fix it at all
@arctic loom
Please be patient and don't ping helpful or staff members!
Im getting a error with trying to import it into my pom https://gyazo.com/d6827a823409c62aedda1900dbd2aa56
You didn't specify the {VERSION}
@marsh urchin You probably missed this point
https://cdn.discordapp.com/attachments/584040473186926623/623140964596318238/unknown.png
Anyone else available here to help me?
the me problem is resolved by restarting the server and rejoining
(usually a rejoin fixes it)
@brisk coral Nope.
Even after stopping and starting the server again does Papi not recognize me nor any playername
What version you on?
1.14.4
papi ver
That's odd, try reinstalling it and see if that works
Had that issue a few times, but a relog always fixed it
Still the same Frosty
Tried reinstalling, rejoining, reloading plugin, testing with different expansions...
Do placeholders have to be registered before using them?
Yes.
Hi, i need help
I am trying to add the placeholders on the featherboard
trying to add these:
- %kingdoms_kingdom%
- %kingdoms_haskingdom%
- %kingdoms_points%
- %kingdoms_land%
- %kingdoms_onlinemembers%
- %kingdoms_offlinemembers%
- %kingdoms_offlinecount%
- %kingdoms_onlinecount%
- %kingdoms_king%
- %kingdoms_rank%
config:
player-line1:
text:
- '&7{placeholderapi_kingdoms_kingdom}'
interval: 2
spacer1:
text: []
interval: 100
What am i doing wrong?
Try them using papi parse commnd /papi parse me %placeholder here%
If they are working, then the issue is from fb
Well then, try restarting the server and try again
If that didn't work, contact kingdoms author
I also tried the essentials one :/
Can u stop tagging me please?
The essentials ones need this
/papi ecloud download essentials
/papi reload
And the answer for ur question is no
well then contact the author
Will do
Np and gl 😃
package me.zooma.join;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.plugin.java.JavaPlugin;
public final class Join extends JavaPlugin implements Listener {
@Override
public void onEnable() {
// Plugin startup logic
getConfig().options().copyDefaults();
saveDefaultConfig();
}
public static String format(String format){
return ChatColor.translateAlternateColorCodes('&', format);
}
@EventHandler
public void onPlayerJoin(PlayerJoinEvent e){
String JoinMSG = getConfig().getString("JoinMessage");
e.setJoinMessage(JoinMSG);
}
@Override
public void onDisable() {
// Plugin shutdown logic
}
}
any reason why it doesn't work
it doesn't send a join message
- #development
- You need to register the event.
ooo sorry i stupid 😄
Also, use seperate classes
%VotingPlugin_top_month_#_votes% and %VotingPlugin_top_month_#% both display the top voters ign, I thought one displayed the ign and the other the amount of votes?
got it thanks
I'm still having those PAPI issues and would appreciate if someone could take a look... I also made an issue about it on GitHub
Will do if i got time tonight.
So I'm trying to make 'time played' with DeluxeMenus and the placeholder doesn't work
%statistic_time_played%
that doesn't work
I did do /papi ecloud download Statistic
and since my server is running on 1.8.8
I did /papi ecloud download Statistic 1.7.0
that's the command I'm supposed to use
although I tried with both of them and it still didn't work
what does the parse command return?
What would cause items to glitch inside a chest? By this I mean when im putting items into chest, it will eventually stop going in when i place them in, it places, but then goes straight back to my cursor as if i never put it in another slot... D:
lag?
is there a way to get the placeholder for something to allow you to specify the user?
such as %vault_prefix%
or something
please @ me if you answer
@austere hawk
correct me if im wrong, but isnt parseothers supposed to work with offline players?
On my minecraft 1.14 server when downloading the vault extension using /papi cloud breaks the extension, i had to download it manually from the ecloud server and drag and drop it on there, was my first time using papi as took me 4 days to figure out, also saw im not the only one so this is a bug that needs to be fixed, where do i send a bug report?
will %player_time% show current real life time of the location the player is logged in at?
ok i need a little help
i want to make a gui where if someone with damaged items open the gui from there inventory it will go in the gui and with a price it will be fix
Anyone at all
And you need help with ..?
i want to make a repair “shop” gui got damaged items the player has in there inventory
Use a placeholder to display the players item in hand
Can someone link me the new way of hooking PAPI into a plugin?
What gui plugin supports that placeholder tho?
Deluxe menus
hey!
Anyways to display PAPI placeholders in php or javascript on a website?:O
doubtful
would be really cool
make a plugin that sends u the value of the placeholder to ur website
will %player_time% show current real life time of the location the player is logged in at?
Run /papi parse me %player_time% to see for yourself.
how dare you to suggest that MrSwalbert??
tad confused
why test when you can ask a few times
Swalbert he's messing with you :p
hello
i am having issues loading the PlayTime expantion in PAPI
it is just ignored
and the placeholders dont work
Do you have the plugin?
errors in console?
have your reloaded papi after downloading the expansion?
i have done both reloading papi and restarting the server
i have also tried downloading the jar and placing it manually in the expansions folder
Can someone send my the placeholders for the deluxe menu plugin
DM doesn't have specific placeholders, you can use any placeholder PlaceholderAPI provides, you can look at all the available on the ecloud
You act like I know what I’m doing
sec lemme get you the link
What’s papi mean and what does ecloud mean?
Here you can view all the available placeholders/expansions
Thanks but people are telling me deluxe menus works with placeholders but it isn’t listed on the thing you just sent me
As I've said, DM does not have placeholders by itself, instead is supports any placeholder PlaceholderAPI provides
Ohhhh DM is deluxe menus I’m slow
.-.
Would you happen to know the placeholders for damaged items in someone inventory? If you don’t that’s fine I can check on it later
no clue
Kk
I can’t find a placeholder for damaged items ;-;
%player_item_in_hand_data% ?
Can someone help me, my expansion-player.jar keeps unregistering every restart,
Did you type /papi ecloud download player
not exactly what i'm looking for aboodyy but thanks for trying
I mean depending on your version you could use that placeholder to get the items damage
Isn’t that placeholder only for items in the players hand?
I found a placeholder that checks if the player has an item in there inventory. It’s close to what I’m thinking but if the item is full durability I don’t want player pay like 10k and complaining to me about it (I didn’t know 🙄)
Expansion-ASW can be used to execute bash commands. Was used to escalate privilleges on our server.
,-,
Set up two bungees today with redisbungee and the %redisbungee_total% placeholder is taking a really long time to update, heres my config, what am i doing wrong? https://paste.helpch.at/ihofimemid.bash
I'm fairly certain this should work, but it doesn't. Any ideas? https://i.imgur.com/LBbDjRd.png
I have downloaded the extension for javascript as well
check_interval: 5, it should take 5 seconds to update @atomic belfry
It takes way more then that
@neat abyss it should be expression: 'parseInt("%Ur placeholder HERE%") >= 5'
It takes atleast like a minute to update, super weird
Well i didnt time it but its way longer then it should be
did u try restarting?
Yes ive tried restarting the bungees the spigot servers and no luck
weird..
Any ideas? Im down to try out suggestions to possibly fix it
Ah alright, if anyone has any ideas you can @ me
Nope
hmm
so
my luckperms prefix has {javascript_worldDimensionsTab} in it
and that just shows up as that in tablist
in chat it shows the players dimension
does the tablist support placeholders?
yea
so basically its setup so that it shows the players prefix, their name
i need to include a placeholder in their PREFIX for chat reasons, the only way i can do this is by using chat injector
using chat injector means the placeholder symbols need to be swapped to {}
but tab doesnt support that
it needs %
@flint lark
why not include the placeholder in the chat formatting itself?
that doesnt work
like %javascript_worlddimensiontab% doesnt work when its in teh prefix
it just comes up with the raw text
What plugin do you use for formatting your chat?
essentialsXchat
have you tried placing the {} placeholder in the chat format, rather than the prefix?
i ahve other reasons why it needs to be in the prefix
and I'm guessing you can't just remove prefix from the tablist and use the placeholder there?
na
then looks like your option is change what you want to do, or find a tablist that lets you use {} placeholders
Is there any other alternatives?
like using javascript or something to swap out the {} for %% before it goes to the tab menu
https://i.imgur.com/o6A2IGw.png any ideas why this is still throwing an error?
Got it fixed ^^
anyone know a placeholder for a player's head that open the gui there in?
@austere hawk you could try using %placeholderapi_urplaceholdernosymbols%
@brisk coral
dw i think i foudn a solution
%placeholderapi_javascript_worlddimensiontab%
Placeholder for mob kills?
statistic
hmm and to add all type of mobs kills i need to use math placeholder?
iirc without arguments it will show the total amount of killed mobs
%math_{statistic_kill_entity:Skeleton}+{statistic_kill_entity:Zombie}+etc%
invalid statistic when used without arguments
download v1.7.0 for 1.12.2 and lower btw
i am using 1.14
So i'm trying to do some complex stuff with placeholders, dunno fi anybody has a clue on how to do this but
I'd like to run a command for when the placeholder for the specific players reaches a value of 0.
I'd like to use luck perms temporary permission and i want a command to be run for the player that the timer expired %luckperms_expiry_time_permission.example%.
Is this even possible?
ik there's a plugin to run commands with delay / in advance
let me see if I can find it
Yesterday i said that redisbungee placeholders are taking a really long time to update, (more then a minute)
despite having set it to update every 5 seconds, i tried multiple fixes and config changes, but the %redisbungee_total%
placeholder doesn't want to update quickly, i also tried this one
%math_{redisbungee_hub1}+{redisbungee_hub2}+{redisbungee_SMP}[precision:0]% while it does show the player
count correctly like the other one it also takes the same amount of time to update, has anyone experienced this in the past and
have any fixes for it?
been trying for hours now no luck rip
I did:
/papi ecloud download Javascript
/papi reload
(restart server)
Then I used:
/papi parse Meldiron %javascript_1+1%
and it didnt work, it returned %javascript_1+1%
No errors in console, whats wrong?
its math expansion not JavaScript
my goal is to do:
%sapi_prestige-color% === '' ? '7' : %sapi_prestige-color%
is prestige color placeholder returns empty string, return 7.. otherwise return the value of the placeholder
Oh, I found error:
java.lang.NoSuchMethodError: 'void me.clip.placeholderapi.util.Msg.msg(org.bukkit.command.CommandSender, java.lang.String)'
How ot fix this?
is there a placeholder that shows time played?
There's a few options on https://helpch.at/placeholders to show playtime
ty
i need help i did bungee placeholders but its just blink line what do i do?
so ontime placeholders dont work well with parseother, parseother is supposed to be able to detect offline players, it works with vault, but not with ontime
please @ me if you answer this
So i'm attempting to use JobsReborn placeholders (specifically for Points) but cant seem to get them working?
I manually got the jobs expansion from the Ecloud site, but still no avail.
Another interesting thing is if i use the provided %jobsr_user_id% placeholder from the wiki, this wont work, but if i use %jobs_user_id% it will.
The placeholder I'm trying to get functional is specifically: %jobsr_user_points%
Jobs has an internal expansion
Is there a way to activate it? without it the manually downloaded expansion it didnt seem to work?
So i removed the manual expansion, leaving the internal one.
Same results on output however
Where are you trying to use it?
Few days ago i said that redisbungee placeholders are taking a really long time to update, (more then a minute)
despite having set it to update every 5 seconds, i tried multiple fixes and config changes, but the %redisbungee_total%
placeholder doesn't want to update quickly, i also tried this one
%math_{redisbungee_hub1}+{redisbungee_hub2}+{redisbungee_SMP}[precision:0]% while it does show the player
count correctly like the other one it also takes the same amount of time to update, has anyone experienced this in the past and
have any fixes for it?
have you tried parsing the placeholder Wicked
Fly, did you set the update interval correctly ?
Where are you trying to display it btw
No, i had not, I'll try now
@brisk coral
Seems that parsing returns an empty value for points. No 0.0 or anything like that, just a blank line
@dark olive
Please be patient and don't ping helpful or staff members!
@tender vapor
[PlaceholderAPI] Plugin PlaceholderAPI v2.10.4 generated an exception while executing task 23
java.lang.NullPointerException: null
at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager.lambda$null$3(ExpansionCloudManager.java:181) ~[?:?]
at java.util.Map.forEach(Unknown Source) ~[?:1.8.0_221]
at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager.lambda$fetch$4(ExpansionCloudManager.java:172) ~[?:?]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot.jar:git-Spigot-065a373-763e560]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54) [spigot.jar:git-Spigot-065a373-763e560]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_221]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_221]
at java.lang.Thread.run(Unknown Source)
What's wrong?
thanks
@glad hemlock Seems your server is having a bit of an issue access our api (api.extendedclip.com)
Possible ur firewall is blocking it
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.
@balmy marten oh thanks ^^
sorry for the late reply didnt realize you were talking to me, yes im certain ive set the update correctly, and im trying to show it on a scoreboard, but i also tried showing it on a diffrent plugin in the server selector compass and it has the same update speed @brisk coral
perhaps try setting the update interval of the scoreboard
installed the Pinger expansion and ping the bungee and that updates instantly, its probably not the most efficient thing but im not sure
at least it works, so if i dont end up finding a fix for it then ill just use that
- '[player] server customskyblock'
this doesn't work to connect to my other server, any idea why?
calling PlaceholderAPI.unregisterExpansion(PlaceholderExpansion) in onDisable results in java.lang.IllegalStateException: ExpansionUnregisterEvent may only be triggered synchronously.
Any way to solve it ?
Can you please open an issue about this with all the info in the GitHub repo? so it gets fixed soon (hopefully) https://github.com/PlaceholderAPI/PlaceholderAPI/
I would like to, however the issue was reported by one of my users and i forgot who and i only have a stack trace, not even PAPI version or any other info that will be required to post it on github.
ParseOther doesn't work with OnTime, the regular OnTime command allows offline players, but the placeholder doesn't when used with ParseOther.
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
@austere hawk
No, it's just empty.
you say OnTime works with offline?
yes
the command or the placeholder
type /papi parse <player> <placeholder>
just did and it's empty
because if OnTime expansion doesn't support it, it won't work with ParseOther either
I'm using customenchants ftop plugin. The placeholder for FTOP is not working in chatmanager. I've had both Devs from each plugin looking but no one knows why. Anyone got any suggestions?
Hey so I am the owner of PlatinumHubCore (a hub core) and I have added papi 2.10.4 into my Maven dependencies. Users cannot use placeholders in 2.10.4, but they can in 1.9,2. Is there a reason behind this?
Mind explaining what you mean by can't use placeholders?
First of all, there's no reason for anybody to use other versions than the latest of papi.
also poggers ^
2.9.2 sorry
And This is what it looks like in 2.9.2:
This is 2.10.4:
https://gyazo.com/480e95216cbbefbf86694c570fff9c7d
Bungee extension installed for both, restarted server to no avail
Same for all placeholders?