#placeholder-api

150650 messages · Page 46 of 151

hard basalt
#

ect

novel fossil
#

ye

hard basalt
#

so do u want me to fomat the output ?

#

then i will make a js placeholder do modify it

novel fossil
#

well i dont think its needed

#

but the scoreboard is a bit big now

hard basalt
#

ok

turbid tide
#

It won't.

#

it will show 3m then 1h 3m then 2d 1h 3m

hard basalt
#

hmm is my statistic outdated ?

#

seem like it is

turbid tide
#

well at least that's what it should be doing

hard basalt
#

just u the %statistic_time_played% then

novel fossil
#

can i ask for general problems here or is this only for PAPI?

hard basalt
#

if we know we can help

turbid tide
novel fossil
#

ok, thanks. Do you know how to remove <tab> in minecraft chat? all members can see all commands even those they dont have permission

turbid tide
#

I don't think there's a way to block it for specific users (with the existing plugins I mean) but you can block it for everyone using PluginHiderPlus

novel fossil
#

i use NoPlugins

#

and its blocking the plugins

#

but not the commands

hard basalt
#

mine dont show at all if they dont have perm

novel fossil
#

they can see commands like //brush //ae /action

hard basalt
#

maybe give them specific perm for a command will work?

novel fossil
#

well i already did permission

#

they dont have permission for most of them

#

but they can still see those commands with tab

#

in the chat

hard basalt
#

idk about that but i use luck perm and it work well

#

pressing tab will only bring back usable command for the player that have perm (in my sv)

novel fossil
#

well sadly on me is not like this

#

they can see every command in the server

#

they dont have permission, but they can see it

hard basalt
#

does it flag red or normal gray

novel fossil
#

wait

turbid tide
#
        Locale locale = getLocale("en-US");
        NumberFormat numberFormat = NumberFormat.getNumberInstance(locale);
        DecimalFormat decimalFormat = (DecimalFormat)numberFormat;
        
        decimalFormat.applyPattern("#,###,###.##");
        decimalFormat.format(number);
novel fossil
hard basalt
#

maybe ur permission plugin dont have that feature ?

novel fossil
#

well

#

maybe..

hard basalt
#

wut r u using

novel fossil
#

PowerRanks

hard basalt
#

dont know about it sorry

novel fossil
#

its ok

turbid tide
#

Why not use LuckPerms?

#

Its the best plugin on the market and its free

austere hawk
turbid tide
novel fossil
turbid tide
#

LuckPerms has a convertor for most plugins so it might have one for PowerRanks as well

hard basalt
#

luckperm also have a nice editor that save u bunch of time

novel fossil
#

I will definitely switch to luckperms

#

do you guys know good plugin for clans?

#

i use Clans - clan system, do you know if i can use placeholder for this? something like " Clan: (clan name) "

#

and i can add this to scoreboard?

turbid tide
#

these are the placeholders

#

you can use

novel fossil
#

should i download something?

turbid tide
#

oh boy @austere hawk I just realised I gave you JAVA code and you need JavaScript. I'll look at how to do it in JS and update it xD

turbid tide
#

right away

#

when you got PAPI and Clans

novel fossil
#

cool

turbid tide
# austere hawk ty 😄

So it seems like the only way to add dots is to use REGEX. Which idk if will work with javascript.

#

but here you go

turbid tide
# austere hawk ty 😄
function currencyFormat(num) {
  return (
    num
      .toFixed(2)
      .replace('.', ',')
      .replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1.')
  )
}

return currencyFormat(1234567.89))```
austere hawk
turbid tide
#

just chyange 12345....

#

in the call

#

with your number

#

you want to format

austere hawk
#

hum ok 🙂

#

i'm so bad I just can't seem to do it >_<

austere hawk
#

function ecotake() {
  return "eco take %player_name% " + team * 50000
}

function ecoshow() {
toto= "" + team * 50000;
  return toto.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");
}
function ecoMain() {
    if (args.length >= 1) {
        var args0 = args[0];
    }

    if (args0 == "take") {
        return ecotake()
    }
    else if (args0 == "show") {
        return ecoshow()
    }
    else {
        return "Specify 'take' or 'show'"
    }
}
ecoMain()``` but the return is 50**..**000 >_<
#

ok i found

#

function ecotake() {
  return "eco take %player_name% " + team * 50000
}

function ecoshow() {
toto= "" + team * 50000;
  return toto.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1.");
}
function ecoMain() {
    if (args.length >= 1) {
        var args0 = args[0];
    }

    if (args0 == "take") {
        return ecotake()
    }
    else if (args0 == "show") {
        return ecoshow()
    }
    else {
        return "Specify 'take' or 'show'"
    }
}
ecoMain()```
turbid tide
#

yeah you didn't have to change the $1

#

that's just a variable name

austere hawk
#

do you know how i can add the online players amount at the bottom

turbid tide
#

%server_online%

austere hawk
#

so i need any special downloads?

vivid sparrow
vivid sparrow
turbid tide
#

^^ /papi ecloud download Server /papi reload

austere hawk
#

how can i add smething for the thign where you ghold Tab

#

so itll show the time ping and online staff?

elfin igloo
#

Is there a way to use multiple papi arguments?

#

Or does it have to be supported?

turbid tide
turbid tide
austere hawk
#

link for it ?

turbid tide
#

1 sec

austere hawk
#

is there a way on the Tab Plugin for it to do time via Location

#

so if someone is in america it shows their time on the TAB plugin and say from the uk it shows uk time

turbid tide
#

not really

junior musk
#

you probably can with the LocalTime expansion for PlaceholderAPI

turbid tide
#

yeah but he'll have to somehow get the local for each player

#

so not that easy

tender vaporBOT
turbid tide
#

What script?

#

use the Formater expansion instead

#

/papi ecloud download Formatter /papi reload

#

then use %formatter_number_format_{supermobcoins_mobcoins}%

#

what does it return instead?

torpid cave
#

Hello, I need help! I install NametagEdit on my server, and I previously have installed PlaceholderAPI plugin. And when I restart my server, have an error ([NametagEdit] As the error above suggests, you do NOT have any placeholder plugins installed. The placeholder API is merely an interface, it requires other plugins to function. This is NOT an issue with NametagEdit.). I don't know what I can do to solve that error. I used newest versions of PlaceholderAPI and NametagEdit.
On older versions, that works. Now on 1.16.5 version, have that error.
Thanks!

turbid tide
#

have you tried /papi parse me %formatter_number_format_{supermobcoins_mobcoins}%?

torpid cave
turbid tide
#

I've seen this before but I've got no idea how to disable it

torpid cave
#

Its spaming console a lot, and that annoying me a lot

turbid tide
#

Try contacting the developer of the plugin. see if there is a way to disable it

torpid cave
#

Oke, thanks! 😄

turbid tide
#

do you have just MVdWPlaceholderAPI installed

#

and no other MVdW plugin?

torpid cave
#

Ouuu

#

I have MVdW, but I havent install FeatherBoard.. I will try that now

#

It works

#

!!

#

Nicee

#

That makes issue, thanks a lot

turbid tide
#

👍

austere hawk
#

How do I make a number return a whole number and not .0

#

54.0 -> 54

warm topaz
#

in general?

#

or are u using an expansion like math

austere hawk
#

@warm topaz idk, placeholder outputs a decimal when trying to make it a wholenumber

warm topaz
#

which placeholder

austere hawk
#

var current = Number("%sack_slots%");
var one = 1;
var result = current + one;

function sacksize(){
    return result.toFixed();
}
sacksize();```
vivid sparrow
#

