#placeholder-api
150650 messages · Page 106 of 151
@limber ice why if they are not part of the expansion?
yo can someone make a placeholder that checks if a player is in a faction or not and returns yes or no?
Bump
@vivid sparrowbecause I can't add placeholders quick to a clip expansion
?
So I am doing /papi ecloud download Player, then I do /papi reload and i don't get any message in my chat saying if it was successfully reloaded or not... https://pastebin.com/Bp1403XM is what I am seeing in my servers console from doing /papi reload... how do i fix this ping me with reply please
You have the globalprefix expansion, but the plugin wasn't found
try to delete the expansion in PAPI's folder and /papi reload
alr
Hey there! 👋
[18:38:18 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:428) ~[PlaceholderAPI-2.11.2.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:831) ~[?:?]
at java.util.zip.ZipFile.getEntry(ZipFile.java:330) ~[?:?]
at java.util.jar.JarFile.getEntry(JarFile.java:518) ~[?:?]
at java.util.jar.JarFile.getJarEntry(JarFile.java:473) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:195) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:155) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:130) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.entrypoint.classloader.group.SpigotPluginClassLoaderGroup.lookupClass(SpigotPluginClassLoaderGroup.java:43) ~[paper-1.19.3.jar:git-Paper-448]
at io.papermc.paper.plugin.entrypoint.classloader.group.SimpleListPluginClassLoaderGroup.getClassByName(SimpleListPluginClassLoaderGroup.java:37) ~[paper-1.19.3.jar:git-Paper-448]
at io.papermc.paper.plugin.entrypoint.classloader.group.LockingClassLoaderGroup.getClassByName(LockingClassLoaderGroup.java:34) ~[paper-1.19.3.jar:git-Paper-448] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:173) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:150) ~[paper-api-1.19.3-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:574) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.2.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:405) ~[PlaceholderAPI-2.11.2.jar:?]
... 7 more
Why do I get this error?
Yo. I've been looking for two hours for ways to make placeholder values change color depending on the value. But apparently I didn't follow. Can I do it and with what?
The error indicates a problem with loading class files from a .jar archive, which is likely a file of your plugin. This may be related to the .jar file being corrupted or closed.
It is possible that the issue is related to not having permissions to read the file or access it. Try checking the file's permissions and make sure you can read and execute it.
It is also possible that the issue is related to the version of your Minecraft server or the PlaceholderAPI plugin, which may not support your server version. Make sure you are using a compatible version of PlaceholderAPI and Minecraft server.
is it a placeholder from a plugin, or one you're currently making?
I would like to start by understanding how I can change the colors of %tps%, %ping%, %mspt% depending on the value. Thank you.
Yea, i use TAB by NEZNAMY
yeah, so those are TAB exclusive, not managed by PAPI
Though TAB has a feature called placeholder-output-replacements which allows you to change the output of placeholders based on their value (so, exactly what you want)
More info here: https://github.com/NEZNAMY/TAB/wiki/Feature-guide:-Placeholder-output-replacements
thx, you rescued me. sorry for posting off topic
dw it's fine 👍
can you send the link generated by /papi dump ?
@prisma sonnet are you able to restart your server?
hello, i have gui with ranks but I (and players too) can get the items from it
sry
as you say to a bot
Bots are scary man
but from a user's input
toggle the eCloud?
you could disable/enable the ecloud usage ingame
so disable ecloud means it don't check online versions?
prevents downloading from the ecloud
i would assume it would stop checking the ecloud aswell
ok, for servers that have to many chiefs
it was fine before, this just adds an extra step of security for those who have permissions setup wonky
that is what I was thinking
Autorank now has a built in expansion and if I use same version number clip used, it shows up green, but his list is missing 4 placeholders since they were added last year
ok, will older Autorank users still be able to download it
only manually
thats ok, I will just use clips version number to have it green
just the last few weeks had a few people download the expansion and crash Autorank on reload and they were not aware what they did if I use same version number It will stop this issue
Hey all, I'm using the Pinger expansion on a Bungeecord Network and trying to get server status to show from the Hub -- however no matter WHAT server I try to ping they all appear offline. Is this a Firewall issue?
Make sure you have the right ip/port and if you want you can try to parse it using /papi parse me {placeholder}
reload the plugin that is showing it, if you aren't
Hello everyone! I'm trying to create my first JavaScript placeholder. However, I get this error when trying to run my placeholder:
https://pastes.dev/TNyK7mJ2lt
My code is this:
function balance() {
if (!args.length) {
return new Number("%vault_eco_balance%").toLocaleString("en-US");
} else {
return new Number("%parseother_" + args[0] + "_vault_eco_balance%");
}
}
In javascript_placeholders.yml, I have this:
balance:
file: balance.js
example:
file: example.js
for some reason, the javascript expansion commands isn't working. I downloaded from extendedclip api download and put it in expansions folder.
oh wait i'm not calling the function
🤦
but the javascript expansion commands still aren't working.
by "aren't working", I mean, the command gives unknown command error
./jsexpansion
Yeah it was removed I believe
It wasnt a registered command anyways
oo
/papi parse me %placeholder%
but do u have any idea why my code isn't working?
No
this is my current code ```js
function balance() {
if (!args.length) {
return new Number("%vault_eco_balance%").toLocaleString("en-US");
} else {
return new Number("%parseother_" + args[0] + "_vault_eco_balance%");
}
}
balance();
i dont really see why it doesn't work
even tried restarting the server
I think it needs to be {player name}
%parseother_{args[0]}...
nope
And you need to do more than that
I know very good javascript, that isn't a way to put variables inside a string
its ${}
you can try this return PlaceholderAPI.static.setPlaceholders(BukkitServer.getOfflinePlayer(args[0]), "%" + "vault_eco_balance%");
you use this trick "%" + "vault_eco_balance%" to stop papi from replacing the placeholder before the setPlaceholder method is run.
The way js placeholders work is by replacing placeholders first, so things like new Number("%vault_eco_balance%").toLocaleString("en-US"); will work, and then if you need to create placeholders with variables you need to separate the first % so it will be ignored at first.
wow I've never seen that in my life of js development in like 2 years
Currently papi is trying to parse this placeholder: %parseother_" + args[0] + "_vault_eco_balance% - with all the +s and "s
great
and technically you dont need the new Number() part, unless you want to change the formatting
that is exactly what im doing
toLocaleString("en-US")
function balance() {
if (!args.length) {
return new Number("%vault_eco_balance%").toLocaleString("en-US");
} else {
return new Number(
PlaceholderAPI.static.setPlaceholders(
BukkitServer.getOfflinePlayer(args[0]),
"%" + "vault_eco_balance%"
)
).toLocaleString("en-US");
}
}
balance();
``` new code, it doesn't change the number to locale string :/
what would that return? toLocaleString("en-Us")
(10700).toLocaleString("en-us")
"10,700"
try to parse this in chat %vault_eco_balance_commas%, it should be what you want
oh damn
if i knew that existed
but still i dont get why the code doesn't work tho
it should
ig javascript expansion is just not updated
what doesn't work?
try this
nope, still doesn't
then yeah, it might not be supported at all
@austere hawkI'm still using Javascript expansion on Papi 2.11.2
same version you can download from ecloud https://api.extendedclip.com/expansions/javascript/
i don't get why you're saying this
i downloaded the playertime expansion and reloaded papi but it doesnt work
does anyone know what might be causing the issue?
%playertime_time_hours% i put this in my scoreboard
Hi, I've been having a problem with the latest version of the Placeholder API for a while now. After the update the Bungee module stopped working, so "%bungee_<servername>%" always shows 0. Tried to reinstall, edit and drop on another server, unfortunately unsuccessfully. The player is connected to the server.
Do you have the plugin?
Any chance one of your servers name in your bungee config capitalized?
they made that pr 😂
Ahh did they?
yeah
yep lol
And you confirmed it fixed it?
I can't believe we missed such a simple oversight. Great work.
Will have that merged and released in an hour.
How to make automessages with MessageAnnocer 1.19
Yeah he completely rewrote it
Which is great because it cleaned it up, but missed one thing.
yep yep
will happen
now that it has only the latest version in the jar, makes it easier to identify and fix issues 😂
We did the issue first, but I ended up looking at it myself. I found out that "bungee_total" works, so the servers must be in the cache, finally I noticed "toLowerCase" and immediately realized where the bug was
Are you able to have a lobby and a Lobby?
just thinking, if we store the lowercase name in the list. Might be possible just to store the data to the name without making it lowercase at all
Since I asked, BungeeCord doesn't allow this
no problem 🙂
Alright, that's merged and released. Should start showing up in-game in the next hour or so.
🌈
I see, thank you
And thank you for finding that fix! 😄
No problem, open source power 👀
Hey, I have been reloading the plugin(s). Any other ideas?
i dont, thanks
bump
it will not be verified
This does not mean you can't download it @austere hawk
just has to be manually done https://api.extendedclip.com/expansions/fetch/
it was verified before tho?
yo quick question now that papi removed like color parsing, how would I have a placeholder that gets the prefix of the player with color?
I can return Int as placeholder?
Will not be re-verified as things have changed.
Well, thats unfortunate
Anyone run into an issue with Pinger? All servers Im attempting to ping are showing as offline, running most recent version of PAPI and Paper 1.19.3
probably firewall issue
since the new placeholder api
[20:45:41 WARN]: [DeluxeMenus] Plugin DeluxeMenus v1.13.7-DEV-153 generated an exception while executing task 11765187 java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because the return value of "java.util.WeakHashMap.get(Object)" is null at me.neznamy.tab.platforms.bukkit.features.BukkitTabExpansion.onPlaceholderRequest(BukkitTabExpansion.java:53) ~[TAB.v3.3.1.jar:?] at me.clip.placeholderapi.PlaceholderHook.onRequest(PlaceholderHook.java:32) ~[PlaceholderAPI-2.11.3.jar:?] at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:119) ~[PlaceholderAPI-2.11.3.jar:?] at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:71) ~[PlaceholderAPI-2.11.3.jar:?] at com.extendedclip.deluxemenus.menu.MenuHolder.setPlaceholders(MenuHolder.java:95) ~[DeluxeMenus-1.13.7-DEV-153.jar:?] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?] at com.extendedclip.deluxemenus.menu.MenuItem.getItemStack(MenuItem.java:731) ~[DeluxeMenus-1.13.7-DEV-153.jar:?] at com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$5(Menu.java:414) ~[DeluxeMenus-1.13.7-DEV-153.jar:?] at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.3.jar:git-Paper-448] at org.bukkit.craftbukkit.v1_19_R2.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.3.jar:git-Paper-448] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.3.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?]
idk. admins can open the menu. My players cant open it
make sure you are running an update version of TAB
How do you know it comes from Tab?
Already using the latest version :/
at me.neznamy.tab.platforms.bukkit.features.BukkitTabExpansion.onPlaceholderRequest(BukkitTabExpansion.java:53) ~[TAB.v3.3.1.jar:?]
If you downgrade to papi 2.11.2 it works fine? @tawdry pecan
Quick question about https://api.extendedclip.com/expansions/bungeecord/
I'm currently using Premium Vanish on the proxy, and for some reason it doesnt seem to decrease the player counter when someone is in vanish, is that intended? or is that a bug.
Premium vanish should have its own placeholders I guess
Bungee doesn't know about Premium Vanish and will just return the real amount of players
Okay! Ill look into it!
Yeah they do have placeholders, really annoying that it isnt written out on spigot or on a wiki page or something
i will test it
Pinger-Expansion ALWAYS returns an offline value, I'm currently running the newest version of PAPI with Paper 1.19.3 on a Bungeecord network. The whole machine is Ubuntu 22.04 running on the latest version of Pterodactyl.
Any server I try to ping returns as offline, I've adjusted the ping interval down to 3 and still no results. I disabled the firewall for testing purposes and still was not able to get anything other than offline. Is Pinger just broken?
it might be ptero, not sure
I just did a search for pinger and saw somebody mention that
but it seems to work for most
i saw somebody mention putting the container ip, if that relates to your issue
I already tried using the docker host, but I also tested some larger public minecraft servers and those all appear offline as well.
yes, 2.11.2 works fine
Is there any placeholder that when a player have a certain permission to output a special character text?
Weird, nothing has changed between versions.
For example if player have permission "iron_unlocked" to output "yes= ɐ" "no=ʠ"
Changeoutput
@tawdry pecan you should contact the author of TAB just to make sure. It can not be caused by papi
Hi, is there a method to change the time the palceholder refreshes?
I've made the following javascript placeholder but it doesn't work
registerPlaceholder('ironunlocked', function(player) {
if (player == null) {
return '';
}if (player.hasPermission('iron_unlocked')) { return 'true'; } else { return 'false'; }});
when using /papi parse me %javascript_ironunlocked% it outputs a blank message with no text
Please help me
wut, that's not how you make js placeholders, is it? https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Your-First-Script
- you can just use the ChangeOutput expansion instead, it'll be more optimized than js
placeholders' refresh interval depends on the plugin parsing the placeholders, PAPI only provides the result, but it doesn't refresh them on its own
well, then chatgpt sucks. Thank you
lol
If you have a plugin on SpigotMC for it, just make an inlined class in the plugin and register it through that.
was gonna say that but I don't think it's the same person since both github repo aren't by the same user
though I see that the plugin already has PAPI support?
so I don't understand the need for an external expansion
https://github.com/quantiom/AdvancedVanish/blob/main/src/main/kotlin/me/quantiom/advancedvanish/hook/impl/PlaceHolderApiHook.kt
why would you do that ? 🤨
just use commands
well, commands
PAPI's main purpose is to display information, not to be used as commands
because that's not how placeholders are meant to be used
yeah
How do I make placeholders update quicker
placeholders' refresh interval depends on the plugin parsing the placeholders, PAPI only provides the result, but it doesn't refresh them on its own
but the plugin I use is Skript
then depends on how many times Skript parses the placeholder
and I use it in TAB's Plugin
ah, you're using the Skript placeholder in TAB ?
then it's in TAB's config
it has a section called placeholderapi-refresh-intervals
you can set the refresh interval for all placeholders, or a specific one
Works perfectly
yo how would I use a prefix with color now that color parsing is removed?
it's up to the plugin parsing the placeholder to parse colors as well
or if it doesn't, I think there's a color expansion you can use
maybe not, can't find it
hmm but %vault_prefix% and %luckperms_prefix% just return like raw colorcodes in most of the plugins
which plugins are you using?
like mycommand and discordsrv
make sure they're up to date
that's not the issue
sorry
dw
Oh yeah it doesn't
It just returns &4&lOWNER &4
damn I mean their both up to date
the changing of parsing color just breaks a lot of things, guess im stuck on a old version 🥲
I'd use skript
I guess it's time for me to make a new expansion to parse colors xD
hey how can I use the ChangeOutput placeholder with DeluxeTags? I was trying to use this:
%changeoutput_>_input:{deluxetags_identifier}_matcher:e_ifmatch:| {deluxetags_tag} |_else:%
but I see that you aren't able to compare the text sizes (I think I was hoping to just have it compare size if it had any letter)
is there anyway to compare them? basically if they have a tag it should show | {tag} | [chatmessages they say] but when they dont it just shows their chat I just need to figure out this placeholder
Tangy always saving the day 🙏
wait I though that was a joke lmao
@austere hawkshould I call the expansion Parse or Placeholder? (it doesn't only parse colors btw, I'm merging it with my NestedPlaceholders expansion)
because %parse_parse_<placeholder>% feels weird, %placeholder_parse_<placeholder>% seems better imo
not sure
hmm, %npc_parse_<placeholder>% :D
I'm not sure I understand, you want them ChangeOutput to check whether the tag has e in it?
oh yeah that was me sort of messing around with it, sorry I want it to check if it returns more than nothing, and if it does then show | tag | if not then dont show anything
I think you can just remove the e and invert ifmatch and else
this way, it'll check if the placeholder returns nothing, and if that's the case, return nothing
otherwise, it'll show | {deluxetags_tag} |
%changeoutput_equals_input:{deluxetags_identifier}_matcher:_ifmatch:_else:| {deluxetags_tag} |%
what does /papi parse me %deluxetags_identifier% show?
oh wait
you probably need to change the > with equals
ah
thank you
sorry
you are big brain
thank
I ve been tryna use > so mucgh I never tried anything else
🥲
yo do you guys know u would use the changeoutput to input text whenever a placeholder returns a blank value?
exactly what we did here
just replace the input, ifmatch and else to the placeholder you want to check, and the values you want displayed instead
let's goo
uploading it to the ecloud
Hey cj or anyone else, if you can verify my expansion 👍
I'm facing an issue with the Statistic expansion where for example %statistic_break_item% (not only) would return twice as much of what is shown in the statistics menu, what's up with that?
the name is a bit confusing 😂
Is it color, nested, and parseother?
I'll have to see later anyway, gotta head out actually
the whole statistic "issue" summed up:
https://i.imgur.com/fld6s2c.jpeg
got it, thanks!
yup
Hi there, I'd like the statistic placeholder to not show seconds but instead show everything else (statistic_time_played) is it possible to do that
because it just clogs up my scoreboard
you can use %statistic_time_played:(unit)% for days, hours, and minutes
so i have to make multiple?
%statistic_time_played:days%d %statistic_time_played:hours%h %statistic_time_played:minutes%m
Try this
is it possible to use something like %objective_entryposhigh_{placement}_{1}% inside of change other as an input and then get text value output of say green if green is the highest player on the pllacement scoreboard? it seems to take {objective_entryposhigh_{placement} as a placeholder and then the rest as text
only if you make your own placeholder, with javascript for example
oh okay
could you not use change output? i thats my answer to everything at this point
you can, JS was just an example
ah alright
yeah just use change output to check if %statistic_time_played:days% is 0 and make it not show anything but if it does have a output more than 0 it will show %statistic_time_played:days%d
anyone? :crying:
hello
How can i fix this error? https://paste.helpch.at/merukegadi.rb
I solved the problem but every time I execute /papi ecoud download Math all my placeholders are corrupted.
Where can I find people who are doing DeluxeMenus? I need to hire someone to do some DeluxeMenus designs for me.
DESIGN ?
Hello, I have an issue where if I use Placeholder it makes it where for some players the gear is just not there and they get one shot by my enchant plugin I am running 1.8.8.
PlaceholderAPI should have nothing to do with the gear players wear. We simply parse strings into data.
If I remove placeholder it works normally I removed and added plugins one by one is it possible to corrupt server data for certain players?
even if I remove my placeholder configs it doesn't fix it
do I need to add an extra expansion to fix it?
Unless you are somehow making your armor via some expansion, I don't see how PlaceholderAPI is modifying the damage that people are taking.
The only event that PlaceholderAPI listens to on the server is ServerLoadEvent.
To be completely honest I don't know how placeholder is doing it either
but it works perfectly without it for some reason
It can't be directly from PlaceholderAPI. Maybe you have a weird expansion, but that's really out of our control of it being PlaceholderAPI itself.
Though typically expansions don't listen to events either.
I tried removing the config folder, and it removed the expansions, and it still was causing damage to act weirdly
let me try to remove all the plugins besides the enchant plugin and the placeholder plugin
it seems like a different plugin that uses placeholder api is causing it
my apologies
👍
Why would you need to set a config value? I understand the get part.
No it does not
Again, placeholders arent meant to do such operations, and reading the config all the time is bad.
Ok, and cache the config for reading.
Set Minepacks as required plugin and I meant to cache the YamlConfiguration object
placeholder api isnt filling in data
I have it installed
it just shows as example: %pvp_kills{player}%
Have you installed the expansion though???
I dont think there are any...
Try statistic expansion
%statistic_player_kills% to display kills as number
will that work with pvpmanager?
idk
using %statistic_player_kills% to get player's kills, how do i format it from 10581 to 10,581
Using formatter or numberformat
i'm prefer the second one
%nf_#,##0_{placeholder}%
thx
hello?
If you have a plugin already on SpigotMC just add the expansion class to the plugin 🙂
We currently aren't making new accounts unless it's absolutely necessary.
Well its not my plugin and I only want to help people with my expansions..
that plugin is open source, just PR the expansion in
Can I get my expansion verified btw ? 🙃
https://api.extendedclip.com/expansions/placeholder/
(it's basically just NestedPlaceholders with color parsing & ParseOther merged in it)
with math how do i divide %statistic_player_kills% by %statistic_deaths%
%math_2:_{statistic_player_kills}/{statistic_deaths}%
can I round that to 100ths?
2 is the decimal points
How can I add a placeholder to a scoreboard?
I wish to add the player's balance to a scoreboard
/scoreboard players add <player> <objective> <economy placeholder> like this
how can I remove the $ dollar symbol in the %vault_eco_balance_formatted% Vault Economy placeholder expansion?
That will not work for player who join for the first time, because 0/0 = error
@normal lintel change %math_2_{kills}/{deaths}% to %math_2_{kills}/max(1, {deaths})%
does anybody have issues with the player expansion in 1.19.4? cause for me it doesnt work
[PlaceholderAPI] Failed to load expansion player. Identifier is already in use.
[PlaceholderAPI] Cannot load expansion player due to an unknown issue.
this is what i get for some reason
Try stopping the server, deleting it from the expansions folder, starting the server back up, and running the command again.
🤷🏻♂️ I just did what they wanted 😂
Yeah, that is the issue i asked you before
ok so im trying to use the Server module to get the name of the bungee server im on, but when i do %server_name% it just says A Minecraft Server
the server name is the one in server.properties right?
i think its cause the protocollib doesnt have support for 1.19.4 yet :/
the server-name one
nvm found it
papi config for anybody wondering
Hello! Is there any placeholder for another player's balance? Something like %vault_eco_(player)_balance%
You can use parseother to do that
%parseother_{player name}_{placeholder you want to display}%
Oh thank you! I'll try
how can I remove the $ dollar symbol in the %vault_eco_balance_formatted% Vault Economy placeholder expansion?
how can i get the prefix of someone if im using the bungee version of luckperms?
what's your ecomomy plugin
lp placeholders should work fine I guess
the thing is
when i do
./lpb editor
everything is fine
but its not the same that appears in /lp editor
yes
go to config.yml and find Economy
and you will see the line currency-symbol: '$'
ahh okay ty
I think I’ll leave it
its more case specific
for a certain display already has the $
thanks for the assistance much appreciated
np
well, make sure you have lp bungee configured right @fair aurora
yea thats what im doing now
lol
There's this placeholder for server countdowns to a specified time %server_countdown_<SimpleDateFormat>_<time>%. But is there a placeholder for a countdown for intervals? Like it counts down ever 3 hours?
No
Alr thank you ❤️
is there any placeholder for vault prefix but only the color?
there used to be but it didn't work properly, so it got removed on the latest version
like one that just take the color at the end of vault prefix
yeah it didn't work properly
oh 😦
If you are using something like luck perms, I'd suggest to have a meta key for each rank, like prefix-color
there is an option for that?
Well you have to set it manually, but it is a very reliable solution
so should the placeholder be %luckperms_meta_prefix-color%?
yeah i think so
Do reports have to be sent on github?
IDK if barry will remove the above message so...
https://paste.helpch.at/ubebikefeh
Interesting
But yeah, open an issue on github @jolly crystal
On the vault expansion repo
Hello, I am contacting you for the reason that, in my server I use the placeholder api "statistics" to obtain the stats of kills and deaths of the users. But I have a problem and I don't know how to reset the stats, I tried deleting the playerdata and nothing, I would like to ask if you would know how to reset the stats of death and kills %statistics_death% %statistics_player_kills%.
Sorry my english is very bad
@carmine veldt
i need help please 🥺
Please refrain from pinging staff, please have patience @elfin scaffold
To reset your stats, they are located inside the World folder world/stats/
If you want to reset all stats for everybody just delete the stats folder entirely
sorey
sorry*
I did that, I deleted all the folders, including the world and even so the statistics of my player are not deleted
I don't understand anything anymore, I deleted absolutely all the folders of the worlds and I still haven't reset myself
😮
Did you stop the server beforehand?
Yeah obviusly
you deleted the world and made a new one and still not reset???
Yes
I have no idea what to tell you
that's what i'm trying to say
That is, my stats do not restart, the server does restart it
yes
100% positive you are editing the correct server files? I've seen it before that's why I ask
I have deleted the entire base world and nothing
The essentials place holder for top dont update till i restart my server help pls
or when i do /papi reload
is there a way to make it update constantly?
Can you read this and send over your log? @elfin scaffold
Baltop? It should be based on the baltop cache in Essentials. You might be able to configure that delay in Essentials.
Yeah, one moment
let me check
i checked on the config and cant find it
i thought it would be on the placeholdersapi config
as vault balance updates
Any idea why I get this in console whenever anyone joins?
[15:07:26 WARN]: [PlaceholderAPI] [math] Invalid Placeholder detected! [15:07:26 WARN]: [PlaceholderAPI] [math] Placeholder: %math_0:_({aureliumskills_power}-10)% [15:07:26 WARN]: [PlaceholderAPI] [math] Cause: '({aureliumskills_power}-10)' is not a valid Math Expression.
essentials creates the "baltop list", the placeholder expansion just provides it to papi
k so where in the essentials file could i make it update constatly
@errant wedge when you type /baltop do the placeholders happen to update?
Nop
is the /baltop different from the placeholders?
Is /baltop updated, and placeholders are not?
Or are both out of date?
both out of date
how long has it been
and the placeholders is %essentials_baltop_player%
hmm
I would ask essentials in their discord
they would definitely know more 😂
trying to look through esssentials code is...
hard
gl 👍
Hi, I'm unable to publish an update for my PlaceholderAPI expansion.
It's 500-ing out when I post it
Please check our discord for updates.
CODE: ERR_500:
<WSGIRequest: POST '/expansions/huskhomes/versions/add/'>```
would u happen to know their discord
as if i search essentails discord the plugin appears
Is the endpoint for posting expansion updates down? D:
?paste
nvmind i found it
?
this is?
Can you specify if /papi parse me %statistic_player_kills% was reset?
because you're using ajleaderboards
if you're looking at those placeholders, you have to reset the leaderboard AFTER resetting the statistics
because ajleaderboards caches the values itself as well
hey i realized
./baltop does update
the stats
i just need a way the holograms update constantly
cc: @trim mist if you're still around, do you think that it would because we only calculate it upon register? iirc essentials doesn't actually update baltop by itself, but when /baltop is run by a user, but with a time limit of every 5 minutes or so (no clue how long) https://github.com/PlaceholderAPI/Essentials-Expansion/blob/master/src/main/java/com/extendedclip/papi/expansion/essentials/EssentialsExpansion.java#L81
Would need a scheduled task to update it... 
Do you have any command scheduler plugin by chance?
No, but i dont mind adding one
That's it, it was solved by magic haha
thanks 💕
make sure you can run it from console first
/baltop force is a command
might wanna use that
thanks
That makes sense, but I don't feel it should be on us to constantly request it to be updated. It's too dynamic in terms of the amount of users they have and whatnot.
I would agree with that
hey, does someone know how to reset stats from statistic placeholder?
It pulls from world data so you'd have to reset player data in the world iirc.
i did that and it didnt reset
How are you verifying that?
verifying what?
That it didn't reset.
i still have got 10h playtime
Is the PlaceholderAPI eCloud version updating service down?
It's erroring out with a 500 for me. Could a member of staff please check this for me?
When I try and "Save Changes" on a new version with a file, it returns a red screen with
<WSGIRequest: POST '/expansions/huskhomes/versions/add/'>```
I've tried signing in/out and on multiple devices
Where are you seeing this information?
on my scoreboard
Is it on a scoreboard, tab, a leaderboard from ajleaderboards, etc.?
Which placeholder is on your scoreboard @calm sluice
%statistic_time_played%
Ah, I noticed what glare said. Statistics pull from the stats folder, you need to delete that @calm sluice
i have already deleted that 2 times and it still didnt reset
shut down server, delete, start server, not cleared?
nvm im an idiot
it reseted rn
i was deleting the file with server being on
anyway, thanks for help
hey! how do I upload my plugin on papi ecloud?
We don't accept plugins, just expansions
Can you verify my expansion as well ;-; https://api.extendedclip.com/expansions/placeholder/
what do you need?
Idk why, but I logged out of my discord acc my majn one and I didn’t use my real email and I need my email to verify it to get back in but idk what todo. Does that mean i can’t get back in? I can’t do my number because it says it sent like stuff on my spam email nd that but I didn’t use my real 1 is there any other way to get it back?
This server is for help with Minecraft plugins, not Discord, you'd probably want to get help through DIscord's official support page
Oh alr thanks
Hi i am trying to do a hologram with ranks of deaths
and i am using the /papi ecloud download statistics
is there a way to rank that?
as i am using the following %statistic_deaths%
like a leaderboard? You would need an external plugin like ajleaderboards
see wiki/spigot page
thanks
hey @mint fable can u help me witj tje plugin?
?imgur
first, test the placeholder with /papi parse <player> %placeholder%
also can do /papi parse me
yeah the %statistic_deaths% work
the /papi parse me %ajlb_lb_statistic_death_1_alltime_name% doesnt work
i think
it says loading
yea
i did this exact command
what if you parse it again now that it probably loaded
and it says on chat loading
oh it says board doesnt exist
but if i do /ajl list it shows
and if i do /ajl list statistic_deaths
it works
idk why it doesnt
for the other stuff
deaths
bruh
yes
i just realised
lol
sorry for wasting time
altho
in the hologram it is with an s
hd?
/papi parse me %ajlb_lb_statistic_deaths_1_alltime_name% and now this only gives me the name
good
/hd setline topmuertes 2 &e&l#1 %ajlb_lb_statistic_deaths_1_alltime_name 1%
oh my bad
1 inside the %%
now it works it shows the name
but can i make it show the death count?
i am trying to do this /hd setline topmuertes 2 &e&l#1 &f%ajlb_lb_statistic_deaths_1_alltime_name% &c&l%ajlb_lb_statistic_deaths_1_alltime%
but the death count dont work
jus the name work
yes thanks
👍
it works
actually the FAQ is really nice
yeah it is really usefull
Was %essentials_nickname_stripped% removed as placeholder? Doesn't seem to parse anymore
Hey, /papi parse me %nested_math_2_({tokens_Tokenator_level}*4.5)*(1+(({arefyboost_tokens})/100))% it's giving 454.5 but I want to show it as 454, and when I remove 2 decimals, so math_0_, it shows as 500
anyone knows how to round just on decimals?
Seems %luckperms_current_group_on_track_<track>% also invalid and does nothing.
try with 0:down
group on track works fine for me, make sure you're using the latest version of LuckPerms and its expansion
0:down shows 400 instead of 454
wat
yeah 🙄 xd
what does this show %math_0:down_100*4.5*(1+1/100)% ?
what ?
400
%math_0:down_454.5%
yeah this shows 454
oh
uh
I think the expansion might be broken, not sure
but it worked fine on the older version
what's the number of tokens_Tokenator_level and arefyboost_tokens ?
Tokenator level = 100, arefyboost_tokens = 2.0
With 2 decimals: https://m.arefy.net/JppvZXE.png
With 0:down: https://m.arefy.net/QpuSFm8.png
/papi ecloud download Math 1.4.1
/papi reload
use 0:down
Oh with that version worked
I think the Andre may have broken rounding again when updating EvalEx v3
@arctic loom not sure if we're using it wrong or if there's an issue, but it would be nice if you could check
So meanwhile 1.4.1 version would work right?
yeah
perf ty both!
?
"The Andre"
what?
wait, did I confuse you with someone else?
oh
bruh
sorry idk why I added "The" there 😅
probably meant "that"
idk
Also, the behaviour should be the same. Just provide the full placeholder used
%math_0:down_100*4.5*(1+1/100)% or just %math_0:down_454.5%
on 1.4.1 it returns 454 correctly, but on 2.0.0 it returns 400
Idk... math expressions should be the same.
actually it works fine with %math_0:down_454.5%, but not %math_0:down_100*4.5*(1+1/100)% which is the same math result, but not the same output
yeah they are, without the rounding it works fine, but with it, it doesn't
why placeholders for my plugins isnt working? what can be issue
which plugins and which placeholders?
I've tried with something simpler:
%math_0.5*100/10% returns 5, as expected
%math_0:up_0.5*100/10% returns 10
%math_0:down_0.5*100/10% returns 0
I think the expansion somehow rounds more than just the decimal
SuperMobCoins and %supermobcoins_mobcoins_formatted%
its just showing %supermobcoins_mobcoins_formatted%
does it show correctly in chat when you use /papi parse me %supermobcoins_mobcoins_formatted% ?
Hello everyone, how are you? I simply want to let you know that I am a web developer with expertise in both front end and back end web development as well as SEO. If you want these services, reach out to me.
yeah, it returns more than just the decimal, I tested it before, but with Math 1.4.1 works fine, so it must be an issue with latest version of Math
hello, how can i return displayname of player, who have a certain value of some placeholder?
a
Dependency 'me.clip:placeholderapi:2.11.1' not found
pom.xml
<repositories>
<repository>
<id>placeholderapi</id>
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
Hello! I'm trying to parse a nested placeholder to replace and get a substring of a rarity. Would anyone know how I could do this with nested? I tried this but it parses incorrectly: papi parse 0bviouslee %nested_3_string_replacecharacters_color-correction_{string_substring_1,14_{mmoitems_tier_BASIC}}%
It parses as mmoitems_tier}
uh oh eyes aren't a good sign
oh no they are following me
works fine for me, maybe you had one of those old and broken version of Nested where I f-ed up the entire inner placeholder code because of 2 words
and you can't update it because I deleted it from the ecloud to replace it with a new expansion called Placeholder which includes color parsing and parseother but it's not verified yet xD
yeah
well, you can keep both in the meantime
since the other placeholders you use are (I'm assuming) working, you can keep them as they are for now until you ever feel like updating xD
The question is, will I ever feel like it 
Nah I'll probably get to it soon lol, just gotta find all the weird spots I'm using nested
well you don't really need to update it lol
you can just keep the old ones and use Placeholder for the new ones
you just have to change nested_ by placeholder_parse_
Ah, works like a charm now. Thanks a lot!
btw if you need to parse the output multiple times (the previous %nested_#_<placeholder>%) it's now %placeholder_parse:#_<placeholder>%
Ah noice
and if you need to parse colors, %placeholder_colors_<placeholder>%, or for parseother, %placeholder_parseother:[player_name|placeholder]_<placeholder>%
You deleted nested?
Oof, was holding off on verifying placeholder til I got some other input on it essentially
I think the name is confusing Placeholder and I was thinking about it replacing things that are already in mass use like parseother/nested
But now nested is gone… I don’t really know why you would need the parseother part though.
All just my thoughts/opinion.
That’s what was keeping me from verifying it ATM
I originally was just going to add colors due to request, then I thought "hey, I could add parseother aswell, so it would work with inner placeholder as well" and so I did
if you want me to rename it, then sure, but idk what to name it
maybe I could just use Parse with parse_normal, parse_colors and parse_other?
hey there, I'm using the latest PAPI, Luckperms, and latest Spigot 1.12.2 builds but %luckperms_prefix% breaks up in Title Manager's scoreboard (latest build also)
did you download luckperms's ecloud thingy
/papi ecloud download LuckPerms
Additionally, what does "breaks up in Title Manager's scoreboard" mean?
@mint fable hey, uh, sorry for being an annoying individual and pinging you, but you helped me before and I have asked without pinging for 3 days. The PlaceholderAPI ecloud upload/update expansion service seems to be down (returns 500 server errors when I try and update my expansion) and it hasn't been acknowledged by any staff best I can tell -- would you mind confirming if this is indeed the case just so I can be sure it's not on my end? sorry once again for being annoying
oh huh that message appears every time I edit my message for typos too lol
that's kind weird
maybe it has something to do with this? https://i.imgur.com/l9VX3FG.png
William, are you actually logged in?
^
yup
this has been a thing for awhile -- so it shouldn't be. This just means I have to ask for approval
Yeah this is unintended behavior for sure
What's the name of the expansion?
Any reason to not put the expansion in your plugin directly?
because your documentation is dumb and told me not to
CC: @arctic loom Can we get some documentation update to encourage people to inline their expansions vs putting them in the eCloud? No rush on it, sometime this week or next week? 🙂
yeah should probably rewrite those
not a dig at you guys btw -- it's cool, but yeah, your docs definitely should explicitly say "don't do this"
well it's never too late to swap!
no external dependencies, no mismatched versions, etc.
it's as easy as copy and paste basically
Idk.... I'm for the oposite really.
At least when they're not relying on anything really
now i'm confused
Sorry I'll rephrase, encouraging them to inline them to a plugin when it relies on the plugin.
is there any way to change the guild name or add a bracket [ ] to it, when they created a guild?.
What pages exactly would need changes?
uhh in any case is the ecloud upload service definitely down rn?
I sort of get the vibe as though the ecloud is on maintenence mode and has been for awhile
It is not down at all.
But could you clarify which pages on the wiki you think need updated?
So that we can clarify that documentation?
Presumably the first big one https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion
Should be as easy as writing "Should I make an external expansion or an internal expansion?"
And putting what I said earlier basically lol
I'll do changes once I'm back at my PC
And also listing the Internal first, and probably adding some warning language for External
basically this one
agreed
Also when does the 5xx error throw? On adding a version, submitting, etc? I'm looking at 100MB of logs here so any more route infomation would make this quicker.
Sure thing, let me try and reproduce again. I can't share a screenshot exactly but
i'm not doing that lol
one sec
Please check our discord for updates.
CODE: ERR_500:
<WSGIRequest: POST '/expansions/huskhomes/versions/add/'>
Tried to upload expansion, filled in a description and selected file, clicked save
I get a red screen with a "this is fine" meme and this text
(sorry if I am coming across as a bit of an ass by the way -- not really my intent, I know you folks are busy running a very popular plugin and such. I do genuinely appreciate your help here 😅)
Worth noting I just logged in and out of my eCloud account before doing this just to make sure it wasn't an auth issue
Yeah it's likely a silly error, happens a lot in Django 😔
👍
Just gotta find the stacktrace in the logs first lol
What's even weirder is that it's returning a 200 status code in the logs.
I did also just go to that link and got the 500
it's worth mentioning that the 500 page returns the HTML with 200 OK
Ah so it's a permission issue lmao
But it just throws 500 instead of actually saying things
shouldn't it return 403 if it's a perm issue?
classic
Let me look at app logs and not network logs.
500 is server error
Internal Django perm check guaranteed
actually, it's probably not even a perm check
it probably just assumes something about the user object or something
that's what usually bites me
it did work at some point until recently though which is odd
IntegrityError: UNIQUE constraint failed: main_version.slug
oooh database moment
Did you delete a version and try to re-release it?
the version I'm trying to upload is 3.0
which doesn't exist
I haven't personally done that no
I actually can't do that afaik lol
that's an admin only action as far as I can tell
versions are 1.0, 1.0.1, 1.0.2, 2.0
interestingly though the URL of https://api.extendedclip.com/expansions/huskhomes/versions/huskhomes-30/ is 30
despite being 2.0
Try bumping it to 3.0.1?
yeah that would definitely do it
wonder why the slug algorithm decided 30 for your old one
doesn't seem to be for me
I promise you I had nothing to do with that 🙂
ah lol
🙃
bad day for expansion work
Guilds can rename after they are created via /guild rename. Afaik you can't force brackets unless you use a chat plugin that supports PlaceholderAPI and then you can manually add it 🙂
now Glare has two things on his ecloud todo
fix the auth 500, fix the slug taken 500
That's a 2 week from now problem
lmao
i mean slugs are standard practice
though this would've been a good time to use another url param for version imo lol
the slug algorithm is kinda wild, all kinds of url safety and stuff
Alright, I'm shutting back down and getting ready to drive to the airport.
thanks for the help bossman!
oh its worth mentioning I asked staff to rename some versions for me a few times when I forgot you cant edit them
now that I remember
might not be your fault actually lol
or, it might be like, an issue with the thing that lets you rename versions
oh uhh by the way, could my update get verified? lol
Sorry, I wasn't clear with that..
It does get the group prefix, though let's say if the prefix is set to &8[&aVisitor&8] , it displays "&8[&aVisitor&8]" without the color codes applied in the actual text, so it shows the & symbols and the color code.
I thought it might have been a problem with either Nametag Edit or TitleManager but i tried using the placeholder in a gui, in a hologram and it still failed to load it, so I'm wondering if PAPI is not compatible with 1.12.2 or if luckperms' expansion dropped the support for 1.12 with the latest versions
how would you implement placeholders in a scoreboard?
if it's your own plugin, then parse placeholders with PlaceholderAPI.setPlaceholders(OfflinePlayer, String)
im assuming String is placeholder?
yeah
I've recently made an expansion called Placeholder which allows you to parse placeholders with colors (though it's not verified yet so you'll need to download it manually) https://api.extendedclip.com/expansions/placeholder/
can offlineplayer be bukkitplayer?
are you using the JS expansion ?
no
there's no bukkitplayer object in the Spigot API
there's Player and OfflinePlayer (which both work) but no BukkitPlayer
yes Player my bad
ah then yes
alright ty
seems that the plugin you are using doesnt parse colors
you have many alternatives, including (iirc) the expansion MoreGradients, which allows you to use %moregradients_colorize_yourstuff%
yeah, TM hasn't been updated ever since PAPI stopped coloring placeholders
you can download it with /papi ecloud download MoreGradients
however, i recommend you to start using TAB instead
yeah but that's for gradients though, not normal colors? and I already suggested my expansion
unless you use Velocity 😔
it works for both, scoreboard and tab list
which i doubt xD
uh, TM doesn't work on Velocity either lol
i tho it had ended up supporting velocity (TAB)
nah he dropped it recently
well, one more reason to not use Velocity then
one more reason???
it technically never dropped it, just disabled the module, so you have to compile it manually
yes, the first one is recoding my plugins naa
already made an addon for it
at this point we're just dropping TAB lmao
methods are really similar
you know that you can just use TAB on the backend right?
after reading the message the TAB's dev made about velocitu support
now I moved the stuff we had in TAB out of TAB, so no more reason for TAB
i was like, wtf, did they really were like that
but the person we're talking about is using TitleManager, which is a Spigot plugin
o m g
it does parse color codes, if it doesn't, hope someone tells the author so he can fix it
but that placeholder was created for that reason
well the plugin hasn't been updated since 2021 so I doubt it
i mean the expansion lmao
oh
do i need to get the placeholder all by itself or can i pass in the scoreboard text?
“%placeholder%”
“can i do this %placeholder%”
maybe I guess, idk
you can
the string is just some text which can contain multiple placeholders
yeah
i wish i can install placeholderapi on velocity proxy and it is on every single server
As of now, it's not possible. Hopefully if v3 ever comes out and has support for proxies it'll be possible 🥲
yeah i wish
something that plugins like BTLP and TAB did was create a separate plugin that acts as a bridge between backend and the proxy, you put it on your backend; the proxy requests placeholders and the bridge sends back the placeholders parsed
if theres no placeholders to set, will it just skip it
yes
working on placeholderapi support for a plugin I’m contributing too and learning java at the same time
oh i do lmao
check the onRequest method here https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#with-a-plugin-internal-class
oh i use offlineplayer?
in the method's arguments, yeah
im assuming offline players get offline and online player?
then, if you need the Player instance, then you can just use getPlayer() off of the OfflinePlayer object, and add a null check in case the player isn't online
You can get an online player from an offline player if that player is online
alright
Can you maybe extend this question? I'm not sure I fully understand it. Just making sure so you don't end up having problems later on.
it used to before the update tho, and im not sure if moregradients would work for my case since it's a 1.12 server and gradients are introduced in the later updates
I'm guessing he's asking whether it will throw an error or not when there's no placeholder present in the string
if theres no placeholder in the string, will it throw an exception or just doesnt care about it
Ah yeah then tanguygab is correct
it will just return back the string
it does not error
@zinc musk
alright ill make them changes now
if you are not using velocity (even if you do, probably you are using spigot/paper also)
switch to TAB instead of NametagEdit
why is everyone talking about Velocity while TitleManager is a Spigot plugin
there's like 0 parallels
everyone no, just Star
but since he mentioned, i need to re mention it again
since TAB can be installed in proxies too (just no velocity)
so how would that work? is it %placeholder_parse_luckperms_prefix%
almost, %placeholder_colors_luckperms_prefix%
I'll look into tab
if you use it, you wont need to parse anything else
oh then you won't need my expansion if you do
yeah
@trim mist @analog flax I've made a PR now that you can review.
https://github.com/PlaceholderAPI/PlaceholderAPI/pull/944
Strangely enough did GitHub not allow me to make a branch called wiki/improve-placeholderexpansion-page xD
Perfect. I'm arriving at the airport. I'll check it out when I get to my layover.
Appreciate you Andre 🙂
lol cool
Andre can you please not use interrogative affirmations for the wiki? It can get very very confusing for someone that uses them very rarely or not at all. (this is just a personal request)
Also, something seems to be broken here
Also, it seems like code snippets are no longer highlighted
That's not broken. It's just GitHub's wiki page syntax which doesn't work outside the wiki
Oh. That makes sense. For some reason I thought Commands is just a title in the same page.
Not sure what you mean with that... Remember:
<-- Not native english speaking person
Another note, this could create confusion and we might end up with people setting up their identifier as rel_identifier instead of identifier.
Maybe another way of phrasing it would be:
Relational Placeholders are always prefixed with
rel_, meaning that a relational placeholder that has the identifier set asexamplewithvaluefriend looks like%rel_example_friend%when used.
Tbh; I think that page needs breaking up into separate pages for internal/external expansions & API overview, it's quite long and wordy
I do also think individual descriptions of methods aren't useful in general
Like, that's best done in a Javadoc. Clear examples are much better
(which it has to be fair! it's not bad documentation, just a lot of the good stuff is buried in..words :P)
and so hard to find, and easy to walk into garden paths. I like the improvements you've made, though, Andre.
Yeah. I'm not a native speaker either but I'm talking about this:
... i.e. because you're not the dev of it and it isn't open source, should you consider alternative solutions (i.e. asking the dev to implement it) before using this method.
Those are the only notes I have. Other than that, William is not wrong. it might be best to split it up in pages.
- getting started
- internal expansion
- external expansion
- relational placeholders
or something like that
Personally, I feel like that at this point the wiki would be better of being put onto a page hosting like GitHub Pages... GitHub Wiki is just so limited and tools like MkDocs would provide much wanted extension and customization.
I think you can have effective docs without overcomplicating it
Check plan docs for instance
Very similar situation for PAPI with expansions for data viewers for instance
Hosted on GitHub wikis and very effective and easy to read through and understand
And probably no longer or shorter than PAPI’s existing docs in terms of character count
so you suggested that I use %placeholder_color_luckperms_prefix% ?
well if you're switching to TAB, you don't need to use that
but if you are sticking to TitleManager, then yes
yeah I like TM's features better and thank you :D
alr
it tells me register is not valid?
and then it tells me PlaceholderExpasion is not valid?
https://gitlab.com/lawmixer/law-mixer-uhc-core-dev/-/blob/uhccore-placeholder-support/src/main/java/com/gmail/val59000mc/placeholderapi.java
make sure papi is imported right
how
(sorry im new to plugin dev)
for the depencies compileOnly 'me.clip:placeholderapi:{VERSION}'
do i put placeholder api latest version?
you need to replace {Version}
but what do i replace it with
placeholderapi version?
yes
ah alright, ty
np
nevermind, it is still not working
https://i.imgur.com/GonW5Dd.png
C:\Users\Owner\OneDrive\Documents\law-mixer-uhc-core-dev\src\main\java\com\gmail\val59000mc\placeholderapi.java:16: error: package me.clip.placeholderapi.expasion does not exist
import me.clip.placeholderapi.expasion.PlaceholderExpasion;
did you reload gradle?
yes i did
hmm
LOL
yeah dont type imports manually
