#placeholder-api

150650 messages · Page 123 of 151

sharp jay
#

Because you are under review

lean furnace
#

well what do i have to do to pass the review?

compact perch
#

yo

#

maybe someone had a similar problem

#

[20:23:31] [Craft Scheduler Thread - 52 - PlaceholderAPI/INFO]: [LocalTime] Couldn't get No_oN's timezone. Will use default timezone.

#

is there a way to fix that?

keen robin
junior musk
#

use PremiumVanish's placeholders

keen robin
#

This is in TAB plugin
- ' &fGlobal: &e%bungee_total% &fOnline: &e%server_online% &fPing: &e%player_ping%ms &fTPS: %spark_tps_5m% '

cosmic needle
#

Or one of those placeholders. Not sure which you are looking for.

keen robin
#

In practice I use %server_online% as you can see only activating premium vanish keeps counting me

sharp glacier
#

.replace("%lpPrefix%", PlaceholderAPI.setPlaceholders(player, "%luckperms_prefix%") : noassignment)

trying to make it, so that if its default (aka ""), it will remove the space

#

do you know what im doing wrong

agile bramble
#

Hello, what to do when one plugin loads Player placeholder like this:
[04:06:38] [Server thread/INFO]: [PlaceholderAPI] Successfully registered internal expansion: player [1.0.0]

And overwrites the normal player extension, and then the %player_...% placeholders don't work? Can I solve it somehow, please?

vivid sparrow
#

Expansions provided by plugins have priority over local expansions
Find what plugin does that and contact the author

real parrot
#

Is there a script that converts time in seconds to formatted time like 5h45m20s?

balmy marten
#

So you have choices with that

#

Alternatively you could write a script in the javascript expansion to format the time to whatever you wanted, but that's a little more hands on

real parrot
#

Is there a script for reversing this action? (seconds -> formatted time)

junior musk
#

I think I may have done that

#

give me a second

#
function timeToDate() {
  var date = new Date()
  var l = args[0].split(" ")
  for (var i=0; i<l.length; i++) {
    var arg = l[i]
    var c = arg[arg.length-1]
    var value = parseInt(arg.replace(c == "o" ? "mo" : c,""))
    if (c == "s") date.setSeconds(date.getSeconds()+value)
    else if (c == "m") date.setMinutes(date.getMinutes()+value)
    else if (c == "h") date.setHours(date.getHours()+value)
    else if (c == "d") date.setDate(date.getDate()+value)
    else if (c == "w") date.setDate(date.getDate()+(value*7))
    else if (c == "o") date.setMonths(date.getMonths()+value)
  }
  return date
}
timeToDate()+""
#

register that script in your javascript_placeholders.yml with a name like date or smth and then use %javascript_date_<time placeholder>%

real parrot
junior musk
#

thonking it sounds right though I didn't expect this output

#

what did you use in arguments?

real parrot
#

1, 100, 10000 and tried everything else

#

changes nothing

junior musk
#

oh

#

I think my script does the same thing cj's does actually 😅

#

I thought I had one for what you want though

#

well it shouldn't be to hard, I think

#

I'll try to remake one

junior musk
#

I did it@real parrot

real parrot
#

thanks, works now

neat nova
#

How can i check for a ítem in mmoitems?

#

Like getting the variable of the ítem in the inventory

austere hawk
#

i need help

tender vaporBOT
#

There is no time to wait! Ask your question @austere hawk!

austere hawk
#

i don't know how to make %server_online% and %afk% work

analog warren
austere hawk
novel cairn
#

How to be register in website?

#

What is PlaceHolderAPI

#

?

vivid sparrow
#

why do you want to register on the ecloud if you don't know what papi is? 🙂

novel cairn
#

Because I want to share with my plugin to MineResetLite in website

balmy marten
zealous dock
#

Hi I'm wondering if someone here can set me in the right direction. I want to use the placeholderAPI from the lands plugin, this is all working properly. I want to add something when I show the stats of players which is:

%lands_land_role% of the land %lands_land_name%

When someone hasn't joined a land it returns none with the lands name (and obviously also the role returns none) and the other way around.

I want it to check if the output is none and then display the text: "Join a land first to see this information"

Anyone who already knows how to do this or can put me in the right direction (by explaining this more professional so I can look further on google without getting vague results)

Thanks in advance 🙂

plush dove
#

%changeoutput_equals_input:{lands_land_role}_matcher:None_ifmatch:Join a land first..._else:{lands_land_role}%

zealous dock
#
Chat:
  localPrefix: ''
  shoutPrefix: '&c[S]&r'
  LocalNoOne: '!actionbar!&cNobody hear you, write ! before message for global chat'
  shoutDeduction: '!actionbar!&cDeducted &e[amount] &cfor shout'
  # Use \n to add new line
  publicHover: '%changeoutput_equals_input:{lands_land_role}_matcher:None_ifmatch:Join
    a land first..._else:{lands_land_role}%'

PublicHover is the one I'm playing with, this should be correct?

zealous dock
#

Back where we were

#

/papi parse me %lands_land_name% does in fact return none

zealous dock
plush dove
#

nice

mint fable
#

might be colored or something

zealous dock
zealous dock
#

Oh sorry Barry, I only replied 😦

rough ember
#

Hey everyone, so I want to give player's some "titles" below the nametag, for that task I'm using the plugin TAB, but I also want to change the language, so I installed the PAPI extension ChangeOutput and it works, but the "title" get's the information of the owner, is there a way to make the text under the nametag change depending of the player that is looking?

misty python
#

I am having trouble getting placeholderapi to work. I added ecloud extentions nothing seems to work. Any help would be appreciated.

junior musk
#

Do you have both the Vault plugin and the Vault PlaceholderAPI Expansion? If so, send the output of /papi dump

junior musk
junior musk
misty python
#

I downloaded the essentials extention. I wasent sure what the other ones did so I didnt download them. Very new to this whole process.

junior musk
#

it seems to have loaded correctly

#

what doesn't work exactly?

#

If you want to be able to use Vault placeholders (such as %vault_eco_balance% for your money or %vault_group% for your permissions group), you need to download the expansion:
/papi ecloud download Vault
/papi reload

#

👍

misty python
# junior musk what doesn't work exactly?

I downloaded vault from ecloud and I doesnt work. This might be because I use essentialsX for ingame currency. I looked on the wiki and found some essnetialX placeholders to test out, but none seemed to work.

For example: When I type in %essentials_jailed% and press enter It comes back as %essentials_jailed%.

junior musk
#

which Vault placeholder didn't work? also make sure the expansion loaded correctly in /papi list (or do /papi dump again and Ctrl+F vault because you seem to have quite a lot of expansions 😅)

#

and do the essentials placeholder work in /papi parse? (for example: /papi parse me %essentials_jailed%)

glad lichen
#

how to insert a placeholder into a placeholder example: %world_players_<%player_world%>% ??? (translated)

junior musk
#

%placeholder1_{placeholder2}% -> %world_players_{player_world}%

#

it doesn't always work though

#

some placeholders support that, some don't

#

If it doesn't work, try with the utils expansion (/papi ecloud download Utils & /papi reload)
And use %utils_parse_placeholder1_{placeholder2}% -> %utils_parse_world_players_{player_world}%

glad lichen
#

it worked, thanks : )

compact perch
#

every player gets this warning
[20:23:31] [Craft Scheduler Thread - 52 - PlaceholderAPI/INFO]: [LocalTime] Couldn't get No_oN's timezone. Will use default timezone.
im using localtime expansion to get correct timezone for each player

spice rampart
#

Good evening, out of curiosity, is there a placeholder where you enter the tag name and it shows you the player's name that has the tag?

mint fable
#

no

#

tags are by perms, and multiple people could have the same tag, so it wouldn't really be possible

junior musk
#

It could be possible to get a list or amount of people with a specific tag with the Playerlist expansion though if you're interested 👀

calm mortar
#

I'm looking for a plugin dev for paid work. Please contact me asap.
I need the plugin to add a placeholder for luckperms, example: %VaultLevel_PlayerVaultLevel%