toFixed(0)

austere hawk
#

Thanks @vivid sparrow , you should reply to our dm though

vivid sparrow
#

damn I saw them but forgot to reply smh

maiden wing
#

Is it possible to pause a placeholder timer in a certain WorldGuard region?
For example, i am currently using this place holder %statistic_time_since_death%. Is it possible to make it stop counting when a player enters Spawn region? Because then they could just AFK in spawn and rack up time to be on the top of the leader board. I hope that makes sense. Or is there another way i can go about doing this?

turbid tide
maiden wing
#

Ahh man i was hoping there was some way to counter people afking in spawn for longer survival time 😂

#

Is there a way i could do it with a separate plugin that tracks time since last death itself instead of using minecraft data?

turbid tide
#

you could but there is no plugin that I know of that does this

#

so you'll probably need something custom

maiden wing
#

Alright cool thank you!

#

Appreciate the quick response 🙂

slender rover
#

Can someone help me please with math problem 😄
When I use it like that it work normally
%math_2/5*100%
but when I try to use placeholder like this its spamming my console and it do not work at all..
%math_{placeholder_1}/{placeholder_2}*100%
Error:
[PlaceholderAPI] [Math] Invalid Placeholder. '2/5*100' is not a valid math expression.

What Im doing wrong? Because I need it to work with these placeholders 😕

hasty iris
dim nexus
#

hello

#

what does %player_exp% returns exactly in 1.16.5?

#

for some reason it is returning 0.0 when i've 2 levels of exp

lilac oxide
sturdy raft
#

Hello, I want to ask for support about the CheckItem expansion.
The modifier namecontains, namestartswith and nameequals does not work. (I think)
I try to use the command /papi parse me %checkitem_namecontains:Panda% when I have in my inventory a Panda Spawn Egg and a Custom Player Head name "Panda's Head", and it parses "no".
Any help?

mint fable
#

I would love to help but sadly I've got to head to bed

#

if you're still around tomorrow I can help ya out

#

only thing I can suggest now is making sure you're on the latest version of papi and checkitem

sturdy raft
sturdy raft
split orchid
#

why icant download expansion luckperms and other

#

im using paper 1.12.2

slender rover
hybrid stratus
#

I have an issue registering my plugin's placeholderAPI's placeholders.

hard basalt
hard basalt
pulsar ingot
#

how do i check all placeholders i have

hybrid stratus
#

When can I register the placeholder Of my plugin?

#

when I try to register it on the "onLoad" it gives me a null pointer exception "PlaceholderExpansion:132"

turbid tide
#

Load it onEnable. Also what's the full error

turbid tide
#

yeah you probably want to register it onEnable

sturdy raft
hard basalt
sturdy raft
hard basalt
#

do u have a screenshot ?

mint fable
#

What is Purpur @sturdy raft ?

#

is it another server software like spigot/paper/etc.?

warm topaz
#

yup

sturdy raft
#

Ye

mint fable
#

1.16.5 you said?

sturdy raft
#

It's a fork of Paper

#

Yup

mint fable
#

/papi dump

#

can you send that over

#

=paste

tender vaporBOT
mint fable
#

in console

sturdy raft
#

that?

mint fable
#

yep

#

loading my server up to test

sturdy raft
#

ok

mint fable
#

in the meantime, try a dev build of papi

#

seems to be working fine for me on 1.16.5 with 2.10.10-DEV-118 checkitem 2.0.6

#

obviously i recommend the latest dev build though, i'm updating rn

sturdy raft
#

Ok, I'm updating to the last dev

mint fable
#

wait a minute

#

I think I see the issue

#

you're trying to check if the local name of an item contains Panda, not a custom display name for the item

#

that won't work sadly

#

let me see if I can add that real easily

sturdy raft
#

I'm trying to check the name of the Panda Spawn Egg

#

which is Panda Spawn Egg

mint fable
#

ye, but it's not a "custom name"

#

so it's treated completely different in regards to how it's coded

sturdy raft
#

oh ye, also a custom name

#

so need to download another expansion?

mint fable
#

nah, let me see if I can add support for it

sturdy raft
#

ty

mint fable
#

I got no idea

#

the only way I see that I could do it now is if the server has a specified lang file

#

how can I get Panda's Head @sturdy raft

sturdy raft
#

I use /itemname Panda's Head

#

from CMI

#

on a player head

mint fable
#

so

sturdy raft
#

oh wait

mint fable
#

I did that on my spawn eggs

sturdy raft
#

I use a datapack

#

the spawn egg I didn't change the name

#

but for the custom head

mint fable
#

So croa

#

there's a bit of an issue

sturdy raft
#

I use a datapack to give a player when kills a mob

#

ye?

mint fable
#

you're using a custom datapack for names of items, right?

sturdy raft
mint fable
#

I don't know if that will work with this

#

idk if spigot sees datapack stuff like that

