#placeholder-api

150650 messages · Page 106 of 151

limber ice
#

they are only in Autorank 5.19+

vivid sparrow
#

@limber ice why if they are not part of the expansion?

austere hawk
#

yo can someone make a placeholder that checks if a player is in a faction or not and returns yes or no?

austere hawk
#

Bump

limber ice
#

@vivid sparrowbecause I can't add placeholders quick to a clip expansion

vivid sparrow
#

?

prisma plover
#

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

junior musk
#

try to delete the expansion in PAPI's folder and /papi reload

prisma plover
#

alr

prisma sonnet
#

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?

distant rock
#

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?

distant rock
# prisma sonnet Hey there! 👋

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.

junior musk
distant rock
junior musk
#

uh, those aren't PAPI placeholders

#

unless you're using TAB maybe?

distant rock
#

Yea, i use TAB by NEZNAMY

junior musk
distant rock
#

thx, you rescued me. sorry for posting off topic

junior musk
#

dw it's fine 👍

vivid sparrow
vivid sparrow
#

@prisma sonnet are you able to restart your server?

solar swift
#

hello, i have gui with ranks but I (and players too) can get the items from it

vivid sparrow
solar swift
#

sry

gleaming seal
#

as you say to a bot

gilded spruce
mint fable
limber ice
#

toggle the eCloud?

balmy marten
#

you could disable/enable the ecloud usage ingame

limber ice
#

so disable ecloud means it don't check online versions?

balmy marten
#

prevents downloading from the ecloud

#

i would assume it would stop checking the ecloud aswell

limber ice
#

ok, for servers that have to many chiefs

balmy marten
#

it was fine before, this just adds an extra step of security for those who have permissions setup wonky

limber ice
#

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

balmy marten
#

if its built in now we'll unverifiy the ecloud one

#

to prevent mismatch

limber ice
#

ok, will older Autorank users still be able to download it

balmy marten
#

only manually

limber ice
#

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

fierce herald
#

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?

urban marsh
#

Make sure you have the right ip/port and if you want you can try to parse it using /papi parse me {placeholder}

austere hawk
#

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.

austere hawk
vivid sparrow
#

What js expansion command?

#

/jsparse or whatever was removed afaik

austere hawk
vivid sparrow
#

Yeah it was removed I believe

austere hawk
#

theres nothing when i type /js (tabcomplete)

#

nothing /javascript

vivid sparrow
#

It wasnt a registered command anyways

austere hawk
#

oo

vivid sparrow
#

/papi parse me %placeholder%

austere hawk
#

but do u have any idea why my code isn't working?

vivid sparrow
#

No

austere hawk
#

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

vivid sparrow
#

I think it needs to be {player name}

austere hawk
#

huh?

#

oh wait

vivid sparrow
#

%parseother_{args[0]}...

austere hawk
#

nope

vivid sparrow
#

And you need to do more than that

austere hawk
#

I know very good javascript, that isn't a way to put variables inside a string

#

its ${}

vivid sparrow
#

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.

austere hawk
#

wow I've never seen that in my life of js development in like 2 years

vivid sparrow
#

Currently papi is trying to parse this placeholder: %parseother_" + args[0] + "_vault_eco_balance% - with all the +s and "s

austere hawk
#

gonna try

#

Damn it works

vivid sparrow
#

great

#

and technically you dont need the new Number() part, unless you want to change the formatting

austere hawk
#

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 :/
vivid sparrow
#

what would that return? toLocaleString("en-Us")

austere hawk
#

(10700).toLocaleString("en-us")
"10,700"

vivid sparrow
#

try to parse this in chat %vault_eco_balance_commas%, it should be what you want

austere hawk
#

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

vivid sparrow
#

what doesn't work?

austere hawk
#

the code

#

.toLocaleString

vivid sparrow
#

it may not be supported by the js version

#

use what I sent instead

austere hawk
#

yeah

#

i think nashorn is just too old

vivid sparrow
#

try this

austere hawk
#

nope, still doesn't

vivid sparrow
#

then yeah, it might not be supported at all

limber ice
#

@austere hawkI'm still using Javascript expansion on Papi 2.11.2

austere hawk
#

i don't get why you're saying this

mystic lava
#

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

lone glacier
#

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.