junior musk
calm mortar
hard venture
#

I'm getting constant errors from a few of my plugins in relation to PlaceholderAPICalulator

java.lang.NullPointerException: Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.PlaceholderAPIPlugin.getInstance()" is null

I've just updated to PurPur 2090 when this started

example of one of the warns - https://paste.helpch.at/mulanifipe.rb

Any advice on how to fix?

junior musk
#

can you send your server logs?

#

?startuplog

tender vaporBOT
hard venture
#

Nvm, it was waterfall update, we reverted back and fixed

junior musk
#

uh, ok

versed sorrel
#

how can i show, all the online players on my server when i have a bungeecord server?

jolly field
versed sorrel
jolly field
versed sorrel
#

which is compatible with placeholderapi

jolly field
#

oh try %bungee_global% / %bungee_yourserver%/50 (you can replace the number 50 with your desired number like 100, 500)

a short example:

%bungee_global%/500

#

this may work

versed sorrel
#

or something like that?

#

%server_max_players%

#

or something like that for bungeecord?

jolly field
#

maybe just do it manually xd

junior musk
versed sorrel
sour cargo
#

good evening, I have a problem, the placeholder does not report all the data correctly in several situations

  • '&b&lRANKING'
    - ' &8▪ &a#1 &7%voteparty_top_alltime_name_1% &f▹ &a%voteparty_top_alltime_votes_1% Votes'
    - ' &8▪ &6#2 &7%voteparty_top_alltime_name_2% &f▹ &a%voteparty_top_alltime_votes_2% Votes'
    - ' &8▪ &c#3 &7%voteparty_top_alltime_name_3% &f▹ &a%voteparty_top_alltime_votes_3% Votes'
#

%voteparty_top_alltime_name_3% this gives me no value

versed sorrel
#

hey hey, i tried to use %playertime_player% but its not working. i want to show the playertime in the lobby on my scoreboard, but its not playtime: 20h but its says playtime: %playertime_player%

#

any ideas?

junior musk
versed sorrel
versed sorrel
versed sorrel
#

i got it, the docs are wrong

#

or i did not found it

jolly field
severe jacinth
#

Hey, uhhhhhhhhhh kinda weird but Papi does not work at all?

Like the plugin works, but placeholders do not show up and /papi reload and /papi dump doesn't work.
No errors related to papi, nothing

junior musk
#

send your startup logs

#

?startuplog

tender vaporBOT
severe jacinth
#

ignore the misc errors lol

junior musk
#

does /papi list work?

#

I see that /papi worked fine

severe jacinth
# junior musk I see that /papi worked fine

Works fine, returns

aureliumskills, bankplus, battlepass, betonquest, cb, citizensplaceholder, customcrafting, discordsrv, emf, excellentcrates, gcore, gs, guilds, iaplayerstat, img, manos, md, mythic, sleepmost, spark, superluckyblock, vulcan```
#

also is it ok if i ping you?

junior musk
#

and /papi reload doesn't do anything?

junior musk
#

except when I'm sleeping, or in class, which I am rn

severe jacinth
#

returns:

[PlaceholderAPI] Placeholder expansion registration initializing...
[PlaceholderAPI] Fetching available expansion information...

but freezes (doesn't get stuck, just stops)

#

I can keep running the command over and over, still the same outcome

junior musk
#

and /papi dump returns nothing?

severe jacinth
#

nothing

#

never happened before

junior musk
#

did you try restarting the server?

severe jacinth
#

did, can try again

junior musk
#

what if you set cloud_enabled to false in the config?

#

and try reload, if it doesn't work, try restarting

#

maybe your firewall is blocking access to the ecloud, which prevents the plugin from loading correctly, I don't really see any other possibility

#

though usually, when that happens, the user gets an error, though there's nothing here

severe jacinth
#

server restarting, gonna have to wait and then restart it again

#

its a shame if it is though, ecloud is so QoL

severe jacinth
junior musk
#

🥲

#

so it wasn't the ecloud

severe jacinth
#

i know man sorry 😭

junior musk
#

I'm in class rn so can't do much

severe jacinth
#

no worries man, thanks and pay attention pls

junior musk
#

@severe jacinth try deleting your plugins/PlaceholderAPI/expansions folder

#

and redownload the expansions one by one (reload between each download) and see if it still breaks

severe jacinth
#

will they be registered again? or do i need to back them up?

#

okok

junior musk
#

maybe one of them failed to load, and it somehow didn't send an error

severe jacinth
#

just on server startup

#

none from ecloud and still doesnt work

junior musk
junior musk
#

how

#

send your logs again

severe jacinth
severe jacinth
#

sooooooooooooo
nothing out of the ordinary?

junior musk
#

no idea

#

maybe it's one of your plugins that register a broken expansion?

#

idk honestly

#

if you load PlaceholderAPI all alone on the server, does it work? and then add back all your plugins 1 by 1 or like 5 by 5

#

I don't really have any other ideas

severe jacinth
#

if thats the only way 🫡
cheers.

versed sorrel
#

i have a problem, i'm using the %vault_eco_balance_commas% and the** %friendsapi_onlinefriendcount%** from the placeholderapi, but its not working

toxic lantern
#

Hi

glad jungle
tender vaporBOT
glad jungle
#

How do I make it allow

junior musk
# versed sorrel i have a problem, i'm using the **%vault_eco_balance_commas%** and the** %friend...

Did you download the Vault expansion?
Do you have the Vault plugin installed?
Do you have the FriendsAPI plugin? https://www.spigotmc.org/resources/spigot-friend-api-for-party-and-friends-for-bungeecord-velocity.12597/
Do you have the Party and Friends plugin? https://www.spigotmc.org/resources/party-and-friends-extended-edition-for-bungeecord-velocity-supports-1-7-1-20-x.10123/
Where are you using the placeholders?
Do they show correctly in the chat when you use the /papi parse me <placeholder> command?

versed sorrel
balmy marten
glad jungle
#

I set it up myself

#

It worked before but not now

glad jungle
#

.

vivid sparrow
#

Download the expansions manually

sharp bloom
#

is there any expansion that will get a random string value? for example i m trying to find a way to make a list eg. wheat, sugar, egg and the placeholder ll return one of these 3 each time u parse it

#

damn that was easy to make OKK

#

combined the CUSTOM of playerlist and also used the utils and rng expansions to get a random number for the end so %utils_parse_playerlist_<list>_{rng_0,3}%OKK

#

welp if u have any other ideas lmk

mint fable
#

%string_random_<string1>,<string2>,<string3>,<etc>%
@sharp bloom

sharp bloom
junior musk
#

wait actually

#

maybe it is

#

nvm then

jolly field
#

Is it possible for us to have a scenario where we are in hub world and i use luck perms for groups and i have a group having the prefix "MEMBER" , and if we go to another world, the "MEMBER" prefix will be removed from our name tag. Then, when we return to the hub world again, the prefix reappear in the name tag

junior musk
#

set the prefix with a world context

sharp bloom
#

I had for my first example which has placeholdera and rng wouldn't parse em n i used utils

#

so i just kept it there too OKK

jolly field
junior musk
elder stump
#

Hey! Can someone help me?
%bungee_total% is not showing the correct amount of players, how can I fix this?
I even reinstalled the expansion, updated PAPI.
I have seen multiple people with this problem, but none of them received a good solution.

elder stump
#

I know it has an interval, but it never shows the correct amount

#

If there are 60 players online, it shows 0

plush dove
#

Dang, can't help you there

sacred gulch
#

can someone help me whith deluxe tags idk why but when i have same config as tutorial said its doesnt work

exotic sphinx
#

Hi, I use cmi chat and guilds, I want to make the guild prefix show in the chat, but they don't want to install, why is that?

exotic sphinx
keen dirge
exotic sphinx
#

{guild}, {GUILD_PREFIX}

keen dirge
#

change it to %guilds_name%. %guilds_prefix% and /cmi reload after saving them

sharp bloom
exotic sphinx
keen dirge
#

cmi?

exotic sphinx
keen dirge
#

+?

sacred gulch
keen dirge
sharp bloom
sacred gulch
#

then why you ansering my quwestion?

exotic sphinx
keen dirge
sharp bloom
sacred gulch
#

its allright

keen dirge
#

u should ask in the cmi support server

keen dirge
sacred gulch
exotic sphinx
#

Another question: how do I make guilds appear in brackets? (test) in the tab

normal ridge
#

does world guard have any sort of placeholder which shows the amount of kills in a specfic region?

vivid sparrow
#

No

austere hawk
junior musk
#

nope

unkempt nebula
#

is there a way to sync placeholder api statistics between servers?

severe jacinth
#

spent 5h30 hours removing things until there were no expansions

#

and not a single one worked

vivid sparrow
#

/papi parse me %player_name%

severe jacinth
#

wdym

#

I was talking about ecloud

#

oh yeah forgot to say that lol

elder stump
mint fable
#

uncoloring*

#

ah nevermind, sorry for ping

junior musk
#

Utils only does it for legacy colors iirc

mint fable
#

right, and it wont work for checkitem anyway

junior musk
#

maybe it could work if the string uses the &x format

#

oh right

#

nvm then lol

mint fable
#

ye, F

distant lava
#

Anyone else having an issue where the player papi placeholder stops working whenever the server restarts? I have to download it again and reload the plugin after each restart. We are on purpur 1.20.1

marble barn
#

hello? i need help with somthing

#

idk if this is right channel for it :/

#

but im getting this error... i dont even have buycraft ;/

[18:42:42 ERROR]: [PlaceholderAPI] Failed to load expansion class Main (Is a dependency missing?)
java.lang.NoClassDefFoundError: net/buycraft/plugin/bukkit/BuycraftPlugin
        at it.alexdev_.buycraftapi.buycraftapi.Main.loadPayments(Main.java:360) ~[?:?]
        at it.alexdev_.buycraftapi.buycraftapi.Main.canRegister(Main.java:39) ~[?:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:223) ~[PlaceholderAPI-2.11.5.jar:?]
        at me.clip.placeholderapi.expansion.PlaceholderExpansion.register(PlaceholderExpansion.java:147) ~[PlaceholderAPI-2.11.5.jar:?]
        at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:193) ~[PlaceholderAPI-2.11.5.jar:?]
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
        at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
        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 me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:366) ~[PlaceholderAPI-2.11.5.jar:?]
        at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[PlaceholderAPI-2.11.5.jar:?]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.2.jar:git-Paper-292]
        at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[paper-1.20.2.jar:git-Paper-292]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1470) ~[paper-1.20.2.jar:git-Paper-292]
        at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:446) ~[paper-1.20.2.jar:git-Paper-292]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1379) ~[paper-1.20.2.jar:git-Paper-292]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1156) ~[paper-1.20.2.jar:git-Paper-292]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315) ~[paper-1.20.2.jar:git-Paper-292]
        at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: java.lang.ClassNotFoundException: net.buycraft.plugin.bukkit.BuycraftPlugin
        at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:592) ~[?:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?]
        ... 23 more```
