#placeholder-api

1 messages · Page 41 of 1

junior musk
#

none as far as I know

#

PAPI isn't a proxy plugin either way, it doesn't know of players from other servers

static hare
soft orbit
#
java.net.ConnectException: Connection timed out```
soft orbit
#

i m not able to download expansion

muted thistle
#

Hello I am looking for 1 placeholder who can calculate the result of a subtraction of 2 other placeholders like %placeholder1% - %placeholder2%

#

please ping me if anyone knows how I can do it or if a placeholder exists

junior musk
#

Math

#

/papi ecloud download Math
/papi reload
%math_{placeholder1}_{placeholder2}%

muted thistle
junior musk
#

uh, if you put a - instead of a _ between them, yeah, idk why I put a _ 😅

muted thistle
#

but thank you for answering me

junior musk
#

what does it show?

#

and where are you using the placeholder?

#

and which placeholders are you using?

muted thistle
#

%math_{%cc_total_win_counter_blue%}_{%cc_total_lose_counter_blue%}%

junior musk
#

remove the % inside the math placeholder

muted thistle
#

okay

junior musk
#

the {} are supposed to replace them

muted thistle
#

okay thx

muted thistle
#

it works but I would like to do the subtraction I have to add or the -

#

because the 2 placeholders are positive numbers

#

and I would like to do -

muted thistle
#

❤️

short dagger
#

Someone knows a placeholder for 1.12.2 that acts like the formatter placeholder? (%utils_parse_formatter_text_replace_o_o1_oi%)

#

please

muted thistle
# junior musk the {} are supposed to replace them

I still have 1 small problem he manages to do the subtraction and there is no problem when the result is negative but when the result is positive it goes wrong and it adds 1 0 after a viurgul here is my placeholder "%math_{cc_total_win_counter_blue}__-{cc_total_lose_counter_blue}%"

junior musk
#

I'm not sure I understand

#

can you send the exact output you're getting and what you want?

short dagger
#

can anyone help me pls

junior musk
#

just use Formatter directly

muted thistle
#

I want it to calculate the total of my wins the place holder of my wins >>%cc_total_win_counter_blue%

that of lose es >>%cc_total_lose_counter_blue% except that this one also gives 1 positive number and I would like to do the win minus the lose

#

I can send you the screen in private so you can understand the problem

short dagger
# junior musk why use Utils?

just a test bc i wanna use this in my Executable itens to make a gacha system, but the problem is: the placeholder %formatter_text_replace_[target][replacement]<text>% don't work in 1.12.2 bc the formatter don't work for 1.12.2

junior musk
#

it does, it just requires you to run the server with Java 17

#

if you're not on Java 17, then you can't use it

short dagger
#

but if i change my java version, my server still working well?

#

%utils_parse_score_variables_tier5_{RNG_0,{math_0_{score_variables-size_tier5}-1}}%

#

here

#

i wanna use the formatter to format the "tier5" bc this returns a command

#

like

#

pokegive %player_name% magearna customtexture:bunny

#

but this don't work, so i change to pokegive=%player_name%=magearna=customtexture:bunny

#

and i wanna change the = to space in my final command in deluxe menus

short dagger
#

but im have this problem

junior musk
#

idk

#

Formatter only works on Java 17, that's all I know

short dagger
#

ok, thanks

#

but just to know, there's any placeholder that can do the same thing?

junior musk
#

idk

short dagger
#

ok, thx

true dawn
#

Hi

#

Where do I report bug about EssentialsX placeholders?

native gorge
#

Hi, does %griefprevention_currentclaim_ownername_color% not working properly anymore?

#

it does work when im in unclaimed areas but gives "<PlaceholderAPI Error>" when im in a player's claim

rapid hinge
#

hello, im having problem with the placeholders
whenever i restart server or download new ecloud placeholders and reload papi some of the placeholders broke and only get fixed when we reinstall papi but it breaks again sometime later

#

coinsengine and %togglepvp_state% gets broken everytime

glacial apex
#

Does anyone know why %player_name% isnt working at all ?

crimson cove
native gorge
#

are you using tab on proxy or backend?

glacial apex
nocturne nimbus
#

How can I turn this into an integer with java? %vault_eco_balance_commas%

junior musk
nocturne nimbus
#

Thank you 🙂

north silo
#

IDK whats wrong wityh placeholderapi, but when i use the %bungee_total% placeholder, it shows 0 players. What might be the problem, i also use velocity proxy, maybe something with the proxy?

south iron
#

When I use the %server_tps_1% placeholder, a " * " sometimes gets added in the front on the number, and I don't know why this is the case. Can someone help me?

#

nvm

#

to fix it you do: %formatter_text_replace_*__{server_tps_1}%

desert depot
#

%parseother_{{player}}_{formatter_text_replace_|_\n_{checkitem_getinfo:0_loreequals:}}%

#

help

quaint grotto
#

Would anyone know why my requirment isnt working for checking my SkillAPI placeholder? I have to regerstering in the title of the GUI

'skill_point_use':
    material: EXPERIENCE_BOTTLE
    slot: 4
    lore:
      - '&7Use a skill point to gain temporary effects!'
      - '&7You currently have {%sapi_default_currentavailableskillpoints%} skill points.'
    # Assuming "sapi_default_currentavailableskillpoints" is a placeholder that holds the skill points.

    click_requirement:
      minimum_requirements: 1
      stop_at_success: true
      deny_commands:
        - "[message] &7You don't have 1 of the 2 permissions required."
      requirements:
        has_points:
          type: ">="
          input: %sapi_default_currentavailableskillpoints%
          output: 20
    click_commands:
      - "[message] &7You have 1 of the 2 permissions required."
tribal willow
#

API Leaderboards Bedwars1058 and changed to Solo and Doubles and 3v3v3v3 and 4v4v4v4

#

pls

south iron
junior musk
#

they can be used anywhere as long as the plugins you use them in support it

junior musk
#

and what's your DeluxMenus version?

native gorge
#

Hey can i ask who works on the Server Expansion for Papi?

native gorge
#

I wanted to ask about the %server-mspt-colored% placeholder. i had to download from github since it's not part of the official on ecloud

mint fable
#

is that the exact placeholder? because papi uses underscores

#

where did you get it on github?

native gorge
#

if i use underscore in discord it would format the text

mint fable
native gorge
#

completely forgot about that xD

mint fable
#

so you're looking for Ikenychi/ChimneySwift?

#

gaby said it wasn't going to be added to the one on the ecloud

#

he recommende using spark's placeholders

#

i'm not entirely sure what you're looking for, just putting info out there

native gorge
#

yes, im used to the server's placeholder. since we use the tablist. so was wondering if it was going to be part of the official

#

but since not it's all good.

mint fable
#

gaby closed as "completed" but prob should've done not planned

#

if that was a thing back then idk

native gorge
#

i tried the spark's placeholder but im not looking for 3 or 6 or 9 values. just 1 value to show current mspt.
does spark have that 1 only?

mint fable
#

3 or 6 or 9?

#

wym @native gorge

native gorge
#

5secs/1m/10m. avg/min/max etc

#

just want the current mspt

#

with colour

dim pendant
#

When will the update for 1.20.2-1.20.4 be released ?

cosmic needle
dim pendant
cosmic needle
#

Have you tried it on those versions?

#

Just because it doesn’t say it supports those, never hurts to try to check if they do. Iirc they do as they work on my server.

dim pendant
cosmic needle
#

What’s the error?

dim pendant
cosmic needle
#

Fair enough, I mean sending it here should be fine as someone should be able to help!

dim pendant
formal siren
#

alguien sabe como restablecer una variante

whole burrow
#

Hello,
I've just noticed a new thing with placeholders, when I do a /papi reload, there are no more placeholders working and I have to restart my server to get them working again, it's not very practical :/

sharp jay
cosmic needle
halcyon brook
#

i am having a problem with place holders can somebody help me please.

#

@sharp jay

tender vaporBOT
hard cosmos
#

I am on 1.20.4, with the latest placeholderapi

mint fable
#

i think it's internal now, no need for expansion @hard cosmos

hard cosmos
#

Hmmm

#

Nothing about it in the wiki

#

I am creating menus for them and using some javascript

#

I think I just forgot to upload the plugin itself

quartz nacelle
#

hi guys

#

actually when i downloaded few placeholders

#

it doesnt load

#

like vault servertime and superb vote and coinsapi

hard cosmos
#

Yeah I transfered my deluxemenus but not mcmmo: 🤦‍♂️

mint fable
#

but not theirs

#

i let them know about that

hard cosmos
#

Haha

shut nova
shut nova
austere hawk
#

how do i do click requirements but check a placeholder if its set to a specific number like 20 so %lssmp_hearts% = 20

ping me if u can help

sweet terrace
#

How comes with parseother if I try

%parseother_unsafe_{username}_vault_eco_balance% it just returns ault_eco_balanc, just removing the first and last letter of the placeholder

#

Adding an extra v at the start and e at the end fixed it but just seems strange

junior musk
#

put the vault placeholder within {}

gentle coyote
#

Is there any way to make the value of the placeholder depend on who is looking at it, and not on who it is applied to?
I searched for information about this on various forums and wikis, but I did not find an answer

For example, in the placeholder tab %vault_prefix% will display the prefix of the player to whom the placeholder is applied, but I need it to be applied to someone who looks at this placeholder

mint fable
#

%vault_prefix% will display a different value for every player

#

it will display their own prefix

gentle coyote
#

Perhaps you misunderstood me
For example, in the screenshot, the prefix is applied to a certain player and everyone sees the same prefix of the player to whom it is applied, but I need its value to be displayed depending on who is looking at it
I need this for my plugin, which has its own placeholder

https://imgur.com/a/Ba0JspI

#

I'm just using the %vault_prefix% example for illustrative purposes

mint fable
#

what tab plugin is this

gentle coyote
mint fable
#

hmm, I don't really understand still

#

to be honest

#

do you want the prefix of another player to change depending on who is looking at it?

junior musk
#

you need relational placeholders

mint fable
#

I maybe think vault prefix was a bad example to use, I get it now

#

for your own plugin

warm plover
#

If checkitem remove is not recommend, what should I use?

mint fable
#

vanilla remove command

#

?checkitem-nbt

tender vaporBOT
mint fable
#

there is a tutorial linked inside that tutorial

warm plover
#

grrrrrrrr that's going to suck

#

they are changing the whole item format next update, so much updating ;-;

#

thanks though!

#

annnnnnd rip the idea of mat contains, name contains, etc :/

#

I'll probably have to find something else besides vanilla commands cuz it seems too limiting

mint fable
#

it's the least limiting thing @warm plover

warm plover
#

well I know it would allow for more complex checking

#

But with how my item system works, not having the concept of "mat contains" and "name contains" is unfortunate, unless it has support for that and I'm a dummy

mint fable
#

ahh

warm plover
#

I did find another remove item thing in one of my plugins that works with my item plugin, so that's a win

#

Thanks again though 🙏

quartz nacelle
tender vaporBOT
mint fable
#

@quartz nacelle this

quartz nacelle
mint fable
#

all the ones you listed seem to register

quartz nacelle
#

wdym?

mint fable
#

do the placeholders work if you type /papi parse me %placeholder%

quartz nacelle
mint fable
#

replace it with your placeholder

quartz nacelle
#

ok

#

uhh

#

i got a long log

quartz nacelle
#

i tried with vault

mint fable
#

which placeholder

#

can you send the log

#

?startuplog

tender vaporBOT
quartz nacelle
#

vault_eco_balance_formatted

quartz nacelle
quartz nacelle
quartz nacelle
#

i did some correction and all started working except playertime

#

nvm that also fixed

#

ty for help

quaint grotto
#
  'slot_29':
    material: GOLD_INGOT
    model_data: 128022
#

Why is my customModelData not working?

quartz nacelle
#

last one is servertime

#

pls tell

#

sorry i was downloading the wrong placeholder

#

i am done now tysm!

manic latch
#

LMAO

short solar
#

how do i formet time

#

%realmines_secondsleft_Easter% this will give me 2000 [sacons]

#

idk how to formet

jolly field
#

wheres papi i need papi omg 😭

glad sand
#

yoooooooo

#

do this server support like uhhhhhh

#

pvp modpack vanilla thingy thingy?

#

cusssss

#

just ping me when helper came

#

ba bye

shy idol
#

is there a placeholder that shows the time until the end of the ban. I use LiteBans

humble smelt
#

hello guys i tryied to add my placeholder in plugin but i dont know why its not working can you help?

package io.github.mrbeezwax.customleveling;

import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;

public class LevelProgressPlaceholder extends PlaceholderExpansion {

    @Override
    public @NotNull String getIdentifier() {
        return "level_progress";
    }

    @Override
    public @NotNull String getAuthor() {
        return "YourName";
    }

    @Override
    public @NotNull String getVersion() {
        return "1.0";
    }

    @Override
    public String onPlaceholderRequest(Player player, @NotNull String params) {
        if (player == null) {
            return "";
        }

        float experiencePercent = player.getExp() * 100;

        // Calculate the number of filled squares based on the experience percentage
        int filledSquares = (int) (experiencePercent / 10);

        // Generate the progress string
        StringBuilder progressString = new StringBuilder();
        for (int i = 0; i < 10; i++) {
            if (i < filledSquares) {
                progressString.append("■");
            } else {
                progressString.append("□");
            }
        }

        return progressString.toString();
    }
}

PlaceholderAPI version is 2.11.5

#

The problem is when i try to use it
/papi bcparse BogdanBoner %level_progress%
i shows only "%level_progress%" on chat so its probably not working at all

mint fable
#

your identifier cannot contain _

humble smelt
#

so how it should look like?

mint fable
#

progress is the params for your onPlaceholderRequest method

humble smelt
#

ok i understand now ill try only

        return "progress";
    }```