trim mist
mint fable
trim mist
#

Ahh did they?

lone glacier
#

yeah

mint fable
#

yep lol

trim mist
#

And you confirmed it fixed it?

lone glacier
#

yeah

#

it works

trim mist
#

I can't believe we missed such a simple oversight. Great work.

#

Will have that merged and released in an hour.

mild ermine
#

How to make automessages with MessageAnnocer 1.19

mint fable
#

i think sxtanna did a lot of the bungee work on this one

#

🙃

trim mist
#

Yeah he completely rewrote it

#

Which is great because it cleaned it up, but missed one thing.

mint fable
#

yep yep

#

will happen

#

now that it has only the latest version in the jar, makes it easier to identify and fix issues 😂

lone glacier
#

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

mint fable
#

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

lone glacier
mint fable
#

perfecto

#

ty for help

lone glacier
#

no problem 🙂

trim mist
#

Alright, that's merged and released. Should start showing up in-game in the next hour or so.

vivid sparrow
#

🌈

lone glacier
#

I see, thank you

trim mist
#

And thank you for finding that fix! 😄

lone glacier
#

No problem, open source power 👀

fierce herald
mystic lava
tender vaporBOT
tender vaporBOT
austere hawk
#

bump

mint fable
#

it will not be verified

#

This does not mean you can't download it @austere hawk

austere hawk
#

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?

pallid kestrel
#

its not letting me import skript

#

./papi ecloud download skript doesnt work

eager sapphire
#

I can return Int as placeholder?

mint fable
austere hawk
#

Well, thats unfortunate

fierce herald
#

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

austere hawk
#

probably firewall issue

tawdry pecan
#

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

vivid sparrow
#

make sure you are running an update version of TAB

tawdry pecan
#

How do you know it comes from Tab?
Already using the latest version :/

mint fable
#

at me.neznamy.tab.platforms.bukkit.features.BukkitTabExpansion.onPlaceholderRequest(BukkitTabExpansion.java:53) ~[TAB.v3.3.1.jar:?]

vivid sparrow
#

If you downgrade to papi 2.11.2 it works fine? @tawdry pecan

urban marsh
vivid sparrow
#

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

urban marsh
tender vaporBOT
urban marsh
fierce herald
#

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?

mint fable
#

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

fierce herald
tawdry pecan
nova crane
#

Is there any placeholder that when a player have a certain permission to output a special character text?

vivid sparrow
nova crane
#

For example if player have permission "iron_unlocked" to output "yes= ɐ" "no=ʠ"

vivid sparrow
#

Changeoutput

vivid sparrow
#

@tawdry pecan you should contact the author of TAB just to make sure. It can not be caused by papi

hot mulch
#

Hi, is there a method to change the time the palceholder refreshes?

nova crane
nova crane
#

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

junior musk
junior musk
nova crane
junior musk
#

lol

trim mist
#

If you have a plugin on SpigotMC for it, just make an inlined class in the plugin and register it through that.

junior musk
#

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?

#

why would you do that ? 🤨

#

just use commands

#

well, commands

#

PAPI's main purpose is to display information, not to be used as commands

vivid sparrow
#

because that's not how placeholders are meant to be used

junior musk
#

yeah

austere hawk
#

How do I make placeholders update quicker

junior musk
#

placeholders' refresh interval depends on the plugin parsing the placeholders, PAPI only provides the result, but it doesn't refresh them on its own

austere hawk
#

but the plugin I use is Skript

junior musk
#

then depends on how many times Skript parses the placeholder

austere hawk
#

and I use it in TAB's Plugin

junior musk
#

ah, you're using the Skript placeholder in TAB ?

#

then it's in TAB's config

#

it has a section called placeholderapi-refresh-intervals

austere hawk
#

aight I found it

#

♥️

junior musk
#

you can set the refresh interval for all placeholders, or a specific one

austere hawk
#

Works perfectly

#

yo how would I use a prefix with color now that color parsing is removed?

junior musk
#

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

austere hawk
#

hmm but %vault_prefix% and %luckperms_prefix% just return like raw colorcodes in most of the plugins

junior musk
#

which plugins are you using?

austere hawk
#

like mycommand and discordsrv

junior musk
#

make sure they're up to date

austere hawk
#