vivid sparrow
#

remove the buycraft expansion then

peak pine
#

Hi. When I load the head using basehead, then I have Steve's head displayed. What to do? But if I load my head with a nickname... Everything works... What should I do?

junior musk
gilded bough
#

Alright big brains, I need a placeholder that returns the total amount of unique enchantments on a handheld item, in integer form

junior musk
#

I feel like checkitem may have that

#

let me check

#

doesn't seem like it

#

ok

#

this is going to be crazy

#

but it might just be possible with CheckItem and PlayerList

#

okay, there is a slight issue that makes it so even when there's no enchant, it shows 1

#

I'll fix that and send you what I have

distant lava
junior musk
#

/papi dump

#

send the link it gives you

#

it seems like it loaded fine

#

does /papi parse me %player_name% work?

distant lava
junior musk
#

send the papi dump when it breaks

distant lava
#

Okay! Will do 🙂

distant lava
# junior musk send the papi dump when it breaks

Btw looking at the logs this is what the error was:

 [Sat 17:01:49 WARN  PlaceholderAPI] Failed to load external expansion player. Identifier is already in use.
! [Sat 17:01:49 WARN  PlaceholderAPI] Cannot load expansion player due to an unknown issue.
  [Sat 17:01:49 INFO ]  placeholder hook(s) registered!  placeholder hook(s) have an update available.
junior musk
# gilded bough Alright big brains, I need a placeholder that returns the total amount of unique...

/papi ecloud download CheckItem
use this playerlist expansion file (put it in /plugins/PlaceholderAPI/expansions)
/papi reload
Then go to your PlaceholderAPI config.yml file and find the playerlist section. Under lists, add this:

expansions:
  playerlist:
    list:
      enchants:
        type: CUSTOM
        input: "%checkitem_getinfo:mainhand_enchantments:%"
        separator: "\\|"

Then you can now use %playerlist_enchants_amount%

junior musk
#

or send the entire logs

#

maybe some weird plugin is registering its own player expansion

#

we got that before

gilded bough
junior musk
#

I already did, just fixed an issue I had

gilded bough
#

I was trying to do it within CheckItem and it just didn't exist

junior musk
#

because it would always show 1 even when there weren't any

junior musk
#

but it doesn't return the amount

gilded bough
#

in list form yes

junior musk
#

only a list separated by |

#

BUT we can use that in PlayerList with the custom type, split the checkitem placeholder by |, and get the amount

junior musk
distant lava
# junior musk maybe some weird plugin is registering its own player expansion

I'll send them after the restart! But I believe I found the plugin causing the issue, it is a bossbar announcement plugin we recently installed:

  [Sat 17:01:35 INFO  AnimaBossBar] ------------------------------------------------------------------
  [Sat 17:01:35 INFO  PlaceholderAPI] Successfully registered internal expansion: player [1.0]
junior musk
#

I think that's the same plugin that caused the issue for the other guys that came here

#

but yeah, it's so weird why it does this, try either contacting the dev so they can yeet this expansion, or rename it at least, or just switch to another plugin like TAB

distant lava
#

Oh interesting, it also takes up like 5% of our resources for just displaying bossbars so we'll be removing that plugin, thanks for the quick help 🙂

covert hill
#

hi

junior musk
#

Hi

covert hill
#

%math_swr_kills/swr_deaths% this is my math calculus using placeholder api i am using math and data from skywarsrelaoded

#

if i use numbers works if not it doenst

junior musk
#

sounds about right

#

math requires numbers

covert hill
#

but its not working

#

with numbers it works with the placeholders from skywarsreloaded it doenst

junior musk
#

Ah right

#

to use placeholders within the Math placeholder, you have to put them inside {}

#

%math_{swr_kills}/{swr_deaths}%

#

though as is, you may get an error if you have 0 deaths, because you can't divide by 0, so you should try this instead %math_{swr_kills}/MAX({swr_deaths,1})%

covert hill
#

didnt work bro

#

wit h the max

#

without it its fine

#

i removed that 1

#

it worked

#

but it displays 0 which is technicly correct

#

the only problem is this

#

i cant send messages

#

damn

#

check dm

#

but i think its skywarsreloaded plugin fault

gilded bough
#

are there any placeholders that allow a command to be run with operator permissions?

rotund pendant
plush dove
#

ah I see what the seperator does

#

very smart

gilded bough
gilded bough
#

I’m trying to use a DM button to enchant an item in a players hand

#

the issue here being that in order to run an enchantment command, it has to be run as the player because thats what gives the context of what to enchant

#

Thats why I am looking for a solution that sort of targets an item/item slot to modify the enchantment on

rotund pendant
gilded bough
#

ExcellentEnchants /excellentenchants enchant enchantmentnamehere level

#

tried running it as [console] already, won’t work as it must be run by the player

rotund pendant
#

You aught to get the dev to add support for player target.

gilded bough
#

ah yes, excellent idea