placeholder will be? %progress%?
mint fable
#

no

#

%<identifier>_<placeholder>%

#

see all of these for player

humble smelt
#

yes

mint fable
#

the full example on the wiki would be %example_placeholder1 or %example_placeholder2

humble smelt
# mint fable the full example on the wiki would be `%example_placeholder1` or `%example_place...

ok thx for help its like this right?

package io.github.mrbeezwax.customleveling;

import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;

public class LevelProgressPlaceholder extends PlaceholderExpansion {

    private final CustomLeveling plugin;

    public LevelProgressPlaceholder(CustomLeveling plugin) {
        this.plugin = plugin;
    }

    @Override
    @NotNull
    public String getAuthor() {
        return String.join(", ", plugin.getDescription().getAuthors());
    }

    @Override
    @NotNull
    public String getIdentifier() {
        return "customleveling";
    }

    @Override
    @NotNull
    public String getVersion() {
        return plugin.getDescription().getVersion();
    }

    @Override
    public String onRequest(OfflinePlayer player, @NotNull String params) {
        if (!params.equalsIgnoreCase("progress")) {
            return null;
        }

        if (player == null || !player.isOnline()) {
            return "";
        }

        Player onlinePlayer = player.getPlayer();
        if (onlinePlayer == null) {
            return "";
        }

        float experiencePercent = onlinePlayer.getExp() * 100;
        int filledSquares = (int) (experiencePercent / 10);

        StringBuilder progressString = new StringBuilder();
        for (int i = 0; i < 10; i++) {
            if (i < filledSquares) {
                progressString.append("■");
            } else {
                progressString.append("□");
            }
        }

        return progressString.toString();
    }

}
#