sturdy raft
#

oh

#

so... it doesn't have a solution, right?

mint fable
#

for the egg, no

sturdy raft
#

the egg is from Vanilla Minecraft

mint fable
#

if you use /itemname for the head, but I don't think you do, it would work

sturdy raft
#

the custom head is the issue

mint fable
#

yep, being from a datapack it doesn't actually modify the displayname of the item in spigot I don't think

#

if it did, %papi_checkitem_namecontains:Panda% would work

hard basalt
#

is mmoitem work with checkitem ?

mint fable
#

meaning?

turbid tide
#

it should bcz its just an item with custom names and lores

sturdy raft
#

recommendations?

turbid tide
#

you can't check nbt tags tho

mint fable
#

no idea how to do this @sturdy raft

#

if I did I'd just add it to checkitem

#

:L

#

sadly

sturdy raft
#

:c ok

#

at least you tried

turbid tide
#

I guess the best way would be to just use a plugin instead of a datapack

#

like EpicHeads or something

mint fable
#

could you create the items with custommodeldata @sturdy raft maybe?

sturdy raft
#

I don't know how to use custommodeldata

mint fable
#

I can't think of anything else that is "hidden" to the player

turbid tide
#

custom model data would require a resource pack tho wouldn't it? I think best is just to use a plugin instead of a datapack

sturdy raft
#

It's the same but instead of a datapack is a plugin

mint fable
#

that would make it a lot better

sturdy raft
#

but all the old heads will not be affected by the CheckItem expansion?

mint fable
#

correct

sturdy raft
#

yisus

mint fable
#

not sure how you could retroactively fix that one...

sturdy raft
mint fable
#

well... I'm not too sure either

hard basalt
#

using item createor

mint fable
#

I just know it's a datapack sort of thing

#

resourcepack/datapack

hard basalt
#

there's many free out there

mint fable
#

I think the plugin might be the best solution though

#

because either way, you can't fix what the player's already have...

sturdy raft
hard basalt
#

ummmmmm

sturdy raft
hard basalt
#

yeah that will work too

mint fable
#

croabeast when you get a blaze head on drop, is it named Blaze or blaze's head?

sturdy raft
mint fable
#

i know that

#

but I'm askign what it says in-game

#

because that tag might be outdated

austere hawk
#

Ay, aynone know why this doesen't work?

#

%math_{ultraprison_next_rank_cost}/100*{rng_25,50}[precision:0]%

sturdy raft
#

wait a sec, I need to test that

austere hawk
#

Sorry for distrubing.

mint fable
#

you see how it says the name is supposed to be Blaze?

sturdy raft
#

it says Blaze's Head

mint fable
#

and the texture is right and all, ye?

sturdy raft
#

yup

mint fable
#

so

#