rotund pendant
#

Any form of work around (unless a custom plugin utilising an api) exposes your server to exploits.

gilded bough
#

You gave me an idea, thank you

jagged snow
#

Hey ^^
I'm trying to figure out the efficiency level a player's pickaxe is by using %player_item_in_hand_level_efficiency%. But every time I use this placeholder, I get this error message saying 'An internal error occurred while attempting to perform this command.' Any idea why this is happening? The other placeholders, like %player_name%, are working fine and showing the player's name without any issues.

junior musk
#

?enchants

tender vaporBOT
junior musk
#

DIG_SPEED

jagged snow
manic hawk
#

hey

#

I have a problem

#

I cant download the javascript expansion

#

is there a way to fix that?

junior musk
#

that's not a bug, the expansion is simply not verified

#

you have to download it manually from the ecloud

manic hawk
#

i did

#

still

#

aint working

junior musk
#

send the link you get from /papi dump

manic hawk
#

sure

#

1mib

#

it says

#

faile to post dump

junior musk
#

check your console

manic hawk
#

i cant send pics here

tender vaporBOT
junior musk
#

?paste

tender vaporBOT
manic hawk
junior musk
#

weird

#

then send your logs

#

?paste

tender vaporBOT
junior musk
#

wrong cmd

#

?startuplog

tender vaporBOT
manic hawk
#

?paste

tender vaporBOT
manic hawk
#

ugh

#

how do i paste it

junior musk
#

Ctrl+C the content of your file, Ctrl+V on the website and press the Save button

#

or check the How To Use video

manic hawk
tender vaporBOT
junior musk
#

[14:15:47] [Server thread/ERROR]: [PlaceholderAPI] Failed to load expansion class JavascriptExpansion (Is a dependency missing?)
java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_391]

junior musk
#

yeah

#

I know Barry

manic hawk
#

so

#

i needjava 16?

junior musk
#

yeah

#

wait no

manic hawk
#

alr

junior musk
#

at least 11

manic hawk
#

ok

junior musk
#

but 16 is fine yeah

manic hawk
#

works now

#

thank you so much!

junior musk
exotic sphinx
#

Hi, how can I make it so that it shows the number of items in the menu online? For example, amount: 36 or amount: 10 (36, 10 is the online server) DeluxeMenus

junior musk
#

dynamic_amount: "%server_online%"

exotic sphinx
#

❤️

sharp bloom
#

um tanguy i think its your expansion(playerlist) that doesnt parse placeholders in it OKK cause the %playerlist_expeditionitem_{rng_0,2}% returns the placeholder itself

junior musk
#

yeah it doesn't parse them

#

you need Utils for that

sharp bloom
#

yuh ik :/

#

i just said yesterday that rng wouldnt parse placeholders in it but it turns out it was the playerlist instead

#

( i do use utils yes)

junior musk
sharp bloom
#

i didnt rly saw the msg tbh

distant lava
#

Hello, for the %multiverse_world_name% world placeholder, is it possible to change the world name of a specific world? Like world_new is our main overworld, but I'd like that text changed to Overworld. So if the player is in the world_new world, on the scoreboard it will show the world as Overworld.

junior musk
#

I'm pretty sure MV-Core allows you to configure aliases in its config

wet basinBOT
#

@junior musk Unknown expansion.

junior musk
#

wut

#

and then you can use %multiverse_world_alias%

wispy zealot
#

does anyone know how i can download the expansions from the ecloud website?

#

i want the rewardslite expansion but cant figure it out

muted gulch
junior musk
keen dirge
#

hi cuties, I'm trying to find a placeholder where it shows how much time you have left for a luckperms temppermissions

#

does anybody know an expension for it?

junior musk
#

%luckperms_expiry_time_<permission>%

keen dirge
#

oh my god

#

i love you

#

ty

wispy zealot
junior musk
#

Send the output of /papi dump

#

and send your server logs

#

?startuplog

tender vaporBOT
real parrot
#

Is there anyone "good" at javascript?

junior musk
#

yeah

#

what do you need?

real parrot
# real parrot Is there anyone "good" at javascript?

I need this to make massive block-to-price converter (inserting block id, getting number)
Imagine I have two lists: with block ids, and with numbers.
How to check if input (args[0] right?) is in "block ids" list, if yes, then get its index in list, and use this index to get value in "numbers" list. Or is there a better way?

real parrot
junior musk
#

do you have some kind of DB with all your prices or a placeholder or do you want to make your own thing with JS and specify the prices manually there?

real parrot
#

manually

#

I need this to make builder tool that automatically "buys" block that you placed, so I need to convert block into price from list

junior musk
#
var prices = {"OAK_PLANKS":100,"BIRCH_PLANKS":100}
function getPrice() {
  var material = args[0].toUpperCase();
  var price = prices[material];
  return price == undefined ? -1 : price;
}
getPrice()
#

and then use %javascript_<scriptName>_OAK_PLANKS% for example

real parrot
#

How to make it so if block is not listed, return something like 99999999?

junior musk
#

edited my code

real parrot
#

Thanks, it works

junior musk
#

👍

sweet vapor
#

hi guys

#

i have a problem with
[19:13:36 INFO]: [regionCounter] Loading server plugin regionCounter v1.0.1
[19:13:36 INFO]: [regionCounter] Enabling regionCounter v1.0.1
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_region. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_smp. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_tank. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_axe. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_diamondpot. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_crystalpvp. Identifier is already in use.
[19:13:36 WARN]: [PlaceholderAPI] Failed to load expansion regioncounter_netheritepot. Identifier is already in use.

#

i tried to change the Identifier

#

and still same problem

#

@junior musk@idle coral@gleaming charm@mint fable

junior musk
#

don't ping us NotLikeThis

sweet vapor
#

sry for ping

junior musk
#

I was about to answer

junior musk
sweet vapor
#

i had to :'(

junior musk
#

you didn't

junior musk
sweet vapor
#

yes

idle coral
#

You forgot to add a few people in the ping, that didn't seem enough

junior musk
#

then you need to unregister your expansions on when disabling

sweet vapor
junior musk
#

also, you should only make 1 expansion with multiple placeholders, in your case, regioncounter and have like a switch on the params

junior musk
sweet vapor
real parrot
sweet vapor
sweet vapor
junior musk
#

from discordDB.users get *

real parrot
#

Wait, is @еveryone even enabled?

junior musk
#

if it were, you'd see your message in yellow/orange :P

real parrot
#

I used е, not e

junior musk
#

and everyone would come yelling at you XD

real parrot
#

е and e is different

junior musk
#

16k people in the same channel lol

junior musk
#

bruh

#

that explains why the @ wasn't even in blue

real parrot
#

(javascript) How to check how similar is two strings? (in %, or from 0 to 1, idk, a value)

nova turret
#

Hello, with the placeholder "%essentials_baltop_rank%" that shows nothing, it's normal?, the other placeholders are showing something, but this one no, and I want to show to the player which rank he is.
thanks for helping et sorry for my bad english, can you guys ping me ! 👌

vivid sparrow
junior musk
junior musk
#

/papi parse me %essentials_baltop_rank%

#

what does it say in chat?

astral python
#

Hello! I'm trying to make a custom expansion for PAPI. I'm getting something somehow, but I can't understand why minimessage's hover doesn't translate when I call my placeholder. The string I return is return "<hover:show_text:\'§5Some text on hover\'>§5§lText to hover</hover>"; is the mixed formatting causing the issue?

junior musk
#

the \ isn't necessary in front of the '

#

if you used " though, it'd be necessary yeah

#

oh and MM doesn't support legacy colors, it's going to throw an error

astral python
#

I wasn't sure about the ' but thanks! Regarding errors, I don't see any in terminal

junior musk
#

then maybe it's only with &, weird that it doesn't error, it did for me last time I tried ;-;

astral python
#

