#placeholder-api
1 messages · Page 99 of 1
Close the menu after they claim it
Hello! I'm having a problem while using placeholder in essentialschat.
wait, i'll post error lines in pastebin
you can't use placeholders in EssentialsChat
you have to download ChatInjector to make them work
and replace the %% by {}
can you send your Essentials config ?
the plugin solved the issue.
ok
but how other plugins solve this problem?
idk
I mean
I don't know for the error
but for ChatInjector parses every PAPI placeholders in chat
@manic imp do you have % in your chat format?
with the chatinjector plugin, no
I mean in config
no
because i changed it when i installed the chatinjector plugin
from %something% to {something}
also doesnt work
relog
@normal kettle using SlimeWorldManager ?
My placeholders on Holographic displays stopped working out of nowhere. I have the latest protcollib and placeholderapi installed
https://cdn.discordapp.com/attachments/628268516113645579/704011556568170566/unknown.png
Yes, the placeholders work on my scoreboard
But i think i removed HolographicExtensions
reinstall it
[20:08:09 INFO]: [NametagEdit] As the error above suggests, you do NOT have any placeholder plugins installed. The placeholder API is merely an interface, it requires other plugins to function. This is NOT an issue with NametagEdit.
Anyone seen this before? Tag me if you can help me fix it.
you don't have PlaceholderAPI
it's just a warning from NTE saying that you won't be able to use placeholders in it if you don't have it
@junior musk I do have it though.
send the error that should be above this message
So can i not use an old placeholderapi version even if i dont need updated extensions?
I mean you're welcome to use any version, we just don't provide support for any errors or anything.
ok just making sure because i have a plugin that doesnt work on anything newer than 2.9.2
Okie
Hello, is Papi works with Jobs Reborn, i can't download it in the ecloud?
I know Jobs is, unsure about Reborn.
Not even sure if this is the right place to be asking, but how do i go about resetting data from a Placeholder Expansion? (Trying to reset KDR stats from KDRatio
by leadz91)
Probably from player data in the world.
@royal pond check /papi list
I think it's internal
if there's NO DOWNLOAD COMMAND on the PAPI wiki that means it's internal
you just need the plugin and it will be registered automatically
Jobs Reborn is not in the list
is jobsr in the list ?
No 😦
then that means it work
and use the placeholders from here
https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#jobs-reborn
I think you also have /jobs placeholders or something like that, since it's provided by the plugin, it should be more updated than on github
Thanks for you help @junior musk
Hey, in each daily reset I get my Expansion-DeluxeTags bugged and I've to use /papi ecloud download DeluxeTags and /papi reload to get them working, someone could help me, please?
Thanks 🙂
Start log "deluxetag isn't working when started, I've to download it from the ecloud again and do /papi reload": https://pastebin.com/5QdhHf5d
Heyo 👋 DeluxeChat offers a server_prefix config under bungeecord:, is it displayed like {server_prefix} or %server_prefix% in format sections?
prepurchase or postpurchase question?
Postpurchase, it's working pretty fantastic
👍
%server_name%
That shows a long name, I want to display what is defined in server_prefix
It's clearly in the config to be displayed, I just don't know how to display it
enabled: true
server_name: Redstone
server_prefix: '&8[&cG&8]'```
Tried {server} {server_prefix} %server% %server_prefix% and no go. There HAS to be a reason it's configurable, right? 😅
Hm, %player_world% is displaying the world name for players who is receiving the message, not the one who triggers it
Is there a fork for ChatInjector?
is the %player_exp% supposed to be a decimal value?
and why does %player_total_exp% not the same number as i get from /exp show <player> o.O
I am trying to use %player_name% in place of a user's name in luck perms. It will not work. It just says that the name provided is not a valid name/uuid
lp user %player_name% permission set deluxetags.tag.skittles true
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
In deluxe tags. The '%deluxetags_has_tag_<TagID>%' thing. Do i need to replace <tagid> with the actual Tag id or leave it be? I assume i need to put the tag id there. But i am not sure. I am testing it now
I cannot even get the menu to load
can anyone link me to a tutorial on how to create a placeholder
Could try asking in #development @crystal quail
probably the wrong expansion version or the wrong expansion @crimson crest
did you redownload it?
what is your expansion version @crimson crest ? and which plugin version?
@quick leaf Luckperms?
Yes
Those are all the luckperms placeholders, make sure to run those commands to install the expansion.
%luckperms_meta_<meta key>% work only if player have meta
what happens if they don't?
But, if group have meta => doesn't work
Not null. Nothing
why check the group?
How i can paste here picture?
=imgur
what is LTS @crimson crest
that's not a version number
PAPI 2.10.5
Ok(
you can try going to luck's discord and asking
he made the expansion too
@crimson crest where is this placeholder?
it's failing when trying to retrieve a level, so I gotta know how you're using it
where do you have the placeholder?
send your config?
send a startup log?
bruh
?paste
Which placeholder are you using and where are you using it?
A member of staff has requested I move your message to a paste,
Most likely beacause it contains a config/error/code snippet.
L
?paste
I have guestion regarding to a placeholder for server countdown
It is working but it is showing seconds and i want to disable them
And is there a way i can set exact hour i want to count down to
All i can set is a date
you can set it to hour, minute and second
but you can't make it only count in seconds
%server_countdown_dd/MM/yyyy-HH:mm:ss_27/05/2020-12:00:00% here is an example that will count until 27 May 2020 12:00:00
Oh that is great the second part of the question is not to set everything to seconds just to limit not to show seconds, for example
3 days 12 hours and 45 minutes
yes i wouild like to remove seconds
and if possible to change d to Days or custom word
I don't think you can
unfortunately. Maybe with javascript but I have no idea on how you would do that
based on BlitZz example, I think you can remove the seconds by removing :ss
%server_countdown_dd/MM/yyyy-HH:mm_27/05/2020-12:00:00%
he wants to hide them x)
yes
but in placeholders the ss shows when the countdown will end
I am not using :ss in mine
it is showing seconds and i want to disable them
and it still returns seconds
he wants to hide seconds
yes but you can't
but still count with them
that is what I am saying
you can
%server_countdown_dd/MM/yyyy-HH:mm:ss_27/05/2020-12:00:00% returns the same as %server_countdown_dd/MM/yyyy-HH:mm_27/05/2020-12:00%
and it still shows the seconds in countdown
ah ok
but you want to remove the seconds from countdown right?
well yea on the holograms, but it is not so important if it is not possible
i will make it look like something even with seconds
@fickle tide I think I found how to remove the seconds ! (I don't even know how x))
Hello, I need help please. First of all sorry for the translation because i am french. I always manage to fix my mistakes myself but this time I need help.
When i run my spigot server with the placeholder api plugin, i can't use the command /papi ecloud download ... I have the message No cloud expansions are available at this time. And when i execute the command /papi ecloud refresh, i have this message
[19:06:50 INFO]: [PlaceholderAPI] Fetching available expansion information...
[19:06:51 WARN]: Exception in thread "Craft Scheduler Thread - 23"
[19:06:51 WARN]: org.apache.commons.lang.UnhandledException: Plugin PlaceholderAPI v2.10.5 generated an exception while executing task 36
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager.lambda$null$3(ExpansionCloudManager.java:190)
at java.util.HashMap.forEach(Unknown Source)
at me.clip.placeholderapi.expansion.cloud.ExpansionCloudManager.lambda$fetch$4(ExpansionCloudManager.java:182)
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:71)
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more ```
And I can't find a solution...
@faint mason,
Looks like your server can't connect to our API,
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
Hello. IridiumSkyblock's plugin says it can be hooked to PAPI yet PAPI doesn't have any reference to it on the ecloud. Can you help? Their dev. team said it would need to be dealed by you...
It's not on our side to add support for their plugin.
@faint mason where is your server host located?
Also, update to at least 1.8.8
@vivid sparrow mind if i print it to send to them?
Feel free
thx
does any1 knows how i can remove the decimal numbers from the money placeholder?
cause it has more decimal numbers then actual numbers xD
I have a js for that
?
%vault_eco_balance_fixed%
Oh, do you want to have no decimals or to still have a bit of decimals?
Welp
Hello so my console keeps sending me a warning from my skyblock server but my hub has the same version of placeholderapi so i went digging on the skyblock server and found that the "BAMobCoins" expansion is the one that causes the warnings but every other expansion is fine and doesn't cause this warning
Warning: https://pastebin.com/ynRFHAXp
BAMobCoins version: 1.3 (latest)
@hollow kite,
Looks like your server can't connect to our API,
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
I broke something
Barry, Please help
28.04 19:40:09 [Server] WARN [PlaceholderAPI] Plugin PlaceholderAPI v2.10.5 generated an exception while executing task 59923 28.04 19:40:09 [Server] INFO java.lang.RuntimeException: Essentials API is called before Essentials is loaded.
Dang
Reload papi
No essentials commands can be used
its not the server tho because i tested this on three different servers and removed BaMobCoins and the plugin works fine
gaby was that directed towards me or gigabyte
I did :/
It did not work
A restart fixed it
But i had also removed the motd text to stop it from appearing on log in. Would that have casued an issue?
can someone help me with bamobcoins.
@vivid sparrow Sorry for the wait. the server is hosted on my computer because I'm doing the test on it
@faint mason,
Please respect the rules, be patient and don't ping staff members!
And where are you located?
What version you on rn?
what's rn ?
right now..
sorry 😅 Spigot 1.8 R01
and why do you recommend me to update my server to version 1.8.8?
@faint mason last 1.8 version supported by most of the plugins
"latest" :kek:
What
lol x)
ok thx
Has papi's extension for LuckPerms been updated? having problems calling %luckperms_prefix% on LuckPerms-5.0.72
@heady stream is the one with the problem
This error occurs when there is a mismatch in versions between the expansion and luckperms itself.
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion.
Once installed restart your server.
If you want to keep using v4 please download the version 4.1 of the LuckPerms expansion.
yup that's the expansion he's using 5.0-R2
i can check the prefix using /lp group <groupname> meta info
i can call %luckperms_groups% and it works, but %luckperms_prefix% doesn't
might as well ask on their server
yeah was going to next
I have pinger and server. What placeholder should I use to get the current server?
wdym?
there's only %server_name% but that value is took from placeholderapi's config
I WAS USING itemmanager placeholder with deluxemenus
and i dont believe my eyes what is that error log
just 1 user is breake this plugin
authors
its the serious problem for the plugin
not personal error
You're trying to remove a great number of coal, wouldn't there be some upper limit to that?
it is impossible
normal players arent do that
but he can
my players told me someone has a lot of money
Well, it's a plugin by aBooDyy, he has his own discord for his plugins where he is usually quick to respond and help out. I think you'd have an easier time reaching him there. It should be for itemmanager's spigot page
can you send me link
but nooooo its placeholders
You need to download the expansions
wait maybe its not
Is that what also would've happened if people were still using an old version of papi?
Partially, yeah.
what wrong 😦
Remove PlotSquared expansion
just remove it. plugins/PlaceholderAPI/expansions
I'm trying to eat some Doritos in a peaceful environment and I'm getting a hostile vibe from you.
smh
wow admin time
Why did I know that would get a response from cube.
feelsbadman
He's a creeper :creeper:
and this is where it all changed
Oh, I don't have such an emote.
👏
Swing our pick side to side?
side side to side
Please either stick to the topic or move over to #off-topic
rip
wooooooow
👀 We got schooled.
Soooo, that fixed it, mason? neat.
is the %player_exp% supposed to be a decimal value?
and why does %player_total_exp% not the same number as i get from /exp show <player> o.O
Not sure, but if you want it as a whole number, you can use the math expansion:
%math_FLOOR[precision:0]({player_exp})%
math_FLOOR or math_CEILING depending if you want to round it down or up. if you choose neither then it will follow ordinary rounding rules, I believe.
Hello, I'm trying to use the placeholder of https://www.spigotmc.org/resources/▪️-king-of-the-hill-1-7-1-15-▪️.6832/ in deluxemenus but it don't work EDIT: I got it, I just need to restart lol
?
To get help with a premium plugin (AutoSell) you have to link your SpigotMC account to your Discord.
oh gotcha
Hi!, is possible check if player have space in inventory for shop in deluxemenus?
Yes
left_click_requirement:
requirements:
token:
type: string equals
input: '%checkitem_nameequals:&9Greater GlaskerVille Token,amt:4,mat:RABBIT_HIDE%'
output: 'yes'
emptySlot:
type: string equals
input: '%player_has_empty_slot%'
output: 'yes'
Henk you got 1 min to help me test something?
Depends on what that might be 😛 not by my pc 😛
@balmy quiver check above. Especially at the ”emptySlot”.
Keep in mind you’ll need the player expansion
Can I use this %server_time_<format>% for essentials kits?
Is there a placeholder that looks like this: 13/01/2012
it doesnt work
I mean do you have the expansion?
https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html @ionic night here’s what you can do with the expansion, don’t think it’s possible inside one placeholder. And idk where you want to display it in, but if it’s like an item name or lore you should be able to do something like:
lore
- ”%servertime_d%/%servertime_M%/%servertime_y”
it doesnt work
Elaborate
Did you do underscores? Doesn’t look like there’s any underscores there
%servertime_d%, etc
the underscore becomes a space
And what happens if you run /papi parse me %servertime_d%? Same thing?
You also remembered to reload papi after installing the expansion?
And lastly, what’s your papi version?
is this an item given with EssentialsX ?
then it's normal
O.o
- EssX doesn't support PlaceholderAPI
- underscores in items are replaced by spaces
for example /give apple name:Hello_you
Yeah, of course...
there's some placeholders that can be used on essentials items
is there a way i can use buycraft placeholders to essx kits
probably not
there's some placeholders that can be used on essentials items
I guess the inbuilt ones ?
yeah that's what I meant
https://gyazo.com/b5b1cbecc603633fe73db82172cda796?token=1bc58433bf2812693384f1773ba7eb52
if you execute the command from a BuyCraft package, then they should work
when i run papi parse it shows: %servertime_d%
I mean, still pretty weird that this didn’t work, even if essentialsX was all at fault
isn't it server_time_format ?
Nope
You're using an incorrect expansion version then, and it probably didn't crash, just threw a fat error in console
what's your LuckPerms version ?
4.4.24
update
that's why it broke
I'm still unable to get the statistic placeholder to work properly... 😐
I have a couple of plugins that are no longer working with the new PlaceholderAPI. I'm not in contact with these developers much any more.
If I gave the source code for the plugins to another developer, would it be hard for them to fix this issue? Is there a Wiki page the details the changes to PlaceholderAPI that the developer can use to understand what's changed?
29.04 15:25:47 [Server] ERROR [PlaceholderAPI] SwalbertMultiTitle is currently using a deprecated method to hook into PlaceholderAPI. Placeholders for that plugin no longer work. Please consult [omitted] and urge them to update it ASAP.
Alright, so even if the developer I gave the source code to didn't develop the original plugin, it wouldn't be hard to do?
Would you be able to link me this Wiki page at all?
Frosty, Could you point me to the statistic placeholders for Statistic 1.7.0? Since I'm running version 1.12.2 MC I think thats the one I need to use but pretty sure the placeholders have changed
use the one in pinned version of the expansion Wubbity
Alright, so even if the developer I gave the source code to didn't develop the original plugin, it wouldn't be hard to do?
Would you be able to link me this Wiki page at all?
@cunning charm ⏬
@olive harness Use the version pinned in this channel
Ok I switched over, if I wanted to log the amount of... Lets say Iron ore. The placeholder would be %statistic_mine_block:IRON_ORE% correct?
Yes
Surely I'd be referring to the "with external plugin" part, no?
No, you're making them inside the plugin so internal
external would be ie. vault expansion which is a seperate jar which only includes placeholders
Thanks a bunch!
Does someone mind hopping in a voice chat so I can go through my problem with statistic? I'm not understanding why it isn't working
Hey, when i try to add deluxe tags to the deluxe chat format it doesn't show up properly in the chat
did you add this placeholder? %deluxetags_tag% ?
also did you download the deluxetags expansion? /papi ecloud download DeluxeTags /papi reload
Yea i used %deluxetags_tag% but when i downloaded the expansion and reloaded it gave me an error
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Would the placeholder not work depending on what would it's in? I'm attempting to allow ores to be counted and return the value to the scoreboard in a "Mining" world. Is there a way to make it world specific?
Nope
Then I have no idea why it isn't updating. It defaulting to 0 and not updating on block broken. I'm losing my mind on something that should be extremely simple ;-;
Is he on the beta?
Ye
Yeah I've updated to the file in the pinned.
Seems like all values are returning 0 - Not just blocks broken.
You deleted the previous expansion right?
I did
Is Gaby around? I haven't taken a look at the code close enough to see if that's still the right placeholder.
%statistic_time_played% isn't returning anything. It's just blank
Parsed %statistic_hours_played% and it returns 0 as well. 😐
He never posted the entire list of available placeholders
Cuz you know, he's a 4head
The method for that looks fine
I think it's %statistic_time_played:hours% or that's what I saw when he was testing 🤷♂️
Last time I talked to him he told me to use statistic_mine_block:XXXX_ORE obviously inputting whatever ore needed
/papi parse me %statistic_time_played:hours% Returned Unknown statistic Optional.absent()
Yeah that means it's not present
Glare gimme a link to the expansion, I'll note down all the placeholders
Using the placeholders listed, they all return 0 - Guess I'll just have to wait until he gets back to me eh?
https://paste.helpch.at/woticekoce.pl @brisk coral
@vivid sparrow Stop crying about school
:lul:
Stfu @brisk coral
Gaby - I wanna cry. That cool? lmao
https://github.com/PlaceholderAPI/Statistics-Expansion/blob/development/src/main/java/com/extendedclip/papi/expansion/mcstatistics/StatisticsExpansion.java#L109
@trim mist it's there but a jar wasnt sent here
Gaby, I just tested the pinned version and it still does the thing with counting blocks with multiple meta datas multiple times. When do you think a fix will be made?
Well, without knowing which materials cause this issue is hard.
It's just all blocks with multiple metas
So stone, dirt and others
But stone and dirt are the most essential
https://minecraft-ids.grahamedgecombe.com/ Check here
Well, on older versions there's only STONE as Material
You gotta specify byte urself Gaby
???
Does it even store it seperatelly?
Idk dude but statistic use materials not itemstacks
Yea ik
So there's nothing to do?
Update to 1.12 <o/
😦
^ I'll remind you
@quick tinsel try mine_block, mine different blocks and parse the placeholder after each like this %statistic_mine_block% MINED-BLOCK-MATERIAL then send the debug here
@olive harness you can test the time_played placeholders as well.
Still returns 0 @vivid sparrow :/
Time played still returns a blank space
server version?
1.12.2
any console error?
=paste
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
ye ignore that xd
But yeah, no actual errors. Values still show 0 except time_played
But the item spam is going wild. Going to have a huge server log to delete lmao
@final shadow is there any method in papi to get the "debug" value set in config?
parse seconds_played Wubbity
that's weird.
All good, I'll be here to test updates 🙂
Wdym get the debug value set in the config
There's a "debug: true/false" option in papi config
He's trynna get that within the expansion
quick question: Is there a way to nest javascript placeholders if they are using multiple arguments? Doing something like %javascript_someplaceholder_{javascript_otherplaceholder_arg1,arg2}% would not interpret {javascript_otherplaceholder_arg1,arg2} and would see {javascript_otherplaceholder_arg1 as the first argument and arg2} as the second argument of %javascript_someplaceholder_%.
Is this a bug? Should I open an issue?
i mean
sure
you just have to code it
but why?
if you're asking if you can do it without modification, no
Since I am asking the obvious conclusion would be that I need this function.
Obviously you need the function
what for is the question?
Because there might be a better way, or there might be an easier way
I am trying to nest a javascript placeholder that I made that is basically an animation creator
so when you take in the args, do some checks
see if the first arg is javascript and then put together the placeholder variable with concatenation, and it will parse as a placeholder
So you're saying to reconstruct the placeholders from within the javascript placeholder?
I did say you can't do it without modification ^
You could even make a javascript expansion that does it for you, takes in 2 javascript placeholders as args, returns your value
This should be a feature within the Javascript expansion imo, after all you can resolve placeholders within placeholders fine
You misunderstand how the javascript arguments work @vast nova
the only reason you can parse a placeholder within another placeholder, is because that expansion allows for it
so if you want to do the same thing with javascript, your javascript placeholder has to ALLOW for it
Example: I had to code it in so that parseother would accept placeholders for usernames
see above ^
not really, doing something like %javascript_placeholder1_{javascript_placeholder2}% works out of the box
Keep in mind that the EOL for the current JS engine has came (blame Java) so we will be looking to implement a new one whenever the next update for that might be. Probably with PAPI3, but that might also throw another twist into things.
%math_FLOOR[precision:0]{player_total_exp})%
@iron turtle
this works perfect 🙂 thanks!
I've noticed the same issue with %player_exp_to_level% but it's not a constant difference (like %player_exp_to_level%/2 is never accurate)
i looked at the functions for the math addon, but i don't know enough fancy math to know which function would fix this sillyness. any ideas? (LOG() wasn't right...)
thanks. 🙂
@vast nova are args seperated by _ or ,
args seem to be seperated by ,
hmm
I see your issue
and I take some of what I said back
due to misinformation
BUT the reason why your issue does not work is for different reasons
it's because as soon as the js expansion sees a , it splits the args
yeah, but it should try to replace placeholders and then split
the only reason placeholders work is because technically your arg parses into a variable as {player_name} (for example)
which then gets parsed by the js into a placeholder
the actual expansion doesn't do anything with {} to make it work for arguments
it does it for all variables once inside the code
If that makes sense
I feel adding support for {} placeholders would mess with some javascripts out there
it's better to just code it in IMO
I recommend making a js placeholder that does as I said above
how would it mess with some java scripts?
also, I don't think you can make a placeholder that does what you said above since it will get broken apart as well
it seems possible, but not sure
do it all with args @vast nova
so something like this
%javascript_multiple_javascript,placeholder,one,arg1,arg2,javascript,placeholder,two,arg1,arg2%
and then the javascript itself puts all the args together, checks for javascript which starts a new "placeholder"
you know, something like that might actually work
I'll take a short look at the Javascript Expansion anyways, might figure something nicer out.
Also, I compiled a custom JS-Expansion that has an option for tuning off saving Data (Needed it for my placeholder). If you want I can make a PR
wym by turning off?
It would just break expansions that use Data, right?
Also just noticed there's an unreleased update that seems to be ready to go. I'll see if I can get that going through the pipeline here in the next few days.
Works by doing something like this in javascript_placeholders.yml:
anim:
file: anim.js
save_data: false
Turning off means data doesn't get saved to PlaceholderAPI/javascripts/javascripts_data
I really have never touched that expansion, I never knew it did that.
default is sava_data: true
That's pretty fuckin cool.
won't that just break expansions using Data?
default is sava_data: true
Would make it obsolete if you're disabling it
^
It just means Data doesn't get saved when shutting the server down. I still find it super useful for saving variables.
Someone who me an example of what saved data looks like in that file.
4ticks-7txt: 0.0
4ticks-5txt: 1.0
1ticks-5txt: 2.0
I guess so
Too many waffles lmao
basically key: value
Ahh okay
send me the expansion that does that
So it's just kinda caching it, makes sense.
the placeholder*
that does what?
?paste
that saves that data
hello :)
hi 🙂
With the essentials ecloud thing
why doesn't it show the nickname symbol?
only nickname?
do you have it set in config?
do you mean the javascript expansion or the javascript placeholder I wrote?
yes I have it set in config
I don't think it sends the symbol in the nickname.
Use the displayname placeholder @uncut trench
either that or just add the symbol manually
Does it? O.o
I will see if it works
the javascript placeholder @vast nova
return essentials.getUser(p).getNickname() != null ? essentials.getUser(p).getNickname() : p.getName();
wot
That's what it returns
stop
Did you have a stroke cj?
That is the ess one
https://paste.helpch.at/zuronogavo.js
It won't work properly without my custom JS-Expansion though, since the Data will persist between restarts.
Yeah that explains it nickname = FormatUtil.replaceFormat(ess.getSettings().getNicknamePrefix()) + nick;
The prefix is added
I think Data is the only way to have vars persist between multiple times resolving the same placeholder. I didn't see another way at least.
unless stuff you store by reference can always be referenced the same and I'm just dumb
No clue how the js expansion works anyways
¯_(ツ)_/¯
It looks good to me
I think
I feel there should maybe be some more variables for the stuff you used mutliple times
but
The problem is that the schedulers won't restart on server restart since Data will then already exist
Yes?
Thanks. You want a PR?
Fyi, data won't save, but it will still load with my edit. Incase anyone wants to load some data for whatever reason.
If it doesn't save the file will never change, but you can still add your own pairs of keys/values to load from the file and use within your placeholder.
but
The data file can basically still be used as a config
doesn't that make your Data.exists thing fail then?
what you said makes sense
but doesn't that fail your thing
or is yours empty
I really should check PRs first on an expansion before making changes. I just ripped 3 PRs on the EssX expansion.
Data.exists checks wether a key exists.
Is your file empty right now though?
Yes
or do you have those keys in there that you sent us earlier
ah ok
that makes sense, I'd say push the PR
Someone wanted to see the structure of a data file earlier, so I turned the config option on for a second. That's why it wasn't empty.
@vivid sparrow ?
@mint fable yes
did u read my message
@bronze bison Is that EzRanksPro expansion good to go? If it is, you're clear to merge and push to ecloud.
I'll get myself some whatever you call the meal you eat in the evening first, will PR after.
check my pr @trim mist
For
sJ
to save the data you need to accept my pr on papi
long story short, expansions aren't unregistered correctly on shutdown causing Cacheable#clean not being called
Looks good from what I can see
what does that do
?
that jar
You also need this
But... Data was already being saved?
^
not on shutdown
from my tests, yes
Is there really even a javascript expansion anymore?
wdym
I did a cool thing using it :3
javascript expansion is best expansion
yes
^
right behind parseother
Y'all fussing about shit noone ever uses
"no one ever uses"
who asked for your opinion
=ecloud requests
shush Glare
frosty just get
nO onE eVer uSes
Those are lies
^
Ok bye
brb
the Javascript is expansion is the best one if you just wanna handle some data quick n dirty
is there a way to add 1 hour on the the time for server-time
probably math
server is UTC but we are BST, so can i some how plus 1 to HH?
but you can use localtime to show the time in a timezone
oh?
there is an expansion called LocalTime made by aboodyy which allows you to either show the players time
or a timezone
the time based on a timezone
ah ok neat
what do I call my animated text javascript placeholder if I wanna throw that into the PR as well? animated_text.js already exists.
animated_text2.js
It's not better tho
@trim mist can I merge my js pr?
Why even pr an animated text one, if there's already one there?
The one that exists can barely be called functional
this should be changed to msgnumber >= messages.length https://github.com/PlaceholderAPI/Javascript-Expansion/blob/master/scripts/animated_text.js#L14
It counts up every time its called and you have to duplicate the javascript for every different text you want to use.
With mine you can set the frequency of the text change in ticks and can use any amount of different animated texts with just a single javascript
I'll just do a different PR for it.
How is that better tho?
I just don't see a usecase for the other one tbh.
Did you reload papi? Also assuming that's featherboard you need to use {placeholderapi_<placeholder>}
yes
that is the scoreboard plugin i use
it says it will work with papi
this is what i put
6:
interval: 5
liner:
- 'Sword: %mcmmo_level_sword%/%mcmmo_xp_needed_sword%'
Parse the placeholder and see if it even works
/papi parse me <placeholder>
Screenshot me the command, and the result
@mint fable can't you achieve what I wanted regarding the , delimiter by running setBracketPlaceholders() over the provided String first? I'll try that tomorrow and will do a PR if it works.
@vast nova,
Please respect the rules, be patient and don't ping staff members!
Oh, I'm sorry. Won't happen again ^^
From what I can gather from looking at the source code placeholders are actually designed be be resolved recursively. In my opinion Javascript placeholders not being resolved recursively properly when using multiple args should be considered a bug.
If you feel something is a bug, I highly suggest opening a GitHub issue for it. We get 6,000+ messages a day in this Discord so stuff can get lost easily.
Could also do a PR tomorrow. Seems like a quick fix tbh. I'm in bed, so good night.
Cya!
so im trying to format my tokens with commas on featherboard how would i do that?
tokenmanager is what im using
use the latest version of TokenManager 3.2.5 and use the placeholder %tm_tokens_commas%
@compact wharf
variables havent been updated on the placeholders wiki didnt even know it had commas placeholder thanks
no problem
I feel like tokenmanager might've made their own placeholders
They did
the expansion is outdated and un-needed
@balmy marten can we delete TokenManager expansion as the plugin included placeholders?
I'll update the wiki
Just unverify it
o
lol thanks
Hi, I can't add rank player in my scoreboard. I use Featherboard and i have vault. I have install vault expansion. When i execute the command /papi parse me %vault_rank% it's write my rank but in the featherboard config when i write {vault_rank} it's write in the scoreboard {vault_rank}...
{placeholderapi_vault_rank}
Thank you !!
Can someone help me with VoteParty API? its not downloadable
I want to put in a scoreboard the real time (day, month, year). But what are the placeholders again of it?
Plugin using: SimpleScore
localtime expansion
No ones got smh on Voteparty?
I'd assume you need to reference it using the jar
yea
Verifies that you're a buyer
url
no
go to your spigot profile page
and check the link
it goes something like this spigotmc.org/members/YOURUSERNAME.ID
Do i copy the whole link
Oke thanks
how would you get what dimension the player is in?
%player_world% @uncut thunder
thx
Hello everyone. I need some help with PAPI and Mycommand:
I want to create TP-command to server. My script looks like this now:
server1-access:
command: /goto server1
type: RUN_COMMAND
runcmd:
- "$Script$%if%%pinger_isonline_172.18.0.1:25777%==Online"
- "/server server1"
- "$Script$%else%"
- "$text$&4Server state is offline"
But always triggered part after else.
Thanks in advance for your help. Sry for grammar mistakes, English isn't my native lang
what does /papi parse me %pinger_isonline_172.18.0.1:25777% return?
if it returns just %pinger_isonline_172.18.0.1:25777% then do /papi ecloud download Pinger /papi reload
It returned "Online".
try ==&aOnline
the problem is somewhere in mycommand not with placeholderapi
does mycommand support placeholders?
Yes, I checked it.
One sec
try ==&aOnline
If I use it the server says that such a command does not exist (but it still register by mycommand) ¯_(ツ)_/¯
Also I tried use § and $brightgreen instead &
does return the players x? %player_compass_x%
I think it's %player_x%
?ecloudblock
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
Okay.
Nvm, I'm dumb
Yepp, didn't work.
maybe you pinged the ecloud too much in seconds, so the ecloud's firewall blocks, you have to wait a few seconds normally
Still no.
https://paste.helpch.at/valekenize.coffeescript
Should I be worried?
You're using an incorrect version of either the plugin or the expansion (Quests)
is there a KDA placeholder?
How do I get LeaderHeads expansion on 1.8?
The Vote Party PlaceHolder is not working with my featherboard.
Any fix?
text:
- ' &6✦ &eVoteParty&7: &f{voteparty_votes}&7/&f40'```
K
Can someone send me a link to the voteparty plugin?
I can
Ya
I think I had the original at like 12.50 or something like that.
That's a little over 40 I think
Oh its 44
Enjoy an extra 4%
Ok no I thought it was like idk 11 or 12 bucks
Which my autism can NOT handle lmaoo
Cause I can't do math
It has to be 10 or 12.50
😛
Dw I'll buy it lmao
😎
unless I get it for free or a friends discount or smth?
Lmao keep dreaming.
wait I don't even have u as a friend on Discord
I gotta fund college somehow.
College takes ~$25,000 out of my paypal every year so I'm like negative 24000
I gotta fund college somehow.
@trim mist lies, he's actually spending all money on waffles
Now =check me so I have access to the channel lmao
not so fast
I actually don't keep any of the money I make from this. It goes directly to an account that is used for my tuition.
we are talking about sigot
Ah nice glare
I mow yards for pocket money 😛
o
is there a way to create a top kills with placeholders?
i cant find any placeholders for like top1 top2 top3 kilelrs
is there a way to use placeholders across bungeecord servers?
but like other than checking players?
What are you trying to do?
i want to have a variable that lets the player know if the other server is online
Noi, you'd have to utilize some 3rd party plugin to save the data since you can only get the statistics of players that are online by default.
So, no, we don't provide placeholders for that. I know plugins like uhhh
LeaderHeads I think does
okay cool thanks
Hi!
Hey I have a little problem
when I download the Griefprevention extension from the eCloud (or manually from Spigot), the plugin doesn’t recognize it (any of them) and I have tested every version of the Expansion
In the Config File it shows it, but it doesn’t works
Looks like the expansion is maintained by a 3rd party developer by the name of Pixar02.
https://github.com/pixar02/GriefPrevention_Expansion Looks like it's not being maintained anymore.
the thing is that In Paper Spigot it works perfectly
But I do have all of my servers in Spigot already, is would be a badass problem if I change them
Please use a paste service to share configs, errors, code and long logs.
• HelpChat Paste
Could you throw a copy of your latest.log in there and send the link?
I can look it over for anything relevant.
Ok, wait a second
@austere ice You around? Can you let me know if you're still maintaining that expansion or not? I noticed the repo attached to it is archived.
I don't see anything about GriefPrevention here in this log.
I was called ?
wait for it
Hey Pixar, are you still actively maintaining the GriefPrevention expansion in the eCloud?
I noticed that the repo you attached for it was archived in 2017, but the latest update was in 2019. Was just hoping for some clarification.
I moved all my expansions in 1 repo (instead of a project for every expansion)
https://github.com/pixar02/Expansions
Alrighty, awesome. Do you mind updating the link on it then?
yeay sure.
Thanks so much!
Im testing from now, pls give me a second
Just wanted to get in touch with you before I made any changes to it.
hey...
I might be an stupid one but when i was testing some of my sh** I unloaded it from the plugins folder, its working perfectly
Thanks for your help
to you two
Really, i wasnt thinking that I unloaded it
And making some troubles around
Happens to the best of us. I go to test plugins all the time just to realize I didn't actually put it in the plugins folder.
No problem!
Waffle page is updated.
👍
LeaderBoard doen't do the job ;(
Does any1 know a plugin with placeholder to make a top3 pvp kills?
is there a plugin that can turn the server on or off like if someone is in the server then the server will keep online else turn the server off until someone rejoin again
Hello i Have one question, i want create the possibility of players fly only in claims and with a roles, for this i put Essentials (/fly), WorldGuards + Extra (Flags of FLY), and MyCMD + PAPI for modify the /fly. I Think i must write :
runcmd:
- $Script$%if%$CheckPlayerStatus%$arg1%"havearole"%==true
- /fly
- $Script$%else%
- ....
but i don't know whats arguments i must put in " have a role " or " .... "
sry for bad english :/
what ?
Anyone know about kitpvp plugin?
is it possible to use a local skript variable as a placeholder?
i'm looking for a way to display the total play time for a player. I don't see which placeholder this should be
^
%statistic_time_played%
ty!
also how can I change the format to just days and hours?
well you can do only days or only hours
not if you just combine it
nope
just put em next to eachother
it converts days to hours
I have 648 hours on my server
and 24 days
but you can use %statistic_hours_played% to convert to hours and days

@vivid sparrow ?