and placeholder will be %customleveling_progress%

mint fable
#

yes

half meadow
#

hello question, does this plugin allow trading?

azure flare
#

How can I make a shop within deluxe menus for a secondary currency like player points

mint fable
#

@azure flare

deep hollow
#

Hey, someone knows a expansion for block breaks but optimized? To show it on scoreboard, on a prison server

#

I saw multiple servers using it on scoreboard without lagging and updating each block break (large playerbases servers) 🤔

full scroll
#

hello im using a multiserver setup named multipaper

#

is there a way to sync all the data between servers so i can create placeholder from player that are not on the same server ?

rustic zephyr
#

Hello guys, I hope you're doing well. I have a question about using Checkitem. I'm having an issue with it, as I don't know how to retrieve the advancedenchantments:ae_book_level, but I can retrieve the advancedenchantments:ae_book.

For the ae book, I use this: %checkitem_getinfo:mainhand_nbtstrings:PublicBukkitValues..advancedenchantments:ae_book=%
With the ae book level, I use this: %checkitem_getinfo:mainhand_nbtstrings:PublicBukkitValues..advancedenchantments:ae_book_level=%

However, it doesn't return the level. How could I make it return the level?

Thank you very much, and excellent development.

#

nbt:NBTTagCompound:PublicBukkitValues:{"advancedenchantments:ae_book":"plantar","advancedenchantments:ae_book_failure":0,"advancedenchantments:ae_book_level":1,"advancedenchantments:ae_book_success":100}|INTEGER:CustomModelData:0

#

That the NBT of the item

tender vaporBOT
austere hawk
#

hey! i was wondering if it was possible to edit placeholders outputs via papi? like make a placeholder that uses another placeholder, and edits the output

#

i remember doing it on a server i used to work for ages ago but can't remember how haha

iron quest
#

is it possible to link a placeholder to another server, i have a lobby and i want it to show "essentials_safe_online" for the survival player count excluding vanished

austere hawk
#

found this from 2020 lol, seems to be from placeholderapi:

function flyStatus(){
  if("%essentials_fly%" === "no") {
    return "&c&lDisabled";
  }
if("%essentials_fly%" === "yes") {
  return "&c&LEnabled";
  } 
}```
#

how/where would i create sum like this? is there a tutorial?

smoky spoke
#

what js methods can i use at the js expansion?

mint fable
#

changeoutput @austere hawk

#

%changeoutput_equals_input:{essentials_fly}_matcher:yes_ifmatch:&c&lEnabled_else:&c&lDisabled%

austere hawk
#

fixed the issue, didn't register in survival

#

js config, not survival

#

too tired

mint fable
#

js will be a little less efficient just fyi @austere hawk

austere hawk
#

how come?

mint fable
#

you have to start a javascript engine every time you parse the placeholder

austere hawk
#

does it effect server performance and/or ram?

mint fable
#

yes

#

i'd suggest changeoutput

austere hawk
#

ram usage is going crazy af looking at it 💀

mint fable
#

try to use javascript in really dire situations

austere hawk
#

got it on the tab

#

i'll do that instead, ty

#

can you use spaces with this?

#
&r&c%changeoutput_equals_input:{player_world}_matcher:world_ifmatch:Build World_matcher:world_the_nether_ifmatch:Build Nether_matcher:world_the_end_ifmatch:Build End_matcher:resource_world_ifmatch:Resource World_matcher:resource_world_nether_ifmatch:Resource Nether_matcher:resource_world_end_ifmatch:Resource End_else:&null%
#

doesn't seem to work - not sure why

austere hawk
#

okay changed to this:
%changeoutput_equals_input:{player_world}:matcher:world_ifmatch:Build World_matcher:world_the_nether_ifmatch:Build Nether_matcher:world_the_end_ifmatch:Build End_matcher:resource_world_ifmatch:Resource World_matcher:resource_world_nether_ifmatch:Resource Nether_matcher:resource_world_end_ifmatch:Resource End_else:null%

#

now it's just shooting out null

mint fable
#

If you want to do multiple things like that you could use utils and nest changeoutput placeholders

#

or you could use the string replace feature which uses a defined list in the config

#

(might be ideal for worlds if you have a bunch)

mint fable
tender vaporBOT
iron quest
#

i dident ping :/

exotic gull
#

hello, why %essentials_afk% return "yes/no" insted of "[AFK]"

junior musk
#

didn't I already answer you?

exotic gull
dry raft
#

image HACK

exotic gull
dry raft
#

you image hacker idk

#

mask hacker

exotic gull
#

ur english is weird

dry raft
#

turkey? you

exotic gull
#

nah ...

dry raft
#

russian ? you

exotic gull
#

no

dry raft
#

engilish? you

exotic gull
#

no

dry raft
#

japan?

exotic gull
#

no

dry raft
#

What

exotic gull
#

dont spam here

dry raft
#

who you worl

exotic gull
#

dm me if u want somethin

dry raft
#

flag you who what

#

flag you name?

exotic gull
#

you england Michael Jordan

dry raft
#

not

#

azerbaijan me

#

you flag name what

exotic gull
#

ye obvious by grammar

dry raft
#

Why

#

flag you name what

#

hacker

exotic gull
#

dm me ... dont spam here

dry raft
#

flag no you spam?

dry raft
#

@✨𝓢𝓱𝓮𝓵𝓫𝔂✨ Hacker

#

@exotic gull HACKER\

exotic gull
#

dm me dont spam here

dry raft
#

flag spam?

#

food? spam

young ether
#

hey, im using decentholograms and im trying to make it say welcome %player% but its not saying the players name, just %player%. I have the player expansion and also my %essentials_nickname% isnt working too, i use it to say the players name in my chat (i have the expansion)

junior musk
#

?player

tender vaporBOT
young ether
#

i did that

junior musk
#

send a screenshot of the hologram

#

?imgur

tender vaporBOT
young ether
junior musk
#

did you run /papi reload?

#

I see you reloaded DecentHologram in the screenshot, but I don't see PAPI being reloaded

young ether
#

when i do papi reload it doesnt come up with a message in chat

#

even after i restart the server it still doesnt work

#

my server is 1.20.4 could that be why?

junior musk
#

you have an issue with your math expansion (which could prevent other expansions from loading)

#

try redownloading it or deleting it

young ether
#

i have but it seems the whole of placeholderapi just isnt working

#

ok ill try uninstall math and see if it changes anything

#

i deleted math from the expansions folder and im gonna restart my server is that the right way?

#

oh damn u was right it works now ty

junior musk
#

/papi reload should work as well

young ether
#

yes it does ty

#

how could i get my math expansion to work though i really need it for my hearts display below player's names

junior musk
#

try redownloading it

#

maybe the jar was corrupted

#

if it throws an error again, send it here

#

?paste

tender vaporBOT
young ether
#

thank you

junior musk
#

seems fine, what's the issue?

#

it would, depending on where you're using that

#

/papi cmdparse

#

because if you use a normal command in your chat box, placeholders aren't parsed

#

unless the cmd does it but none of them do that

#

and usually you don't need it, since you're likely going to use the cmd in a plugin, which does support PAPI

#

you wouldn't need the parse cmd

#

since DeluxeMenus parses PlaceholderAPI placeholders in commands already

#

so just use the normal cmd with the faction placeholder in your click commands in DeluxeMenus

loud sedge
#

When I write Papi ecloud download Vault, the plugin does not download, the plugin I want says, a plugin named: Vault was not found

#

@junior musk

#

When I write Papi ecloud download Vault, the plugin does not download, the plugin I want says, a plugin named: Vault was not found

junior musk
#

I already answered you, no need to ping me and post your message multiple times

long spoke
#

Hello, i installed the server extension with /papi ecloud download Server and it does not show in the placeholders list after a reload

mint fable
#

?startuplog

tender vaporBOT
mint fable
#

send your log over @long spoke

long spoke
#

was about to do it

#

pastebin just crashed :/

junior musk
#

?paste

tender vaporBOT
long spoke
#

the log file does not looks right

#

I mean 177689 lines of znpcs errors

#

i'm trying without it

junior musk
#

try removing the BuyCraft expansion

#

/plugins/PlaceholderAPI/expansions/

long spoke
#

it worked :D

loud sedge
#

When I write Papi ecloud download Vault, the plugin does not download, the plugin I want says, a plugin named: Vault was not found

#

@junior musk vault is installed

warm plover
#

no need to ping random people btw people will respond

loud sedge
#

My eyes are sore

zealous vault
#

@mint fable my fav help me 😢

tender vaporBOT
zealous vault
#

i fixedc

azure flare
azure flare
junior musk
junior musk
#

unless you added open requirement

loud sedge
iron quest
#

is it possible to link a placeholder to another server, i have a lobby and i want it to show "essentials_safe_online" for the survival player count excluding vanished

junior musk
quartz nacelle
#

where can i send my logS?

junior musk
#

?paste

tender vaporBOT
quartz nacelle
#

yoo

#

here

junior musk
#

there's an issue with your LifeStealCore placeholders

quartz nacelle
#

oh

#

ok got it

#

ty

loud sedge
junior musk
#

the expansions wasn't downloaded

#

what does it say when you run
/papi ecloud download Vault ?

loud sedge
junior musk
#

send a screenshot

#

?imgur

tender vaporBOT
junior musk
loud sedge
#

Ss

junior musk
#

download it manually then

dim temple
#

Hi! I'm looking for someone to create relational placeholder to returning a color when other people are in different world
Reference: Origin Realms

loud sedge
junior musk
#

uh?

#

you can't have the same error

#

send a screenshot

loud sedge
#

Sccren

#

@junior musk

junior musk
#

I told you to download it manually

#

not with the command

loud sedge
#

How do I download it manually?

quartz nacelle
#

hey after u done pls help me in general plugins 🙂

junior musk
loud sedge
#

I don't know how to download manually, can you help me, what should I do?

junior musk
loud sedge
#

Thank

loud sedge
#

@junior musk

#

Excuse me, do you also take a pickup truck?

#

Wanted

junior musk
#

what?

loud sedge
#

Ok

long spoke
dim temple
long spoke
#

yes

dim temple
#

The plugin is loaded?

#

try ./pl and see if the plugin is green

long spoke
#

it is red

dim temple
#

That's the problem

#

Maybe its not support for new version or missing some dependencies plugin 😄

long spoke
#

maybe

fickle dove
#

I'm wondering is there any possible way for javascript placeholder to return a condition case? For instance, i have my config like this, and i want it to return case 1 if they have more than 32 stone, else it returns case 2 https://paste.helpch.at/yirevimiza.csharp

Thanks

junior musk
#

if (amount > 32) return "smth"
return "smth else"

fickle dove
#

Thanks

bronze shell
#

hey there, i'm trying to figure out another utils shortcut shenanigan that result in an error but i'm not sure why

#

i'm trying to use mmocore's placeholder %mmocore_skill_parameter_<parameter_name>:<skill_name>%
in my case, i want it to return the cooldown stat of a skill, so "parameter_name" is "cooldown"

#

as for the skill name, my goal is to fetch this element from another placeholder... but!

#

because mmocore likes to make stuff complicated sometimes, the placeholder that gives out the skill name i want have some extra formating (colors, spaces, problematic accents...) so i made some automatic replacement through a string preset

#

so the skill name placeholder is something like that
%string_replaceCharacters_skill_{utils_uncolor:each_mmocore_bound_1}%

#

it works perfectly

#

so now i would like to make an utils shortcut for this bad boy :
%mmocore_skill_parameter_cooldown:{string_replaceCharacters_skill_{utils_uncolor:each_mmocore_bound_1}}%

#

but it doesnt work. i'm not sure why

#

if i parse %string_replaceCharacters_skill_{utils_uncolor:each_mmocore_bound_1}%, i get Boule_de_feu, which is the intended output

if i parse %mmocore_skill_parameter_cooldown:Boule_de_feu% i get 8, which is also the intended output

junior musk
#

/papi parse me %utils_parse_mmocore_skill_parameter_cooldown:{string_replaceCharacters_skill_{utils_uncolor:each_mmocore_bound_1}}%

#

what does it return? and do you get an error in console?

bronze shell
#

no this works

#

ô_õ

junior musk
#

then what doesn't?

bronze shell
#
  utils:
    shortcuts:
      skilltotalcd: "%mmocore_skill_parameter_cooldown:{string_replaceCharacters_skill_{utils_uncolor:each_mmocore_bound_1}}%"

/papi parse me %utils_shortcut_skilltotalcd%

#

this doesn't

junior musk
#

what does it return?

#

and do you get an error?

bronze shell
#

error

#

yeah

junior musk
#

send it

#

?paste

tender vaporBOT
bronze shell
junior musk
bronze shell
#

the main difference between your command and mine is that you added utils_parse

junior musk
#

ah

#

lul

bronze shell
#

i've never used that before

junior musk
#

I'm not parsing the placeholders as if it were utils in the shortcut

#

so you do still need utils_parse_ even in the shortcut

bronze shell
#

yeah that's what i thought it was ahah

#

oh yeah cuz utils nest

#

alright gotcha

junior musk
#

I thought I did but I guess it's better this way, just in case, somehow

bronze shell
#

now it works, thank you as always

young ether
#

I'm using the TAB plugin, with a hearts display on the belowname, I have an expansion on papi ecloud called 'Math', my issue is I need to take away the the decimals because i just want it to display a double digit number, on my other server it just says the amount of hearts but on my new server it has this issue, does anyone know how to fix? https://imgur.com/a/ZiY7iCt

junior musk
#

math_0_<expression>

young ether
#

tysm

junior musk
#

can't you just use %player_health_rounded% though ?

#

oh, you're dividing by 2, nvm

hardy isle
#

soo I have an issue with my placeholders in regards of:

  • Citizens
  • VotingPlugin

I'm trying to basically USE %votingplugin_canvotesites%;
on a normal hologram, it works but on citizens it doesn't work (no player), I'm on latest version of placeholder API; VotingPlugin and Citizens2's build.

cunning thunder
#

Things do not appear to want to work for me.
https://imgur.com/a/qEUKk5L
I was able to download the ecloud needed for the values and execute the reload command and they all said it was successful

junior musk
#

send the link you get in chat

native gorge
#

does jetsprisonmines have a default placeholder when not in a mine?
it kind of freezes if not in a mine and if you relog, it defaults to the %% format

  • %jetsprisonmines_name%
  • %jetsprisonmines_time_until_reset%
    edit: Im using it for a scoreboard, not holograms
snow acorn
junior musk
#

I see Vault but not player

#

and what does /papi parse me %vault_rank% returns in chat?

junior musk
cunning thunder
junior musk
#

then it could maybe be because of the V and R

#

try %vault_rank% in your scoreboard in full lowercase

cunning thunder
#

ok that applied correctly

#

and then I got the one for player done, when things worked the first time it worked without the player expansion, but downloading that and reloading fixed the rest, thanks for the help

snow acorn
mint fable
snow acorn
wide ferry
#

Hey, anyone available to pick their brains about CMI aliases and calling placeholders for other people?
I have a roleplay server and we store RPG traits using CMI usermeta placeholders. When I run /papi parse --null %parseother_{[username]}_{utils_parse:2_Shortcut_book_trait_{cmi_user_meta_astrophobiatrait0}_name}%, I get the expected placeholder for that user's trait (where [username] is swapped out for someone's username, like bleyjo or AstrophobiaRP.
However, when trying to parse this using an alias it returns my trait (as in the person who runs the command) instead.
The alias command is msg! [playerName] &aSpecies trait: &2%parseother_{$1}_{utils_parse:2_Shortcut_book_trait_{cmi_user_meta_astrophobiatrait0}_name}% where $1 is the name of the user. At this stage of the command, $1 has already been verified to exist and also be the name of a player who's online.

earlier in the same command, %parseother_{$1}_{cmi_user_metaint_AstrophobiaXP}% is able to parse that user's XP. So I think the issue can be narrowed down to the custom alias command interacting with either the utils_parse or the shortcut PAPI.

#

I've also sent a message in the Zrips discord but no response yet

junior musk
#

%utils_parseplaceholder:[$1]_shortcut_book_trait_{cmi_user_meta_astrophobiatrait0}_name}%

wide ferry
#

No dice, still catching my usermeta instead of the targetted user

junior musk
#

can you put in just {cmi_user_meta_astrophobiatrait0}

#

without any %% around

#

just to see if it parses

wide ferry
#

doesn't respond w anything on its own

junior musk
#

weird

#

not sure

wide ferry
#

%parseother_{$1}_{cmi_user_metaint_astrophobiatrait0}% responds with that user's correct number (for my guinea pig it's 109)

#

its just finding a way to plug that into the shortcut placeholder

#

each trait is stored as a shortcut file named book_trait_[number]_name, and I'm trying to put a targetted user's stored trait number value in that number slot

#

but it keeps accidentally catching MY value even though im trying to specify another user

#

but it only accidentally catches my value through running it as a CMI alias, it doesn't when I run it through /papi parse

#

that's what's confusing me the most

wide ferry
#

I'm 90% sure it's how CMI is handling parseother.
/papi parse --null %parseother_{AstroEdo}_{utils_parse_shortcut_book_trait_{cmi_user_meta_astrophobiatrait0}_name}% returns Enhanced Vision (the correct value)
using a custom alias that runs msg! [playerName] %parseother_{AstroEdo}_{utils_parse_shortcut_book_trait_{cmi_user_meta_astrophobiatrait0}_name}% returns no |AstrophobiaRP yes ('AstrophobiaRP' is the name of the account I'm running the command on)

#

the command is identical, the only thing that's different is me running it through /papi parse and running it through a CMI custom alias

wide ferry
#

I can now guarantee with 100% accuracy that the issue is with CMI nestled placeholder processing, will update again if I ever find a fix for this

wide ferry
#

Solved it!!!
tossing in a ptarget:$1! into the cmi command fixed the issue completely. The final CMI command was asConsole! ptarget:$1! msg! [playerName] %utils_parse_shortcut_book_trait_{cmi_user_meta_astrophobiatrait0}_name%, which provides the cmi usermeta for the user specified by ptarget

cloud lotus
#

is there a way to fetch blocks mined for all ores, or a block tag? i have a math placeholder that works fine on its own, but im trying to put it into a leaderboard, and causes issues with the leaderboard when i try to parse it, because it is too big. i couldnt find anything on the wiki for this unless i missed it, any help would be appreciated

ping me with your response please!

magic patrol
#

Is it possible to use multiple Placeholders in a Placeholder?
Currently, I have it like this: %objective_score_cashTeam_%team_name%%, but the result is 0team_name%%

balmy marten
#

Is possible with an expansion, just trying to remeber the name of it

gloomy inlet
#

Hi! Not sure, but is it possible to create my own placeholders using PlaceholderAPI and changing the value through other plugins?

junior musk
#

make the placeholder return stuff from a Map

#

and make that Map public so other plugins can access it

#

or make a plugin with commands to change the values and use those commands in other plugins

#

or just use ServerVariables

gloomy inlet
#

Thank you!

warm plover
warm topaz
#

?help

tender vaporBOT
exotic gull
#

Hello how to fix this ?
07.04 16:38:53 [Server] WARN [PlaceholderAPI] Failed to load external expansion votingplugin. Identifier is already in use. 07.04 16:38:53 [Server] WARN [PlaceholderAPI] Cannot load expansion votingplugin due to an unknown issue.

steep arch
worthy rampart
#

Hello, I'm trying to find the placeholder for teleporting players through a command panel...

exotic gull
steep arch
smoky spoke
#

how do i use checkitem expansion's getinfo modifier to extract double values? wiki page only shows int and string options

worthy rampart
steep arch
worthy rampart
#

It's the plugin I'm using

steep arch
#

ah so a deluxemenus alternative, ive never used it tho ig u make it run the cmd as console

worthy rampart
#

I'm very new to running a server as well as using plugins so I'm just not sure how to make it run the command

#

I'm using "Command Panel Editor" online

#

I tried to post a picture here to show you what I mean but i'm unable to do so,

#

Is there a way for me to show you the screenshot i took?

manic badge
#

is it possible to show a specific player's kills using placeholder
for example, if i want to show kills of a player named 'example', is there any placeholder for this?

fervent escarp
#

How do I update an expansion when the plugin indicates that there is a new version?

wet lotus
#

I am trying to make a gui with the item name being a specific tag. I want the name to show the colors and all that. I can't figure out a way to get the tag display in code. I know placeholder-api but I don't know how to use it in my code?

Would I just do "%deluxetags_tag_1%"? or how does it work?

mint fable
wet lotus
wet lotus
mint fable
#

use null

#

not all placeholders support null

#

obviously the dtags should be fine

#

just lapsed in what was going on for a sec

wet lotus
tender vaporBOT
ancient plank
#

Is the Bungee placeholder broken?

humble smelt
#

Hello guys
Could someone help my on my code

private void updatePlayerPlaceholder(Player player, String placeholderKey, int addValue) {
        String placeholderName = "%" + placeholderKey + "%"; // Nazwa placeholdera

        // Pobierz aktualną wartość placeholdera dla gracza
        String currentValue = PlaceholderAPI.setPlaceholders(player, placeholderName);

        // Sprawdź, czy aktualna wartość placeholdera jest liczbą
        int currentValueInt = 0;
        try {
            currentValueInt = Integer.parseInt(currentValue);
        } catch (NumberFormatException e) {
            // Jeśli aktualna wartość nie jest liczbą, zignoruj aktualizację
            getLogger().warning("Aktualna wartość placeholdera " + placeholderName + " nie jest liczbą!");
            return;
        }

        // Dodaj nową wartość do aktualnej wartości placeholdera
        int newValue = currentValueInt + addValue;

        // Utwórz mapę, która będzie zawierała pojedynczą aktualizowaną wartość placeholdera
        Map<String, String> placeholderToUpdate = new HashMap<>();
        placeholderToUpdate.put(placeholderName, String.valueOf(newValue));

        // Zaktualizuj wartość placeholdera dla gracza
        PlaceholderAPI.setPlaceholders((OfflinePlayer) player, placeholderToUpdate);
    }

im trying to update my placeholders value but i cant find how to modify them exacly on wiki

also here is my code for request and register

package org.example;

import org.bukkit.OfflinePlayer;
import org.jetbrains.annotations.NotNull;
import me.clip.placeholderapi.expansion.PlaceholderExpansion;

public class CustomPlaceholder extends PlaceholderExpansion {

    private final Main plugin;

    public CustomPlaceholder(Main plugin) {
        this.plugin = plugin;
    }

    @Override
    @NotNull
    public String getAuthor() {
        return String.join(", ", plugin.getDescription().getAuthors());
    }

    @Override
    @NotNull
    public String getIdentifier() {
        return "bonus"; // Zmieniłem identifier na "bonus" zgodnie z wcześniejszymi instrukcjami
    }

    @Override
    @NotNull
    public String getVersion() {
        return plugin.getDescription().getVersion();
    }

    @Override
    public String onRequest(OfflinePlayer player, @NotNull String params) {
        // Tutaj implementuj logikę dla różnych placeholderów
        // Dla przykładu, zarejestrujemy kilka placeholderów z wartościami domyślnymi
        switch (params.toLowerCase()) {
            case "miecze":
            case "sztylety":
            case "strzaly":
            case "dzwony":
            case "krytyk":
            case "hp":
            case "zwierzeta":
            case "diably":
            case "mistyki":
            case "przeszycie":
            case "wojownikatak":
            case "szamanatak":
            case "ninjaatak":
            case "suraatak":
            case "wojdef":
            case "szamandef":
            case "ninjadef":
            case "suradef":
            case "obrona":
                return "0"; // Domyślna wartość dla wszystkich placeholderów
            default:
                return null; // Placeholder nie jest obsługiwany
        }
    }
}

junior musk
#

    @Override
    public String onRequest(OfflinePlayer player, @NotNull String params) {
      if (something)
        return "your value";
      return null;
    }
humble smelt
#

so i need to update values of them in onRequest only i cant do it in another way in code?

junior musk
#

you could save the values into a hashmap, and get the map's values from the onRequest

floral mantle
#

i want to remove my phone number, i already dont have the email acces

#

how

junior musk
#

?not-discord

tender vaporBOT
floral mantle
#

what do u mean not discord

junior musk
#

did you read the bot's message?

sharp bloom
#

mood

cosmic needle
#

You okay?

sharp bloom
cosmic needle
#

@versed warren

tender vaporBOT
junior musk
#

@versed warren funny guy in the chat

sharp bloom
junior musk
cosmic needle
#

Or @glad glen :D

tender vaporBOT
versed warren
#

hes gone

#

dw

cosmic needle
#

Kk

sharp bloom
#

gg

cosmic needle
#

Ty

junior musk
#

thanks

smoky spoke
#

how do i use checkitem expansion's getinfo modifier to extract double values? wiki page only shows int and string options

mint fable
#

that's all that is supported atm (no plans to add anything)

smoky spoke
#

sadge

fervent escarp
#

Hi, how can I see which expansion has an update available when indicated by papi on the console?

junior musk
#

/papi ecloud list downloaded
I think

#

or installed instead of downloaded

simple spruce
#

Statistics always stay at 0. What should i do? I tried everything.

#

1.16.5 spigot

long spoke
#

Hi, i have a PAPI extension that is not on ecloud. How can i add it to PAPI manually ?

junior musk
#

your_server_folder/plugins/PlaceholderAPI/expansions/

charred cobalt
#

I have PlaceHolderAPI and SimpleScore, im attempting to get the balance & rank Placeholders to work but it doesnt- i have added in the expansions into the folder as well but it still doesnt do anything, is there something im missing?

junior musk
#

which placeholders did you use?

#

and send the link you get from /papi dump

charred cobalt
junior musk
#

%vault_prefix% is correct

#

though Vault doesn't show in your expansions

#

did you download it ?

#

/papi ecloud download Vault
/papi reload

#

(there's a plugin and a PAPI expansion)

charred cobalt
#

oh yea, wait i didnt add that one. is that also what i need for the ranks? im using luck perms and i want the rank to show in front of ur name. is it vault where it cooperates with or is it just standalone and i need luckperms addon?

junior musk
#

Vault is a bridge for both Economy and Permissions plugins

charred cobalt
#

ooo

junior musk
#

Essentials provideseconomy, LP the permissions, and they both share their info with Vault

#

other plugins can then access Vault to get Ess & LP's info

charred cobalt
#

im still a little new to this, i made a server when i was quite joung but it didnt become anything so im giving it another shot and i wanna make it professional this time but this is something i didnt get really far in so yea!

junior musk
#

that's what the Vault expansion for PAPI does

charred cobalt
junior musk
#

basically; PlaceholderAPI and Vault are bridges to share info between plugins, and the Vault expansion for PAPI is yet another bridge between those two plugins XD

#

quite a mess 😅

charred cobalt
#

it is quite a mess 😂

sharp bloom
#

any placeholder/idea in how ll be able to get if a block has water next to it?

#

vanilla tags doesnt seem to have it

junior musk
#

do you have the block's coordinates?

sharp bloom
#

i do, but doesnt work in what i want to do

junior musk
#

:D

sharp bloom
#

it causes me limitations that i dont wanna get, thats why i m looking for a possible placeholder

junior musk
#

oh

#

nvm

#

I thought I had a placeholder to get blocks but apparently not

sharp bloom
#

ooof

#

i ll make an attemp to make one 💀

#

that returns true or false

#

and parse it for the targetted block or smth

#

chatgpt time ac_cat_approval

junior musk
#

make everything yourself XD

#

no

charred cobalt
#

is there by any chance a papi for marriage master? i see one for marriage reloaded but i prefer marriage master tbf.

stone edge
#

i think its built-in?

charred cobalt
stone edge
radiant vigil
#

hey can i somehow separate each placeholder in a new class?

mint fable
#

sure, #development might be able to provide more help on that process @radiant vigil

radiant vigil
#

ok thanks

worthy rampart
#

What placeholder is needed to get a command panel to run a command to teleport a player to their claim while using grief prevention as the claims plugin

tame prawn
#

Hey there I want to ask something , is it possible to create a leaderboard like top 10 players displaying their username and the amount who killed any specific mob or mined and specific blocks or distance travelled with elytra etc

stable forge
#

How to display an ✘ when the player has no rank (basically 'default') rank in luckperms, and when he has an rank display the rank then (in my scoreboard) using ChangeOutput? I got this far but this doesn't work.

%changeoutput_equals_input:{vault_prefix}_matcher:{vault_prefix}_ifmatch:{vault_prefix}_else:✘%

junior musk
#

use default in the matcher:

junior musk
junior musk
#

and don't forget to download the Player expansion:
/papi ecloud download Player
/papi reload

stable forge
junior musk
#

/papi parse me %vault_rank%

#

what does that say?

stable forge
junior musk
#

what about /papi parse me %changeoutput_equals_input:{vault_prefix}_matcher:default_ifmatch:{vault_prefix}_else:✘% ?

#

oh

#

I just realized

#

you did it the other way around

#

/papi parse me %changeoutput_equals_input:{vault_prefix}_matcher:default_ifmatch:✘_else:{vault_prefix}%

#

this should be better

stable forge
junior musk
#

/papi parse me %vault_rank% %changeoutput_equals_input:{vault_prefix}_matcher:default_ifmatch:✘_else:{vault_prefix}%

#

run this command as default

#

what does it say in chat?

stable forge
#

then it says default

junior musk
#

nothing after that?

#

what about this? /papi parse me %vault_rank% %changeoutput_equals_input:{vault_prefix}_matcher:default_ifmatch:test✘test_else:{vault_prefix}%

tender vaporBOT
mint fable
#

charReset is the permission?

#

the temp permission?

#

ma'am* tips hat

#

uh

#

latest luckperms?

#

5.4.121?

#

might have to report this to luckperms

#

ah so

#

seems to have been an issue for years

#

maybe bump it

#

and maybe ask in the discord

tender vaporBOT
cloud lotus
#

is there a way to fetch blocks mined for all ores, or a block tag? i have a math placeholder that works fine on its own, but im trying to put it into a leaderboard, and causes issues with the leaderboard when i try to parse it, because it is too big. i couldnt find anything on the wiki for this unless i missed it, any help would be appreciated

ping me with your response please!

tame prawn
#

And I have cmi so it will also work right if i don't want to use ajlb

stable forge
granite sand
#

i need help with placeholders

#

i am unable to use :
ascii
player expansion
server expansion
playertime expansion

#

and many

#

none of the placeholders are working in the chat tooo

#

@mint fable

tender vaporBOT
granite sand
#

@idle coral

tender vaporBOT
granite sand
#

@junior musk

#

they say nothing

#

just they doesnt work

#

trying to setuppppp

granite sand
#

specifically %vault_balance% not working

junior musk
#

it's vault_eco_balance

granite sand
#

i want to know why player expansion and server expansion not working

junior musk
#

send your server logs

#

and the link you get from /papi dump

granite sand
#

lemme

junior musk
#

player is loaded

#

server as well

granite sand
#

and 1 expansion to be updated i did /papi ecloud update all

#

they are loaded but not working in chat

junior musk
#

send a screenshot

#

?imgur

tender vaporBOT
granite sand
#

lemme

junior musk
#

are you sending placeholders in a chat message?

#

because placeholders don't get parsed when you send messages

granite sand
#

ye just normally typing the placeholder and it should get the appropriate result ryte

junior musk
#

it shouldn't

#

PAPI placeholders aren't parsed in chat messages

granite sand
#

i used to be??

junior musk
#

it never did

granite sand
#

damn but i used to use em in chats

junior musk
#

what for ?

granite sand
#

like at covid times

granite sand
junior musk
#

then use /papi parse <player> <placeholders>

granite sand
#

ok

junior musk
#

/papi parse chatto %player_is_banned% for example

granite sand
#

ok got it

#

and secondly if i ever wanted to search up placeholders the list of them

#

where do i find em??

granite sand
#

ok great

#

thanks for help

#

i did parse cmd and in the place of plaxeholders field i added server

#

it just reurns server in chat

junior musk
#

what did you write exactly and what did it return exactly?

granite sand
#

i did:- /papi parse phatto server it said;- |server

junior musk
#

well yeah

#

what did you want to happen?

granite sand
#

i wanted to happen like placeholders work in chat normally when he send in chat

junior musk
#

you didn't provide any placeholder so it just returns what you wrote

granite sand
#

that placeholder name is "server"

junior musk
#

that's not a placeholder

granite sand
#

what more i need to add in it??

#

then?

#

wait

junior musk
#

the syntax is %expansionName_parameters%

granite sand
#

ti need to do every single %example% lines to parse?!!

junior musk
#

for example, %player_name%

#

yeah

#

that's the syntax

granite sand
#

damn

#

theyre soo many to do

junior musk
#

and even then, %server% is not a placeholder

#

check the list for a valid placeholder

granite sand
#

ok

sharp bloom
#

does anybody know a placeholder that returns the direction of a player that is looking?

#

besides the %player_direction% cause that returns W E S N i want the whole name

mint fable
#

changeoutput? @sharp bloom

#

lol

#

utils ofc

sharp bloom
#

i dont really like the idea ngl 💀

#

4 changeoutputs yucky

warm topaz
#

js would be easier

mint fable
#

worse

sharp bloom
#

^

#

oke i think i have a solution i think

#

i can use the string expansion

#

and utils

mint fable
#

js starts an engine each time it's called

#

prob just string, no?

#

the replacechar

#

forgot about that

#

%string_replaceCharacters_<configuration>_<string>%

#

configuration defined in papi config

mint fable
#

👎

sharp bloom
#

i meant the shortcut expansion tbh 💀

#

but ye ig string works too

mint fable
#

prob the best

sharp bloom
#

ik how to make with shortcut easier tbh

mint fable
#

lol open the papi config

#

i think there should be an example

#

🤣

sharp bloom
#

OH I SEE

mint fable
#
  string:
    replacements:
      worldguard-regions:
        Titan: '&6Titan'
      small-numbers:
        '0': 
        '1': 
        '2': 
        '3': 
        '4': 
        '5': 
        '6': 
        '7': 
        '8': 
        '9': 
sharp bloom
#

ye i think its easier with the string 💀

mint fable
#

fs

sharp bloom
#

works perfectly fine! thank uu happy

#

well

#

if the placeholder returns Titan

#

it will change it to &6Titan

#

like %string_replaceCharacters_wodlguard-regions_Titan%

short solar
#

can you help me i need a javascript that will do this

%vault_prefix% --> :owner: --> owner -- > %img_owner%
%vault_prefix% --> :player: --> player -- > %img_player%

#

i need this for my new itemsadde rrank system

junior musk
#

use the ImgFix expansion

#

/papi ecloud download ImgFix
/papi reload
%imgfix_{vault_prefix}%

short solar
#

tnx

static mauve
merry jasper
#

i just spent 20min working out why i didnt get an output for my js placeholder and i hadn't called the function.

#

Can I put spaces in the text within changeoutput's 'ifmatch' response?

junior musk
#

yes

merry jasper
#

I have this, but doesn't seem to work.

%changeoutput_equals_input:%javascript_canEnchantHand%_matcher:true_ifmatch:&e→ Click to open_else:&cCannot enchant%

https://prnt.sc/moYUvcWIYfv8

sharp bloom
merry jasper
#

ahh the curly brackets

sharp bloom
merry jasper
#

cheers

sharp bloom
merry jasper
mint fable
#

b-but

#

but why use changeoutput if you already have a javascript

merry jasper
#

i plan to reuse the placeholder for other conditions like opening the enchant menu. it just returns 'true'/'false'

mint fable
#

finally found it

#

hmm i see

merry jasper
#

wen will js placeholder upgrade to at least es6 😂

#

i had to use a for loop to check if a string was in my array 😂

low phoenix
#

Hii

#

How can I make a placeholder with a placeholder inside, and inside that another placeholder? For example:
%math_{parseother_{player}_{statistic_entity_killed_by:Zombie}}*2%

mint fable
#

utils expansion

#

you can also use utils for parseother actually

#

%utils_parseother:player_math_{statistic_entity_killed_by:Zombie}*2%

#

idk if you need the [] around the player name or not

low phoenix
#

thx!!

#

parseother is obsolete i think

mint fable
#

yes, but still used by many

low phoenix
#

i don't see the value

mint fable
#

don't use it?

#

🤷‍♀️

low phoenix
#

how to use %utils_try an try_catch?

hollow raft
#

Hi

#

How do I upload a image

tender vaporBOT
junior musk
junior musk
junior musk
meager vault
#

Hello !
I tried to do a simple JS that will do a math calculation and return the result, but this return nothing (empty line) when I parse it on me
But in console this write "le total est : 4700" (so the good total value)

function isleveljoueur() {
    var level1 = parseInt("%islandlevel_level_actuel%");
    var quantity1 = parseInt("%islandlevel_quantity_actuel%");
    var level2 = parseInt("%islandlevel_level_1%");
    var quantity2 = parseInt("%islandlevel_quantity_1%");
    var level3 = parseInt("%islandlevel_level_2%");
    var quantity3 = parseInt("%islandlevel_quantity_2%");
    var level4 = parseInt("%islandlevel_level_3%");
    var quantity4 = parseInt("%islandlevel_quantity_3%");

    var total = (level1 * quantity1) + (level2 * quantity2) + (level3 * quantity3) + (level4 * quantity4);
    return total;
}

var total = isleveljoueur();
print("Le total est : " + total);```
I can't figure what I made wrong
junior musk
#