I could try removing the legacy formatting (even tho with that symbol I had no issues with plugins that don't support legacy, fe carbon chat)

junior musk
#

🤷 if you're using MM I'd recommend using its color tags (no reasons to use the legacy one)

#

but if it works, all good

muted gulch
#

is there a way in the math placeholders to put a hard limit on a result?

#

like say if it calculated 2 placeholders and the number could be 0-1000

#

but I wanted a hard limit of 999

#

as the "max" number AFTER the math calculation?

nova turret
#

like literally

#

a empty message

junior musk
#

uh

#

what if you do /baltop once and then redo the papi parse command?

nova turret
#

oh you think my data is not loaded?

junior musk
#

yeah

#

I don't see any other options

sharp jay
astral python
junior musk
#

where are you using it?

astral python
#

when I %id_myplaceholder% it just returns plain text

junior musk
#

PAPI doesn't parse MiniMessage format by itself

#

it depends on where you use the placeholder

#

for example, you can use it in a chat plugin that supports MM, or in DeluxeMenus' [minimessage] action

astral python
#

I need to use it inside Carbon Chat, should it work or should I do it differently?

junior musk
#

depends on whether Carbon Chat supports MM or not

#

it does

#

let me check what's wrong then

astral python
#

I didn't test carbon chat directly yet, I'll now

junior musk
#

uh?

#

where did you test the placeholder then?

astral python
#

ok it works, I'm dumb as hell

junior musk
#

ah okay

astral python
#

sorry😅

junior musk
#

dw

astral python
#

if I make a component in kyori then serialize it to MM would it convert legacy symbols in the string?

junior musk
#

I have no idea

#

if you have colors in your component, I think it'll just turn them into color tags

astral python
#

that's what I think too, thank you very much so far!

muted gulch
#

I have a unique situation. Helping out @idle osprey

I have a meta key, that needs to reach a 723 to complete a quest. The quest is to give acacia signs.

I've got it setup to where each time the player clicks the item, it takes their signs, and adds the amount they had to the meta key. This let's them do it in parts (Say if they only had 100 signs to turn in).

The issue is that if they have 4 signs left to turn in, and they have 10 in their inventory, and they click the item - it takes all 10 and the meta key goes over the number. How could I limit that?

junior musk
#

I've already had this covered in my broken attempt

#

let me get it back

muted gulch
#
left_click_requirement:
      requirements:
        quest_check:
          type: '>='
          input: '%deluxemenus_meta_QUESTKEY_INTEGER_0%'
          output: '723'
          deny_commands:
          - '[sound] BLOCK_LEVER_CLICK'
          - '[meta] add QUESTKEY INTEGER %checkitem_amount_mat:ACACIA_SIGN%'
          - '[message] &cYou contributed &e%checkitem_amount_mat:ACACIA_SIGN% &csigns.'
          - '[console] minecraft:clear Lecraeman minecraft:acacia_sign'
          - '[message] &cYou still need to contribute &e%math_0_723-{deluxemenus_meta_QUESTKEY_INTEGER_0}% &csigns!'
          - '[refresh]'
    left_click_commands:
      - '[sound] ENTITY_PLAYER_LEVELUP'
      - '[console] lp user %player_name% permission unset quest.4.no'
      - '[console] lp user %player_name% permission set quest.4.yes'
      - '[console] lp user %player_name% permission set quest.5.no'
      - '[message] &6&l┌'
      - '[message] &6&l| &6ЗАДАНИЕ ВЫПОЛНЕНО!'
      - '[message] &6&l| &fСледующее задание разблокировано'
      - '[message] &6&l| &fПодробнее - &6/quest'
      - '[message] &6&l└'
      - '[close]'
      - '[refresh]'
junior musk
muted gulch
#

This is how I've set it up. His menu has 3000+ lines, so trying to keep from addingtoo many items.

#

becuase he'd need to redo all of them

#

and add new items for each entry

#

I hope what I am saying makes sense.

junior musk
#

yeah

muted gulch
#

but what you sent has the same issue

#

where if they gave OVER

#

it would still take all their signs

junior musk
#

it has a second requirement

muted gulch
#

rather than cut it off

#

oh oh

#

ok

#

let me recheck it

#

god its breaking my brain

#

but I think I get it.

junior musk
#

you check if the amount you gave + the amount you have >= to what you need

#

and if yes, you take away the amount you need - the amount you already gave

muted gulch
#

should I remove the EQUALS

junior musk
#

where?

muted gulch
#
          optional: true
          type: ">="
          input: "%math_0_{deluxemenus_meta_qu12ggff3e8110st_g3_no1_INTEGER_0}+{checkitem_amount_mat:ACACIA_SIGN}%"
          output: 723
          success_commands:
          - '[console] clear %player_name% acaciasign %math_0_723-{deluxemenus_meta_qu12ggff3e8110st_g3_no1_INTEGER_0}%'```
#

because if its equal

#

it should succeed

#

and not check

junior musk
#

what?

muted gulch
#

lol

#

I could be completely misunderstanding here

#

so the first requirement

#

is checking if the player has OVER the amount they need

#

and if it is, it's only taking the amount it should

junior musk
#

if they have enough or more (>=)

#

yes

#

if it's just enough, it'll take everything, if it's more, it'll just take what it needs

muted gulch
#

ok that makes sense.

junior musk
#

that's done by that same requirement

muted gulch
#

ok thanks, let me try this

nova turret
junior musk
#

=/

#

not sure then

toxic stag
# nova turret nothing too

Is it broken for everybody or just you? You might have the essentials.balancetop.exclude permission maybe

#

or an op

nova turret
#

I'm op yeah

#

you think is this

toxic stag
#

Possibly, I'd try negating essentials.balancetop.exclude, i think negative perms override op

runic estuary
#

Do you know when / if there will be folia support for papi? If yes will you wait for folia to be stable and publicly open or could it be before

astral python
#

hello! Me again, does anyone know how do I access other expansions' placeholders in mine? Like fe I wanted to get value of %luckperms_prefix%

tropic trout
#

why does my console say

! [Tue 23:14:18 WARN  PlaceholderAPI] [math] Invalid Placeholder detected!
! [Tue 23:14:18 WARN  PlaceholderAPI] [math] Placeholder: %math_0:1_{tab_placeholder_health}/2%
 
! [Tue 23:14:18 WARN  PlaceholderAPI] [math] Cause:       '<Player is not loaded>/2' is not a valid Math expression.
sharp bloom
#

yuck

#

juset do %math_0:1_{player_health}/2% instead

tropic trout
#

alr

sharp bloom
#

download the /papi ecloud download player expansion if u dont have it

#

n /papi reload

tropic trout
sharp bloom
#

at least the non custom ones

tropic trout
#

do the expansions take up space

sharp bloom
#

they are usually even smaller than a single deluxemenus menu

sweet quail
#

Hi. I am just getting this error and I am not sure how to check the Identifier

[WARN] [PlaceholderAPI] Failed to load expansion votingplugin. Identifier is already in use.
[WARN] [PlaceholderAPI] Cannot load expansion votingplugin due to an unknown issue.
muted gulch
sweet quail
#

So it is happening after I let the server restart and load up. The Plugin seems to still be working fine though.

eternal obsidian
#

just delete the current votingplugin expansion and redownload

sweet quail
#

Yea I did

#

Wait, do I delete the expansion in the placeholderapi folder or just the votingplugin jar and put in a new jar for that?

eternal obsidian
#

papi folder

#

I mean i'm not sure but just delete it from there

#

and try to download it ingame

#

/papi ecloud download votingplugin

#

/papi reload

austere hawk
haughty ginkgo
#

Hello all,

For some reason McMMO is not working with the placeholders - it just diplays %mcmmo_power_level% - not the actual level - any ideas?

junior musk
#

send the link you get from /papi dump

#

and what do you get in chat when you run /papi parse me %mcmmo_power_level% ?

deep hollow
#

Hey, anyone knows why it gives that error?

tender vaporBOT
deep hollow
#

papi parse xNekio %utils_parse:30_changeoutput_<=_input:{arefyboosters_global_temp_booster_minecraft_experience}_matcher:0_ifmatch:&c&oNo hay boost activo_else:x{math_0_{arefyboosters_global_temp_booster_minecraft_experience}+1} &8⎜ &7{arefyboosters_global_remaining_duration_minecraft_experience} &7&o(activado por &l&o{servervariables_globalvalue_boosterexperiencia}&7&o)%

#

if I remove the {servervariables_globalvalue_boosterexperiencia} on the end it works, maybe there are a lot of placeholders on the utils or?

sharp bloom
deep hollow
#

Yep, it returns Empty text

junior musk
deep hollow
#

that's the weird thing

junior musk
#

you're not on the latest version

deep hollow
#

Hmm isn't 1.0.7 latest version?

#

it's what it downloaded

junior musk
#

it is

#

👀

#

why aren't the lines the same in the error then thonk

deep hollow
#

look 🤔

#

too weird

junior musk
#

ah now the lines are correct

#

though I still have no clue why that error happens

deep hollow
#

😂😂

#

yeah too weird

junior musk
#

the best I can do right now is recommend you to use shortcuts to split placeholders into multiple utils placeholders

#

btw why are you reparsing 30 times? XD

deep hollow
#

I was testing %utils_parse:30

#

but I didn't use it actually haha

junior musk
#
expansions:
  utils:
    shortcuts:
      math: "%math_0_{arefyboosters_global_temp_booster_minecraft_experience}+1%"

does this work? /papi parse me %utils_parse:30_changeoutput_<=_input:{arefyboosters_global_temp_booster_minecraft_experience}_matcher:0_ifmatch:&c&oNo hay boost activo_else:x{utils_shortcut_math} &8⎜ &7{arefyboosters_global_remaining_duration_minecraft_experience} &7&o(activado por &l&o{servervariables_globalvalue_boosterexperiencia}&7&o)%

#

surely that wouldn't work this easily

deep hollow
#

what did u change xd

junior musk
#

I just moved the math placeholder outside

#

somehow that works

deep hollow
#

Ah nvm

junior musk
#

actually I think you don't even need the utils_parse at the start anymore

deep hollow
#

I just tested the placeholder without the shortcut

junior musk
#

yeah obv that won't work without

#

or maybe it does

#

idk

#

papi parse me %changeoutput_<=_input:{arefyboosters_global_temp_booster_minecraft_experience}_matcher:0_ifmatch:&c&oNo hay boost activo_else:x{utils_shortcut_math} &8⎜ &7{arefyboosters_global_remaining_duration_minecraft_experience} &7&o(activado por &l&o{servervariables_globalvalue_boosterexperiencia}&7&o)%

#

does this work? lol

deep hollow
#

yeah that one worked with shortcuts

#

thanks as always Tanguygab! 😄

junior musk
#

👍

deep hollow
#

Btw do you know why placeholder is refreshing each 3 seconds

#

instead of 1?

#

update_interval: 1 update interval is set to 1 second

junior musk
#

?

#

no idea

deep hollow
#

on deluxemenus, and item containing the placeholder is on update: true

junior musk
#

try adding the placeholders inside changeoutput in the item's lore or smth to see if they update correctly

deep hollow
#

I mean is updating correctly but each 3 sec instead of 1 sec

junior musk
#

maybe it's one of the placeholders that is doing some weird calculations and not updating instantly

deep hollow
#

Hmm I don't think so because I put arefyboosters_global_remaining_duration_minecraft_experience outside the changeoutput and it's refreshing each 3 sec too

junior musk
#

then maybe that's that placeholder that's not refreshing instantly?

deep hollow
#

if I update it each second on /papi parse me %arefyboosters_global_remaining_duration_minecraft_experience%

junior musk
#

try spamming it with /papi parse me

deep hollow
#

it works well

junior musk
#

then DeluxeMenus' broken KEKW

deep hollow
#

:sadge:

sage wasp
#

Decided to switch to Decent Holograms from HolographicDisplays And the first thing I did was to bring back past holograms
With others, everything is very good, but the tops do not work at all
And in this screenshot I tried placeholders as Hd <> as well as regular %%
I don't get the joke. Help
CFG DH:
`enabled: true
display-range: 48
update-range: 48
update-interval: 20
facing: 0.0
down-origin: false
pages:

  • lines:
    • content: '#d51a1aТ#d01b1bо#cb1d1dп #c71e1e1#c21f1f0 #bd2121б#b82222о#b32424г#ae2525а#aa2626ч#a52828е#a02929й'
      height: 0.3
    • content: '&c① &c%playerpoints_name_1% &8▸ &c%playerpoints_score_1% &cпоинтов'
      height: 0.3
    • content: '&a② &a%playerpoints_name_2% &8▸ &a%playerpoints_score_2% &aпоинтов'
      height: 0.3
    • content: '&e③ &e<playerpoints_name_3> &8▸ &e<playerpoints_score_3> &eпоинтов'
      height: 0.3
    • content: '&7④ &7<playerpoints_name_4> &8▸ &7<playerpoints_score_4> &7поинтов'
      height: 0.3
    • content: '&7⑤ &7<playerpoints_name_5> &8▸ &7<playerpoints_score_5> &7поинтов'
      height: 0.3
    • content: '&7⑥ &7<playerpoints_name_6> &8▸ &7<playerpoints_score_6> &7поинтов'
      height: 0.3
    • content: '&7⑦ &7<playerpoints_name_7> &8▸ &7<playerpoints_score_7> &7поинтов'
      height: 0.3
    • content: '&7⑧ &7<playerpoints_name_8> &8▸ &7<playerpoints_score_8> &7поинтов'
      height: 0.3
    • content: '&7⑨ &7<playerpoints_name_9> &8▸ &7<playerpoints_score_9> &7поинтов'
      height: 0.3
    • content: '&7⑩ &7<playerpoints_name_10> &8▸ &7<playerpoints_score_10> &7поинтов'
      height: 0.3
      actions: {}`
#

LeaderHeads:
`# -----------------------------------------

Statistic config

Name: playerpoints

Plugin: PlayerPoints

-----------------------------------------

force-update: false
online-only: true
all-time:
sign-lines:

  • '&c&m------------'
  • '&a{name}'
  • '&e{amount} points'
  • '&c&m------------'
    update-interval: 30
    menu-enabled: true
    menu-command: /toppoints
    menu-size: 90
    menu-name: '&4Top Points Page {page}'
    menu-lines:
  • '&f&m----&f< &b{rank} &f>&m----'
  • '&c&m------------'
  • '&a{name}'
  • '&e{amount} points'
  • '&c&m------------'
    daily:
    sign-lines:
  • '&c&m------------'
  • '&a{name}'
  • '&e{amount} points'
  • '&c&m------------'
    menu-enabled: true
    menu-command: /toppointsdaily
    menu-size: 90
    menu-name: '&4Top Points Page {page} Daily'
    menu-lines:
  • '&f&m----&f< &b{rank} &f>&m----'
  • '&c&m------------'
  • '&a{name}'
  • '&e{amount} points'
  • '&c&m------------'
    weekly:
    sign-lines:
  • '&c&m------------'
  • '&a{name}'
  • '&e{amount} points'
  • '&c&m------------'
    menu-enabled: true
    menu-command: /toppointsweekly
    menu-size: 90
    menu-name: '&4Top Points Page {page} Weekly'
    menu-lines:
  • '&f&m----&f< &b{rank} &f>&m----'
  • '&c&m------------'
  • '&a{name}'
  • '&e{amount} points'
  • '&c&m------------'
    monthly:
    sign-lines:
  • '&c&m------------'
  • '&a{name}'
  • '&e{amount} points'
  • '&c&m------------'
    menu-enabled: true
    menu-command: /toppointsmonthly
    menu-size: 90
    menu-name: '&4Top Points Page {page} Monthly'
    menu-lines:
  • '&f&m----&f< &b{rank} &f>&m----'
  • '&c&m------------'
  • '&a{name}'
  • '&e{amount} points'
  • '&c&m------------'`
#

I apologize if I wrote in the wrong place, or clogged up the chat.

junior musk
#

/papi parse me %playerpoints_name_1% %playerpoints_score_1%

#

and if you're using the playerpoints placeholders, you don't need LeaderHeads?

sage wasp
#

need

sharp bloom
#

btw if its the playerpoints by rosewood they do have this placeholder that u can use %playerpoints_leaderboard_<#>% that returns the name of the player so idk whats the placeholder u use

#

and %playerpoints_leaderboard_<#>_amount% for the amount

sage wasp
#

Did I make a mistake? should I have sought help from LeaderHeads?

sharp bloom
#

isnt leaderheads a dead plugin huh?

#

its even deleted from spigot

junior musk
#

Which playerpoints plugin are you using?

junior musk
#

execute /papi parse me %playerpoints_leaderboard_<#>% %playerpoints_leaderboard_<#>_amount%

#

and replace <#> by a number like 0

sharp bloom
#

oh btw

#

can u check the sourcecode of deluxemenus for the model_data

#

if it doesnt support negative value

junior musk
#

I'll check

#

doesn't support negative values no

sage wasp
junior musk
#

remove the <>

sharp bloom
#

^^

sharp bloom
sage wasp
junior musk
#

you can now use that in DecentHolograms

sage wasp
#

I have top duels, rich men, killers. Do you think LeaderHeads won't help me with this and it's better not to use this plugin?

junior musk
junior musk
sharp bloom
haughty ginkgo
junior musk
junior musk
#

send your server logs

#

?startuplog

tender vaporBOT
haughty ginkgo
#

?paste

tender vaporBOT
queen talon
#

hey the plugin im using is installed on bungeecord and it uses placeholders but when i try to install placeholderAPI on bungeecord it doesnt work so im wondering what i need to do to fix this

toxic stag
#

You can't install it on bungeecord, just put it on every backend server

sullen kelp
#

Hi umm

#

any of these placeholders %server_total_chunks%, %server_total_living_entities%, %server_total_entities%

#

Return an Electric boogaloo

#

im not sure if its papi related

#

RESOLVED, not papi related, sorry

astral python
vivid sparrow
#

Essentials is EssentialsX

#

The X is not really typed anymore, since Essentials was replaced by EssentialsX a long time ago

astral python
#

Then why EssX doesn't parse placeholders in their configs, that is confusing me

vivid sparrow
#

because it is not meant to, that's up to the ess team to add this function

astral python
#

my confusion kicks in again, sorry if it's dumb as a question, but why in the wiki the "Supports placeholders" is ticked?

warm topaz
#

essentials has its own placeholder expansion, which provides placeholders for when other plugins are trying to parse placeholders
essentials doesnt parse those placeholders

#

so thats a list of placeholders that essentials provides, but doesnt necessarily mean they can be parsed inside of essentials itself

astral python
#

I know that and that's what the second check-box (Provides own placeholders) stands for, but what I'm confused about is the first one (Supports placeholders) that is checked even tho it does not in fact support PAPI

warm topaz
#

apologies, i didnt even realise that box existed on the wiki
from what i can tell - essentials only supports papi placeholders in its discord plugin addon. so not too sure if we can count that as "supporting placeholders" or not
but as for the main essentials plugin, it doesnt support placeholders in its config, sorry for the confusion

astral python
#

that is dumb (from them) and explaining things at the same time.. Also no need for apologies I was only trying to understand 😂 instead thanks for the clarification!

#

that you know, is there some workaround to inject placeholders content into their configs?

warm topaz
#

there was ChatInjector, but not too sure if it still works for newer versions

astral python
#

I see, that could have done it. Would getting the message content sent to a player and parsing it through PlaceholderAPI.setPlaceholders(player, content) have the same effect of ChatInjector?

warm topaz
#

yes

astral python
#

time to add it to the server's plugin then.. damn here we go again

junior musk
robust flame
#

Would anyone happen to know the cause of this error? It appears in the console every time someone writes a message in the chat.
https://pastebin.com/J2ybzCqB

junior musk
#

update your Player expansion
/papi reload
/papi list

robust flame
junior musk
#

mb

#

/papi ecloud download Player
/papi reload

#

idk why I said /papi list

robust flame
#

oh sorry

spice falcon
#

for %checkitem_amount_mat:GRAY_CANDLE% placeholder. How do i make it so that it detects if the item amount is beyond 150, not just 150?

junior musk
#

%checkitem_amount_mat:GRAY_CANDLE% will return the amount you have

robust flame
spice falcon
junior musk
#

%checkitem_mat:GRAY_CANDLE,amt:150% ?

spice falcon
#

Alright. Doesn't it only answer yes if its exactly 150?

#

I need >=

junior musk
#

yeah

#

ah

#

then you could use changeoutput

spice falcon
#

How would that work?

junior musk
#

give me a minute

mint fable
#

is it for a deluxemenus requirement?

#

if so you can use the amount_ placeholder too with a >= comparator requirement type

mint fable
#

wait

#

actually that's not true

mint fable
junior musk
mint fable
#

if you added strict it would be true

junior musk
#

ah

#

I didn't see

#

it'll say yes if you have 150 or more

mint fable
junior musk
#

so you can use %checkitem_mat:GRAY_CANDLE,amt:150% directly

#

yeah

spice falcon
#

Oh

#

so it would act even as >= ?

junior musk
#

yes

spice falcon
#

Ah, gotya

junior musk
#

ConditionalEvents has >= though so you could have used that with the %checkitem_amount placeholder

#

but yeah that works as well

noble wolf
#

Hello everyone. I have such a problem, the placeholder registers but does not display values. help please, here is my code: https://pastebin.com/1T4bCeGg.

#

PlaceholderAPI's version: 2.11.5

mint fable
#

forgot to override

junior musk
#

shouldn't matter

junior musk
#

and do they work in /papi parse me <placeholder> ?

noble wolf
#

no

mint fable
#

shouldn't matter?

junior musk
#

yeah, override isn't necessary

mint fable
#

Why not?

#

O.o

junior musk
#

just very recommended

#

Java 🤷

junior musk
noble wolf
#

1 sec

#

wait pls

junior musk
#

still waiting

noble wolf
#

public int getPlayerLevel(Player playerName) {
try {
try (PreparedStatement statement = this.connection.prepareStatement("SELECT exp FROM levels WHERE player = ?")) {
statement.setString(1, playerName.getName());
try (ResultSet result = statement.executeQuery()) {
if (result.next()) {
int exp = result.getInt("exp");
return Math.floorDiv(exp, 100);
}
}
}
} catch (SQLException e) {
logger.log(Level.SEVERE, "Error getting player level: " + e.getMessage(), e);
}
return 0;
}

junior musk
#

I'm asking for the placeholder you used in your /papi parse me command

noble wolf
#

PAPI writes an error and points to this method

junior musk
#

then there's an issue with your code

noble wolf
junior musk
#

then there's an issue with your code

noble wolf
#

can you tell me where exactly the error is?

junior musk
#

I have no idea

#

I just know that if the issue is coming from your code, then PAPI can't do anything

strange stump
#

whats the syntax for rounding a variable with the math addon

strange stump
#

%math_2:ceiling_{vmoney.{uuid}}% is not working

junior musk
#

that should work

#

what does it return?

strange stump
#

the string as plain text

junior musk
#

probably because {vmoney.{uuid}} is not a PAPI placeholder but a Skript placeholder

strange stump
#

is that fixable

junior musk
#

there is a Skript expansion for PlaceholderAPI on the ecloud that allows you to use those placeholders

strange stump
#

i have it

junior musk
#

though there's actually 4 of them and idk which one is up to date

junior musk
#

Expansion-Skippi_NOjwIyx.jar
weird file name o_O

strange stump
#

thats what it is on ecloud

junior musk
#

ah

strange stump
#

%math_2:ceiling_{skript_vmoney.{uuid}}%

#

doersnt work

junior musk
#

/papi parse me %skript... %

#

does it work there?

strange stump
#

no like the %skript_vmoney.{uuid}% works

#

but not in the math thing

junior musk
#

yeah I get that

#

but does it work inside papi parse ?

#

alone

#

nvm I can't right, you said it works

#

nah just the skript_vmoney thing alone

strange stump
#

yea does

junior musk
#

but I think I know why it doesn't work

#

because of the extra {}

strange stump
#

i kinda figured

#

is there a workaround

junior musk
#

I'm trying to find a solution

#

/papi ecloud download Utils
/papi reload

expansions:
  utils:
    shortcut:
    money: "%skript_vmoney.{uuid}%"

and use {utils_shortcut_money} in your math placeholder

#

lost connection right as I was about to reply =/

strange stump
#

broo this solves like so many of my problems

#

thank you so much

short dagger
#

Can anyone tell me how I convert data from float to int within my %math%?

I'm trying to use it with Deluxemenus, with the slot argument (pixelmon)

%math_{slot}+1% but it returns me 2,000 I need it to be just 2.

junior musk
#

%math_0_...

short dagger
#

Thx

cinder reef
#

Does PlaceHolderAPI support proxy servers?

junior musk
#

no

#

PAPI can only be installed on Spigot/Paper

cinder reef
#

ok, thx.

lone vector
austere hawk
#

When I start my server in the console it says that there are 3 extensions with updates, how do I update them?

eternal obsidian
lone vector
rugged widget
#

Whats the placeholder for blocks placed

#

their is statistic_use_item but that includes like using pickaxe etc

austere hawk
#

question im using papiapi and i want to add this placeholder %ultimateautorestart_seconds% whats the command to add it again i forgot

spiral pawn
#

when i add for example %player_deaths%

#

it doesnt work

#

it just be deaths: %player_deaths%

austere hawk
#

Expansion changeoutput change?

#

I had everything configured but now the placeholers I had no longer work

#

How do I check if a number is equal to or greater than another number?

sharp bloom
#

to return the amount of deaths that a player has u need the statistic expansion /papi ecloud download statistic n then /papi reload
its the %statistic_deaths% placeholder

austere hawk
sharp bloom
austere hawk
#

Return yes and no

sharp bloom
#

and it will return the amount

#

then u cant check it if its greaten if its not an integer value

austere hawk
#

But I want you to check if it is greater than a number or not

sharp bloom
#

since its a boolean placeholder

austere hawk
#

Not getting the value of the placeholder

sharp bloom
#

u cant check a string that returns yes/no the amount

#

cause there is no value in it

#

whats the placeholder

austere hawk
#

Check one number with another if it is equal, greater, less

#

A math placeholder perhaps

spiral pawn
#

thanks

#

also

#

i have problem with vault

#

it doesnt show money

sharp bloom
# austere hawk I think you do not understand me

ugh here is an example with a vault placeholder
%changeoutput_>=_input:{vault_eco_balance}_matcher:1000_ifmatch:yes_else:no% this will return yes if you have above 1000 otherwise it will always return no

sharp bloom
#

and the vault expansion installed /papi ecloud download vault

spiral pawn
#

i dont 😐

sharp bloom
#

pepesip problem solved

spiral pawn
#

which plugin is for 1.20.1

#

i cant find it

sharp bloom
#

download the one from spigot

spiral pawn
#

there is only for 1.16

sharp bloom
#

it works

spiral pawn
#

name

sharp bloom
#

it doenst need an update

spiral pawn
#

ok

sharp bloom
#

vault...OKK

spiral pawn
#

xdd

#

thanks man

austere hawk
#

thanks

spiral pawn
#

you are helping me so muchh

sharp bloom
spiral pawn
#

and that doesnt work

junior musk
#

that's not a placeholder

spiral pawn
#

help me bro

#

ohh

#

how do i put then player votes

junior musk
#

depends on your voting plugin

sharp bloom
tender vaporBOT
junior musk
#

check the Placeholder List

sharp bloom
#

its a lil outdated btw :/

#

utils r missing from the list

muted gulch
#

How can I parse a player arguement in a menu with placeholderAPI?

#

I think I remember that the {arguements} can be used in parseother?

junior musk
#

%parseother_{{arg}}_{placeholder}%

#

the double {} are necessary

spiral pawn
#

hello

#

what is %changeoutput_equals_input:{essentials_nickname_stripped}_matcher:{player_name}_ifmatch:_else:&7(&#ECB620{essentials_nickname_stripped}&7)%"

sharp bloom
spiral pawn
#

alr

austere hawk
#

I have a question. I have placeholder that show up top 10 players and how many hours they have played on a server. Can i reset hours without deleting accounts?

sharp bloom
#

from the statistic expansion?

austere hawk
#

I still looking for it. Just asking currently

sharp bloom
#

OKK well depends...

#

if its the statistic expansion probably not cause its based on playerdate as far as ik

#

if its a plugin that does the counting for the playtime there r more chances that u might be able to reset it

austere hawk
austere hawk
#

I have used %statistic_hours_played%. It automaticly gaves me rank 1. But i need top 10 ranks, which placeholders should i use?

sharp bloom
#

u have to use something like aj leaderboards and make a leaderboard for that placeholder

#

statistic expansion doesnt provide of any leaderboard

austere hawk
#

oki, thx.

restive slate
#

Hi guys, do you know how can I round the value?

&f%math_{bungee_GrindSpawn}+{bungee_GrindEventi}+{bungee_GrindDuelli}

There is only one player online but it says 1.000

#

solved

sharp bloom
#

oh nvm u said solved :/

austere hawk
restive slate
opaque linden
#

Inside open commands, from deluxemenus. How can I set a command to move you between modes?

hoary plank
#

Is there a placeholder that shows how many players are in a specific gamemode?

stuck cedar
#

For some reason i cant download "World" expansion. Can someone help me with that?

junior musk
proud forum
#

hello

tribal knoll
#

🐓

unique sand
#

is it somehow possible to give boolean color codes?

boolean:
'true': '&aFreigeschalten'
'false': '&cNicht freigeschalten'

junior musk
#

try with §

unique sand
#

Wow... how bad of me... Thank you

onyx mantle
#

How to download world placeholders?

junior musk
#

read 5 messages above yours

onyx mantle
#

ok

strange stump
#

anyone know how to get an output like this with the Formatter extension where the decimal stops after 2:
62,676,825,459.56 -> 62.68b

Right now im using %formatter_number_shorten_<number>% and its doing:
62,676,825,459.56 -> 62.67682545955999b

atomic wolf
#

Why doesn't {online} work on a hologram? I use PlaceholderAPI and DecentHolograms

sharp bloom
atomic wolf
#

What can i use then?

sharp bloom
#

what does the {online} display?

#

if the server is online?

atomic wolf
#

Player count

sharp bloom
# atomic wolf Player count

use the %server_online% placeholder and for it to work download the server expansion /papi ecloud download server and /papi reload

#

oh u want the player count for bungee

atomic wolf
#

Yes

sharp bloom
#

download the bungee expansion instead

#

and use the %bungee_<servername>% placeholder

atomic wolf
#

Where can i find the bungee expansion?

sharp bloom
atomic wolf
#

Thank you ❤️

sharp bloom
#

np

plush dove
#

Anyone know a placeholder that functions as /paper dumpitem where you can do /minecraft give to get the exact item

mint fable
#

don't think one exists @plush dove

plush dove
#

sadge

hot river
#

Hello! I am running a 1.20.2 server with DeluxeMenus and PlaceholderAPI. When using DeluxeMenus, the placeholder %player_name% does not work. It simply shows ingame as %player_name%. Particularly, I am trying to use the [console] action from DeluxeMenus and run a command on the player that interacted with the menu.

junior musk
hot river
real parrot
junior musk
#

you can try whichever method you prefer, though it'll be more or less acurate

real parrot
#

I have no idea how to code it xD

junior musk
#

I guess just Ctrl+C Ctrl+V the code on the page I sent XD

tulip brook
#

hello, does anyone know how the %player_displayname% works?

#

i am trying to make a custom plugin that modifies the displayName of the player and the tablist name