its %vault_prefix% but u need the Vault expansion

#

or LuckPerms_prefix

junior musk
#

that's not the issue

austere hawk
#

sorry

junior musk
#

dw

austere hawk
#

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

dawn dew
#

why not do it yourself? oh nvm its locked

#

yep sorry

junior musk
dawn dew
#

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

austere hawk
#

Tangy always saving the day 🙏

dawn dew
#

wait I though that was a joke lmao

junior musk
#

@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

austere hawk
#

hmm, %npc_parse_<placeholder>% :D

junior musk
dawn dew
junior musk
#

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} |%

dawn dew
#

still shows the | with blank in between

#

thats what I don't want

junior musk
#

what does /papi parse me %deluxetags_identifier% show?

#

oh wait

#

you probably need to change the > with equals

dawn dew
#

ah

#

thank you

#

sorry

#

you are big brain

#

thank

#

I ve been tryna use > so mucgh I never tried anything else

junior musk
#

@austere hawkwoo

#

oh yeah, I could integrate the ParseOther expansion in it now

austere hawk
#

🥲

#

yo do you guys know u would use the changeoutput to input text whenever a placeholder returns a blank value?

junior musk
#

just replace the input, ifmatch and else to the placeholder you want to check, and the values you want displayed instead

junior musk
#

let's goo

#

uploading it to the ecloud

#

Hey cj or anyone else, if you can verify my expansion 👍

wraith berry
#

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?

mint fable
#

Is it color, nested, and parseother?

#

I'll have to see later anyway, gotta head out actually

wraith berry
#

got it, thanks!

junior musk
dusky gale
#

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

vivid sparrow
#

you can use %statistic_time_played:(unit)% for days, hours, and minutes

dusky gale
#

so i have to make multiple?

vivid sparrow
#

%statistic_time_played:days%d %statistic_time_played:hours%h %statistic_time_played:minutes%m
Try this

dusky gale
#

ok tyy

#

is it possible to make it so ppl who dont have days of playtime not show 0d

dawn dew
#

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

vivid sparrow
dusky gale
#

oh okay

dawn dew
vivid sparrow
#

you can, JS was just an example

dawn dew
#

ah alright

dawn dew
# dusky gale oh okay

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

olive otter
#

hello

#

I solved the problem but every time I execute /papi ecoud download Math all my placeholders are corrupted.

tender vaporBOT
placid smelt
#

Where can I find people who are doing DeluxeMenus? I need to hire someone to do some DeluxeMenus designs for me.

coarse lily
#

DESIGN ?

ember canopy
#

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.

trim mist
#

PlaceholderAPI should have nothing to do with the gear players wear. We simply parse strings into data.

ember canopy
#

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?

trim mist
#

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.

ember canopy
#

To be completely honest I don't know how placeholder is doing it either

#

but it works perfectly without it for some reason

trim mist
#

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.

ember canopy
#

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

trim mist
#

👍

vivid sparrow
#

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

normal lintel
#

placeholder api isnt filling in data

#

I have it installed

#

it just shows as example: %pvp_kills{player}%

urban marsh
#

Have you installed the expansion though???

normal lintel
#

there is none

#

I'm using PvPmanager and PlayTime

normal lintel
coarse lily
#

%statistic_player_kills% to display kills as number

normal lintel
coarse lily
signal bramble
#

using %statistic_player_kills% to get player's kills, how do i format it from 10581 to 10,581

coarse lily
#

i'm prefer the second one

#

%nf_#,##0_{placeholder}%

signal bramble
#

thx

dapper mauve
#

hello?

trim mist
#

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.

dapper mauve
errant iron
junior musk
normal lintel
#

with math how do i divide %statistic_player_kills% by %statistic_deaths%

mint fable
#

%math_2:_{statistic_player_kills}/{statistic_deaths}%

normal lintel
mint fable
normal lintel
#

ohhh

#

tysm

serene eagle
#

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

stuck sorrel
#

how can I remove the $ dollar symbol in the %vault_eco_balance_formatted% Vault Economy placeholder expansion?

coarse lily
coarse lily
#

@normal lintel change %math_2_{kills}/{deaths}% to %math_2_{kills}/max(1, {deaths})%

austere hawk
#