remove the print and var total =

#

make it so isleveljoueur(); is the last line

meager vault
#

How do I return it as an integer ? it returns 4700.0

I tried :

    var total = (level1 * quantity1) + (level2 * quantity2) + (level3 * quantity3) + (level4 * quantity4);
    return parseInt(total);
}
isleveljoueur();```
vivid sparrow
#

.toFixed()

meager vault
#

thanks, everything work now 🙂

uneven shale
#

can someone help me with the placeholderapi progress expansion? im having trouble connecting it to placeholders on my scoreboard

balmy marten
#

Do you have an expansion made?

#

Nice, what kind of expansion you thinking

#

Nice, we recommend you build them into your plugin. Info on how to do that is on our wiki

unreal flax
#

Using %parseother% and conditionalevents (as an example), the server tps drops and starts lagging bad when you spam a command to find a player (which is not online).

https://spark.lucko.me/PurjZTABbh

#

Here is the event I use:

    type: player_command
    conditions:
    - "%main_command% == /checklevel"
    - "%args_length% < 1 execute error1"
    - "%parseother_{arg_1}_{player_online}% == no execute error2"
    actions:
      default:
      - "cancel_event: true"
      - "message: &aLevel of &e%arg_1% &ais: &e%otherplayer_level_{arg_1}%"
      error1:
      - "cancel_event: true"
      - "message: &cYou must use &7/checklevel <player>"
      error2:
      - "cancel_event: true"
      - "message: &cThat player is not online."```
