#placeholder-api
1 messages ยท Page 184 of 1
there seems to be a problem with one of your expansion. I believe it might be the enjin expansion.
do you have the Enjin plugin? if not delete the expansion
how do I delete it?
ah
all works thanks
no problem
Hello, how can I use placeholders in signs? Thanks
I don't know if there's plugins that do that. PAPI doesn't do that by default. you'd have to find plugins that do that
Ok, thanks
oh @upbeat bridge found one: https://www.spigotmc.org/resources/placeholdersign.74425/ you'll have to test to see if it works on your server tho as I've never used it before
Hey, does anyone know which placeholder can show me the version of the player he is playing on?
well if you use viaversion they have an expansion
hmm. the expansion just returns what via version gives. make sure you're using latest viaversion version and also correct protocollib version
Hello again, is it possible to add an alias to a plugin placeholder?
thanks
nvm, thanks
Good afternoon. I'm getting this error while working on a new server build, and could use some help. Thank you in advance! https://paste.helpch.at/faxunefihe.bash
It seems to be one of your expansions thats broken. not 100% sure but I'd recommend you remove the expansions 1 by 1 and see if it stops happening and when it stops happening you've found the problem expansion
you can find the expansions at plugins/PlaceholderAPI/expansions.
The line just above the exception is mcmmo loading. Is there a known issue with that plugin conflicting?
well its not the plugin necessarily. its probably an expansion
Okay, I will do a little tinkering and see if I can narrow it down. Thank you very much!
Well, that directory appears to be empty. Hard to disable anything there heh. Any other advice??
when does this error show up? is it a specific time? maybe when you execute a command?
During bootup of the server
will open a PAPI issue about this. or you can if you want and I am going to add a comment with what I've fund so far. like I've found where it happens but dk why for sure.
before I Do that can you try using this version of PAPI? https://ci.extendedclip.com/job/PlaceholderAPI/
I appreciate that. I should add that it is intermittent. I rebooted to see if I could duplicate, and it didn't do it. I will cycle through a few more and get back to you. Thank you very much for the help
Sure, I will download it and prep it in a few minutes
So, cycled through ten more boots. Couldn't replicate the problem. I'm going to guess it was just a hiccup. If it happens again, I will come back. Thank you again though.
alright. and no problem
is there a placeholder / placeholderapi supported plugin that allows me to put the name of the server im in without me having to update it automatically? Cuz I am gonna have a bungeecord tablist where the tablist runs through all servers instead of me having the TAB plugin on all servers and if it says "You are currently on Hub" even tho ur on skyblock, it will look weird. Anyone know a placeholder that shows the name of the bungeecord realm im on?
or
is there a plugin
where i can put an announcement on lets say the tablist without me manually going into the config and adding an announcement?
Hello! I just updated PAPI to the latest version on my 1.17.1 server, but the expansion of javascript get broken
update it.
?
update the javascript expansion
ofc I did
can you do /papi dump and send the generated link over?
I get this error when I try to parse a JS placeholder https://haste.mineaqua.net/ejeyujeyoq.rb
how can i edit placeholdersapi expansions ?
which program ?
I moved to quickjs and now it's working, but the problem apparently was nashorn
Yes, Nashorn was removed after Java 15 16 or 17.
did not know, thanks Glare
well its shaded in. so it should've still worked. but idk
dude pls reply my quesiton ๐
ugh. you can use any ide you want. IntelliJ is a good one for example
as long as you have the source code that is
thanks
yo @vivid sparrow do u remember what the way of getting a PlaceholderAPI class was in the js expansion?
because for some reason PlaceholderAPI.static.setPlaceholders doesn't work anymore (including using the nashorn engine instead of quickjs)
I remember there being no way to actually get it using QUickJs but am using nashorn rn but don't remember what it was
ok. found this var papi = Java.type("me.clip.placeholderapi.PlaceholderAPI"); but apparently that's not a class. https://paste.helpch.at/unizijiqob.md
seems to work for other clases tho. tried for Statistic and it works
ok wow... now PlaceholderAPI.static works
I have a question regarding localtime, for some reason i am not getting English dates when trying to get day of the week but rather in my language which i do not want, do you know from where does it pick up the value?
I am pretty sure it just takes your timezone and finds your java Locale from there automatically.
So if i parse the value it has a chance of being different to other members?
Like i created a small view requirement that is checking if the day is same as string value "Friday" then it will show a menu every friday but this is getting every users locale that means for me it will not work because it will translate to my language?
I believe that might be true.
but you know you can use the time formatting to actually get the day of the week as a number right? so 1 to 7
and just compare that
u is the format
you can see the other formats here: https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
Yeah you are correct, thanks ๐
Hey, anyone has a javascript converter from minutes to time format?
I mean making one shouldn't be that hard. unless you want to use like special time formats like dd/MM/YYYY HH:mm
in that case you could possibly use Date
no no I mean using a placeholder that prints minutes, and convert it to hours/days depending on the minutes that the placeholder returns
well that's not hard to do then?
function formatMinutes(minutes) {
var hours = minutes >= 60 ? minutes / 60 : 0;
var days = hours >= 24 ? hours / 24 : 0;
minutes %= 60;
hours %= 24;
return parseInt(days) + "&fd&e " + parseInt(hours) + "&fh&e " + parseInt(minutes) + "&fm";
}```
Much appreciated Blitz! ๐
and if I want to implement that with that placeholder (%autosell_global_multiplie_minsleft%)
I just have to create a var?
you just literally call
formatMinutes(parseInt("%autosell_global_multiplie_minsleft%"));```
well before it.
it's showing like that
formatMinutes(parseInt("%autosell_global_multiplie_minsleft%"));
function formatMinutes(minutes) {
var hours = minutes >= 60 ? minutes / 60 : 0;
var days = hours >= 24 ? hours / 24 : 0;
minutes %= 60;
hours %= 24;
return parseInt(days) + "&ed " + parseInt(hours) + "&eh " + parseInt(minutes) + "&em";
}```
what does /papi parse me %autosell_global_multiplie_minsleft% return?
ups, there was a mistake on ecloud extendedclip api
its showing multiplie instead of multiplier
but works now ๐
btw, there is a way to hide days, hours if there are only less than 60 minutes left?
Is there a way to change yes/no to true/false in a placeholder?
Please respect the rules, be patient and don't ping staff members!
hi, why is this not working? "%player_has_permission_permission.test%" (JavaScript PAPI)
hello
Hey, is there a different way to display amount of players in a server then the %Bungee_server% placeholder?
Also, i kinda didn't get this to work
Please respect the rules, be patient and don't ping staff members!
oh lol
Like is there a way to specificy wich bungee to look at?
not enough information
redisbungee ig
Yea, failed to make a database for it-
hey my discord wont work and I need help
Ok
when i reset everyone's balance, the placeholder still shows the previous one even tho i reloaded the plugin several times.
im currently using ajLeaderboards's placeholders to create a leaderboard
I am having an issue with deluxetags placeholders in my chat.
Caused by: java.lang.NoClassDefFoundError: me/clip/deluxetags/DeluxeTag
at com.extendedclip.papi.expansion.deluxetags.DeluxeTagsExpansion.onRequest(DeluxeTagsExpansion.java:88) ~[?:?]
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:161) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98) ~[?:?]
at me.oncode9.lpc.LPCPlugin.onChat(LPCPlugin.java:77) ~[?:?]
that happens whenever a player types in chat. The placeholders I have tried to use so far: %deluxetags_tag% {deluxetags_tag} and %{deluxetags_tag}% nothing works...
DeluxeTags no longer requires an expansion! Go to plugins/PlaceholderAPI/expansions and delete the DeluxeTags expansion. Restart the server afterwards.
^ worked, thanks
well ajLeaderboard stores their own data. you'd have to delete aj's database for that.
Ok
Is there a way to have a placeholder pointing towards a vanilla objective?
hello I want this but with the economy of reborn jobs (the points)
left_click_requirement:
requirements:
money:
type: has money
amount: 25000
well that uses vault. so if you can somehow make the points your main vault economy then you can. if not you can use another requirement like >=
left_click_requirement:
requirements:
money:
type: '>='
input: '%jobsr_user_points%'
output: 25000```
This expansion seems like what you want? https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/placeholders#scoreboardobjectives
I've tried that but the result comes out as 0.
Please respect the rules, be patient and don't ping staff members!
Using objective_scorep_<Competition> and the score is set to 0.
I think the scoreboard objective for the calling player. might cause it to not work as I'm calling it via namelessmc.
Hey, I'm getting an issue where placeholderAPI Javascript expansion not working, it worked earlier but now it doesn't
here is the console error:
https://pastebin.com/FSAakPCv
My server version: 1.16.5
my paper version: git-Paper-790
Hello
Can someome tell me why its not working? 1.18.1 Paper
https://imgur.com/a/b1ypSjQ
i have installed extensions math and statistic
when i do something like %math_4/2% it works
i copy pasted even this command with downloaded player extension and nothing โน๏ธ
Please respect the rules, be patient and don't ping staff members!
oh
i checked /papi parse me %math_0_{statistic_mine_block}/2% and... works, but why hologram not?
Where do I need to look into setting mob spawners to instead spawn ores like diamond. iron, etc instead of mobs?
btw here is my error on the helpch website:
https://paste.helpch.at/eyobeyusox.sql
The plugin (or program) you are trying to use was compiled using a newer Java version than the one you using.
To find what version you need, start from 52 which is Java 8 and for example, 60 is Java 16. (8 + 8 = 16 => 52 + 8 = 60)
you have 2 options. you either update your java version (recommended) or you downgrade the javascript expansion. if you do not know how to upgrade java just google How to update java on **INSERT OPERATING SYSTEM HERE**
google Ore Generators I guess? this is a very weird use case so I doubt you'll find many if any plugins to do exactly this.
what hologram plugin do you use? if you use HoloraphicDisplay make sure you're on the latest version as they just added PAPI support. On older versions you do need to have an addon for it to work.
not sure I'm afraid. never used the expansion so don't exactly know how it works and its the only one that deals with survival objectives at least only one I know of.
I've tried to, but my server can't take it, I'll take the second option, how to downgrade the javascript expansion?
on my imgur link are all hologram-type plugins
Please respect the rules, be patient and don't ping staff members!
I hope you can help me because it really breaks my server features and I can't upgrade my Java version because my server will not load up
Why when downloading listplayers from ecloud it doesnt shows as hook ?
Please respect the rules, be patient and don't ping staff members!
explain a bit
use PlayerList
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
/papi parse me %player_name%
what does it return
Where are you trying to use it that it isn't working?
if you don't then I can't help you...
you need holographic extension for holograms, do you have it?
I couldn't find a resource with the name or id of holographic extension
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
I would recommend asking on their discord about that
for the decent holograms
because it works in /papi parse
so if it doesn't work when you put it in the hologram then...
?startuplog
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
But listplayers offer option which better suits my scoreboard
oh?
you can try manual download https://api.extendedclip.com/expansions/listplayers/
listplayers was unverified because playerlist was a better replacement
that can do everything listplayers can, and more
what version of placeholder do I need for 1.16.5
Are there requirements for expansions to be added in eCloud?
not really no. just make sure the expansion actually makes sense being an expansion
if u want the expansion to be verified, then there would be more requirements
latest is good
which requirements?
idk all of them myself but ik that the expansion name needs to match the getIdentifier() method and ur code would be checked just to make sure theres no dodgy stuff going on
๐จ A user has been banned for using plugin leaks, be like me and use legit copies of plugins.
dodgy stuff means malicious code or bad code
whooo xD
yeah malicious
Is it possible and if yes if someone is willing to help me make a small "script" inside placeholderapi that will start the counter when there are no players on the server and run a command after x amount of time passes of empty server
Unless you have something that can constantly call the placeholder, you can't do it
you would need to make a full expansion
Is that what you want?
the placeholder is easily made in java, not in a javascript placeholder though
Are you going to actually need a placeholder? sounds like a basic plugin to me
;)
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
Is there a specific or general reason this could occur even though PAPI is loaded before the plugin trying to register placeholders java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.expansion.PlaceholderExpansion.getPlaceholderAPI()" is null
paste this on https://paste.helpch.at/ and send the link
When i download it manually and reload papi still dont hook it
Please respect the rules, be patient and don't ping staff members!
The plugin most likely shade the papi api inside its jar
if it is made by / for you, use compileOnly (gradle) or <scope>provided</scope> (maven) for the PAPI api
please.. I still need help downgrading the Javascript expansion to Java 8
go to plugins/PlaceholderAPI/expansions delete the javascript expansion jar (or jars if there's more), do /papi reload then do /papi ecloud download javascript 1.6.0 then /papi reload
OMG it's working, thanks for helping!
๐
How do I add PAPI as a dependency to my project?
could someone answer ๐ ?
Is PlaceholderApi plugin present only for paper / bukkit engines, except bungee? Because I can't run the plugin on bungeecord. https://paste.helpch.at/luveqecija.cs plugin version: PlaceholderAPI-2.11.1
Yes, it is a spigot plugin.
is there somewhere, a bungee version?
on some github? I searched and only found expansion for ecloud
okay okay
Do you have an estimate of when it will be officially released?
Please respect the rules, be patient and don't ping staff members!
Hey, I need help with ParseOther
%parseother_{emilyrose9}_{vault_eco_balance_formatted}%
This is just displaying my own balance
Hi anyone can help me when i try to do this
/papi parse me %jobsr_user_jtoplvl_Mineur_1%
it's don't work
What plug-in are you using?
thank you i forgot the <scope> tag
For this I use cmilib jobs reborn and papi
Correct me if i am using this placeholder wrong
but when using
%world_isgamerule_<gamerule>_<world>% it is always giving me false value
and i use %world_isgamerule_doFireTick_world%
Hello. Is there a way to store placeholders values to database? TY
About checkitem
How do I get it to work if I have one material paper with itemname, and one material paper without itemname, but both should be checked separately.
"%checkitem_mat:PAPER,nameequals:&eTest,loreequals:&8Testlore,amt:1%" "%checkitem_mat:PAPER,amt:4%"
Customitem
Vanilla Item
With Papi alone, no, with a custom plugin and papi, yes.
is there a placeholder
that shows what item name is used for killing player/mob
??
if you're trying to check without a name try the strict modifier
It will make it so it HAS to match default values OR what you supply
So I would like to query both (trade item).
Unfortunately, the second variant also includes the customitem. With "strict" I also get a "false" "%checkitem_mat:PAPER,amt:4%" out.
how did you use strict? Does the item have ANY other data?
item1: type: "string equals" input: "%checkitem_mat:PAPER,nameequals:&eTest,loreequals:&8Test,amt:1%" output: "Yes" deny_commands: - '[sound] entity_villager_no' item2: type: "string equals" input: "%checkitem_mat:PAPER,amt:4,strict%" output: "Yes" deny_commands: - '[sound] entity_villager_no'
lmao I love the deny commands
so 100% it's just a vanilla piece of paper?
do you have more than 4?
You might be wanting to use a comparator operator with the amount placeholder
type: '>='
input: '%checkitem_amount_mat:PAPER,strict%'
output: 4
maybe
Yes, only the vanilla item should be checked. But not the custom paper item
Ok that would work. And if I want to subtract that? # - '[placeholder] %checkitem_remove_mat:PAPER,strict,amt:4%' Is there then also another solution?
@tawdry pecan
Oh, yes, I think it works. I was just confused. If not, I'll get back to you. Thanks for the good support!
Hello, I was wondering if I can create a variable of placeholders api in the config file. Just doing something like this %variable_custom% = helloworld
Please respect the rules, be patient and don't ping staff members!
[00:37:05 INFO]: 12 placeholder hook(s) registered! 2 placeholder hook(s) have an update available.
how i update?
is there a placeholder that when i enter something, it retypes it as all lowercase?
@smoky spoke 
tysm ๐
also just curious, is there somehow a placeholder that checks the custom model data number of the item you are holding?
you can check for item's WITH a certain model data with that 
oh wait, I forgot I did just add a new placeholder to get info of items as well!
but I don't think it works with inhand yet
take a look and let me know if anything works for your needs @smoky spoke
well, i know this option
seems like there's no placeholder can parse me the custom model data of the item im holding for example
i don't really need it. just asking if it exists.
thank you
well if you're looking for it, surely there's a need
I can add it for mainhand and offhand really quick @smoky spoke
ow ok
but what's the checkitem option for it tho? don't see it on the docs. i only see an option that tells me if im holding "an item with custom model data of 100" for example
can you perhaps give me an example so i can use it as reference?
%checkitem_getinfo:<slot>_<modifier1>,<modifier2>,<...>% - Returns information about an item in a slot. Returns information in the same order listed on this wiki. List is seperated via " &r" (Ex. %checkitem_getinfo:0_mat:)
this should've been done, but I ran into a weird issue
aha, I messed up my build path at one point, all fixed now
@smoky spoke #ecloud-updates
example: %checkitem_getinfo:mainhand_custommodeldata:%
probably gotta manually download it
?checkitem
ok tysm!
๐ hope it helps
knowing the getinfo will help me so yes
it will help
noice
when i do /papi reload nothing happens. can somebody help me?
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
hello, is there expansion for animated gradients?
This isn't the full log, seems to only be the last few lines
i think it is the full log
there's nothing else in there
Does /papi return anything?
it doesnt give a link..
What does it do?
hmm... really going to need the full log
restart your server and grab your latest.log
oki
should be a few hundred lines or so
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
this should be it https://paste.helpch.at/rajotayogi.sql
when i do /papi reload this appears in console:
[09:37:09 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing... [09:37:09 INFO]: [PlaceholderAPI] Fetching available expansion information...
Wondering if its having issues reaching our api
Can you download expansions via the ingame commands?
/papi ecloud download server for example
k now im really confused
papi is being racist
either that or some other plugin is doing some funky stuff
[09:30:47] [Server thread/INFO]: [WolfyUtilities] - PlaceholderAPI : Integration is async. Enabled once done loading!```
seems scary
the heck is wolfyutilities
Your server lol
A lib most likely
it's some kind of denizen addon or smt
but dont need so i removed it
removed it and still doesnt work :/
with a full restart?
yes
:/
Will be painful but you could try removing everything besides papi and core plugins like essentials / perm plugin
just to see if it will load correctly
then slowly add stuff back till it breaks
Split the plugins in half and then try. Then split again in half the group where the problem is located, and try again
hmm wonder what it is
Hello, why i receive so many errors related to math extension. Whats wrong with + and /?
https://imgur.com/dppBz4y
try math_0:_
not actually needed btw.
the problem seems to be at least in the first one that {statistic_sprint_one_cm} returns an empty string
same for walk one cm
so it tries to evaluate this: /100+/100
well that's what is happening with the others as well
seems like your statistic expansion might be broken
Hello, i was trying to make an javascript with papi but I dont know how to make this works
sellprice_dirt = 1000;
function pucharseprice_dirt() {
return buyprice_dirt;
}
function tradeprice_dirt() {
return sellprice_dirt;
}
pucharseprice_dirt();
tradeprice_dirt();```
function pucharseprice_dirt() and tradeprice_dirt gives me the same value (1000)
Hey, trying to have a placeholder %revblocks_blocks%
Yet when I use it in game it doesn't work, code:
I want the placeholder to be used by other plugins
are you registering the expansion? you need to register the expansion yourself if its built inside a plugin.
in your onEnable add this new BlockPlaceHolder().register();
Hello i was coding some placeholders but the api of placeholders its not working well
var sellprice_dirt = 1000;
function pucharseprice_dirt() {
return buyprice_dirt;
}
function tradeprice_dirt() {
return sellprice_dirt;
}
pucharseprice_dirt();
tradeprice_dirt();```
i have this setup and this code works in any compiler but not in minecraft
How can i parse placeholder in placeholder with /lp parse command?
like papi parse username %variable%
give me example
/papi parse me %lpextra_group_weight_{luckperms_current_group_on_track_rank_male}%
this doesn't work
what errors are you getting in the console
i have no error on console
try /papi parse Pledix %lpextra_group_weight_{luckperms_current_group_on_track_rank_male}%
you can't use papi parse in console
no i am type this command in game
are you putting your username ?
yeah
mmm, i don't know what is bad there
maybe papi parse command doesn't support using placeholder in placeholder
or something else
maybe
Is there an example where placeholder is used in placeholder? If so can you send it?
i never see luckpers placeholder inside other but in math placeholders there is something like this
do you have setup LuckPermsMVdWHook.jar
maybe placeholder is something special this variable thing
I am using LuckPerms and PlaceholderAPI
i don't need this .jar
in the github says that you need it
this will always return 2000. bcz it will get to the first function call aka purchaseprice_dirt() and return the output from that.
I don't think lpextra is a luckperms placeholder?
its posible to make the script works?
actually its works alone
work how tho? what are you trying to do exactly?
i need group weight by specific track
can you show the code then?
im trying to do in the same .js define all my custom placeholders but its not working
if papi doesn't support it I will have to wait for the variable pattern myself
but if you do it with js compiler with console.log it works
support what exactly? placeholders inside placeholders?
yeah
well that's not PAPI's job. that's your expansion's job. you have to parse the input thru the bracket parser
PlaceholderAPI.setBracketPlaceholders(Player, input);
no it is not. and its all good
the problem is that you can only return 1 string with the js expansion. that's how placeholders work. you can't return 2 outputs at the same time.
okey
hey, papi don't update bungee placeholder to 2.0
thanks this was to simple
Please respect the rules, be patient and don't ping staff members!
I get this error,
[Server] Server thread/ERROR Could not pass event PlayerJoinEvent to JoinPlugin v1.0-SNAPSHOT
[Server] INFO java.lang.NullPointerException: null
[Server] INFO at me.hyperburger.revblocks.placeholders.BlockPlaceHolder.onRequest(BlockPlaceHolder.java:45) ~[?:?]```
Please respect the rules, be patient and don't ping staff members!
@Override
public String onRequest(OfflinePlayer player, @NotNull String params) {
// %revblocks_blocks%
if (params.equalsIgnoreCase("blocks")) {
return String.valueOf(userHandler.findUser(player.getUniqueId()).getBlockCount());
}
return null; // Plac
}``` Its returning null for some reason
User Handler can't be null since I am using it on different stuff and it works
is it possible for params to even be null? 
Show the full class
I think its the player that is null
Well, yea
debug
It is nullable
Since you can have placeholders that dont depend on a player, e.g. server expansion
How do you parse the placeholders?
And also this
Nah
register?
That's my code on the onEnable method
// PlaceholderAPI
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null){
new BlockPlaceHolder(userHandler).register();
} else System.out.println("PlaceholderAPI is not installed.");```
ohh duh it's inside a plugin
Yeah
That shouldnt be an issue
Yeah so when I /papi parse me %revblocks_blocks% I get the same error, no debug message too
public String onRequest(OfflinePlayer player, @NotNull String params) {
User user = userHandler.findUser(player.getUniqueId());
// %revblocks_blocks%
if (params.equalsIgnoreCase("blocks")) {
if (user != null) {
return String.valueOf(userHandler.findUser(player.getUniqueId()).getBlockCount());
} else {
System.out.println("User is null!, debug message");
}
}
return null;
}```
check if the player is null
Is it located at the top of the method, before getUser ?
Oh, it was under, let me check again
Same error, no debug message
Isn't there a request method that requires Player instead of OfflinePlayer
No, but you can get the player from an OfflinePlayer
Can you send your main class?
Yes
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
Use ours please
system.out.println ๐ฌ JavaPlugin.getLogger
What did I tell you ๐คฃ
Nah just kidding
Because thats the proper way, especially in long term
Paper even has a warning for that on newer versions xd
noice
Aight I will use this from now on
What I want is spigot to enable the debug level :(
f
Hello, my server is crashing when I try to use quickjs
but the problem is, when I use nashorn, there is a memory leak apparently and long GCs
currently minecraft 1.17.1 and java 17
PlaceholderAPI version 2.11.1
[19:35:05 WARN]: [PlaceholderAPI] Task #882 for PlaceholderAPI v2.11.1 generated an exception
org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
at org.bukkit.plugin.messaging.StandardMessenger.validatePluginMessage(StandardMessenger.java:544) ~[purpur-api-1.18.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_18_R1.entity.CraftPlayer.sendPluginMessage(CraftPlayer.java:1709) ~[purpur-1.18.1.jar:git-Purpur-1467]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.getServers(BungeeCordExpansion.java:108) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion.access$100(BungeeCordExpansion.java:45) ~[?:?]
at com.extendedclip.papi.bungeeexpansion.BungeeCordExpansion$1.run(BungeeCordExpansion.java:201) ~[?:?]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.18.1.jar:git-Purpur-1467]
at org.bukkit.craftbukkit.v1_18_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[purpur-1.18.1.jar:git-Purpur-1467]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1571) ~[purpur-1.18.1.jar:git-Purpur-1467]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:516) ~[purpur-1.18.1.jar:git-Purpur-1467]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1494) ~[purpur-1.18.1.jar:git-Purpur-1467]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1282) ~[purpur-1.18.1.jar:git-Purpur-1467]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[purpur-1.18.1.jar:git-Purpur-1467]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Multiple bungee expansions loaded.
Go to plugins/PlaceholderAPI/expansions and delete all the BungeeExpansions, then execute a /papi reload. After that redownload the expansion using /papi ecloud download bungee then /papi reload.
I seem to be incompetent and not understanding something, so I have Placeholder API, and I downloaded "Player" library from e-cloud and reloaded. But when I try this command %player_has_permission_<permission>% or %player_has_potioneffect_<effect>% they don't work. The effect placeholder gives me internal errors and the permission one comes back as "yes" all the time even though the perms im querying dont exist.
Remove the <>
did that haha
i put in a perm after permission_ without the <> and it just says "yes"
thats how it's supposed to work right?
b/c I put, permission_role.role2 which is a perm ik doesn't exist. and I'd expect it to say "no", not "yes"
Are you opped?
Yeah, If your opped itโs gonna say yes as OP has all perms
incredible
what about the potion effect placeholder? that one stills gives me an internal error
and im definitely writing in a valid potion effect
welp I cant upload a .txt of the error, but I am on Paper 1.16.5
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
d;1.16.5 PotionEffectType
public abstract class PotionEffectType
extends Object```
PotionEffectType has 1 sub classes, 32 fields, 15 methods, and 1 extensions.
Represents a type of potion and its effect on an entity.
Enchantment wtf
run those commands to make sure you're on latest expansion version
you've never heard of %player_item_in_hand_level_<enchantment>% cuz I see it on the github wiki under "player" section
and all my plugins are up to date
there's an enchantment for on hand and off hand
wait are you talking about the potioneffect placeholder or is that error for the enchantment placeholder
the error link I gave you was for enchanements, but the same error occurs with potioneffects
my bad lmao ive been up for too long trying to figure this and other MC related things out ๐
what exact placeholder are you using
^
Still, at line 159 there's nothing
Make sure you have the latest version of the player expansion
I'm using %player_has_potioneffect_<effect>% atm
what effect
any effect, but I see the issue
I was typing a valid effect
but they have to be ALL CAPS
sigh
same with the enchantment command, it works now
I didnt know you had to cap every letter
Will try to rewrite the player expansion at some point
No pressure haha, I keep forgetting MC is weird about that stuff.
Thanks for guiding me to an answer tho!
Make sure next time when asking for help to give important details like what placeholder you're using! ๐
Makes things a lot easier if we can spot the problems you might not see or recognize AS a problem
heard, thanks you guys ๐๐ฝ
hello
sorry for replying u
could you give me a hand? :D
never used quickjs
or maybe I have ๐คทโโ๏ธ
but I don't know enough about it
you can try the latest dev build of papi https://ci.extendedclip.com/job/PlaceholderAPI/
no idea if it'll help tho
the thing is, the big difference in server memory GCs if I use nashorn or quickjs
icic
I'm trying to download the math placeholder but its telling me Failed to find an expansion named: Math
Are you doing /papi ecloud download Math
yes
Hmm okay, try downloading it here and adding it into your placeholderAPI folder https://api.extendedclip.com/expansions/math/
๐ thanks
Yup! Let me know if that works
Yup!๐
Possibly try doing /papi parse me <placeholder> to check
I see now
Note that the % can't be used within the placeholder and that you have to use [prc] instead.
[prc] is for using an actual percent side (modulo)
ahh ok thx
{placeholder} is for parsing placeholder
everything works now thx a ton!
Registration is currently locked. If you feel it is necessary to create an account, please join our discord and get in touch with us.
๐ญ
Message funnycube#0001 an email and username @untold adder
what are the placeholders in the "chatty" plugin?
Which placeholders are needed?
is it possible to handle a new placeholder async? if i would leave it sync it could freez the server some ticks
No
there is a way to talk with the author?
Please respect the rules, be patient and don't ping staff members!
what is the getIdentifier in the api class PlaceholderExpansion?
like whatever placeholder starts with it?
i see now,thx a lot!
no, what exactly are there placeholders?
hello, sorry to bother you.
I have a problem launching PAPI during server startup.
It shows me this error and I don't understand where it comes from.
The version is the latest and the server is in 1.18 (knowing that I had the same error in 1.17 but that I had left like this:x)
if anyone can help me
sorry for my bad english (google translate)
https://paste.helpch.at/hiviravuru.md
What is %essentials_safe_online% placeholder
Same problem pls fix
it gets the amount of players that are online without counting the hidden players
Tx
seems to be from the Server expansion. You need to update it. go to plugins/PlaceholderAPI/expansions and remove all expansions named Server. Then do these commands in order: /papi reload, /papi ecloud download server and /papi reload.
well the author is not around. the plugin is maintained by the community. you can talk with them thru an issue opened on the github I guess. tho I believe they encourage you just talking in this discord
you should really be asking the author of the plugin these questions. but here went thru the code of the plugin myself to find them:
%chatty_cooldown%
%chatty_current%
%chatty_online%
``` and it seems like they all support a player name after as well so for example `%chatty_current_BlitzOffline%`
but again, it should be the developer's job to document that. you should ask them to update their wiki or something
can i put a placeholder in a placeholder?
in what placeholder
from some plugin
i want to do something like this
%quests_q:%quests_started_list%:info%
so basically i want to get info about the current started quest for the player or smth like that
use {} instead of %% for the inner placeholder
so %quests_q:{quests_started_list}:info% should work
well it will only work if the quests expansion supports nested placeholders.
each expansion needs to add support for that and if it does not, you can't use placeholders inside placeholders.
I was actually wondering about that
doesnt seem like it does
would there be any other way i could do something like that?
well you have like 2 options really:
- (BEST) get the dev to parse bracket placeholders
- Use the javascript expansion
Is it possible to make a custom placeholder?
In the configuration for one of my plugins obviously it has a placeholder, but there's no expansion for that plugin
You can use expansions like Javascript or Kotlin to create custom placeholders in those languages
where would that be I can't find it
# - %level%
# - %player%
# - %xp%
# - %procent%
# - %xplevelup%
# - %maxlevel%
# - %ismax%
# - %permission%```
I believe they asked a question. different from yours
lol
im gonna explain better
How do I show the level of the player (I'm using levelsystemapi which doesn't have a placeholder) on my spigotboard
if it doesn't have placeholders you have to make your own java expansion and try and somehow get the data from the api. but you'd need to know java for that.
how to update
a placeholder ?
my JS doesnt work and placeholderapi says there is a placeholder
that is update avaliavble
/papi ecloud update EXPANSION-NAME
can you do /papi dump and send over the generated link?
seems like a lot of your expansions are not working. can you restart the server and send over the startup log?
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
y
are there any tutorials on yt
maybe. not sure. never really looked for one. and there aren't any official ones if that's what you're looking for.
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
Go to plugins/PlaceholderAPI/expansions/ and delete the quest expansion (all of them if there's multiple) then do /papi reload.
restart the server and send a new startup log
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
this time seems to be your levelpoints expansion. try removing that one
hm
when i updated
paper
2 days ago
it broke
ok ill remove it
nah still
script doesnt work
:/
/papi reload and send the output from the console
my plugin for level that is for script is working
but the script doesnt
oh wait
can you generate a new papi dump?
oh
thats
script for tags
`var tag = "%deluxetags_tag%";
function tagFormat() {
return tag === "" ? "" : " " + tag;
}
tagFormat();`
now it seems not working
can you do /papi dump again please? and send the generated link over?
DeluxeTags no longer requires an expansion! Go to plugins/PlaceholderAPI/expansions and delete the DeluxeTags expansion. Restart the server afterwards.
what does /papi parse me %deluxetags_tag% return?
placeholder
no. the placeholder should be the same
did you restart the server as requested by barry?
๐
Hey why does Deluxe Tags not work for essentials chat with the new update of PAPI?
ah nevermind, Just needed to disable papi_chat:
where did u see papi chay i cant find it lol
in config.yml of deluxetags
oh maby as i had the old version it wasnt a option ill check as ive updated ty
yeah its in the config, honestly you can prob just copy what I wrote into the config to fix it
just make sure to add false after it
you need to have it enabled tho if you use LPC.
Is there any chance this plugin would cause chunks with command blocks in them to disappear for bedrock players ?
Itโs the most recent updated plugin on my server and for some reason all command block chunks are completely gone for bedrock players
Yo I'm trying to use the Plotsquared placeholders in my scoreboard and theyre not working?
Have you tried /papi ecloud download PlotSquared
And then doing /papi reload
You helped me realize my plugin was glitched and needed a fresh install through attempting the /papi command. thank you
Yup
I try yo put player online on holographic display on bedwars lobby but it dint work and Ik it's about placeholder bc i asked the creator of holographic and said to go here
What specific placeholder are you using?
Placeholder api
PlaceholderAPI javascript not working on version 1.8.8 java 8
which placeholder
Wdym by dat
%player_list% or %player_dick% etc
Is there a placeholder that will count the time (for example 5 minutes)
Hello ๐ I am currently facing an issue with the plugin, where I am getting spammed with error logs. Is this the right place to ask? Or is there a dedicated ticketing system?
Ask away
...did the bot just reply to me like that? Ok anyway. So I have just upgraded my server to 1.18.1 and all of the plugins, and I've noticed that now I am getting the error
24.01 12:19:40 [Server] WARN [PlaceholderAPI] Task #450 for PlaceholderAPI v2.11.1 generated an exception
24.01 12:19:40 [Server] INFO org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `BungeeCord'.
This issue seems to be happening on all the servers that I have on the backend that are connected to my BungeeCord proxy server
Go to expansions folder and delete the extra bungee expansions
oh. I completely forgot to answer this lmao
the message was still written in my message box but didn't send it
oh, ok i just saw them
seems that one of them is written as Bungee and the other one as bungee
is it a bug that it doesnt just override them?
that seemed to have fixed the issue though ๐
the problem is that at some point the expansion changed its name on the ecloud. and the ecloud names are case sensitive so it considers bungee different than Bungee. It would require a lot of rewriting for that to be fixed I believe (this is just from what I've heard. never actually looked into this myself)
im looking for a placeholder that would count from 0 to 100 and repeat
what is the placeholder to show how many players are online?
%server_online%
does that work with the essentials motd
how do i use my custom placeholders in a dif plugin, ik it has something with the persist()
i think xD
is there a essentials command cooldown placeholder?
Hi, I updated PlaceholderAPI, vault and economyplus to the last version, now my console is flooded :
https://pastebin.com/YCK6cXrS
try removing the extensions you have downloaded and redownloading them in PlaceholderAPI
please help me
i have a plugin Leader Heads 3.1.8.3 And PlaceHolderApi 2.9.2, i create a hologram with top kills and deaths, but kill and deaths always stay in 0, i dont understand please help
When I start my server I get this message about placeholderapi in console and placeholders don't work
https://srcb.in/69N4SQtJ9A
Install vault
you have the vault expansion installed but the plugin is not installed
or delete the vault expansion
I removed it from my expansions folder earlier cuz I didn't have vault but nothing changed so I'm trying by installing vault rn
whats the placeholders for kills and deaths of a player
@twilit venture ^
i'm using the command /papi unregister mcmmo however, when i reload, it's still there
as is plugin which i've unregistered
and they seem to not be removed
keeps telling me i still have two placeholders to update
Try removing the actual jar in the placeholderAPI folder
done that, it showed removed from in-game.
but then went through with /papi ecloud download mcmmo 1.0.2 (the version showed up by itself)
and now it's telling me there's an update avaliable.
Hmm okay have you tried doing /papi ecloud download mcmmo again?
yup
hm... did a papi dump
seems like it's installing 1.0, even though i explicitly told it to download 1.0.2 ?
doing the same with plugin, stating it's downloaded 1.3.0 but showing installed as 1.1.0
can't... share images here.
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
https://api.extendedclip.com/expansions/mcmmo/ try downloading it from here and adding to the placeholderAPI folder
nope it doesn't like that
it didn't take it in as the mcmmo plugin and just wanted to download a new one
Hmm do you need the update for mcmmo?
i'm using the overhaul mcmmo, but sure what changed between 1.0 and 1.0.2
oh i can see what changed, don't really need the change
What is wrong here? It works in TAB in version 1.17.1 but in 1.18.1 it doesn't work, have the values changed or something?
[%changeoutput_equals_{essentials_afk}_yes_&cโ_&aโ%]
In 1.17.1 it returns "no" or "yes" and in 1.18.1 it returns a check or an "X", I don't know how to use the changeoutput for those values.
Now it works like this, after a long time of testing...
[%changeoutput_equals_{essentials_afk}_โ_&aโ_&cโ%]
hello, I need some help with the math expression using cmi placeholders
it works fine
/cmi placeholders parse %math_{cmi_server_online_spawn}+{cmi_server_online_bedwars}%
but it returns this
any way to make it a round number
so it is just 3 instead of 3.000
My server is 1.18.1spigot why %playerpoints_points% cannot be displayed normally
๐ฅฒ
The expansion was probably changed
I looked at the wiki but didn't have any clue
Apparently several expansions have changed the value they have, my 1.17.1 server returns different values than those returned in my 1.18.1 server and I have the same versions of the expansions and plugins, I do not understand anything.
may anyone tell me whats the specific placeholder for K/D ratio of a player and kill streak of a player?
nvm
For some reason Placeholder API (in combination with Holographic displays) Doesn't work. If I make a hologram and have it say something like Advancements_remaningAmount It just litterly says that, and doesn't change it to the actualy remaining amount of advancements
because HD doesn't have native papi support, only though add-ons
but there's other plugins like DecentHolograms
not true.
3.0.0 added PAPI support.
๐
there might be a few reasons for that:
- You use an older version of HD (if that is the case update 3.0.0)
- Your placeholder doesn't actually work (you can test it with
/papi parse me %Advancements_remaningAmount%) - You actually didn't put the
%%for the placeholders in the hologram?
Is there a way I can use Formatter to replace certain outputs in placeholders?
For example, my skills plugin shows health as 20/20 but I would like it to show as โโ/โโ
no. but you can use the javascript one
Wouldn't really know how to do that, would you know by chance?
how do i implement papi into my plugin? ive already made an expansion, but i want my placeholders to use a config file
so i can change them whenever
they are my server version and info placeholders so i will need to change them with a command every so often
Hello, is it possible to use RGB colors in ChangeOutput placeholder expansion? Version 1.16.5
I tried &#ff0000 which gives plain text, and &x&f&f&0&0&0&0 which makes the whole thing black because &0 at the end
where are u using the placeholder
the plugin ur using the placeholder in should handle the coloring, not the expansion
I used it in /papi parse
Hi there! I'm trying to use the server_countdown placeholder in the server expansion, however im really confused how to use the %server_countdown_<SimpleDateFormat>_<time>% one
I have seen the simpledateformat docs but im still confused.. I am trying to make it show a countdown to 29th january, 7pm server time
%server_countdown_29.01.2022_19:00:00% should work right?
never mind it, i realised i had to first speciy the format i was using then do it
๐ฅฐ
Hi I'm using %changeoutput% placeholder and I want to make a nested if by adding another %changeoutput% inside the false output, is it possible to do it?
I tried with {changeoutput...} but seems to not reading that placeholder
%changeoutput_<=_{vault_eco_balance_fixed}_3_false_{changeoutput_equals_{luckperms_has_permission_group.conquistatore}_yes_true_false}%
This is how the general placeholder should be
I'm actually looking at %javascript_<your placeholder identifier>% , could be a possible fix if I add the nested if in this placeholder?
yes. use javascript for anything more advanced. u cant have nested bracket placeholders
actually u could use the nestedplaceholders expansion I think. idk
I'm not sure if papi supports hex colours. it should work in a normal plugin that does
Really nice, can I download directly from the papi ecloud?
yeah
Please respect the rules, be patient and don't ping staff members!
If they don't work for my case, can you show me how I have to use the JS placeholder? I'm not into this language
Does the CheckItem placeholder find an item even if its inside a shulker in his inventory?
accounts have to be made manually by an admin
@carmine veldt are u able to create accounts or is it just cube?
don't know how to make accounts
smh
ive pased the message on for u and funnycube should get in touch with u whenever hes available
where can I find help?
We aren't really here to help if you're speaking about your Windows 10 issue. This was said about it though: #general-plugins message
This server is for minecraft plugins, this channel being more specific to PlaceholderAPI
thank you!
Please respect the rules, be patient and don't ping staff members!
hello
so i have this placeholder
%rankup_requirement_playtime-minutes_left%
which shows the minutes left needed for a rankup
is there a way i can format this to show hours?
Have you tried doing %rankup_requirement_playtime-hours_left%
that isnt a placeholder in the rankups plugin
they told me to ask here about help with formatting
What plug-in are you using?
Okay, does the minutes placeholder work?
yeah it does
but i would like to format it to be hours somehow
there is no hours placeholder for ranks plugin
Have you tired the hours one I gave you?
Just curious if that works
it doesnt
Guys how can I check with %checkitem% if a player has a shulker box with an elytra inside
is that even possible with that expansion?
how i can install placeholders for bungee
You just have PAPI on the backend servers, and use the Bungee placeholders that you're wanting to use
uh?
Hey, may i ask about this error? It happens when i try to do a custom placeholder.
simple pls
Don't ask to ask. Just ask with as much detail about the issue.
When i do /papi reload, a nashorn error comes up. https://www.toptal.com/developers/hastebin/wimixinaye.properties
Thats it, i tried to download the jar 15.2 of the lib, but it doesnt work
The custom placeholder is this:
return '%pvpmanager_pvp_status%' == "true" ? 'Activado' : 'Desactivado';
}
xd();```
What Java version are you using
ok so i know there is Formatter papi expansion but is there a way to replace multiple strings (if found) in the papi placeholder with desired ones?
this can be done with JS?
can this be done using plugin that have only hologram placeholder {example} coded into it, not papi support?
JDK 17, and Minecraft 1.18.1
[10:37:01 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: YungLunchMoney:b7715e32-de10-400c-87b0-ee3952f3c85bReturned data: %statistic_seconds_played%
[10:37:01 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: GluuSticc:9def9338-2ed0-42e1-91e6-969c06c70b59Returned data: %statistic_seconds_played%
[10:37:01 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: .kalvine_f:00000000-0000-0000-0009-01fed08cc896Returned data: %statistic_seconds_played%
[10:37:11 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: YungLunchMoney:b7715e32-de10-400c-87b0-ee3952f3c85bReturned data: %statistic_seconds_played%
[10:37:11 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: GluuSticc:9def9338-2ed0-42e1-91e6-969c06c70b59Returned data: %statistic_seconds_played%
[10:37:11 ERROR]: [HoloExtension] Module %statistic_seconds_played% could not parse data from player: .kalvine_f:00000000-0000-0000-0009-01fed08cc896Returned data: %statistic_seconds_played%
[10:37:21 ERROR]: [HoloExtension] Module %statistic_seco
console spam dunno how to remove this statistic
broke my papi
Hey there, I have a question related to papi.
I read through the docs and saw that you can add your own placeholders by extending PlaceholderExpansion.
Now I want to update the placeholders if someone breaks a block, by using the on blockbreak event provided by spigot.
How could I update/override the placeholder value outside of the expansion class?
so lets say my placeholder identifier is called:
skyblock and the second identifier is minedBlocks.
How could I update skyblock_minedBlocks inside of the Listener class instead of the Expansion Class?
hello
i found this
and i want to know if this gona works in javascript api
`IChatComponent mainComponent = new ChatComponentText("Display text");
IChatComponent hoverComponent = new ChatComponentText("Hover text");
// create the hover event and apply it to the style
HoverEvent hover = new HoverEvent(HoverEvent.Action.SHOW_TEXT, hoverComponent);
mainComponent.getChatStyle().setChatHoverEvent(hover);`
Hi, Would offline player support have been removed from ParseOther?
https://api.extendedclip.com/expansions/parseother/versions/parseother-140/
@mint fable
@eager phoenix store the data somewhere and access it from the expansion class.
hey im pretty new to this and trying to create a javascript expansion for papi and when i run this
var region = %worldguard_region_name_capitalized% function regionSpaced() { return region.replace("_"," "); } regionSpaced();
it says
Caused by: com.koushikdutta.quack.QuackException: ReferenceError: 'regionSpaced' is not defined at <javascript>.<eval>(?:6) ~[?:?]
Add "" around the placeholder
Np
No
so is anyone able to help me with this
Placeholders or expansions?
Have you tried the formatter expansion @strange hedge ?
no but i saw it, i have no idea how to use it
so i was asking if someone could give me an example of how to use it
your placeholder returns minutes?
it shows the minutes left needed to rankup
and i want it to show hours left not minutes
format might have changed, try %formatter_number_time_minutes_{your placeholder}%
test in chat with /papi parse me <placeholder>
it might also be fromMinutes instead of minutes (format changed and not sure which one is accurate)
By looking at formatter code, that will show days, hours, minutes, seconds, milliseconds
well maybe it feet their needs
var time = "%placeholder%";
var minutes = parseInt(time);
var total = 0;
if(!isNaN(minutes))
total += minutes/60;
total.toFixed();
aren't you supposed to call isNaN before parseInt?
if you download the js expansion you can use this to show how many hours are left (Replace %placeholder% with your placeholder)
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script
๐คทโโ๏ธ I don't think so?
Doesn't make sense to me
parseInt returns NaN or int
yeah, alright
the time will always be a valid string

/papi ecloud update all works
those are expansions
hi i use placeholder api and im wondering if it is posible to make a placeholder a color so %Player% died by %killer% and that the placholders will be blue and the chat will be white
What plugin are you using for death messages?
deathmessages
ooh
but does someone knows how to change that?
its missing those days
ur deahmsg plugin..
I feel it's just a simple config change
not here
aha but i think i have to change every message manual
those %player% %killer% is for the deathmassage plugin
how many are there?
not placeholders
๐
now we wait gabby to say it too
๐
yup
im looking for such way to make custom msg and give them by perms
so they can boost my $$$
๐
would i put the %% in the "your placeholder" part of this?
%formatter_number_time_minutes_{your placeholder}%
{ }, zere
ok
gaby
i have playtime plugin if i connect it to DB is it gona work on all backend server connected to it ?
if it is not built this way, no
using a database for storage doesn't always mean it supports multiple servers, it could simply mean that the developer decided to use that type of storage
so ill need something supporting bungee ?
check the documentation of the said plugin, but yes