does anybody have issues with the player expansion in 1.19.4? cause for me it doesnt work

austere hawk
#
[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

trim mist
#

Try stopping the server, deleting it from the expansions folder, starting the server back up, and running the command again.

mint fable
coarse lily
#

Yeah, that is the issue i asked you before

fair aurora
#

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?

austere hawk
fair aurora
#

nvm found it

vivid sparrow
#

papi config for anybody wondering

manic sand
#

Hello! Is there any placeholder for another player's balance? Something like %vault_eco_(player)_balance%

coarse lily
#

%parseother_{player name}_{placeholder you want to display}%

manic sand
stuck sorrel
#

how can I remove the $ dollar symbol in the %vault_eco_balance_formatted% Vault Economy placeholder expansion?

fair aurora
#

how can i get the prefix of someone if im using the bungee version of luckperms?

vivid sparrow
stuck sorrel
#

oh I change it there?

fair aurora
#

when i do

#

./lpb editor

#

everything is fine

#

but its not the same that appears in /lp editor

coarse lily
#

go to config.yml and find Economy

#

and you will see the line currency-symbol: '$'

stuck sorrel
#

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

coarse lily
#

np

vivid sparrow
#

well, make sure you have lp bungee configured right @fair aurora

fair aurora
#

yea thats what im doing now

junior musk
#

welp

vivid sparrow
#

lol

green crow
#

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?

vivid sparrow
#

No

green crow
tender vaporBOT
empty glen
#

is there any placeholder for vault prefix but only the color?

vivid sparrow
#

there used to be but it didn't work properly, so it got removed on the latest version

empty glen
#

like one that just take the color at the end of vault prefix

vivid sparrow
#

yeah it didn't work properly

empty glen
#

oh 😦

vivid sparrow
#

If you are using something like luck perms, I'd suggest to have a meta key for each rank, like prefix-color

empty glen
#

there is an option for that?

vivid sparrow
#

Well you have to set it manually, but it is a very reliable solution

empty glen
#

oh there is

#

thank you

empty glen
vivid sparrow
#

yeah i think so

jolly crystal
#

Do reports have to be sent on github?

tender vaporBOT
jolly crystal
vivid sparrow
#

Interesting

#

But yeah, open an issue on github @jolly crystal

#

On the vault expansion repo

elfin scaffold
#

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 🥺

mint fable
#

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

elfin scaffold
elfin scaffold
elfin scaffold
#

😮

mint fable
elfin scaffold
mint fable
#

you deleted the world and made a new one and still not reset???

elfin scaffold
#

Yes

mint fable
#

I have no idea what to tell you

elfin scaffold
#

that's what i'm trying to say

mint fable
#

to me, that seems impossible

#

If you open the stats folder, is it empty now?

elfin scaffold
#

That is, my stats do not restart, the server does restart it

elfin scaffold
mint fable
#

100% positive you are editing the correct server files? I've seen it before that's why I ask

elfin scaffold
#

I have deleted the entire base world and nothing

errant wedge
#

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?

tender vaporBOT
mint fable
trim mist
elfin scaffold
#

Yeah, one moment

errant wedge
#

i thought it would be on the placeholdersapi config

#

as vault balance updates

warm plover
#

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.

mint fable
errant wedge
#

k so where in the essentials file could i make it update constatly

mint fable
#

@errant wedge when you type /baltop do the placeholders happen to update?

errant wedge
#

Nop

mint fable
#

is the /baltop different from the placeholders?

#

Is /baltop updated, and placeholders are not?
Or are both out of date?

errant wedge
#

both out of date

mint fable
#

how long has it been

errant wedge
#

and the placeholders is %essentials_baltop_player%

errant wedge
#

it never updates

mint fable
#

hmm

#

I would ask essentials in their discord

#

they would definitely know more 😂

#

trying to look through esssentials code is...

#

hard

errant wedge
#

yeah i guess lol

#

well thanks anyways

mint fable
#

gl 👍

analog flax
#

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/'>```
errant wedge
#

as if i search essentails discord the plugin appears

analog flax
#

Is the endpoint for posting expansion updates down? D:

elfin scaffold
#

?paste

tender vaporBOT
errant wedge
#

nvmind i found it

elfin scaffold
vivid sparrow
#

?

mint fable
#

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

errant wedge
#

./baltop does update

#

the stats

#

i just need a way the holograms update constantly

mint fable
#

Would need a scheduled task to update it... thonking

mint fable
errant wedge
#

No, but i dont mind adding one

mint fable
#

maybe just a basic one to run /baltop every 5 minutes or something

#

for now

elfin scaffold
#

That's it, it was solved by magic haha

elfin scaffold
#

thanks 💕

mint fable
#

make sure you can run it from console first

#

/baltop force is a command

#

might wanna use that

errant wedge
#

thanks

trim mist
mint fable
#

I would agree with that

calm sluice
#

hey, does someone know how to reset stats from statistic placeholder?

trim mist
#

It pulls from world data so you'd have to reset player data in the world iirc.

calm sluice
#

i did that and it didnt reset

mint fable
calm sluice
mint fable
#

That it didn't reset.

calm sluice
tender vaporBOT
analog flax
#

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

mint fable
calm sluice
#

on my scoreboard

mint fable
#

Is it on a scoreboard, tab, a leaderboard from ajleaderboards, etc.?

#

Which placeholder is on your scoreboard @calm sluice

calm sluice
#

%statistic_time_played%

mint fable
calm sluice
#

i have already deleted that 2 times and it still didnt reset

mint fable
#

shut down server, delete, start server, not cleared?

calm sluice
#

nvm im an idiot

#

it reseted rn

#

i was deleting the file with server being on

#

anyway, thanks for help

round cargo
#

hey! how do I upload my plugin on papi ecloud?

balmy marten
#

We don't accept plugins, just expansions

stone edge
#

Verify my expansions

marsh mantle
#

Guyssss

#

Can someone help meee?

junior musk
junior musk
marsh mantle
#

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?

junior musk
#

This server is for help with Minecraft plugins, not Discord, you'd probably want to get help through DIscord's official support page

marsh mantle
#

Oh alr thanks

errant wedge
#

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%

mint fable
tender vaporBOT
errant wedge
#

k ill instale it

#

k i have installed it

#

how can i do that?

mint fable
#

see wiki/spigot page

errant wedge
#

thanks

errant wedge
#

hey @mint fable can u help me witj tje plugin?

errant wedge
#

o sorry for ping

#

where can i send an image

mint fable
#

?imgur

tender vaporBOT
errant wedge
#

oh k

#

it isnt working

#

and i made the leaderboard like %statistic_deaths%

mint fable
#

first, test the placeholder with /papi parse <player> %placeholder%

#

also can do /papi parse me

errant wedge
#

yeah the %statistic_deaths% work

#

the /papi parse me %ajlb_lb_statistic_death_1_alltime_name% doesnt work

#

i think

#

it says loading

mint fable
#

it says loading?

#

not the placeholder?

errant wedge
#

yea

errant wedge
mint fable
#

what if you parse it again now that it probably loaded

errant wedge
#

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

errant wedge
#

bruh

#

yes

#

i just realised

#

lol

#

sorry for wasting time

#

altho

#

in the hologram it is with an s

mint fable
#

hd?

errant wedge
#

/papi parse me %ajlb_lb_statistic_deaths_1_alltime_name% and now this only gives me the name

mint fable
#

good

errant wedge
#

/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

mint fable
#

%ajlb_lb_<board>_<number>_<type>_value%

#

found the FAQ?

errant wedge
#

yes thanks

mint fable
#

👍

errant wedge
#

it works

mint fable
#

actually the FAQ is really nice

errant wedge
#

yeah it is really usefull

raw fable
#

Was %essentials_nickname_stripped% removed as placeholder? Doesn't seem to parse anymore

deep hollow
#

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?

raw fable
junior musk
deep hollow
junior musk
#

wat

deep hollow
#

yeah 🙄 xd

junior musk
#

what does this show %math_0:down_100*4.5*(1+1/100)% ?

coarse lily
#

what ?

coarse lily
#

%math_0:down_454.5%

junior musk
#

oh nvm, now it does it for me as well

#

I was using an older version

deep hollow
junior musk
#

oh

#

uh

#

I think the expansion might be broken, not sure

#

but it worked fine on the older version

coarse lily
#

what's the number of tokens_Tokenator_level and arefyboost_tokens ?

deep hollow
#

Tokenator level = 100, arefyboost_tokens = 2.0

junior musk
#

/papi ecloud download Math 1.4.1
/papi reload
use 0:down

coarse lily
#

mine have the same result with you now

#

🥴

deep hollow
junior musk
#

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

deep hollow
#

So meanwhile 1.4.1 version would work right?

junior musk
#

yeah

deep hollow
#

perf ty both!

junior musk
#

what?

#

wait, did I confuse you with someone else?

#

oh

#

bruh

#

sorry idk why I added "The" there 😅

#

probably meant "that"

#

idk

arctic loom
#

Also, the behaviour should be the same. Just provide the full placeholder used

junior musk
#

%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

arctic loom
#

Idk... math expressions should be the same.

junior musk
#

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

junior musk
modern light
#

why placeholders for my plugins isnt working? what can be issue

junior musk
#

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

modern light
#

its just showing %supermobcoins_mobcoins_formatted%

junior musk
#

does it show correctly in chat when you use /papi parse me %supermobcoins_mobcoins_formatted% ?

modern light
#

nope

#

still just %supermobcoins_mobcoins_formatted%

junior musk
#

then it's an issue with SuperMobCoins

#

try to contact the developer

zealous heron
#

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.

deep hollow
raw rune
#

hello, how can i return displayname of player, who have a certain value of some placeholder?

austere hawk
#

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>

warm plover
#

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

junior musk
#

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

warm plover
#

Hmm

#

Looks like I have to use the new placeholder expansion though huh

junior musk
#

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

warm plover
#

I'll have to update a loooooooot of my old stuff ;-;

#

darn

junior musk
#

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

warm plover
#

The question is, will I ever feel like it reversed_fingerguns

#

Nah I'll probably get to it soon lol, just gotta find all the weird spots I'm using nested

junior musk
#

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_

warm plover
#

Ah, works like a charm now. Thanks a lot!

junior musk
#

btw if you need to parse the output multiple times (the previous %nested_#_<placeholder>%) it's now %placeholder_parse:#_<placeholder>%

warm plover
#

Ah noice

junior musk
#

and if you need to parse colors, %placeholder_colors_<placeholder>%, or for parseother, %placeholder_parseother:[player_name|placeholder]_<placeholder>%

mint fable
#

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

junior musk
#

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?

zinc musk
#

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)

pale jay
#

/papi ecloud download LuckPerms

stone edge
#

Additionally, what does "breaks up in Title Manager's scoreboard" mean?

analog flax
#

@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

analog flax
#

oh huh that message appears every time I edit my message for typos too lol

#

that's kind weird

unkempt charm
trim mist
#

William, are you actually logged in?

analog flax
analog flax
errant iron
#

Yeah this is unintended behavior for sure

trim mist
#

What's the name of the expansion?

analog flax
#

I've logged in, out, shaken it all about, etc

#

huskhomes

errant iron
#

Any reason to not put the expansion in your plugin directly?

analog flax
#

because your documentation is dumb and told me not to

trim mist
#

What

#

We encourage inlining expansions if you have a plugin for it 😛

analog flax
#

your docs don't

#

not explicitly

#

they provide pros and cons

#

lol

trim mist
#

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? 🙂

errant iron
#

yeah should probably rewrite those

analog flax
#

not a dig at you guys btw -- it's cool, but yeah, your docs definitely should explicitly say "don't do this"

errant iron
#

well it's never too late to swap!

analog flax
#

because I agree, I should just do that lol

#

It's not, no, and I will eventually lol

errant iron
#

no external dependencies, no mismatched versions, etc.

#

it's as easy as copy and paste basically

arctic loom
#

At least when they're not relying on anything really

analog flax
#

now i'm confused

errant iron
#

The vast majority of expansions are for a plugin

#

They should go in the plugin

trim mist
#

Sorry I'll rephrase, encouraging them to inline them to a plugin when it relies on the plugin.

green harbor
#

is there any way to change the guild name or add a bracket [ ] to it, when they created a guild?.

trim mist
arctic loom
#

What pages exactly would need changes?

analog flax
#

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

trim mist
#

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?

errant iron
#

Should be as easy as writing "Should I make an external expansion or an internal expansion?"

#

And putting what I said earlier basically lol

arctic loom
#

I'll do changes once I'm back at my PC

errant iron
#

And also listing the Internal first, and probably adding some warning language for External

analog flax
#

basically this one

analog flax
trim mist
#

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.

analog flax
#

Sure thing, let me try and reproduce again. I can't share a screenshot exactly but

analog flax
#

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

errant iron
#

Yeah it's likely a silly error, happens a lot in Django 😔

analog flax
#

👍

errant iron
#

Just gotta find the stacktrace in the logs first lol

trim mist
#

What's even weirder is that it's returning a 200 status code in the logs.

errant iron
#

I did also just go to that link and got the 500

trim mist
#

You're not logged in

#

Or don't have perms

#

I load it just fine

analog flax
#

it's worth mentioning that the 500 page returns the HTML with 200 OK

errant iron
#

Ah so it's a permission issue lmao

#

But it just throws 500 instead of actually saying things

analog flax
errant iron
#

classic

trim mist
#

Let me look at app logs and not network logs.

analog flax
#

500 is server error

errant iron
#

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

analog flax
#

it did work at some point until recently though which is odd

trim mist
#

IntegrityError: UNIQUE constraint failed: main_version.slug

errant iron
#

oooh database moment

trim mist
#

Did you delete a version and try to re-release it?

analog flax
#

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

#

despite being 2.0

trim mist
#

Try bumping it to 3.0.1?

errant iron
#

yeah that would definitely do it

analog flax
#

oh huh

#

okay

errant iron
#

wonder why the slug algorithm decided 30 for your old one

analog flax
#

oh github is down

#

well that's great lol

errant iron
#

doesn't seem to be for me

trim mist
#

I promise you I had nothing to do with that 🙂

analog flax
#

lolol

#

all good

errant iron
#

ah lol

analog flax
#

🙃

errant iron
#

bad day for expansion work

trim mist
analog flax
#

yes

#

okay sweet, that works, thank you very much for debugging that for me 🙂

errant iron
#

now Glare has two things on his ecloud todo

#

fix the auth 500, fix the slug taken 500

trim mist
#

That's a 2 week from now problem

errant iron
#

lmao

tender vaporBOT
trim mist
#

Nice

#

What doesn't make sense is it gives the slug based on the version

errant iron
#

i mean slugs are standard practice

#

though this would've been a good time to use another url param for version imo lol

trim mist
#

So how the heck did it get 30 if that version was 20 lol

#

That's a eCloud 2.0 problem

errant iron
#

the slug algorithm is kinda wild, all kinds of url safety and stuff

trim mist
#

Alright, I'm shutting back down and getting ready to drive to the airport.

errant iron
#

thanks for the help bossman!

analog flax
#

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

zinc musk
# stone edge Additionally, what does "breaks up in Title Manager's scoreboard" mean?

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

sharp glacier
#

how would you implement placeholders in a scoreboard?

junior musk
sharp glacier
#

im assuming String is placeholder?

junior musk
#

yeah

junior musk
sharp glacier
#

can offlineplayer be bukkitplayer?

junior musk
#

are you using the JS expansion ?

sharp glacier
#

no

junior musk
#

there's no bukkitplayer object in the Spigot API

#

there's Player and OfflinePlayer (which both work) but no BukkitPlayer

sharp glacier
#

yes Player my bad

junior musk
#

ah then yes

sharp glacier
#

alright ty

stone edge
#

you have many alternatives, including (iirc) the expansion MoreGradients, which allows you to use %moregradients_colorize_yourstuff%

junior musk
#

yeah, TM hasn't been updated ever since PAPI stopped coloring placeholders

stone edge
#

you can download it with /papi ecloud download MoreGradients

#

however, i recommend you to start using TAB instead

junior musk
errant iron
stone edge
#

it works for both, scoreboard and tab list

stone edge
junior musk
stone edge
#

i tho it had ended up supporting velocity (TAB)

errant iron
#

nah he dropped it recently

stone edge
#

well, one more reason to not use Velocity then

errant iron
#

one more reason???

junior musk
#

it technically never dropped it, just disabled the module, so you have to compile it manually

stone edge
#

yes, the first one is recoding my plugins naa

errant iron
#

lmao

#

Velocity is way better

#

glad i switched

stone edge
#

already made an addon for it

errant iron
#

at this point we're just dropping TAB lmao

stone edge
#

methods are really similar

junior musk
errant iron
#

don't get the placeholders on the proxy

#

which was the original usage

stone edge
#

after reading the message the TAB's dev made about velocitu support

errant iron
#

now I moved the stuff we had in TAB out of TAB, so no more reason for TAB

stone edge
#

i was like, wtf, did they really were like that

junior musk
#

but the person we're talking about is using TitleManager, which is a Spigot plugin

stone edge
#

o m g

stone edge
#

but that placeholder was created for that reason

junior musk
stone edge
#

i mean the expansion lmao

junior musk
#

oh

sharp glacier
junior musk
#

maybe I guess, idk

junior musk
#

the string is just some text which can contain multiple placeholders

stone edge
#

player can be null also

#

but string cannot be null iirc

junior musk
#

yeah

sharp glacier
#

i wish i can install placeholderapi on velocity proxy and it is on every single server

junior musk
#

As of now, it's not possible. Hopefully if v3 ever comes out and has support for proxies it'll be possible 🥲

sharp glacier
#

yeah i wish

junior musk
#

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

sharp glacier
#

if theres no placeholders to set, will it just skip it

junior musk
#

yes

sharp glacier
junior musk
#

you have zCoordinate twice btw

#

also, that doesn't seem right

sharp glacier
#

oh i do lmao

sharp glacier
#

oh i use offlineplayer?

junior musk
#

in the method's arguments, yeah

sharp glacier
#

im assuming offline players get offline and online player?

junior musk
#

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

turbid tide
sharp glacier
#

alright

turbid tide
zinc musk
junior musk
sharp glacier
#

if theres no placeholder in the string, will it throw an exception or just doesnt care about it

turbid tide
#

Ah yeah then tanguygab is correct

#

it will just return back the string

#

it does not error

sharp glacier
#

alright ill make them changes now

stone edge
#

if you are not using velocity (even if you do, probably you are using spigot/paper also)

#

switch to TAB instead of NametagEdit

junior musk
#

why is everyone talking about Velocity while TitleManager is a Spigot plugin

#

there's like 0 parallels

stone edge
#

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)