#

Here is the issue (example):
If I type a lot of times /checklevel ftxevenasd (ftxeven is my ign) the server tps drops

So basically if you spam /checklevel YourIGN and then something else right after the server starts lagging

junior musk
#

that's because the parseother expansion tries to get players instances from names, which isn't a super fast operation if the player is offline or has never joined the server

mint fable
#

If you happen to have some spare time, could you document utils a bit more? @junior musk

#

might be worth adding to the official list at this point as well

#

tbh

junior musk
#

sure

mint fable
#

nooooice

#

thanks 🙂

merry jasper
#

I am trying to pass an arg from the menu into my placeholder.

is this possible?

It does not want to resolve the placeholder.

%tokenenchant_{enchant}_refund_1%
Where 'enchant' is my arg that is passed into the menu.

Which i have verified resolves to %tokenenchant_explosive_refund_1%

But I get this error with the placeholder: https://prnt.sc/uuxQHTXa8KsC

/papi parse me %tokenenchant_Explosive_refund_1% works fine.

mint fable
#

so

#

here's the thing

#

the dev build fixes the placeholder- not updating

merry jasper
#

yup i just fixed something by going dev build yesterday 😂

mint fable
#

but it also adds security to arguments, which ends up breaking this %tokenenchant_{enchant}_refund_1%