{display:{Name:"{\"text\":\"Blaze Head\",\"italic\":\"false\"}"},SkullOwner:{Id:[I;154901009,355289695,-1810345794,-1471547454],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGVlMjNkYzdhMTBjNmE4N2VmOTM3NDU0YzBlOTRlZDQyYzIzYWE2NDFhOTFlZDg0NzBhMzA0MmQwNWM1MmM1MiJ9fX0="}]}}}

austere hawk
#

ah alright

mint fable
#

That is the correct tag that I've tested

#

works with checkitem

#

/minecraft:give @p player_head{display:{Name:"{\"text\":\"Blaze Head\",\"italic\":\"false\"}"},SkullOwner:{Id:[I;154901009,355289695,-1810345794,-1471547454],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGVlMjNkYzdhMTBjNmE4N2VmOTM3NDU0YzBlOTRlZDQyYzIzYWE2NDFhOTFlZDg0NzBhMzA0MmQwNWM1MmM1MiJ9fX0="}]}}} 1

#

I had to fix the name

#

and it works

#

but it would have to be done for every mob

sturdy raft
#

mmm

mint fable
#

from {SkullOwner:{Id:[I;154901009,355289695,-1810345794,-1471547454],Name:\"Blaze\",Properties:{textures:[{Value:\"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGVlMjNkYzdhMTBjNmE4N2VmOTM3NDU0YzBlOTRlZDQyYzIzYWE2NDFhOTFlZDg0NzBhMzA0MmQwNWM1MmM1MiJ9fX0=\"}]}}}
to
{display:{Name:"{\"text\":\"Blaze Head\",\"italic\":\"false\"}"},SkullOwner:{Id:[I;154901009,355289695,-1810345794,-1471547454],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGVlMjNkYzdhMTBjNmE4N2VmOTM3NDU0YzBlOTRlZDQyYzIzYWE2NDFhOTFlZDg0NzBhMzA0MmQwNWM1MmM1MiJ9fX0="}]}}}

turbid tide
sturdy raft
#

but it doesn't work if I check namecontains: Blaze?

mint fable
#

after I fixed it, it works with checkitem yes

#

that's if you want to stick with the datapack, you just have to modify it

sturdy raft
#

ok... maybe change all the mob heads from the datapack is not a good idea xd

mint fable
#

or you can switch to a plugin you were looking at

sturdy raft
mint fable
#

correct

#

now...

#

you could have a commandblock

#

that constantly runs

#

and replaced all old heads with new ones

sturdy raft
#

ye

mint fable
#

but I have no idea how to set that up

sturdy raft
#

give me pls

#

oh

#

:c

mint fable
#

lmao

#

but I know you can

sturdy raft
#

wat

mint fable
#

might be easier than you think

sturdy raft
#

I dont have any idea how to use command blocks

mint fable
#

ya... I said that with a lot of confidence

#

I also got no clue

austere hawk
hard basalt
#

maybe use a repeat cmd without condition ad redstoneless that ran an update command till it done

sturdy raft
#

:,)

austere hawk
#

however thanks you for trying.

mint fable
#

/papi parse me %ultraprison_next_rank_cost%

#

what does that return?

austere hawk
mint fable
#

woah

#

that's a big number

#

but it also has commas

#

which is a problem

austere hawk
#

ah

#

Is there way to remove commas?

#

or should I ask developer to add without commas?

hard basalt
#

it a number format

mint fable
#

have you checked if there is any placeholder like that

austere hawk
#

yes

#

There is another placeholder but formatted

mint fable
#

ugh they added a formatted one

#

but not a raw

austere hawk
#

insted of numbers it will show 1M 1B etc.

#

yeah.

#

so that is problem?

hard basalt
#

maybe make a javascript placeholder to de-format it ?

mint fable
#

looking for that atm

austere hawk
#

uhm maybe

hard basalt
#

basically it just need to slipt and remove the commas, and convert string to mumber, maybe float should work

mint fable
#

1 line

austere hawk
#

i mean is it possible to do with javascript?

#

if not

mint fable
#
noComma = "%ultraprison_next_rank_cost%".replace(/,/g,"")```
#

try just that

austere hawk
#

where I should place that hahaha

tender vaporBOT
austere hawk
#

ah alright

#

engine?

mint fable
#

leave undefined

austere hawk
#

ok

hard basalt
#

is the essentials.invsee only allow normal player to see other inventory or can modify it too?

austere hawk
#

how to test it?

mint fable
#

/papi parse me %javascript_<whateveryounamedit>%

austere hawk
#

Alright

#

so

#

now i have .00 at end

hard basalt
#

it fine

mint fable
#

that should be fine

hard basalt
#

demical ok

mint fable
#

it's math

austere hawk
#

alright boys

#

thanks!

hard basalt
#

ok

austere hawk
#

tysm cj!

hard basalt
#

phew

mint fable
#

👍

austere hawk
#

While you're here what happend with your autominer plugin

#

rip project?

mint fable
#

wym?

#

it's still out there

austere hawk
#

yeah but last update sep 25

mint fable
#

🤷‍♂️ no bugs

austere hawk
#

alright, anyway thanks again!

hard basalt
#

if it still good then no update needed

mint fable
#

exact

scarlet valve
#

Hi

#

I want a papi that display vault prefix of other players

turbid tide
#

display it where?

scarlet valve
#

In a papi

#

In a scoreboard

turbid tide
#

so instead of displaying the player's rank it would display another's player rank?

scarlet valve
#

Like %vault_prefix%

#

This will display your prefix

turbid tide
#

yeah

scarlet valve
#

I want to display another player prefix

#

Not my

turbid tide
#

well you can use the ParseOther expansion

#

%parseother_{OTHER-USER-NAME}_{vault_rank}%

scarlet valve
#

Thanks

#

This helps lot

turbid tide
#

👍

scarlet valve
#

My scoreboard just disspear

#

Aaaaaaaaaaaaa

#

@turbid tide

turbid tide
#

huh have you downloaded the parseother expansion?

scarlet valve
#

Yes

#

And reloaded

turbid tide
#

what placeholder have you used? the exact one you've put in the scoreboard I mean

scarlet valve
#

%parseother_mrdla333pe_{vault_prefix}%

mint fable
#

oof

#

you removed the {} around the username

turbid tide
#

^^^

scarlet valve
#

Same

mint fable
#

so %parseother_{mrdla333pe}_{vault_prefix}% still not working?

scarlet valve
#

%parseother_{mrdla333pe}_{vault_prefix}%

turbid tide
#

can you try /papi parse me %parseother_{mrdla333pe}_{vault_prefix}%

#

see what it says

mint fable
#

and mrdla333pe is online?

scarlet valve
#

no

turbid tide
#

well that will be a problem

scarlet valve
#

Do he have to be?

mint fable
#

vault placeholders don't work for offline players

#

no permission placeholders will

scarlet valve
#

Aaaa

#

It works

mint fable
#

ya..

scarlet valve
#

Thanks

mint fable
#

👍

scarlet valve
#

1 more question

#

Can i replace the name with another placeholder,

#

?

mint fable
#

yes

scarlet valve
#

So i put{{}}

mint fable
#

nope

#

just {}

scarlet valve
#

Or 1 will work

turbid tide
#

1 should work

scarlet valve
#

Ok

turbid tide
#

2 will also work I think tho

scarlet valve
#

Thanks

mint fable
#

most likely not @turbid tide

scarlet valve
#

So no%

mint fable
#

no %

scarlet valve
#

Ok

mint fable
#

yes no % because it adds them

#

more brackets would probably break it tbh @turbid tide

#

somehow

turbid tide
mint fable
#

ah ye

#

that would be it

#

but I think you need 2

#

because it replaces the one set

#

but ye

turbid tide
#

yeah I know why I need 2 in deluxemenus

#

but think about it

mint fable
#

ye i'm just high

turbid tide
#

{username} {placeholder} {{placeholder}}

#

if username needs {}

#

why wouldn't palceholder that turns into username not needo ne?

#

xD

#

bcz this {{placeholder}} would become {username}

mint fable
#

because the entire thing is treated as a placeholder

#

and it lessens confusion on the next part

#

because then if I did {{placeholder}} people might think the last part needs to be {{}}

turbid tide
#

oh well idk I never tested I just showed you my thought process and why I thought 2 might work

mint fable
#

well

turbid tide
#

yeah but I just said 2 might work as well. I didn't say they are needed

mint fable
#

wait

#

nah it'll be like %{placeholder}% 😂

#

and then who knows

turbid tide
#

is parseother os?

mint fable
#

no

turbid tide
#

why? 😢

#

well anyways

#

back to work

mint fable
#

lot of work

#

lmao

austere hawk
#

Hi,
I have implemented the PAPI into my plugin, but for some users the placeholders don't update, what could be case of that?

turbid tide
unique arrow
#

Hi i have an error with placeholder-api plugin,

I try to use the statistic placeholders but the values ​​are not updated for example when i put %statistic_mine_block:cobblestone%

PlaceholderApi version: 2.10.9
Statistic version: 2.0.0

hard basalt
tawdry ether
#

Hi, I'm using FactionsMcore, when I update Placeholder API to 2.10.9, the placeholder of factions doesn't work any more. What should I do? Downgrade placeholderapi?

restive obsidian
#

hi, i need placeholder help for bw1058

junior musk
trim mist
#

I don't even know where the code for the OG Factions expansion is. Isn't in the org we have so probably can't do anything for the time being.

junior musk
#

Maybe I could try to recreate it and update it 👀 doesn't have that much placeholders

unique arrow
hard basalt
#

do u have static downloaded

unique arrow
#

Yes

hard basalt
#

i mean the expansion

unique arrow
#

The version 2.0.0

mint fable
#

what do you mean by main config?

#

update_interval: 1 needs to be set for the gui

hard basalt
#

in the gui menu

mint fable
#

not in the "main config"

unique arrow
mint fable
#

=paste

tender vaporBOT
unique arrow
#

For example:

example.yml

mint fable
#

can you send the whole thing there

unique arrow
mint fable
#

to check that where the issue lies, can you try another placeholder?

#

like %server_uptime%

unique arrow
#

Okay give a minute

hard basalt
#

ur u can just prase it in chat /papi prase me %placeholer%

mint fable
#

how would that tell us if the menu is updating or not?

unique arrow
#

I try with %server_uptime% and the values ​​if updated

mint fable
#

huh?

#

I assume there was a typo

unique arrow
#

Yes because i use another placeholder and works fine

#

But with statistic placeholder the value dont update

hard basalt
#

hmmmmmmmmmmmmmm

#

try redownload statistic

unique arrow
#

I try it but dont work

#

And i try to stop the server and turn on and nothing

mint fable
#

statistic broken for some things

#

sadly

#

that might work

#

oh...

hard basalt
#

the play time still work

#

but not sure other stuff

mint fable
#

what server version are you on

unique arrow
#

1.16.4

hard basalt
#

try 1.16.5 ?

mint fable
#

hmm

#

i got no workaround sadly

austere hawk
#

Do you guys know how can i make a shop where for example you can buy a diamond sword for 1 dirt block and 1 iron ingot? Im using Deluxe Menus

unique arrow
hard basalt
austere hawk
#

will it remove the item from the inventory as an exchange?

hard basalt
#
left_click_requirement:
  requirements:
    has_dirt:
      type: has item
      material: DIRT
    has_iron:
      type: has item
      material: IRON_INGOT
austere hawk
#

Ok ill try it

mint fable
#

you forgot requirements Baole

#

?dm-requirements

tender vaporBOT
hard basalt
#

oh shjt

austere hawk
hard basalt
#

amount:

#

add it

austere hawk
#

below material right?

hard basalt
#

yeah

mint fable
#

||or just use the checkitem expansion ?checkitem for more info||

austere hawk
#

k

unique arrow
tender vaporBOT
austere hawk
#

Is there a scoreboard plugin compatible with placeholder api? I want a scoreboard that shows your k/d time on server what world your in and a clickable discord link

austere hawk
#

Is it compatible

#

Yes

#

It is

brave shoal
#

Good evening! I use DeluxeChat on my server, when I write in the chat it puts this .. " %player_name% "

How do I get it to display the person's nickname and not "% player_name%"?

maiden lion
#

/papi ecloud download Player

#

I think it's the problem

brave shoal
#

Oh yes !! Thanks man !

maiden lion
#

:3

hard basalt
mossy sleet
#

So I want to get the players total playtime and the players active time (The time the player hacn't been AFK)

#

Please ping me if you can help me

molten marsh
#

what placeholder i use to show the localtime of players in scoreboard

warm topaz
#

assuming ur scoreboard has placeholderapi support

flat peak
#

Hey is someone using the craftconomy expansion? I have a question about placeholders that dont work

hybrid stratus
#

I have the current scenario, I have an API and a Scoreboard and my scoreboard plugin (that I created) parses the placeholders on a line etc. etc. but what is the difference between:
PlaceholderAPI.setBracketPlaceholders & PlaceholderAPI.setPlaceholders

#

I try using PlaceholderAPI.setPlaceholders but it does not work

mellow hawk
#

Hello, is it possible to use a placeholder inside another placeholder?

hard basalt
#

yes

mellow hawk
#

How would I do this?

#

Because when I try to, it "stops" the first one and starts a second one

mellow hawk
#

Can anyone help me with this, please?

limber ice
#

@mellow hawk you can make a custom placeholder depending what a placeholder is

flat peak
#

is placeholderAPI compatible with craftconomy3?

mellow hawk
flat peak
#

dont look over the 3

#

craftconomy is indeed compatible but the other not it think

untold crater
#

have you tried it

flat peak
#

well i used placeholders and they doesnt seem to work

#

also when i try /papi ecloud download ... there's only craftconomy, not craftconomy3

#

so yea unfortunataly..

trim mist
#

Looks like the author of the Craftconomy expansion is iso2013. You could try reaching out to them, or ask the devs of Craftconomy 3 if they are interested in writing a new one?

mint fable
#

which plugin @austere hawk

#

and did you download the player expansion and reload?

austere hawk
#

Maybe I should have done that

mint fable
austere hawk
#

scoreboard-revision

#

Ik the command I am just dumb lol

mint fable
#

@austere hawk

#

use the server time placeholder this

austere hawk
#

Oki

lapis totem
#

Hello !
I got a question about a placeholder for money (essentials's balance).
How do we change that 'm' to an 'M' ? https://prnt.sc/12boo5l

austere hawk
#

When editing which one would I use or infact how would I format it to state the date?

austere hawk
#

?luckperms

tender vaporBOT
austere hawk
#

Hm where can I find mcmmo?

trim mist
austere hawk
#

The papi commands lol

trim mist
#

?

austere hawk
#

Like placeholder api for mcmmo and essentials

#

Wait wha how do you run that command again

#

For future referance

#

?papi expansion essentials

#
  • papi expansion essentials
trim mist
#

-papi <expansion name>

wet basinBOT
#

@austere hawk Unknown expansion.

#

@austere hawk Unknown expansion.

austere hawk
#

Better teams

#

Hm

thick wedge
#

how do i get a players rank prefix on the leaderboard?

austere hawk
thick wedge
#

what i mean is

#

something like this

austere hawk
#

Oh

#

Idk sorry lol

lapis totem
#

I guess with LeaderHeads u can do something like this

thick wedge
#

the thing with that is it only shows the name and the value

wet basinBOT
#

@austere hawk Unknown expansion.

lapis totem
#

What rank plugin you use ?

thick wedge
#

luckperms

#

but like it should be more like

#

TITLE

rank user - value

austere hawk
#

Bruh

lapis totem
#

Then i think u have to use placeholders of luckperms to get what you want

thick wedge
#

doesnt work either

#

if anybody has an idea pls dm me

lean sinew
#

Hey, so today i was trying to setup holograms for a baltop leaderboards and when i added the api %vault_eco_top_balance_1% it says 0.0 instead of the number... any clue why this is... i tried to enable baltop in the config to true, but that didnt change anything and ended up breaking my whole server where it would crash every 5 minuites... any clue how to fix this?

#

please ping me when you reply 😄

hard basalt
lean sinew
#

wdum?

hard basalt
#

it return the highest money amout

lean sinew
#

wdum by "it return"

#

the player who is baltop has 10 mil, but it says 0.0. Am i doing something wrong?

#

am i using the right api and also just doing it right as im confused why it isnt working 😐

fickle tide
#

is it possible to get player location but also deduct it like
%otherplayer_locx_NekrosBurek%-1
If i do that it prints my X and -1 next to it but i would like to deduct the x from a player by some number
Is that possible ?

mint fable
#

@fickle tide this

#

also if you want to parse placeholders not available with otherplayer you can use the ParseOther expansion 😉

fickle tide
#

Thanks i will try, i am trying to configure when a player joins there are particles and "commands" issued but it works when i issue a command when i join the server it says on the console that it was sent but never run
Is it possible to do more customisation with DeluxeJoin ?
Like particles, summoning items etc. ?

mint fable
#

not entirely sure, haven't worked with it much

#

but if it's just a mc command then most likely?

gloomy marsh
#

Version dev?

#

!dev

#

!download

mellow hawk
#

Hey, how can I put a placeholder inside another placeholder?

warm topaz
#

%placeholder_{inner_placeholder}%
only specific placeholders will support this tho

mellow hawk
#

Okay thx, imma try it!

#

OMG thx I think it worked 🙂

warm topaz
#

nice!

flat peak
#

Hey is %money% also the server expansion?

warm topaz
#

that would be no placeholder

#

money related placeholders usually lie in the vault expansion

flat peak
#

oh okay

lean sinew
turbid tide
lean sinew
#

Will do next time I jump on

remote axle
#

just curious, is there a placeholder/expansion that I can use to extract the first 2 chars from another placeholder? (in this case I wanna get the first color code)

untold crater
#

2 chars ≠ colour code

#

there are situations where there will be more

remote axle
turbid tide
#

Javascript Expansion if you know javascript

remote axle
#

I do, but is there another expansion that I can trim easily

untold crater
#

afaik no

turbid tide
#

not that I know of

untold crater
#

thats a good idea actually

remote axle
#

and personally I prefer java over javascript

untold crater
#

you could just write one in java then

turbid tide
#

well there is no java expansion

remote axle
#

xD I guess I can make one and make it opensource

turbid tide
#

^^^

#

just write your own

remote axle
#

yeah

#

alright thanks

untold crater
#

on the ecloud, what does it mean if someone is a verified author?

warm topaz
#

u can download the expansion ingame

#

oh wait, author? idk, probably ur expansions get verified automatically

turbid tide
#

wait there's multiple types of authors? xD

#

oh yeah pretty sure that what Kaliber said is true

untold crater
#

they have a green tick

turbid tide
#

yeah pretty sure the expansions they post get verified automatically rather than needing a moderator to verify them

untold crater
#

i take it you have to be like important to get that

turbid tide
#

damn there's like 350 authors tho

turbid tide
#

there's so many authors that have 0 expansions

untold crater
#

theres more authors than there are expansions

turbid tide
#

I'm assuming that registration used to be open for everyone before

#

but idk

#

also like unless you have expansions like RNG and others I don't really see the use of the ecloud. Having the expansion directly in your plugin is much much better imo

warm topaz
#

😃

weak moth
#

Hi, I'm looking at the "Server" placeholder, would the %server_tps_15% placeholder be the average tps over 15 seconds?

#

Yes I know what the placeholders are I'm just asking what exactly the %server_tps_15% means

turbid tide
weak moth
#

ok thanks

molten marsh
#

any party and friends placeholders

turbid tide
turbid tide
#

there's loads of party and friends plugins out there

molten marsh
#

ok

#

full command?

turbid tide
#

so I need to know which one you're talking about

#

I just need link to the plugin you want placeholders for so I can tell you if there are any and which they are

molten marsh
#

PAF by simonsator

turbid tide
#

you need the spigot extension as well for placeholders

molten marsh
#

ok

turbid tide
#
%friendsapi_friendcount%
%friendsapi_friendrequestcount%
%friendsapi_onlinefriendcount%```
#

these are the placeholders

molten marsh
#

ok

#

thanks only this will help?

turbid tide
#

wdym?

molten marsh
#

mean now i dont need thr link you're saying

turbid tide
#

no I think you still need that plugin for placeholders

#

I'm not sure how PAF works but from what I can see you do need that one as well

molten marsh
#

ok ill get that

turbid tide
#

its made by the same developer. its some kind of extensio

#

n

#

or something idk

molten marsh
#

ok

#

thanks for your help 🙂

turbid tide
#
This version will not run on a BungeeCord. You need to buy this version if you only have one spigot server. There is a how to setup section at the end of the description```
#

you'll have to contact the developer of PAF and see if that's how you get the placeholders.

#

idk this is weird. Why have multiple plugins?

molten marsh
#

okay ill ask him

soft yew
#

i need to check requirements for a player in my plugin using multiple placeholders from other plugins(for example online time %ontime_time_played_total%) is this possible and if so how?

fluid chasm
#

is it possible to ping a proxy with the placeholders from pinger?

thorn herald
#

Does anyone else have issues with their place holders unregistered upon Reload? This mainly effects scoreboards and tabs?

warm topaz
#

using /reload ?

thorn herald
#

/papi reload sorry

warm topaz
#

if the placeholders are working fine when using the /papi parse command, its most likely an issue with the implementations (scoreboard and tabs)

trim mist
#

Some expansions might not be taking use of the persist method in the API which tells them to stay active on /papi reload.

thorn herald
#

Ahh I see thanks guys! Must be a non placeholder issue 🙂

karmic wave
#

Hi i have a question. Is there a placeholder with bungeecord that shows your current server.
I can't found them.

warm topaz
#

u can just use the server expansion in that case

#

%server_name% should do the trick if im reading this right

karmic wave
#

Than i get A Minecraft server back

warm topaz
#

u can define that in the papi config.yml

karmic wave
#

Thanks

mental dirge
#

can someone help me with deluxetags?

warm topaz
winged cargo
#

Hey, can i ask where can i download working version of RedisBungee expansion ? If i download it through eCloud, it just doesnt work

warm topaz
#

i dont think the redis expansion has ever worked 🥲
u can try version the versions under the latest tho and see if any of them work, but i have my doubts

austere hawk
#

Ok

wet basinBOT
#

@austere hawk Unknown expansion.

#

@austere hawk Unknown expansion.

#

@austere hawk Unknown expansion.

austere hawk
#

Anyone know the papi download for hd displays

fervent spire
cobalt tree
#

good evening, may I know who is managing the expansion of Vault?

warm topaz
#

i think clip, altho it is open source iirc

cobalt tree
#

OK thanks. is that I would like to know if anyone could improve it

#

unfortunately that expansion stops in the maximum money formatting in "Quadrillion" and I would like it to be improved to support "Quintillion - Sextilion - Septilion, etc .."

#

example: 1k - 1M - 1B - 1T - 1q - 1Q - 1S etc...

cobalt tree
#

i tried to open a PR but i didn't understand how it works, could someone help me

royal kettle
#

is there a placeholder for playerxp?

hollow cloak
#

Yo, i run multiple bungeecord instances on my network, and i wanna make it so i have placeholder that shows playercount of both instances (RedisBungee extension doesn't work). I can make it using JavaScript, but the main question is where can i see the name of the bungeecord servers, so i can use it in %bungee_<servername>% placeholder?

errant iron
#

?player

tender vaporBOT
errant iron
errant iron
royal kettle
#

Is there a fomatted version of player exp?

errant iron
#

uh, there's %player_exp_to_level%

#

but other than that, I don't think so

royal kettle
#

I was mostly asking because its annoying to see .00000532

#

lol

errant iron
#

ah you could truncate that with a JavaScript placeholder if you're familiar with those

royal kettle
#

not at all

#

First time hearing about Player exp xD

#

even

#

(Placeholder atleast)

fathom crest
#

Hello. I am coding a Stats GUI plugin using LeaderHeads and PlaceholderAPI. I want to use PlaceholderAPI.setPlaceholders(OfflinePlayer, String)

#

It is not working as intended.

#

Here is my code:

#

And here is the result when using /stats <offlineplayer>

#

This is really weird, as the docs state that using an OfflinePlayer should work...

#

And here is the result when using /stats <onlineplayer (me)>

#

Please @ me when responding.

autumn pike
#

Hey anyone have latest placeholder expansion of
Massivecore Factions ??

fathom crest
#

@warm topaz could you help me with my issue aswell?

autumn pike
warm topaz
#

i have no idea, that expansion has just been updated so it actually registers in PAPI, i havent made any other changes to the expansion other than that

#

@fathom crest if u do /papi parse <offline player here> %leaderheads_blahblahblah%, what is returned?

fathom crest
#

Hmmm

#

Weird

warm topaz
#

u shouldnt have underscores in the leaderheads placeholder

#

for the statistic part

turbid tide
#

@warm topaz , Robin asked us to send everyone who has problems with LeaderHeads to their DMs.

@fathom crest contact @steep thorn in private please. he's the developer of the plugin and will be able to help you.

steep thorn
#

Yeah

warm topaz
#

true 😅

fathom crest
#

Alright

turbid tide
#

oh I forgot to remove the ping xD. sowwy

fathom crest
warm topaz
#

lol 🥶

turbid tide
autumn pike
warm topaz
#

👍

tender vaporBOT
vale isle
vale isle
# tender vapor

No thank you it's too short, doesn't contain message. So please don't use it guys

olive drift
#

How do i use the MySQL expansion? More importantly why does it break whenever i restart it?

turbid tide
#

the latest release from ecloud is broken. I don't remember their being a fix yet

vale isle
#

Okay thank you @turbid tide (nice name xD)

vale isle
#

Huh

#

Maybe i contact their support for that

#

But still thanks!

turbid tide
#

hmm I guess. I don't even know for sure if the dev builds will fix it

#

but I guess you could also try downloading an older version of the expansion

vale isle
#

I try it on a local one

turbid tide
#

1 sec will give you command

#

try /papi ecloud download Server 2.4.0

#

if after this it doesn't work just don't use %server_uptime%

#

oh wait

#

wrong expansion

#

name lmao

#

1 second

vale isle
#

lmao

turbid tide
#

fixed it above

vale isle
#

Okay thanks

#

^^

turbid tide
#

but yeah anyways the %server_uptime% placeholder is the cause. If that doesn't work you'll have to just not use

#

that placeholder

olive drift
vale isle
#

Yeah, it breaks my entire scoreboard. I give it a try I guess

vale isle
#

I try to install an older version myself. I hope it works according to @turbid tide.
I say when it's working or not

turbid tide
vale isle
#

Nope

#

Maybe a older version of PAPI

turbid tide
#

maybe but it doesn't really have anything to do with PAPI. just the expansion being broken

vale isle
#

WORKS!

#

/papi ecloud download Server 2.3.0

#

That's the command

#

Works on latest PAPI version

turbid tide
#

nice 👍

vale isle
#

@turbid tide (the name says it)

dense thorn
#

guys

#
      - '[close]'
      - '[world] Events'
    right_click_commands:
      - '[close]'
      - '[world] Events'  ```
#

is this correct? or...

#

@turbid tide sorry but its urgent

tender vaporBOT
dense thorn
dense thorn
#

sorry, again

#

no like

#

idk what is it

#

i want to tp them to a world

#

so i thought it was [world]

turbid tide
dense thorn
#

Thank you Blitz!

cobalt tree
trim mist
#

I'm unsure if that is something I would merge into the live version as I don't think many people need as many as you, but do you have any understanding of programming at all? If you have an IDE and know how to compile a jar file, you can essentially add probably 20 lines of code to get what you want.

flint nacelle
#

when will bugs in JS get fixed (has find one bug and I has try report it before)?

flint nacelle
#

ask in right tread and say your problem. We cant guess your problem.

austere hawk
#

which version do i need for 1.8.9

warm topaz
#

latest should work fine

tender vaporBOT
copper patio
#

Hey guys my %player% placeholder is not working im using 1.8.8

#

can youı help me?

lament verge
#
%jobsr_user_boost_%jobsr_user_jobs%_money%```
Can you help me to make it work
copper patio
#

i fixed

flint siren
#

hey

#

someone can help me in LeaderHeads x PlaceholderAPI fkedshits? (sorry im rageing out...)

%leaderheads_name_vault_eco_balance_alltime_1% result " " in hd, parse, and everywhere.

tardy burrow
#

Hi, Is it possible to make LocalTime use the player timezone?

sharp jay
#

@flint siren did you download with /papi ecloud download vault?

#

@tardy burrow no possible way to get everyones timezone unless they set it

sharp jay
#

@flint siren where did you get that papi placeholder?

#

check this

#
   location: world, -145.743, 73.915, 266.836
   lines:
     - '&eTop Daily Money Gained'
     - '{fast}&b%leaderheads_name_vault_eco_balance_daily_1% &f- &b$%leaderheads_value_vault_eco_balance_daily_1%'
     - '{fast}&b%leaderheads_name_vault_eco_balance_daily_2% &f- &b$%leaderheads_value_vault_eco_balance_daily_2%'
     - '{fast}&b%leaderheads_name_vault_eco_balance_daily_3% &f- &b$%leaderheads_value_vault_eco_balance_daily_3%'```
sharp jay
#

where did you get https://adamh.tech/2021/05/opera_PP1ceJBtX2.png

#

this isnt a placeholder

#

in vault

flint siren
#

okee

#

%vault_eco_balance%

sharp jay
#

yes

flint siren
#

%leaderheads_name_<statistic>_<time>_<rank>%

sharp jay
#

hm m

#

try %leaderheads_name_vault_eco_balance_daily_1%

sharp jay
#

Id join leaderheads support server maybe

flint siren
#

uhm, its has?

sharp jay
#

wym

north dune
#

@versed warren How can u detect if a server is whitelisted on placeholder thonking1

tender vaporBOT
fervent spire
north dune
#

How does he get the status of a server without using Redis

cobalt tree
tender vaporBOT
cobalt tree
#

sorry for ping

bronze spindle
#

papi - Formatter-Expansion
minecraft 1.12.2

rich star
#

hello guys

#

ihave some issue when using Placeholder MySQL

#

dose anyone know how to solve this ?

fervent spire
#

Are you using the latest version of the expansion?

rich star
#

i dont know i just use /papi download command

#

so where i can found lastest version ?

fervent spire
#

/papi info <expansion name> should tell you if it's updated

arctic loom
#

@bronze spindle your java version is outdated.
Formatter only supports Java 11 or newer

rich star
#

yeah this is lastest version

#

MySQL 1.31

bronze spindle
#

can you please share a link to java 11 ?
this is the first time I've heard of her

bronze spindle
#

thank you very much

tidal ermine
#

i get this all the time

fervent spire
#

Have you installed the expansion needed for those placeholders?

tidal ermine
#

jup

#

if i do /hd reload

#

then its normal

tardy burrow
#

Can I get a placeholder value from another server on a bungee cord network?

lilac oxide
#

I actually made a plugin for that, but it's not finished. Maybe I'll do that... anyway, not atm

brisk coral
#

wait for papi 3

cedar needle
#

cannot use the /papi download command, it says Unknowd command: download

warm topaz
#

papi ecloud download <expansion> [version]

cedar needle
#

oh

lament verge
trim mist
#

You're on an outdated version of Java than what it was compiled on.

#

CC: @arctic loom

arctic loom
austere hawk
vocal imp
#

Using the checkitem placeholder, is there a way for it to only check vanilla items and not take named items?

#

I tried using the namecontains:&fOak Log, but then it wouldnt take the vanilla logs, but if I remove that namecontains it then takes custom items I've made in the form of oak logs

austere hawk
mental dirge
#

someone knows how to change the output of essentials placeholders?

#

the %essentials_has_kit_kit%

warm topaz
#

wdym change the output?

#

like if the placeholder returns a certain text, return something else instead?

errant iron
#

You'd either need to modify the placeholder expansion or use a javascript wrapper on it

mental dirge
#

how to modify a placeholder expansion

errant iron
#

Do you know how to code Java?

mental dirge
#

no

#

:(

errant iron
#

then good luck lmao

mental dirge
#

fu**

#

ok

#

ty

warm topaz
#

javascript is easier anyway, infact there is a template script that u can use, u just need to swap out the placeholder and output text

#
var kit = "%essentials_has_kit_<YOURKITNAME>%";

function formatKit() {
  if (kit == "WHATEVER THE OUTPUT IS RN") {
    return "CHANGE THE OUTPUT TO WHATEVER U WANT IT TO BE";
  }
  return kit;
}

formatKit();```
this should work - i think
if u havent used the js expansion before, u can  read the wiki on how to set up the placeholder correctly
https://github.com/PlaceholderAPI/Javascript-Expansion/wiki

if u need any help just ask 🙂
errant iron
#

bro kali putting way too much effort in

#

they paying you or something?

warm topaz
#

maybe 😏

#

im thinking of making a papi expansion for this, as it might be easier than having to make a js expansion just to change the output of placeholder

errant iron
#

can papi expansions have config files?

warm topaz
#

yes

errant iron
#

ah okay so you could just have a config file and have people add expansions maybe?

#

or placeholders and what they want it to output hmm

#

that seems kinda hard

warm topaz
#

@turbid tide what would be ur opinion on this? it may not be as sophisticated as js ofc, but for some simple output changing its probably easier to have a placeholder that could do it for u

tender vaporBOT
warm topaz
#

shut barry

errant iron
#

lmao

warm topaz
#

star, i could do that. at first i was thinking of just a simple %changeoutput_<placeholder to be changed>_<if said placeholder returns this>_<change to this> type thing

errant iron
#

oh I seee

turbid tide
#

🏓

warm topaz
#

🏓

turbid tide
#

🏓

warm topaz
#

🥲

turbid tide