zinc musk
junior musk
#

almost, %placeholder_colors_luckperms_prefix%

zinc musk
stone edge
#

if you use it, you wont need to parse anything else

junior musk
arctic loom
#

Strangely enough did GitHub not allow me to make a branch called wiki/improve-placeholderexpansion-page xD

trim mist
#

Perfect. I'm arriving at the airport. I'll check it out when I get to my layover.

#

Appreciate you Andre 🙂

turbid tide
#

Also, something seems to be broken here

#

Also, it seems like code snippets are no longer highlighted

arctic loom
turbid tide
#

Oh. That makes sense. For some reason I thought Commands is just a title in the same page.

arctic loom
analog flax
#

I submitted a review

#

I didn't go in depth on the grammar

turbid tide
#

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 as example with value friend looks like %rel_example_friend% when used.

analog flax
#

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.

turbid tide
#

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

arctic loom
#

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.

analog flax
#

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

zinc musk
junior musk
#

well if you're switching to TAB, you don't need to use that

#

but if you are sticking to TitleManager, then yes

zinc musk
junior musk
#

alr

vivid sparrow
#

make sure papi is imported right

sharp glacier
#

how

#

(sorry im new to plugin dev)

#

for the depencies compileOnly 'me.clip:placeholderapi:{VERSION}'

do i put placeholder api latest version?

vivid sparrow
#

you need to replace {Version}

sharp glacier
#

but what do i replace it with

vivid sparrow
#

a version, it is the same as the one from spigot

#

latest is 2.11.3

sharp glacier
#

placeholderapi version?

vivid sparrow
#

yes

sharp glacier
#

ah alright, ty

vivid sparrow
#

np

sharp glacier
#
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; 
vivid sparrow
#

did you reload gradle?

sharp glacier
#

yes i did

vivid sparrow
#

hmm

sharp glacier
#

now its saying that

mint fable
#

PlaceholderExpansion

#

missing n

sharp glacier
#

LOL

vivid sparrow
#

yeah dont type imports manually

mint fable