merry jasper
#

the placeholder- for material

mint fable
#

exactly

#

so

#

if you want to try a build I made

merry jasper
#

Is there any workarounds you would suggest

mint fable
#

I can link it

#

the last person I recommended it to did not want to try it

merry jasper
#

Sure, are there any known bugs? do you have list of changes

mint fable
#

they were very adament lol

#

the only thing I changed was the placeholder- updating when I made it

#

here

merry jasper
#

what was their reason lol

#

Ok, im happy basically using the release version with the placeholder fixed.

mint fable
#

they just didn't want to use it ig

tender vaporBOT
mint fable
#

it looks like it is dev build 177 + placeholder- fix @merry jasper

#

judging by the date

#

well, probably anything after/including 11. Added placeholder prefix back to valid material prefixes for dev build 178

merry jasper
#

It works all good! cheers

mint fable
#

nice

#

glad it works lol

#

oh you know actually

#

i'm surprised it was broken

#

oh well

merry jasper
#

Can I have two conditions in my ChangeOutput?

#

condition x AND y is met?

sharp bloom
#

i mean wow idk how i havent thought of that before but ye

#

if they are both strings

#

something like %changeoutput_equals_input:{vault_eco_rank}{player_name}_matcher:ownerKristopher_ifmatch:yes_else:no% probably that might work

#

idk tbh but it should

merry jasper
#

what would the input and matcher be?

I want to check:
%tokenenchant_explosive_level% < %tokenenchant_explosive_max% && %tokenenchant_token_long% >= %tokenenchant_explosive_cost_long%

junior musk
#

this won't work

sharp bloom
#

yes

merry jasper
#

I would make a js placeholder but i cant be arsed making one of them for every enchant i make 😂

#

unless i can pass a string to a custom js placeholder

junior musk
#

yeah it is

#

you can use args in js placeholders

merry jasper
#

ok easy pzy

#

and i can use other plugins' placeholders in my js?

junior musk
#

yeah

merry jasper
#

lemme give it a try

#

i was doing this to do conditional lores but i could probably rip out a lot of my left/right click requirements now too.

merry jasper
#

i just did it in js again lol

mint fable
#

the performance of this menu is gonna be 😬

#

lol

merry jasper
#

yeah i might swap some things out once its all working

gleaming hazel
#

How to add a cooldown for executing a command in the deluxemenus menu? because <delay 2100> works in such a way that a command is executed after some time and I want the player to have to wait before using it again

#

?

exotic escarp
#

i found the error but dunno why it happens: it says dependency me.clip.placeholderapi:2.11.5 not found <dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.5</version>
<scope>provided</scope> all of the values appear redü

#

solved it by reloading maven stuff

vivid jackal
#

Hello I am having issues with the vault_eco_balence placeholder. I am using vault essentials simplescore and placeholderapi and im trying to add currency to my scoreboard. But that placeholder isnt working. Any ideas? Thanks

manic badge
#

You might not have the required expansion
/papi ecloud download Vault
/papi reload

vivid jackal
#

It says on my scoreboard i have 0 coins but when i pay myself lets say $100 it doesnt update the scoreboard

manic badge
#

Does it show $100 when you do /balance?if yes then the problem is with your scoreboard plugin

manic badge
#

Ask in MOSS's discord

#

There's likely a plugin conflicting with essential's economy

vivid jackal
manic badge
#

You can find it on essentials' webpage

vivid jackal
manic badge
vivid jackal
manic badge
#

Okay go ahead

vivid jackal
#

k

frosty sleet
#

Anyone know how to get the 2nd line of an motd using the Pinger expansion? 🤔

dense sequoia
#

heya, anyone know where can I download regionplaceholder?

normal lintel
#

how can i nest a placeholder with papi expansion utils

#

so like %scapse_%player%%

junior musk
#

%utils_parse_scapse_{player}%

normal lintel
#

k

#

il try that

junior musk
#

and the PAPI player placeholder is %player_name%

normal lintel
#

o

#

uh it doesnt work

junior musk
#

what did you try exactly?

normal lintel
#

- '%utils_parse_scapse_{player_name}%'

#

it just comes out as player_name%

#

so uhh how can i fix that

junior musk
#

uh